@sap/ux-specification 1.108.60 → 1.108.62
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 +32 -0
- package/dist/documentation/runDocu-min.js +2 -2
- package/dist/documentation/runDocu-min.js.map +1 -1
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ListReportNew.html +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 +77 -77
- package/dist/index-min.js.map +4 -4
- package/dist/specification/package.json +4 -4
- package/dist/specification/scripts/macros/corrections.d.ts.map +1 -1
- package/dist/specification/scripts/macros/corrections.js +3 -0
- package/dist/specification/scripts/macros/corrections.js.map +1 -1
- package/dist/specification/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/export/export.js +27 -22
- package/dist/specification/src/sync/v2/export/export.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts +3 -5
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js +19 -23
- package/dist/specification/src/sync/v2/generate/manifestPropertyUtils.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js +33 -42
- package/dist/specification/src/sync/v2/generate/schemaAdaptation.js.map +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js +1 -1
- package/dist/specification/src/sync/v2/generate/utils.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.js +3 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/Action.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/ListHeader.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/ListHeader.js +12 -14
- package/dist/specification/src/sync/v2/genericSchemaHandling/controls/ListHeader.js.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts +2 -2
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js +9 -15
- package/dist/specification/src/sync/v2/genericSchemaHandling/pages/ListReportNew.js.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js +13 -8
- package/dist/specification/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/specification/src/sync/v2/utils.d.ts +1 -1
- package/dist/specification/src/sync/v2/utils.js +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js +4 -2
- package/dist/specification/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/types/src/common/types.d.ts +25 -26
- package/dist/types/src/common/types.d.ts.map +1 -1
- package/package.json +4 -4
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var HG=Object.create;var bl=Object.defineProperty;var rL=Object.getOwnPropertyDescriptor;var GG=Object.getOwnPropertyNames;var WG=Object.getPrototypeOf,KG=Object.prototype.hasOwnProperty;var o=(e,t)=>bl(e,"name",{value:t,configurable:!0});var Je=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lc=(e,t)=>{for(var n in t)bl(e,n,{get:t[n],enumerable:!0})},Ng=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of GG(t))!KG.call(e,r)&&r!==n&&bl(e,r,{get:()=>t[r],enumerable:!(i=rL(t,r))||i.enumerable});return e},fc=(e,t,n)=>(Ng(e,t,"default"),n&&Ng(n,t,"default")),Z=(e,t,n)=>(n=e!=null?HG(WG(e)):{},Ng(t||!e||!e.__esModule?bl(n,"default",{value:e,enumerable:!0}):n,e)),Fg=e=>Ng(bl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?rL(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&&bl(t,n,r),r};var VN=Ze((DZ,_N)=>{var Zv=Object.defineProperty,XG=Object.getOwnPropertyDescriptor,QG=Object.getOwnPropertyNames,qG=Object.prototype.hasOwnProperty,eb=o((e,t)=>{for(var n in t)Zv(e,n,{get:t[n],enumerable:!0})},"C"),YG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of QG(t))!qG.call(e,r)&&r!==n&&Zv(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=XG(t,r))||i.enumerable});return e},"Ze"),zG=o(e=>YG(Zv({},"__esModule",{value:!0}),e),"et"),oL={};eb(oL,{ACTIONTITLEPREFIX:o(()=>tW,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>pL,"ALPViewType"),ActionType:o(()=>mL,"ActionType"),ArtifactType:o(()=>gL,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>iW,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>bL,"ChangeIndicator"),ChartColor:o(()=>ML,"ChartColor"),CloudDevAdaptationStatus:o(()=>FL,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>VL,"ColorPaletteDefinitionType"),ControlType:o(()=>hL,"ControlType"),CustomExtensionType:o(()=>$L,"CustomExtensionType"),DATESETTINGSPATH:o(()=>pW,"DATESETTINGSPATH"),DataSourceType:o(()=>DL,"DataSourceType"),DefinitionName:o(()=>AL,"DefinitionName"),DirName:o(()=>TL,"DirName"),DraftDiscardEnabledSettings:o(()=>OL,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>uL,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>eW,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>hW,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>mW,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>dW,"FRAGMENTNAMEPART"),FacetBase:o(()=>EL,"FacetBase"),Features:o(()=>BL,"Features"),FileName:o(()=>vL,"FileName"),FioriElementsVersion:o(()=>aL,"FioriElementsVersion"),FlexChangeLayer:o(()=>lL,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>NL,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>cL,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>gW,"GENERICAPPSETTINGS"),LogSeverity:o(()=>kL,"LogSeverity"),MANIFESTPATH:o(()=>rW,"MANIFESTPATH"),MacrosPropertyType:o(()=>IL,"MacrosPropertyType"),ManifestSection:o(()=>_L,"ManifestSection"),OdataVersion:o(()=>sL,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>ZG,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>JG,"PageType"),PageTypeV2:o(()=>tb,"PageTypeV2"),PageTypeV4:o(()=>nb,"PageTypeV4"),PropertyMessageType:o(()=>jL,"PropertyMessageType"),PropertyName:o(()=>PL,"PropertyName"),QUICKVARPATH:o(()=>fW,"QUICKVARPATH"),QUICKVARPATHX:o(()=>uW,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>TW,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>yW,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>CL,"SchemaKeyName"),SchemaTag:o(()=>xL,"SchemaTag"),SchemaType:o(()=>fL,"SchemaType"),SectionType:o(()=>dL,"SectionType"),StatePreservationMode:o(()=>LL,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>RL,"TableColumnVerticalAlignment"),TemplateType:o(()=>UL,"TemplateType"),UIVOCABULARY:o(()=>sW,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>lW,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>cW,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>aW,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>oW,"VOCWITHSLASH"),ViewTemplateType:o(()=>SL,"ViewTemplateType"),ViewTypes:o(()=>wL,"ViewTypes"),Visualization:o(()=>yL,"Visualization"),defaultExportResult:o(()=>nW,"defaultExportResult"),logSeverityLabel:o(()=>vW,"logSeverityLabel"),v2:o(()=>HL,"v2"),v4:o(()=>gN,"v4")});_N.exports=zG(oL);var tb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(tb||{}),nb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(nb||{}),JG={...tb,...nb},ZG=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"]]),aL=(e=>(e.v2="v2",e.v4="v4",e))(aL||{}),sL=(e=>(e.v2="v2",e.v4="v4",e))(sL||{}),cL=(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))(cL||{}),lL=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(lL||{}),fL=(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))(fL||{}),uL=(e=>(e.flex="flex",e.manifest="manifest",e))(uL||{}),pL=(e=>(e.Primary="primary",e.Secondary="secondary",e))(pL||{}),dL=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(dL||{}),gL=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(gL||{}),mL=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(mL||{}),hL=(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))(hL||{}),yL=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(yL||{}),TL=(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))(TL||{}),vL=(e=>(e.App="app.json",e))(vL||{}),eW="Facet ID: ",tW="Action ID: ",bL=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(bL||{}),nW={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},EL=(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))(EL||{}),iW="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",SL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(SL||{}),AL=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.ObjectPageFormActionGroup="ObjectPageFormActionGroup",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionGroup="ObjectPageHeaderActionGroup",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActionGroup="ObjectPageToolBarActionGroup",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarActionGroup="ToolBarActionGroup",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarActionGroup="ViewToolBarActionGroup",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(AL||{}),PL=(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))(PL||{}),xL=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(xL||{}),CL=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(CL||{}),rW="webapp/manifest.json",oW="/@com.sap.vocabularies",aW="::@com.sap.vocabularies",sW="com.sap.vocabularies.UI.v1",cW="com.sap.vocabularies.UI.v1.",lW="@com.sap.vocabularies.UI.v1.",fW="/quickVariantSelection",uW="/quickVariantSelectionX",pW="/filterSettings/dateSettings",dW=".fragment.",IL=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(IL||{}),OL=(e=>(e.restricted="restricted",e))(OL||{}),RL=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(RL||{}),LL=(e=>(e.persistence="persistence",e.discovery="discovery",e))(LL||{}),NL=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(NL||{}),FL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(FL||{}),DL=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(DL||{}),_L=(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))(_L||{}),gW="sap.ui.generic.app/settings",VL=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(VL||{}),mW="sap.fe.templates.RootContainer.view.Fcl",hW="appRootView",wL=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(wL||{}),yW="sap.ui.core.mvc.View",TW="sap.ui.core.Fragment",ML=(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))(ML||{}),kL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(kL||{}),vW={error:"Error",warning:"Warning",info:"Information"},jL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(jL||{}),UL=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(UL||{}),$L=(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))($L||{}),BL=(e=>(e.BuildingBlocks="BuildingBlocks",e))(BL||{}),HL={};eb(HL,{CardSettingsType:o(()=>KL,"CardSettingsType"),CardTemplateType:o(()=>WL,"CardTemplateType"),ChartCardType:o(()=>GL,"ChartCardType"),ChartType:o(()=>lN,"ChartType"),ContainerLayoutType:o(()=>dN,"ContainerLayoutType"),CreateMode:o(()=>pN,"CreateMode"),DateRangeType:o(()=>JL,"DateRangeType"),DefaultContentView:o(()=>aN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>ZL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>sN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>uN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>SW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>xW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>PW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>AW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>eN,"FilterPathType"),IgnoredFieldsType:o(()=>oN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>zL,"LinkListFlavorType"),ListFlavorType:o(()=>QL,"ListFlavorType"),ListTypeType:o(()=>qL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>cN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>XL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>IW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>CW,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>LW,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>RW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>OW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>fN,"SectionPosition"),SortOrderType:o(()=>YL,"SortOrderType"),Strategy:o(()=>rN,"Strategy"),TableColumnExtensionTypeV2:o(()=>iN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>nN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>EW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>bW,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>tN,"customColumnViewTypes")});var GL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(GL||{}),WL=(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))(WL||{}),bW={"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"},EW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},KL=(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))(KL||{}),XL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(XL||{}),QL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(QL||{}),qL=(e=>(e.extended="extended",e.condensed="condensed",e))(qL||{}),YL=(e=>(e.ascending="ascending",e.descending="descending",e))(YL||{}),zL=(e=>(e.standard="standard",e.carousel="carousel",e))(zL||{}),JL=(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))(JL||{}),ZL=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(ZL||{}),eN=(e=>(e.key="key",e.catgory="category",e))(eN||{}),tN=(e=>(e.XML="XML",e))(tN||{}),nN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(nN||{}),iN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(iN||{}),rN=(e=>(e.extension="extension",e))(rN||{}),oN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(oN||{}),aN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(aN||{}),sN=(e=>(e.visual="visual",e.compact="compact",e))(sN||{}),cN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(cN||{}),lN=(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))(lN||{}),fN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(fN||{}),uN=(e=>(e.XML="XML",e))(uN||{}),pN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(pN||{}),SW="sap.suite.ui.generic.template",AW="sap.suite.ui.generic.template.ObjectPage",PW="sap.suite.ui.generic.template.ListReport",xW="sap.suite.ui.generic.template.AnalyticalListPage",CW="sap.ui.viewExtensions",IW="sap.ui.controllerExtensions",OW="sap.suite.ui.generic.template.ObjectPage.view.Details",RW="sap.suite.ui.generic.template.ListReport.view.ListReport",LW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",dN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(dN||{}),gN={};eb(gN,{ActionPlacement:o(()=>mN,"ActionPlacement"),Availability:o(()=>LN,"Availability"),CustomSectionViewTypesV4:o(()=>CN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>vN,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>NW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>VW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>FW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>_W,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>DW,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>MW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>SN,"FilterFieldPlacement"),HorizontalAlign:o(()=>NN,"HorizontalAlign"),InitialLayoutType:o(()=>EN,"InitialLayoutType"),InitialLoadType:o(()=>TN,"InitialLoadType"),LayoutType:o(()=>bN,"LayoutType"),Placement:o(()=>RN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>jW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>kW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>wW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>$W,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>UW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>PN,"SectionLayoutType"),SectionPosition:o(()=>xN,"SectionPosition"),SectionPositionV4:o(()=>ON,"SectionPositionV4"),SelectType:o(()=>AN,"SelectType"),SelectionMode:o(()=>hN,"SelectionMode"),TableCreationModeType:o(()=>IN,"TableCreationModeType"),TableTypeV4:o(()=>yN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>DN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>FN,"VariantManagementTypeObjectPage")});var mN=(e=>(e.After="After",e.Before="Before",e))(mN||{}),hN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(hN||{}),yN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(yN||{}),TN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(TN||{}),vN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(vN||{}),bN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(bN||{}),EN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(EN||{}),SN=(e=>(e.After="After",e.Before="Before",e))(SN||{}),AN=(e=>(e.single="single",e.multi="multi",e))(AN||{}),PN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(PN||{}),xN=(e=>(e.After="After",e.Before="Before",e))(xN||{}),CN=(e=>(e.XML="XML",e))(CN||{}),IN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(IN||{}),NW="sap.fe",FW="sap.fe.core.fpm",DW="sap.fe.templates.ObjectPage",_W="sap.fe.templates.ListReport",VW="sap.fe.templates.AnalyticalListPage",wW="XMLFragment",ON=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(ON||{}),MW="sap.f.routing.Router",kW="sap.f",jW="sap.ui.controllerExtensions",UW="sap.fe.templates.ObjectPage.ObjectPageController",$W="sap.fe.templates.ListReport.ListReportController",RN=(e=>(e.After="After",e.Before="Before",e))(RN||{}),LN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(LN||{}),NN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(NN||{}),FN=(e=>(e.None="None",e.Control="Control",e))(FN||{}),DN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(DN||{})});var $N=Ze(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.Features=Qi.CustomExtensionType=Qi.TemplateType=Qi.PropertyMessageType=Qi.logSeverityLabel=Qi.LogSeverity=void 0;var wN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(wN||(Qi.LogSeverity=wN={}));Qi.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var MN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(MN||(Qi.PropertyMessageType=MN={}));var kN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(kN||(Qi.TemplateType=kN={}));var jN;(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"})(jN||(Qi.CustomExtensionType=jN={}));var UN;(function(e){e.BuildingBlocks="BuildingBlocks"})(UN||(Qi.Features=UN={}))});var gF=Ze((wZ,dF)=>{var ib=Object.defineProperty,BW=Object.getOwnPropertyDescriptor,HW=Object.getOwnPropertyNames,GW=Object.prototype.hasOwnProperty,WW=o((e,t)=>{for(var n in t)ib(e,n,{get:t[n],enumerable:!0})},"h"),KW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of HW(t))!GW.call(e,r)&&r!==n&&ib(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=BW(t,r))||i.enumerable});return e},"M"),XW=o(e=>KW(ib({},"__esModule",{value:!0}),e),"Q"),BN={};WW(BN,{CardSettingsType:o(()=>WN,"CardSettingsType"),CardTemplateType:o(()=>GN,"CardTemplateType"),ChartCardType:o(()=>HN,"ChartCardType"),ChartType:o(()=>cF,"ChartType"),ContainerLayoutType:o(()=>pF,"ContainerLayoutType"),CreateMode:o(()=>uF,"CreateMode"),DateRangeType:o(()=>zN,"DateRangeType"),DefaultContentView:o(()=>oF,"DefaultContentView"),DefaultDateRangeValueType:o(()=>JN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>aF,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>fF,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>YW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>ZW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>JW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>zW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>ZN,"FilterPathType"),IgnoredFieldsType:o(()=>rF,"IgnoredFieldsType"),LinkListFlavorType:o(()=>YN,"LinkListFlavorType"),ListFlavorType:o(()=>XN,"ListFlavorType"),ListTypeType:o(()=>QN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>sF,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>KN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>t5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>e5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>r5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>i5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>n5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>lF,"SectionPosition"),SortOrderType:o(()=>qN,"SortOrderType"),Strategy:o(()=>iF,"Strategy"),TableColumnExtensionTypeV2:o(()=>nF,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>tF,"TableTypeV2"),cardTemplateSettingsMap:o(()=>qW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>QW,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>eF,"customColumnViewTypes")});dF.exports=XW(BN);var HN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(HN||{}),GN=(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))(GN||{}),QW={"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"},qW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},WN=(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))(WN||{}),KN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(KN||{}),XN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(XN||{}),QN=(e=>(e.extended="extended",e.condensed="condensed",e))(QN||{}),qN=(e=>(e.ascending="ascending",e.descending="descending",e))(qN||{}),YN=(e=>(e.standard="standard",e.carousel="carousel",e))(YN||{}),zN=(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))(zN||{}),JN=(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))(JN||{}),ZN=(e=>(e.key="key",e.catgory="category",e))(ZN||{}),eF=(e=>(e.XML="XML",e))(eF||{}),tF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(tF||{}),nF=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(nF||{}),iF=(e=>(e.extension="extension",e))(iF||{}),rF=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(rF||{}),oF=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(oF||{}),aF=(e=>(e.visual="visual",e.compact="compact",e))(aF||{}),sF=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(sF||{}),cF=(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))(cF||{}),lF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(lF||{}),fF=(e=>(e.XML="XML",e))(fF||{}),uF=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(uF||{}),YW="sap.suite.ui.generic.template",zW="sap.suite.ui.generic.template.ObjectPage",JW="sap.suite.ui.generic.template.ListReport",ZW="sap.suite.ui.generic.template.AnalyticalListPage",e5="sap.ui.viewExtensions",t5="sap.ui.controllerExtensions",n5="sap.suite.ui.generic.template.ObjectPage.view.Details",i5="sap.suite.ui.generic.template.ListReport.view.ListReport",r5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pF=(e=>(e.fixed="fixed",e.resizable="resizable",e))(pF||{})});var wF=Ze((kZ,VF)=>{var rb=Object.defineProperty,o5=Object.getOwnPropertyDescriptor,a5=Object.getOwnPropertyNames,s5=Object.prototype.hasOwnProperty,c5=o((e,t)=>{for(var n in t)rb(e,n,{get:t[n],enumerable:!0})},"E"),l5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of a5(t))!s5.call(e,r)&&r!==n&&rb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=o5(t,r))||i.enumerable});return e},"R"),f5=o(e=>l5(rb({},"__esModule",{value:!0}),e),"h"),mF={};c5(mF,{ActionPlacement:o(()=>hF,"ActionPlacement"),Availability:o(()=>NF,"Availability"),CustomSectionViewTypesV4:o(()=>IF,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>bF,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>u5,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>m5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>p5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>g5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>d5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>y5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>AF,"FilterFieldPlacement"),HorizontalAlign:o(()=>FF,"HorizontalAlign"),InitialLayoutType:o(()=>SF,"InitialLayoutType"),InitialLoadType:o(()=>vF,"InitialLoadType"),LayoutType:o(()=>EF,"LayoutType"),Placement:o(()=>LF,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>v5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>T5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>h5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>E5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>b5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>xF,"SectionLayoutType"),SectionPosition:o(()=>CF,"SectionPosition"),SectionPositionV4:o(()=>RF,"SectionPositionV4"),SelectType:o(()=>PF,"SelectType"),SelectionMode:o(()=>yF,"SelectionMode"),TableCreationModeType:o(()=>OF,"TableCreationModeType"),TableTypeV4:o(()=>TF,"TableTypeV4"),VariantManagementTypeListReport:o(()=>_F,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>DF,"VariantManagementTypeObjectPage")});VF.exports=f5(mF);var hF=(e=>(e.After="After",e.Before="Before",e))(hF||{}),yF=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(yF||{}),TF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(TF||{}),vF=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(vF||{}),bF=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(bF||{}),EF=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(EF||{}),SF=(e=>(e.Compact="Compact",e.Visual="Visual",e))(SF||{}),AF=(e=>(e.After="After",e.Before="Before",e))(AF||{}),PF=(e=>(e.single="single",e.multi="multi",e))(PF||{}),xF=(e=>(e.Tabs="Tabs",e.Page="Page",e))(xF||{}),CF=(e=>(e.After="After",e.Before="Before",e))(CF||{}),IF=(e=>(e.XML="XML",e))(IF||{}),OF=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(OF||{}),u5="sap.fe",p5="sap.fe.core.fpm",d5="sap.fe.templates.ObjectPage",g5="sap.fe.templates.ListReport",m5="sap.fe.templates.AnalyticalListPage",h5="XMLFragment",RF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(RF||{}),y5="sap.f.routing.Router",T5="sap.f",v5="sap.ui.controllerExtensions",b5="sap.fe.templates.ObjectPage.ObjectPageController",E5="sap.fe.templates.ListReport.ListReportController",LF=(e=>(e.After="After",e.Before="Before",e))(LF||{}),NF=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(NF||{}),FF=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(FF||{}),DF=(e=>(e.None="None",e.Control="Control",e))(DF||{}),_F=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(_F||{})});var ae=Ze(Ti=>{"use strict";var MF=Ti&&Ti.__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]}),S5=Ti&&Ti.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),kF=Ti&&Ti.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&MF(t,e,n)},jF=Ti&&Ti.__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"&&MF(n,t,i[r]);return S5(n,t),n}}();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.v4=Ti.v2=void 0;kF(VN(),Ti);kF($N(),Ti);Ti.v2=jF(gF());Ti.v4=jF(wF())});var Eb=Ze((ree,nD)=>{"use strict";var M5=o(function(t){return k5(t)&&!j5(t)},"isMergeableObject");function k5(e){return!!e&&typeof e=="object"}o(k5,"isNonNullObject");function j5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||B5(e)}o(j5,"isSpecial");var U5=typeof Symbol=="function"&&Symbol.for,$5=U5?Symbol.for("react.element"):60103;function B5(e){return e.$$typeof===$5}o(B5,"isReactElement");function H5(e){return Array.isArray(e)?[]:{}}o(H5,"emptyTarget");function Tu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Al(H5(e),e,t):e}o(Tu,"cloneUnlessOtherwiseSpecified");function G5(e,t,n){return e.concat(t).map(function(i){return Tu(i,n)})}o(G5,"defaultArrayMerge");function W5(e,t){if(!t.customMerge)return Al;var n=t.customMerge(e);return typeof n=="function"?n:Al}o(W5,"getMergeFunction");function K5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(K5,"getEnumerableOwnPropertySymbols");function eD(e){return Object.keys(e).concat(K5(e))}o(eD,"getKeys");function tD(e,t){try{return t in e}catch{return!1}}o(tD,"propertyIsOnObject");function X5(e,t){return tD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(X5,"propertyIsUnsafe");function Q5(e,t,n){var i={};return n.isMergeableObject(e)&&eD(e).forEach(function(r){i[r]=Tu(e[r],n)}),eD(t).forEach(function(r){X5(e,r)||(tD(e,r)&&n.isMergeableObject(t[r])?i[r]=W5(r,n)(e[r],t[r],n):i[r]=Tu(t[r],n))}),i}o(Q5,"mergeObject");function Al(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||G5,n.isMergeableObject=n.isMergeableObject||M5,n.cloneUnlessOtherwiseSpecified=Tu;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Q5(e,t,n):Tu(t,n)}o(Al,"deepmerge");Al.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 Al(i,r,n)},{})},"deepmergeAll");var q5=Al;nD.exports=q5});var $g=Ze(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.mergeAnnotations=yt.addGetByValue=yt.createIndexedFind=yt.lazy=yt.Decimal=yt.Double=yt.isComplexTypeDefinition=yt.unalias=yt.alias=yt.substringBeforeLast=yt.substringBeforeFirst=yt.splitAtLast=yt.splitAtFirst=yt.defaultReferences=yt.TermToTypes=yt.EnumIsFlag=void 0;var Y5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(yt,"EnumIsFlag",{enumerable:!0,get:o(function(){return Y5.EnumIsFlag},"get")});var z5=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(yt,"TermToTypes",{enumerable:!0,get:o(function(){return z5.TermToTypes},"get")});var J5=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(yt,"defaultReferences",{enumerable:!0,get:o(function(){return J5.VocabularyReferences},"get")});function iD(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(iD,"splitAt");function rD(e,t){return t<0?e:e.substring(0,t)}o(rD,"substringAt");function Ug(e,t){return iD(e,e.indexOf(t))}o(Ug,"splitAtFirst");yt.splitAtFirst=Ug;function oD(e,t){return iD(e,e.lastIndexOf(t))}o(oD,"splitAtLast");yt.splitAtLast=oD;function Z5(e,t){return rD(e,e.indexOf(t))}o(Z5,"substringBeforeFirst");yt.substringBeforeFirst=Z5;function e8(e,t){return rD(e,e.lastIndexOf(t))}o(e8,"substringBeforeLast");yt.substringBeforeLast=e8;function aD(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=oD(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=Ug(t,"@");return`${a}@${aD(e,s)}`}else return t}o(aD,"alias");yt.alias=aD;function Sb(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=Ug(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]=Ug(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(Sb,"unalias");yt.unalias=Sb;function t8(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(t8,"isComplexTypeDefinition");yt.isComplexTypeDefinition=t8;function n8(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(n8,"Double");yt.Double=n8;function i8(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(i8,"Decimal");yt.Decimal=i8;function r8(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(r8,"lazy");yt.lazy=r8;function sD(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(sD,"createIndexedFind");yt.createIndexedFind=sD;function o8(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:sD(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(o8,"addGetByValue");yt.addGetByValue=o8;function a8(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=Sb(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=Sb(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(a8,"mergeAnnotations");yt.mergeAnnotations=a8});var ED=Ze(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.convert=void 0;var Bg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=$g(),co=Symbol("Annotation Target");function pa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(pa,"appendObjectPath");function hr(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[E,b]=(0,Se.splitAtFirst)(v,"@");m.push(E),m.push(`@${b}`)}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[co]!==void 0)t=t[co];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,v)=>{var E,b,I,F,M;let G=o($=>(m.messages.push({message:$}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=pa(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[$,se]=e.splitTerm(v),te=(E=m.target.annotations[$.substring(1)])===null||E===void 0?void 0:E[se];return te!==void 0?(m.target=te,m):G(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let $;if(v==="$AnnotationPath"?$=m.target.value:v==="$Path"&&($=m.target.path),$!==void 0){let se=hr(e,m.target[co],$);return se.objectPath.forEach(te=>{m.objectPath.includes(te)||(m.objectPath=pa(m.objectPath,te))}),m.target=se.target,m.objectPath=pa(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let te=m.target;if(v===""||e.unalias(v)===te.fullyQualifiedName)return m;let le=(F=(I=te.entitySets.by_name(v))!==null&&I!==void 0?I:te.singletons.by_name(v))!==null&&F!==void 0?F:te.actionImports.by_name(v);if(le)return m.target=le,m}break;case"EntitySet":case"Singleton":{let te=m.target;if(v===""||v==="$Type")return m.target=te.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let Re=te.navigationPropertyBinding;return m.target=Re,m}let le=hr(e,te.entityType,v);return m.target=le.target,m.objectPath=le.objectPath.reduce(pa,m.objectPath),m}case"EntityType":{let te=m.target;if(v===""||v==="$Type")return m;let le=te.entityProperties.by_name(v);if(le)return m.target=le,m;let Re=te.navigationProperties.by_name(v);if(Re)return m.target=Re,m;let D=(0,Se.substringBeforeFirst)(e.unalias(v),"("),Ue=te.actions[D];if(Ue)return m.target=Ue,m}break;case"ActionImport":{let te=hr(e,m.target.action,v);return m.target=te.target,m.objectPath=te.objectPath.reduce(pa,m.objectPath),m}case"Action":{let te=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&te.isBound)return m.target=te.parameters,m;let le=(M=te.parameters[v])!==null&&M!==void 0?M:te.parameters.find(Re=>Re.name===v);if(le)return m.target=le,m;break}case"Property":{let le=m.target.targetType;if(le!==void 0){let Re=le.properties.by_name(v);if(Re)return m.target=Re,m;let D=le.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let $=m.target.typeReference;if($!==void 0){let te=hr(e,$,v);return m.target=te.target,m.objectPath=te.objectPath.reduce(pa,m.objectPath),m}break;case"NavigationProperty":let se=hr(e,m.target.targetType,v);return m.target=se.target,m.objectPath=se.objectPath.reduce(pa,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=pa(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=pD(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var GG=Object.create;var bl=Object.defineProperty;var oL=Object.getOwnPropertyDescriptor;var WG=Object.getOwnPropertyNames;var KG=Object.getPrototypeOf,XG=Object.prototype.hasOwnProperty;var o=(e,t)=>bl(e,"name",{value:t,configurable:!0});var Je=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),lc=(e,t)=>{for(var n in t)bl(e,n,{get:t[n],enumerable:!0})},Ng=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of WG(t))!XG.call(e,r)&&r!==n&&bl(e,r,{get:()=>t[r],enumerable:!(i=oL(t,r))||i.enumerable});return e},fc=(e,t,n)=>(Ng(e,t,"default"),n&&Ng(n,t,"default")),Z=(e,t,n)=>(n=e!=null?GG(KG(e)):{},Ng(t||!e||!e.__esModule?bl(n,"default",{value:e,enumerable:!0}):n,e)),Fg=e=>Ng(bl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?oL(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&&bl(t,n,r),r};var wN=Ze((VZ,VN)=>{var Zv=Object.defineProperty,QG=Object.getOwnPropertyDescriptor,qG=Object.getOwnPropertyNames,YG=Object.prototype.hasOwnProperty,eb=o((e,t)=>{for(var n in t)Zv(e,n,{get:t[n],enumerable:!0})},"C"),zG=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qG(t))!YG.call(e,r)&&r!==n&&Zv(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=QG(t,r))||i.enumerable});return e},"Ze"),JG=o(e=>zG(Zv({},"__esModule",{value:!0}),e),"et"),aL={};eb(aL,{ACTIONTITLEPREFIX:o(()=>nW,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>dL,"ALPViewType"),ActionType:o(()=>hL,"ActionType"),ArtifactType:o(()=>mL,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>rW,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>EL,"ChangeIndicator"),ChartColor:o(()=>kL,"ChartColor"),CloudDevAdaptationStatus:o(()=>DL,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>wL,"ColorPaletteDefinitionType"),ControlType:o(()=>yL,"ControlType"),CustomExtensionType:o(()=>BL,"CustomExtensionType"),DATESETTINGSPATH:o(()=>dW,"DATESETTINGSPATH"),DataSourceType:o(()=>_L,"DataSourceType"),DefinitionName:o(()=>PL,"DefinitionName"),DirName:o(()=>vL,"DirName"),DraftDiscardEnabledSettings:o(()=>RL,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>pL,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>tW,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>yW,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>hW,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>gW,"FRAGMENTNAMEPART"),FacetBase:o(()=>SL,"FacetBase"),Features:o(()=>HL,"Features"),FileName:o(()=>bL,"FileName"),FioriElementsVersion:o(()=>sL,"FioriElementsVersion"),FlexChangeLayer:o(()=>fL,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>FL,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>lL,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>mW,"GENERICAPPSETTINGS"),LogSeverity:o(()=>jL,"LogSeverity"),MANIFESTPATH:o(()=>oW,"MANIFESTPATH"),MacrosPropertyType:o(()=>OL,"MacrosPropertyType"),ManifestSection:o(()=>VL,"ManifestSection"),OdataVersion:o(()=>cL,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>eW,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>ZG,"PageType"),PageTypeV2:o(()=>tb,"PageTypeV2"),PageTypeV4:o(()=>nb,"PageTypeV4"),PropertyMessageType:o(()=>UL,"PropertyMessageType"),PropertyName:o(()=>xL,"PropertyName"),QUICKVARPATH:o(()=>uW,"QUICKVARPATH"),QUICKVARPATHX:o(()=>pW,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>vW,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>TW,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>IL,"SchemaKeyName"),SchemaTag:o(()=>CL,"SchemaTag"),SchemaType:o(()=>uL,"SchemaType"),SectionType:o(()=>gL,"SectionType"),StatePreservationMode:o(()=>NL,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>LL,"TableColumnVerticalAlignment"),TemplateType:o(()=>$L,"TemplateType"),UIVOCABULARY:o(()=>cW,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>fW,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>lW,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>sW,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>aW,"VOCWITHSLASH"),ViewTemplateType:o(()=>AL,"ViewTemplateType"),ViewTypes:o(()=>ML,"ViewTypes"),Visualization:o(()=>TL,"Visualization"),defaultExportResult:o(()=>iW,"defaultExportResult"),logSeverityLabel:o(()=>bW,"logSeverityLabel"),v2:o(()=>GL,"v2"),v4:o(()=>mN,"v4")});VN.exports=JG(aL);var tb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(tb||{}),nb=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(nb||{}),ZG={...tb,...nb},eW=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"]]),sL=(e=>(e.v2="v2",e.v4="v4",e))(sL||{}),cL=(e=>(e.v2="v2",e.v4="v4",e))(cL||{}),lL=(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))(lL||{}),fL=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(fL||{}),uL=(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))(uL||{}),pL=(e=>(e.flex="flex",e.manifest="manifest",e))(pL||{}),dL=(e=>(e.Primary="primary",e.Secondary="secondary",e))(dL||{}),gL=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(gL||{}),mL=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(mL||{}),hL=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(hL||{}),yL=(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))(yL||{}),TL=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(TL||{}),vL=(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))(vL||{}),bL=(e=>(e.App="app.json",e))(bL||{}),tW="Facet ID: ",nW="Action ID: ",EL=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(EL||{}),iW={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},SL=(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))(SL||{}),rW="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",AL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(AL||{}),PL=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.ObjectPageFormActionGroup="ObjectPageFormActionGroup",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionGroup="ObjectPageHeaderActionGroup",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActionGroup="ObjectPageToolBarActionGroup",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarActionGroup="ToolBarActionGroup",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarActionGroup="ViewToolBarActionGroup",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(PL||{}),xL=(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))(xL||{}),CL=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlId="controlId",e.controlType="controlType",e.conversionExit="conversionExit",e.dataType="dataType",e.deletable="deletable",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.icon="icon",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.manifestPath="manifestPath",e.messages="messages",e.propertyIndex="propertyIndex",e.target="target",e))(CL||{}),IL=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(IL||{}),oW="webapp/manifest.json",aW="/@com.sap.vocabularies",sW="::@com.sap.vocabularies",cW="com.sap.vocabularies.UI.v1",lW="com.sap.vocabularies.UI.v1.",fW="@com.sap.vocabularies.UI.v1.",uW="/quickVariantSelection",pW="/quickVariantSelectionX",dW="/filterSettings/dateSettings",gW=".fragment.",OL=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(OL||{}),RL=(e=>(e.restricted="restricted",e))(RL||{}),LL=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(LL||{}),NL=(e=>(e.persistence="persistence",e.discovery="discovery",e))(NL||{}),FL=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(FL||{}),DL=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(DL||{}),_L=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(_L||{}),VL=(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))(VL||{}),mW="sap.ui.generic.app/settings",wL=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(wL||{}),hW="sap.fe.templates.RootContainer.view.Fcl",yW="appRootView",ML=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(ML||{}),TW="sap.ui.core.mvc.View",vW="sap.ui.core.Fragment",kL=(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))(kL||{}),jL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(jL||{}),bW={error:"Error",warning:"Warning",info:"Information"},UL=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(UL||{}),$L=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))($L||{}),BL=(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))(BL||{}),HL=(e=>(e.BuildingBlocks="BuildingBlocks",e))(HL||{}),GL={};eb(GL,{CardSettingsType:o(()=>XL,"CardSettingsType"),CardTemplateType:o(()=>KL,"CardTemplateType"),ChartCardType:o(()=>WL,"ChartCardType"),ChartType:o(()=>fN,"ChartType"),ContainerLayoutType:o(()=>gN,"ContainerLayoutType"),CreateMode:o(()=>dN,"CreateMode"),DateRangeType:o(()=>ZL,"DateRangeType"),DefaultContentView:o(()=>sN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>eN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>cN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>pN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>AW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>CW,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>xW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>PW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>tN,"FilterPathType"),IgnoredFieldsType:o(()=>aN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>JL,"LinkListFlavorType"),ListFlavorType:o(()=>qL,"ListFlavorType"),ListTypeType:o(()=>YL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>lN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>QL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>OW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>IW,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>NW,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>LW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>RW,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>uN,"SectionPosition"),SortOrderType:o(()=>zL,"SortOrderType"),Strategy:o(()=>oN,"Strategy"),TableColumnExtensionTypeV2:o(()=>rN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>iN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>SW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>EW,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>nN,"customColumnViewTypes")});var WL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(WL||{}),KL=(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))(KL||{}),EW={"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"},SW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},XL=(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))(XL||{}),QL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(QL||{}),qL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(qL||{}),YL=(e=>(e.extended="extended",e.condensed="condensed",e))(YL||{}),zL=(e=>(e.ascending="ascending",e.descending="descending",e))(zL||{}),JL=(e=>(e.standard="standard",e.carousel="carousel",e))(JL||{}),ZL=(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))(ZL||{}),eN=(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))(eN||{}),tN=(e=>(e.key="key",e.catgory="category",e))(tN||{}),nN=(e=>(e.XML="XML",e))(nN||{}),iN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(iN||{}),rN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(rN||{}),oN=(e=>(e.extension="extension",e))(oN||{}),aN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(aN||{}),sN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(sN||{}),cN=(e=>(e.visual="visual",e.compact="compact",e))(cN||{}),lN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(lN||{}),fN=(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))(fN||{}),uN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(uN||{}),pN=(e=>(e.XML="XML",e))(pN||{}),dN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(dN||{}),AW="sap.suite.ui.generic.template",PW="sap.suite.ui.generic.template.ObjectPage",xW="sap.suite.ui.generic.template.ListReport",CW="sap.suite.ui.generic.template.AnalyticalListPage",IW="sap.ui.viewExtensions",OW="sap.ui.controllerExtensions",RW="sap.suite.ui.generic.template.ObjectPage.view.Details",LW="sap.suite.ui.generic.template.ListReport.view.ListReport",NW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",gN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(gN||{}),mN={};eb(mN,{ActionPlacement:o(()=>hN,"ActionPlacement"),Availability:o(()=>NN,"Availability"),CustomSectionViewTypesV4:o(()=>IN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>bN,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>FW,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>wW,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>DW,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>VW,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>_W,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>kW,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>AN,"FilterFieldPlacement"),HorizontalAlign:o(()=>FN,"HorizontalAlign"),InitialLayoutType:o(()=>SN,"InitialLayoutType"),InitialLoadType:o(()=>vN,"InitialLoadType"),LayoutType:o(()=>EN,"LayoutType"),Placement:o(()=>LN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>UW,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>jW,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>MW,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>BW,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>$W,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>xN,"SectionLayoutType"),SectionPosition:o(()=>CN,"SectionPosition"),SectionPositionV4:o(()=>RN,"SectionPositionV4"),SelectType:o(()=>PN,"SelectType"),SelectionMode:o(()=>yN,"SelectionMode"),TableCreationModeType:o(()=>ON,"TableCreationModeType"),TableTypeV4:o(()=>TN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>_N,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>DN,"VariantManagementTypeObjectPage")});var hN=(e=>(e.After="After",e.Before="Before",e))(hN||{}),yN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(yN||{}),TN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(TN||{}),vN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(vN||{}),bN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(bN||{}),EN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(EN||{}),SN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(SN||{}),AN=(e=>(e.After="After",e.Before="Before",e))(AN||{}),PN=(e=>(e.single="single",e.multi="multi",e))(PN||{}),xN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(xN||{}),CN=(e=>(e.After="After",e.Before="Before",e))(CN||{}),IN=(e=>(e.XML="XML",e))(IN||{}),ON=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(ON||{}),FW="sap.fe",DW="sap.fe.core.fpm",_W="sap.fe.templates.ObjectPage",VW="sap.fe.templates.ListReport",wW="sap.fe.templates.AnalyticalListPage",MW="XMLFragment",RN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(RN||{}),kW="sap.f.routing.Router",jW="sap.f",UW="sap.ui.controllerExtensions",$W="sap.fe.templates.ObjectPage.ObjectPageController",BW="sap.fe.templates.ListReport.ListReportController",LN=(e=>(e.After="After",e.Before="Before",e))(LN||{}),NN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(NN||{}),FN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(FN||{}),DN=(e=>(e.None="None",e.Control="Control",e))(DN||{}),_N=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(_N||{})});var BN=Ze(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.Features=Qi.CustomExtensionType=Qi.TemplateType=Qi.PropertyMessageType=Qi.logSeverityLabel=Qi.LogSeverity=void 0;var MN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(MN||(Qi.LogSeverity=MN={}));Qi.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var kN;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(kN||(Qi.PropertyMessageType=kN={}));var jN;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(jN||(Qi.TemplateType=jN={}));var UN;(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"})(UN||(Qi.CustomExtensionType=UN={}));var $N;(function(e){e.BuildingBlocks="BuildingBlocks"})($N||(Qi.Features=$N={}))});var mF=Ze((kZ,gF)=>{var ib=Object.defineProperty,HW=Object.getOwnPropertyDescriptor,GW=Object.getOwnPropertyNames,WW=Object.prototype.hasOwnProperty,KW=o((e,t)=>{for(var n in t)ib(e,n,{get:t[n],enumerable:!0})},"h"),XW=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of GW(t))!WW.call(e,r)&&r!==n&&ib(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=HW(t,r))||i.enumerable});return e},"M"),QW=o(e=>XW(ib({},"__esModule",{value:!0}),e),"Q"),HN={};KW(HN,{CardSettingsType:o(()=>KN,"CardSettingsType"),CardTemplateType:o(()=>WN,"CardTemplateType"),ChartCardType:o(()=>GN,"ChartCardType"),ChartType:o(()=>lF,"ChartType"),ContainerLayoutType:o(()=>dF,"ContainerLayoutType"),CreateMode:o(()=>pF,"CreateMode"),DateRangeType:o(()=>JN,"DateRangeType"),DefaultContentView:o(()=>aF,"DefaultContentView"),DefaultDateRangeValueType:o(()=>ZN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>sF,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>uF,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>zW,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>e5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>ZW,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>JW,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>eF,"FilterPathType"),IgnoredFieldsType:o(()=>oF,"IgnoredFieldsType"),LinkListFlavorType:o(()=>zN,"LinkListFlavorType"),ListFlavorType:o(()=>QN,"ListFlavorType"),ListTypeType:o(()=>qN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>cF,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>XN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>n5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>t5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>o5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>r5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>i5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>fF,"SectionPosition"),SortOrderType:o(()=>YN,"SortOrderType"),Strategy:o(()=>rF,"Strategy"),TableColumnExtensionTypeV2:o(()=>iF,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>nF,"TableTypeV2"),cardTemplateSettingsMap:o(()=>YW,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>qW,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>tF,"customColumnViewTypes")});gF.exports=QW(HN);var GN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(GN||{}),WN=(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))(WN||{}),qW={"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"},YW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},KN=(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))(KN||{}),XN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(XN||{}),QN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(QN||{}),qN=(e=>(e.extended="extended",e.condensed="condensed",e))(qN||{}),YN=(e=>(e.ascending="ascending",e.descending="descending",e))(YN||{}),zN=(e=>(e.standard="standard",e.carousel="carousel",e))(zN||{}),JN=(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))(JN||{}),ZN=(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))(ZN||{}),eF=(e=>(e.key="key",e.catgory="category",e))(eF||{}),tF=(e=>(e.XML="XML",e))(tF||{}),nF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(nF||{}),iF=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(iF||{}),rF=(e=>(e.extension="extension",e))(rF||{}),oF=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(oF||{}),aF=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(aF||{}),sF=(e=>(e.visual="visual",e.compact="compact",e))(sF||{}),cF=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(cF||{}),lF=(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))(lF||{}),fF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(fF||{}),uF=(e=>(e.XML="XML",e))(uF||{}),pF=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(pF||{}),zW="sap.suite.ui.generic.template",JW="sap.suite.ui.generic.template.ObjectPage",ZW="sap.suite.ui.generic.template.ListReport",e5="sap.suite.ui.generic.template.AnalyticalListPage",t5="sap.ui.viewExtensions",n5="sap.ui.controllerExtensions",i5="sap.suite.ui.generic.template.ObjectPage.view.Details",r5="sap.suite.ui.generic.template.ListReport.view.ListReport",o5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",dF=(e=>(e.fixed="fixed",e.resizable="resizable",e))(dF||{})});var MF=Ze((UZ,wF)=>{var rb=Object.defineProperty,a5=Object.getOwnPropertyDescriptor,s5=Object.getOwnPropertyNames,c5=Object.prototype.hasOwnProperty,l5=o((e,t)=>{for(var n in t)rb(e,n,{get:t[n],enumerable:!0})},"E"),f5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of s5(t))!c5.call(e,r)&&r!==n&&rb(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=a5(t,r))||i.enumerable});return e},"R"),u5=o(e=>f5(rb({},"__esModule",{value:!0}),e),"h"),hF={};l5(hF,{ActionPlacement:o(()=>yF,"ActionPlacement"),Availability:o(()=>FF,"Availability"),CustomSectionViewTypesV4:o(()=>OF,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>EF,"DefaultPathType"),FE_NAMESPACE_V4:o(()=>p5,"FE_NAMESPACE_V4"),FE_TEMPLATE_V4_ALP:o(()=>h5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>d5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>m5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>g5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>T5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>PF,"FilterFieldPlacement"),HorizontalAlign:o(()=>DF,"HorizontalAlign"),InitialLayoutType:o(()=>AF,"InitialLayoutType"),InitialLoadType:o(()=>bF,"InitialLoadType"),LayoutType:o(()=>SF,"LayoutType"),Placement:o(()=>NF,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>b5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>v5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>y5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>S5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>E5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>CF,"SectionLayoutType"),SectionPosition:o(()=>IF,"SectionPosition"),SectionPositionV4:o(()=>LF,"SectionPositionV4"),SelectType:o(()=>xF,"SelectType"),SelectionMode:o(()=>TF,"SelectionMode"),TableCreationModeType:o(()=>RF,"TableCreationModeType"),TableTypeV4:o(()=>vF,"TableTypeV4"),VariantManagementTypeListReport:o(()=>VF,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>_F,"VariantManagementTypeObjectPage")});wF.exports=u5(hF);var yF=(e=>(e.After="After",e.Before="Before",e))(yF||{}),TF=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(TF||{}),vF=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(vF||{}),bF=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(bF||{}),EF=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(EF||{}),SF=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(SF||{}),AF=(e=>(e.Compact="Compact",e.Visual="Visual",e))(AF||{}),PF=(e=>(e.After="After",e.Before="Before",e))(PF||{}),xF=(e=>(e.single="single",e.multi="multi",e))(xF||{}),CF=(e=>(e.Tabs="Tabs",e.Page="Page",e))(CF||{}),IF=(e=>(e.After="After",e.Before="Before",e))(IF||{}),OF=(e=>(e.XML="XML",e))(OF||{}),RF=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(RF||{}),p5="sap.fe",d5="sap.fe.core.fpm",g5="sap.fe.templates.ObjectPage",m5="sap.fe.templates.ListReport",h5="sap.fe.templates.AnalyticalListPage",y5="XMLFragment",LF=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(LF||{}),T5="sap.f.routing.Router",v5="sap.f",b5="sap.ui.controllerExtensions",E5="sap.fe.templates.ObjectPage.ObjectPageController",S5="sap.fe.templates.ListReport.ListReportController",NF=(e=>(e.After="After",e.Before="Before",e))(NF||{}),FF=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(FF||{}),DF=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(DF||{}),_F=(e=>(e.None="None",e.Control="Control",e))(_F||{}),VF=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(VF||{})});var ae=Ze(Ti=>{"use strict";var kF=Ti&&Ti.__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]})),A5=Ti&&Ti.__setModuleDefault||(Object.create?(function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}):function(e,t){e.default=t}),jF=Ti&&Ti.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&kF(t,e,n)},UF=Ti&&Ti.__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"&&kF(n,t,i[r]);return A5(n,t),n}})();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.v4=Ti.v2=void 0;jF(wN(),Ti);jF(BN(),Ti);Ti.v2=UF(mF());Ti.v4=UF(MF())});var Sb=Ze((aee,rD)=>{"use strict";var j5=o(function(t){return U5(t)&&!$5(t)},"isMergeableObject");function U5(e){return!!e&&typeof e=="object"}o(U5,"isNonNullObject");function $5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||G5(e)}o($5,"isSpecial");var B5=typeof Symbol=="function"&&Symbol.for,H5=B5?Symbol.for("react.element"):60103;function G5(e){return e.$$typeof===H5}o(G5,"isReactElement");function W5(e){return Array.isArray(e)?[]:{}}o(W5,"emptyTarget");function Tu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?Al(W5(e),e,t):e}o(Tu,"cloneUnlessOtherwiseSpecified");function K5(e,t,n){return e.concat(t).map(function(i){return Tu(i,n)})}o(K5,"defaultArrayMerge");function X5(e,t){if(!t.customMerge)return Al;var n=t.customMerge(e);return typeof n=="function"?n:Al}o(X5,"getMergeFunction");function Q5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(Q5,"getEnumerableOwnPropertySymbols");function nD(e){return Object.keys(e).concat(Q5(e))}o(nD,"getKeys");function iD(e,t){try{return t in e}catch{return!1}}o(iD,"propertyIsOnObject");function q5(e,t){return iD(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(q5,"propertyIsUnsafe");function Y5(e,t,n){var i={};return n.isMergeableObject(e)&&nD(e).forEach(function(r){i[r]=Tu(e[r],n)}),nD(t).forEach(function(r){q5(e,r)||(iD(e,r)&&n.isMergeableObject(t[r])?i[r]=X5(r,n)(e[r],t[r],n):i[r]=Tu(t[r],n))}),i}o(Y5,"mergeObject");function Al(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||K5,n.isMergeableObject=n.isMergeableObject||j5,n.cloneUnlessOtherwiseSpecified=Tu;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Y5(e,t,n):Tu(t,n)}o(Al,"deepmerge");Al.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 Al(i,r,n)},{})},"deepmergeAll");var z5=Al;rD.exports=z5});var $g=Ze(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.mergeAnnotations=yt.addGetByValue=yt.createIndexedFind=yt.lazy=yt.Decimal=yt.Double=yt.isComplexTypeDefinition=yt.unalias=yt.alias=yt.substringBeforeLast=yt.substringBeforeFirst=yt.splitAtLast=yt.splitAtFirst=yt.defaultReferences=yt.TermToTypes=yt.EnumIsFlag=void 0;var J5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(yt,"EnumIsFlag",{enumerable:!0,get:o(function(){return J5.EnumIsFlag},"get")});var Z5=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(yt,"TermToTypes",{enumerable:!0,get:o(function(){return Z5.TermToTypes},"get")});var e8=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(yt,"defaultReferences",{enumerable:!0,get:o(function(){return e8.VocabularyReferences},"get")});function oD(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(oD,"splitAt");function aD(e,t){return t<0?e:e.substring(0,t)}o(aD,"substringAt");function Ug(e,t){return oD(e,e.indexOf(t))}o(Ug,"splitAtFirst");yt.splitAtFirst=Ug;function sD(e,t){return oD(e,e.lastIndexOf(t))}o(sD,"splitAtLast");yt.splitAtLast=sD;function t8(e,t){return aD(e,e.indexOf(t))}o(t8,"substringBeforeFirst");yt.substringBeforeFirst=t8;function n8(e,t){return aD(e,e.lastIndexOf(t))}o(n8,"substringBeforeLast");yt.substringBeforeLast=n8;function cD(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=sD(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=Ug(t,"@");return`${a}@${cD(e,s)}`}else return t}o(cD,"alias");yt.alias=cD;function Ab(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=Ug(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]=Ug(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(Ab,"unalias");yt.unalias=Ab;function i8(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(i8,"isComplexTypeDefinition");yt.isComplexTypeDefinition=i8;function r8(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(r8,"Double");yt.Double=r8;function o8(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(o8,"Decimal");yt.Decimal=o8;function a8(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(a8,"lazy");yt.lazy=a8;function lD(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(lD,"createIndexedFind");yt.createIndexedFind=lD;function s8(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:lD(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(s8,"addGetByValue");yt.addGetByValue=s8;function c8(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=Ab(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=Ab(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(c8,"mergeAnnotations");yt.mergeAnnotations=c8});var AD=Ze(Gg=>{"use strict";Object.defineProperty(Gg,"__esModule",{value:!0});Gg.convert=void 0;var Bg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=$g(),lo=Symbol("Annotation Target");function pa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(pa,"appendObjectPath");function hr(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[E,b]=(0,Se.splitAtFirst)(v,"@");m.push(E),m.push(`@${b}`)}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[lo]!==void 0)t=t[lo];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,v)=>{var E,b,I,N,j;let G=o($=>(m.messages.push({message:$}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=pa(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[$,se]=e.splitTerm(v),te=(E=m.target.annotations[$.substring(1)])===null||E===void 0?void 0:E[se];return te!==void 0?(m.target=te,m):G(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let $;if(v==="$AnnotationPath"?$=m.target.value:v==="$Path"&&($=m.target.path),$!==void 0){let se=hr(e,m.target[lo],$);return se.objectPath.forEach(te=>{m.objectPath.includes(te)||(m.objectPath=pa(m.objectPath,te))}),m.target=se.target,m.objectPath=pa(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let te=m.target;if(v===""||e.unalias(v)===te.fullyQualifiedName)return m;let le=(N=(I=te.entitySets.by_name(v))!==null&&I!==void 0?I:te.singletons.by_name(v))!==null&&N!==void 0?N:te.actionImports.by_name(v);if(le)return m.target=le,m}break;case"EntitySet":case"Singleton":{let te=m.target;if(v===""||v==="$Type")return m.target=te.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let Re=te.navigationPropertyBinding;return m.target=Re,m}let le=hr(e,te.entityType,v);return m.target=le.target,m.objectPath=le.objectPath.reduce(pa,m.objectPath),m}case"EntityType":{let te=m.target;if(v===""||v==="$Type")return m;let le=te.entityProperties.by_name(v);if(le)return m.target=le,m;let Re=te.navigationProperties.by_name(v);if(Re)return m.target=Re,m;let D=(0,Se.substringBeforeFirst)(e.unalias(v),"("),Ue=te.actions[D];if(Ue)return m.target=Ue,m}break;case"ActionImport":{let te=hr(e,m.target.action,v);return m.target=te.target,m.objectPath=te.objectPath.reduce(pa,m.objectPath),m}case"Action":{let te=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&te.isBound)return m.target=te.parameters,m;let le=(j=te.parameters[v])!==null&&j!==void 0?j:te.parameters.find(Re=>Re.name===v);if(le)return m.target=le,m;break}case"Property":{let le=m.target.targetType;if(le!==void 0){let Re=le.properties.by_name(v);if(Re)return m.target=Re,m;let D=le.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let $=m.target.typeReference;if($!==void 0){let te=hr(e,$,v);return m.target=te.target,m.objectPath=te.objectPath.reduce(pa,m.objectPath),m}break;case"NavigationProperty":let se=hr(e,m.target.targetType,v);return m.target=se.target,m.objectPath=se.objectPath.reduce(pa,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=pa(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=gD(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
2
2
|
`+n+`
|
|
3
3
|
|
|
4
4
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
@@ -10,23 +10,23 @@ Hint: Check and correct the path values under the following structure in the met
|
|
|
10
10
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
11
11
|
|
|
12
12
|
<Annotation Term = `+p[0]+`>
|
|
13
|
-
<PropertyValue Path= `+p[1]+">");return g}o(hr,"resolveTarget");function
|
|
13
|
+
<PropertyValue Path= `+p[1]+">");return g}o(hr,"resolveTarget");function l8(e){return e.includes("@")}o(l8,"isAnnotationPath");function fD(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[lo]:i};return(0,Se.lazy)(a,"$target",()=>hr(e,i,t.PropertyPath,r).target),a}o(fD,"mapPropertyPath");function uD(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[lo]:i};return(0,Se.lazy)(a,"$target",()=>hr(e,i,a.value,r).target),a}o(uD,"mapAnnotationPath");function pD(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[lo]:i};return(0,Se.lazy)(s,"$target",()=>hr(e,i,t.NavigationPropertyPath,r).target),s}o(pD,"mapNavigationPropertyPath");function f8(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[lo]:i};return(0,Se.lazy)(a,"$target",()=>hr(e,i,t.Path,r).target),a}o(f8,"mapPath");function dD(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,Se.Double)(a.Double);case"Decimal":return(0,Se.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,Se.alias)(Bg.VocabularyReferences,g)});return l[0]!==void 0&&Se.EnumIsFlag[(0,Se.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return fD(e,a,s,t,n);case"NavigationPropertyPath":return pD(e,a,s,t,n);case"AnnotationPath":return uD(e,a,s,t,n);case"Path":return l8(a.Path)?hr(e,t,e.unalias(a.Path),n).target:f8(e,a,s,t,n);case"Record":return Cb(e,n,t,i,r,a.Record,s);case"Collection":return mD(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(dD,"parseValue");function gD(e,t,n,i){let r=Se.TermToTypes[t];return i&&(t=`${(0,Se.substringBeforeLast)(t,".")}.${i}`,r=Se.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(pD,"inferTypeFromTerm");function l8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(l8,"isDataFieldWithForAction");function f8(e,t,n,i,r){let a;return!r.type&&t?a=pD(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(f8,"parseRecordType");function xb(e,t,n,i,r,a,s){let l={$Type:f8(e,t,n,i,a),fullyQualifiedName:s,[co]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>uD(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",mD(e,a,l)),l8(l)&&(0,Se.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(xb,"parseRecord");function u8(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(u8,"getOrInferCollectionType");function dD(e,t,n,i,r,a,s){switch(u8(a)){case"PropertyPath":return a.map((u,p)=>cD(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>hr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>lD(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>fD(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>xb(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(dD,"parseCollection");function p8(e){return!!e.targetTypeName}o(p8,"isV4NavigationProperty");function d8(e,t,n){var i;let r;if(n.record)r=xb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=uD(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=dD(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[co]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Bg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",mD(e,n,r))}catch{}return r}o(d8,"convertAnnotation");var Cb=class Cb{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,Se.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,hD)}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,Se.addGetByValue)(i,"name"),(0,Se.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,Se.alias)(Bg.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Cb,"Converter");var Ab=Cb;function vu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(vu,"resolveEntityType");function gD(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(gD,"resolveNavigationPropertyBindings");function da(e,t){let n=t.annotations;return()=>Hg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(da,"resolveAnnotations");function mD(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[co]=n[co],a.fullyQualifiedName=`${i}@${a.term}`}),Hg(e,n,r??[])}}o(mD,"resolveAnnotationsOnAnnotation");function Hg(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,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>d8(u,t,p))),i},{})}o(Hg,"createAnnotationsObject");function hD(e,t){let n=t;return(0,Se.lazy)(n,"annotations",da(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,TD)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,yD)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,bD)),n}o(hD,"convertEntityContainer");function yD(e,t){let n=t;(0,Se.lazy)(n,"entityType",vu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",da(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",gD(e,i)),n}o(yD,"convertSingleton");function TD(e,t){let n=t;(0,Se.lazy)(n,"entityType",vu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",da(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",gD(e,i)),n}o(TD,"convertEntitySet");function g8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",da(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,Pb)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,Pb)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,vD)),(0,Se.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=hr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(g8,"convertEntityType");function Pb(e,t){let n=t;return(0,Se.lazy)(n,"annotations",da(e,t)),(0,Se.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(Pb,"convertProperty");function vD(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!p8(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,Se.lazy)(a,"targetType",vu(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",da(e,t)),a}o(vD,"convertNavigationProperty");function bD(e,t){let n=t;return(0,Se.lazy)(n,"annotations",da(e,t)),(0,Se.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(bD,"convertActionImport");function m8(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",vu(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",vu(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,h8)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.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 Hg(e,t,a)}),n}o(m8,"convertAction");function h8(e,t){let n=t;return(0,Se.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,Se.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 Hg(e,t,a)}),n}o(h8,"convertActionParameter");function y8(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,Pb)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,vD)),(0,Se.lazy)(n,"annotations",da(e,t)),n}o(y8,"convertComplexType");function T8(e,t){let n=t;return(0,Se.lazy)(n,"annotations",da(e,t)),n}o(T8,"convertTypeDefinition");function v8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Bg.VocabularyReferences,diagnostics:[]},n=new Ab(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,hD)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,TD)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,yD)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,g8)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,m8)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,y8)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,bD)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,T8)),t.resolvePath=o(function(r){let a=hr(n,void 0,r);return a.target&&pa(a.objectPath,a.target),a},"resolvePath"),t}o(v8,"convert");Gg.convert=v8});var xD=Ze(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.revertTermToGenericType=void 0;var Ib=$g();function b8(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let v=g.valueOf().split(".");v.length>1&&e.find(E=>E.alias===v[0])&&(m=Ib.EnumIsFlag[(0,Ib.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>Wg(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Wg(e,t)});return p}o(b8,"revertObjectToRawType");function SD(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=b8(e,t);break}return n}o(SD,"revertValueToRawType");var E8=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function AD(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=PD(e,t[i][r]);if(!a.term){let s=(0,Ib.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(AD,"revertAnnotationsToRawType");function Wg(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(E8.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:SD(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],AD(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(Wg,"revertCollectionItemToRawType");function PD(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=[],AD(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Wg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Wg(e,t)}:{...n,value:SD(e,t)}}o(PD,"revertTermToGenericType");Kg.revertTermToGenericType=PD});var CD=Ze(ga=>{"use strict";var S8=ga&&ga.__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]}),Ob=ga&&ga.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&S8(t,e,n)};Object.defineProperty(ga,"__esModule",{value:!0});Ob(ED(),ga);Ob($g(),ga);Ob(xD(),ga)});var Db=Ze(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.MergedRawMetadata=ns.RawMetadataInstance=ns.ensureArray=void 0;function A8(e){return e==null?[]:Array.isArray(e)?e:[e]}o(A8,"ensureArray");ns.ensureArray=A8;var Nb=class Nb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Nb,"RawMetadataInstance");var Rb=Nb;ns.RawMetadataInstance=Rb;var Fb=class Fb{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(Fb,"MergedRawMetadata");var Lb=Fb;ns.MergedRawMetadata=Lb});var ID=Ze(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});Xg.merge=void 0;var P8=Db();function x8(...e){let t=new P8.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(x8,"merge");Xg.merge=x8});var OD=Ze(Qg=>{(function(e){e.parser=function(O,A){return new n(O,A)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(O,A){if(!(this instanceof n))return new n(O,A);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=A||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!O,Y.noscript=!!(O||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!O),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),$e(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function A(){}o(A,"F"),A.prototype=O;var Y=new A;return Y}),Object.keys||(Object.keys=function(O){var A=[];for(var Y in O)O.hasOwnProperty(Y)&&A.push(Y);return A});function i(O){for(var A=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Lt=O[t[V]].length;if(Lt>A)switch(t[V]){case"textNode":tn(O);break;case"cdata":qe(O,"oncdata",O.cdata),O.cdata="";break;case"script":qe(O,"onscript",O.script),O.script="";break;default:St(O,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Lt)}var ze=e.MAX_BUFFER_LENGTH-Y;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var A=0,Y=t.length;A<Y;A++)O[t[A]]=""}o(r,"clearBuffers");function a(O){tn(O),O.cdata!==""&&(qe(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(qe(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){qt(this)},"end"),write:tt,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function u(O,A){return new p(O,A)}o(u,"createStream");function p(O,A){if(!(this instanceof p))return new p(O,A);s.apply(this),this._parser=new n(O,A),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var A=require("string_decoder").StringDecoder;this._decoder=new A("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,A){var Y=this;return!Y._parser["on"+O]&&l.indexOf(O)!==-1&&(Y._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,O,A)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",E="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:E},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,M=/[#:_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 $(O){return O===" "||O===`
|
|
20
|
-
`||O==="\r"||O===" "}o($,"isWhitespace");function se(O){return O==='"'||O==="'"}o(se,"isQuote");function te(O){return O===">"||$(O)}o(te,"isAttribEnd");function le(O,A){return O.test(A)}o(le,"isMatch");function Re(O,A){return!le(O,A)}o(Re,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(O){var A=e.ENTITIES[O],Y=typeof A=="number"?String.fromCharCode(A):A;e.ENTITIES[O]=Y});for(var Ue in e.STATE)e.STATE[e.STATE[Ue]]=Ue;D=e.STATE;function $e(O,A,Y){O[A]&&O[A](Y)}o($e,"emit");function qe(O,A,Y){O.textNode&&
|
|
19
|
+
</Annotations>`),r}o(gD,"inferTypeFromTerm");function u8(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(u8,"isDataFieldWithForAction");function p8(e,t,n,i,r){let a;return!r.type&&t?a=gD(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(p8,"parseRecordType");function Cb(e,t,n,i,r,a,s){let l={$Type:p8(e,t,n,i,a),fullyQualifiedName:s,[lo]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>dD(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",yD(e,a,l)),u8(l)&&(0,Se.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(Cb,"parseRecord");function d8(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(d8,"getOrInferCollectionType");function mD(e,t,n,i,r,a,s){switch(d8(a)){case"PropertyPath":return a.map((u,p)=>fD(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>hr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>uD(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>pD(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>Cb(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(mD,"parseCollection");function g8(e){return!!e.targetTypeName}o(g8,"isV4NavigationProperty");function m8(e,t,n){var i;let r;if(n.record)r=Cb(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=dD(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=mD(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[lo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Bg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",yD(e,n,r))}catch{}return r}o(m8,"convertAnnotation");var Ib=class Ib{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,Se.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,TD)}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,Se.addGetByValue)(i,"name"),(0,Se.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,Se.alias)(Bg.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(Ib,"Converter");var Pb=Ib;function vu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(vu,"resolveEntityType");function hD(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(hD,"resolveNavigationPropertyBindings");function da(e,t){let n=t.annotations;return()=>Hg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(da,"resolveAnnotations");function yD(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[lo]=n[lo],a.fullyQualifiedName=`${i}@${a.term}`}),Hg(e,n,r??[])}}o(yD,"resolveAnnotationsOnAnnotation");function Hg(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,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>m8(u,t,p))),i},{})}o(Hg,"createAnnotationsObject");function TD(e,t){let n=t;return(0,Se.lazy)(n,"annotations",da(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,bD)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,vD)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,SD)),n}o(TD,"convertEntityContainer");function vD(e,t){let n=t;(0,Se.lazy)(n,"entityType",vu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",da(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",hD(e,i)),n}o(vD,"convertSingleton");function bD(e,t){let n=t;(0,Se.lazy)(n,"entityType",vu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",da(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",hD(e,i)),n}o(bD,"convertEntitySet");function h8(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",da(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,xb)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,xb)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,ED)),(0,Se.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=hr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(h8,"convertEntityType");function xb(e,t){let n=t;return(0,Se.lazy)(n,"annotations",da(e,t)),(0,Se.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(xb,"convertProperty");function ED(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!g8(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,Se.lazy)(a,"targetType",vu(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",da(e,t)),a}o(ED,"convertNavigationProperty");function SD(e,t){let n=t;return(0,Se.lazy)(n,"annotations",da(e,t)),(0,Se.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(SD,"convertActionImport");function y8(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",vu(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",vu(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,T8)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.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 Hg(e,t,a)}),n}o(y8,"convertAction");function T8(e,t){let n=t;return(0,Se.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,Se.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 Hg(e,t,a)}),n}o(T8,"convertActionParameter");function v8(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,xb)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,ED)),(0,Se.lazy)(n,"annotations",da(e,t)),n}o(v8,"convertComplexType");function b8(e,t){let n=t;return(0,Se.lazy)(n,"annotations",da(e,t)),n}o(b8,"convertTypeDefinition");function E8(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Bg.VocabularyReferences,diagnostics:[]},n=new Pb(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,TD)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,bD)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,vD)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,h8)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,y8)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,v8)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,SD)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,b8)),t.resolvePath=o(function(r){let a=hr(n,void 0,r);return a.target&&pa(a.objectPath,a.target),a},"resolvePath"),t}o(E8,"convert");Gg.convert=E8});var ID=Ze(Kg=>{"use strict";Object.defineProperty(Kg,"__esModule",{value:!0});Kg.revertTermToGenericType=void 0;var Ob=$g();function S8(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let v=g.valueOf().split(".");v.length>1&&e.find(E=>E.alias===v[0])&&(m=Ob.EnumIsFlag[(0,Ob.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>Wg(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Wg(e,t)});return p}o(S8,"revertObjectToRawType");function PD(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=S8(e,t);break}return n}o(PD,"revertValueToRawType");var A8=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function xD(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=CD(e,t[i][r]);if(!a.term){let s=(0,Ob.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(xD,"revertAnnotationsToRawType");function Wg(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(A8.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:PD(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],xD(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(Wg,"revertCollectionItemToRawType");function CD(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=[],xD(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Wg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Wg(e,t)}:{...n,value:PD(e,t)}}o(CD,"revertTermToGenericType");Kg.revertTermToGenericType=CD});var OD=Ze(ga=>{"use strict";var P8=ga&&ga.__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]})),Rb=ga&&ga.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&P8(t,e,n)};Object.defineProperty(ga,"__esModule",{value:!0});Rb(AD(),ga);Rb($g(),ga);Rb(ID(),ga)});var _b=Ze(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});ns.MergedRawMetadata=ns.RawMetadataInstance=ns.ensureArray=void 0;function x8(e){return e==null?[]:Array.isArray(e)?e:[e]}o(x8,"ensureArray");ns.ensureArray=x8;var Fb=class Fb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(Fb,"RawMetadataInstance");var Lb=Fb;ns.RawMetadataInstance=Lb;var Db=class Db{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(Db,"MergedRawMetadata");var Nb=Db;ns.MergedRawMetadata=Nb});var RD=Ze(Xg=>{"use strict";Object.defineProperty(Xg,"__esModule",{value:!0});Xg.merge=void 0;var C8=_b();function I8(...e){let t=new C8.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(I8,"merge");Xg.merge=I8});var LD=Ze(Qg=>{(function(e){e.parser=function(O,A){return new n(O,A)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(O,A){if(!(this instanceof n))return new n(O,A);var Y=this;r(Y),Y.q=Y.c="",Y.bufferCheckPosition=e.MAX_BUFFER_LENGTH,Y.opt=A||{},Y.opt.lowercase=Y.opt.lowercase||Y.opt.lowercasetags,Y.looseCase=Y.opt.lowercase?"toLowerCase":"toUpperCase",Y.tags=[],Y.closed=Y.closedRoot=Y.sawRoot=!1,Y.tag=Y.error=null,Y.strict=!!O,Y.noscript=!!(O||Y.opt.noscript),Y.state=D.BEGIN,Y.strictEntities=Y.opt.strictEntities,Y.ENTITIES=Y.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),Y.attribList=[],Y.opt.xmlns&&(Y.ns=Object.create(b)),Y.opt.unquotedAttributeValues===void 0&&(Y.opt.unquotedAttributeValues=!O),Y.trackPosition=Y.opt.position!==!1,Y.trackPosition&&(Y.position=Y.line=Y.column=0),$e(Y,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(O){function A(){}o(A,"F"),A.prototype=O;var Y=new A;return Y}),Object.keys||(Object.keys=function(O){var A=[];for(var Y in O)O.hasOwnProperty(Y)&&A.push(Y);return A});function i(O){for(var A=Math.max(e.MAX_BUFFER_LENGTH,10),Y=0,V=0,_e=t.length;V<_e;V++){var Nt=O[t[V]].length;if(Nt>A)switch(t[V]){case"textNode":nn(O);break;case"cdata":qe(O,"oncdata",O.cdata),O.cdata="";break;case"script":qe(O,"onscript",O.script),O.script="";break;default:St(O,"Max buffer length exceeded: "+t[V])}Y=Math.max(Y,Nt)}var ze=e.MAX_BUFFER_LENGTH-Y;O.bufferCheckPosition=ze+O.position}o(i,"checkBufferLength");function r(O){for(var A=0,Y=t.length;A<Y;A++)O[t[A]]=""}o(r,"clearBuffers");function a(O){nn(O),O.cdata!==""&&(qe(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(qe(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){qt(this)},"end"),write:tt,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function u(O,A){return new p(O,A)}o(u,"createStream");function p(O,A){if(!(this instanceof p))return new p(O,A);s.apply(this),this._parser=new n(O,A),this.writable=!0,this.readable=!0;var Y=this;this._parser.onend=function(){Y.emit("end")},this._parser.onerror=function(V){Y.emit("error",V),Y._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(Y,"on"+V,{get:o(function(){return Y._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return Y.removeAllListeners(V),Y._parser["on"+V]=_e,_e;Y.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var A=require("string_decoder").StringDecoder;this._decoder=new A("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,A){var Y=this;return!Y._parser["on"+O]&&l.indexOf(O)!==-1&&(Y._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),Y.emit.apply(Y,V)}),s.prototype.on.call(Y,O,A)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",E="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:E},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,N=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\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 $(O){return O===" "||O===`
|
|
20
|
+
`||O==="\r"||O===" "}o($,"isWhitespace");function se(O){return O==='"'||O==="'"}o(se,"isQuote");function te(O){return O===">"||$(O)}o(te,"isAttribEnd");function le(O,A){return O.test(A)}o(le,"isMatch");function Re(O,A){return!le(O,A)}o(Re,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(O){var A=e.ENTITIES[O],Y=typeof A=="number"?String.fromCharCode(A):A;e.ENTITIES[O]=Y});for(var Ue in e.STATE)e.STATE[e.STATE[Ue]]=Ue;D=e.STATE;function $e(O,A,Y){O[A]&&O[A](Y)}o($e,"emit");function qe(O,A,Y){O.textNode&&nn(O),$e(O,A,Y)}o(qe,"emitNode");function nn(O){O.textNode=$t(O.opt,O.textNode),O.textNode&&$e(O,"ontext",O.textNode),O.textNode=""}o(nn,"closeText");function $t(O,A){return O.trim&&(A=A.trim()),O.normalize&&(A=A.replace(/\s+/g," ")),A}o($t,"textopts");function St(O,A){return nn(O),O.trackPosition&&(A+=`
|
|
21
21
|
Line: `+O.line+`
|
|
22
22
|
Column: `+O.column+`
|
|
23
|
-
Char: `+O.c),A=new Error(A),O.error=A,$e(O,"onerror",A),O}o(St,"error");function qt(O){return O.sawRoot&&!O.closedRoot&&Le(O,"Unclosed root tag"),O.state!==D.BEGIN&&O.state!==D.BEGIN_WHITESPACE&&O.state!==D.TEXT&&St(O,"Unexpected end"),
|
|
23
|
+
Char: `+O.c),A=new Error(A),O.error=A,$e(O,"onerror",A),O}o(St,"error");function qt(O){return O.sawRoot&&!O.closedRoot&&Le(O,"Unclosed root tag"),O.state!==D.BEGIN&&O.state!==D.BEGIN_WHITESPACE&&O.state!==D.TEXT&&St(O,"Unexpected end"),nn(O),O.c="",O.closed=!0,$e(O,"onend"),n.call(O,O.strict,O.opt),O}o(qt,"end");function Le(O,A){if(typeof O!="object"||!(O instanceof n))throw new Error("bad call to strictFail");O.strict&&St(O,A)}o(Le,"strictFail");function Tn(O){O.strict||(O.tagName=O.tagName[O.looseCase]());var A=O.tags[O.tags.length-1]||O,Y=O.tag={name:O.tagName,attributes:{}};O.opt.xmlns&&(Y.ns=A.ns),O.attribList.length=0,qe(O,"onopentagstart",Y)}o(Tn,"newTag");function vn(O,A){var Y=O.indexOf(":"),V=Y<0?["",O]:O.split(":"),_e=V[0],Nt=V[1];return A&&O==="xmlns"&&(_e="xmlns",Nt=""),{prefix:_e,local:Nt}}o(vn,"qname");function rn(O){if(O.strict||(O.attribName=O.attribName[O.looseCase]()),O.attribList.indexOf(O.attribName)!==-1||O.tag.attributes.hasOwnProperty(O.attribName)){O.attribName=O.attribValue="";return}if(O.opt.xmlns){var A=vn(O.attribName,!0),Y=A.prefix,V=A.local;if(Y==="xmlns")if(V==="xml"&&O.attribValue!==v)Le(O,"xml: prefix must be bound to "+v+`
|
|
24
24
|
Actual: `+O.attribValue);else if(V==="xmlns"&&O.attribValue!==E)Le(O,"xmlns: prefix must be bound to "+E+`
|
|
25
|
-
Actual: `+O.attribValue);else{var _e=O.tag,
|
|
25
|
+
Actual: `+O.attribValue);else{var _e=O.tag,Nt=O.tags[O.tags.length-1]||O;_e.ns===Nt.ns&&(_e.ns=Object.create(Nt.ns)),_e.ns[V]=O.attribValue}O.attribList.push([O.attribName,O.attribValue])}else O.tag.attributes[O.attribName]=O.attribValue,qe(O,"onattribute",{name:O.attribName,value:O.attribValue});O.attribName=O.attribValue=""}o(rn,"attrib");function On(O,A){if(O.opt.xmlns){var Y=O.tag,V=vn(O.tagName);Y.prefix=V.prefix,Y.local=V.local,Y.uri=Y.ns[V.prefix]||"",Y.prefix&&!Y.uri&&(Le(O,"Unbound namespace prefix: "+JSON.stringify(O.tagName)),Y.uri=V.prefix);var _e=O.tags[O.tags.length-1]||O;Y.ns&&_e.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(Ht){qe(O,"onopennamespace",{prefix:Ht,uri:Y.ns[Ht]})});for(var Nt=0,ze=O.attribList.length;Nt<ze;Nt++){var Mt=O.attribList[Nt],bn=Mt[0],fn=Mt[1],Bt=vn(bn,!0),ii=Bt.prefix,cr=Bt.local,mn=ii===""?"":Y.ns[ii]||"",mi={name:bn,value:fn,prefix:ii,local:cr,uri:mn};ii&&ii!=="xmlns"&&!mn&&(Le(O,"Unbound namespace prefix: "+JSON.stringify(ii)),mi.uri=ii),O.tag.attributes[bn]=mi,qe(O,"onattribute",mi)}O.attribList.length=0}O.tag.isSelfClosing=!!A,O.sawRoot=!0,O.tags.push(O.tag),qe(O,"onopentag",O.tag),A||(!O.noscript&&O.tagName.toLowerCase()==="script"?O.state=D.SCRIPT:O.state=D.TEXT,O.tag=null,O.tagName=""),O.attribName=O.attribValue="",O.attribList.length=0}o(On,"openTag");function on(O){if(!O.tagName){Le(O,"Weird empty close tag."),O.textNode+="</>",O.state=D.TEXT;return}if(O.script){if(O.tagName!=="script"){O.script+="</"+O.tagName+">",O.tagName="",O.state=D.SCRIPT;return}qe(O,"onscript",O.script),O.script=""}var A=O.tags.length,Y=O.tagName;O.strict||(Y=Y[O.looseCase]());for(var V=Y;A--;){var _e=O.tags[A];if(_e.name!==V)Le(O,"Unexpected close tag");else break}if(A<0){Le(O,"Unmatched closing tag: "+O.tagName),O.textNode+="</"+O.tagName+">",O.state=D.TEXT;return}O.tagName=Y;for(var Nt=O.tags.length;Nt-- >A;){var ze=O.tag=O.tags.pop();O.tagName=O.tag.name,qe(O,"onclosetag",O.tagName);var Mt={};for(var bn in ze.ns)Mt[bn]=ze.ns[bn];var fn=O.tags[O.tags.length-1]||O;O.opt.xmlns&&ze.ns!==fn.ns&&Object.keys(ze.ns).forEach(function(Bt){var ii=ze.ns[Bt];qe(O,"onclosenamespace",{prefix:Bt,uri:ii})})}A===0&&(O.closedRoot=!0),O.tagName=O.attribValue=O.attribName="",O.attribList.length=0,O.state=D.TEXT}o(on,"closeTag");function Ie(O){var A=O.entity,Y=A.toLowerCase(),V,_e="";return O.ENTITIES[A]?O.ENTITIES[A]:O.ENTITIES[Y]?O.ENTITIES[Y]:(A=Y,A.charAt(0)==="#"&&(A.charAt(1)==="x"?(A=A.slice(2),V=parseInt(A,16),_e=V.toString(16)):(A=A.slice(1),V=parseInt(A,10),_e=V.toString(10))),A=A.replace(/^0+/,""),isNaN(V)||_e.toLowerCase()!==A?(Le(O,"Invalid character entity"),"&"+O.entity+";"):String.fromCodePoint(V))}o(Ie,"parseEntity");function ln(O,A){A==="<"?(O.state=D.OPEN_WAKA,O.startTagPosition=O.position):$(A)||(Le(O,"Non-whitespace before first tag."),O.textNode=A,O.state=D.TEXT)}o(ln,"beginWhiteSpace");function Oi(O,A){var Y="";return A<O.length&&(Y=O.charAt(A)),Y}o(Oi,"charAt");function tt(O){var A=this;if(this.error)throw this.error;if(A.closed)return St(A,"Cannot write after close. Assign an onready handler.");if(O===null)return qt(A);typeof O=="object"&&(O=O.toString());for(var Y=0,V="";V=Oi(O,Y++),A.c=V,!!V;)switch(A.trackPosition&&(A.position++,V===`
|
|
26
26
|
`?(A.line++,A.column=0):A.column++),A.state){case D.BEGIN:if(A.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;ln(A,V);continue;case D.BEGIN_WHITESPACE:ln(A,V);continue;case D.TEXT:if(A.sawRoot&&!A.closedRoot){for(var _e=Y-1;V&&V!=="<"&&V!=="&";)V=Oi(O,Y++),V&&A.trackPosition&&(A.position++,V===`
|
|
27
|
-
`?(A.line++,A.column=0):A.column++);A.textNode+=O.substring(_e,Y-1)}V==="<"&&!(A.sawRoot&&A.closedRoot&&!A.strict)?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):(!$(V)&&(!A.sawRoot||A.closedRoot)&&Le(A,"Text data outside of root node."),V==="&"?A.state=D.TEXT_ENTITY:A.textNode+=V);continue;case D.SCRIPT:V==="<"?A.state=D.SCRIPT_ENDING:A.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?A.state=D.CLOSE_TAG:(A.script+="<"+V,A.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")A.state=D.SGML_DECL,A.sgmlDecl="";else if(!$(V))if(le(I,V))A.state=D.OPEN_TAG,A.tagName=V;else if(V==="/")A.state=D.CLOSE_TAG,A.tagName="";else if(V==="?")A.state=D.PROC_INST,A.procInstName=A.procInstBody="";else{if(Le(A,"Unencoded <"),A.startTagPosition+1<A.position){var Lt=A.position-A.startTagPosition;V=new Array(Lt).join(" ")+V}A.textNode+="<"+V,A.state=D.TEXT}continue;case D.SGML_DECL:if(A.sgmlDecl+V==="--"){A.state=D.COMMENT,A.comment="",A.sgmlDecl="";continue}A.doctype&&A.doctype!==!0&&A.sgmlDecl?(A.state=D.DOCTYPE_DTD,A.doctype+="<!"+A.sgmlDecl+V,A.sgmlDecl=""):(A.sgmlDecl+V).toUpperCase()===g?(qe(A,"onopencdata"),A.state=D.CDATA,A.sgmlDecl="",A.cdata=""):(A.sgmlDecl+V).toUpperCase()===m?(A.state=D.DOCTYPE,(A.doctype||A.sawRoot)&&Le(A,"Inappropriately located doctype declaration"),A.doctype="",A.sgmlDecl=""):V===">"?(qe(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=D.TEXT):(se(V)&&(A.state=D.SGML_DECL_QUOTED),A.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===A.q&&(A.state=D.SGML_DECL,A.q=""),A.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(A.state=D.TEXT,qe(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=V,V==="["?A.state=D.DOCTYPE_DTD:se(V)&&(A.state=D.DOCTYPE_QUOTED,A.q=V));continue;case D.DOCTYPE_QUOTED:A.doctype+=V,V===A.q&&(A.q="",A.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(A.doctype+=V,A.state=D.DOCTYPE):V==="<"?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):se(V)?(A.doctype+=V,A.state=D.DOCTYPE_DTD_QUOTED,A.q=V):A.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:A.doctype+=V,V===A.q&&(A.state=D.DOCTYPE_DTD,A.q="");continue;case D.COMMENT:V==="-"?A.state=D.COMMENT_ENDING:A.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(A.state=D.COMMENT_ENDED,A.comment=$t(A.opt,A.comment),A.comment&&qe(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+V,A.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Le(A,"Malformed comment"),A.comment+="--"+V,A.state=D.COMMENT):A.doctype&&A.doctype!==!0?A.state=D.DOCTYPE_DTD:A.state=D.TEXT;continue;case D.CDATA:V==="]"?A.state=D.CDATA_ENDING:A.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?A.state=D.CDATA_ENDING_2:(A.cdata+="]"+V,A.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(A.cdata&&qe(A,"oncdata",A.cdata),qe(A,"onclosecdata"),A.cdata="",A.state=D.TEXT):V==="]"?A.cdata+="]":(A.cdata+="]]"+V,A.state=D.CDATA);continue;case D.PROC_INST:V==="?"?A.state=D.PROC_INST_ENDING:$(V)?A.state=D.PROC_INST_BODY:A.procInstName+=V;continue;case D.PROC_INST_BODY:if(!A.procInstBody&&$(V))continue;V==="?"?A.state=D.PROC_INST_ENDING:A.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(qe(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=D.TEXT):(A.procInstBody+="?"+V,A.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:le(F,V)?A.tagName+=V:(Tn(A),V===">"?On(A):V==="/"?A.state=D.OPEN_TAG_SLASH:($(V)||Le(A,"Invalid character in tag name"),A.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(On(A,!0),rn(A)):(Le(A,"Forward-slash in opening tag not followed by >"),A.state=D.ATTRIB);continue;case D.ATTRIB:if($(V))continue;V===">"?On(A):V==="/"?A.state=D.OPEN_TAG_SLASH:le(I,V)?(A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Le(A,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?A.state=D.ATTRIB_VALUE:V===">"?(Le(A,"Attribute without value"),A.attribValue=A.attribName,nn(A),On(A)):$(V)?A.state=D.ATTRIB_NAME_SAW_WHITE:le(F,V)?A.attribName+=V:Le(A,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")A.state=D.ATTRIB_VALUE;else{if($(V))continue;Le(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",qe(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",V===">"?On(A):le(I,V)?(A.attribName=V,A.state=D.ATTRIB_NAME):(Le(A,"Invalid attribute name"),A.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if($(V))continue;se(V)?(A.q=V,A.state=D.ATTRIB_VALUE_QUOTED):(A.opt.unquotedAttributeValues||St(A,"Unquoted attribute value"),A.state=D.ATTRIB_VALUE_UNQUOTED,A.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==A.q){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=V;continue}nn(A),A.q="",A.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:$(V)?A.state=D.ATTRIB:V===">"?On(A):V==="/"?A.state=D.OPEN_TAG_SLASH:le(I,V)?(Le(A,"No whitespace between attributes"),A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Le(A,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!te(V)){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_U:A.attribValue+=V;continue}nn(A),V===">"?On(A):A.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(A.tagName)V===">"?rn(A):le(F,V)?A.tagName+=V:A.script?(A.script+="</"+A.tagName,A.tagName="",A.state=D.SCRIPT):($(V)||Le(A,"Invalid tagname in closing tag"),A.state=D.CLOSE_TAG_SAW_WHITE);else{if($(V))continue;Re(I,V)?A.script?(A.script+="</"+V,A.state=D.SCRIPT):Le(A,"Invalid tagname in closing tag."):A.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if($(V))continue;V===">"?rn(A):Le(A,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var ze,Mt;switch(A.state){case D.TEXT_ENTITY:ze=D.TEXT,Mt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:ze=D.ATTRIB_VALUE_QUOTED,Mt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:ze=D.ATTRIB_VALUE_UNQUOTED,Mt="attribValue";break}if(V===";"){var bn=Ie(A);A.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(bn)?(A.entity="",A.state=ze,A.write(bn)):(A[Mt]+=bn,A.entity="",A.state=ze)}else le(A.entity.length?G:M,V)?A.entity+=V:(Le(A,"Invalid character in entity name"),A[Mt]+="&"+A.entity+V,A.entity="",A.state=ze);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&i(A),A}o(tt,"write");String.fromCodePoint||function(){var O=String.fromCharCode,A=Math.floor,Y=o(function(){var V=16384,_e=[],Lt,ze,Mt=-1,bn=arguments.length;if(!bn)return"";for(var fn="";++Mt<bn;){var Bt=Number(arguments[Mt]);if(!isFinite(Bt)||Bt<0||Bt>1114111||A(Bt)!==Bt)throw RangeError("Invalid code point: "+Bt);Bt<=65535?_e.push(Bt):(Bt-=65536,Lt=(Bt>>10)+55296,ze=Bt%1024+56320,_e.push(Lt,ze)),(Mt+1===bn||_e.length>V)&&(fn+=O.apply(null,_e),_e.length=0)}return fn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof Qg>"u"?Qg.sax={}:Qg)});var qg=Ze((bee,RD)=>{RD.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Yg=Ze((See,LD)=>{var C8=qg().isArray;LD.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"&&!C8(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 Vb=Ze((Pee,kD)=>{var I8=OD(),O8={on:o(function(){},"on"),parse:o(function(){},"parse")},ot=Yg(),Pl=qg().isArray,H,_b=!0,He;function R8(e){return H=ot.copyOptions(e),ot.ensureFlagExists("ignoreDeclaration",H),ot.ensureFlagExists("ignoreInstruction",H),ot.ensureFlagExists("ignoreAttributes",H),ot.ensureFlagExists("ignoreText",H),ot.ensureFlagExists("ignoreComment",H),ot.ensureFlagExists("ignoreCdata",H),ot.ensureFlagExists("ignoreDoctype",H),ot.ensureFlagExists("compact",H),ot.ensureFlagExists("alwaysChildren",H),ot.ensureFlagExists("addParent",H),ot.ensureFlagExists("trim",H),ot.ensureFlagExists("nativeType",H),ot.ensureFlagExists("nativeTypeAttributes",H),ot.ensureFlagExists("sanitize",H),ot.ensureFlagExists("instructionHasAttributes",H),ot.ensureFlagExists("captureSpacesBetweenElements",H),ot.ensureAlwaysArrayExists(H),ot.ensureKeyExists("declaration",H),ot.ensureKeyExists("instruction",H),ot.ensureKeyExists("attributes",H),ot.ensureKeyExists("text",H),ot.ensureKeyExists("comment",H),ot.ensureKeyExists("cdata",H),ot.ensureKeyExists("doctype",H),ot.ensureKeyExists("type",H),ot.ensureKeyExists("name",H),ot.ensureKeyExists("elements",H),ot.ensureKeyExists("parent",H),ot.checkFnExists("doctype",H),ot.checkFnExists("instruction",H),ot.checkFnExists("cdata",H),ot.checkFnExists("comment",H),ot.checkFnExists("text",H),ot.checkFnExists("instructionName",H),ot.checkFnExists("elementName",H),ot.checkFnExists("attributeName",H),ot.checkFnExists("attributeValue",H),ot.checkFnExists("attributes",H),H}o(R8,"validateOptions");function wD(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(wD,"nativeType");function bu(e,t){var n;if(H.compact){if(!He[H[e+"Key"]]&&(Pl(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&(He[H[e+"Key"]]=[]),He[H[e+"Key"]]&&!Pl(He[H[e+"Key"]])&&(He[H[e+"Key"]]=[He[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,He)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,He);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,He)]=i}}Pl(He[H[e+"Key"]])?He[H[e+"Key"]].push(t):He[H[e+"Key"]]=t}else{He[H.elementsKey]||(He[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,He):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,He))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,He)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,He)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=He),He[H.elementsKey].push(r)}}o(bu,"addField");function MD(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,He)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=wD(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,He)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],He)]=n}}return e}o(MD,"manipulateAttributes");function L8(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=MD(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;He[H.declarationKey]={},Object.keys(t).length&&(He[H.declarationKey][H.attributesKey]=t),H.addParent&&(He[H.declarationKey][H.parentKey]=He)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,bu("instruction",r)}}o(L8,"onInstruction");function ND(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=MD(t),"elementNameFn"in H&&(e=H.elementNameFn(e,He)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in He)&&(Pl(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&(He[e]=[]),He[e]&&!Pl(He[e])&&(He[e]=[He[e]]),Pl(He[e])?He[e].push(n):He[e]=n}else He[H.elementsKey]||(He[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),He[H.elementsKey].push(n);n[H.parentKey]=He,He=n}o(ND,"onStartElement");function FD(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=wD(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),bu("text",e))}o(FD,"onText");function DD(e){H.ignoreComment||(H.trim&&(e=e.trim()),bu("comment",e))}o(DD,"onComment");function _D(e){var t=He[H.parentKey];H.addParent||delete He[H.parentKey],He=t}o(_D,"onEndElement");function N8(e){H.ignoreCdata||(H.trim&&(e=e.trim()),bu("cdata",e))}o(N8,"onCdata");function F8(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),bu("doctype",e))}o(F8,"onDoctype");function VD(e){e.note=e}o(VD,"onError");kD.exports=function(e,t){var n=_b?I8.parser(!0,{}):n=new O8.Parser("UTF-8"),i={};if(He=i,H=R8(t),_b?(n.opt={strictEntities:!0},n.onopentag=ND,n.ontext=FD,n.oncomment=DD,n.onclosetag=_D,n.onerror=VD,n.oncdata=N8,n.ondoctype=F8,n.onprocessinginstruction=L8):(n.on("startElement",ND),n.on("text",FD),n.on("comment",DD),n.on("endElement",_D),n.on("error",VD)),_b)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 $D=Ze((Cee,UD)=>{var jD=Yg(),D8=Vb();function _8(e){var t=jD.copyOptions(e);return jD.ensureSpacesExists(t),t}o(_8,"validateOptions");UD.exports=function(e,t){var n,i,r,a;return n=_8(t),i=D8(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 Mb=Ze((Oee,YD)=>{var lt=Yg(),V8=qg().isArray,vi,bi;function w8(e){var t=lt.copyOptions(e);return lt.ensureFlagExists("ignoreDeclaration",t),lt.ensureFlagExists("ignoreInstruction",t),lt.ensureFlagExists("ignoreAttributes",t),lt.ensureFlagExists("ignoreText",t),lt.ensureFlagExists("ignoreComment",t),lt.ensureFlagExists("ignoreCdata",t),lt.ensureFlagExists("ignoreDoctype",t),lt.ensureFlagExists("compact",t),lt.ensureFlagExists("indentText",t),lt.ensureFlagExists("indentCdata",t),lt.ensureFlagExists("indentAttributes",t),lt.ensureFlagExists("indentInstruction",t),lt.ensureFlagExists("fullTagEmptyElement",t),lt.ensureFlagExists("noQuotesForNativeAttributes",t),lt.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),lt.ensureKeyExists("declaration",t),lt.ensureKeyExists("instruction",t),lt.ensureKeyExists("attributes",t),lt.ensureKeyExists("text",t),lt.ensureKeyExists("comment",t),lt.ensureKeyExists("cdata",t),lt.ensureKeyExists("doctype",t),lt.ensureKeyExists("type",t),lt.ensureKeyExists("name",t),lt.ensureKeyExists("elements",t),lt.checkFnExists("doctype",t),lt.checkFnExists("instruction",t),lt.checkFnExists("cdata",t),lt.checkFnExists("comment",t),lt.checkFnExists("text",t),lt.checkFnExists("instructionName",t),lt.checkFnExists("elementName",t),lt.checkFnExists("attributeName",t),lt.checkFnExists("attributeValue",t),lt.checkFnExists("attributes",t),lt.checkFnExists("fullTagEmptyElement",t),t}o(w8,"validateOptions");function _o(e,t,n){return(!n&&e.spaces?`
|
|
28
|
-
`:"")+Array(t+1).join(e.spaces)}o(
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(k8,"writeElement");function XD(e,t,n,i){return e.reduce(function(r,a){var s=_o(t,n,i&&!r);switch(a.type){case"element":return r+s+k8(a,t,n);case"comment":return r+s+GD(a[t.commentKey],t);case"doctype":return r+s+KD(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+WD(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+wb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+HD(l,t,n)}},"")}o(XD,"writeElements");function QD(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(QD,"hasContentCompact");function j8(e,t,n,i,r){vi=e,bi=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(">"+wb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(zg(e[n.attributesKey],n,i));var l=QD(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(qD(e,n,i+1,!1)),vi=e,bi=t,t&&s.push((r?_o(n,i,!1):"")+"</"+a+">"),s.join("")}o(j8,"writeElementCompact");function qD(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=V8(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(BD(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?_o(t,n,i):"")+HD(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?_o(t,n,i):"")+wb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?_o(t,n,i):"")+WD(s[r],t));break;case t.doctypeKey:l.push(_o(t,n,i)+KD(s[r],t));break;case t.commentKey:l.push(_o(t,n,i)+GD(s[r],t));break;default:l.push(_o(t,n,i)+j8(s[r],a,t,n,QD(s[r],t)))}i=i&&!l.length}return l.join("")}o(qD,"writeElementsCompact");YD.exports=function(e,t){t=w8(t);var n=[];return vi=e,bi="_root_",t.compact?n.push(qD(e,t,0,!0)):(e[t.declarationKey]&&n.push(BD(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(XD(e[t.elementsKey],t,0,!n.length))),n.join("")}});var JD=Ze((Lee,zD)=>{var U8=Mb();zD.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 U8(n,t)}});var uc=Ze((Nee,ZD)=>{var $8=Vb(),B8=$D(),H8=Mb(),G8=JD();ZD.exports={xml2js:$8,xml2json:B8,js2xml:H8,json2xml:G8}});var o0=Ze(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.convertEntityTypeAnnotations=qi.convertPropertyAnnotations=qi.convertNavigationPropertyAnnotations=qi.convertEntitySetAnnotations=qi.convertGenericAnnotations=qi.convertV2Annotations=void 0;function W8(e,t,n){let i=[];switch(t){case"EntitySet":t0(e,i);break;case"EntityType":r0(e,i);break;case"NavigationProperty":n0(e,n,i);break;case"Property":i0(e,n,i);break;case"Singleton":break;default:break}return e0(e,n,i),i}o(W8,"convertV2Annotations");qi.convertV2Annotations=W8;function e0(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(e0,"convertGenericAnnotations");qi.convertGenericAnnotations=e0;function t0(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(t0,"convertEntitySetAnnotations");qi.convertEntitySetAnnotations=t0;function n0(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(n0,"convertNavigationPropertyAnnotations");qi.convertNavigationPropertyAnnotations=n0;function i0(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(i0,"convertPropertyAnnotations");qi.convertPropertyAnnotations=i0;function r0(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(r0,"convertEntityTypeAnnotations");qi.convertEntityTypeAnnotations=r0});var u0=Ze(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.parse=void 0;var K8=uc(),Ge=Db(),Eu=o0(),em=/^Collection\((.+)\)$/;function X8(e){return e.Type!==null&&e.Type!==void 0}o(X8,"isV4NavProperty");function Q8(e){return e.map(t=>t._attributes.Name)}o(Q8,"getEntityTypeKeys");function c0(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:xl(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,Eu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(pc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(c0,"parseProperties");function q8(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(q8,"parseReferentialConstraint");function Y8(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,Ge.ensureArray)(i.Principal.PropertyRef),l=(0,Ge.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,Ge.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(Y8,"parseV2ReferentialConstraint");function l0(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(X8(s)){let l=s.Type.match(em),u=l!==null,p=Vo(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:q8((0,Ge.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,Eu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(pc(`${n}/${s.Name}`,g))}return r},[])}o(l0,"parseNavigationProperties");function z8(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,Ge.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(z8,"parseAssociationSets");function J8(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Ge.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:Y8((0,Ge.ensureArray)(n.ReferentialConstraint),r)}})}o(J8,"parseAssociations");function Z8(e,t,n){return e.reduce((i,r)=>{let a=r.Key?Q8((0,Ge.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=c0((0,Ge.ensureArray)(r.Property),a,s,t),p=l0((0,Ge.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,Eu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(pc(g.fullyQualifiedName,m)),i.push(g),i},[])}o(Z8,"parseEntityTypes");function eK(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=c0((0,Ge.ensureArray)(r.Property),[],a,t),l=l0((0,Ge.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(eK,"parseComplexTypes");function tK(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(tK,"parseTypeDefinitions");function nK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Vo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,Eu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(pc(l.fullyQualifiedName,u)),l})}o(nK,"parseEntitySets");function iK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Vo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,Eu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(pc(l.fullyQualifiedName,u)),l})}o(iK,"parseSingletons");function a0(e,t,n){return e.map(i=>{let r=(0,Ge.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>xl(u._attributes.Type).type).join(","):s=a?xl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?xl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=xl(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?xl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(em)!==null:!1}})}o(a0,"parseActions");function rK(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,Ge.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(em)!==null:!1}})}o(rK,"parseV2FunctionImport");function s0(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Vo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Vo(r)}})}o(s0,"parseActionImports");function oK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Zg(s,p,n,!1):u&&(l.value=f0({[u]:a[u]},p,n)),i.Annotation){let g=nm((0,Ge.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(pc(p,g))}}return l})}o(oK,"parsePropertyValues");function tm(e,t,n){let i=nm((0,Ge.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Vo(e._attributes.Type):void 0,propertyValues:oK((0,Ge.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(tm,"parseRecord");function ma(e,t){return e[t]!=null}o(ma,"isExpressionOfType");function Jg(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(Jg,"parseModelPath");function jb(e,t,n){if(ma(e,"Record")){let i=(0,Ge.ensureArray)(e.Record).map((r,a)=>tm(r,t+"/"+a,n));return i.type="Record",i}else if(ma(e,"PropertyPath")){let i=(0,Ge.ensureArray)(e.PropertyPath).map(r=>Jg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ma(e,"NavigationPropertyPath")){let i=(0,Ge.ensureArray)(e.NavigationPropertyPath).map(r=>Jg(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ma(e,"String")){let i=(0,Ge.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ma(e,"AnnotationPath")){let i=(0,Ge.ensureArray)(e.AnnotationPath).map(r=>Jg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ma(e,"Path")){let i=(0,Ge.ensureArray)(e.Path).map(r=>Jg(r,"Path"));return i.type="Path",i}else if(ma(e,"If")){let i=(0,Ge.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(jb,"parseCollection");function Sn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Zg({[i]:r},"",[],!0))):n.push(Zg({[i]:e[i]},"",[],!0))}),n}o(Sn,"parseChildren");function f0(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:jb(e.Collection,t,n)};case"Record":return{type:"Record",Record:tm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Sn(e.Apply),$Function:Sn(e.Function)};case"And":return{type:"And",$And:Sn(e.And)};case"Or":return{type:"Or",$Or:Sn(e.Or)};case"Eq":return{type:"Eq",$Eq:Sn(e.Eq)};case"Gt":return{type:"Gt",$Gt:Sn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Sn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Sn(e.Lt)};case"Le":return{type:"Le",$Le:Sn(e.Le)};case"If":return{type:"If",$If:Sn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(f0,"parseInlineExpression");function Zg(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:Sn(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:jb(e.Collection,t,n)};case"Record":return{type:"Record",Record:tm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Sn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Sn(e.And)};case"Ne":return{type:"Ne",$Ne:Sn(e.Ne)};case"Not":return{type:"Not",$Not:Sn(e.Not)[0]};case"Or":return{type:"Or",$Or:Sn(e.Or)};case"Eq":return{type:"Eq",$Eq:Sn(e.Eq)};case"If":return{type:"If",$If:Sn(e.If)};case"Gt":return{type:"Gt",$Gt:Sn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Sn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Sn(e.Lt)};case"Le":return{type:"Le",$Le:Sn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Zg,"parseExpression");function aK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Vo(i),qualifier:r},l=`${t}@${Vo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=f0(a,l,n)),e.Annotation){let p=nm((0,Ge.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ma(e,"Record")?s.record=tm(e.Record,l,n):ma(e,"Collection")?s.collection=jb(e.Collection,l,n):u.length===1?s.value=Zg({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(aK,"parseAnnotation");function nm(e,t,n){return e.map(i=>aK(i,t,n))}o(nm,"parseAnnotations");function pc(e,t){return{target:e,annotations:t}}o(pc,"createAnnotationList");function sK(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(pc(Vo(n._attributes.Target),nm((0,Ge.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(sK,"parseAnnotationLists");function cK(e,t,n){let i=e._attributes.Namespace,r=[],a=Z8((0,Ge.ensureArray)(e.EntityType),r,i),s=eK((0,Ge.ensureArray)(e.ComplexType),r,i),l=tK((0,Ge.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],E=[];if(e.EntityContainer)if(u=nK((0,Ge.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=iK((0,Ge.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=z8((0,Ge.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(rK((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")E=E.concat(s0((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),E=E.concat(s0((0,Ge.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(a0((0,Ge.ensureArray)(e.Action),i,!1)),v=v.concat(a0((0,Ge.ensureArray)(e.Function),i,!0)));let b=J8((0,Ge.ensureArray)(e.Association),i);sK((0,Ge.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:g,annotations:I,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:E,entityTypes:a}}o(cK,"parseSchema");function lK(e){return e.reduce((t,n)=>((0,Ge.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(lK,"parseReferences");var kb={};function xl(e){let t=e.match(em),n=t?t[1]:e,i=Vo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(xl,"unaliasType");function Vo(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=kb[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(Vo,"unalias");function fK(e){let t=e.reduce((E,b)=>E.concat(b.associations),[]),n=e.reduce((E,b)=>E.concat(b.associationSets),[]),i=e.reduce((E,b)=>E.concat(b.entitySets),[]),r=e.reduce((E,b)=>E.concat(b.singletons),[]),a=e.reduce((E,b)=>E.concat(b.entityTypes),[]),s=e.reduce((E,b)=>E.concat(b.actions),[]),l=e.reduce((E,b)=>E.concat(b.actionImports),[]),u=e.reduce((E,b)=>E.concat(b.complexTypes),[]),p=e.reduce((E,b)=>E.concat(b.typeDefinitions),[]),g={};e.forEach(E=>{g=Object.assign(g,E.annotations)});let m,v;return e.forEach(E=>{E.entityContainer&&Object.keys(E.entityContainer).length>0&&(m=E.entityContainer,v=E.namespace)}),i.forEach(E=>{let b=a.find(I=>I.fullyQualifiedName===E.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let F=I,M=n.find(G=>G.association===F.relationship);if(M){let G=M.associationEnd.find($=>$.entitySet!==E.fullyQualifiedName);G&&(E.navigationPropertyBinding[I.name]=G.entitySet)}})}),a.forEach(E=>{E.navigationProperties.forEach(b=>{let I=b,F=t.find(M=>M.fullyQualifiedName===I.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===E.fullyQualifiedName?I.referentialConstraint=F.referentialConstraints:I.referentialConstraint=F.referentialConstraints.map(M=>({sourceTypeName:M.targetTypeName,sourceProperty:M.targetProperty,targetTypeName:M.sourceTypeName,targetProperty:M.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(fK,"mergeSchemas");function uK(e,t){kb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{kb[n._attributes.Alias]=n._attributes.Namespace})}o(uK,"createAliasMap");function pK(e,t="serviceFile"){let n=(0,K8.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=lK((0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));uK(a,r);let s=r.map(u=>cK(u,i,t));return new Ge.RawMetadataInstance(t,i,fK(s),a)}o(pK,"parse");im.parse=pK});var p0=Ze(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.parse=Cl.merge=void 0;var dK=ID();Object.defineProperty(Cl,"merge",{enumerable:!0,get:o(function(){return dK.merge},"get")});var gK=u0();Object.defineProperty(Cl,"parse",{enumerable:!0,get:o(function(){return gK.parse},"get")})});var x0=Ze(()=>{var P0;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return Zs(Object.create(null))}:u?function(){return Zs({__proto__:null})}:function(){return Zs({})},has:p?function(j,B){return i.call(j,B)}:function(j,B){return B in j},get:p?function(j,B){return i.call(j,B)?j[B]:void 0}:function(j,B){return j[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Qf(),E=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:qf(),b=typeof WeakMap=="function"?WeakMap:Yf(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Hi(),M=Xf(F);function G(j,B,q,ce){if(Ie(q)){if(!Lt(j))throw new TypeError;if(!Mt(B))throw new TypeError;return tn(j,B)}else{if(!Lt(j))throw new TypeError;if(!tt(B))throw new TypeError;if(!tt(ce)&&!Ie(ce)&&!ln(ce))throw new TypeError;return ln(ce)&&(ce=void 0),q=_e(q),$t(j,B,q,ce)}}o(G,"decorate"),t("decorate",G);function $(j,B){function q(ce,Fe){if(!tt(ce))throw new TypeError;if(!Ie(Fe)&&!bn(Fe))throw new TypeError;vn(j,B,ce,Fe)}return o(q,"decorator"),q}o($,"metadata"),t("metadata",$);function se(j,B,q,ce){if(!tt(q))throw new TypeError;return Ie(ce)||(ce=_e(ce)),vn(j,B,q,ce)}o(se,"defineMetadata"),t("defineMetadata",se);function te(j,B,q){if(!tt(B))throw new TypeError;return Ie(q)||(q=_e(q)),St(j,B,q)}o(te,"hasMetadata"),t("hasMetadata",te);function le(j,B,q){if(!tt(B))throw new TypeError;return Ie(q)||(q=_e(q)),qt(j,B,q)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Re(j,B,q){if(!tt(B))throw new TypeError;return Ie(q)||(q=_e(q)),Le(j,B,q)}o(Re,"getMetadata"),t("getMetadata",Re);function D(j,B,q){if(!tt(B))throw new TypeError;return Ie(q)||(q=_e(q)),Tn(j,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function Ue(j,B){if(!tt(j))throw new TypeError;return Ie(B)||(B=_e(B)),nn(j,B)}o(Ue,"getMetadataKeys"),t("getMetadataKeys",Ue);function $e(j,B){if(!tt(j))throw new TypeError;return Ie(B)||(B=_e(B)),On(j,B)}o($e,"getOwnMetadataKeys"),t("getOwnMetadataKeys",$e);function qe(j,B,q){if(!tt(B))throw new TypeError;if(Ie(q)||(q=_e(q)),!tt(B))throw new TypeError;Ie(q)||(q=_e(q));var ce=Nr(B,q,!1);return Ie(ce)?!1:ce.OrdinaryDeleteMetadata(j,B,q)}o(qe,"deleteMetadata"),t("deleteMetadata",qe);function tn(j,B){for(var q=j.length-1;q>=0;--q){var ce=j[q],Fe=ce(B);if(!Ie(Fe)&&!ln(Fe)){if(!Mt(Fe))throw new TypeError;B=Fe}}return B}o(tn,"DecorateConstructor");function $t(j,B,q,ce){for(var Fe=j.length-1;Fe>=0;--Fe){var hn=j[Fe],Rn=hn(B,q,ce);if(!Ie(Rn)&&!ln(Rn)){if(!tt(Rn))throw new TypeError;ce=Rn}}return ce}o($t,"DecorateProperty");function St(j,B,q){var ce=qt(j,B,q);if(ce)return!0;var Fe=Ht(B);return ln(Fe)?!1:St(j,Fe,q)}o(St,"OrdinaryHasMetadata");function qt(j,B,q){var ce=Nr(B,q,!1);return Ie(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(j,B,q))}o(qt,"OrdinaryHasOwnMetadata");function Le(j,B,q){var ce=qt(j,B,q);if(ce)return Tn(j,B,q);var Fe=Ht(B);if(!ln(Fe))return Le(j,Fe,q)}o(Le,"OrdinaryGetMetadata");function Tn(j,B,q){var ce=Nr(B,q,!1);if(!Ie(ce))return ce.OrdinaryGetOwnMetadata(j,B,q)}o(Tn,"OrdinaryGetOwnMetadata");function vn(j,B,q,ce){var Fe=Nr(q,ce,!0);Fe.OrdinaryDefineOwnMetadata(j,B,q,ce)}o(vn,"OrdinaryDefineOwnMetadata");function nn(j,B){var q=On(j,B),ce=Ht(j);if(ce===null)return q;var Fe=nn(ce,B);if(Fe.length<=0)return q;if(q.length<=0)return Fe;for(var hn=new E,Rn=[],it=0,me=q;it<me.length;it++){var Te=me[it],Ae=hn.has(Te);Ae||(hn.add(Te),Rn.push(Te))}for(var Ce=0,at=Fe;Ce<at.length;Ce++){var Te=at[Ce],Ae=hn.has(Te);Ae||(hn.add(Te),Rn.push(Te))}return Rn}o(nn,"OrdinaryMetadataKeys");function On(j,B){var q=Nr(j,B,!1);return q?q.OrdinaryOwnMetadataKeys(j,B):[]}o(On,"OrdinaryOwnMetadataKeys");function rn(j){if(j===null)return 1;switch(typeof j){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return j===null?1:6;default:return 6}}o(rn,"Type");function Ie(j){return j===void 0}o(Ie,"IsUndefined");function ln(j){return j===null}o(ln,"IsNull");function Oi(j){return typeof j=="symbol"}o(Oi,"IsSymbol");function tt(j){return typeof j=="object"?j!==null:typeof j=="function"}o(tt,"IsObject");function O(j,B){switch(rn(j)){case 0:return j;case 1:return j;case 2:return j;case 3:return j;case 4:return j;case 5:return j}var q=B===3?"string":B===5?"number":"default",ce=Bt(j,a);if(ce!==void 0){var Fe=ce.call(j,q);if(tt(Fe))throw new TypeError;return Fe}return A(j,q==="default"?"number":q)}o(O,"ToPrimitive");function A(j,B){if(B==="string"){var q=j.toString;if(ze(q)){var ce=q.call(j);if(!tt(ce))return ce}var Fe=j.valueOf;if(ze(Fe)){var ce=Fe.call(j);if(!tt(ce))return ce}}else{var Fe=j.valueOf;if(ze(Fe)){var ce=Fe.call(j);if(!tt(ce))return ce}var hn=j.toString;if(ze(hn)){var ce=hn.call(j);if(!tt(ce))return ce}}throw new TypeError}o(A,"OrdinaryToPrimitive");function Y(j){return!!j}o(Y,"ToBoolean");function V(j){return""+j}o(V,"ToString");function _e(j){var B=O(j,3);return Oi(B)?B:V(B)}o(_e,"ToPropertyKey");function Lt(j){return Array.isArray?Array.isArray(j):j instanceof Object?j instanceof Array:Object.prototype.toString.call(j)==="[object Array]"}o(Lt,"IsArray");function ze(j){return typeof j=="function"}o(ze,"IsCallable");function Mt(j){return typeof j=="function"}o(Mt,"IsConstructor");function bn(j){switch(rn(j)){case 3:return!0;case 4:return!0;default:return!1}}o(bn,"IsPropertyKey");function fn(j,B){return j===B||j!==j&&B!==B}o(fn,"SameValueZero");function Bt(j,B){var q=j[B];if(q!=null){if(!ze(q))throw new TypeError;return q}}o(Bt,"GetMethod");function ii(j){var B=Bt(j,s);if(!ze(B))throw new TypeError;var q=B.call(j);if(!tt(q))throw new TypeError;return q}o(ii,"GetIterator");function cr(j){return j.value}o(cr,"IteratorValue");function mn(j){var B=j.next();return B.done?!1:B}o(mn,"IteratorStep");function mi(j){var B=j.return;B&&B.call(j)}o(mi,"IteratorClose");function Ht(j){var B=Object.getPrototypeOf(j);if(typeof j!="function"||j===m||B!==m)return B;var q=j.prototype,ce=q&&Object.getPrototypeOf(q);if(ce==null||ce===Object.prototype)return B;var Fe=ce.constructor;return typeof Fe!="function"||Fe===j?B:Fe}o(Ht,"OrdinaryGetPrototypeOf");function na(){var j;!Ie(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(j=Js(n.Reflect));var B,q,ce,Fe=new b,hn={registerProvider:Rn,getProvider:me,setProvider:Ae};return hn;function Rn(Ce){if(!Object.isExtensible(hn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case j===Ce:break;case Ie(B):B=Ce;break;case B===Ce:break;case Ie(q):q=Ce;break;case q===Ce:break;default:ce===void 0&&(ce=new E),ce.add(Ce);break}}function it(Ce,at){if(!Ie(B)){if(B.isProviderFor(Ce,at))return B;if(!Ie(q)){if(q.isProviderFor(Ce,at))return B;if(!Ie(ce))for(var Gt=ii(ce);;){var un=mn(Gt);if(!un)return;var lr=cr(un);if(lr.isProviderFor(Ce,at))return mi(Gt),lr}}}if(!Ie(j)&&j.isProviderFor(Ce,at))return j}function me(Ce,at){var Gt=Fe.get(Ce),un;return Ie(Gt)||(un=Gt.get(at)),Ie(un)&&(un=it(Ce,at),Ie(un)||(Ie(Gt)&&(Gt=new v,Fe.set(Ce,Gt)),Gt.set(at,un))),un}function Te(Ce){if(Ie(Ce))throw new TypeError;return B===Ce||q===Ce||!Ie(ce)&&ce.has(Ce)}function Ae(Ce,at,Gt){if(!Te(Gt))throw new Error("Metadata provider not registered.");var un=me(Ce,at);if(un!==Gt){if(!Ie(un))return!1;var lr=Fe.get(Ce);Ie(lr)&&(lr=new v,Fe.set(Ce,lr)),lr.set(at,Gt)}return!0}}o(na,"CreateMetadataRegistry");function Hi(){var j;return!Ie(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&(j=n.Reflect[I]),Ie(j)&&(j=na()),!Ie(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:j}),j}o(Hi,"GetOrCreateMetadataRegistry");function Xf(j){var B=new b,q={isProviderFor:o(function(Te,Ae){var Ce=B.get(Te);return Ie(Ce)?!1:Ce.has(Ae)},"isProviderFor"),OrdinaryDefineOwnMetadata:Rn,OrdinaryHasOwnMetadata:Fe,OrdinaryGetOwnMetadata:hn,OrdinaryOwnMetadataKeys:it,OrdinaryDeleteMetadata:me};return F.registerProvider(q),q;function ce(Te,Ae,Ce){var at=B.get(Te),Gt=!1;if(Ie(at)){if(!Ce)return;at=new v,B.set(Te,at),Gt=!0}var un=at.get(Ae);if(Ie(un)){if(!Ce)return;if(un=new v,at.set(Ae,un),!j.setProvider(Te,Ae,q))throw at.delete(Ae),Gt&&B.delete(Te),new Error("Wrong provider for target.")}return un}o(ce,"GetOrCreateMetadataMap");function Fe(Te,Ae,Ce){var at=ce(Ae,Ce,!1);return Ie(at)?!1:Y(at.has(Te))}o(Fe,"OrdinaryHasOwnMetadata");function hn(Te,Ae,Ce){var at=ce(Ae,Ce,!1);if(!Ie(at))return at.get(Te)}o(hn,"OrdinaryGetOwnMetadata");function Rn(Te,Ae,Ce,at){var Gt=ce(Ce,at,!0);Gt.set(Te,Ae)}o(Rn,"OrdinaryDefineOwnMetadata");function it(Te,Ae){var Ce=[],at=ce(Te,Ae,!1);if(Ie(at))return Ce;for(var Gt=at.keys(),un=ii(Gt),lr=0;;){var Bd=mn(un);if(!Bd)return Ce.length=lr,Ce;var $T=cr(Bd);try{Ce[lr]=$T}catch(zf){try{mi(un)}finally{throw zf}}lr++}}o(it,"OrdinaryOwnMetadataKeys");function me(Te,Ae,Ce){var at=ce(Ae,Ce,!1);if(Ie(at)||!at.delete(Te))return!1;if(at.size===0){var Gt=B.get(Ae);Ie(Gt)||(Gt.delete(Ce),Gt.size===0&&B.delete(Gt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Xf,"CreateMetadataProvider");function Js(j){var B=j.defineMetadata,q=j.hasOwnMetadata,ce=j.getOwnMetadata,Fe=j.getOwnMetadataKeys,hn=j.deleteMetadata,Rn=new b,it={isProviderFor:o(function(me,Te){var Ae=Rn.get(me);return!Ie(Ae)&&Ae.has(Te)?!0:Fe(me,Te).length?(Ie(Ae)&&(Ae=new E,Rn.set(me,Ae)),Ae.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Fe,OrdinaryDeleteMetadata:hn};return it}o(Js,"CreateFallbackProvider");function Nr(j,B,q){var ce=F.getProvider(j,B);if(!Ie(ce))return ce;if(q){if(F.setProvider(j,B,M))return M;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function Qf(){var j={},B=[],q=function(){function it(me,Te,Ae){this._index=0,this._keys=me,this._values=Te,this._selector=Ae}return o(it,"MapIterator"),it.prototype["@@iterator"]=function(){return this},it.prototype[s]=function(){return this},it.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var Te=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:Te,done:!1}}return{value:void 0,done:!0}},it.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},it.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},it}(),ce=function(){function it(){this._keys=[],this._values=[],this._cacheKey=j,this._cacheIndex=-2}return o(it,"Map"),Object.defineProperty(it.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),it.prototype.has=function(me){return this._find(me,!1)>=0},it.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},it.prototype.set=function(me,Te){var Ae=this._find(me,!0);return this._values[Ae]=Te,this},it.prototype.delete=function(me){var Te=this._find(me,!1);if(Te>=0){for(var Ae=this._keys.length,Ce=Te+1;Ce<Ae;Ce++)this._keys[Ce-1]=this._keys[Ce],this._values[Ce-1]=this._values[Ce];return this._keys.length--,this._values.length--,fn(me,this._cacheKey)&&(this._cacheKey=j,this._cacheIndex=-2),!0}return!1},it.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=j,this._cacheIndex=-2},it.prototype.keys=function(){return new q(this._keys,this._values,Fe)},it.prototype.values=function(){return new q(this._keys,this._values,hn)},it.prototype.entries=function(){return new q(this._keys,this._values,Rn)},it.prototype["@@iterator"]=function(){return this.entries()},it.prototype[s]=function(){return this.entries()},it.prototype._find=function(me,Te){if(!fn(this._cacheKey,me)){this._cacheIndex=-1;for(var Ae=0;Ae<this._keys.length;Ae++)if(fn(this._keys[Ae],me)){this._cacheIndex=Ae;break}}return this._cacheIndex<0&&Te&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},it}();return ce;function Fe(it,me){return it}function hn(it,me){return me}function Rn(it,me){return[it,me]}}o(Qf,"CreateMapPolyfill");function qf(){var j=function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return j}o(qf,"CreateSetPolyfill");function Yf(){var j=16,B=g.create(),q=ce();return function(){function me(){this._key=ce()}return o(me,"WeakMap"),me.prototype.has=function(Te){var Ae=Fe(Te,!1);return Ae!==void 0?g.has(Ae,this._key):!1},me.prototype.get=function(Te){var Ae=Fe(Te,!1);return Ae!==void 0?g.get(Ae,this._key):void 0},me.prototype.set=function(Te,Ae){var Ce=Fe(Te,!0);return Ce[this._key]=Ae,this},me.prototype.delete=function(Te){var Ae=Fe(Te,!1);return Ae!==void 0?delete Ae[this._key]:!1},me.prototype.clear=function(){this._key=ce()},me}();function ce(){var me;do me="@@WeakMap@@"+it();while(g.has(B,me));return B[me]=!0,me}function Fe(me,Te){if(!i.call(me,q)){if(!Te)return;Object.defineProperty(me,q,{value:g.create()})}return me[q]}function hn(me,Te){for(var Ae=0;Ae<Te;++Ae)me[Ae]=Math.random()*255|0;return me}function Rn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):hn(Te,me),Te}return hn(new Array(me),me)}function it(){var me=Rn(j);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",Ae=0;Ae<j;++Ae){var Ce=me[Ae];(Ae===4||Ae===6||Ae===8)&&(Te+="-"),Ce<16&&(Te+="0"),Te+=Ce.toString(16).toLowerCase()}return Te}}o(Yf,"CreateWeakMapPolyfill");function Zs(j){return j.__=void 0,delete j.__,j}o(Zs,"MakeDictionary")})})(P0||(P0={}))});var N0=Ze((Zee,L0)=>{var UK=0,R0="changeUtils: ";function $K(){return"id-"+new Date().valueOf()+"-"+UK++}o($K,"uid");function BK(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(BK,"appendComponentToReference");function HK(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return BK(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(HK,"getFlexReference");function GK(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(GK,"getAppVersion");function WK(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(WK,"getProjectId");function O0(e){return JSON.stringify({fileName:e.id||$K().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:R0+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(O0,"createString");L0.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(R0,""),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=HK(t),e.appVersion=GK(t),e.projectId=WK(t,e.reference),O0(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 O0(e)},"toString")}});var D0=Ze((tte,F0)=>{F0.exports={change:N0()}});var __=Ze(Kr=>{"use strict";var kX=/[|\\{}()[\]^$+*?.]/g,jX=Object.prototype.hasOwnProperty,cS=o(function(e,t){return jX.apply(e,[t])},"hasOwn");Kr.escapeRegExpChars=function(e){return e?String(e).replace(kX,"\\$&"):""};var UX={"&":"&","<":"<",">":">",'"':""","'":"'"},$X=/[&<>'"]/g;function BX(e){return UX[e]||e}o(BX,"encode_char");var HX=`var _ENCODE_HTML_RULES = {
|
|
27
|
+
`?(A.line++,A.column=0):A.column++);A.textNode+=O.substring(_e,Y-1)}V==="<"&&!(A.sawRoot&&A.closedRoot&&!A.strict)?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):(!$(V)&&(!A.sawRoot||A.closedRoot)&&Le(A,"Text data outside of root node."),V==="&"?A.state=D.TEXT_ENTITY:A.textNode+=V);continue;case D.SCRIPT:V==="<"?A.state=D.SCRIPT_ENDING:A.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?A.state=D.CLOSE_TAG:(A.script+="<"+V,A.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")A.state=D.SGML_DECL,A.sgmlDecl="";else if(!$(V))if(le(I,V))A.state=D.OPEN_TAG,A.tagName=V;else if(V==="/")A.state=D.CLOSE_TAG,A.tagName="";else if(V==="?")A.state=D.PROC_INST,A.procInstName=A.procInstBody="";else{if(Le(A,"Unencoded <"),A.startTagPosition+1<A.position){var Nt=A.position-A.startTagPosition;V=new Array(Nt).join(" ")+V}A.textNode+="<"+V,A.state=D.TEXT}continue;case D.SGML_DECL:if(A.sgmlDecl+V==="--"){A.state=D.COMMENT,A.comment="",A.sgmlDecl="";continue}A.doctype&&A.doctype!==!0&&A.sgmlDecl?(A.state=D.DOCTYPE_DTD,A.doctype+="<!"+A.sgmlDecl+V,A.sgmlDecl=""):(A.sgmlDecl+V).toUpperCase()===g?(qe(A,"onopencdata"),A.state=D.CDATA,A.sgmlDecl="",A.cdata=""):(A.sgmlDecl+V).toUpperCase()===m?(A.state=D.DOCTYPE,(A.doctype||A.sawRoot)&&Le(A,"Inappropriately located doctype declaration"),A.doctype="",A.sgmlDecl=""):V===">"?(qe(A,"onsgmldeclaration",A.sgmlDecl),A.sgmlDecl="",A.state=D.TEXT):(se(V)&&(A.state=D.SGML_DECL_QUOTED),A.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===A.q&&(A.state=D.SGML_DECL,A.q=""),A.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(A.state=D.TEXT,qe(A,"ondoctype",A.doctype),A.doctype=!0):(A.doctype+=V,V==="["?A.state=D.DOCTYPE_DTD:se(V)&&(A.state=D.DOCTYPE_QUOTED,A.q=V));continue;case D.DOCTYPE_QUOTED:A.doctype+=V,V===A.q&&(A.q="",A.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(A.doctype+=V,A.state=D.DOCTYPE):V==="<"?(A.state=D.OPEN_WAKA,A.startTagPosition=A.position):se(V)?(A.doctype+=V,A.state=D.DOCTYPE_DTD_QUOTED,A.q=V):A.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:A.doctype+=V,V===A.q&&(A.state=D.DOCTYPE_DTD,A.q="");continue;case D.COMMENT:V==="-"?A.state=D.COMMENT_ENDING:A.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(A.state=D.COMMENT_ENDED,A.comment=$t(A.opt,A.comment),A.comment&&qe(A,"oncomment",A.comment),A.comment=""):(A.comment+="-"+V,A.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Le(A,"Malformed comment"),A.comment+="--"+V,A.state=D.COMMENT):A.doctype&&A.doctype!==!0?A.state=D.DOCTYPE_DTD:A.state=D.TEXT;continue;case D.CDATA:V==="]"?A.state=D.CDATA_ENDING:A.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?A.state=D.CDATA_ENDING_2:(A.cdata+="]"+V,A.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(A.cdata&&qe(A,"oncdata",A.cdata),qe(A,"onclosecdata"),A.cdata="",A.state=D.TEXT):V==="]"?A.cdata+="]":(A.cdata+="]]"+V,A.state=D.CDATA);continue;case D.PROC_INST:V==="?"?A.state=D.PROC_INST_ENDING:$(V)?A.state=D.PROC_INST_BODY:A.procInstName+=V;continue;case D.PROC_INST_BODY:if(!A.procInstBody&&$(V))continue;V==="?"?A.state=D.PROC_INST_ENDING:A.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(qe(A,"onprocessinginstruction",{name:A.procInstName,body:A.procInstBody}),A.procInstName=A.procInstBody="",A.state=D.TEXT):(A.procInstBody+="?"+V,A.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:le(N,V)?A.tagName+=V:(Tn(A),V===">"?On(A):V==="/"?A.state=D.OPEN_TAG_SLASH:($(V)||Le(A,"Invalid character in tag name"),A.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(On(A,!0),on(A)):(Le(A,"Forward-slash in opening tag not followed by >"),A.state=D.ATTRIB);continue;case D.ATTRIB:if($(V))continue;V===">"?On(A):V==="/"?A.state=D.OPEN_TAG_SLASH:le(I,V)?(A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Le(A,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?A.state=D.ATTRIB_VALUE:V===">"?(Le(A,"Attribute without value"),A.attribValue=A.attribName,rn(A),On(A)):$(V)?A.state=D.ATTRIB_NAME_SAW_WHITE:le(N,V)?A.attribName+=V:Le(A,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")A.state=D.ATTRIB_VALUE;else{if($(V))continue;Le(A,"Attribute without value"),A.tag.attributes[A.attribName]="",A.attribValue="",qe(A,"onattribute",{name:A.attribName,value:""}),A.attribName="",V===">"?On(A):le(I,V)?(A.attribName=V,A.state=D.ATTRIB_NAME):(Le(A,"Invalid attribute name"),A.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if($(V))continue;se(V)?(A.q=V,A.state=D.ATTRIB_VALUE_QUOTED):(A.opt.unquotedAttributeValues||St(A,"Unquoted attribute value"),A.state=D.ATTRIB_VALUE_UNQUOTED,A.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==A.q){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_Q:A.attribValue+=V;continue}rn(A),A.q="",A.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:$(V)?A.state=D.ATTRIB:V===">"?On(A):V==="/"?A.state=D.OPEN_TAG_SLASH:le(I,V)?(Le(A,"No whitespace between attributes"),A.attribName=V,A.attribValue="",A.state=D.ATTRIB_NAME):Le(A,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!te(V)){V==="&"?A.state=D.ATTRIB_VALUE_ENTITY_U:A.attribValue+=V;continue}rn(A),V===">"?On(A):A.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(A.tagName)V===">"?on(A):le(N,V)?A.tagName+=V:A.script?(A.script+="</"+A.tagName,A.tagName="",A.state=D.SCRIPT):($(V)||Le(A,"Invalid tagname in closing tag"),A.state=D.CLOSE_TAG_SAW_WHITE);else{if($(V))continue;Re(I,V)?A.script?(A.script+="</"+V,A.state=D.SCRIPT):Le(A,"Invalid tagname in closing tag."):A.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if($(V))continue;V===">"?on(A):Le(A,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var ze,Mt;switch(A.state){case D.TEXT_ENTITY:ze=D.TEXT,Mt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:ze=D.ATTRIB_VALUE_QUOTED,Mt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:ze=D.ATTRIB_VALUE_UNQUOTED,Mt="attribValue";break}if(V===";"){var bn=Ie(A);A.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(bn)?(A.entity="",A.state=ze,A.write(bn)):(A[Mt]+=bn,A.entity="",A.state=ze)}else le(A.entity.length?G:j,V)?A.entity+=V:(Le(A,"Invalid character in entity name"),A[Mt]+="&"+A.entity+V,A.entity="",A.state=ze);continue;default:throw new Error(A,"Unknown state: "+A.state)}return A.position>=A.bufferCheckPosition&&i(A),A}o(tt,"write");String.fromCodePoint||(function(){var O=String.fromCharCode,A=Math.floor,Y=o(function(){var V=16384,_e=[],Nt,ze,Mt=-1,bn=arguments.length;if(!bn)return"";for(var fn="";++Mt<bn;){var Bt=Number(arguments[Mt]);if(!isFinite(Bt)||Bt<0||Bt>1114111||A(Bt)!==Bt)throw RangeError("Invalid code point: "+Bt);Bt<=65535?_e.push(Bt):(Bt-=65536,Nt=(Bt>>10)+55296,ze=Bt%1024+56320,_e.push(Nt,ze)),(Mt+1===bn||_e.length>V)&&(fn+=O.apply(null,_e),_e.length=0)}return fn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y})()})(typeof Qg>"u"?Qg.sax={}:Qg)});var qg=Ze((See,ND)=>{ND.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Yg=Ze((Pee,FD)=>{var O8=qg().isArray;FD.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"&&!O8(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 wb=Ze((Cee,UD)=>{var R8=LD(),L8={on:o(function(){},"on"),parse:o(function(){},"parse")},ot=Yg(),Pl=qg().isArray,H,Vb=!0,He;function N8(e){return H=ot.copyOptions(e),ot.ensureFlagExists("ignoreDeclaration",H),ot.ensureFlagExists("ignoreInstruction",H),ot.ensureFlagExists("ignoreAttributes",H),ot.ensureFlagExists("ignoreText",H),ot.ensureFlagExists("ignoreComment",H),ot.ensureFlagExists("ignoreCdata",H),ot.ensureFlagExists("ignoreDoctype",H),ot.ensureFlagExists("compact",H),ot.ensureFlagExists("alwaysChildren",H),ot.ensureFlagExists("addParent",H),ot.ensureFlagExists("trim",H),ot.ensureFlagExists("nativeType",H),ot.ensureFlagExists("nativeTypeAttributes",H),ot.ensureFlagExists("sanitize",H),ot.ensureFlagExists("instructionHasAttributes",H),ot.ensureFlagExists("captureSpacesBetweenElements",H),ot.ensureAlwaysArrayExists(H),ot.ensureKeyExists("declaration",H),ot.ensureKeyExists("instruction",H),ot.ensureKeyExists("attributes",H),ot.ensureKeyExists("text",H),ot.ensureKeyExists("comment",H),ot.ensureKeyExists("cdata",H),ot.ensureKeyExists("doctype",H),ot.ensureKeyExists("type",H),ot.ensureKeyExists("name",H),ot.ensureKeyExists("elements",H),ot.ensureKeyExists("parent",H),ot.checkFnExists("doctype",H),ot.checkFnExists("instruction",H),ot.checkFnExists("cdata",H),ot.checkFnExists("comment",H),ot.checkFnExists("text",H),ot.checkFnExists("instructionName",H),ot.checkFnExists("elementName",H),ot.checkFnExists("attributeName",H),ot.checkFnExists("attributeValue",H),ot.checkFnExists("attributes",H),H}o(N8,"validateOptions");function kD(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(kD,"nativeType");function bu(e,t){var n;if(H.compact){if(!He[H[e+"Key"]]&&(Pl(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&(He[H[e+"Key"]]=[]),He[H[e+"Key"]]&&!Pl(He[H[e+"Key"]])&&(He[H[e+"Key"]]=[He[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,He)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,He);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,He)]=i}}Pl(He[H[e+"Key"]])?He[H[e+"Key"]].push(t):He[H[e+"Key"]]=t}else{He[H.elementsKey]||(He[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,He):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,He))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,He)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,He)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=He),He[H.elementsKey].push(r)}}o(bu,"addField");function jD(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,He)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=kD(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,He)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],He)]=n}}return e}o(jD,"manipulateAttributes");function F8(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=jD(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;He[H.declarationKey]={},Object.keys(t).length&&(He[H.declarationKey][H.attributesKey]=t),H.addParent&&(He[H.declarationKey][H.parentKey]=He)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,bu("instruction",r)}}o(F8,"onInstruction");function DD(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=jD(t),"elementNameFn"in H&&(e=H.elementNameFn(e,He)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in He)&&(Pl(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&(He[e]=[]),He[e]&&!Pl(He[e])&&(He[e]=[He[e]]),Pl(He[e])?He[e].push(n):He[e]=n}else He[H.elementsKey]||(He[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),He[H.elementsKey].push(n);n[H.parentKey]=He,He=n}o(DD,"onStartElement");function _D(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=kD(e)),H.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),bu("text",e))}o(_D,"onText");function VD(e){H.ignoreComment||(H.trim&&(e=e.trim()),bu("comment",e))}o(VD,"onComment");function wD(e){var t=He[H.parentKey];H.addParent||delete He[H.parentKey],He=t}o(wD,"onEndElement");function D8(e){H.ignoreCdata||(H.trim&&(e=e.trim()),bu("cdata",e))}o(D8,"onCdata");function _8(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),bu("doctype",e))}o(_8,"onDoctype");function MD(e){e.note=e}o(MD,"onError");UD.exports=function(e,t){var n=Vb?R8.parser(!0,{}):n=new L8.Parser("UTF-8"),i={};if(He=i,H=N8(t),Vb?(n.opt={strictEntities:!0},n.onopentag=DD,n.ontext=_D,n.oncomment=VD,n.onclosetag=wD,n.onerror=MD,n.oncdata=D8,n.ondoctype=_8,n.onprocessinginstruction=F8):(n.on("startElement",DD),n.on("text",_D),n.on("comment",VD),n.on("endElement",wD),n.on("error",MD)),Vb)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 HD=Ze((Oee,BD)=>{var $D=Yg(),V8=wb();function w8(e){var t=$D.copyOptions(e);return $D.ensureSpacesExists(t),t}o(w8,"validateOptions");BD.exports=function(e,t){var n,i,r,a;return n=w8(t),i=V8(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 kb=Ze((Lee,JD)=>{var lt=Yg(),M8=qg().isArray,vi,bi;function k8(e){var t=lt.copyOptions(e);return lt.ensureFlagExists("ignoreDeclaration",t),lt.ensureFlagExists("ignoreInstruction",t),lt.ensureFlagExists("ignoreAttributes",t),lt.ensureFlagExists("ignoreText",t),lt.ensureFlagExists("ignoreComment",t),lt.ensureFlagExists("ignoreCdata",t),lt.ensureFlagExists("ignoreDoctype",t),lt.ensureFlagExists("compact",t),lt.ensureFlagExists("indentText",t),lt.ensureFlagExists("indentCdata",t),lt.ensureFlagExists("indentAttributes",t),lt.ensureFlagExists("indentInstruction",t),lt.ensureFlagExists("fullTagEmptyElement",t),lt.ensureFlagExists("noQuotesForNativeAttributes",t),lt.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),lt.ensureKeyExists("declaration",t),lt.ensureKeyExists("instruction",t),lt.ensureKeyExists("attributes",t),lt.ensureKeyExists("text",t),lt.ensureKeyExists("comment",t),lt.ensureKeyExists("cdata",t),lt.ensureKeyExists("doctype",t),lt.ensureKeyExists("type",t),lt.ensureKeyExists("name",t),lt.ensureKeyExists("elements",t),lt.checkFnExists("doctype",t),lt.checkFnExists("instruction",t),lt.checkFnExists("cdata",t),lt.checkFnExists("comment",t),lt.checkFnExists("text",t),lt.checkFnExists("instructionName",t),lt.checkFnExists("elementName",t),lt.checkFnExists("attributeName",t),lt.checkFnExists("attributeValue",t),lt.checkFnExists("attributes",t),lt.checkFnExists("fullTagEmptyElement",t),t}o(k8,"validateOptions");function Vo(e,t,n){return(!n&&e.spaces?`
|
|
28
|
+
`:"")+Array(t+1).join(e.spaces)}o(Vo,"writeIndentation");function zg(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,bi,vi));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,bi,vi):i,l.push(t.spaces&&t.indentAttributes?Vo(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,bi,vi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Vo(t,n,!1)),l.join("")}o(zg,"writeAttributes");function GD(e,t,n){return vi=e,bi="xml",t.ignoreDeclaration?"":"<?xml"+zg(e[t.attributesKey],t,n)+"?>"}o(GD,"writeDeclaration");function WD(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],bi,vi):i;if(typeof e[i]=="object")return vi=e,bi=r,"<?"+r+zg(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,bi,vi)),"<?"+r+(a?" "+a:"")+"?>"}o(WD,"writeInstruction");function KD(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,bi,vi):e)+"-->"}o(KD,"writeComment");function XD(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,bi,vi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(XD,"writeCdata");function QD(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,bi,vi):e)+">"}o(QD,"writeDoctype");function Mb(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,bi,vi):e)}o(Mb,"writeText");function j8(e,t){var n;if(e.elements&&e.elements.length)for(n=0;n<e.elements.length;++n)switch(e.elements[n][t.typeKey]){case"text":if(t.indentText)return!0;break;case"cdata":if(t.indentCdata)return!0;break;case"instruction":if(t.indentInstruction)return!0;break;case"doctype":case"comment":case"element":return!0;default:return!0}return!1}o(j8,"hasContent");function U8(e,t,n){vi=e,bi=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(zg(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(qD(e[t.elementsKey],t,n+1)),vi=e,bi=e.name),i.push(t.spaces&&j8(e,t)?`
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(U8,"writeElement");function qD(e,t,n,i){return e.reduce(function(r,a){var s=Vo(t,n,i&&!r);switch(a.type){case"element":return r+s+U8(a,t,n);case"comment":return r+s+KD(a[t.commentKey],t);case"doctype":return r+s+QD(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+XD(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+Mb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+WD(l,t,n)}},"")}o(qD,"writeElements");function YD(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(YD,"hasContentCompact");function $8(e,t,n,i,r){vi=e,bi=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(">"+Mb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(zg(e[n.attributesKey],n,i));var l=YD(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(zD(e,n,i+1,!1)),vi=e,bi=t,t&&s.push((r?Vo(n,i,!1):"")+"</"+a+">"),s.join("")}o($8,"writeElementCompact");function zD(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=M8(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(GD(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Vo(t,n,i):"")+WD(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Vo(t,n,i):"")+Mb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Vo(t,n,i):"")+XD(s[r],t));break;case t.doctypeKey:l.push(Vo(t,n,i)+QD(s[r],t));break;case t.commentKey:l.push(Vo(t,n,i)+KD(s[r],t));break;default:l.push(Vo(t,n,i)+$8(s[r],a,t,n,YD(s[r],t)))}i=i&&!l.length}return l.join("")}o(zD,"writeElementsCompact");JD.exports=function(e,t){t=k8(t);var n=[];return vi=e,bi="_root_",t.compact?n.push(zD(e,t,0,!0)):(e[t.declarationKey]&&n.push(GD(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(qD(e[t.elementsKey],t,0,!n.length))),n.join("")}});var e_=Ze((Fee,ZD)=>{var B8=kb();ZD.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 B8(n,t)}});var uc=Ze((Dee,t_)=>{var H8=wb(),G8=HD(),W8=kb(),K8=e_();t_.exports={xml2js:H8,xml2json:G8,js2xml:W8,json2xml:K8}});var s_=Ze(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.convertEntityTypeAnnotations=qi.convertPropertyAnnotations=qi.convertNavigationPropertyAnnotations=qi.convertEntitySetAnnotations=qi.convertGenericAnnotations=qi.convertV2Annotations=void 0;function X8(e,t,n){let i=[];switch(t){case"EntitySet":i_(e,i);break;case"EntityType":a_(e,i);break;case"NavigationProperty":r_(e,n,i);break;case"Property":o_(e,n,i);break;case"Singleton":break;default:break}return n_(e,n,i),i}o(X8,"convertV2Annotations");qi.convertV2Annotations=X8;function n_(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(n_,"convertGenericAnnotations");qi.convertGenericAnnotations=n_;function i_(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(i_,"convertEntitySetAnnotations");qi.convertEntitySetAnnotations=i_;function r_(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(r_,"convertNavigationPropertyAnnotations");qi.convertNavigationPropertyAnnotations=r_;function o_(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(o_,"convertPropertyAnnotations");qi.convertPropertyAnnotations=o_;function a_(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(a_,"convertEntityTypeAnnotations");qi.convertEntityTypeAnnotations=a_});var d_=Ze(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});im.parse=void 0;var Q8=uc(),Ge=_b(),Eu=s_(),em=/^Collection\((.+)\)$/;function q8(e){return e.Type!==null&&e.Type!==void 0}o(q8,"isV4NavProperty");function Y8(e){return e.map(t=>t._attributes.Name)}o(Y8,"getEntityTypeKeys");function f_(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:xl(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,Eu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(pc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(f_,"parseProperties");function z8(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(z8,"parseReferentialConstraint");function J8(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,Ge.ensureArray)(i.Principal.PropertyRef),l=(0,Ge.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,Ge.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(J8,"parseV2ReferentialConstraint");function u_(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(q8(s)){let l=s.Type.match(em),u=l!==null,p=wo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:z8((0,Ge.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,Eu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(pc(`${n}/${s.Name}`,g))}return r},[])}o(u_,"parseNavigationProperties");function Z8(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,Ge.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(Z8,"parseAssociationSets");function eK(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Ge.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:J8((0,Ge.ensureArray)(n.ReferentialConstraint),r)}})}o(eK,"parseAssociations");function tK(e,t,n){return e.reduce((i,r)=>{let a=r.Key?Y8((0,Ge.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=f_((0,Ge.ensureArray)(r.Property),a,s,t),p=u_((0,Ge.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,Eu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(pc(g.fullyQualifiedName,m)),i.push(g),i},[])}o(tK,"parseEntityTypes");function nK(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=f_((0,Ge.ensureArray)(r.Property),[],a,t),l=u_((0,Ge.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(nK,"parseComplexTypes");function iK(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(iK,"parseTypeDefinitions");function rK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:wo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,Eu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(pc(l.fullyQualifiedName,u)),l})}o(rK,"parseEntitySets");function oK(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,Ge.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:wo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,Eu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(pc(l.fullyQualifiedName,u)),l})}o(oK,"parseSingletons");function c_(e,t,n){return e.map(i=>{let r=(0,Ge.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>xl(u._attributes.Type).type).join(","):s=a?xl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?xl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=xl(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?xl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(em)!==null:!1}})}o(c_,"parseActions");function aK(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,Ge.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(em)!==null:!1}})}o(aK,"parseV2FunctionImport");function l_(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:wo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:wo(r)}})}o(l_,"parseActionImports");function sK(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Zg(s,p,n,!1):u&&(l.value=p_({[u]:a[u]},p,n)),i.Annotation){let g=nm((0,Ge.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(pc(p,g))}}return l})}o(sK,"parsePropertyValues");function tm(e,t,n){let i=nm((0,Ge.ensureArray)(e.Annotation),t,n),r={type:e._attributes?wo(e._attributes.Type):void 0,propertyValues:sK((0,Ge.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(tm,"parseRecord");function ma(e,t){return e[t]!=null}o(ma,"isExpressionOfType");function Jg(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(Jg,"parseModelPath");function Ub(e,t,n){if(ma(e,"Record")){let i=(0,Ge.ensureArray)(e.Record).map((r,a)=>tm(r,t+"/"+a,n));return i.type="Record",i}else if(ma(e,"PropertyPath")){let i=(0,Ge.ensureArray)(e.PropertyPath).map(r=>Jg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(ma(e,"NavigationPropertyPath")){let i=(0,Ge.ensureArray)(e.NavigationPropertyPath).map(r=>Jg(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(ma(e,"String")){let i=(0,Ge.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(ma(e,"AnnotationPath")){let i=(0,Ge.ensureArray)(e.AnnotationPath).map(r=>Jg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(ma(e,"Path")){let i=(0,Ge.ensureArray)(e.Path).map(r=>Jg(r,"Path"));return i.type="Path",i}else if(ma(e,"If")){let i=(0,Ge.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(Ub,"parseCollection");function Sn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Zg({[i]:r},"",[],!0))):n.push(Zg({[i]:e[i]},"",[],!0))}),n}o(Sn,"parseChildren");function p_(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:Ub(e.Collection,t,n)};case"Record":return{type:"Record",Record:tm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Sn(e.Apply),$Function:Sn(e.Function)};case"And":return{type:"And",$And:Sn(e.And)};case"Or":return{type:"Or",$Or:Sn(e.Or)};case"Eq":return{type:"Eq",$Eq:Sn(e.Eq)};case"Gt":return{type:"Gt",$Gt:Sn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Sn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Sn(e.Lt)};case"Le":return{type:"Le",$Le:Sn(e.Le)};case"If":return{type:"If",$If:Sn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(p_,"parseInlineExpression");function Zg(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:Sn(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:Ub(e.Collection,t,n)};case"Record":return{type:"Record",Record:tm(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Sn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Sn(e.And)};case"Ne":return{type:"Ne",$Ne:Sn(e.Ne)};case"Not":return{type:"Not",$Not:Sn(e.Not)[0]};case"Or":return{type:"Or",$Or:Sn(e.Or)};case"Eq":return{type:"Eq",$Eq:Sn(e.Eq)};case"If":return{type:"If",$If:Sn(e.If)};case"Gt":return{type:"Gt",$Gt:Sn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Sn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Sn(e.Lt)};case"Le":return{type:"Le",$Le:Sn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Zg,"parseExpression");function cK(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:wo(i),qualifier:r},l=`${t}@${wo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=p_(a,l,n)),e.Annotation){let p=nm((0,Ge.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return ma(e,"Record")?s.record=tm(e.Record,l,n):ma(e,"Collection")?s.collection=Ub(e.Collection,l,n):u.length===1?s.value=Zg({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(cK,"parseAnnotation");function nm(e,t,n){return e.map(i=>cK(i,t,n))}o(nm,"parseAnnotations");function pc(e,t){return{target:e,annotations:t}}o(pc,"createAnnotationList");function lK(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(pc(wo(n._attributes.Target),nm((0,Ge.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(lK,"parseAnnotationLists");function fK(e,t,n){let i=e._attributes.Namespace,r=[],a=tK((0,Ge.ensureArray)(e.EntityType),r,i),s=nK((0,Ge.ensureArray)(e.ComplexType),r,i),l=iK((0,Ge.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],E=[];if(e.EntityContainer)if(u=rK((0,Ge.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=oK((0,Ge.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=Z8((0,Ge.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(aK((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")E=E.concat(l_((0,Ge.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),E=E.concat(l_((0,Ge.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(c_((0,Ge.ensureArray)(e.Action),i,!1)),v=v.concat(c_((0,Ge.ensureArray)(e.Function),i,!0)));let b=eK((0,Ge.ensureArray)(e.Association),i);lK((0,Ge.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:g,annotations:I,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:E,entityTypes:a}}o(fK,"parseSchema");function uK(e){return e.reduce((t,n)=>((0,Ge.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(uK,"parseReferences");var jb={};function xl(e){let t=e.match(em),n=t?t[1]:e,i=wo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(xl,"unaliasType");function wo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=jb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(wo,"unalias");function pK(e){let t=e.reduce((E,b)=>E.concat(b.associations),[]),n=e.reduce((E,b)=>E.concat(b.associationSets),[]),i=e.reduce((E,b)=>E.concat(b.entitySets),[]),r=e.reduce((E,b)=>E.concat(b.singletons),[]),a=e.reduce((E,b)=>E.concat(b.entityTypes),[]),s=e.reduce((E,b)=>E.concat(b.actions),[]),l=e.reduce((E,b)=>E.concat(b.actionImports),[]),u=e.reduce((E,b)=>E.concat(b.complexTypes),[]),p=e.reduce((E,b)=>E.concat(b.typeDefinitions),[]),g={};e.forEach(E=>{g=Object.assign(g,E.annotations)});let m,v;return e.forEach(E=>{E.entityContainer&&Object.keys(E.entityContainer).length>0&&(m=E.entityContainer,v=E.namespace)}),i.forEach(E=>{let b=a.find(I=>I.fullyQualifiedName===E.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let N=I,j=n.find(G=>G.association===N.relationship);if(j){let G=j.associationEnd.find($=>$.entitySet!==E.fullyQualifiedName);G&&(E.navigationPropertyBinding[I.name]=G.entitySet)}})}),a.forEach(E=>{E.navigationProperties.forEach(b=>{let I=b,N=t.find(j=>j.fullyQualifiedName===I.relationship);N&&N.referentialConstraints&&N.referentialConstraints.length>0&&(N.referentialConstraints[0].sourceTypeName===E.fullyQualifiedName?I.referentialConstraint=N.referentialConstraints:I.referentialConstraint=N.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(pK,"mergeSchemas");function dK(e,t){jb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{jb[n._attributes.Alias]=n._attributes.Namespace})}o(dK,"createAliasMap");function gK(e,t="serviceFile"){let n=(0,Q8.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=uK((0,Ge.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));dK(a,r);let s=r.map(u=>fK(u,i,t));return new Ge.RawMetadataInstance(t,i,pK(s),a)}o(gK,"parse");im.parse=gK});var g_=Ze(Cl=>{"use strict";Object.defineProperty(Cl,"__esModule",{value:!0});Cl.parse=Cl.merge=void 0;var mK=RD();Object.defineProperty(Cl,"merge",{enumerable:!0,get:o(function(){return mK.merge},"get")});var hK=d_();Object.defineProperty(Cl,"parse",{enumerable:!0,get:o(function(){return hK.parse},"get")})});var I_=Ze(()=>{var C_;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return Zs(Object.create(null))}:u?function(){return Zs({__proto__:null})}:function(){return Zs({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Qf(),E=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:qf(),b=typeof WeakMap=="function"?WeakMap:Yf(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,N=Hi(),j=Xf(N);function G(k,B,q,ce){if(Ie(q)){if(!Nt(k))throw new TypeError;if(!Mt(B))throw new TypeError;return nn(k,B)}else{if(!Nt(k))throw new TypeError;if(!tt(B))throw new TypeError;if(!tt(ce)&&!Ie(ce)&&!ln(ce))throw new TypeError;return ln(ce)&&(ce=void 0),q=_e(q),$t(k,B,q,ce)}}o(G,"decorate"),t("decorate",G);function $(k,B){function q(ce,Fe){if(!tt(ce))throw new TypeError;if(!Ie(Fe)&&!bn(Fe))throw new TypeError;vn(k,B,ce,Fe)}return o(q,"decorator"),q}o($,"metadata"),t("metadata",$);function se(k,B,q,ce){if(!tt(q))throw new TypeError;return Ie(ce)||(ce=_e(ce)),vn(k,B,q,ce)}o(se,"defineMetadata"),t("defineMetadata",se);function te(k,B,q){if(!tt(B))throw new TypeError;return Ie(q)||(q=_e(q)),St(k,B,q)}o(te,"hasMetadata"),t("hasMetadata",te);function le(k,B,q){if(!tt(B))throw new TypeError;return Ie(q)||(q=_e(q)),qt(k,B,q)}o(le,"hasOwnMetadata"),t("hasOwnMetadata",le);function Re(k,B,q){if(!tt(B))throw new TypeError;return Ie(q)||(q=_e(q)),Le(k,B,q)}o(Re,"getMetadata"),t("getMetadata",Re);function D(k,B,q){if(!tt(B))throw new TypeError;return Ie(q)||(q=_e(q)),Tn(k,B,q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function Ue(k,B){if(!tt(k))throw new TypeError;return Ie(B)||(B=_e(B)),rn(k,B)}o(Ue,"getMetadataKeys"),t("getMetadataKeys",Ue);function $e(k,B){if(!tt(k))throw new TypeError;return Ie(B)||(B=_e(B)),On(k,B)}o($e,"getOwnMetadataKeys"),t("getOwnMetadataKeys",$e);function qe(k,B,q){if(!tt(B))throw new TypeError;if(Ie(q)||(q=_e(q)),!tt(B))throw new TypeError;Ie(q)||(q=_e(q));var ce=Nr(B,q,!1);return Ie(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,q)}o(qe,"deleteMetadata"),t("deleteMetadata",qe);function nn(k,B){for(var q=k.length-1;q>=0;--q){var ce=k[q],Fe=ce(B);if(!Ie(Fe)&&!ln(Fe)){if(!Mt(Fe))throw new TypeError;B=Fe}}return B}o(nn,"DecorateConstructor");function $t(k,B,q,ce){for(var Fe=k.length-1;Fe>=0;--Fe){var hn=k[Fe],Rn=hn(B,q,ce);if(!Ie(Rn)&&!ln(Rn)){if(!tt(Rn))throw new TypeError;ce=Rn}}return ce}o($t,"DecorateProperty");function St(k,B,q){var ce=qt(k,B,q);if(ce)return!0;var Fe=Ht(B);return ln(Fe)?!1:St(k,Fe,q)}o(St,"OrdinaryHasMetadata");function qt(k,B,q){var ce=Nr(B,q,!1);return Ie(ce)?!1:Y(ce.OrdinaryHasOwnMetadata(k,B,q))}o(qt,"OrdinaryHasOwnMetadata");function Le(k,B,q){var ce=qt(k,B,q);if(ce)return Tn(k,B,q);var Fe=Ht(B);if(!ln(Fe))return Le(k,Fe,q)}o(Le,"OrdinaryGetMetadata");function Tn(k,B,q){var ce=Nr(B,q,!1);if(!Ie(ce))return ce.OrdinaryGetOwnMetadata(k,B,q)}o(Tn,"OrdinaryGetOwnMetadata");function vn(k,B,q,ce){var Fe=Nr(q,ce,!0);Fe.OrdinaryDefineOwnMetadata(k,B,q,ce)}o(vn,"OrdinaryDefineOwnMetadata");function rn(k,B){var q=On(k,B),ce=Ht(k);if(ce===null)return q;var Fe=rn(ce,B);if(Fe.length<=0)return q;if(q.length<=0)return Fe;for(var hn=new E,Rn=[],it=0,me=q;it<me.length;it++){var Te=me[it],Ae=hn.has(Te);Ae||(hn.add(Te),Rn.push(Te))}for(var Ce=0,at=Fe;Ce<at.length;Ce++){var Te=at[Ce],Ae=hn.has(Te);Ae||(hn.add(Te),Rn.push(Te))}return Rn}o(rn,"OrdinaryMetadataKeys");function On(k,B){var q=Nr(k,B,!1);return q?q.OrdinaryOwnMetadataKeys(k,B):[]}o(On,"OrdinaryOwnMetadataKeys");function on(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(on,"Type");function Ie(k){return k===void 0}o(Ie,"IsUndefined");function ln(k){return k===null}o(ln,"IsNull");function Oi(k){return typeof k=="symbol"}o(Oi,"IsSymbol");function tt(k){return typeof k=="object"?k!==null:typeof k=="function"}o(tt,"IsObject");function O(k,B){switch(on(k)){case 0:return k;case 1:return k;case 2:return k;case 3:return k;case 4:return k;case 5:return k}var q=B===3?"string":B===5?"number":"default",ce=Bt(k,a);if(ce!==void 0){var Fe=ce.call(k,q);if(tt(Fe))throw new TypeError;return Fe}return A(k,q==="default"?"number":q)}o(O,"ToPrimitive");function A(k,B){if(B==="string"){var q=k.toString;if(ze(q)){var ce=q.call(k);if(!tt(ce))return ce}var Fe=k.valueOf;if(ze(Fe)){var ce=Fe.call(k);if(!tt(ce))return ce}}else{var Fe=k.valueOf;if(ze(Fe)){var ce=Fe.call(k);if(!tt(ce))return ce}var hn=k.toString;if(ze(hn)){var ce=hn.call(k);if(!tt(ce))return ce}}throw new TypeError}o(A,"OrdinaryToPrimitive");function Y(k){return!!k}o(Y,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=O(k,3);return Oi(B)?B:V(B)}o(_e,"ToPropertyKey");function Nt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Nt,"IsArray");function ze(k){return typeof k=="function"}o(ze,"IsCallable");function Mt(k){return typeof k=="function"}o(Mt,"IsConstructor");function bn(k){switch(on(k)){case 3:return!0;case 4:return!0;default:return!1}}o(bn,"IsPropertyKey");function fn(k,B){return k===B||k!==k&&B!==B}o(fn,"SameValueZero");function Bt(k,B){var q=k[B];if(q!=null){if(!ze(q))throw new TypeError;return q}}o(Bt,"GetMethod");function ii(k){var B=Bt(k,s);if(!ze(B))throw new TypeError;var q=B.call(k);if(!tt(q))throw new TypeError;return q}o(ii,"GetIterator");function cr(k){return k.value}o(cr,"IteratorValue");function mn(k){var B=k.next();return B.done?!1:B}o(mn,"IteratorStep");function mi(k){var B=k.return;B&&B.call(k)}o(mi,"IteratorClose");function Ht(k){var B=Object.getPrototypeOf(k);if(typeof k!="function"||k===m||B!==m)return B;var q=k.prototype,ce=q&&Object.getPrototypeOf(q);if(ce==null||ce===Object.prototype)return B;var Fe=ce.constructor;return typeof Fe!="function"||Fe===k?B:Fe}o(Ht,"OrdinaryGetPrototypeOf");function na(){var k;!Ie(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Js(n.Reflect));var B,q,ce,Fe=new b,hn={registerProvider:Rn,getProvider:me,setProvider:Ae};return hn;function Rn(Ce){if(!Object.isExtensible(hn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ce:break;case Ie(B):B=Ce;break;case B===Ce:break;case Ie(q):q=Ce;break;case q===Ce:break;default:ce===void 0&&(ce=new E),ce.add(Ce);break}}function it(Ce,at){if(!Ie(B)){if(B.isProviderFor(Ce,at))return B;if(!Ie(q)){if(q.isProviderFor(Ce,at))return B;if(!Ie(ce))for(var Gt=ii(ce);;){var un=mn(Gt);if(!un)return;var lr=cr(un);if(lr.isProviderFor(Ce,at))return mi(Gt),lr}}}if(!Ie(k)&&k.isProviderFor(Ce,at))return k}function me(Ce,at){var Gt=Fe.get(Ce),un;return Ie(Gt)||(un=Gt.get(at)),Ie(un)&&(un=it(Ce,at),Ie(un)||(Ie(Gt)&&(Gt=new v,Fe.set(Ce,Gt)),Gt.set(at,un))),un}function Te(Ce){if(Ie(Ce))throw new TypeError;return B===Ce||q===Ce||!Ie(ce)&&ce.has(Ce)}function Ae(Ce,at,Gt){if(!Te(Gt))throw new Error("Metadata provider not registered.");var un=me(Ce,at);if(un!==Gt){if(!Ie(un))return!1;var lr=Fe.get(Ce);Ie(lr)&&(lr=new v,Fe.set(Ce,lr)),lr.set(at,Gt)}return!0}}o(na,"CreateMetadataRegistry");function Hi(){var k;return!Ie(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[I]),Ie(k)&&(k=na()),!Ie(I)&&tt(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Hi,"GetOrCreateMetadataRegistry");function Xf(k){var B=new b,q={isProviderFor:o(function(Te,Ae){var Ce=B.get(Te);return Ie(Ce)?!1:Ce.has(Ae)},"isProviderFor"),OrdinaryDefineOwnMetadata:Rn,OrdinaryHasOwnMetadata:Fe,OrdinaryGetOwnMetadata:hn,OrdinaryOwnMetadataKeys:it,OrdinaryDeleteMetadata:me};return N.registerProvider(q),q;function ce(Te,Ae,Ce){var at=B.get(Te),Gt=!1;if(Ie(at)){if(!Ce)return;at=new v,B.set(Te,at),Gt=!0}var un=at.get(Ae);if(Ie(un)){if(!Ce)return;if(un=new v,at.set(Ae,un),!k.setProvider(Te,Ae,q))throw at.delete(Ae),Gt&&B.delete(Te),new Error("Wrong provider for target.")}return un}o(ce,"GetOrCreateMetadataMap");function Fe(Te,Ae,Ce){var at=ce(Ae,Ce,!1);return Ie(at)?!1:Y(at.has(Te))}o(Fe,"OrdinaryHasOwnMetadata");function hn(Te,Ae,Ce){var at=ce(Ae,Ce,!1);if(!Ie(at))return at.get(Te)}o(hn,"OrdinaryGetOwnMetadata");function Rn(Te,Ae,Ce,at){var Gt=ce(Ce,at,!0);Gt.set(Te,Ae)}o(Rn,"OrdinaryDefineOwnMetadata");function it(Te,Ae){var Ce=[],at=ce(Te,Ae,!1);if(Ie(at))return Ce;for(var Gt=at.keys(),un=ii(Gt),lr=0;;){var Bd=mn(un);if(!Bd)return Ce.length=lr,Ce;var $T=cr(Bd);try{Ce[lr]=$T}catch(zf){try{mi(un)}finally{throw zf}}lr++}}o(it,"OrdinaryOwnMetadataKeys");function me(Te,Ae,Ce){var at=ce(Ae,Ce,!1);if(Ie(at)||!at.delete(Te))return!1;if(at.size===0){var Gt=B.get(Ae);Ie(Gt)||(Gt.delete(Ce),Gt.size===0&&B.delete(Gt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Xf,"CreateMetadataProvider");function Js(k){var B=k.defineMetadata,q=k.hasOwnMetadata,ce=k.getOwnMetadata,Fe=k.getOwnMetadataKeys,hn=k.deleteMetadata,Rn=new b,it={isProviderFor:o(function(me,Te){var Ae=Rn.get(me);return!Ie(Ae)&&Ae.has(Te)?!0:Fe(me,Te).length?(Ie(Ae)&&(Ae=new E,Rn.set(me,Ae)),Ae.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Fe,OrdinaryDeleteMetadata:hn};return it}o(Js,"CreateFallbackProvider");function Nr(k,B,q){var ce=N.getProvider(k,B);if(!Ie(ce))return ce;if(q){if(N.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function Qf(){var k={},B=[],q=(function(){function it(me,Te,Ae){this._index=0,this._keys=me,this._values=Te,this._selector=Ae}return o(it,"MapIterator"),it.prototype["@@iterator"]=function(){return this},it.prototype[s]=function(){return this},it.prototype.next=function(){var me=this._index;if(me>=0&&me<this._keys.length){var Te=this._selector(this._keys[me],this._values[me]);return me+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:Te,done:!1}}return{value:void 0,done:!0}},it.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},it.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},it})(),ce=(function(){function it(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(it,"Map"),Object.defineProperty(it.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),it.prototype.has=function(me){return this._find(me,!1)>=0},it.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},it.prototype.set=function(me,Te){var Ae=this._find(me,!0);return this._values[Ae]=Te,this},it.prototype.delete=function(me){var Te=this._find(me,!1);if(Te>=0){for(var Ae=this._keys.length,Ce=Te+1;Ce<Ae;Ce++)this._keys[Ce-1]=this._keys[Ce],this._values[Ce-1]=this._values[Ce];return this._keys.length--,this._values.length--,fn(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},it.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},it.prototype.keys=function(){return new q(this._keys,this._values,Fe)},it.prototype.values=function(){return new q(this._keys,this._values,hn)},it.prototype.entries=function(){return new q(this._keys,this._values,Rn)},it.prototype["@@iterator"]=function(){return this.entries()},it.prototype[s]=function(){return this.entries()},it.prototype._find=function(me,Te){if(!fn(this._cacheKey,me)){this._cacheIndex=-1;for(var Ae=0;Ae<this._keys.length;Ae++)if(fn(this._keys[Ae],me)){this._cacheIndex=Ae;break}}return this._cacheIndex<0&&Te&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},it})();return ce;function Fe(it,me){return it}function hn(it,me){return me}function Rn(it,me){return[it,me]}}o(Qf,"CreateMapPolyfill");function qf(){var k=(function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(q){return this._map.has(q)},B.prototype.add=function(q){return this._map.set(q,q),this},B.prototype.delete=function(q){return this._map.delete(q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B})();return k}o(qf,"CreateSetPolyfill");function Yf(){var k=16,B=g.create(),q=ce();return(function(){function me(){this._key=ce()}return o(me,"WeakMap"),me.prototype.has=function(Te){var Ae=Fe(Te,!1);return Ae!==void 0?g.has(Ae,this._key):!1},me.prototype.get=function(Te){var Ae=Fe(Te,!1);return Ae!==void 0?g.get(Ae,this._key):void 0},me.prototype.set=function(Te,Ae){var Ce=Fe(Te,!0);return Ce[this._key]=Ae,this},me.prototype.delete=function(Te){var Ae=Fe(Te,!1);return Ae!==void 0?delete Ae[this._key]:!1},me.prototype.clear=function(){this._key=ce()},me})();function ce(){var me;do me="@@WeakMap@@"+it();while(g.has(B,me));return B[me]=!0,me}function Fe(me,Te){if(!i.call(me,q)){if(!Te)return;Object.defineProperty(me,q,{value:g.create()})}return me[q]}function hn(me,Te){for(var Ae=0;Ae<Te;++Ae)me[Ae]=Math.random()*255|0;return me}function Rn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):hn(Te,me),Te}return hn(new Array(me),me)}function it(){var me=Rn(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",Ae=0;Ae<k;++Ae){var Ce=me[Ae];(Ae===4||Ae===6||Ae===8)&&(Te+="-"),Ce<16&&(Te+="0"),Te+=Ce.toString(16).toLowerCase()}return Te}}o(Yf,"CreateWeakMapPolyfill");function Zs(k){return k.__=void 0,delete k.__,k}o(Zs,"MakeDictionary")})})(C_||(C_={}))});var D_=Ze((tte,F_)=>{var BK=0,N_="changeUtils: ";function HK(){return"id-"+new Date().valueOf()+"-"+BK++}o(HK,"uid");function GK(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(GK,"appendComponentToReference");function WK(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return GK(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(WK,"getFlexReference");function KK(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(KK,"getAppVersion");function XK(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(XK,"getProjectId");function L_(e){return JSON.stringify({fileName:e.id||HK().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:N_+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(L_,"createString");F_.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(N_,""),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=WK(t),e.appVersion=KK(t),e.projectId=XK(t,e.reference),L_(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 L_(e)},"toString")}});var V_=Ze((ite,__)=>{__.exports={change:D_()}});var w0=Ze(Kr=>{"use strict";var UX=/[|\\{}()[\]^$+*?.]/g,$X=Object.prototype.hasOwnProperty,lS=o(function(e,t){return $X.apply(e,[t])},"hasOwn");Kr.escapeRegExpChars=function(e){return e?String(e).replace(UX,"\\$&"):""};var BX={"&":"&","<":"<",">":">",'"':""","'":"'"},HX=/[&<>'"]/g;function GX(e){return BX[e]||e}o(GX,"encode_char");var WX=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -37,17 +37,17 @@ Actual: `+O.attribValue);else{var _e=O.tag,Lt=O.tags[O.tags.length-1]||O;_e.ns==
|
|
|
37
37
|
function encode_char(c) {
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
|
-
`;Kr.escapeXML=function(e){return e==null?"":String(e).replace(
|
|
41
|
-
`+
|
|
40
|
+
`;Kr.escapeXML=function(e){return e==null?"":String(e).replace(HX,GX)};function V0(){return Function.prototype.toString.call(this)+`;
|
|
41
|
+
`+WX}o(V0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Kr.escapeXML,"toString",{value:V0}):Kr.escapeXML.toString=V0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Kr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)lS(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Kr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!lS(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Kr.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};Kr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Kr.createNullProtoObjWherePossible=(function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}})();Kr.hasOwnOnlyObject=function(e){var t=Kr.createNullProtoObjWherePossible();for(var n in e)lS(e,n)&&(t[n]=e[n]);return t}});var M0=Ze((Wne,KX)=>{KX.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 K0=Ze(Pt=>{"use strict";var uS=require("fs"),Gu=require("path"),Fn=w0(),k0=!1,XX=M0().version,QX="<",qX=">",YX="%",G0="locals",zX="ejs",JX="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",W0=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],ZX=W0.concat("cache"),j0=/^\uFEFF/,fS=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Fn.cache;Pt.fileLoader=uS.readFileSync;Pt.localsName=G0;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Gu.dirname,r=Gu.extname,a=Gu.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function U0(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),uS.existsSync(n)}))return n}o(U0,"resolvePaths");function e3(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=U0(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),uS.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=U0(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(e3,"getIncludePath");function Wu(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=$0(i).toString().replace(j0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=$0(i).toString().replace(j0,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(Wu,"handleCache");function t3(e,t,n){var i;if(n){try{i=Wu(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=Wu(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(t3,"tryHandleCache");function $0(e){return Pt.fileLoader(e)}o($0,"fileLoader");function n3(e,t){var n=Fn.shallowCopy(Fn.createNullProtoObjWherePossible(),t);if(n.filename=e3(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Wu(n,i.template)}return Wu(n)}o(n3,"includeFile");function B0(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(B0,"rethrow");function H0(e){return e.replace(/;(\s*$)/,"$1")}o(H0,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(k0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),k0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Xn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||Fn.createNullProtoObjWherePossible(),r=n||Fn.createNullProtoObjWherePossible();return arguments.length==2&&Fn.shallowCopyFromList(r,i,W0),Wu(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?Fn.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&&Fn.shallowCopy(i,a)),Fn.shallowCopyFromList(i,r,ZX)),i.filename=t):r=Fn.createNullProtoObjWherePossible(),t3(i,r,n)};Pt.Template=Xn;Pt.clearCache=function(){Pt.cache.reset()};function Xn(e,t){var n=Fn.hasOwnOnlyObject(t),i=Fn.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||Fn.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Pt.openDelimiter||QX,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||qX,i.delimiter=n.delimiter||Pt.delimiter||YX,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||G0,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(Xn,"Template");Xn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Xn.prototype={createRegex:o(function(){var e=JX,t=Fn.escapeRegExpChars(this.opts.delimiter),n=Fn.escapeRegExpChars(this.opts.openDelimiter),i=Fn.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
|
-
`,n.outputFunctionName){if(!
|
|
49
|
-
`}if(n.localsName&&!
|
|
50
|
-
`,p=0;p<n.destructuredLocals.length;p++){var g=n.destructuredLocals[p];if(!
|
|
48
|
+
`,n.outputFunctionName){if(!fS.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
|
|
49
|
+
`}if(n.localsName&&!fS.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+` || {}),
|
|
50
|
+
`,p=0;p<n.destructuredLocals.length;p++){var g=n.destructuredLocals[p];if(!fS.test(g))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(u+=`,
|
|
51
51
|
`),u+=g+" = __locals."+g}i+=u+`;
|
|
52
52
|
`}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
|
|
53
53
|
`,r+=` }
|
|
@@ -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 || "+B0.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
|
`,b.message+=`If the above error is not helpful, you may want to try EJS-Lint:
|
|
70
70
|
`,b.message+="https://github.com/RyanZim/EJS-Lint",n.async||(b.message+=`
|
|
71
|
-
`,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(I){var
|
|
71
|
+
`,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(I){var N=o(function(j,G){var $=Fn.shallowCopy(Fn.createNullProtoObjWherePossible(),I);return G&&($=Fn.shallowCopy($,G)),n3(j,n)($)},"include");return t.apply(n.context,[I||Fn.createNullProtoObjWherePossible(),a,N,B0])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,E=Gu.basename(v,Gu.extname(v));try{Object.defineProperty(m,"name",{value:E,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
|
|
72
72
|
`).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,r=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var u;if(s.indexOf(r+i)===0&&s.indexOf(r+i+i)!==0&&(u=n[l+2],!(u==i+a||u=="-"+i+a||u=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:o(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:o(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
|
|
73
73
|
`},"_addOutput"),scanLine:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=e.split(`
|
|
74
74
|
`).length-1,e){case i+n:case i+n+"_":this.mode=Xn.modes.EVAL;break;case i+n+"=":this.mode=Xn.modes.ESCAPED;break;case i+n+"-":this.mode=Xn.modes.RAW;break;case i+n+"#":this.mode=Xn.modes.COMMENT;break;case i+n+n:this.mode=Xn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
|
|
@@ -76,18 +76,18 @@ try {
|
|
|
76
76
|
`;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==Xn.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 Xn.modes.EVAL:case Xn.modes.ESCAPED:case Xn.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
|
|
77
77
|
`)&&(e+=`
|
|
78
78
|
`)}switch(this.mode){case Xn.modes.EVAL:this.source+=" ; "+e+`
|
|
79
|
-
`;break;case Xn.modes.ESCAPED:this.source+=" ; __append(escapeFn("
|
|
80
|
-
`;break;case Xn.modes.RAW:this.source+=" ; __append("
|
|
79
|
+
`;break;case Xn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+H0(e)+`))
|
|
80
|
+
`;break;case Xn.modes.RAW:this.source+=" ; __append("+H0(e)+`)
|
|
81
81
|
`;break;case Xn.modes.COMMENT:break;case Xn.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=Fn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=
|
|
82
|
+
`)},"scanLine")};Pt.escapeXML=Fn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=XX;Pt.name=zX;typeof window<"u"&&(window.ejs=Pt)});var xp,oP=Je(()=>{xp="7.1.1"});function st(e){return e&&e.length===0}function Mi(e){return e==null?[]:Object.keys(e)}function Un(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function JV(e,t){for(var n=[],i=Mi(e),r=0;r<i.length;r++){var a=i[r];n.push(t.call(null,e[a],a))}return n}function pe(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Dn(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Dn(i)):t.push(i)}return t}function xi(e){return st(e)?void 0:e[0]}function uy(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(py(e))for(var i=Mi(e),n=0;n<i.length;n++){var r=i[n],a=e[r];t.call(null,a,r)}else throw Error("non exhaustive match")}function qr(e){return typeof e=="string"}function Ci(e){return e===void 0}function Eo(e){return e instanceof Function}function $n(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function Ls(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Yr(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 _a(e,t){return Yr(e,function(n){return!t(n)})}function Sr(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 py(e)?e.hasOwnProperty(t):!1}function Vt(e,t){return Va(e,function(n){return n===t})!==void 0}function Pn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Ns(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Va(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function ZV(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 dn(e,t,n){for(var i=Array.isArray(e),r=i?e:Un(e),a=i?[]:Mi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function wa(e){return _a(e,function(t){return t==null})}function Cp(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return dn(e,function(i,r){var a=t(r);return Vt(n,a)?i:(n.push(a),i.concat(r))},[])}function mle(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 ui(e){return Array.isArray(e)}function So(e){return e instanceof RegExp}function py(e){return e instanceof Object}function pi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Xc(e,t){return _a(e,function(n){return Vt(t,n)})}function dy(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function e1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function hle(e,t){var n=Pn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function yle(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 Ar(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=Mi(r),s=0;s<a.length;s++){var l=a[s];e[l]=r[l]}return e}function jq(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=Mi(r),s=0;s<a.length;s++){var l=a[s];xe(e,l)||(e[l]=r[l])}return e}function Ip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return jq.apply(null,[{}].concat(e))}function t1(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 aP(e,t){for(var n=Ns(e),i=Mi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Bn(){}function sP(e){return e}function n1(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 Op(e){console&&console.error&&console.error("Error: "+e)}function gy(e){console&&console.warn&&console.warn("Warning: "+e)}function cP(){return typeof Map=="function"}function i1(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 my(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 Rp(e){return e[e.length-1]}function hy(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var bt=Je(()=>{o(st,"isEmpty");o(Mi,"keys");o(Un,"values");o(JV,"mapValues");o(pe,"map");o(Dn,"flatten");o(xi,"first");o(uy,"last");o(ye,"forEach");o(qr,"isString");o(Ci,"isUndefined");o(Eo,"isFunction");o($n,"drop");o(Ls,"dropRight");o(Yr,"filter");o(_a,"reject");o(Sr,"pick");o(xe,"has");o(Vt,"contains");o(Pn,"cloneArr");o(Ns,"cloneObj");o(Va,"find");o(ZV,"findAll");o(dn,"reduce");o(wa,"compact");o(Cp,"uniq");o(mle,"partial");o(ui,"isArray");o(So,"isRegExp");o(py,"isObject");o(pi,"every");o(Xc,"difference");o(dy,"some");o(e1,"indexOf");o(hle,"sortBy");o(yle,"zipObject");o(Ar,"assign");o(jq,"assignNoOverwrite");o(Ip,"defaults");o(t1,"groupBy");o(aP,"merge");o(Bn,"NOOP");o(sP,"IDENTITY");o(n1,"packArray");o(Op,"PRINT_ERROR");o(gy,"PRINT_WARNING");o(cP,"isES2015MapSupported");o(i1,"applyMixins");o(my,"toFastProperties");o(Rp,"peek");o(hy,"timer")});var Ty=Ze((o1,yy)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof yy=="object"&&yy.exports?yy.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:o1,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var I=this.disjunction();this.consumeChar("/");for(var N={type:"Flags",loc:{begin:this.idx,end:b.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(N,"global");break;case"i":s(N,"ignoreCase");break;case"m":s(N,"multiLine");break;case"u":s(N,"unicode");break;case"y":s(N,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:N,value:I,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],I=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(I)}},e.prototype.alternative=function(){for(var b=[],I=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(I)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var I;switch(this.popChar()){case"=":I="Lookahead";break;case"!":I="NegativeLookahead";break}l(I);var N=this.disjunction();return this.consumeChar(")"),{type:I,value:N,loc:this.loc(b)}}u()},e.prototype.quantifier=function(b){var I,N=this.idx;switch(this.popChar()){case"*":I={atLeast:0,atMost:1/0};break;case"+":I={atLeast:1,atMost:1/0};break;case"?":I={atLeast:0,atMost:1};break;case"{":var j=this.integerIncludingZero();switch(this.popChar()){case"}":I={atLeast:j,atMost:j};break;case",":var G;this.isDigit()?(G=this.integerIncludingZero(),I={atLeast:j,atMost:G}):I={atLeast:j,atMost:1/0},this.consumeChar("}");break}if(b===!0&&I===void 0)return;l(I);break}if(!(b===!0&&I===void 0))return l(I),this.peekChar(0)==="?"?(this.consumeChar("?"),I.greedy=!1):I.greedy=!0,I.type="Quantifier",I.loc=this.loc(N),I},e.prototype.atom=function(){var b,I=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(I),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
|
|
83
83
|
`),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var b=this.positiveInteger();return{type:"GroupBackReference",value:b}},e.prototype.characterClassEscape=function(){var b,I=!1;switch(this.popChar()){case"d":b=g;break;case"D":b=g,I=!0;break;case"s":b=v;break;case"S":b=v,I=!0;break;case"w":b=m;break;case"W":b=m,I=!0;break}return l(b),{type:"Set",value:b,complement:I}},e.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=r("\f");break;case"n":b=r(`
|
|
84
84
|
`);break;case"r":b=r("\r");break;case"t":b=r(" ");break;case"v":b=r("\v");break}return l(b),{type:"Character",value:b}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(/[a-zA-Z]/.test(b)===!1)throw Error("Invalid ");var I=b.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:I}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var b=this.popChar();return{type:"Character",value:r(b)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
|
|
85
|
-
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],I=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),I=!0);this.isClassAtom();){var
|
|
86
|
-
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:r("\b")};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.group=function(){var b=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),b=!1;break;default:this.groupIdx++;break}var I=this.disjunction();this.consumeChar(")");var
|
|
85
|
+
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],I=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),I=!0);this.isClassAtom();){var N=this.classAtom(),j=N.type==="Character";if(j&&this.isRangeDash()){this.consumeChar("-");var G=this.classAtom(),$=G.type==="Character";if($){if(G.value<N.value)throw Error("Range out of order in character class");b.push({from:N.value,to:G.value})}else a(N.value,b),b.push(r("-")),a(G.value,b)}else a(N.value,b)}return this.consumeChar("]"),{type:"Set",complement:I,value:b}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
|
|
86
|
+
`:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:r("\b")};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.group=function(){var b=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),b=!1;break;default:this.groupIdx++;break}var I=this.disjunction();this.consumeChar(")");var N={type:"Group",capturing:b,value:I};return b&&(N.idx=this.groupIdx),N},e.prototype.positiveInteger=function(){var b=this.popChar();if(i.test(b)===!1)throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},e.prototype.integerIncludingZero=function(){var b=this.popChar();if(n.test(b)===!1)throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},e.prototype.patternCharacter=function(){var b=this.popChar();switch(b){case`
|
|
87
87
|
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(b)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(b){switch(b===void 0&&(b=0),this.peekChar(b)){case"]":case`
|
|
88
88
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var b=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(b)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
89
|
-
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(b){for(var I="",
|
|
90
|
-
`),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function E(){}return o(E,"BaseRegExpVisitor"),E.prototype.visitChildren=function(b){for(var I in b){var
|
|
89
|
+
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(b){for(var I="",N=0;N<b;N++){var j=this.popChar();if(t.test(j)===!1)throw Error("Expecting a HexDecimal digits");I+=j}var G=parseInt(I,16);return{type:"Character",value:G}},e.prototype.peekChar=function(b){return b===void 0&&(b=0),this.input[this.idx+b]},e.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},e.prototype.consumeChar=function(b){if(b!==void 0&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(b){return{begin:b,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(b){return b.charCodeAt(0)}o(r,"cc");function a(b,I){b.length!==void 0?b.forEach(function(N){I.push(N)}):I.push(b)}o(a,"insertToSet");function s(b,I){if(b[I]===!0)throw"duplicate flag "+I;b[I]=!0}o(s,"addFlag");function l(b){if(b===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}o(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var 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 E(){}return o(E,"BaseRegExpVisitor"),E.prototype.visitChildren=function(b){for(var I in b){var N=b[I];b.hasOwnProperty(I)&&(N.type!==void 0?this.visit(N):Array.isArray(N)&&N.forEach(function(j){this.visit(j)},this))}},E.prototype.visit=function(b){switch(b.type){case"Pattern":this.visitPattern(b);break;case"Flags":this.visitFlags(b);break;case"Disjunction":this.visitDisjunction(b);break;case"Alternative":this.visitAlternative(b);break;case"StartAnchor":this.visitStartAnchor(b);break;case"EndAnchor":this.visitEndAnchor(b);break;case"WordBoundary":this.visitWordBoundary(b);break;case"NonWordBoundary":this.visitNonWordBoundary(b);break;case"Lookahead":this.visitLookahead(b);break;case"NegativeLookahead":this.visitNegativeLookahead(b);break;case"Character":this.visitCharacter(b);break;case"Set":this.visitSet(b);break;case"Group":this.visitGroup(b);break;case"GroupBackReference":this.visitGroupBackReference(b);break;case"Quantifier":this.visitQuantifier(b);break}this.visitChildren(b)},E.prototype.visitPattern=function(b){},E.prototype.visitFlags=function(b){},E.prototype.visitDisjunction=function(b){},E.prototype.visitAlternative=function(b){},E.prototype.visitStartAnchor=function(b){},E.prototype.visitEndAnchor=function(b){},E.prototype.visitWordBoundary=function(b){},E.prototype.visitNonWordBoundary=function(b){},E.prototype.visitLookahead=function(b){},E.prototype.visitNegativeLookahead=function(b){},E.prototype.visitCharacter=function(b){},E.prototype.visitSet=function(b){},E.prototype.visitGroup=function(b){},E.prototype.visitGroupBackReference=function(b){},E.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:E,VERSION:"0.5.0"}})});function cf(e){var t=e.toString();if(vy.hasOwnProperty(t))return vy[t];var n=Uq.pattern(t);return vy[t]=n,n}function s1(){vy={}}var a1,vy,Uq,by=Je(()=>{a1=Z(Ty()),vy={},Uq=new a1.RegExpParser;o(cf,"getRegExpAst");o(s1,"clearRegExpParserCache")});function f1(e,t){t===void 0&&(t=!1);try{var n=cf(e),i=lP(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===l1)t&&gy(""+Lp+(" 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.`),Op(Lp+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
97
|
`)+(" Using the regexp-to-ast library version: "+Sy.VERSION+`
|
|
98
|
-
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function
|
|
99
|
-
`;o(
|
|
100
|
-
`],tracer:o(function(G,$){return $()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){
|
|
98
|
+
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function lP(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)lP(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":Ey(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(l1);ye(s.value,function(p){if(typeof p=="number")Ey(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Ey(m,t,n);else{for(var m=g.from;m<=g.to&&m<lf;m++)Ey(m,t,n);if(g.to>=lf)for(var v=g.from>=lf?g.from:lf,E=g.to,b=qo(v),I=qo(E),N=b;N<=I;N++)t[N]=N}}});break;case"Group":lP(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"&&fP(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Un(t)}function Ey(e,t,n){var i=qo(e);t[i]=i,n===!0&&Bq(e,t)}function Bq(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=qo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=qo(a.charCodeAt(0));t[r]=r}}}function c1(e,t){return Va(e.value,function(n){if(typeof n=="number")return Vt(t,n);var i=n;return Va(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function fP(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?ui(e.value)?pi(e.value,fP):fP(e.value):!1}function Ay(e,t){if(t instanceof RegExp){var n=cf(t),i=new Hq(e);return i.visit(n),i.found}else return Va(t,function(r){return Vt(e,r.charCodeAt(0))})!==void 0}var Sy,$q,l1,Lp,Hq,u1=Je(()=>{Sy=Z(Ty());bt();by();uP();$q=(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)}})(),l1="Complement Sets are not supported for first char optimization",Lp=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;o(f1,"getOptimizedStartCodesIndices");o(lP,"firstCharOptimizedIndices");o(Ey,"addOptimizedIdxToResult");o(Bq,"handleIgnoreCase");o(c1,"findCode");o(fP,"isWholeOptional");Hq=(function(e){$q(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?c1(n,this.targetCharCodes)===void 0&&(this.found=!0):c1(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t})(Sy.BaseRegExpVisitor);o(Ay,"canMatchCharCode")});function m1(e,t){t=Ip(t,{useSticky:gP,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:o(function(G,$){return $()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){s6()});var i;n("Reject Lexer.NA",function(){i=_a(e,function(G){return G[Yo]===ki.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(G){var $=G[Yo];if(So($)){var se=$.source;return se.length===1&&se!=="^"&&se!=="$"&&se!=="."&&!$.ignoreCase?se:se.length===2&&se[0]==="\\"&&!Vt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],se[1])?se[1]:t.useSticky?d1($):p1($)}else{if(Eo($))return r=!0,{exec:$};if(xe($,"exec"))return r=!0,$;if(typeof $=="string"){if($.length===1)return $;var te=$.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),le=new RegExp(te);return t.useSticky?d1(le):p1(le)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=pe(i,function(G){return G.tokenTypeIdx}),l=pe(i,function(G){var $=G.GROUP;if($!==ki.SKIPPED){if(qr($))return $;if(Ci($))return!1;throw Error("non exhaustive match")}}),u=pe(i,function(G){var $=G.LONGER_ALT;if($){var se=e1(i,$);return se}}),p=pe(i,function(G){return G.PUSH_MODE}),g=pe(i,function(G){return xe(G,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var G=A1(t.lineTerminatorCharacters);m=pe(i,function($){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function($){if(xe($,"LINE_BREAKS"))return $.LINE_BREAKS;if(S1($,G)===!1)return Ay(G,$.PATTERN)}))});var v,E,b,I;n("Misc Mapping #2",function(){v=pe(i,b1),E=pe(a,o6),b=dn(i,function(G,$){var se=$.GROUP;return qr(se)&&se!==ki.SKIPPED&&(G[se]=[]),G},{}),I=pe(a,function(G,$){return{pattern:a[$],longerAlt:u[$],canLineTerminator:m[$],isCustom:v[$],short:E[$],group:l[$],push:p[$],pop:g[$],tokenTypeIdx:s[$],tokenType:i[$]}})});var N=!0,j=[];return t.safeMode||n("First Char Optimization",function(){j=dn(i,function(G,$,se){if(typeof $.PATTERN=="string"){var te=$.PATTERN.charCodeAt(0),le=qo(te);pP(G,le,I[se])}else if(ui($.START_CHARS_HINT)){var Re;ye($.START_CHARS_HINT,function(Ue){var $e=typeof Ue=="string"?Ue.charCodeAt(0):Ue,qe=qo($e);Re!==qe&&(Re=qe,pP(G,qe,I[se]))})}else if(So($.PATTERN))if($.PATTERN.unicode)N=!1,t.ensureOptimizations&&Op(""+Lp+(" Unable to analyze < "+$.PATTERN.toString()+` > pattern.
|
|
101
101
|
`)+` The regexp unicode flag is not currently supported by the regexp-to-ast library.
|
|
102
102
|
This will disable the lexer's first char optimizations.
|
|
103
|
-
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=f1($.PATTERN,t.ensureOptimizations);st(D)&&(N=!1),ye(D,function(Ue){pP(G,Ue,I[se])})}else t.ensureOptimizations&&Op(""+Lp+(" TokenType: <"+$.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
|
|
104
104
|
`)+` This will disable the lexer's first char optimizations.
|
|
105
|
-
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),N=!1;return G},[])}),n("ArrayPacking",function(){j=n1(j)}),{emptyGroups:b,patternIdxToConfig:I,charCodeToPatternIdxToConfig:j,hasCustom:r,canBeOptimized:N}}function h1(e,t){var n=[],i=Wq(e);n=n.concat(i.errors);var r=Kq(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(Gq(a)),n=n.concat(e6(a)),n=n.concat(t6(a,t)),n=n.concat(n6(a)),n}function Gq(e){var t=[],n=Yr(e,function(i){return So(i[Yo])});return t=t.concat(Qq(n)),t=t.concat(zq(n)),t=t.concat(Jq(n)),t=t.concat(Zq(n)),t=t.concat(qq(n)),t}function Wq(e){var t=Yr(e,function(r){return!xe(r,Yo)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:gn.MISSING_PATTERN,tokenTypes:[r]}}),i=Xc(e,t);return{errors:n,valid:i}}function Kq(e){var t=Yr(e,function(r){var a=r[Yo];return!So(a)&&!Eo(a)&&!xe(a,"exec")&&!qr(a)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:gn.INVALID_PATTERN,tokenTypes:[r]}}),i=Xc(e,t);return{errors:n,valid:i}}function Qq(e){var t=(function(r){g1(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})(dP.BaseRegExpVisitor),n=Yr(e,function(r){var a=r[Yo];try{var s=cf(a),l=new t;return l.visit(s),l.found}catch{return Xq.test(a.source)}}),i=pe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
|
|
106
106
|
Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain end of input anchor '$'
|
|
107
|
-
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
107
|
+
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function qq(e){var t=Yr(e,function(i){var r=i[Yo];return r.test("")}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:gn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function zq(e){var t=(function(r){g1(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})(dP.BaseRegExpVisitor),n=Yr(e,function(r){var a=r[Yo];try{var s=cf(a),l=new t;return l.visit(s),l.found}catch{return Yq.test(a.source)}}),i=pe(n,function(r){return{message:`Unexpected RegExp Anchor Error:
|
|
108
108
|
Token Type: ->`+r.name+`<- static 'PATTERN' cannot contain start of input anchor '^'
|
|
109
|
-
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:gn.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:gn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function Jq(e){var t=Yr(e,function(i){var r=i[Yo];return r instanceof RegExp&&(r.multiline||r.global)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:gn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function Zq(e){var t=[],n=pe(e,function(a){return dn(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Vt(t,l)&&l.PATTERN!==ki.NA&&(t.push(l),s.push(l)),s},[])});n=wa(n);var i=Yr(n,function(a){return a.length>1}),r=pe(i,function(a){var s=pe(a,function(u){return u.name}),l=xi(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:gn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function e6(e){var t=Yr(e,function(i){if(!xe(i,"GROUP"))return!1;var r=i.GROUP;return r!==ki.SKIPPED&&r!==ki.NA&&!qr(r)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:gn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function t6(e,t){var n=Yr(e,function(r){return r.PUSH_MODE!==void 0&&!Vt(t,r.PUSH_MODE)}),i=pe(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:gn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function n6(e){var t=[],n=dn(e,function(i,r,a){var s=r.PATTERN;return s===ki.NA||(qr(s)?i.push({str:s,idx:a,tokenType:r}):So(s)&&r6(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&&i6(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:gn.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:gn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function i6(e,t){if(So(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(Eo(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 r6(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Va(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function p1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function d1(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function y1(e,t,n){var i=[];return xe(e,Fs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Fs+`> property in its definition
|
|
112
112
|
`,type:gn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),xe(e,Py)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Py+`> property in its definition
|
|
113
113
|
`,type:gn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),xe(e,Py)&&xe(e,Fs)&&!xe(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+Fs+": <"+e.defaultMode+`>which does not exist
|
|
114
114
|
`,type:gn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),xe(e,Py)&&ye(e.modes,function(r,a){ye(r,function(s,l){Ci(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
|
|
115
|
-
`),type:gn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function
|
|
115
|
+
`),type:gn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function T1(e,t,n){var i=[],r=!1,a=wa(Dn(JV(e.modes,function(u){return u}))),s=_a(a,function(u){return u[Yo]===ki.NA}),l=A1(n);return t&&ye(s,function(u){var p=S1(u,l);if(p!==!1){var g=a6(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else xe(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Ay(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:gn.NO_LINE_BREAKS_FLAGS}),i}function
|
|
119
|
+
for details.`,type:gn.NO_LINE_BREAKS_FLAGS}),i}function v1(e){var t={},n=Mi(e);return ye(n,function(i){var r=e[i];if(ui(r))t[i]=[];else throw Error("non exhaustive match")}),t}function b1(e){var t=e.PATTERN;if(So(t))return!1;if(Eo(t))return!0;if(xe(t,"exec"))return!0;if(qr(t))return!1;throw Error("non exhaustive match")}function o6(e){return qr(e)&&e.length===1?e.charCodeAt(0):!1}function S1(e,t){if(xe(e,"LINE_BREAKS"))return!1;if(So(e.PATTERN)){try{Ay(t,e.PATTERN)}catch(n){return{issue:gn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(qr(e.PATTERN))return!1;if(b1(e))return{issue:gn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function a6(e,t){if(t.issue===gn.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===gn.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
|
|
125
|
-
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Cy,traceInitPerf:!1,skipValidations:!1};Object.freeze(Fp);ki=function(){function e(t,n){var i=this;if(n===void 0&&(n=Fp),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=
|
|
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),ui(t)?(a={modes:{}},a.modes[Fs]=Pn(t),a[Fs]=Fs):(s=!1,a=Ns(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(
|
|
124
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function A1(e){var t=pe(e,function(n){return qr(n)&&n.length>0?n.charCodeAt(0):n});return t}function pP(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function qo(e){return e<lf?e:xy[e]}function s6(){if(st(xy)){xy=new Array(65536);for(var e=0;e<65536;e++)xy[e]=e>255?255+~~(e/255):e}}var dP,g1,Yo,Fs,Py,gP,Xq,Yq,E1,lf,xy,uP=Je(()=>{dP=Z(Ty());Np();bt();u1();by();g1=(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)}})(),Yo="PATTERN",Fs="defaultMode",Py="modes",gP=typeof new RegExp("(?:)").sticky=="boolean";o(m1,"analyzeTokenTypes");o(h1,"validatePatterns");o(Gq,"validateRegExpPattern");o(Wq,"findMissingPatterns");o(Kq,"findInvalidPatterns");Xq=/[^\\][\$]/;o(Qq,"findEndOfInputAnchor");o(qq,"findEmptyMatchRegExps");Yq=/[^\\[][\^]|^\^/;o(zq,"findStartOfInputAnchor");o(Jq,"findUnsupportedFlags");o(Zq,"findDuplicatePatterns");o(e6,"findInvalidGroupType");o(t6,"findModesThatDoNotExist");o(n6,"findUnreachablePatterns");o(i6,"testTokenType");o(r6,"noMetaChar");o(p1,"addStartOfInput");o(d1,"addStickyFlag");o(y1,"performRuntimeChecks");o(T1,"performWarningRuntimeChecks");o(v1,"cloneEmptyGroups");o(b1,"isCustomPattern");o(o6,"isShortPattern");E1={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(S1,"checkLineBreaksIssues");o(a6,"buildLineBreakIssueMessage");o(A1,"getCharCodes");o(pP,"addToMapOfArrays");lf=256;o(qo,"charCodeToOptimizedIndex");xy=[];o(s6,"initCharCodeToOptimizedIndexMap")});function Qc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function ff(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Ma(e){var t=c6(e);l6(t),u6(t),f6(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function c6(e){for(var t=Pn(e),n=e,i=!0;i;){n=wa(Dn(pe(n,function(a){return a.CATEGORIES})));var r=Xc(n,t);t=t.concat(r),st(r)?i=!1:n=r}return t}function l6(e){ye(e,function(t){mP(t)||(C1[P1]=t,t.tokenTypeIdx=P1++),x1(t)&&!ui(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),x1(t)||(t.CATEGORIES=[]),p6(t)||(t.categoryMatches=[]),d6(t)||(t.categoryMatchesMap={})})}function f6(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(C1[i].tokenTypeIdx)})})}function u6(e){ye(e,function(t){I1([],t)})}function I1(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);Vt(i,n)||I1(i,n)})}function mP(e){return xe(e,"tokenTypeIdx")}function x1(e){return xe(e,"CATEGORIES")}function p6(e){return xe(e,"categoryMatches")}function d6(e){return xe(e,"categoryMatchesMap")}function O1(e){return xe(e,"tokenTypeIdx")}var P1,C1,uf=Je(()=>{bt();o(Qc,"tokenStructuredMatcher");o(ff,"tokenStructuredMatcherNoCategories");P1=1,C1={};o(Ma,"augmentTokenTypes");o(c6,"expandCategories");o(l6,"assignTokenDefaultProps");o(f6,"assignCategoriesTokensProp");o(u6,"assignCategoriesMapProp");o(I1,"singleAssignCategoriesToksMap");o(mP,"hasShortKeyProperty");o(x1,"hasCategoriesProperty");o(p6,"hasExtendingTokensTypesProperty");o(d6,"hasExtendingTokensTypesMapProperty");o(O1,"isTokenType")});var Cy,hP=Je(()=>{Cy={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 gn,Fp,ki,Np=Je(()=>{uP();bt();uf();hP();by();(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"})(gn||(gn={}));Fp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
|
+
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Cy,traceInitPerf:!1,skipValidations:!1};Object.freeze(Fp);ki=(function(){function e(t,n){var i=this;if(n===void 0&&(n=Fp),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=aP(Fp,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===Fp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=E1;else if(i.config.lineTerminatorCharacters===Fp.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),ui(t)?(a={modes:{}},a.modes[Fs]=Pn(t),a[Fs]=Fs):(s=!1,a=Ns(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(y1(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(T1(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ye(a.modes,function(g,m){a.modes[m]=_a(g,function(v){return Ci(v)})});var l=Mi(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(h1(g,l))}),st(i.lexerDefinitionErrors)){Ma(g);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=m1(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=aP(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=a.defaultMode,!st(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=pe(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
|
|
128
128
|
`);throw new Error(`Errors detected in definition of Lexer:
|
|
129
|
-
`+p)}ye(i.lexerDefinitionWarning,function(g){gy(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(
|
|
129
|
+
`+p)}ye(i.lexerDefinitionWarning,function(g){gy(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(gP?(i.chopInput=sP,i.match=i.matchWithTest):(i.updateLastIndex=Bn,i.match=i.matchWithExec),s&&(i.handleModes=Bn),i.trackStartLines===!1&&(i.computeNewColumn=sP),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Bn),/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=dn(i.canModeBeOptimized,function(m,v,E){return v===!1&&m.push(E),m},[]);if(n.ensureOptimizations&&!st(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(){s1()}),i.TRACE_INIT("toFastProperties",function(){my(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!st(this.lexerDefinitionErrors)){var i=pe(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
|
|
132
132
|
`);throw new Error(`Unable to Tokenize because Errors detected in definition of Lexer:
|
|
133
|
-
`+r)}var a=this.tokenizeInternal(t,n);return a},e.prototype.tokenizeInternal=function(t,n){var i=this,r,a,s,l,u,p,g,m,v,E,b,I,
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return xe(e,O1)&&(n.CATEGORIES=e[O1]),Ma([n]),xe(e,R1)&&(n.LABEL=e[R1]),xe(e,L1)&&(n.GROUP=e[L1]),xe(e,F1)&&(n.POP_MODE=e[F1]),xe(e,N1)&&(n.PUSH_MODE=e[N1]),xe(e,D1)&&(n.LONGER_ALT=e[D1]),xe(e,_1)&&(n.LINE_BREAKS=e[_1]),xe(e,V1)&&(n.START_CHARS_HINT=e[V1]),n}function Ds(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 M1(e,t){return Qc(e,t)}var p6,O1,R1,L1,N1,F1,D1,_1,V1,Yr,_s=Je(()=>{bt();Np();uf();o(zo,"tokenLabel");o(w1,"tokenName");o(hP,"hasTokenLabel");p6="parent",O1="categories",R1="label",L1="group",N1="push_mode",F1="pop_mode",D1="longer_alt",_1="line_breaks",V1="start_chars_hint";o(Dp,"createToken");o(d6,"createTokenInternal");Yr=Dp({name:"EOF",pattern:ki.NA});Ma([Yr]);o(Ds,"createTokenInstance");o(M1,"tokenMatcher")});function Iy(e){return pe(e,pf)}function pf(e){function t(r){return pe(r,pf)}if(o(t,"convertDefinition"),e instanceof sn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Zt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof cn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof _n)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Vn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:pf(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof xn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:pf(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Rt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Cn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:zo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=Eo(i)?i.source:i),n}else{if(e instanceof Pr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var ka,So,sn,Pr,Zt,cn,_n,Vn,Rt,xn,Cn,ht,ji=Je(()=>{bt();_s();ka=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)}}(),So=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}(),sn=function(e){ka(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Ar(i,Sr(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}(So),Pr=function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(So),Zt=function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(So),cn=function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(So),_n=function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(So),Vn=function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(So),Rt=function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(So),xn=function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(So),Cn=function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Ar(i,Sr(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}(So),ht=function(){function e(t){this.idx=1,Ar(this,Sr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Iy,"serializeGrammar");o(pf,"serializeProduction")});function k1(e,t,n){var i=[new cn({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var qc,Oy=Je(()=>{bt();ji();qc=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=$n(t.definition,a+1);if(r instanceof sn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Zt)i.walkFlat(r,s,n);else if(r instanceof cn)i.walkOption(r,s,n);else if(r instanceof _n)i.walkAtLeastOne(r,s,n);else if(r instanceof Vn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof xn)i.walkManySep(r,s,n);else if(r instanceof Rt)i.walkMany(r,s,n);else if(r instanceof Cn)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 cn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=k1(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new cn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=k1(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ye(t.definition,function(s){var l=new Zt({definition:[s]});r.walk(l,a)})},e}();o(k1,"restForRepetitionWithSeparator")});var zr,df=Je(()=>{ji();zr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case sn:return this.visitNonTerminal(n);case Zt:return this.visitAlternative(n);case cn:return this.visitOption(n);case _n:return this.visitRepetitionMandatory(n);case Vn:return this.visitRepetitionMandatoryWithSeparator(n);case xn:return this.visitRepetitionWithSeparator(n);case Rt:return this.visitRepetition(n);case Cn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case Pr: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 j1(e){return e instanceof Zt||e instanceof cn||e instanceof Rt||e instanceof _n||e instanceof Vn||e instanceof xn||e instanceof ht||e instanceof Pr}function gf(e,t){t===void 0&&(t=[]);var n=e instanceof cn||e instanceof Rt||e instanceof xn;return n?!0:e instanceof Cn?dy(e.definition,function(i){return gf(i,t)}):e instanceof sn&&Vt(t,e)?!1:e instanceof So?(e instanceof sn&&t.push(e),pi(e.definition,function(i){return gf(i,t)})):!1}function U1(e){return e instanceof Cn}function xr(e){if(e instanceof sn)return"SUBRULE";if(e instanceof cn)return"OPTION";if(e instanceof Cn)return"OR";if(e instanceof _n)return"AT_LEAST_ONE";if(e instanceof Vn)return"AT_LEAST_ONE_SEP";if(e instanceof xn)return"MANY_SEP";if(e instanceof Rt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function $1(e){Ry.reset(),e.accept(Ry);var t=Ry.dslMethods;return Ry.reset(),t}var g6,yP,Ry,mf=Je(()=>{bt();ji();df();g6=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(j1,"isSequenceProd");o(gf,"isOptionalProd");o(U1,"isBranchingProd");o(xr,"getProductionDslName");yP=function(e){g6(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}(zr),Ry=new yP;o($1,"collectMethods")});function Yc(e){if(e instanceof sn)return Yc(e.referencedRule);if(e instanceof ht)return y6(e);if(j1(e))return m6(e);if(U1(e))return h6(e);throw Error("non exhaustive match")}function m6(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=gf(a),t=t.concat(Yc(a)),i=i+1,r=n.length>i;return Cp(t)}function h6(e){var t=pe(e.definition,function(n){return Yc(n)});return Cp(Dn(t))}function y6(e){return[e.terminalType]}var TP=Je(()=>{bt();ji();mf();o(Yc,"first");o(m6,"firstForSequence");o(h6,"firstForBranching");o(y6,"firstForTerminal")});var Ly,vP=Je(()=>{Ly="_~IN~_"});function B1(e){var t={};return ye(e,function(n){var i=new v6(n).startWalking();Ar(t,i)}),t}function b6(e,t){return e.name+t+Ly}var T6,v6,H1=Je(()=>{Oy();TP();bt();vP();ji();T6=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)}}(),v6=function(e){T6(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=b6(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Zt({definition:s}),u=Yc(l);this.follows[a]=u},t}(qc);o(B1,"computeAllProdsFollows");o(b6,"buildBetweenProdsFollowPrefix")});var _p,Ny,Vs,Vp=Je(()=>{_s();bt();bt();ji();mf();_p={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=hP(t),s=a?"--> "+zo(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=xi(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,E,b,I,N,j,G,$=t,se=$.length,te=0,le=0,Re=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Re),Ue=[],$e=this.trackStartLines?1:void 0,qe=this.trackStartLines?1:void 0,nn=v1(this.emptyGroups),$t=this.trackStartLines,St=this.config.lineTerminatorsPattern,qt=0,Le=[],Tn=[],vn=[],rn=[];Object.freeze(rn);var On=void 0;function on(){return Le}o(on,"getPossiblePatternsSlow");function Ie(Ht){var na=qo(Ht),Hi=Tn[na];return Hi===void 0?rn:Hi}o(Ie,"getPossiblePatternsOptimized");var ln=o(function(Ht){if(vn.length===1&&Ht.tokenType.PUSH_MODE===void 0){var na=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Ht);Ue.push({offset:Ht.startOffset,line:Ht.startLine!==void 0?Ht.startLine:void 0,column:Ht.startColumn!==void 0?Ht.startColumn:void 0,length:Ht.image.length,message:na})}else{vn.pop();var Hi=uy(vn);Le=i.patternIdxToConfig[Hi],Tn=i.charCodeToPatternIdxToConfig[Hi],qt=Le.length;var Xf=i.canModeBeOptimized[Hi]&&i.config.safeMode===!1;Tn&&Xf?On=Ie:On=on}},"pop_mode");function Oi(Ht){vn.push(Ht),Tn=this.charCodeToPatternIdxToConfig[Ht],Le=this.patternIdxToConfig[Ht],qt=Le.length,qt=Le.length;var na=this.canModeBeOptimized[Ht]&&this.config.safeMode===!1;Tn&&na?On=Ie:On=on}o(Oi,"push_mode"),Oi.call(this,n);for(var tt;te<se;){u=null;var O=$.charCodeAt(te),A=On(O),Y=A.length;for(r=0;r<Y;r++){tt=A[r];var V=tt.pattern;p=null;var _e=tt.short;if(_e!==!1?O===_e&&(u=V):tt.isCustom===!0?(G=V.exec($,te,D,nn),G!==null?(u=G[0],G.payload!==void 0&&(p=G.payload)):u=null):(this.updateLastIndex(V,te),u=this.match(V,t,te)),u!==null){if(l=tt.longerAlt,l!==void 0){var Nt=Le[l],ze=Nt.pattern;g=null,Nt.isCustom===!0?(G=ze.exec($,te,D,nn),G!==null?(s=G[0],G.payload!==void 0&&(g=G.payload)):s=null):(this.updateLastIndex(ze,te),s=this.match(ze,t,te)),s&&s.length>u.length&&(u=s,p=g,tt=Nt)}break}}if(u!==null){if(m=u.length,v=tt.group,v!==void 0&&(E=tt.tokenTypeIdx,b=this.createTokenInstance(u,te,E,tt.tokenType,$e,qe,m),this.handlePayload(b,p),v===!1?le=this.addToken(D,le,b):nn[v].push(b)),t=this.chopInput(t,m),te=te+m,qe=this.computeNewColumn(qe,m),$t===!0&&tt.canLineTerminator===!0){var Mt=0,bn=void 0,fn=void 0;St.lastIndex=0;do bn=St.test(u),bn===!0&&(fn=St.lastIndex-1,Mt++);while(bn===!0);Mt!==0&&($e=$e+Mt,qe=m-fn,this.updateTokenEndLineColumnLocation(b,v,fn,Mt,$e,qe,m))}this.handleModes(tt,ln,Oi,b)}else{for(var Bt=te,ii=$e,cr=qe,mn=!1;!mn&&te<se;)for(N=$.charCodeAt(te),t=this.chopInput(t,1),te++,a=0;a<qt;a++){var mi=Le[a],V=mi.pattern,_e=mi.short;if(_e!==!1?$.charCodeAt(te)===_e&&(mn=!0):mi.isCustom===!0?mn=V.exec($,te,D,nn)!==null:(this.updateLastIndex(V,te),mn=V.exec(t)!==null),mn===!0)break}I=te-Bt,j=this.config.errorMessageProvider.buildUnexpectedCharactersMessage($,Bt,I,ii,cr),Ue.push({offset:Bt,line:ii,column:cr,length:I,message:j})}}return this.hasCustom||(D.length=le),{tokens:D,groups:nn,errors:Ue}},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=hy(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 zo(e){return yP(e)?e.LABEL:e.name}function M1(e){return e.name}function yP(e){return qr(e.LABEL)&&e.LABEL!==""}function Dp(e){return m6(e)}function m6(e){var t=e.pattern,n={};if(n.name=e.name,Ci(t)||(n.PATTERN=t),xe(e,g6))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return xe(e,R1)&&(n.CATEGORIES=e[R1]),Ma([n]),xe(e,L1)&&(n.LABEL=e[L1]),xe(e,N1)&&(n.GROUP=e[N1]),xe(e,D1)&&(n.POP_MODE=e[D1]),xe(e,F1)&&(n.PUSH_MODE=e[F1]),xe(e,_1)&&(n.LONGER_ALT=e[_1]),xe(e,V1)&&(n.LINE_BREAKS=e[V1]),xe(e,w1)&&(n.START_CHARS_HINT=e[w1]),n}function Ds(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 k1(e,t){return Qc(e,t)}var g6,R1,L1,N1,F1,D1,_1,V1,w1,zr,_s=Je(()=>{bt();Np();uf();o(zo,"tokenLabel");o(M1,"tokenName");o(yP,"hasTokenLabel");g6="parent",R1="categories",L1="label",N1="group",F1="push_mode",D1="pop_mode",_1="longer_alt",V1="line_breaks",w1="start_chars_hint";o(Dp,"createToken");o(m6,"createTokenInternal");zr=Dp({name:"EOF",pattern:ki.NA});Ma([zr]);o(Ds,"createTokenInstance");o(k1,"tokenMatcher")});function Iy(e){return pe(e,pf)}function pf(e){function t(r){return pe(r,pf)}if(o(t,"convertDefinition"),e instanceof sn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof en)return{type:"Alternative",definition:t(e.definition)};if(e instanceof cn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof _n)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Vn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:pf(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof xn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:pf(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Lt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Cn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:zo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=So(i)?i.source:i),n}else{if(e instanceof Pr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var ka,Ao,sn,Pr,en,cn,_n,Vn,Lt,xn,Cn,ht,ji=Je(()=>{bt();_s();ka=(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)}})(),Ao=(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})(),sn=(function(e){ka(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Ar(i,Sr(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})(Ao),Pr=(function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t})(Ao),en=(function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t})(Ao),cn=(function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t})(Ao),_n=(function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t})(Ao),Vn=(function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t})(Ao),Lt=(function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t})(Ao),xn=(function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Ar(i,Sr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t})(Ao),Cn=(function(e){ka(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Ar(i,Sr(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})(Ao),ht=(function(){function e(t){this.idx=1,Ar(this,Sr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e})();o(Iy,"serializeGrammar");o(pf,"serializeProduction")});function j1(e,t,n){var i=[new cn({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var qc,Oy=Je(()=>{bt();ji();qc=(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=$n(t.definition,a+1);if(r instanceof sn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof en)i.walkFlat(r,s,n);else if(r instanceof cn)i.walkOption(r,s,n);else if(r instanceof _n)i.walkAtLeastOne(r,s,n);else if(r instanceof Vn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof xn)i.walkManySep(r,s,n);else if(r instanceof Lt)i.walkMany(r,s,n);else if(r instanceof Cn)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 cn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=j1(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new cn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=j1(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 en({definition:[s]});r.walk(l,a)})},e})();o(j1,"restForRepetitionWithSeparator")});var Jr,df=Je(()=>{ji();Jr=(function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case sn:return this.visitNonTerminal(n);case en:return this.visitAlternative(n);case cn:return this.visitOption(n);case _n:return this.visitRepetitionMandatory(n);case Vn:return this.visitRepetitionMandatoryWithSeparator(n);case xn:return this.visitRepetitionWithSeparator(n);case Lt:return this.visitRepetition(n);case Cn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case Pr: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 U1(e){return e instanceof en||e instanceof cn||e instanceof Lt||e instanceof _n||e instanceof Vn||e instanceof xn||e instanceof ht||e instanceof Pr}function gf(e,t){t===void 0&&(t=[]);var n=e instanceof cn||e instanceof Lt||e instanceof xn;return n?!0:e instanceof Cn?dy(e.definition,function(i){return gf(i,t)}):e instanceof sn&&Vt(t,e)?!1:e instanceof Ao?(e instanceof sn&&t.push(e),pi(e.definition,function(i){return gf(i,t)})):!1}function $1(e){return e instanceof Cn}function xr(e){if(e instanceof sn)return"SUBRULE";if(e instanceof cn)return"OPTION";if(e instanceof Cn)return"OR";if(e instanceof _n)return"AT_LEAST_ONE";if(e instanceof Vn)return"AT_LEAST_ONE_SEP";if(e instanceof xn)return"MANY_SEP";if(e instanceof Lt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function B1(e){Ry.reset(),e.accept(Ry);var t=Ry.dslMethods;return Ry.reset(),t}var h6,TP,Ry,mf=Je(()=>{bt();ji();df();h6=(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(U1,"isSequenceProd");o(gf,"isOptionalProd");o($1,"isBranchingProd");o(xr,"getProductionDslName");TP=(function(e){h6(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})(Jr),Ry=new TP;o(B1,"collectMethods")});function Yc(e){if(e instanceof sn)return Yc(e.referencedRule);if(e instanceof ht)return v6(e);if(U1(e))return y6(e);if($1(e))return T6(e);throw Error("non exhaustive match")}function y6(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=gf(a),t=t.concat(Yc(a)),i=i+1,r=n.length>i;return Cp(t)}function T6(e){var t=pe(e.definition,function(n){return Yc(n)});return Cp(Dn(t))}function v6(e){return[e.terminalType]}var vP=Je(()=>{bt();ji();mf();o(Yc,"first");o(y6,"firstForSequence");o(T6,"firstForBranching");o(v6,"firstForTerminal")});var Ly,bP=Je(()=>{Ly="_~IN~_"});function H1(e){var t={};return ye(e,function(n){var i=new E6(n).startWalking();Ar(t,i)}),t}function S6(e,t){return e.name+t+Ly}var b6,E6,G1=Je(()=>{Oy();vP();bt();bP();ji();b6=(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)}})(),E6=(function(e){b6(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=S6(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new en({definition:s}),u=Yc(l);this.follows[a]=u},t})(qc);o(H1,"computeAllProdsFollows");o(S6,"buildBetweenProdsFollowPrefix")});var _p,Ny,Vs,Vp=Je(()=>{_s();bt();bt();ji();mf();_p={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=yP(t),s=a?"--> "+zo(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=xi(n).image,u=`
|
|
135
135
|
but found: '`+l+"'";if(r)return s+r+u;var p=dn(t,function(E,b){return E.concat(b)},[]),g=pe(p,function(E){return"["+pe(E,function(b){return zo(b)}).join(", ")+"]"}),m=pe(g,function(E,b){return" "+(b+1)+". "+E}),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=xi(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 Pr?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 G1(e,t){var n=new S6(e,t);return n.resolveRefs(),n.errors}var E6,S6,W1=Je(()=>{Cr();bt();df();E6=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(G1,"resolveGrammar");S6=function(e){E6(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(Un(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:Qn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(zr)});function Dy(e,t,n){n===void 0&&(n=[]),n=Pn(n);var i=[],r=0;function a(p){return p.concat($n(e,r+1))}o(a,"remainingPathWith");function s(p){var g=Dy(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Zt)return s(l.definition);if(l instanceof sn)return s(l.definition);if(l instanceof cn)i=s(l.definition);else if(l instanceof _n){var u=l.definition.concat([new Rt({definition:l.definition})]);return s(u)}else if(l instanceof Vn){var u=[new Zt({definition:l.definition}),new Rt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof xn){var u=l.definition.concat([new Rt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Rt){var u=l.definition.concat([new Rt({definition:l.definition})]);i=s(u)}else{if(l instanceof Cn)return ye(l.definition,function(p){st(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:$n(e,r)}),i}function _y(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:[]});!st(m);){var v=m.pop();if(v===s){l&&uy(m).idx<=p&&m.pop();continue}var E=v.def,b=v.idx,I=v.ruleStack,F=v.occurrenceStack;if(!st(E)){var M=E[0];if(M===r){var G={idx:b,def:$n(E),ruleStack:Ls(I),occurrenceStack:Ls(F)};m.push(G)}else if(M instanceof ht)if(b<u-1){var $=b+1,se=t[$];if(n(se,M.terminalType)){var G={idx:$,def:$n(E),ruleStack:I,occurrenceStack:F};m.push(G)}}else if(b===u-1)g.push({nextTokenType:M.terminalType,nextTokenOccurrence:M.idx,ruleStack:I,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(M instanceof sn){var te=Pn(I);te.push(M.nonTerminalName);var le=Pn(F);le.push(M.idx);var G={idx:b,def:M.definition.concat(a,$n(E)),ruleStack:te,occurrenceStack:le};m.push(G)}else if(M instanceof cn){var Re={idx:b,def:$n(E),ruleStack:I,occurrenceStack:F};m.push(Re),m.push(s);var D={idx:b,def:M.definition.concat($n(E)),ruleStack:I,occurrenceStack:F};m.push(D)}else if(M instanceof _n){var Ue=new Rt({definition:M.definition,idx:M.idx}),$e=M.definition.concat([Ue],$n(E)),G={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(G)}else if(M instanceof Vn){var qe=new ht({terminalType:M.separator}),Ue=new Rt({definition:[qe].concat(M.definition),idx:M.idx}),$e=M.definition.concat([Ue],$n(E)),G={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(G)}else if(M instanceof xn){var Re={idx:b,def:$n(E),ruleStack:I,occurrenceStack:F};m.push(Re),m.push(s);var qe=new ht({terminalType:M.separator}),tn=new Rt({definition:[qe].concat(M.definition),idx:M.idx}),$e=M.definition.concat([tn],$n(E)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(D)}else if(M instanceof Rt){var Re={idx:b,def:$n(E),ruleStack:I,occurrenceStack:F};m.push(Re),m.push(s);var tn=new Rt({definition:M.definition,idx:M.idx}),$e=M.definition.concat([tn],$n(E)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:F};m.push(D)}else if(M instanceof Cn)for(var $t=M.definition.length-1;$t>=0;$t--){var St=M.definition[$t],qt={idx:b,def:St.definition.concat($n(E)),ruleStack:I,occurrenceStack:F};m.push(qt),m.push(s)}else if(M instanceof Zt)m.push({idx:b,def:M.definition.concat($n(E)),ruleStack:I,occurrenceStack:F});else if(M instanceof Pr)m.push(P6(M,b,I,F));else throw Error("non exhaustive match")}}return g}function P6(e,t,n,i){var r=Pn(n);r.push(e.name);var a=Pn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var zc,A6,K1,Fy,X1,bP,Q1,EP,wp=Je(()=>{Oy();bt();TP();ji();zc=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)}}(),A6=function(e){zc(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=Pn(this.path.ruleStack).reverse(),this.occurrenceStack=Pn(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(){st(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(qc),K1=function(e){zc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Zt({definition:a});this.possibleTokTypes=Yc(s),this.found=!0}},t}(A6),Fy=function(e){zc(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}(qc),X1=function(e){zc(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=xi(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}(Fy),bP=function(e){zc(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=xi(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}(Fy),Q1=function(e){zc(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=xi(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}(Fy),EP=function(e){zc(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=xi(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}(Fy);o(Dy,"possiblePathsFrom");o(_y,"nextPossibleTokensAfter");o(P6,"expandTopLevelRule")});function z1(e){if(e instanceof cn)return wt.OPTION;if(e instanceof Rt)return wt.REPETITION;if(e instanceof _n)return wt.REPETITION_MANDATORY;if(e instanceof Vn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof xn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Cn)return wt.ALTERNATION;throw Error("non exhaustive match")}function J1(e,t,n,i,r,a){var s=Mp(e,t,n),l=ow(s)?ff:Qc;return a(s,i,l,r)}function Z1(e,t,n,i,r,a){var s=kp(e,t,r,n),l=ow(s)?ff:Qc;return a(s[0],l,i)}function ew(e,t,n,i){var r=e.length,a=pi(e,function(u){return pi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function($){return $.GATE}),g=0;g<r;g++){var m=e[g],v=m.length,E=p[g];if(!(E!==void 0&&E.call(this)===!1))e:for(var b=0;b<v;b++){for(var I=m[b],F=I.length,M=0;M<F;M++){var G=this.LA(M+1);if(n(G,I[M])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Dn(u)}),l=dn(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],E=v.length,b=0;b<E;b++){var I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return u}}}}function tw(e,t,n){var i=pi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Dn(e);if(a.length===1&&st(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=dn(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 E=this.LA(v+1);if(t(E,g[v])===!1)continue e}return!0}return!1}}function q1(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function SP(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 C6(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 iw(e,t){for(var n=pe(e,function(g){return Dy([g],1)}),i=q1(n.length),r=pe(n,function(g){var m={};return ye(g,function(v){var E=SP(v.partialPath);ye(E,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=q1(l.length);for(var u=o(function(g){for(var m=l[g],v=0;v<m.length;v++){var E=m[v].partialPath,b=m[v].suffixDef,I=SP(E),F=C6(r,I,g);if(F||st(b)||E.length===t){var M=i[g];if(Vy(M,E)===!1){M.push(E);for(var G=0;G<I.length;G++){var $=I[G];r[g][$]=!0}}}else{var se=Dy(b,s+1,E);a[g]=a[g].concat(se),ye(se,function(te){var le=SP(te.partialPath);ye(le,function(Re){r[g][Re]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function Mp(e,t,n,i){var r=new nw(e,wt.ALTERNATION,i);return t.accept(r),iw(r.result,n)}function kp(e,t,n,i){var r=new nw(e,n);t.accept(r);var a=r.result,s=new x6(t,e,n),l=s.startWalking(),u=new Zt({definition:a}),p=new Zt({definition:l});return iw([u,p],i)}function Vy(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 rw(e,t){return e.length<t.length&&pi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function ow(e){return pi(e,function(t){return pi(t,function(n){return pi(n,function(i){return st(i.categoryMatches)})})})}var Y1,wt,x6,nw,jp=Je(()=>{bt();wp();Oy();uf();ji();df();Y1=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(z1,"getProdType");o(J1,"buildLookaheadFuncForOr");o(Z1,"buildLookaheadFuncForOptionalProd");o(ew,"buildAlternativesLookAheadFunc");o(tw,"buildSingleAlternativeLookaheadFunction");x6=function(e){Y1(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}(qc),nw=function(e){Y1(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}(zr);o(q1,"initializeArrayOfArrays");o(SP,"pathToHashKeys");o(C6,"isUniquePrefixHash");o(iw,"lookAheadSequenceFromAlternatives");o(Mp,"getLookaheadPathsForOr");o(kp,"getLookaheadPathsForOptionalProd");o(Vy,"containsPath");o(rw,"isStrictPrefixOfPath");o(ow,"areTokenCategoriesNotUsed")});function aw(e,t,n,i,r){var a=pe(e,function(E){return I6(E,i)}),s=pe(e,function(E){return lw(E,E,i)}),l=[],u=[],p=[];pi(s,st)&&(l=pe(e,function(E){return N6(E,i)}),u=pe(e,function(E){return F6(E,t,i)}),p=V6(e,t,i));var g=k6(e,n,i),m=pe(e,function(E){return _6(E,i)}),v=pe(e,function(E){return L6(E,e,r,i)});return Dn(a.concat(p,s,l,u,g,m,v))}function I6(e,t){var n=new R6;e.accept(n);var i=n.allProductions,r=e1(i,O6),a=Sr(r,function(l){return l.length>1}),s=pe(Un(a),function(l){var u=xi(l),p=t.buildDuplicateFoundError(e,l),g=xr(u),m={message:p,type:Qn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=sw(u);return v&&(m.parameter=v),m});return s}function O6(e){return xr(e)+"_#_"+e.idx+"_#_"+sw(e)}function sw(e){return e instanceof ht?e.terminalType.name:e instanceof sn?e.nonTerminalName:""}function L6(e,t,n,i){var r=[],a=dn(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:Qn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function cw(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:Qn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function lw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=wy(t.definition);if(st(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Qn.LEFT_RECURSION,ruleName:s});var u=Xc(a,i.concat([e])),p=pe(u,function(g){var m=Pn(i);return m.push(g),lw(e,g,n,m)});return r.concat(Dn(p))}function wy(e){var t=[];if(st(e))return t;var n=xi(e);if(n instanceof sn)t.push(n.referencedRule);else if(n instanceof Zt||n instanceof cn||n instanceof _n||n instanceof Vn||n instanceof xn||n instanceof Rt)t=t.concat(wy(n.definition));else if(n instanceof Cn)t=Dn(pe(n.definition,function(s){return wy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=gf(n),r=e.length>1;if(i&&r){var a=$n(e);return t.concat(wy(a))}else return t}function N6(e,t){var n=new PP;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){var l=Ls(s.definition),u=pe(l,function(p,g){var m=_y([p],[],null,1);return st(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Qn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(wa(u))},[]);return r}function F6(e,t,n){var i=new PP;e.accept(i);var r=i.alternations;r=_a(r,function(s){return s.ignoreAmbiguities===!0});var a=dn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=Mp(u,e,p,l),m=w6(g,l,e,n),v=M6(g,l,e,n);return s.concat(m,v)},[]);return a}function _6(e,t){var n=new PP;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Qn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function V6(e,t,n){var i=[];return ye(e,function(r){var a=new D6;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=z1(l),p=l.maxLookahead||t,g=l.idx,m=kp(g,r,u,p),v=m[0];if(st(Dn(v))){var E=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:E,type:Qn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function w6(e,t,n,i){var r=[],a=dn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(v,E){p!==E&&Vy(v,g)&&t.definition[E].ignoreAmbiguities!==!0&&m.push(E)}),m.length>1&&!Vy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=pe(a,function(l){var u=pe(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Qn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function M6(e,t,n,i){var r=[],a=dn(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=JV(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&rw(v.path,p)}),m=pe(g,function(v){var E=[v.idx+1,u+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:E,prefixPath:v.path});return{message:I,type:Qn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:E}});r=r.concat(m)}}),r}function k6(e,t,n){var i=[],r=pe(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:Qn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var AP,R6,PP,D6,xP=Je(()=>{bt();bt();Cr();mf();jp();wp();ji();df();AP=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(aw,"validateGrammar");o(I6,"validateDuplicateProductions");o(O6,"identifyProductionForDuplicates");o(sw,"getExtraProductionArgument");R6=function(e){AP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(zr);o(L6,"validateRuleDoesNotAlreadyExist");o(cw,"validateRuleIsOverridden");o(lw,"validateNoLeftRecursion");o(wy,"getFirstNoneTerminal");PP=function(e){AP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(zr);o(N6,"validateEmptyOrAlternative");o(F6,"validateAmbiguousAlternationAlternatives");D6=function(e){AP(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(zr);o(_6,"validateTooManyAlts");o(V6,"validateSomeNonEmptyLookaheadPath");o(w6,"checkAlternativesAmbiguities");o(M6,"checkPrefixAlternativesAmbiguities");o(k6,"checkTerminalAndNoneTerminalsNameSpace")});function My(e){e=Ip(e,{errMsgProvider:Ny});var t={};return ye(e.rules,function(n){t[n.name]=n}),G1(t,e.errMsgProvider)}function ky(e){return e=Ip(e,{errMsgProvider:Vs}),aw(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function fw(e){ye(e.rules,function(t){var n=new yP;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var CP=Je(()=>{bt();W1();xP();Vp();mf();o(My,"resolveGrammar");o(ky,"validateGrammar");o(fw,"assignOccurrenceIndices")});function ja(e){return Vt(mw,e.name)}var Up,uw,pw,dw,gw,mw,jy,hf,Uy,$y,By,yf=Je(()=>{bt();Up=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),uw="MismatchedTokenException",pw="NoViableAltException",dw="EarlyExitException",gw="NotAllInputParsedException",mw=[uw,pw,dw,gw];Object.freeze(mw);o(ja,"isRecognitionException");jy=function(e){Up(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),hf=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=uw,a}return o(t,"MismatchedTokenException"),t}(jy),Uy=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=pw,a}return o(t,"NoViableAltException"),t}(jy),$y=function(e){Up(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=gw,r}return o(t,"NotAllInputParsedException"),t}(jy),By=function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=dw,a}return o(t,"EarlyExitException"),t}(jy)});function hw(e){this.name=OP,this.message=e}function j6(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,E=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=Yr,E=1),this.shouldInRepetitionRecoveryBeTried(v,E,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var IP,OP,yw,RP=Je(()=>{_s();bt();yf();vP();Cr();IP={},OP="InRuleRecoveryException";o(hw,"InRuleRecoveryException");hw.prototype=Error.prototype;yw=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=xe(t,"recoveryEnabled")?t.recoveryEnabled:nr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=j6)},e.prototype.getTokenToInsert=function(t){var n=Ds(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 E=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:E,ruleName:a.getCurrRuleFullName()}),I=new hf(b,g,a.LA(0));I.resyncedTokens=Ls(u),a.SAVE_ERROR(I)},"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 hw("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)||st(n))return!1;var r=this.LA(1),a=Va(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 IP;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return pe(n,function(r,a){return a===0?IP:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Dn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===IP)return[Yr];var n=t.ruleName+t.idxInCallingRule+Ly+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Yr)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return Ls(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=Pn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(j6,"attemptInRepetitionRecovery")});function Wy(e,t,n){return n|t|e}var Tw,Jo,U6,Hy,Gy,$p,Bp,Hp,Tf,bue,Ky=Je(()=>{Tw=4,Jo=8,U6=8,Hy=1<<Jo,Gy=2<<Jo,$p=3<<Jo,Bp=4<<Jo,Hp=5<<Jo,Tf=6<<Jo;o(Wy,"getKeyForAutomaticLookahead");bue=32-U6});var vw,bw=Je(()=>{jp();bt();Cr();Ky();mf();vw=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=xe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:nr.dynamicTokensEnabled,this.maxLookahead=xe(t,"maxLookahead")?t.maxLookahead:nr.maxLookahead,this.lookAheadFuncsCache=sP()?new Map:[],sP()?(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=$1(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(""+xr(m)+v,function(){var E=J1(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Wy(n.fullRuleNameToShort[i.name],Hy,m.idx);n.setLaFuncCache(b,E)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,$p,wt.REPETITION,m.maxLookahead,xr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,Gy,wt.OPTION,m.maxLookahead,xr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,Bp,wt.REPETITION_MANDATORY,m.maxLookahead,xr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Tf,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,xr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,Hp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,xr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=Z1(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Wy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return tw(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return ew(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Wy(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 LP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function NP(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 Ew(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function Sw(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var Aw=Je(()=>{o(LP,"setNodeLocationOnlyOffset");o(NP,"setNodeLocationFull");o(Ew,"addTerminalToCst");o(Sw,"addNoneTerminalToCst")});function xw(e){return Gp(e.constructor)}function Gp(e){var t=e.name;return t||"anonymous"}function FP(e,t){var n=Object.getOwnPropertyDescriptor(e,Pw);return Ci(n)||n.configurable?(Object.defineProperty(e,Pw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var Pw,DP=Je(()=>{bt();o(xw,"classNameFromInstance");Pw="name";o(Gp,"functionName");o(FP,"defineNameProp")});function $6(e,t){for(var n=Mi(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 Cw(e,t){var n=o(function(){},"derivedConstructor");FP(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(ui(r)&&(r=r[0]),!Ci(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=B6(this,t);if(!st(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Gp(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 Pr?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 W1(e,t){var n=new P6(e,t);return n.resolveRefs(),n.errors}var A6,P6,K1=Je(()=>{Cr();bt();df();A6=(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(W1,"resolveGrammar");P6=(function(e){A6(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(Un(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:Qn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t})(Jr)});function Dy(e,t,n){n===void 0&&(n=[]),n=Pn(n);var i=[],r=0;function a(p){return p.concat($n(e,r+1))}o(a,"remainingPathWith");function s(p){var g=Dy(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 en)return s(l.definition);if(l instanceof sn)return s(l.definition);if(l instanceof cn)i=s(l.definition);else if(l instanceof _n){var u=l.definition.concat([new Lt({definition:l.definition})]);return s(u)}else if(l instanceof Vn){var u=[new en({definition:l.definition}),new Lt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof xn){var u=l.definition.concat([new Lt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Lt){var u=l.definition.concat([new Lt({definition:l.definition})]);i=s(u)}else{if(l instanceof Cn)return ye(l.definition,function(p){st(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:$n(e,r)}),i}function _y(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:[]});!st(m);){var v=m.pop();if(v===s){l&&uy(m).idx<=p&&m.pop();continue}var E=v.def,b=v.idx,I=v.ruleStack,N=v.occurrenceStack;if(!st(E)){var j=E[0];if(j===r){var G={idx:b,def:$n(E),ruleStack:Ls(I),occurrenceStack:Ls(N)};m.push(G)}else if(j instanceof ht)if(b<u-1){var $=b+1,se=t[$];if(n(se,j.terminalType)){var G={idx:$,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(G)}}else if(b===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:I,occurrenceStack:N}),l=!0;else throw Error("non exhaustive match");else if(j instanceof sn){var te=Pn(I);te.push(j.nonTerminalName);var le=Pn(N);le.push(j.idx);var G={idx:b,def:j.definition.concat(a,$n(E)),ruleStack:te,occurrenceStack:le};m.push(G)}else if(j instanceof cn){var Re={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Re),m.push(s);var D={idx:b,def:j.definition.concat($n(E)),ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof _n){var Ue=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([Ue],$n(E)),G={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(G)}else if(j instanceof Vn){var qe=new ht({terminalType:j.separator}),Ue=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([Ue],$n(E)),G={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(G)}else if(j instanceof xn){var Re={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Re),m.push(s);var qe=new ht({terminalType:j.separator}),nn=new Lt({definition:[qe].concat(j.definition),idx:j.idx}),$e=j.definition.concat([nn],$n(E)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof Lt){var Re={idx:b,def:$n(E),ruleStack:I,occurrenceStack:N};m.push(Re),m.push(s);var nn=new Lt({definition:j.definition,idx:j.idx}),$e=j.definition.concat([nn],$n(E)),D={idx:b,def:$e,ruleStack:I,occurrenceStack:N};m.push(D)}else if(j instanceof Cn)for(var $t=j.definition.length-1;$t>=0;$t--){var St=j.definition[$t],qt={idx:b,def:St.definition.concat($n(E)),ruleStack:I,occurrenceStack:N};m.push(qt),m.push(s)}else if(j instanceof en)m.push({idx:b,def:j.definition.concat($n(E)),ruleStack:I,occurrenceStack:N});else if(j instanceof Pr)m.push(C6(j,b,I,N));else throw Error("non exhaustive match")}}return g}function C6(e,t,n,i){var r=Pn(n);r.push(e.name);var a=Pn(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var zc,x6,X1,Fy,Q1,EP,q1,SP,wp=Je(()=>{Oy();bt();vP();ji();zc=(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)}})(),x6=(function(e){zc(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=Pn(this.path.ruleStack).reverse(),this.occurrenceStack=Pn(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(){st(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t})(qc),X1=(function(e){zc(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 en({definition:a});this.possibleTokTypes=Yc(s),this.found=!0}},t})(x6),Fy=(function(e){zc(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})(qc),Q1=(function(e){zc(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=xi(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})(Fy),EP=(function(e){zc(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=xi(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})(Fy),q1=(function(e){zc(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=xi(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})(Fy),SP=(function(e){zc(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=xi(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})(Fy);o(Dy,"possiblePathsFrom");o(_y,"nextPossibleTokensAfter");o(C6,"expandTopLevelRule")});function J1(e){if(e instanceof cn)return wt.OPTION;if(e instanceof Lt)return wt.REPETITION;if(e instanceof _n)return wt.REPETITION_MANDATORY;if(e instanceof Vn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof xn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Cn)return wt.ALTERNATION;throw Error("non exhaustive match")}function Z1(e,t,n,i,r,a){var s=Mp(e,t,n),l=aw(s)?ff:Qc;return a(s,i,l,r)}function ew(e,t,n,i,r,a){var s=kp(e,t,r,n),l=aw(s)?ff:Qc;return a(s[0],l,i)}function tw(e,t,n,i){var r=e.length,a=pi(e,function(u){return pi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function($){return $.GATE}),g=0;g<r;g++){var m=e[g],v=m.length,E=p[g];if(!(E!==void 0&&E.call(this)===!1))e:for(var b=0;b<v;b++){for(var I=m[b],N=I.length,j=0;j<N;j++){var G=this.LA(j+1);if(n(G,I[j])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Dn(u)}),l=dn(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],E=v.length,b=0;b<E;b++){var I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return u}}}}function nw(e,t,n){var i=pi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Dn(e);if(a.length===1&&st(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=dn(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 E=this.LA(v+1);if(t(E,g[v])===!1)continue e}return!0}return!1}}function Y1(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function AP(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 O6(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 rw(e,t){for(var n=pe(e,function(g){return Dy([g],1)}),i=Y1(n.length),r=pe(n,function(g){var m={};return ye(g,function(v){var E=AP(v.partialPath);ye(E,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=Y1(l.length);for(var u=o(function(g){for(var m=l[g],v=0;v<m.length;v++){var E=m[v].partialPath,b=m[v].suffixDef,I=AP(E),N=O6(r,I,g);if(N||st(b)||E.length===t){var j=i[g];if(Vy(j,E)===!1){j.push(E);for(var G=0;G<I.length;G++){var $=I[G];r[g][$]=!0}}}else{var se=Dy(b,s+1,E);a[g]=a[g].concat(se),ye(se,function(te){var le=AP(te.partialPath);ye(le,function(Re){r[g][Re]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function Mp(e,t,n,i){var r=new iw(e,wt.ALTERNATION,i);return t.accept(r),rw(r.result,n)}function kp(e,t,n,i){var r=new iw(e,n);t.accept(r);var a=r.result,s=new I6(t,e,n),l=s.startWalking(),u=new en({definition:a}),p=new en({definition:l});return rw([u,p],i)}function Vy(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 ow(e,t){return e.length<t.length&&pi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function aw(e){return pi(e,function(t){return pi(t,function(n){return pi(n,function(i){return st(i.categoryMatches)})})})}var z1,wt,I6,iw,jp=Je(()=>{bt();wp();Oy();uf();ji();df();z1=(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(J1,"getProdType");o(Z1,"buildLookaheadFuncForOr");o(ew,"buildLookaheadFuncForOptionalProd");o(tw,"buildAlternativesLookAheadFunc");o(nw,"buildSingleAlternativeLookaheadFunction");I6=(function(e){z1(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})(qc),iw=(function(e){z1(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})(Jr);o(Y1,"initializeArrayOfArrays");o(AP,"pathToHashKeys");o(O6,"isUniquePrefixHash");o(rw,"lookAheadSequenceFromAlternatives");o(Mp,"getLookaheadPathsForOr");o(kp,"getLookaheadPathsForOptionalProd");o(Vy,"containsPath");o(ow,"isStrictPrefixOfPath");o(aw,"areTokenCategoriesNotUsed")});function sw(e,t,n,i,r){var a=pe(e,function(E){return R6(E,i)}),s=pe(e,function(E){return fw(E,E,i)}),l=[],u=[],p=[];pi(s,st)&&(l=pe(e,function(E){return D6(E,i)}),u=pe(e,function(E){return _6(E,t,i)}),p=M6(e,t,i));var g=U6(e,n,i),m=pe(e,function(E){return w6(E,i)}),v=pe(e,function(E){return F6(E,e,r,i)});return Dn(a.concat(p,s,l,u,g,m,v))}function R6(e,t){var n=new N6;e.accept(n);var i=n.allProductions,r=t1(i,L6),a=Sr(r,function(l){return l.length>1}),s=pe(Un(a),function(l){var u=xi(l),p=t.buildDuplicateFoundError(e,l),g=xr(u),m={message:p,type:Qn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=cw(u);return v&&(m.parameter=v),m});return s}function L6(e){return xr(e)+"_#_"+e.idx+"_#_"+cw(e)}function cw(e){return e instanceof ht?e.terminalType.name:e instanceof sn?e.nonTerminalName:""}function F6(e,t,n,i){var r=[],a=dn(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:Qn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function lw(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:Qn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function fw(e,t,n,i){i===void 0&&(i=[]);var r=[],a=wy(t.definition);if(st(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Qn.LEFT_RECURSION,ruleName:s});var u=Xc(a,i.concat([e])),p=pe(u,function(g){var m=Pn(i);return m.push(g),fw(e,g,n,m)});return r.concat(Dn(p))}function wy(e){var t=[];if(st(e))return t;var n=xi(e);if(n instanceof sn)t.push(n.referencedRule);else if(n instanceof en||n instanceof cn||n instanceof _n||n instanceof Vn||n instanceof xn||n instanceof Lt)t=t.concat(wy(n.definition));else if(n instanceof Cn)t=Dn(pe(n.definition,function(s){return wy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=gf(n),r=e.length>1;if(i&&r){var a=$n(e);return t.concat(wy(a))}else return t}function D6(e,t){var n=new xP;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){var l=Ls(s.definition),u=pe(l,function(p,g){var m=_y([p],[],null,1);return st(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Qn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(wa(u))},[]);return r}function _6(e,t,n){var i=new xP;e.accept(i);var r=i.alternations;r=_a(r,function(s){return s.ignoreAmbiguities===!0});var a=dn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=Mp(u,e,p,l),m=k6(g,l,e,n),v=j6(g,l,e,n);return s.concat(m,v)},[]);return a}function w6(e,t){var n=new xP;e.accept(n);var i=n.alternations,r=dn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Qn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function M6(e,t,n){var i=[];return ye(e,function(r){var a=new V6;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=J1(l),p=l.maxLookahead||t,g=l.idx,m=kp(g,r,u,p),v=m[0];if(st(Dn(v))){var E=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:E,type:Qn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function k6(e,t,n,i){var r=[],a=dn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(v,E){p!==E&&Vy(v,g)&&t.definition[E].ignoreAmbiguities!==!0&&m.push(E)}),m.length>1&&!Vy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=pe(a,function(l){var u=pe(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Qn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function j6(e,t,n,i){var r=[],a=dn(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=ZV(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&ow(v.path,p)}),m=pe(g,function(v){var E=[v.idx+1,u+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:E,prefixPath:v.path});return{message:I,type:Qn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:E}});r=r.concat(m)}}),r}function U6(e,t,n){var i=[],r=pe(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:Qn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var PP,N6,xP,V6,CP=Je(()=>{bt();bt();Cr();mf();jp();wp();ji();df();PP=(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(sw,"validateGrammar");o(R6,"validateDuplicateProductions");o(L6,"identifyProductionForDuplicates");o(cw,"getExtraProductionArgument");N6=(function(e){PP(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})(Jr);o(F6,"validateRuleDoesNotAlreadyExist");o(lw,"validateRuleIsOverridden");o(fw,"validateNoLeftRecursion");o(wy,"getFirstNoneTerminal");xP=(function(e){PP(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})(Jr);o(D6,"validateEmptyOrAlternative");o(_6,"validateAmbiguousAlternationAlternatives");V6=(function(e){PP(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})(Jr);o(w6,"validateTooManyAlts");o(M6,"validateSomeNonEmptyLookaheadPath");o(k6,"checkAlternativesAmbiguities");o(j6,"checkPrefixAlternativesAmbiguities");o(U6,"checkTerminalAndNoneTerminalsNameSpace")});function My(e){e=Ip(e,{errMsgProvider:Ny});var t={};return ye(e.rules,function(n){t[n.name]=n}),W1(t,e.errMsgProvider)}function ky(e){return e=Ip(e,{errMsgProvider:Vs}),sw(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function uw(e){ye(e.rules,function(t){var n=new TP;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var IP=Je(()=>{bt();K1();CP();Vp();mf();o(My,"resolveGrammar");o(ky,"validateGrammar");o(uw,"assignOccurrenceIndices")});function ja(e){return Vt(hw,e.name)}var Up,pw,dw,gw,mw,hw,jy,hf,Uy,$y,By,yf=Je(()=>{bt();Up=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),pw="MismatchedTokenException",dw="NoViableAltException",gw="EarlyExitException",mw="NotAllInputParsedException",hw=[pw,dw,gw,mw];Object.freeze(hw);o(ja,"isRecognitionException");jy=(function(e){Up(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t})(Error),hf=(function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=pw,a}return o(t,"MismatchedTokenException"),t})(jy),Uy=(function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=dw,a}return o(t,"NoViableAltException"),t})(jy),$y=(function(e){Up(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=mw,r}return o(t,"NotAllInputParsedException"),t})(jy),By=(function(e){Up(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=gw,a}return o(t,"EarlyExitException"),t})(jy)});function yw(e){this.name=RP,this.message=e}function $6(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,E=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=zr,E=1),this.shouldInRepetitionRecoveryBeTried(v,E,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var OP,RP,Tw,LP=Je(()=>{_s();bt();yf();bP();Cr();OP={},RP="InRuleRecoveryException";o(yw,"InRuleRecoveryException");yw.prototype=Error.prototype;Tw=(function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=xe(t,"recoveryEnabled")?t.recoveryEnabled:nr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=$6)},e.prototype.getTokenToInsert=function(t){var n=Ds(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 E=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:E,ruleName:a.getCurrRuleFullName()}),I=new hf(b,g,a.LA(0));I.resyncedTokens=Ls(u),a.SAVE_ERROR(I)},"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 yw("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)||st(n))return!1;var r=this.LA(1),a=Va(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 OP;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return pe(n,function(r,a){return a===0?OP:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Dn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===OP)return[zr];var n=t.ruleName+t.idxInCallingRule+Ly+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,zr)||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 Ls(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=Pn(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e})();o($6,"attemptInRepetitionRecovery")});function Wy(e,t,n){return n|t|e}var vw,Jo,B6,Hy,Gy,$p,Bp,Hp,Tf,Sue,Ky=Je(()=>{vw=4,Jo=8,B6=8,Hy=1<<Jo,Gy=2<<Jo,$p=3<<Jo,Bp=4<<Jo,Hp=5<<Jo,Tf=6<<Jo;o(Wy,"getKeyForAutomaticLookahead");Sue=32-B6});var bw,Ew=Je(()=>{jp();bt();Cr();Ky();mf();bw=(function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=xe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:nr.dynamicTokensEnabled,this.maxLookahead=xe(t,"maxLookahead")?t.maxLookahead:nr.maxLookahead,this.lookAheadFuncsCache=cP()?new Map:[],cP()?(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=B1(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(""+xr(m)+v,function(){var E=Z1(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Wy(n.fullRuleNameToShort[i.name],Hy,m.idx);n.setLaFuncCache(b,E)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,$p,wt.REPETITION,m.maxLookahead,xr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,Gy,wt.OPTION,m.maxLookahead,xr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,Bp,wt.REPETITION_MANDATORY,m.maxLookahead,xr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,Tf,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,xr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,Hp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,xr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=ew(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Wy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return nw(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return tw(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Wy(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 NP(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function FP(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 Sw(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function Aw(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var Pw=Je(()=>{o(NP,"setNodeLocationOnlyOffset");o(FP,"setNodeLocationFull");o(Sw,"addTerminalToCst");o(Aw,"addNoneTerminalToCst")});function Cw(e){return Gp(e.constructor)}function Gp(e){var t=e.name;return t||"anonymous"}function DP(e,t){var n=Object.getOwnPropertyDescriptor(e,xw);return Ci(n)||n.configurable?(Object.defineProperty(e,xw,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var xw,_P=Je(()=>{bt();o(Cw,"classNameFromInstance");xw="name";o(Gp,"functionName");o(DP,"defineNameProp")});function H6(e,t){for(var n=Mi(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 Iw(e,t){var n=o(function(){},"derivedConstructor");DP(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(ui(r)&&(r=r[0]),!Ci(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=G6(this,t);if(!st(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Gp(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 Ow(e,t,n){var i=o(function(){},"derivedConstructor");DP(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(a){r[a]=H6}),i.prototype=r,i.prototype.constructor=i,i}function G6(e,t){var n=W6(e,t),i=X6(e,t);return n.concat(i)}function W6(e,t){var n=pe(t,function(i){if(!Eo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+Gp(e.constructor)+" CST Visitor.",type:Xy.MISSING_METHOD,methodName:i}});return wa(n)}function X6(e,t){var n=[];for(var i in e)Eo(e[i])&&!Vt(K6,i)&&!Vt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+Gp(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:Xy.REDUNDANT_METHOD,methodName:i});return n}var Xy,G6,Ow=Je(()=>{bt();DP();o($6,"defaultVisit");o(Cw,"createBaseSemanticVisitorConstructor");o(Iw,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Xy||(Xy={}));o(B6,"validateVisitor");o(H6,"validateMissingCstMethods");G6=["constructor","visit","validateVisitor"];o(W6,"validateRedundantMethods")});var Rw,Lw=Je(()=>{Aw();bt();Ow();Cr();Rw=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:nr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Bn,this.cstFinallyStateUpdate=Bn,this.cstPostTerminal=Bn,this.cstPostNonTerminal=Bn,this.cstPostRule=Bn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=NP,this.setNodeLocationFromNode=NP,this.cstPostRule=Bn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=LP,this.setNodeLocationFromNode=LP,this.cstPostRule=Bn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=Bn,this.setInitialNodeLocation=Bn;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];Ew(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];Sw(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ci(this.baseCstVisitorConstructor)){var t=Cw(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ci(this.baseCstVisitorWithDefaultsConstructor)){var t=Iw(this.className,Mi(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 Nw,Fw=Je(()=>{Cr();Nw=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):vf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?vf:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var Dw,_w=Je(()=>{bt();yf();Cr();Vp();xP();ji();Dw=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=bf),Vt(this.definedRulesNames,t)){var r=Vs.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Qn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=bf);var r=[];r=r.concat(cw(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(ja(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Iy(Un(this.gastProductionsCache))},e}()});var Vw,ww=Je(()=>{bt();Ky();yf();jp();wp();Cr();RP();_s();uf();DP();Vw=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=xw(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ff,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},xe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
170
|
+
`,type:Xy.REDUNDANT_METHOD,methodName:i});return n}var Xy,K6,Rw=Je(()=>{bt();_P();o(H6,"defaultVisit");o(Iw,"createBaseSemanticVisitorConstructor");o(Ow,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Xy||(Xy={}));o(G6,"validateVisitor");o(W6,"validateMissingCstMethods");K6=["constructor","visit","validateVisitor"];o(X6,"validateRedundantMethods")});var Lw,Nw=Je(()=>{Pw();bt();Rw();Cr();Lw=(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:nr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Bn,this.cstFinallyStateUpdate=Bn,this.cstPostTerminal=Bn,this.cstPostNonTerminal=Bn,this.cstPostRule=Bn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=FP,this.setNodeLocationFromNode=FP,this.cstPostRule=Bn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=NP,this.setNodeLocationFromNode=NP,this.cstPostRule=Bn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Bn,this.setNodeLocationFromNode=Bn,this.cstPostRule=Bn,this.setInitialNodeLocation=Bn;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];Sw(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];Aw(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ci(this.baseCstVisitorConstructor)){var t=Iw(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ci(this.baseCstVisitorWithDefaultsConstructor)){var t=Ow(this.className,Mi(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 Fw,Dw=Je(()=>{Cr();Fw=(function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):vf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?vf:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e})()});var _w,Vw=Je(()=>{bt();yf();Cr();Vp();CP();ji();_w=(function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=bf),Vt(this.definedRulesNames,t)){var r=Vs.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Qn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=bf);var r=[];r=r.concat(lw(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(ja(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Iy(Un(this.gastProductionsCache))},e})()});var ww,Mw=Je(()=>{bt();Ky();yf();jp();wp();Cr();LP();_s();uf();_P();ww=(function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=Cw(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=ff,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},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(ui(t)){if(st(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(ui(t))this.tokensMap=dn(t,function(s,l){return s[l.name]=l,s},{});else if(xe(t,"modes")&&pi(Dn(Un(t.modes)),
|
|
177
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=xe(i,"resyncEnabled")?i.resyncEnabled:bf.resyncEnabled,a=xe(i,"recoveryValueFunc")?i.recoveryValueFunc:bf.recoveryValueFunc,s=this.ruleShortNameIdx<<Tw+Jo;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(ja(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(Bp,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,Bp,t,Q1)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tf,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,EP],u,Tf,t,EP)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead($p,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,$p,t,X1,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Hp,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,bP],u,Hp,t,bP)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Tf,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Hy,n),r=ui(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 $y(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 ja(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new hf(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===OP?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=Pn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Yr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var Mw,kw=Je(()=>{yf();bt();jp();Cr();Mw=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=xe(t,"errorMessageProvider")?t.errorMessageProvider:nr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(ja(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Pn(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 Pn(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=kp(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 By(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=Mp(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 Uy(p,this.LA(1),u))},e}()});var jw,Uw=Je(()=>{wp();bt();jw=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ci(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return _y([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=xi(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new K1(r,t).startWalking();return a},e}()});function Wp(e,t,n,i){i===void 0&&(i=!1),Qy(n);var r=Rp(this.recordingProdStack),a=bo(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(),qy}function X6(e,t){var n=this;Qy(t);var i=Rp(this.recordingProdStack),r=ui(e)===!1,a=r===!1?e:e.DEF,s=new Cn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});xe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=dy(a,function(u){return bo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Zt({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()}),qy}function Hw(e){return e===0?"":""+e}function Qy(e){if(e<0||e>Bw){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(ui(t))this.tokensMap=dn(t,function(s,l){return s[l.name]=l,s},{});else if(xe(t,"modes")&&pi(Dn(Un(t.modes)),O1)){var i=Dn(Un(t.modes)),r=Cp(i);this.tokensMap=dn(r,function(s,l){return s[l.name]=l,s},{})}else if(py(t))this.tokensMap=Ns(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=zr;var a=pi(Un(t),function(s){return st(s.categoryMatches)});this.tokenMatcher=a?ff:Qc,Ma(Un(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:bf.resyncEnabled,a=xe(i,"recoveryValueFunc")?i.recoveryValueFunc:bf.recoveryValueFunc,s=this.ruleShortNameIdx<<vw+Jo;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(ja(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(Bp,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,Bp,t,q1)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tf,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,SP],u,Tf,t,SP)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead($p,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,$p,t,Q1,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Hp,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,EP],u,Hp,t,EP)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Tf,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Hy,n),r=ui(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 $y(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 ja(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new hf(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===RP?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=Pn(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),zr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e})()});var kw,jw=Je(()=>{yf();bt();jp();Cr();kw=(function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=xe(t,"errorMessageProvider")?t.errorMessageProvider:nr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(ja(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:Pn(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 Pn(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=kp(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 By(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=Mp(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 Uy(p,this.LA(1),u))},e})()});var Uw,$w=Je(()=>{wp();bt();Uw=(function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Ci(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return _y([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=xi(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new X1(r,t).startWalking();return a},e})()});function Wp(e,t,n,i){i===void 0&&(i=!1),Qy(n);var r=Rp(this.recordingProdStack),a=Eo(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(),qy}function q6(e,t){var n=this;Qy(t);var i=Rp(this.recordingProdStack),r=ui(e)===!1,a=r===!1?e:e.DEF,s=new Cn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});xe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=dy(a,function(u){return Eo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new en({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()}),qy}function Gw(e){return e===0?"":""+e}function Qy(e){if(e<0||e>Hw){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+(Hw+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var qy,Bw,Hw,Ww,Kw,Q6,Xw,Qw=Je(()=>{bt();ji();Np();uf();_s();Cr();Ky();qy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(qy);Bw=!0,Hw=Math.pow(2,Jo)-1,Ww=Dp({name:"RECORDING_PHASE_TOKEN",pattern:ki.NA});Ma([Ww]);Kw=Ds(Ww,`This IToken indicates the Parser is in Recording Phase
|
|
179
|
+
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(Kw);Q6={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:{}},Xw=(function(){function e(){}return o(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return vf},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new Pr({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 Wp.call(this,cn,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Wp.call(this,_n,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Wp.call(this,Vn,n,t
|
|
183
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=Rp(this.recordingProdStack),s=t.ruleName,l=new sn({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=Rp(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 Wp.call(this,cn,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Wp.call(this,_n,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Wp.call(this,Vn,n,t,Bw)},e.prototype.manyInternalRecord=function(t,n){Wp.call(this,Lt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){Wp.call(this,xn,n,t,Bw)},e.prototype.orInternalRecord=function(t,n){return q6.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(Qy(n),!t||xe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+Gw(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=Rp(this.recordingProdStack),s=t.ruleName,l=new sn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?Q6:qy},e.prototype.consumeInternalRecord=function(t,n,i){if(Qy(n),!mP(t)){var r=new Error("<CONSUME"+Gw(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=Rp(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),Kw},e})();o(Wp,"recordProd");o(q6,"recordOrProd");o(Gw,"getIdxSuffix");o(Qy,"assertMethodIdxIsValid")});var qw,Yw=Je(()=>{bt();Cr();qw=(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=nr.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=hy(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 Jw(e){return e===void 0&&(e=void 0),function(){return e}}var zw,vf,nr,bf,Qn,VP,Zw,eM,Cr=Je(()=>{bt();G1();_s();Vp();IP();LP();Ew();Nw();Dw();Vw();Mw();jw();$w();Qw();Yw();zw=(function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}})(),vf=Ds(zr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(vf);nr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:_p,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),bf=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Qn||(Qn={}));o(Jw,"EMPTY_ALT");VP=(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:nr.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(){my(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=My({rules:Un(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(st(r)&&t.skipValidations===!1){var a=ky({rules:Un(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Un(t.tokensMap),errMsgProvider:Vs,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),st(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=
|
|
187
|
+
For further details.`);this.skipValidations=xe(n,"skipValidations")?n.skipValidations:nr.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(){my(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=My({rules:Un(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(st(r)&&t.skipValidations===!1){var a=ky({rules:Un(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Un(t.tokensMap),errMsgProvider:Vs,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),st(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=H1(Un(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Un(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!st(t.definitionErrors))throw n=pe(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})();i1(VP,[Tw,bw,Lw,Fw,ww,_w,kw,Uw,Xw,qw]);Zw=(function(e){zw(t,e);function t(n,i){i===void 0&&(i=nr);var r=this,a=Ns(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t})(VP),eM=(function(e){zw(t,e);function t(n,i){i===void 0&&(i=nr);var r=this,a=Ns(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t})(VP)});function tM(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+xp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+xp+"/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 nM=Je(()=>{oP();o(tM,"createSyntaxDiagramsCode")});function rM(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
|
+
`+aM(e)+`
|
|
235
235
|
|
|
236
236
|
return {
|
|
237
237
|
`+e.name+": "+e.name+`
|
|
238
238
|
}
|
|
239
239
|
}));
|
|
240
|
-
`}function
|
|
241
|
-
`+
|
|
240
|
+
`}function oM(e){return`
|
|
241
|
+
`+aM(e)+`
|
|
242
242
|
return new `+e.name+`(tokenVocabulary, config)
|
|
243
|
-
`}function
|
|
243
|
+
`}function aM(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
|
+
`+Y6(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,38 +260,38 @@ 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 Y6(e){var t=pe(e,function(n){return z6(n,1)});return t.join(`
|
|
264
|
+
`)}function z6(e,t){var n=Ui(t,'$.RULE("'+e.name+'", function() {')+ni;return n+=Yy(e.definition,t+1),n+=Ui(t+1,"})")+ni,n}function J6(e,t){var n=e.terminalType.name;return Ui(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ni)}function Z6(e,t){return Ui(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ni)}function eY(e,t){var n=Ui(t,"$.OR"+e.idx+"([")+ni,i=pe(e.definition,function(r){return tY(r,t+1)});return n+=i.join(","+ni),n+=ni+Ui(t,"])"+ni),n}function tY(e,t){var n=Ui(t,"{")+ni;return n+=Ui(t+1,"ALT: function() {")+ni,n+=Yy(e.definition,t+1),n+=Ui(t+1,"}")+ni,n+=Ui(t,"}"),n}function nY(e,t){if(e instanceof sn)return Z6(e,t);if(e instanceof cn)return Kp("OPTION",e,t);if(e instanceof _n)return Kp("AT_LEAST_ONE",e,t);if(e instanceof Vn)return Kp("AT_LEAST_ONE_SEP",e,t);if(e instanceof xn)return Kp("MANY_SEP",e,t);if(e instanceof Lt)return Kp("MANY",e,t);if(e instanceof Cn)return eY(e,t);if(e instanceof ht)return J6(e,t);if(e instanceof en)return Yy(e.definition,t);throw Error("non exhaustive match")}function Kp(e,t,n){var i=Ui(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ni,i+=Ui(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ni,i+="DEF: "+iM(t.definition,n+2)+ni,i+=Ui(n,"}")+ni):i+=iM(t.definition,n+1),i+=Ui(n,")")+ni,i}function iM(e,t){var n="function() {"+ni;return n+=Yy(e,t),n+=Ui(t,"}")+ni,n}function Yy(e,t){var n="";return ye(e,function(i){n+=nY(i,t+1)}),n}function Ui(e,t){var n=Array(e*4+1).join(" ");return n+t}var ni,sM=Je(()=>{bt();ji();ni=`
|
|
265
|
+
`;o(rM,"genUmdModule");o(oM,"genWrapperFunction");o(aM,"genClass");o(Y6,"genAllRules");o(z6,"genRule");o(J6,"genTerminal");o(Z6,"genNonTerminal");o(eY,"genAlternation");o(tY,"genSingleAlt");o(nY,"genProd");o(Kp,"genDSLRule");o(iM,"genDefFunction");o(Yy,"genDefinition");o(Ui,"indent")});function cM(e){var t=oM({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Jy(),Fg(zy)))}}function lM(e){return rM({name:e.name,rules:e.rules})}var fM=Je(()=>{sM();o(cM,"generateParserFactory");o(lM,"generateParserModule")});var zy={};lc(zy,{Alternation:()=>Cn,Alternative:()=>en,CstParser:()=>Zw,EMPTY_ALT:()=>Jw,EOF:()=>zr,EarlyExitException:()=>By,EmbeddedActionsParser:()=>eM,GAstVisitor:()=>Jr,Lexer:()=>ki,LexerDefinitionErrorType:()=>gn,MismatchedTokenException:()=>hf,NoViableAltException:()=>Uy,NonTerminal:()=>sn,NotAllInputParsedException:()=>$y,Option:()=>cn,Parser:()=>rY,ParserDefinitionErrorType:()=>Qn,Repetition:()=>Lt,RepetitionMandatory:()=>_n,RepetitionMandatoryWithSeparator:()=>Vn,RepetitionWithSeparator:()=>xn,Rule:()=>Pr,Terminal:()=>ht,VERSION:()=>xp,assignOccurrenceIndices:()=>uw,clearCache:()=>iY,createSyntaxDiagramsCode:()=>tM,createToken:()=>Dp,createTokenInstance:()=>Ds,defaultGrammarResolverErrorProvider:()=>Ny,defaultGrammarValidatorErrorProvider:()=>Vs,defaultLexerErrorProvider:()=>Cy,defaultParserErrorProvider:()=>_p,generateParserFactory:()=>cM,generateParserModule:()=>lM,isRecognitionException:()=>ja,resolveGrammar:()=>My,serializeGrammar:()=>Iy,serializeProduction:()=>pf,tokenLabel:()=>zo,tokenMatcher:()=>k1,tokenName:()=>M1,validateGrammar:()=>ky});function iY(){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
|
|
269
|
-
`],lineTerminatorsPattern:/\n|\r\n/g});mM.exports={xmlLexer:xY,tokensDictionary:pM}});var yM=Ze((Cde,hM)=>{var{CstParser:CY,tokenMatcher:IY}=(Jy(),Fg(zy)),{tokensDictionary:Ct}=MP(),jP=class jP extends CY{constructor(){super(Ct,{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(Ct.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(Ct.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(Ct.DocType),t.CONSUME(Ct.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(Ct.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(Ct.Name,{LABEL:"System"}),t.CONSUME(Ct.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(Ct.Name,{LABEL:"Public"}),t.CONSUME2(Ct.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(Ct.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(Ct.CData),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(Ct.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(Ct.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(Ct.SLASH_OPEN),t.CONSUME2(Ct.Name,{LABEL:"END_NAME"}),t.CONSUME2(Ct.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(Ct.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(Ct.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(Ct.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.EQUALS),t.CONSUME(Ct.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(Ct.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.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=>IY(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(jP,"Parser");var kP=jP,OY=new kP;hM.exports={xmlParser:OY}});var UP=Ze((Ode,TM)=>{var{xmlLexer:RY}=MP(),{xmlParser:Zy}=yM();TM.exports={parse:o(function(t){let n=RY.tokenize(t);return Zy.input=n.tokens,{cst:Zy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Zy.errors}},"parse"),BaseXmlCstVisitor:Zy.getBaseCstVisitorConstructor()}});var qp=Ze((Sf,Qp)=>{(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,E=2,b=1,I=2,F=4,M=8,G=16,$=32,se=64,te=128,le=256,Re=512,D=30,Ue="...",$e=800,qe=16,tn=1,$t=2,St=3,qt=1/0,Le=9007199254740991,Tn=17976931348623157e292,vn=NaN,nn=4294967295,On=nn-1,rn=nn>>>1,Ie=[["ary",te],["bind",b],["bindKey",I],["curry",M],["curryRight",G],["flip",Re],["partial",$],["partialRight",se],["rearg",le]],ln="[object Arguments]",Oi="[object Array]",tt="[object AsyncFunction]",O="[object Boolean]",A="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Lt="[object GeneratorFunction]",ze="[object Map]",Mt="[object Number]",bn="[object Null]",fn="[object Object]",Bt="[object Promise]",ii="[object Proxy]",cr="[object RegExp]",mn="[object Set]",mi="[object String]",Ht="[object Symbol]",na="[object Undefined]",Hi="[object WeakMap]",Xf="[object WeakSet]",Js="[object ArrayBuffer]",Nr="[object DataView]",Qf="[object Float32Array]",qf="[object Float64Array]",Yf="[object Int8Array]",Zs="[object Int16Array]",j="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Fe="[object Uint32Array]",hn=/\b__p \+= '';/g,Rn=/\b(__p \+=) '' \+/g,it=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Ae=RegExp(me.source),Ce=RegExp(Te.source),at=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,un=/<%=([\s\S]+?)%>/g,lr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bd=/^\w*$/,$T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,T2=RegExp(zf.source),BT=/^\s+/,b2=/\s/,E2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,S2=/\{\n\/\* \[wrapped with (.+)\] \*/,A2=/,? & /,P2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,x2=/[()=,{}\[\]\/\s]/,C2=/\\(\\)?/g,I2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,FI=/\w*$/,O2=/^[-+]0x[0-9a-f]+$/i,R2=/^0b[01]+$/i,L2=/^\[object .+?Constructor\]$/,N2=/^0o[0-7]+$/i,F2=/^(?:0|[1-9]\d*)$/,D2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hd=/($^)/,_2=/['\n\r\u2028\u2029\\]/g,Gd="\\ud800-\\udfff",V2="\\u0300-\\u036f",w2="\\ufe20-\\ufe2f",M2="\\u20d0-\\u20ff",DI=V2+w2+M2,_I="\\u2700-\\u27bf",VI="a-z\\xdf-\\xf6\\xf8-\\xff",k2="\\xac\\xb1\\xd7\\xf7",j2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",U2="\\u2000-\\u206f",$2=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",wI="A-Z\\xc0-\\xd6\\xd8-\\xde",MI="\\ufe0e\\ufe0f",kI=k2+j2+U2+$2,HT="['\u2019]",B2="["+Gd+"]",jI="["+kI+"]",Wd="["+DI+"]",UI="\\d+",H2="["+_I+"]",$I="["+VI+"]",BI="[^"+Gd+kI+UI+_I+VI+wI+"]",GT="\\ud83c[\\udffb-\\udfff]",G2="(?:"+Wd+"|"+GT+")",HI="[^"+Gd+"]",WT="(?:\\ud83c[\\udde6-\\uddff]){2}",KT="[\\ud800-\\udbff][\\udc00-\\udfff]",sl="["+wI+"]",GI="\\u200d",WI="(?:"+$I+"|"+BI+")",W2="(?:"+sl+"|"+BI+")",KI="(?:"+HT+"(?:d|ll|m|re|s|t|ve))?",XI="(?:"+HT+"(?:D|LL|M|RE|S|T|VE))?",QI=G2+"?",qI="["+MI+"]?",K2="(?:"+GI+"(?:"+[HI,WT,KT].join("|")+")"+qI+QI+")*",X2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Q2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",YI=qI+QI+K2,q2="(?:"+[H2,WT,KT].join("|")+")"+YI,Y2="(?:"+[HI+Wd+"?",Wd,WT,KT,B2].join("|")+")",z2=RegExp(HT,"g"),J2=RegExp(Wd,"g"),XT=RegExp(GT+"(?="+GT+")|"+Y2+YI,"g"),Z2=RegExp([sl+"?"+$I+"+"+KI+"(?="+[jI,sl,"$"].join("|")+")",W2+"+"+XI+"(?="+[jI,sl+WI,"$"].join("|")+")",sl+"?"+WI+"+"+KI,sl+"+"+XI,Q2,X2,UI,q2].join("|"),"g"),ej=RegExp("["+GI+Gd+DI+MI+"]"),tj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nj=["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"],ij=-1,on={};on[Qf]=on[qf]=on[Yf]=on[Zs]=on[j]=on[B]=on[q]=on[ce]=on[Fe]=!0,on[ln]=on[Oi]=on[Js]=on[O]=on[Nr]=on[A]=on[V]=on[_e]=on[ze]=on[Mt]=on[fn]=on[cr]=on[mn]=on[mi]=on[Hi]=!1;var Yt={};Yt[ln]=Yt[Oi]=Yt[Js]=Yt[Nr]=Yt[O]=Yt[A]=Yt[Qf]=Yt[qf]=Yt[Yf]=Yt[Zs]=Yt[j]=Yt[ze]=Yt[Mt]=Yt[fn]=Yt[cr]=Yt[mn]=Yt[mi]=Yt[Ht]=Yt[B]=Yt[q]=Yt[ce]=Yt[Fe]=!0,Yt[V]=Yt[_e]=Yt[Hi]=!1;var rj={\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"},oj={"&":"&","<":"<",">":">",'"':""","'":"'"},aj={"&":"&","<":"<",">":">",""":'"',"'":"'"},sj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},cj=parseFloat,lj=parseInt,zI=typeof global=="object"&&global&&global.Object===Object&&global,fj=typeof self=="object"&&self&&self.Object===Object&&self,qn=zI||fj||Function("return this")(),QT=typeof Sf=="object"&&Sf&&!Sf.nodeType&&Sf,ec=QT&&typeof Qp=="object"&&Qp&&!Qp.nodeType&&Qp,JI=ec&&ec.exports===QT,qT=JI&&zI.process,Fr=function(){try{var w=ec&&ec.require&&ec.require("util").types;return w||qT&&qT.binding&&qT.binding("util")}catch{}}(),ZI=Fr&&Fr.isArrayBuffer,eO=Fr&&Fr.isDate,tO=Fr&&Fr.isMap,nO=Fr&&Fr.isRegExp,iO=Fr&&Fr.isSet,rO=Fr&&Fr.isTypedArray;function fr(w,X,K){switch(K.length){case 0:return w.call(X);case 1:return w.call(X,K[0]);case 2:return w.call(X,K[0],K[1]);case 3:return w.call(X,K[0],K[1],K[2])}return w.apply(X,K)}o(fr,"apply");function uj(w,X,K,Ee){for(var Ke=-1,At=w==null?0:w.length;++Ke<At;){var Gn=w[Ke];X(Ee,Gn,K(Gn),w)}return Ee}o(uj,"arrayAggregator");function Dr(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee&&X(w[K],K,w)!==!1;);return w}o(Dr,"arrayEach");function pj(w,X){for(var K=w==null?0:w.length;K--&&X(w[K],K,w)!==!1;);return w}o(pj,"arrayEachRight");function oO(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(!X(w[K],K,w))return!1;return!0}o(oO,"arrayEvery");function Ka(w,X){for(var K=-1,Ee=w==null?0:w.length,Ke=0,At=[];++K<Ee;){var Gn=w[K];X(Gn,K,w)&&(At[Ke++]=Gn)}return At}o(Ka,"arrayFilter");function Kd(w,X){var K=w==null?0:w.length;return!!K&&cl(w,X,0)>-1}o(Kd,"arrayIncludes");function YT(w,X,K){for(var Ee=-1,Ke=w==null?0:w.length;++Ee<Ke;)if(K(X,w[Ee]))return!0;return!1}o(YT,"arrayIncludesWith");function pn(w,X){for(var K=-1,Ee=w==null?0:w.length,Ke=Array(Ee);++K<Ee;)Ke[K]=X(w[K],K,w);return Ke}o(pn,"arrayMap");function Xa(w,X){for(var K=-1,Ee=X.length,Ke=w.length;++K<Ee;)w[Ke+K]=X[K];return w}o(Xa,"arrayPush");function zT(w,X,K,Ee){var Ke=-1,At=w==null?0:w.length;for(Ee&&At&&(K=w[++Ke]);++Ke<At;)K=X(K,w[Ke],Ke,w);return K}o(zT,"arrayReduce");function dj(w,X,K,Ee){var Ke=w==null?0:w.length;for(Ee&&Ke&&(K=w[--Ke]);Ke--;)K=X(K,w[Ke],Ke,w);return K}o(dj,"arrayReduceRight");function JT(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(X(w[K],K,w))return!0;return!1}o(JT,"arraySome");var gj=ZT("length");function mj(w){return w.split("")}o(mj,"asciiToArray");function hj(w){return w.match(P2)||[]}o(hj,"asciiWords");function aO(w,X,K){var Ee;return K(w,function(Ke,At,Gn){if(X(Ke,At,Gn))return Ee=At,!1}),Ee}o(aO,"baseFindKey");function Xd(w,X,K,Ee){for(var Ke=w.length,At=K+(Ee?1:-1);Ee?At--:++At<Ke;)if(X(w[At],At,w))return At;return-1}o(Xd,"baseFindIndex");function cl(w,X,K){return X===X?Oj(w,X,K):Xd(w,sO,K)}o(cl,"baseIndexOf");function yj(w,X,K,Ee){for(var Ke=K-1,At=w.length;++Ke<At;)if(Ee(w[Ke],X))return Ke;return-1}o(yj,"baseIndexOfWith");function sO(w){return w!==w}o(sO,"baseIsNaN");function cO(w,X){var K=w==null?0:w.length;return K?tv(w,X)/K:vn}o(cO,"baseMean");function ZT(w){return function(X){return X==null?e:X[w]}}o(ZT,"baseProperty");function ev(w){return function(X){return w==null?e:w[X]}}o(ev,"basePropertyOf");function lO(w,X,K,Ee,Ke){return Ke(w,function(At,Gn,Wt){K=Ee?(Ee=!1,At):X(K,At,Gn,Wt)}),K}o(lO,"baseReduce");function Tj(w,X){var K=w.length;for(w.sort(X);K--;)w[K]=w[K].value;return w}o(Tj,"baseSortBy");function tv(w,X){for(var K,Ee=-1,Ke=w.length;++Ee<Ke;){var At=X(w[Ee]);At!==e&&(K=K===e?At:K+At)}return K}o(tv,"baseSum");function nv(w,X){for(var K=-1,Ee=Array(w);++K<w;)Ee[K]=X(K);return Ee}o(nv,"baseTimes");function vj(w,X){return pn(X,function(K){return[K,w[K]]})}o(vj,"baseToPairs");function fO(w){return w&&w.slice(0,gO(w)+1).replace(BT,"")}o(fO,"baseTrim");function ur(w){return function(X){return w(X)}}o(ur,"baseUnary");function iv(w,X){return pn(X,function(K){return w[K]})}o(iv,"baseValues");function Jf(w,X){return w.has(X)}o(Jf,"cacheHas");function uO(w,X){for(var K=-1,Ee=w.length;++K<Ee&&cl(X,w[K],0)>-1;);return K}o(uO,"charsStartIndex");function pO(w,X){for(var K=w.length;K--&&cl(X,w[K],0)>-1;);return K}o(pO,"charsEndIndex");function bj(w,X){for(var K=w.length,Ee=0;K--;)w[K]===X&&++Ee;return Ee}o(bj,"countHolders");var Ej=ev(rj),Sj=ev(oj);function Aj(w){return"\\"+sj[w]}o(Aj,"escapeStringChar");function Pj(w,X){return w==null?e:w[X]}o(Pj,"getValue");function ll(w){return ej.test(w)}o(ll,"hasUnicode");function xj(w){return tj.test(w)}o(xj,"hasUnicodeWord");function Cj(w){for(var X,K=[];!(X=w.next()).done;)K.push(X.value);return K}o(Cj,"iteratorToArray");function rv(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee,Ke){K[++X]=[Ke,Ee]}),K}o(rv,"mapToArray");function dO(w,X){return function(K){return w(X(K))}}o(dO,"overArg");function Qa(w,X){for(var K=-1,Ee=w.length,Ke=0,At=[];++K<Ee;){var Gn=w[K];(Gn===X||Gn===u)&&(w[K]=u,At[Ke++]=K)}return At}o(Qa,"replaceHolders");function Qd(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=Ee}),K}o(Qd,"setToArray");function Ij(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=[Ee,Ee]}),K}o(Ij,"setToPairs");function Oj(w,X,K){for(var Ee=K-1,Ke=w.length;++Ee<Ke;)if(w[Ee]===X)return Ee;return-1}o(Oj,"strictIndexOf");function Rj(w,X,K){for(var Ee=K+1;Ee--;)if(w[Ee]===X)return Ee;return Ee}o(Rj,"strictLastIndexOf");function fl(w){return ll(w)?Nj(w):gj(w)}o(fl,"stringSize");function ro(w){return ll(w)?Fj(w):mj(w)}o(ro,"stringToArray");function gO(w){for(var X=w.length;X--&&b2.test(w.charAt(X)););return X}o(gO,"trimmedEndIndex");var Lj=ev(aj);function Nj(w){for(var X=XT.lastIndex=0;XT.test(w);)++X;return X}o(Nj,"unicodeSize");function Fj(w){return w.match(XT)||[]}o(Fj,"unicodeToArray");function Dj(w){return w.match(Z2)||[]}o(Dj,"unicodeWords");var _j=o(function w(X){X=X==null?qn:qa.defaults(qn.Object(),X,qa.pick(qn,nj));var K=X.Array,Ee=X.Date,Ke=X.Error,At=X.Function,Gn=X.Math,Wt=X.Object,ov=X.RegExp,Vj=X.String,_r=X.TypeError,qd=K.prototype,wj=At.prototype,ul=Wt.prototype,Yd=X["__core-js_shared__"],zd=wj.toString,Nt=ul.hasOwnProperty,Mj=0,mO=function(){var c=/[^.]+$/.exec(Yd&&Yd.keys&&Yd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Jd=ul.toString,kj=zd.call(Wt),jj=qn._,Uj=ov("^"+zd.call(Nt).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=JI?X.Buffer:e,Ya=X.Symbol,eg=X.Uint8Array,hO=Zd?Zd.allocUnsafe:e,tg=dO(Wt.getPrototypeOf,Wt),yO=Wt.create,TO=ul.propertyIsEnumerable,ng=qd.splice,vO=Ya?Ya.isConcatSpreadable:e,Zf=Ya?Ya.iterator:e,tc=Ya?Ya.toStringTag:e,ig=function(){try{var c=ac(Wt,"defineProperty");return c({},"",{}),c}catch{}}(),$j=X.clearTimeout!==qn.clearTimeout&&X.clearTimeout,Bj=Ee&&Ee.now!==qn.Date.now&&Ee.now,Hj=X.setTimeout!==qn.setTimeout&&X.setTimeout,rg=Gn.ceil,og=Gn.floor,av=Wt.getOwnPropertySymbols,Gj=Zd?Zd.isBuffer:e,bO=X.isFinite,Wj=qd.join,Kj=dO(Wt.keys,Wt),Wn=Gn.max,hi=Gn.min,Xj=Ee.now,Qj=X.parseInt,EO=Gn.random,qj=qd.reverse,sv=ac(X,"DataView"),eu=ac(X,"Map"),cv=ac(X,"Promise"),pl=ac(X,"Set"),tu=ac(X,"WeakMap"),nu=ac(Wt,"create"),ag=tu&&new tu,dl={},Yj=sc(sv),zj=sc(eu),Jj=sc(cv),Zj=sc(pl),eU=sc(tu),sg=Ya?Ya.prototype:e,iu=sg?sg.valueOf:e,SO=sg?sg.toString:e;function P(c){if(En(c)&&!Ye(c)&&!(c instanceof dt)){if(c instanceof Vr)return c;if(Nt.call(c,"__wrapped__"))return AR(c)}return new Vr(c)}o(P,"lodash");var gl=function(){function c(){}return o(c,"object"),function(f){if(!yn(f))return{};if(yO)return yO(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function cg(){}o(cg,"baseLodash");function Vr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Vr,"LodashWrapper"),P.templateSettings={escape:at,evaluate:Gt,interpolate:un,variable:"",imports:{_:P}},P.prototype=cg.prototype,P.prototype.constructor=P,Vr.prototype=gl(cg.prototype),Vr.prototype.constructor=Vr;function dt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=nn,this.__views__=[]}o(dt,"LazyWrapper");function tU(){var c=new dt(this.__wrapped__);return c.__actions__=Gi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Gi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Gi(this.__views__),c}o(tU,"lazyClone");function nU(){if(this.__filtered__){var c=new dt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(nU,"lazyReverse");function iU(){var c=this.__wrapped__.value(),f=this.__dir__,d=Ye(c),T=f<0,S=d?c.length:0,C=m$(0,S,this.__views__),L=C.start,N=C.end,k=N-L,z=T?N:L-1,J=this.__iteratees__,ne=J.length,ge=0,Oe=hi(k,this.__takeCount__);if(!d||!T&&S==k&&Oe==k)return KO(c,this.__actions__);var Me=[];e:for(;k--&&ge<Oe;){z+=f;for(var nt=-1,ke=c[z];++nt<ne;){var ct=J[nt],gt=ct.iteratee,gr=ct.type,Ni=gt(ke);if(gr==$t)ke=Ni;else if(!Ni){if(gr==tn)continue e;break e}}Me[ge++]=ke}return Me}o(iU,"lazyValue"),dt.prototype=gl(cg.prototype),dt.prototype.constructor=dt;function nc(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(nc,"Hash");function rU(){this.__data__=nu?nu(null):{},this.size=0}o(rU,"hashClear");function oU(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(oU,"hashDelete");function aU(c){var f=this.__data__;if(nu){var d=f[c];return d===s?e:d}return Nt.call(f,c)?f[c]:e}o(aU,"hashGet");function sU(c){var f=this.__data__;return nu?f[c]!==e:Nt.call(f,c)}o(sU,"hashHas");function cU(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=nu&&f===e?s:f,this}o(cU,"hashSet"),nc.prototype.clear=rU,nc.prototype.delete=oU,nc.prototype.get=aU,nc.prototype.has=sU,nc.prototype.set=cU;function ia(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(ia,"ListCache");function lU(){this.__data__=[],this.size=0}o(lU,"listCacheClear");function fU(c){var f=this.__data__,d=lg(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():ng.call(f,d,1),--this.size,!0}o(fU,"listCacheDelete");function uU(c){var f=this.__data__,d=lg(f,c);return d<0?e:f[d][1]}o(uU,"listCacheGet");function pU(c){return lg(this.__data__,c)>-1}o(pU,"listCacheHas");function dU(c,f){var d=this.__data__,T=lg(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(dU,"listCacheSet"),ia.prototype.clear=lU,ia.prototype.delete=fU,ia.prototype.get=uU,ia.prototype.has=pU,ia.prototype.set=dU;function ra(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(ra,"MapCache");function gU(){this.size=0,this.__data__={hash:new nc,map:new(eu||ia),string:new nc}}o(gU,"mapCacheClear");function mU(c){var f=Eg(this,c).delete(c);return this.size-=f?1:0,f}o(mU,"mapCacheDelete");function hU(c){return Eg(this,c).get(c)}o(hU,"mapCacheGet");function yU(c){return Eg(this,c).has(c)}o(yU,"mapCacheHas");function TU(c,f){var d=Eg(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(TU,"mapCacheSet"),ra.prototype.clear=gU,ra.prototype.delete=mU,ra.prototype.get=hU,ra.prototype.has=yU,ra.prototype.set=TU;function ic(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new ra;++f<d;)this.add(c[f])}o(ic,"SetCache");function vU(c){return this.__data__.set(c,s),this}o(vU,"setCacheAdd");function bU(c){return this.__data__.has(c)}o(bU,"setCacheHas"),ic.prototype.add=ic.prototype.push=vU,ic.prototype.has=bU;function oo(c){var f=this.__data__=new ia(c);this.size=f.size}o(oo,"Stack");function EU(){this.__data__=new ia,this.size=0}o(EU,"stackClear");function SU(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(SU,"stackDelete");function AU(c){return this.__data__.get(c)}o(AU,"stackGet");function PU(c){return this.__data__.has(c)}o(PU,"stackHas");function xU(c,f){var d=this.__data__;if(d instanceof ia){var T=d.__data__;if(!eu||T.length<n-1)return T.push([c,f]),this.size=++d.size,this;d=this.__data__=new ra(T)}return d.set(c,f),this.size=d.size,this}o(xU,"stackSet"),oo.prototype.clear=EU,oo.prototype.delete=SU,oo.prototype.get=AU,oo.prototype.has=PU,oo.prototype.set=xU;function AO(c,f){var d=Ye(c),T=!d&&cc(c),S=!d&&!T&&ts(c),C=!d&&!T&&!S&&Tl(c),L=d||T||S||C,N=L?nv(c.length,Vj):[],k=N.length;for(var z in c)(f||Nt.call(c,z))&&!(L&&(z=="length"||S&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||ca(z,k)))&&N.push(z);return N}o(AO,"arrayLikeKeys");function PO(c){var f=c.length;return f?c[vv(0,f-1)]:e}o(PO,"arraySample");function CU(c,f){return Sg(Gi(c),rc(f,0,c.length))}o(CU,"arraySampleSize");function IU(c){return Sg(Gi(c))}o(IU,"arrayShuffle");function lv(c,f,d){(d!==e&&!ao(c[f],d)||d===e&&!(f in c))&&oa(c,f,d)}o(lv,"assignMergeValue");function ru(c,f,d){var T=c[f];(!(Nt.call(c,f)&&ao(T,d))||d===e&&!(f in c))&&oa(c,f,d)}o(ru,"assignValue");function lg(c,f){for(var d=c.length;d--;)if(ao(c[d][0],f))return d;return-1}o(lg,"assocIndexOf");function OU(c,f,d,T){return za(c,function(S,C,L){f(T,S,d(S),L)}),T}o(OU,"baseAggregator");function xO(c,f){return c&&No(f,Yn(f),c)}o(xO,"baseAssign");function RU(c,f){return c&&No(f,Ki(f),c)}o(RU,"baseAssignIn");function oa(c,f,d){f=="__proto__"&&ig?ig(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(oa,"baseAssignValue");function fv(c,f){for(var d=-1,T=f.length,S=K(T),C=c==null;++d<T;)S[d]=C?e:Gv(c,f[d]);return S}o(fv,"baseAt");function rc(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(rc,"baseClamp");function wr(c,f,d,T,S,C){var L,N=f&p,k=f&g,z=f&m;if(d&&(L=S?d(c,T,S,C):d(c)),L!==e)return L;if(!yn(c))return c;var J=Ye(c);if(J){if(L=y$(c),!N)return Gi(c,L)}else{var ne=yi(c),ge=ne==_e||ne==Lt;if(ts(c))return qO(c,N);if(ne==fn||ne==ln||ge&&!S){if(L=k||ge?{}:gR(c),!N)return k?a$(c,RU(L,c)):o$(c,xO(L,c))}else{if(!Yt[ne])return S?c:{};L=T$(c,ne,N)}}C||(C=new oo);var Oe=C.get(c);if(Oe)return Oe;C.set(c,L),HR(c)?c.forEach(function(ke){L.add(wr(ke,f,d,ke,c,C))}):$R(c)&&c.forEach(function(ke,ct){L.set(ct,wr(ke,f,d,ct,c,C))});var Me=z?k?Lv:Rv:k?Ki:Yn,nt=J?e:Me(c);return Dr(nt||c,function(ke,ct){nt&&(ct=ke,ke=c[ct]),ru(L,ct,wr(ke,f,d,ct,c,C))}),L}o(wr,"baseClone");function LU(c){var f=Yn(c);return function(d){return CO(d,c,f)}}o(LU,"baseConforms");function CO(c,f,d){var T=d.length;if(c==null)return!T;for(c=Wt(c);T--;){var S=d[T],C=f[S],L=c[S];if(L===e&&!(S in c)||!C(L))return!1}return!0}o(CO,"baseConformsTo");function IO(c,f,d){if(typeof c!="function")throw new _r(r);return uu(function(){c.apply(e,d)},f)}o(IO,"baseDelay");function ou(c,f,d,T){var S=-1,C=Kd,L=!0,N=c.length,k=[],z=f.length;if(!N)return k;d&&(f=pn(f,ur(d))),T?(C=YT,L=!1):f.length>=n&&(C=Jf,L=!1,f=new ic(f));e:for(;++S<N;){var J=c[S],ne=d==null?J:d(J);if(J=T||J!==0?J:0,L&&ne===ne){for(var ge=z;ge--;)if(f[ge]===ne)continue e;k.push(J)}else C(f,ne,T)||k.push(J)}return k}o(ou,"baseDifference");var za=eR(Lo),OO=eR(pv,!0);function NU(c,f){var d=!0;return za(c,function(T,S,C){return d=!!f(T,S,C),d}),d}o(NU,"baseEvery");function fg(c,f,d){for(var T=-1,S=c.length;++T<S;){var C=c[T],L=f(C);if(L!=null&&(N===e?L===L&&!dr(L):d(L,N)))var N=L,k=C}return k}o(fg,"baseExtremum");function FU(c,f,d,T){var S=c.length;for(d=et(d),d<0&&(d=-d>S?0:S+d),T=T===e||T>S?S:et(T),T<0&&(T+=S),T=d>T?0:WR(T);d<T;)c[d++]=f;return c}o(FU,"baseFill");function RO(c,f){var d=[];return za(c,function(T,S,C){f(T,S,C)&&d.push(T)}),d}o(RO,"baseFilter");function ri(c,f,d,T,S){var C=-1,L=c.length;for(d||(d=b$),S||(S=[]);++C<L;){var N=c[C];f>0&&d(N)?f>1?ri(N,f-1,d,T,S):Xa(S,N):T||(S[S.length]=N)}return S}o(ri,"baseFlatten");var uv=tR(),LO=tR(!0);function Lo(c,f){return c&&uv(c,f,Yn)}o(Lo,"baseForOwn");function pv(c,f){return c&&LO(c,f,Yn)}o(pv,"baseForOwnRight");function ug(c,f){return Ka(f,function(d){return la(c[d])})}o(ug,"baseFunctions");function oc(c,f){f=Za(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[Fo(f[d++])];return d&&d==T?c:e}o(oc,"baseGet");function NO(c,f,d){var T=f(c);return Ye(c)?T:Xa(T,d(c))}o(NO,"baseGetAllKeys");function Ri(c){return c==null?c===e?na:bn:tc&&tc in Wt(c)?g$(c):I$(c)}o(Ri,"baseGetTag");function dv(c,f){return c>f}o(dv,"baseGt");function DU(c,f){return c!=null&&Nt.call(c,f)}o(DU,"baseHas");function _U(c,f){return c!=null&&f in Wt(c)}o(_U,"baseHasIn");function VU(c,f,d){return c>=hi(f,d)&&c<Wn(f,d)}o(VU,"baseInRange");function gv(c,f,d){for(var T=d?YT:Kd,S=c[0].length,C=c.length,L=C,N=K(C),k=1/0,z=[];L--;){var J=c[L];L&&f&&(J=pn(J,ur(f))),k=hi(J.length,k),N[L]=!d&&(f||S>=120&&J.length>=120)?new ic(L&&J):e}J=c[0];var ne=-1,ge=N[0];e:for(;++ne<S&&z.length<k;){var Oe=J[ne],Me=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?Jf(ge,Me):T(z,Me,d))){for(L=C;--L;){var nt=N[L];if(!(nt?Jf(nt,Me):T(c[L],Me,d)))continue e}ge&&ge.push(Me),z.push(Oe)}}return z}o(gv,"baseIntersection");function wU(c,f,d,T){return Lo(c,function(S,C,L){f(T,d(S),C,L)}),T}o(wU,"baseInverter");function au(c,f,d){f=Za(f,c),c=TR(c,f);var T=c==null?c:c[Fo(kr(f))];return T==null?e:fr(T,c,d)}o(au,"baseInvoke");function FO(c){return En(c)&&Ri(c)==ln}o(FO,"baseIsArguments");function MU(c){return En(c)&&Ri(c)==Js}o(MU,"baseIsArrayBuffer");function kU(c){return En(c)&&Ri(c)==A}o(kU,"baseIsDate");function su(c,f,d,T,S){return c===f?!0:c==null||f==null||!En(c)&&!En(f)?c!==c&&f!==f:jU(c,f,d,T,su,S)}o(su,"baseIsEqual");function jU(c,f,d,T,S,C){var L=Ye(c),N=Ye(f),k=L?Oi:yi(c),z=N?Oi:yi(f);k=k==ln?fn:k,z=z==ln?fn:z;var J=k==fn,ne=z==fn,ge=k==z;if(ge&&ts(c)){if(!ts(f))return!1;L=!0,J=!1}if(ge&&!J)return C||(C=new oo),L||Tl(c)?uR(c,f,d,T,S,C):p$(c,f,k,d,T,S,C);if(!(d&v)){var Oe=J&&Nt.call(c,"__wrapped__"),Me=ne&&Nt.call(f,"__wrapped__");if(Oe||Me){var nt=Oe?c.value():c,ke=Me?f.value():f;return C||(C=new oo),S(nt,ke,d,T,C)}}return ge?(C||(C=new oo),d$(c,f,d,T,S,C)):!1}o(jU,"baseIsEqualDeep");function UU(c){return En(c)&&yi(c)==ze}o(UU,"baseIsMap");function mv(c,f,d,T){var S=d.length,C=S,L=!T;if(c==null)return!C;for(c=Wt(c);S--;){var N=d[S];if(L&&N[2]?N[1]!==c[N[0]]:!(N[0]in c))return!1}for(;++S<C;){N=d[S];var k=N[0],z=c[k],J=N[1];if(L&&N[2]){if(z===e&&!(k in c))return!1}else{var ne=new oo;if(T)var ge=T(z,J,k,c,f,ne);if(!(ge===e?su(J,z,v|E,T,ne):ge))return!1}}return!0}o(mv,"baseIsMatch");function DO(c){if(!yn(c)||S$(c))return!1;var f=la(c)?Uj:L2;return f.test(sc(c))}o(DO,"baseIsNative");function $U(c){return En(c)&&Ri(c)==cr}o($U,"baseIsRegExp");function BU(c){return En(c)&&yi(c)==mn}o(BU,"baseIsSet");function HU(c){return En(c)&&Og(c.length)&&!!on[Ri(c)]}o(HU,"baseIsTypedArray");function _O(c){return typeof c=="function"?c:c==null?Xi:typeof c=="object"?Ye(c)?MO(c[0],c[1]):wO(c):nL(c)}o(_O,"baseIteratee");function hv(c){if(!fu(c))return Kj(c);var f=[];for(var d in Wt(c))Nt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(hv,"baseKeys");function GU(c){if(!yn(c))return C$(c);var f=fu(c),d=[];for(var T in c)T=="constructor"&&(f||!Nt.call(c,T))||d.push(T);return d}o(GU,"baseKeysIn");function yv(c,f){return c<f}o(yv,"baseLt");function VO(c,f){var d=-1,T=Wi(c)?K(c.length):[];return za(c,function(S,C,L){T[++d]=f(S,C,L)}),T}o(VO,"baseMap");function wO(c){var f=Fv(c);return f.length==1&&f[0][2]?hR(f[0][0],f[0][1]):function(d){return d===c||mv(d,c,f)}}o(wO,"baseMatches");function MO(c,f){return _v(c)&&mR(f)?hR(Fo(c),f):function(d){var T=Gv(d,c);return T===e&&T===f?Wv(d,c):su(f,T,v|E)}}o(MO,"baseMatchesProperty");function pg(c,f,d,T,S){c!==f&&uv(f,function(C,L){if(S||(S=new oo),yn(C))WU(c,f,L,d,pg,T,S);else{var N=T?T(wv(c,L),C,L+"",c,f,S):e;N===e&&(N=C),lv(c,L,N)}},Ki)}o(pg,"baseMerge");function WU(c,f,d,T,S,C,L){var N=wv(c,d),k=wv(f,d),z=L.get(k);if(z){lv(c,d,z);return}var J=C?C(N,k,d+"",c,f,L):e,ne=J===e;if(ne){var ge=Ye(k),Oe=!ge&&ts(k),Me=!ge&&!Oe&&Tl(k);J=k,ge||Oe||Me?Ye(N)?J=N:Ln(N)?J=Gi(N):Oe?(ne=!1,J=qO(k,!0)):Me?(ne=!1,J=YO(k,!0)):J=[]:pu(k)||cc(k)?(J=N,cc(N)?J=KR(N):(!yn(N)||la(N))&&(J=gR(k))):ne=!1}ne&&(L.set(k,J),S(J,k,T,C,L),L.delete(k)),lv(c,d,J)}o(WU,"baseMergeDeep");function kO(c,f){var d=c.length;if(d)return f+=f<0?d:0,ca(f,d)?c[f]:e}o(kO,"baseNth");function jO(c,f,d){f.length?f=pn(f,function(C){return Ye(C)?function(L){return oc(L,C.length===1?C[0]:C)}:C}):f=[Xi];var T=-1;f=pn(f,ur(Ve()));var S=VO(c,function(C,L,N){var k=pn(f,function(z){return z(C)});return{criteria:k,index:++T,value:C}});return Tj(S,function(C,L){return r$(C,L,d)})}o(jO,"baseOrderBy");function KU(c,f){return UO(c,f,function(d,T){return Wv(c,T)})}o(KU,"basePick");function UO(c,f,d){for(var T=-1,S=f.length,C={};++T<S;){var L=f[T],N=oc(c,L);d(N,L)&&cu(C,Za(L,c),N)}return C}o(UO,"basePickBy");function XU(c){return function(f){return oc(f,c)}}o(XU,"basePropertyDeep");function Tv(c,f,d,T){var S=T?yj:cl,C=-1,L=f.length,N=c;for(c===f&&(f=Gi(f)),d&&(N=pn(c,ur(d)));++C<L;)for(var k=0,z=f[C],J=d?d(z):z;(k=S(N,J,k,T))>-1;)N!==c&&ng.call(N,k,1),ng.call(c,k,1);return c}o(Tv,"basePullAll");function $O(c,f){for(var d=c?f.length:0,T=d-1;d--;){var S=f[d];if(d==T||S!==C){var C=S;ca(S)?ng.call(c,S,1):Sv(c,S)}}return c}o($O,"basePullAt");function vv(c,f){return c+og(EO()*(f-c+1))}o(vv,"baseRandom");function QU(c,f,d,T){for(var S=-1,C=Wn(rg((f-c)/(d||1)),0),L=K(C);C--;)L[T?C:++S]=c,c+=d;return L}o(QU,"baseRange");function bv(c,f){var d="";if(!c||f<1||f>Le)return d;do f%2&&(d+=c),f=og(f/2),f&&(c+=c);while(f);return d}o(bv,"baseRepeat");function rt(c,f){return Mv(yR(c,f,Xi),c+"")}o(rt,"baseRest");function qU(c){return PO(vl(c))}o(qU,"baseSample");function YU(c,f){var d=vl(c);return Sg(d,rc(f,0,d.length))}o(YU,"baseSampleSize");function cu(c,f,d,T){if(!yn(c))return c;f=Za(f,c);for(var S=-1,C=f.length,L=C-1,N=c;N!=null&&++S<C;){var k=Fo(f[S]),z=d;if(k==="__proto__"||k==="constructor"||k==="prototype")return c;if(S!=L){var J=N[k];z=T?T(J,k,N):e,z===e&&(z=yn(J)?J:ca(f[S+1])?[]:{})}ru(N,k,z),N=N[k]}return c}o(cu,"baseSet");var BO=ag?function(c,f){return ag.set(c,f),c}:Xi,zU=ig?function(c,f){return ig(c,"toString",{configurable:!0,enumerable:!1,value:Xv(f),writable:!0})}:Xi;function JU(c){return Sg(vl(c))}o(JU,"baseShuffle");function Mr(c,f,d){var T=-1,S=c.length;f<0&&(f=-f>S?0:S+f),d=d>S?S:d,d<0&&(d+=S),S=f>d?0:d-f>>>0,f>>>=0;for(var C=K(S);++T<S;)C[T]=c[T+f];return C}o(Mr,"baseSlice");function ZU(c,f){var d;return za(c,function(T,S,C){return d=f(T,S,C),!d}),!!d}o(ZU,"baseSome");function dg(c,f,d){var T=0,S=c==null?T:c.length;if(typeof f=="number"&&f===f&&S<=rn){for(;T<S;){var C=T+S>>>1,L=c[C];L!==null&&!dr(L)&&(d?L<=f:L<f)?T=C+1:S=C}return S}return Ev(c,f,Xi,d)}o(dg,"baseSortedIndex");function Ev(c,f,d,T){var S=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,N=f===null,k=dr(f),z=f===e;S<C;){var J=og((S+C)/2),ne=d(c[J]),ge=ne!==e,Oe=ne===null,Me=ne===ne,nt=dr(ne);if(L)var ke=T||Me;else z?ke=Me&&(T||ge):N?ke=Me&&ge&&(T||!Oe):k?ke=Me&&ge&&!Oe&&(T||!nt):Oe||nt?ke=!1:ke=T?ne<=f:ne<f;ke?S=J+1:C=J}return hi(C,On)}o(Ev,"baseSortedIndexBy");function HO(c,f){for(var d=-1,T=c.length,S=0,C=[];++d<T;){var L=c[d],N=f?f(L):L;if(!d||!ao(N,k)){var k=N;C[S++]=L===0?0:L}}return C}o(HO,"baseSortedUniq");function GO(c){return typeof c=="number"?c:dr(c)?vn:+c}o(GO,"baseToNumber");function pr(c){if(typeof c=="string")return c;if(Ye(c))return pn(c,pr)+"";if(dr(c))return SO?SO.call(c):"";var f=c+"";return f=="0"&&1/c==-qt?"-0":f}o(pr,"baseToString");function Ja(c,f,d){var T=-1,S=Kd,C=c.length,L=!0,N=[],k=N;if(d)L=!1,S=YT;else if(C>=n){var z=f?null:f$(c);if(z)return Qd(z);L=!1,S=Jf,k=new ic}else k=f?[]:N;e:for(;++T<C;){var J=c[T],ne=f?f(J):J;if(J=d||J!==0?J:0,L&&ne===ne){for(var ge=k.length;ge--;)if(k[ge]===ne)continue e;f&&k.push(ne),N.push(J)}else S(k,ne,d)||(k!==N&&k.push(ne),N.push(J))}return N}o(Ja,"baseUniq");function Sv(c,f){return f=Za(f,c),c=TR(c,f),c==null||delete c[Fo(kr(f))]}o(Sv,"baseUnset");function WO(c,f,d,T){return cu(c,f,d(oc(c,f)),T)}o(WO,"baseUpdate");function gg(c,f,d,T){for(var S=c.length,C=T?S:-1;(T?C--:++C<S)&&f(c[C],C,c););return d?Mr(c,T?0:C,T?C+1:S):Mr(c,T?C+1:0,T?S:C)}o(gg,"baseWhile");function KO(c,f){var d=c;return d instanceof dt&&(d=d.value()),zT(f,function(T,S){return S.func.apply(S.thisArg,Xa([T],S.args))},d)}o(KO,"baseWrapperValue");function Av(c,f,d){var T=c.length;if(T<2)return T?Ja(c[0]):[];for(var S=-1,C=K(T);++S<T;)for(var L=c[S],N=-1;++N<T;)N!=S&&(C[S]=ou(C[S]||L,c[N],f,d));return Ja(ri(C,1),f,d)}o(Av,"baseXor");function XO(c,f,d){for(var T=-1,S=c.length,C=f.length,L={};++T<S;){var N=T<C?f[T]:e;d(L,c[T],N)}return L}o(XO,"baseZipObject");function Pv(c){return Ln(c)?c:[]}o(Pv,"castArrayLikeObject");function xv(c){return typeof c=="function"?c:Xi}o(xv,"castFunction");function Za(c,f){return Ye(c)?c:_v(c,f)?[c]:SR(It(c))}o(Za,"castPath");var e$=rt;function es(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:Mr(c,f,d)}o(es,"castSlice");var QO=$j||function(c){return qn.clearTimeout(c)};function qO(c,f){if(f)return c.slice();var d=c.length,T=hO?hO(d):new c.constructor(d);return c.copy(T),T}o(qO,"cloneBuffer");function Cv(c){var f=new c.constructor(c.byteLength);return new eg(f).set(new eg(c)),f}o(Cv,"cloneArrayBuffer");function t$(c,f){var d=f?Cv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(t$,"cloneDataView");function n$(c){var f=new c.constructor(c.source,FI.exec(c));return f.lastIndex=c.lastIndex,f}o(n$,"cloneRegExp");function i$(c){return iu?Wt(iu.call(c)):{}}o(i$,"cloneSymbol");function YO(c,f){var d=f?Cv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(YO,"cloneTypedArray");function zO(c,f){if(c!==f){var d=c!==e,T=c===null,S=c===c,C=dr(c),L=f!==e,N=f===null,k=f===f,z=dr(f);if(!N&&!z&&!C&&c>f||C&&L&&k&&!N&&!z||T&&L&&k||!d&&k||!S)return 1;if(!T&&!C&&!z&&c<f||z&&d&&S&&!T&&!C||N&&d&&S||!L&&S||!k)return-1}return 0}o(zO,"compareAscending");function r$(c,f,d){for(var T=-1,S=c.criteria,C=f.criteria,L=S.length,N=d.length;++T<L;){var k=zO(S[T],C[T]);if(k){if(T>=N)return k;var z=d[T];return k*(z=="desc"?-1:1)}}return c.index-f.index}o(r$,"compareMultiple");function JO(c,f,d,T){for(var S=-1,C=c.length,L=d.length,N=-1,k=f.length,z=Wn(C-L,0),J=K(k+z),ne=!T;++N<k;)J[N]=f[N];for(;++S<L;)(ne||S<C)&&(J[d[S]]=c[S]);for(;z--;)J[N++]=c[S++];return J}o(JO,"composeArgs");function ZO(c,f,d,T){for(var S=-1,C=c.length,L=-1,N=d.length,k=-1,z=f.length,J=Wn(C-N,0),ne=K(J+z),ge=!T;++S<J;)ne[S]=c[S];for(var Oe=S;++k<z;)ne[Oe+k]=f[k];for(;++L<N;)(ge||S<C)&&(ne[Oe+d[L]]=c[S++]);return ne}o(ZO,"composeArgsRight");function Gi(c,f){var d=-1,T=c.length;for(f||(f=K(T));++d<T;)f[d]=c[d];return f}o(Gi,"copyArray");function No(c,f,d,T){var S=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var N=f[C],k=T?T(d[N],c[N],N,d,c):e;k===e&&(k=c[N]),S?oa(d,N,k):ru(d,N,k)}return d}o(No,"copyObject");function o$(c,f){return No(c,Dv(c),f)}o(o$,"copySymbols");function a$(c,f){return No(c,pR(c),f)}o(a$,"copySymbolsIn");function mg(c,f){return function(d,T){var S=Ye(d)?uj:OU,C=f?f():{};return S(d,c,Ve(T,2),C)}}o(mg,"createAggregator");function ml(c){return rt(function(f,d){var T=-1,S=d.length,C=S>1?d[S-1]:e,L=S>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(S--,C):e,L&&Li(d[0],d[1],L)&&(C=S<3?e:C,S=1),f=Wt(f);++T<S;){var N=d[T];N&&c(f,N,T,C)}return f})}o(ml,"createAssigner");function eR(c,f){return function(d,T){if(d==null)return d;if(!Wi(d))return c(d,T);for(var S=d.length,C=f?S:-1,L=Wt(d);(f?C--:++C<S)&&T(L[C],C,L)!==!1;);return d}}o(eR,"createBaseEach");function tR(c){return function(f,d,T){for(var S=-1,C=Wt(f),L=T(f),N=L.length;N--;){var k=L[c?N:++S];if(d(C[k],k,C)===!1)break}return f}}o(tR,"createBaseFor");function s$(c,f,d){var T=f&b,S=lu(c);function C(){var L=this&&this!==qn&&this instanceof C?S:c;return L.apply(T?d:this,arguments)}return o(C,"wrapper"),C}o(s$,"createBind");function nR(c){return function(f){f=It(f);var d=ll(f)?ro(f):e,T=d?d[0]:f.charAt(0),S=d?es(d,1).join(""):f.slice(1);return T[c]()+S}}o(nR,"createCaseFirst");function hl(c){return function(f){return zT(eL(ZR(f).replace(z2,"")),c,"")}}o(hl,"createCompounder");function lu(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=gl(c.prototype),T=c.apply(d,f);return yn(T)?T:d}}o(lu,"createCtor");function c$(c,f,d){var T=lu(c);function S(){for(var C=arguments.length,L=K(C),N=C,k=yl(S);N--;)L[N]=arguments[N];var z=C<3&&L[0]!==k&&L[C-1]!==k?[]:Qa(L,k);if(C-=z.length,C<d)return sR(c,f,hg,S.placeholder,e,L,z,e,e,d-C);var J=this&&this!==qn&&this instanceof S?T:c;return fr(J,this,L)}return o(S,"wrapper"),S}o(c$,"createCurry");function iR(c){return function(f,d,T){var S=Wt(f);if(!Wi(f)){var C=Ve(d,3);f=Yn(f),d=o(function(N){return C(S[N],N,S)},"predicate")}var L=c(f,d,T);return L>-1?S[C?f[L]:L]:e}}o(iR,"createFind");function rR(c){return sa(function(f){var d=f.length,T=d,S=Vr.prototype.thru;for(c&&f.reverse();T--;){var C=f[T];if(typeof C!="function")throw new _r(r);if(S&&!L&&bg(C)=="wrapper")var L=new Vr([],!0)}for(T=L?T:d;++T<d;){C=f[T];var N=bg(C),k=N=="wrapper"?Nv(C):e;k&&Vv(k[0])&&k[1]==(te|M|$|le)&&!k[4].length&&k[9]==1?L=L[bg(k[0])].apply(L,k[3]):L=C.length==1&&Vv(C)?L[N]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Ye(J))return L.plant(J).value();for(var ne=0,ge=d?f[ne].apply(this,z):J;++ne<d;)ge=f[ne].call(this,ge);return ge}})}o(rR,"createFlow");function hg(c,f,d,T,S,C,L,N,k,z){var J=f&te,ne=f&b,ge=f&I,Oe=f&(M|G),Me=f&Re,nt=ge?e:lu(c);function ke(){for(var ct=arguments.length,gt=K(ct),gr=ct;gr--;)gt[gr]=arguments[gr];if(Oe)var Ni=yl(ke),mr=bj(gt,Ni);if(T&&(gt=JO(gt,T,S,Oe)),C&&(gt=ZO(gt,C,L,Oe)),ct-=mr,Oe&&ct<z){var Nn=Qa(gt,Ni);return sR(c,f,hg,ke.placeholder,d,gt,Nn,N,k,z-ct)}var so=ne?d:this,ua=ge?so[c]:c;return ct=gt.length,N?gt=O$(gt,N):Me&&ct>1&>.reverse(),J&&k<ct&&(gt.length=k),this&&this!==qn&&this instanceof ke&&(ua=nt||lu(ua)),ua.apply(so,gt)}return o(ke,"wrapper"),ke}o(hg,"createHybrid");function oR(c,f){return function(d,T){return wU(d,c,f(T),{})}}o(oR,"createInverter");function yg(c,f){return function(d,T){var S;if(d===e&&T===e)return f;if(d!==e&&(S=d),T!==e){if(S===e)return T;typeof d=="string"||typeof T=="string"?(d=pr(d),T=pr(T)):(d=GO(d),T=GO(T)),S=c(d,T)}return S}}o(yg,"createMathOperation");function Iv(c){return sa(function(f){return f=pn(f,ur(Ve())),rt(function(d){var T=this;return c(f,function(S){return fr(S,T,d)})})})}o(Iv,"createOver");function Tg(c,f){f=f===e?" ":pr(f);var d=f.length;if(d<2)return d?bv(f,c):f;var T=bv(f,rg(c/fl(f)));return ll(f)?es(ro(T),0,c).join(""):T.slice(0,c)}o(Tg,"createPadding");function l$(c,f,d,T){var S=f&b,C=lu(c);function L(){for(var N=-1,k=arguments.length,z=-1,J=T.length,ne=K(J+k),ge=this&&this!==qn&&this instanceof L?C:c;++z<J;)ne[z]=T[z];for(;k--;)ne[z++]=arguments[++N];return fr(ge,S?d:this,ne)}return o(L,"wrapper"),L}o(l$,"createPartial");function aR(c){return function(f,d,T){return T&&typeof T!="number"&&Li(f,d,T)&&(d=T=e),f=fa(f),d===e?(d=f,f=0):d=fa(d),T=T===e?f<d?1:-1:fa(T),QU(f,d,T,c)}}o(aR,"createRange");function vg(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=jr(f),d=jr(d)),c(f,d)}}o(vg,"createRelationalOperation");function sR(c,f,d,T,S,C,L,N,k,z){var J=f&M,ne=J?L:e,ge=J?e:L,Oe=J?C:e,Me=J?e:C;f|=J?$:se,f&=~(J?se:$),f&F||(f&=~(b|I));var nt=[c,f,S,Oe,ne,Me,ge,N,k,z],ke=d.apply(e,nt);return Vv(c)&&vR(ke,nt),ke.placeholder=T,bR(ke,c,f)}o(sR,"createRecurry");function Ov(c){var f=Gn[c];return function(d,T){if(d=jr(d),T=T==null?0:hi(et(T),292),T&&bO(d)){var S=(It(d)+"e").split("e"),C=f(S[0]+"e"+(+S[1]+T));return S=(It(C)+"e").split("e"),+(S[0]+"e"+(+S[1]-T))}return f(d)}}o(Ov,"createRound");var f$=pl&&1/Qd(new pl([,-0]))[1]==qt?function(c){return new pl(c)}:Yv;function cR(c){return function(f){var d=yi(f);return d==ze?rv(f):d==mn?Ij(f):vj(f,c(f))}}o(cR,"createToPairs");function aa(c,f,d,T,S,C,L,N){var k=f&I;if(!k&&typeof c!="function")throw new _r(r);var z=T?T.length:0;if(z||(f&=~($|se),T=S=e),L=L===e?L:Wn(et(L),0),N=N===e?N:et(N),z-=S?S.length:0,f&se){var J=T,ne=S;T=S=e}var ge=k?e:Nv(c),Oe=[c,f,d,T,S,J,ne,C,L,N];if(ge&&x$(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],T=Oe[3],S=Oe[4],N=Oe[9]=Oe[9]===e?k?0:c.length:Wn(Oe[9]-z,0),!N&&f&(M|G)&&(f&=~(M|G)),!f||f==b)var Me=s$(c,f,d);else f==M||f==G?Me=c$(c,f,N):(f==$||f==(b|$))&&!S.length?Me=l$(c,f,d,T):Me=hg.apply(e,Oe);var nt=ge?BO:vR;return bR(nt(Me,Oe),c,f)}o(aa,"createWrap");function lR(c,f,d,T){return c===e||ao(c,ul[d])&&!Nt.call(T,d)?f:c}o(lR,"customDefaultsAssignIn");function fR(c,f,d,T,S,C){return yn(c)&&yn(f)&&(C.set(f,c),pg(c,f,e,fR,C),C.delete(f)),c}o(fR,"customDefaultsMerge");function u$(c){return pu(c)?e:c}o(u$,"customOmitClone");function uR(c,f,d,T,S,C){var L=d&v,N=c.length,k=f.length;if(N!=k&&!(L&&k>N))return!1;var z=C.get(c),J=C.get(f);if(z&&J)return z==f&&J==c;var ne=-1,ge=!0,Oe=d&E?new ic:e;for(C.set(c,f),C.set(f,c);++ne<N;){var Me=c[ne],nt=f[ne];if(T)var ke=L?T(nt,Me,ne,f,c,C):T(Me,nt,ne,c,f,C);if(ke!==e){if(ke)continue;ge=!1;break}if(Oe){if(!JT(f,function(ct,gt){if(!Jf(Oe,gt)&&(Me===ct||S(Me,ct,d,T,C)))return Oe.push(gt)})){ge=!1;break}}else if(!(Me===nt||S(Me,nt,d,T,C))){ge=!1;break}}return C.delete(c),C.delete(f),ge}o(uR,"equalArrays");function p$(c,f,d,T,S,C,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Js:return!(c.byteLength!=f.byteLength||!C(new eg(c),new eg(f)));case O:case A:case Mt:return ao(+c,+f);case V:return c.name==f.name&&c.message==f.message;case cr:case mi:return c==f+"";case ze:var N=rv;case mn:var k=T&v;if(N||(N=Qd),c.size!=f.size&&!k)return!1;var z=L.get(c);if(z)return z==f;T|=E,L.set(c,f);var J=uR(N(c),N(f),T,S,C,L);return L.delete(c),J;case Ht:if(iu)return iu.call(c)==iu.call(f)}return!1}o(p$,"equalByTag");function d$(c,f,d,T,S,C){var L=d&v,N=Rv(c),k=N.length,z=Rv(f),J=z.length;if(k!=J&&!L)return!1;for(var ne=k;ne--;){var ge=N[ne];if(!(L?ge in f:Nt.call(f,ge)))return!1}var Oe=C.get(c),Me=C.get(f);if(Oe&&Me)return Oe==f&&Me==c;var nt=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ne<k;){ge=N[ne];var ct=c[ge],gt=f[ge];if(T)var gr=L?T(gt,ct,ge,f,c,C):T(ct,gt,ge,c,f,C);if(!(gr===e?ct===gt||S(ct,gt,d,T,C):gr)){nt=!1;break}ke||(ke=ge=="constructor")}if(nt&&!ke){var Ni=c.constructor,mr=f.constructor;Ni!=mr&&"constructor"in c&&"constructor"in f&&!(typeof Ni=="function"&&Ni instanceof Ni&&typeof mr=="function"&&mr instanceof mr)&&(nt=!1)}return C.delete(c),C.delete(f),nt}o(d$,"equalObjects");function sa(c){return Mv(yR(c,e,CR),c+"")}o(sa,"flatRest");function Rv(c){return NO(c,Yn,Dv)}o(Rv,"getAllKeys");function Lv(c){return NO(c,Ki,pR)}o(Lv,"getAllKeysIn");var Nv=ag?function(c){return ag.get(c)}:Yv;function bg(c){for(var f=c.name+"",d=dl[f],T=Nt.call(dl,f)?d.length:0;T--;){var S=d[T],C=S.func;if(C==null||C==c)return S.name}return f}o(bg,"getFuncName");function yl(c){var f=Nt.call(P,"placeholder")?P:c;return f.placeholder}o(yl,"getHolder");function Ve(){var c=P.iteratee||Qv;return c=c===Qv?_O:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Eg(c,f){var d=c.__data__;return E$(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Eg,"getMapData");function Fv(c){for(var f=Yn(c),d=f.length;d--;){var T=f[d],S=c[T];f[d]=[T,S,mR(S)]}return f}o(Fv,"getMatchData");function ac(c,f){var d=Pj(c,f);return DO(d)?d:e}o(ac,"getNative");function g$(c){var f=Nt.call(c,tc),d=c[tc];try{c[tc]=e;var T=!0}catch{}var S=Jd.call(c);return T&&(f?c[tc]=d:delete c[tc]),S}o(g$,"getRawTag");var Dv=av?function(c){return c==null?[]:(c=Wt(c),Ka(av(c),function(f){return TO.call(c,f)}))}:zv,pR=av?function(c){for(var f=[];c;)Xa(f,Dv(c)),c=tg(c);return f}:zv,yi=Ri;(sv&&yi(new sv(new ArrayBuffer(1)))!=Nr||eu&&yi(new eu)!=ze||cv&&yi(cv.resolve())!=Bt||pl&&yi(new pl)!=mn||tu&&yi(new tu)!=Hi)&&(yi=o(function(c){var f=Ri(c),d=f==fn?c.constructor:e,T=d?sc(d):"";if(T)switch(T){case Yj:return Nr;case zj:return ze;case Jj:return Bt;case Zj:return mn;case eU:return Hi}return f},"getTag"));function m$(c,f,d){for(var T=-1,S=d.length;++T<S;){var C=d[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=hi(f,c+L);break;case"takeRight":c=Wn(c,f-L);break}}return{start:c,end:f}}o(m$,"getView");function h$(c){var f=c.match(S2);return f?f[1].split(A2):[]}o(h$,"getWrapDetails");function dR(c,f,d){f=Za(f,c);for(var T=-1,S=f.length,C=!1;++T<S;){var L=Fo(f[T]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++T!=S?C:(S=c==null?0:c.length,!!S&&Og(S)&&ca(L,S)&&(Ye(c)||cc(c)))}o(dR,"hasPath");function y$(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Nt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(y$,"initCloneArray");function gR(c){return typeof c.constructor=="function"&&!fu(c)?gl(tg(c)):{}}o(gR,"initCloneObject");function T$(c,f,d){var T=c.constructor;switch(f){case Js:return Cv(c);case O:case A:return new T(+c);case Nr:return t$(c,d);case Qf:case qf:case Yf:case Zs:case j:case B:case q:case ce:case Fe:return YO(c,d);case ze:return new T;case Mt:case mi:return new T(c);case cr:return n$(c);case mn:return new T;case Ht:return i$(c)}}o(T$,"initCloneByTag");function v$(c,f){var d=f.length;if(!d)return c;var T=d-1;return f[T]=(d>1?"& ":"")+f[T],f=f.join(d>2?", ":" "),c.replace(E2,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var rY,Jy=Je(()=>{oP();Cr();Np();_s();Vp();yf();hP();ji();ji();df();IP();nM();fM();o(iY,"clearCache");rY=(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 kP=Ze((Cde,hM)=>{var{createToken:oY,Lexer:wP}=(Jy(),Fg(zy)),pM={},Ef=pM;function MP(e,t){pM[e]=typeof t=="string"?t:t.source}o(MP,"FRAGMENT");function Xp(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(Xp,"makePattern");var aY=[],dM={};function In(e){let t=oY(e);return aY.push(t),dM[e.name]=t,t}o(In,"createToken");MP("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");MP("NameChar",Xp`${Ef.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);MP("Name",Xp`${Ef.NameStartChar}(${Ef.NameChar})*`);var uM=In({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),sY=In({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),cY=In({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),lY=In({name:"DTD",pattern:/<!.*?>/,group:wP.SKIPPED}),fY=In({name:"EntityRef",pattern:Xp`&${Ef.Name};`}),uY=In({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),pY=In({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),dY=In({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),gM=In({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),gY=In({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[gM]}),mY=In({name:"PROCESSING_INSTRUCTION",pattern:Xp`<\\?${Ef.Name}.*\\?>`}),mM=In({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),hY=In({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[mM]}),yY=In({name:"TEXT",pattern:/[^<&]+/}),TY=In({name:"CLOSE",pattern:/>/,pop_mode:!0}),vY=In({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),bY=In({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),EY=In({name:"SLASH",pattern:/\//}),SY=In({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),AY=In({name:"EQUALS",pattern:/=/}),PY=In({name:"Name",pattern:Xp`${Ef.Name}`}),xY=In({name:"S",pattern:/[ \t\r\n]/,group:wP.SKIPPED}),CY={defaultMode:"OUTSIDE",modes:{OUTSIDE:[uM,sY,cY,lY,fY,uY,pY,dY,gM,mY,mM,yY],INSIDE:[uM,gY,hY,TY,vY,bY,EY,AY,SY,PY,xY]}},IY=new wP(CY,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});hM.exports={xmlLexer:IY,tokensDictionary:dM}});var TM=Ze((Ode,yM)=>{var{CstParser:OY,tokenMatcher:RY}=(Jy(),Fg(zy)),{tokensDictionary:Ct}=kP(),UP=class UP extends OY{constructor(){super(Ct,{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(Ct.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(Ct.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(Ct.DocType),t.CONSUME(Ct.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(Ct.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(Ct.Name,{LABEL:"System"}),t.CONSUME(Ct.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(Ct.Name,{LABEL:"Public"}),t.CONSUME2(Ct.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(Ct.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(Ct.CData),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(Ct.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(Ct.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(Ct.SLASH_OPEN),t.CONSUME2(Ct.Name,{LABEL:"END_NAME"}),t.CONSUME2(Ct.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(Ct.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(Ct.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(Ct.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(Ct.EQUALS),t.CONSUME(Ct.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(Ct.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(Ct.Comment),"ALT")},{ALT:o(()=>t.CONSUME(Ct.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(Ct.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=>RY(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(UP,"Parser");var jP=UP,LY=new jP;yM.exports={xmlParser:LY}});var $P=Ze((Lde,vM)=>{var{xmlLexer:NY}=kP(),{xmlParser:Zy}=TM();vM.exports={parse:o(function(t){let n=NY.tokenize(t);return Zy.input=n.tokens,{cst:Zy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Zy.errors}},"parse"),BaseXmlCstVisitor:Zy.getBaseCstVisitorConstructor()}});var qp=Ze((Sf,Qp)=>{(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,E=2,b=1,I=2,N=4,j=8,G=16,$=32,se=64,te=128,le=256,Re=512,D=30,Ue="...",$e=800,qe=16,nn=1,$t=2,St=3,qt=1/0,Le=9007199254740991,Tn=17976931348623157e292,vn=NaN,rn=4294967295,On=rn-1,on=rn>>>1,Ie=[["ary",te],["bind",b],["bindKey",I],["curry",j],["curryRight",G],["flip",Re],["partial",$],["partialRight",se],["rearg",le]],ln="[object Arguments]",Oi="[object Array]",tt="[object AsyncFunction]",O="[object Boolean]",A="[object Date]",Y="[object DOMException]",V="[object Error]",_e="[object Function]",Nt="[object GeneratorFunction]",ze="[object Map]",Mt="[object Number]",bn="[object Null]",fn="[object Object]",Bt="[object Promise]",ii="[object Proxy]",cr="[object RegExp]",mn="[object Set]",mi="[object String]",Ht="[object Symbol]",na="[object Undefined]",Hi="[object WeakMap]",Xf="[object WeakSet]",Js="[object ArrayBuffer]",Nr="[object DataView]",Qf="[object Float32Array]",qf="[object Float64Array]",Yf="[object Int8Array]",Zs="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Fe="[object Uint32Array]",hn=/\b__p \+= '';/g,Rn=/\b(__p \+=) '' \+/g,it=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Ae=RegExp(me.source),Ce=RegExp(Te.source),at=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,un=/<%=([\s\S]+?)%>/g,lr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Bd=/^\w*$/,$T=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,zf=/[\\^$.*+?()[\]{}|]/g,b2=RegExp(zf.source),BT=/^\s+/,E2=/\s/,S2=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,A2=/\{\n\/\* \[wrapped with (.+)\] \*/,P2=/,? & /,x2=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,C2=/[()=,{}\[\]\/\s]/,I2=/\\(\\)?/g,O2=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,DI=/\w*$/,R2=/^[-+]0x[0-9a-f]+$/i,L2=/^0b[01]+$/i,N2=/^\[object .+?Constructor\]$/,F2=/^0o[0-7]+$/i,D2=/^(?:0|[1-9]\d*)$/,_2=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hd=/($^)/,V2=/['\n\r\u2028\u2029\\]/g,Gd="\\ud800-\\udfff",w2="\\u0300-\\u036f",M2="\\ufe20-\\ufe2f",k2="\\u20d0-\\u20ff",_I=w2+M2+k2,VI="\\u2700-\\u27bf",wI="a-z\\xdf-\\xf6\\xf8-\\xff",j2="\\xac\\xb1\\xd7\\xf7",U2="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$2="\\u2000-\\u206f",B2=" \\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",MI="A-Z\\xc0-\\xd6\\xd8-\\xde",kI="\\ufe0e\\ufe0f",jI=j2+U2+$2+B2,HT="['\u2019]",H2="["+Gd+"]",UI="["+jI+"]",Wd="["+_I+"]",$I="\\d+",G2="["+VI+"]",BI="["+wI+"]",HI="[^"+Gd+jI+$I+VI+wI+MI+"]",GT="\\ud83c[\\udffb-\\udfff]",W2="(?:"+Wd+"|"+GT+")",GI="[^"+Gd+"]",WT="(?:\\ud83c[\\udde6-\\uddff]){2}",KT="[\\ud800-\\udbff][\\udc00-\\udfff]",sl="["+MI+"]",WI="\\u200d",KI="(?:"+BI+"|"+HI+")",K2="(?:"+sl+"|"+HI+")",XI="(?:"+HT+"(?:d|ll|m|re|s|t|ve))?",QI="(?:"+HT+"(?:D|LL|M|RE|S|T|VE))?",qI=W2+"?",YI="["+kI+"]?",X2="(?:"+WI+"(?:"+[GI,WT,KT].join("|")+")"+YI+qI+")*",Q2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",q2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",zI=YI+qI+X2,Y2="(?:"+[G2,WT,KT].join("|")+")"+zI,z2="(?:"+[GI+Wd+"?",Wd,WT,KT,H2].join("|")+")",J2=RegExp(HT,"g"),Z2=RegExp(Wd,"g"),XT=RegExp(GT+"(?="+GT+")|"+z2+zI,"g"),ej=RegExp([sl+"?"+BI+"+"+XI+"(?="+[UI,sl,"$"].join("|")+")",K2+"+"+QI+"(?="+[UI,sl+KI,"$"].join("|")+")",sl+"?"+KI+"+"+XI,sl+"+"+QI,q2,Q2,$I,Y2].join("|"),"g"),tj=RegExp("["+WI+Gd+_I+kI+"]"),nj=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ij=["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"],rj=-1,an={};an[Qf]=an[qf]=an[Yf]=an[Zs]=an[k]=an[B]=an[q]=an[ce]=an[Fe]=!0,an[ln]=an[Oi]=an[Js]=an[O]=an[Nr]=an[A]=an[V]=an[_e]=an[ze]=an[Mt]=an[fn]=an[cr]=an[mn]=an[mi]=an[Hi]=!1;var Yt={};Yt[ln]=Yt[Oi]=Yt[Js]=Yt[Nr]=Yt[O]=Yt[A]=Yt[Qf]=Yt[qf]=Yt[Yf]=Yt[Zs]=Yt[k]=Yt[ze]=Yt[Mt]=Yt[fn]=Yt[cr]=Yt[mn]=Yt[mi]=Yt[Ht]=Yt[B]=Yt[q]=Yt[ce]=Yt[Fe]=!0,Yt[V]=Yt[_e]=Yt[Hi]=!1;var oj={\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"},aj={"&":"&","<":"<",">":">",'"':""","'":"'"},sj={"&":"&","<":"<",">":">",""":'"',"'":"'"},cj={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},lj=parseFloat,fj=parseInt,JI=typeof global=="object"&&global&&global.Object===Object&&global,uj=typeof self=="object"&&self&&self.Object===Object&&self,qn=JI||uj||Function("return this")(),QT=typeof Sf=="object"&&Sf&&!Sf.nodeType&&Sf,ec=QT&&typeof Qp=="object"&&Qp&&!Qp.nodeType&&Qp,ZI=ec&&ec.exports===QT,qT=ZI&&JI.process,Fr=(function(){try{var w=ec&&ec.require&&ec.require("util").types;return w||qT&&qT.binding&&qT.binding("util")}catch{}})(),eO=Fr&&Fr.isArrayBuffer,tO=Fr&&Fr.isDate,nO=Fr&&Fr.isMap,iO=Fr&&Fr.isRegExp,rO=Fr&&Fr.isSet,oO=Fr&&Fr.isTypedArray;function fr(w,X,K){switch(K.length){case 0:return w.call(X);case 1:return w.call(X,K[0]);case 2:return w.call(X,K[0],K[1]);case 3:return w.call(X,K[0],K[1],K[2])}return w.apply(X,K)}o(fr,"apply");function pj(w,X,K,Ee){for(var Ke=-1,At=w==null?0:w.length;++Ke<At;){var Gn=w[Ke];X(Ee,Gn,K(Gn),w)}return Ee}o(pj,"arrayAggregator");function Dr(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee&&X(w[K],K,w)!==!1;);return w}o(Dr,"arrayEach");function dj(w,X){for(var K=w==null?0:w.length;K--&&X(w[K],K,w)!==!1;);return w}o(dj,"arrayEachRight");function aO(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(!X(w[K],K,w))return!1;return!0}o(aO,"arrayEvery");function Ka(w,X){for(var K=-1,Ee=w==null?0:w.length,Ke=0,At=[];++K<Ee;){var Gn=w[K];X(Gn,K,w)&&(At[Ke++]=Gn)}return At}o(Ka,"arrayFilter");function Kd(w,X){var K=w==null?0:w.length;return!!K&&cl(w,X,0)>-1}o(Kd,"arrayIncludes");function YT(w,X,K){for(var Ee=-1,Ke=w==null?0:w.length;++Ee<Ke;)if(K(X,w[Ee]))return!0;return!1}o(YT,"arrayIncludesWith");function pn(w,X){for(var K=-1,Ee=w==null?0:w.length,Ke=Array(Ee);++K<Ee;)Ke[K]=X(w[K],K,w);return Ke}o(pn,"arrayMap");function Xa(w,X){for(var K=-1,Ee=X.length,Ke=w.length;++K<Ee;)w[Ke+K]=X[K];return w}o(Xa,"arrayPush");function zT(w,X,K,Ee){var Ke=-1,At=w==null?0:w.length;for(Ee&&At&&(K=w[++Ke]);++Ke<At;)K=X(K,w[Ke],Ke,w);return K}o(zT,"arrayReduce");function gj(w,X,K,Ee){var Ke=w==null?0:w.length;for(Ee&&Ke&&(K=w[--Ke]);Ke--;)K=X(K,w[Ke],Ke,w);return K}o(gj,"arrayReduceRight");function JT(w,X){for(var K=-1,Ee=w==null?0:w.length;++K<Ee;)if(X(w[K],K,w))return!0;return!1}o(JT,"arraySome");var mj=ZT("length");function hj(w){return w.split("")}o(hj,"asciiToArray");function yj(w){return w.match(x2)||[]}o(yj,"asciiWords");function sO(w,X,K){var Ee;return K(w,function(Ke,At,Gn){if(X(Ke,At,Gn))return Ee=At,!1}),Ee}o(sO,"baseFindKey");function Xd(w,X,K,Ee){for(var Ke=w.length,At=K+(Ee?1:-1);Ee?At--:++At<Ke;)if(X(w[At],At,w))return At;return-1}o(Xd,"baseFindIndex");function cl(w,X,K){return X===X?Rj(w,X,K):Xd(w,cO,K)}o(cl,"baseIndexOf");function Tj(w,X,K,Ee){for(var Ke=K-1,At=w.length;++Ke<At;)if(Ee(w[Ke],X))return Ke;return-1}o(Tj,"baseIndexOfWith");function cO(w){return w!==w}o(cO,"baseIsNaN");function lO(w,X){var K=w==null?0:w.length;return K?tv(w,X)/K:vn}o(lO,"baseMean");function ZT(w){return function(X){return X==null?e:X[w]}}o(ZT,"baseProperty");function ev(w){return function(X){return w==null?e:w[X]}}o(ev,"basePropertyOf");function fO(w,X,K,Ee,Ke){return Ke(w,function(At,Gn,Wt){K=Ee?(Ee=!1,At):X(K,At,Gn,Wt)}),K}o(fO,"baseReduce");function vj(w,X){var K=w.length;for(w.sort(X);K--;)w[K]=w[K].value;return w}o(vj,"baseSortBy");function tv(w,X){for(var K,Ee=-1,Ke=w.length;++Ee<Ke;){var At=X(w[Ee]);At!==e&&(K=K===e?At:K+At)}return K}o(tv,"baseSum");function nv(w,X){for(var K=-1,Ee=Array(w);++K<w;)Ee[K]=X(K);return Ee}o(nv,"baseTimes");function bj(w,X){return pn(X,function(K){return[K,w[K]]})}o(bj,"baseToPairs");function uO(w){return w&&w.slice(0,mO(w)+1).replace(BT,"")}o(uO,"baseTrim");function ur(w){return function(X){return w(X)}}o(ur,"baseUnary");function iv(w,X){return pn(X,function(K){return w[K]})}o(iv,"baseValues");function Jf(w,X){return w.has(X)}o(Jf,"cacheHas");function pO(w,X){for(var K=-1,Ee=w.length;++K<Ee&&cl(X,w[K],0)>-1;);return K}o(pO,"charsStartIndex");function dO(w,X){for(var K=w.length;K--&&cl(X,w[K],0)>-1;);return K}o(dO,"charsEndIndex");function Ej(w,X){for(var K=w.length,Ee=0;K--;)w[K]===X&&++Ee;return Ee}o(Ej,"countHolders");var Sj=ev(oj),Aj=ev(aj);function Pj(w){return"\\"+cj[w]}o(Pj,"escapeStringChar");function xj(w,X){return w==null?e:w[X]}o(xj,"getValue");function ll(w){return tj.test(w)}o(ll,"hasUnicode");function Cj(w){return nj.test(w)}o(Cj,"hasUnicodeWord");function Ij(w){for(var X,K=[];!(X=w.next()).done;)K.push(X.value);return K}o(Ij,"iteratorToArray");function rv(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee,Ke){K[++X]=[Ke,Ee]}),K}o(rv,"mapToArray");function gO(w,X){return function(K){return w(X(K))}}o(gO,"overArg");function Qa(w,X){for(var K=-1,Ee=w.length,Ke=0,At=[];++K<Ee;){var Gn=w[K];(Gn===X||Gn===u)&&(w[K]=u,At[Ke++]=K)}return At}o(Qa,"replaceHolders");function Qd(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=Ee}),K}o(Qd,"setToArray");function Oj(w){var X=-1,K=Array(w.size);return w.forEach(function(Ee){K[++X]=[Ee,Ee]}),K}o(Oj,"setToPairs");function Rj(w,X,K){for(var Ee=K-1,Ke=w.length;++Ee<Ke;)if(w[Ee]===X)return Ee;return-1}o(Rj,"strictIndexOf");function Lj(w,X,K){for(var Ee=K+1;Ee--;)if(w[Ee]===X)return Ee;return Ee}o(Lj,"strictLastIndexOf");function fl(w){return ll(w)?Fj(w):mj(w)}o(fl,"stringSize");function oo(w){return ll(w)?Dj(w):hj(w)}o(oo,"stringToArray");function mO(w){for(var X=w.length;X--&&E2.test(w.charAt(X)););return X}o(mO,"trimmedEndIndex");var Nj=ev(sj);function Fj(w){for(var X=XT.lastIndex=0;XT.test(w);)++X;return X}o(Fj,"unicodeSize");function Dj(w){return w.match(XT)||[]}o(Dj,"unicodeToArray");function _j(w){return w.match(ej)||[]}o(_j,"unicodeWords");var Vj=o((function w(X){X=X==null?qn:qa.defaults(qn.Object(),X,qa.pick(qn,ij));var K=X.Array,Ee=X.Date,Ke=X.Error,At=X.Function,Gn=X.Math,Wt=X.Object,ov=X.RegExp,wj=X.String,_r=X.TypeError,qd=K.prototype,Mj=At.prototype,ul=Wt.prototype,Yd=X["__core-js_shared__"],zd=Mj.toString,Ft=ul.hasOwnProperty,kj=0,hO=(function(){var c=/[^.]+$/.exec(Yd&&Yd.keys&&Yd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""})(),Jd=ul.toString,jj=zd.call(Wt),Uj=qn._,$j=ov("^"+zd.call(Ft).replace(zf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Zd=ZI?X.Buffer:e,Ya=X.Symbol,eg=X.Uint8Array,yO=Zd?Zd.allocUnsafe:e,tg=gO(Wt.getPrototypeOf,Wt),TO=Wt.create,vO=ul.propertyIsEnumerable,ng=qd.splice,bO=Ya?Ya.isConcatSpreadable:e,Zf=Ya?Ya.iterator:e,tc=Ya?Ya.toStringTag:e,ig=(function(){try{var c=ac(Wt,"defineProperty");return c({},"",{}),c}catch{}})(),Bj=X.clearTimeout!==qn.clearTimeout&&X.clearTimeout,Hj=Ee&&Ee.now!==qn.Date.now&&Ee.now,Gj=X.setTimeout!==qn.setTimeout&&X.setTimeout,rg=Gn.ceil,og=Gn.floor,av=Wt.getOwnPropertySymbols,Wj=Zd?Zd.isBuffer:e,EO=X.isFinite,Kj=qd.join,Xj=gO(Wt.keys,Wt),Wn=Gn.max,hi=Gn.min,Qj=Ee.now,qj=X.parseInt,SO=Gn.random,Yj=qd.reverse,sv=ac(X,"DataView"),eu=ac(X,"Map"),cv=ac(X,"Promise"),pl=ac(X,"Set"),tu=ac(X,"WeakMap"),nu=ac(Wt,"create"),ag=tu&&new tu,dl={},zj=sc(sv),Jj=sc(eu),Zj=sc(cv),eU=sc(pl),tU=sc(tu),sg=Ya?Ya.prototype:e,iu=sg?sg.valueOf:e,AO=sg?sg.toString:e;function P(c){if(En(c)&&!Ye(c)&&!(c instanceof dt)){if(c instanceof Vr)return c;if(Ft.call(c,"__wrapped__"))return PR(c)}return new Vr(c)}o(P,"lodash");var gl=(function(){function c(){}return o(c,"object"),function(f){if(!yn(f))return{};if(TO)return TO(f);c.prototype=f;var d=new c;return c.prototype=e,d}})();function cg(){}o(cg,"baseLodash");function Vr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Vr,"LodashWrapper"),P.templateSettings={escape:at,evaluate:Gt,interpolate:un,variable:"",imports:{_:P}},P.prototype=cg.prototype,P.prototype.constructor=P,Vr.prototype=gl(cg.prototype),Vr.prototype.constructor=Vr;function dt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=rn,this.__views__=[]}o(dt,"LazyWrapper");function nU(){var c=new dt(this.__wrapped__);return c.__actions__=Gi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Gi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Gi(this.__views__),c}o(nU,"lazyClone");function iU(){if(this.__filtered__){var c=new dt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(iU,"lazyReverse");function rU(){var c=this.__wrapped__.value(),f=this.__dir__,d=Ye(c),T=f<0,S=d?c.length:0,C=h$(0,S,this.__views__),L=C.start,F=C.end,M=F-L,z=T?F:L-1,J=this.__iteratees__,ne=J.length,ge=0,Oe=hi(M,this.__takeCount__);if(!d||!T&&S==M&&Oe==M)return XO(c,this.__actions__);var Me=[];e:for(;M--&&ge<Oe;){z+=f;for(var nt=-1,ke=c[z];++nt<ne;){var ct=J[nt],gt=ct.iteratee,gr=ct.type,Ni=gt(ke);if(gr==$t)ke=Ni;else if(!Ni){if(gr==nn)continue e;break e}}Me[ge++]=ke}return Me}o(rU,"lazyValue"),dt.prototype=gl(cg.prototype),dt.prototype.constructor=dt;function nc(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(nc,"Hash");function oU(){this.__data__=nu?nu(null):{},this.size=0}o(oU,"hashClear");function aU(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(aU,"hashDelete");function sU(c){var f=this.__data__;if(nu){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(sU,"hashGet");function cU(c){var f=this.__data__;return nu?f[c]!==e:Ft.call(f,c)}o(cU,"hashHas");function lU(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=nu&&f===e?s:f,this}o(lU,"hashSet"),nc.prototype.clear=oU,nc.prototype.delete=aU,nc.prototype.get=sU,nc.prototype.has=cU,nc.prototype.set=lU;function ia(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(ia,"ListCache");function fU(){this.__data__=[],this.size=0}o(fU,"listCacheClear");function uU(c){var f=this.__data__,d=lg(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():ng.call(f,d,1),--this.size,!0}o(uU,"listCacheDelete");function pU(c){var f=this.__data__,d=lg(f,c);return d<0?e:f[d][1]}o(pU,"listCacheGet");function dU(c){return lg(this.__data__,c)>-1}o(dU,"listCacheHas");function gU(c,f){var d=this.__data__,T=lg(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(gU,"listCacheSet"),ia.prototype.clear=fU,ia.prototype.delete=uU,ia.prototype.get=pU,ia.prototype.has=dU,ia.prototype.set=gU;function ra(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(ra,"MapCache");function mU(){this.size=0,this.__data__={hash:new nc,map:new(eu||ia),string:new nc}}o(mU,"mapCacheClear");function hU(c){var f=Eg(this,c).delete(c);return this.size-=f?1:0,f}o(hU,"mapCacheDelete");function yU(c){return Eg(this,c).get(c)}o(yU,"mapCacheGet");function TU(c){return Eg(this,c).has(c)}o(TU,"mapCacheHas");function vU(c,f){var d=Eg(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(vU,"mapCacheSet"),ra.prototype.clear=mU,ra.prototype.delete=hU,ra.prototype.get=yU,ra.prototype.has=TU,ra.prototype.set=vU;function ic(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new ra;++f<d;)this.add(c[f])}o(ic,"SetCache");function bU(c){return this.__data__.set(c,s),this}o(bU,"setCacheAdd");function EU(c){return this.__data__.has(c)}o(EU,"setCacheHas"),ic.prototype.add=ic.prototype.push=bU,ic.prototype.has=EU;function ao(c){var f=this.__data__=new ia(c);this.size=f.size}o(ao,"Stack");function SU(){this.__data__=new ia,this.size=0}o(SU,"stackClear");function AU(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(AU,"stackDelete");function PU(c){return this.__data__.get(c)}o(PU,"stackGet");function xU(c){return this.__data__.has(c)}o(xU,"stackHas");function CU(c,f){var d=this.__data__;if(d instanceof ia){var T=d.__data__;if(!eu||T.length<n-1)return T.push([c,f]),this.size=++d.size,this;d=this.__data__=new ra(T)}return d.set(c,f),this.size=d.size,this}o(CU,"stackSet"),ao.prototype.clear=SU,ao.prototype.delete=AU,ao.prototype.get=PU,ao.prototype.has=xU,ao.prototype.set=CU;function PO(c,f){var d=Ye(c),T=!d&&cc(c),S=!d&&!T&&ts(c),C=!d&&!T&&!S&&Tl(c),L=d||T||S||C,F=L?nv(c.length,wj):[],M=F.length;for(var z in c)(f||Ft.call(c,z))&&!(L&&(z=="length"||S&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||ca(z,M)))&&F.push(z);return F}o(PO,"arrayLikeKeys");function xO(c){var f=c.length;return f?c[vv(0,f-1)]:e}o(xO,"arraySample");function IU(c,f){return Sg(Gi(c),rc(f,0,c.length))}o(IU,"arraySampleSize");function OU(c){return Sg(Gi(c))}o(OU,"arrayShuffle");function lv(c,f,d){(d!==e&&!so(c[f],d)||d===e&&!(f in c))&&oa(c,f,d)}o(lv,"assignMergeValue");function ru(c,f,d){var T=c[f];(!(Ft.call(c,f)&&so(T,d))||d===e&&!(f in c))&&oa(c,f,d)}o(ru,"assignValue");function lg(c,f){for(var d=c.length;d--;)if(so(c[d][0],f))return d;return-1}o(lg,"assocIndexOf");function RU(c,f,d,T){return za(c,function(S,C,L){f(T,S,d(S),L)}),T}o(RU,"baseAggregator");function CO(c,f){return c&&Fo(f,Yn(f),c)}o(CO,"baseAssign");function LU(c,f){return c&&Fo(f,Ki(f),c)}o(LU,"baseAssignIn");function oa(c,f,d){f=="__proto__"&&ig?ig(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(oa,"baseAssignValue");function fv(c,f){for(var d=-1,T=f.length,S=K(T),C=c==null;++d<T;)S[d]=C?e:Gv(c,f[d]);return S}o(fv,"baseAt");function rc(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(rc,"baseClamp");function wr(c,f,d,T,S,C){var L,F=f&p,M=f&g,z=f&m;if(d&&(L=S?d(c,T,S,C):d(c)),L!==e)return L;if(!yn(c))return c;var J=Ye(c);if(J){if(L=T$(c),!F)return Gi(c,L)}else{var ne=yi(c),ge=ne==_e||ne==Nt;if(ts(c))return YO(c,F);if(ne==fn||ne==ln||ge&&!S){if(L=M||ge?{}:mR(c),!F)return M?s$(c,LU(L,c)):a$(c,CO(L,c))}else{if(!Yt[ne])return S?c:{};L=v$(c,ne,F)}}C||(C=new ao);var Oe=C.get(c);if(Oe)return Oe;C.set(c,L),GR(c)?c.forEach(function(ke){L.add(wr(ke,f,d,ke,c,C))}):BR(c)&&c.forEach(function(ke,ct){L.set(ct,wr(ke,f,d,ct,c,C))});var Me=z?M?Lv:Rv:M?Ki:Yn,nt=J?e:Me(c);return Dr(nt||c,function(ke,ct){nt&&(ct=ke,ke=c[ct]),ru(L,ct,wr(ke,f,d,ct,c,C))}),L}o(wr,"baseClone");function NU(c){var f=Yn(c);return function(d){return IO(d,c,f)}}o(NU,"baseConforms");function IO(c,f,d){var T=d.length;if(c==null)return!T;for(c=Wt(c);T--;){var S=d[T],C=f[S],L=c[S];if(L===e&&!(S in c)||!C(L))return!1}return!0}o(IO,"baseConformsTo");function OO(c,f,d){if(typeof c!="function")throw new _r(r);return uu(function(){c.apply(e,d)},f)}o(OO,"baseDelay");function ou(c,f,d,T){var S=-1,C=Kd,L=!0,F=c.length,M=[],z=f.length;if(!F)return M;d&&(f=pn(f,ur(d))),T?(C=YT,L=!1):f.length>=n&&(C=Jf,L=!1,f=new ic(f));e:for(;++S<F;){var J=c[S],ne=d==null?J:d(J);if(J=T||J!==0?J:0,L&&ne===ne){for(var ge=z;ge--;)if(f[ge]===ne)continue e;M.push(J)}else C(f,ne,T)||M.push(J)}return M}o(ou,"baseDifference");var za=tR(No),RO=tR(pv,!0);function FU(c,f){var d=!0;return za(c,function(T,S,C){return d=!!f(T,S,C),d}),d}o(FU,"baseEvery");function fg(c,f,d){for(var T=-1,S=c.length;++T<S;){var C=c[T],L=f(C);if(L!=null&&(F===e?L===L&&!dr(L):d(L,F)))var F=L,M=C}return M}o(fg,"baseExtremum");function DU(c,f,d,T){var S=c.length;for(d=et(d),d<0&&(d=-d>S?0:S+d),T=T===e||T>S?S:et(T),T<0&&(T+=S),T=d>T?0:KR(T);d<T;)c[d++]=f;return c}o(DU,"baseFill");function LO(c,f){var d=[];return za(c,function(T,S,C){f(T,S,C)&&d.push(T)}),d}o(LO,"baseFilter");function ri(c,f,d,T,S){var C=-1,L=c.length;for(d||(d=E$),S||(S=[]);++C<L;){var F=c[C];f>0&&d(F)?f>1?ri(F,f-1,d,T,S):Xa(S,F):T||(S[S.length]=F)}return S}o(ri,"baseFlatten");var uv=nR(),NO=nR(!0);function No(c,f){return c&&uv(c,f,Yn)}o(No,"baseForOwn");function pv(c,f){return c&&NO(c,f,Yn)}o(pv,"baseForOwnRight");function ug(c,f){return Ka(f,function(d){return la(c[d])})}o(ug,"baseFunctions");function oc(c,f){f=Za(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[Do(f[d++])];return d&&d==T?c:e}o(oc,"baseGet");function FO(c,f,d){var T=f(c);return Ye(c)?T:Xa(T,d(c))}o(FO,"baseGetAllKeys");function Ri(c){return c==null?c===e?na:bn:tc&&tc in Wt(c)?m$(c):O$(c)}o(Ri,"baseGetTag");function dv(c,f){return c>f}o(dv,"baseGt");function _U(c,f){return c!=null&&Ft.call(c,f)}o(_U,"baseHas");function VU(c,f){return c!=null&&f in Wt(c)}o(VU,"baseHasIn");function wU(c,f,d){return c>=hi(f,d)&&c<Wn(f,d)}o(wU,"baseInRange");function gv(c,f,d){for(var T=d?YT:Kd,S=c[0].length,C=c.length,L=C,F=K(C),M=1/0,z=[];L--;){var J=c[L];L&&f&&(J=pn(J,ur(f))),M=hi(J.length,M),F[L]=!d&&(f||S>=120&&J.length>=120)?new ic(L&&J):e}J=c[0];var ne=-1,ge=F[0];e:for(;++ne<S&&z.length<M;){var Oe=J[ne],Me=f?f(Oe):Oe;if(Oe=d||Oe!==0?Oe:0,!(ge?Jf(ge,Me):T(z,Me,d))){for(L=C;--L;){var nt=F[L];if(!(nt?Jf(nt,Me):T(c[L],Me,d)))continue e}ge&&ge.push(Me),z.push(Oe)}}return z}o(gv,"baseIntersection");function MU(c,f,d,T){return No(c,function(S,C,L){f(T,d(S),C,L)}),T}o(MU,"baseInverter");function au(c,f,d){f=Za(f,c),c=vR(c,f);var T=c==null?c:c[Do(kr(f))];return T==null?e:fr(T,c,d)}o(au,"baseInvoke");function DO(c){return En(c)&&Ri(c)==ln}o(DO,"baseIsArguments");function kU(c){return En(c)&&Ri(c)==Js}o(kU,"baseIsArrayBuffer");function jU(c){return En(c)&&Ri(c)==A}o(jU,"baseIsDate");function su(c,f,d,T,S){return c===f?!0:c==null||f==null||!En(c)&&!En(f)?c!==c&&f!==f:UU(c,f,d,T,su,S)}o(su,"baseIsEqual");function UU(c,f,d,T,S,C){var L=Ye(c),F=Ye(f),M=L?Oi:yi(c),z=F?Oi:yi(f);M=M==ln?fn:M,z=z==ln?fn:z;var J=M==fn,ne=z==fn,ge=M==z;if(ge&&ts(c)){if(!ts(f))return!1;L=!0,J=!1}if(ge&&!J)return C||(C=new ao),L||Tl(c)?pR(c,f,d,T,S,C):d$(c,f,M,d,T,S,C);if(!(d&v)){var Oe=J&&Ft.call(c,"__wrapped__"),Me=ne&&Ft.call(f,"__wrapped__");if(Oe||Me){var nt=Oe?c.value():c,ke=Me?f.value():f;return C||(C=new ao),S(nt,ke,d,T,C)}}return ge?(C||(C=new ao),g$(c,f,d,T,S,C)):!1}o(UU,"baseIsEqualDeep");function $U(c){return En(c)&&yi(c)==ze}o($U,"baseIsMap");function mv(c,f,d,T){var S=d.length,C=S,L=!T;if(c==null)return!C;for(c=Wt(c);S--;){var F=d[S];if(L&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++S<C;){F=d[S];var M=F[0],z=c[M],J=F[1];if(L&&F[2]){if(z===e&&!(M in c))return!1}else{var ne=new ao;if(T)var ge=T(z,J,M,c,f,ne);if(!(ge===e?su(J,z,v|E,T,ne):ge))return!1}}return!0}o(mv,"baseIsMatch");function _O(c){if(!yn(c)||A$(c))return!1;var f=la(c)?$j:N2;return f.test(sc(c))}o(_O,"baseIsNative");function BU(c){return En(c)&&Ri(c)==cr}o(BU,"baseIsRegExp");function HU(c){return En(c)&&yi(c)==mn}o(HU,"baseIsSet");function GU(c){return En(c)&&Og(c.length)&&!!an[Ri(c)]}o(GU,"baseIsTypedArray");function VO(c){return typeof c=="function"?c:c==null?Xi:typeof c=="object"?Ye(c)?kO(c[0],c[1]):MO(c):iL(c)}o(VO,"baseIteratee");function hv(c){if(!fu(c))return Xj(c);var f=[];for(var d in Wt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(hv,"baseKeys");function WU(c){if(!yn(c))return I$(c);var f=fu(c),d=[];for(var T in c)T=="constructor"&&(f||!Ft.call(c,T))||d.push(T);return d}o(WU,"baseKeysIn");function yv(c,f){return c<f}o(yv,"baseLt");function wO(c,f){var d=-1,T=Wi(c)?K(c.length):[];return za(c,function(S,C,L){T[++d]=f(S,C,L)}),T}o(wO,"baseMap");function MO(c){var f=Fv(c);return f.length==1&&f[0][2]?yR(f[0][0],f[0][1]):function(d){return d===c||mv(d,c,f)}}o(MO,"baseMatches");function kO(c,f){return _v(c)&&hR(f)?yR(Do(c),f):function(d){var T=Gv(d,c);return T===e&&T===f?Wv(d,c):su(f,T,v|E)}}o(kO,"baseMatchesProperty");function pg(c,f,d,T,S){c!==f&&uv(f,function(C,L){if(S||(S=new ao),yn(C))KU(c,f,L,d,pg,T,S);else{var F=T?T(wv(c,L),C,L+"",c,f,S):e;F===e&&(F=C),lv(c,L,F)}},Ki)}o(pg,"baseMerge");function KU(c,f,d,T,S,C,L){var F=wv(c,d),M=wv(f,d),z=L.get(M);if(z){lv(c,d,z);return}var J=C?C(F,M,d+"",c,f,L):e,ne=J===e;if(ne){var ge=Ye(M),Oe=!ge&&ts(M),Me=!ge&&!Oe&&Tl(M);J=M,ge||Oe||Me?Ye(F)?J=F:Ln(F)?J=Gi(F):Oe?(ne=!1,J=YO(M,!0)):Me?(ne=!1,J=zO(M,!0)):J=[]:pu(M)||cc(M)?(J=F,cc(F)?J=XR(F):(!yn(F)||la(F))&&(J=mR(M))):ne=!1}ne&&(L.set(M,J),S(J,M,T,C,L),L.delete(M)),lv(c,d,J)}o(KU,"baseMergeDeep");function jO(c,f){var d=c.length;if(d)return f+=f<0?d:0,ca(f,d)?c[f]:e}o(jO,"baseNth");function UO(c,f,d){f.length?f=pn(f,function(C){return Ye(C)?function(L){return oc(L,C.length===1?C[0]:C)}:C}):f=[Xi];var T=-1;f=pn(f,ur(Ve()));var S=wO(c,function(C,L,F){var M=pn(f,function(z){return z(C)});return{criteria:M,index:++T,value:C}});return vj(S,function(C,L){return o$(C,L,d)})}o(UO,"baseOrderBy");function XU(c,f){return $O(c,f,function(d,T){return Wv(c,T)})}o(XU,"basePick");function $O(c,f,d){for(var T=-1,S=f.length,C={};++T<S;){var L=f[T],F=oc(c,L);d(F,L)&&cu(C,Za(L,c),F)}return C}o($O,"basePickBy");function QU(c){return function(f){return oc(f,c)}}o(QU,"basePropertyDeep");function Tv(c,f,d,T){var S=T?Tj:cl,C=-1,L=f.length,F=c;for(c===f&&(f=Gi(f)),d&&(F=pn(c,ur(d)));++C<L;)for(var M=0,z=f[C],J=d?d(z):z;(M=S(F,J,M,T))>-1;)F!==c&&ng.call(F,M,1),ng.call(c,M,1);return c}o(Tv,"basePullAll");function BO(c,f){for(var d=c?f.length:0,T=d-1;d--;){var S=f[d];if(d==T||S!==C){var C=S;ca(S)?ng.call(c,S,1):Sv(c,S)}}return c}o(BO,"basePullAt");function vv(c,f){return c+og(SO()*(f-c+1))}o(vv,"baseRandom");function qU(c,f,d,T){for(var S=-1,C=Wn(rg((f-c)/(d||1)),0),L=K(C);C--;)L[T?C:++S]=c,c+=d;return L}o(qU,"baseRange");function bv(c,f){var d="";if(!c||f<1||f>Le)return d;do f%2&&(d+=c),f=og(f/2),f&&(c+=c);while(f);return d}o(bv,"baseRepeat");function rt(c,f){return Mv(TR(c,f,Xi),c+"")}o(rt,"baseRest");function YU(c){return xO(vl(c))}o(YU,"baseSample");function zU(c,f){var d=vl(c);return Sg(d,rc(f,0,d.length))}o(zU,"baseSampleSize");function cu(c,f,d,T){if(!yn(c))return c;f=Za(f,c);for(var S=-1,C=f.length,L=C-1,F=c;F!=null&&++S<C;){var M=Do(f[S]),z=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(S!=L){var J=F[M];z=T?T(J,M,F):e,z===e&&(z=yn(J)?J:ca(f[S+1])?[]:{})}ru(F,M,z),F=F[M]}return c}o(cu,"baseSet");var HO=ag?function(c,f){return ag.set(c,f),c}:Xi,JU=ig?function(c,f){return ig(c,"toString",{configurable:!0,enumerable:!1,value:Xv(f),writable:!0})}:Xi;function ZU(c){return Sg(vl(c))}o(ZU,"baseShuffle");function Mr(c,f,d){var T=-1,S=c.length;f<0&&(f=-f>S?0:S+f),d=d>S?S:d,d<0&&(d+=S),S=f>d?0:d-f>>>0,f>>>=0;for(var C=K(S);++T<S;)C[T]=c[T+f];return C}o(Mr,"baseSlice");function e$(c,f){var d;return za(c,function(T,S,C){return d=f(T,S,C),!d}),!!d}o(e$,"baseSome");function dg(c,f,d){var T=0,S=c==null?T:c.length;if(typeof f=="number"&&f===f&&S<=on){for(;T<S;){var C=T+S>>>1,L=c[C];L!==null&&!dr(L)&&(d?L<=f:L<f)?T=C+1:S=C}return S}return Ev(c,f,Xi,d)}o(dg,"baseSortedIndex");function Ev(c,f,d,T){var S=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,F=f===null,M=dr(f),z=f===e;S<C;){var J=og((S+C)/2),ne=d(c[J]),ge=ne!==e,Oe=ne===null,Me=ne===ne,nt=dr(ne);if(L)var ke=T||Me;else z?ke=Me&&(T||ge):F?ke=Me&&ge&&(T||!Oe):M?ke=Me&&ge&&!Oe&&(T||!nt):Oe||nt?ke=!1:ke=T?ne<=f:ne<f;ke?S=J+1:C=J}return hi(C,On)}o(Ev,"baseSortedIndexBy");function GO(c,f){for(var d=-1,T=c.length,S=0,C=[];++d<T;){var L=c[d],F=f?f(L):L;if(!d||!so(F,M)){var M=F;C[S++]=L===0?0:L}}return C}o(GO,"baseSortedUniq");function WO(c){return typeof c=="number"?c:dr(c)?vn:+c}o(WO,"baseToNumber");function pr(c){if(typeof c=="string")return c;if(Ye(c))return pn(c,pr)+"";if(dr(c))return AO?AO.call(c):"";var f=c+"";return f=="0"&&1/c==-qt?"-0":f}o(pr,"baseToString");function Ja(c,f,d){var T=-1,S=Kd,C=c.length,L=!0,F=[],M=F;if(d)L=!1,S=YT;else if(C>=n){var z=f?null:u$(c);if(z)return Qd(z);L=!1,S=Jf,M=new ic}else M=f?[]:F;e:for(;++T<C;){var J=c[T],ne=f?f(J):J;if(J=d||J!==0?J:0,L&&ne===ne){for(var ge=M.length;ge--;)if(M[ge]===ne)continue e;f&&M.push(ne),F.push(J)}else S(M,ne,d)||(M!==F&&M.push(ne),F.push(J))}return F}o(Ja,"baseUniq");function Sv(c,f){return f=Za(f,c),c=vR(c,f),c==null||delete c[Do(kr(f))]}o(Sv,"baseUnset");function KO(c,f,d,T){return cu(c,f,d(oc(c,f)),T)}o(KO,"baseUpdate");function gg(c,f,d,T){for(var S=c.length,C=T?S:-1;(T?C--:++C<S)&&f(c[C],C,c););return d?Mr(c,T?0:C,T?C+1:S):Mr(c,T?C+1:0,T?S:C)}o(gg,"baseWhile");function XO(c,f){var d=c;return d instanceof dt&&(d=d.value()),zT(f,function(T,S){return S.func.apply(S.thisArg,Xa([T],S.args))},d)}o(XO,"baseWrapperValue");function Av(c,f,d){var T=c.length;if(T<2)return T?Ja(c[0]):[];for(var S=-1,C=K(T);++S<T;)for(var L=c[S],F=-1;++F<T;)F!=S&&(C[S]=ou(C[S]||L,c[F],f,d));return Ja(ri(C,1),f,d)}o(Av,"baseXor");function QO(c,f,d){for(var T=-1,S=c.length,C=f.length,L={};++T<S;){var F=T<C?f[T]:e;d(L,c[T],F)}return L}o(QO,"baseZipObject");function Pv(c){return Ln(c)?c:[]}o(Pv,"castArrayLikeObject");function xv(c){return typeof c=="function"?c:Xi}o(xv,"castFunction");function Za(c,f){return Ye(c)?c:_v(c,f)?[c]:AR(It(c))}o(Za,"castPath");var t$=rt;function es(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:Mr(c,f,d)}o(es,"castSlice");var qO=Bj||function(c){return qn.clearTimeout(c)};function YO(c,f){if(f)return c.slice();var d=c.length,T=yO?yO(d):new c.constructor(d);return c.copy(T),T}o(YO,"cloneBuffer");function Cv(c){var f=new c.constructor(c.byteLength);return new eg(f).set(new eg(c)),f}o(Cv,"cloneArrayBuffer");function n$(c,f){var d=f?Cv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(n$,"cloneDataView");function i$(c){var f=new c.constructor(c.source,DI.exec(c));return f.lastIndex=c.lastIndex,f}o(i$,"cloneRegExp");function r$(c){return iu?Wt(iu.call(c)):{}}o(r$,"cloneSymbol");function zO(c,f){var d=f?Cv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(zO,"cloneTypedArray");function JO(c,f){if(c!==f){var d=c!==e,T=c===null,S=c===c,C=dr(c),L=f!==e,F=f===null,M=f===f,z=dr(f);if(!F&&!z&&!C&&c>f||C&&L&&M&&!F&&!z||T&&L&&M||!d&&M||!S)return 1;if(!T&&!C&&!z&&c<f||z&&d&&S&&!T&&!C||F&&d&&S||!L&&S||!M)return-1}return 0}o(JO,"compareAscending");function o$(c,f,d){for(var T=-1,S=c.criteria,C=f.criteria,L=S.length,F=d.length;++T<L;){var M=JO(S[T],C[T]);if(M){if(T>=F)return M;var z=d[T];return M*(z=="desc"?-1:1)}}return c.index-f.index}o(o$,"compareMultiple");function ZO(c,f,d,T){for(var S=-1,C=c.length,L=d.length,F=-1,M=f.length,z=Wn(C-L,0),J=K(M+z),ne=!T;++F<M;)J[F]=f[F];for(;++S<L;)(ne||S<C)&&(J[d[S]]=c[S]);for(;z--;)J[F++]=c[S++];return J}o(ZO,"composeArgs");function eR(c,f,d,T){for(var S=-1,C=c.length,L=-1,F=d.length,M=-1,z=f.length,J=Wn(C-F,0),ne=K(J+z),ge=!T;++S<J;)ne[S]=c[S];for(var Oe=S;++M<z;)ne[Oe+M]=f[M];for(;++L<F;)(ge||S<C)&&(ne[Oe+d[L]]=c[S++]);return ne}o(eR,"composeArgsRight");function Gi(c,f){var d=-1,T=c.length;for(f||(f=K(T));++d<T;)f[d]=c[d];return f}o(Gi,"copyArray");function Fo(c,f,d,T){var S=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var F=f[C],M=T?T(d[F],c[F],F,d,c):e;M===e&&(M=c[F]),S?oa(d,F,M):ru(d,F,M)}return d}o(Fo,"copyObject");function a$(c,f){return Fo(c,Dv(c),f)}o(a$,"copySymbols");function s$(c,f){return Fo(c,dR(c),f)}o(s$,"copySymbolsIn");function mg(c,f){return function(d,T){var S=Ye(d)?pj:RU,C=f?f():{};return S(d,c,Ve(T,2),C)}}o(mg,"createAggregator");function ml(c){return rt(function(f,d){var T=-1,S=d.length,C=S>1?d[S-1]:e,L=S>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(S--,C):e,L&&Li(d[0],d[1],L)&&(C=S<3?e:C,S=1),f=Wt(f);++T<S;){var F=d[T];F&&c(f,F,T,C)}return f})}o(ml,"createAssigner");function tR(c,f){return function(d,T){if(d==null)return d;if(!Wi(d))return c(d,T);for(var S=d.length,C=f?S:-1,L=Wt(d);(f?C--:++C<S)&&T(L[C],C,L)!==!1;);return d}}o(tR,"createBaseEach");function nR(c){return function(f,d,T){for(var S=-1,C=Wt(f),L=T(f),F=L.length;F--;){var M=L[c?F:++S];if(d(C[M],M,C)===!1)break}return f}}o(nR,"createBaseFor");function c$(c,f,d){var T=f&b,S=lu(c);function C(){var L=this&&this!==qn&&this instanceof C?S:c;return L.apply(T?d:this,arguments)}return o(C,"wrapper"),C}o(c$,"createBind");function iR(c){return function(f){f=It(f);var d=ll(f)?oo(f):e,T=d?d[0]:f.charAt(0),S=d?es(d,1).join(""):f.slice(1);return T[c]()+S}}o(iR,"createCaseFirst");function hl(c){return function(f){return zT(tL(eL(f).replace(J2,"")),c,"")}}o(hl,"createCompounder");function lu(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=gl(c.prototype),T=c.apply(d,f);return yn(T)?T:d}}o(lu,"createCtor");function l$(c,f,d){var T=lu(c);function S(){for(var C=arguments.length,L=K(C),F=C,M=yl(S);F--;)L[F]=arguments[F];var z=C<3&&L[0]!==M&&L[C-1]!==M?[]:Qa(L,M);if(C-=z.length,C<d)return cR(c,f,hg,S.placeholder,e,L,z,e,e,d-C);var J=this&&this!==qn&&this instanceof S?T:c;return fr(J,this,L)}return o(S,"wrapper"),S}o(l$,"createCurry");function rR(c){return function(f,d,T){var S=Wt(f);if(!Wi(f)){var C=Ve(d,3);f=Yn(f),d=o(function(F){return C(S[F],F,S)},"predicate")}var L=c(f,d,T);return L>-1?S[C?f[L]:L]:e}}o(rR,"createFind");function oR(c){return sa(function(f){var d=f.length,T=d,S=Vr.prototype.thru;for(c&&f.reverse();T--;){var C=f[T];if(typeof C!="function")throw new _r(r);if(S&&!L&&bg(C)=="wrapper")var L=new Vr([],!0)}for(T=L?T:d;++T<d;){C=f[T];var F=bg(C),M=F=="wrapper"?Nv(C):e;M&&Vv(M[0])&&M[1]==(te|j|$|le)&&!M[4].length&&M[9]==1?L=L[bg(M[0])].apply(L,M[3]):L=C.length==1&&Vv(C)?L[F]():L.thru(C)}return function(){var z=arguments,J=z[0];if(L&&z.length==1&&Ye(J))return L.plant(J).value();for(var ne=0,ge=d?f[ne].apply(this,z):J;++ne<d;)ge=f[ne].call(this,ge);return ge}})}o(oR,"createFlow");function hg(c,f,d,T,S,C,L,F,M,z){var J=f&te,ne=f&b,ge=f&I,Oe=f&(j|G),Me=f&Re,nt=ge?e:lu(c);function ke(){for(var ct=arguments.length,gt=K(ct),gr=ct;gr--;)gt[gr]=arguments[gr];if(Oe)var Ni=yl(ke),mr=Ej(gt,Ni);if(T&&(gt=ZO(gt,T,S,Oe)),C&&(gt=eR(gt,C,L,Oe)),ct-=mr,Oe&&ct<z){var Nn=Qa(gt,Ni);return cR(c,f,hg,ke.placeholder,d,gt,Nn,F,M,z-ct)}var co=ne?d:this,ua=ge?co[c]:c;return ct=gt.length,F?gt=R$(gt,F):Me&&ct>1&>.reverse(),J&&M<ct&&(gt.length=M),this&&this!==qn&&this instanceof ke&&(ua=nt||lu(ua)),ua.apply(co,gt)}return o(ke,"wrapper"),ke}o(hg,"createHybrid");function aR(c,f){return function(d,T){return MU(d,c,f(T),{})}}o(aR,"createInverter");function yg(c,f){return function(d,T){var S;if(d===e&&T===e)return f;if(d!==e&&(S=d),T!==e){if(S===e)return T;typeof d=="string"||typeof T=="string"?(d=pr(d),T=pr(T)):(d=WO(d),T=WO(T)),S=c(d,T)}return S}}o(yg,"createMathOperation");function Iv(c){return sa(function(f){return f=pn(f,ur(Ve())),rt(function(d){var T=this;return c(f,function(S){return fr(S,T,d)})})})}o(Iv,"createOver");function Tg(c,f){f=f===e?" ":pr(f);var d=f.length;if(d<2)return d?bv(f,c):f;var T=bv(f,rg(c/fl(f)));return ll(f)?es(oo(T),0,c).join(""):T.slice(0,c)}o(Tg,"createPadding");function f$(c,f,d,T){var S=f&b,C=lu(c);function L(){for(var F=-1,M=arguments.length,z=-1,J=T.length,ne=K(J+M),ge=this&&this!==qn&&this instanceof L?C:c;++z<J;)ne[z]=T[z];for(;M--;)ne[z++]=arguments[++F];return fr(ge,S?d:this,ne)}return o(L,"wrapper"),L}o(f$,"createPartial");function sR(c){return function(f,d,T){return T&&typeof T!="number"&&Li(f,d,T)&&(d=T=e),f=fa(f),d===e?(d=f,f=0):d=fa(d),T=T===e?f<d?1:-1:fa(T),qU(f,d,T,c)}}o(sR,"createRange");function vg(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=jr(f),d=jr(d)),c(f,d)}}o(vg,"createRelationalOperation");function cR(c,f,d,T,S,C,L,F,M,z){var J=f&j,ne=J?L:e,ge=J?e:L,Oe=J?C:e,Me=J?e:C;f|=J?$:se,f&=~(J?se:$),f&N||(f&=~(b|I));var nt=[c,f,S,Oe,ne,Me,ge,F,M,z],ke=d.apply(e,nt);return Vv(c)&&bR(ke,nt),ke.placeholder=T,ER(ke,c,f)}o(cR,"createRecurry");function Ov(c){var f=Gn[c];return function(d,T){if(d=jr(d),T=T==null?0:hi(et(T),292),T&&EO(d)){var S=(It(d)+"e").split("e"),C=f(S[0]+"e"+(+S[1]+T));return S=(It(C)+"e").split("e"),+(S[0]+"e"+(+S[1]-T))}return f(d)}}o(Ov,"createRound");var u$=pl&&1/Qd(new pl([,-0]))[1]==qt?function(c){return new pl(c)}:Yv;function lR(c){return function(f){var d=yi(f);return d==ze?rv(f):d==mn?Oj(f):bj(f,c(f))}}o(lR,"createToPairs");function aa(c,f,d,T,S,C,L,F){var M=f&I;if(!M&&typeof c!="function")throw new _r(r);var z=T?T.length:0;if(z||(f&=~($|se),T=S=e),L=L===e?L:Wn(et(L),0),F=F===e?F:et(F),z-=S?S.length:0,f&se){var J=T,ne=S;T=S=e}var ge=M?e:Nv(c),Oe=[c,f,d,T,S,J,ne,C,L,F];if(ge&&C$(Oe,ge),c=Oe[0],f=Oe[1],d=Oe[2],T=Oe[3],S=Oe[4],F=Oe[9]=Oe[9]===e?M?0:c.length:Wn(Oe[9]-z,0),!F&&f&(j|G)&&(f&=~(j|G)),!f||f==b)var Me=c$(c,f,d);else f==j||f==G?Me=l$(c,f,F):(f==$||f==(b|$))&&!S.length?Me=f$(c,f,d,T):Me=hg.apply(e,Oe);var nt=ge?HO:bR;return ER(nt(Me,Oe),c,f)}o(aa,"createWrap");function fR(c,f,d,T){return c===e||so(c,ul[d])&&!Ft.call(T,d)?f:c}o(fR,"customDefaultsAssignIn");function uR(c,f,d,T,S,C){return yn(c)&&yn(f)&&(C.set(f,c),pg(c,f,e,uR,C),C.delete(f)),c}o(uR,"customDefaultsMerge");function p$(c){return pu(c)?e:c}o(p$,"customOmitClone");function pR(c,f,d,T,S,C){var L=d&v,F=c.length,M=f.length;if(F!=M&&!(L&&M>F))return!1;var z=C.get(c),J=C.get(f);if(z&&J)return z==f&&J==c;var ne=-1,ge=!0,Oe=d&E?new ic:e;for(C.set(c,f),C.set(f,c);++ne<F;){var Me=c[ne],nt=f[ne];if(T)var ke=L?T(nt,Me,ne,f,c,C):T(Me,nt,ne,c,f,C);if(ke!==e){if(ke)continue;ge=!1;break}if(Oe){if(!JT(f,function(ct,gt){if(!Jf(Oe,gt)&&(Me===ct||S(Me,ct,d,T,C)))return Oe.push(gt)})){ge=!1;break}}else if(!(Me===nt||S(Me,nt,d,T,C))){ge=!1;break}}return C.delete(c),C.delete(f),ge}o(pR,"equalArrays");function d$(c,f,d,T,S,C,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Js:return!(c.byteLength!=f.byteLength||!C(new eg(c),new eg(f)));case O:case A:case Mt:return so(+c,+f);case V:return c.name==f.name&&c.message==f.message;case cr:case mi:return c==f+"";case ze:var F=rv;case mn:var M=T&v;if(F||(F=Qd),c.size!=f.size&&!M)return!1;var z=L.get(c);if(z)return z==f;T|=E,L.set(c,f);var J=pR(F(c),F(f),T,S,C,L);return L.delete(c),J;case Ht:if(iu)return iu.call(c)==iu.call(f)}return!1}o(d$,"equalByTag");function g$(c,f,d,T,S,C){var L=d&v,F=Rv(c),M=F.length,z=Rv(f),J=z.length;if(M!=J&&!L)return!1;for(var ne=M;ne--;){var ge=F[ne];if(!(L?ge in f:Ft.call(f,ge)))return!1}var Oe=C.get(c),Me=C.get(f);if(Oe&&Me)return Oe==f&&Me==c;var nt=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ne<M;){ge=F[ne];var ct=c[ge],gt=f[ge];if(T)var gr=L?T(gt,ct,ge,f,c,C):T(ct,gt,ge,c,f,C);if(!(gr===e?ct===gt||S(ct,gt,d,T,C):gr)){nt=!1;break}ke||(ke=ge=="constructor")}if(nt&&!ke){var Ni=c.constructor,mr=f.constructor;Ni!=mr&&"constructor"in c&&"constructor"in f&&!(typeof Ni=="function"&&Ni instanceof Ni&&typeof mr=="function"&&mr instanceof mr)&&(nt=!1)}return C.delete(c),C.delete(f),nt}o(g$,"equalObjects");function sa(c){return Mv(TR(c,e,IR),c+"")}o(sa,"flatRest");function Rv(c){return FO(c,Yn,Dv)}o(Rv,"getAllKeys");function Lv(c){return FO(c,Ki,dR)}o(Lv,"getAllKeysIn");var Nv=ag?function(c){return ag.get(c)}:Yv;function bg(c){for(var f=c.name+"",d=dl[f],T=Ft.call(dl,f)?d.length:0;T--;){var S=d[T],C=S.func;if(C==null||C==c)return S.name}return f}o(bg,"getFuncName");function yl(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(yl,"getHolder");function Ve(){var c=P.iteratee||Qv;return c=c===Qv?VO:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Eg(c,f){var d=c.__data__;return S$(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Eg,"getMapData");function Fv(c){for(var f=Yn(c),d=f.length;d--;){var T=f[d],S=c[T];f[d]=[T,S,hR(S)]}return f}o(Fv,"getMatchData");function ac(c,f){var d=xj(c,f);return _O(d)?d:e}o(ac,"getNative");function m$(c){var f=Ft.call(c,tc),d=c[tc];try{c[tc]=e;var T=!0}catch{}var S=Jd.call(c);return T&&(f?c[tc]=d:delete c[tc]),S}o(m$,"getRawTag");var Dv=av?function(c){return c==null?[]:(c=Wt(c),Ka(av(c),function(f){return vO.call(c,f)}))}:zv,dR=av?function(c){for(var f=[];c;)Xa(f,Dv(c)),c=tg(c);return f}:zv,yi=Ri;(sv&&yi(new sv(new ArrayBuffer(1)))!=Nr||eu&&yi(new eu)!=ze||cv&&yi(cv.resolve())!=Bt||pl&&yi(new pl)!=mn||tu&&yi(new tu)!=Hi)&&(yi=o(function(c){var f=Ri(c),d=f==fn?c.constructor:e,T=d?sc(d):"";if(T)switch(T){case zj:return Nr;case Jj:return ze;case Zj:return Bt;case eU:return mn;case tU:return Hi}return f},"getTag"));function h$(c,f,d){for(var T=-1,S=d.length;++T<S;){var C=d[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=hi(f,c+L);break;case"takeRight":c=Wn(c,f-L);break}}return{start:c,end:f}}o(h$,"getView");function y$(c){var f=c.match(A2);return f?f[1].split(P2):[]}o(y$,"getWrapDetails");function gR(c,f,d){f=Za(f,c);for(var T=-1,S=f.length,C=!1;++T<S;){var L=Do(f[T]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++T!=S?C:(S=c==null?0:c.length,!!S&&Og(S)&&ca(L,S)&&(Ye(c)||cc(c)))}o(gR,"hasPath");function T$(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(T$,"initCloneArray");function mR(c){return typeof c.constructor=="function"&&!fu(c)?gl(tg(c)):{}}o(mR,"initCloneObject");function v$(c,f,d){var T=c.constructor;switch(f){case Js:return Cv(c);case O:case A:return new T(+c);case Nr:return n$(c,d);case Qf:case qf:case Yf:case Zs:case k:case B:case q:case ce:case Fe:return zO(c,d);case ze:return new T;case Mt:case mi:return new T(c);case cr:return i$(c);case mn:return new T;case Ht:return r$(c)}}o(v$,"initCloneByTag");function b$(c,f){var d=f.length;if(!d)return c;var T=d-1;return f[T]=(d>1?"& ":"")+f[T],f=f.join(d>2?", ":" "),c.replace(S2,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
|
-
`)}o(v$,"insertWrapDetails");function b$(c){return Ye(c)||cc(c)||!!(vO&&c&&c[vO])}o(b$,"isFlattenable");function ca(c,f){var d=typeof c;return f=f??Le,!!f&&(d=="number"||d!="symbol"&&F2.test(c))&&c>-1&&c%1==0&&c<f}o(ca,"isIndex");function Li(c,f,d){if(!yn(d))return!1;var T=typeof f;return(T=="number"?Wi(d)&&ca(f,d.length):T=="string"&&f in d)?ao(d[f],c):!1}o(Li,"isIterateeCall");function _v(c,f){if(Ye(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||dr(c)?!0:Bd.test(c)||!lr.test(c)||f!=null&&c in Wt(f)}o(_v,"isKey");function E$(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(E$,"isKeyable");function Vv(c){var f=bg(c),d=P[f];if(typeof d!="function"||!(f in dt.prototype))return!1;if(c===d)return!0;var T=Nv(d);return!!T&&c===T[0]}o(Vv,"isLaziable");function S$(c){return!!mO&&mO in c}o(S$,"isMasked");var A$=Yd?la:Jv;function fu(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||ul;return c===d}o(fu,"isPrototype");function mR(c){return c===c&&!yn(c)}o(mR,"isStrictComparable");function hR(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Wt(d))}}o(hR,"matchesStrictComparable");function P$(c){var f=Cg(c,function(T){return d.size===l&&d.clear(),T}),d=f.cache;return f}o(P$,"memoizeCapped");function x$(c,f){var d=c[1],T=f[1],S=d|T,C=S<(b|I|te),L=T==te&&d==M||T==te&&d==le&&c[7].length<=f[8]||T==(te|le)&&f[7].length<=f[8]&&d==M;if(!(C||L))return c;T&b&&(c[2]=f[2],S|=d&b?0:F);var N=f[3];if(N){var k=c[3];c[3]=k?JO(k,N,f[4]):N,c[4]=k?Qa(c[3],u):f[4]}return N=f[5],N&&(k=c[5],c[5]=k?ZO(k,N,f[6]):N,c[6]=k?Qa(c[5],u):f[6]),N=f[7],N&&(c[7]=N),T&te&&(c[8]=c[8]==null?f[8]:hi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=S,c}o(x$,"mergeData");function C$(c){var f=[];if(c!=null)for(var d in Wt(c))f.push(d);return f}o(C$,"nativeKeysIn");function I$(c){return Jd.call(c)}o(I$,"objectToString");function yR(c,f,d){return f=Wn(f===e?c.length-1:f,0),function(){for(var T=arguments,S=-1,C=Wn(T.length-f,0),L=K(C);++S<C;)L[S]=T[f+S];S=-1;for(var N=K(f+1);++S<f;)N[S]=T[S];return N[f]=d(L),fr(c,this,N)}}o(yR,"overRest");function TR(c,f){return f.length<2?c:oc(c,Mr(f,0,-1))}o(TR,"parent");function O$(c,f){for(var d=c.length,T=hi(f.length,d),S=Gi(c);T--;){var C=f[T];c[T]=ca(C,d)?S[C]:e}return c}o(O$,"reorder");function wv(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(wv,"safeGet");var vR=ER(BO),uu=Hj||function(c,f){return qn.setTimeout(c,f)},Mv=ER(zU);function bR(c,f,d){var T=f+"";return Mv(c,v$(T,R$(h$(T),d)))}o(bR,"setWrapToString");function ER(c){var f=0,d=0;return function(){var T=Xj(),S=qe-(T-d);if(d=T,S>0){if(++f>=$e)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(ER,"shortOut");function Sg(c,f){var d=-1,T=c.length,S=T-1;for(f=f===e?T:f;++d<f;){var C=vv(d,S),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(Sg,"shuffleSelf");var SR=P$(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace($T,function(d,T,S,C){f.push(S?C.replace(C2,"$1"):T||d)}),f});function Fo(c){if(typeof c=="string"||dr(c))return c;var f=c+"";return f=="0"&&1/c==-qt?"-0":f}o(Fo,"toKey");function sc(c){if(c!=null){try{return zd.call(c)}catch{}try{return c+""}catch{}}return""}o(sc,"toSource");function R$(c,f){return Dr(Ie,function(d){var T="_."+d[0];f&d[1]&&!Kd(c,T)&&c.push(T)}),c.sort()}o(R$,"updateWrapDetails");function AR(c){if(c instanceof dt)return c.clone();var f=new Vr(c.__wrapped__,c.__chain__);return f.__actions__=Gi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(AR,"wrapperClone");function L$(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Wn(et(f),0);var T=c==null?0:c.length;if(!T||f<1)return[];for(var S=0,C=0,L=K(rg(T/f));S<T;)L[C++]=Mr(c,S,S+=f);return L}o(L$,"chunk");function N$(c){for(var f=-1,d=c==null?0:c.length,T=0,S=[];++f<d;){var C=c[f];C&&(S[T++]=C)}return S}o(N$,"compact");function F$(){var c=arguments.length;if(!c)return[];for(var f=K(c-1),d=arguments[0],T=c;T--;)f[T-1]=arguments[T];return Xa(Ye(d)?Gi(d):[d],ri(f,1))}o(F$,"concat");var D$=rt(function(c,f){return Ln(c)?ou(c,ri(f,1,Ln,!0)):[]}),_$=rt(function(c,f){var d=kr(f);return Ln(d)&&(d=e),Ln(c)?ou(c,ri(f,1,Ln,!0),Ve(d,2)):[]}),V$=rt(function(c,f){var d=kr(f);return Ln(d)&&(d=e),Ln(c)?ou(c,ri(f,1,Ln,!0),e,d):[]});function w$(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:et(f),Mr(c,f<0?0:f,T)):[]}o(w$,"drop");function M$(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:et(f),f=T-f,Mr(c,0,f<0?0:f)):[]}o(M$,"dropRight");function k$(c,f){return c&&c.length?gg(c,Ve(f,3),!0,!0):[]}o(k$,"dropRightWhile");function j$(c,f){return c&&c.length?gg(c,Ve(f,3),!0):[]}o(j$,"dropWhile");function U$(c,f,d,T){var S=c==null?0:c.length;return S?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,T=S),FU(c,f,d,T)):[]}o(U$,"fill");function PR(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=d==null?0:et(d);return S<0&&(S=Wn(T+S,0)),Xd(c,Ve(f,3),S)}o(PR,"findIndex");function xR(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=T-1;return d!==e&&(S=et(d),S=d<0?Wn(T+S,0):hi(S,T-1)),Xd(c,Ve(f,3),S,!0)}o(xR,"findLastIndex");function CR(c){var f=c==null?0:c.length;return f?ri(c,1):[]}o(CR,"flatten");function $$(c){var f=c==null?0:c.length;return f?ri(c,qt):[]}o($$,"flattenDeep");function B$(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:et(f),ri(c,f)):[]}o(B$,"flattenDepth");function H$(c){for(var f=-1,d=c==null?0:c.length,T={};++f<d;){var S=c[f];T[S[0]]=S[1]}return T}o(H$,"fromPairs");function IR(c){return c&&c.length?c[0]:e}o(IR,"head");function G$(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=d==null?0:et(d);return S<0&&(S=Wn(T+S,0)),cl(c,f,S)}o(G$,"indexOf");function W$(c){var f=c==null?0:c.length;return f?Mr(c,0,-1):[]}o(W$,"initial");var K$=rt(function(c){var f=pn(c,Pv);return f.length&&f[0]===c[0]?gv(f):[]}),X$=rt(function(c){var f=kr(c),d=pn(c,Pv);return f===kr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?gv(d,Ve(f,2)):[]}),Q$=rt(function(c){var f=kr(c),d=pn(c,Pv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?gv(d,e,f):[]});function q$(c,f){return c==null?"":Wj.call(c,f)}o(q$,"join");function kr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(kr,"last");function Y$(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=T;return d!==e&&(S=et(d),S=S<0?Wn(T+S,0):hi(S,T-1)),f===f?Rj(c,f,S):Xd(c,sO,S,!0)}o(Y$,"lastIndexOf");function z$(c,f){return c&&c.length?kO(c,et(f)):e}o(z$,"nth");var J$=rt(OR);function OR(c,f){return c&&c.length&&f&&f.length?Tv(c,f):c}o(OR,"pullAll");function Z$(c,f,d){return c&&c.length&&f&&f.length?Tv(c,f,Ve(d,2)):c}o(Z$,"pullAllBy");function e4(c,f,d){return c&&c.length&&f&&f.length?Tv(c,f,e,d):c}o(e4,"pullAllWith");var t4=sa(function(c,f){var d=c==null?0:c.length,T=fv(c,f);return $O(c,pn(f,function(S){return ca(S,d)?+S:S}).sort(zO)),T});function n4(c,f){var d=[];if(!(c&&c.length))return d;var T=-1,S=[],C=c.length;for(f=Ve(f,3);++T<C;){var L=c[T];f(L,T,c)&&(d.push(L),S.push(T))}return $O(c,S),d}o(n4,"remove");function kv(c){return c==null?c:qj.call(c)}o(kv,"reverse");function i4(c,f,d){var T=c==null?0:c.length;return T?(d&&typeof d!="number"&&Li(c,f,d)?(f=0,d=T):(f=f==null?0:et(f),d=d===e?T:et(d)),Mr(c,f,d)):[]}o(i4,"slice");function r4(c,f){return dg(c,f)}o(r4,"sortedIndex");function o4(c,f,d){return Ev(c,f,Ve(d,2))}o(o4,"sortedIndexBy");function a4(c,f){var d=c==null?0:c.length;if(d){var T=dg(c,f);if(T<d&&ao(c[T],f))return T}return-1}o(a4,"sortedIndexOf");function s4(c,f){return dg(c,f,!0)}o(s4,"sortedLastIndex");function c4(c,f,d){return Ev(c,f,Ve(d,2),!0)}o(c4,"sortedLastIndexBy");function l4(c,f){var d=c==null?0:c.length;if(d){var T=dg(c,f,!0)-1;if(ao(c[T],f))return T}return-1}o(l4,"sortedLastIndexOf");function f4(c){return c&&c.length?HO(c):[]}o(f4,"sortedUniq");function u4(c,f){return c&&c.length?HO(c,Ve(f,2)):[]}o(u4,"sortedUniqBy");function p4(c){var f=c==null?0:c.length;return f?Mr(c,1,f):[]}o(p4,"tail");function d4(c,f,d){return c&&c.length?(f=d||f===e?1:et(f),Mr(c,0,f<0?0:f)):[]}o(d4,"take");function g4(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:et(f),f=T-f,Mr(c,f<0?0:f,T)):[]}o(g4,"takeRight");function m4(c,f){return c&&c.length?gg(c,Ve(f,3),!1,!0):[]}o(m4,"takeRightWhile");function h4(c,f){return c&&c.length?gg(c,Ve(f,3)):[]}o(h4,"takeWhile");var y4=rt(function(c){return Ja(ri(c,1,Ln,!0))}),T4=rt(function(c){var f=kr(c);return Ln(f)&&(f=e),Ja(ri(c,1,Ln,!0),Ve(f,2))}),b4=rt(function(c){var f=kr(c);return f=typeof f=="function"?f:e,Ja(ri(c,1,Ln,!0),e,f)});function E4(c){return c&&c.length?Ja(c):[]}o(E4,"uniq");function S4(c,f){return c&&c.length?Ja(c,Ve(f,2)):[]}o(S4,"uniqBy");function A4(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ja(c,e,f):[]}o(A4,"uniqWith");function jv(c){if(!(c&&c.length))return[];var f=0;return c=Ka(c,function(d){if(Ln(d))return f=Wn(d.length,f),!0}),nv(f,function(d){return pn(c,ZT(d))})}o(jv,"unzip");function RR(c,f){if(!(c&&c.length))return[];var d=jv(c);return f==null?d:pn(d,function(T){return fr(f,e,T)})}o(RR,"unzipWith");var P4=rt(function(c,f){return Ln(c)?ou(c,f):[]}),x4=rt(function(c){return Av(Ka(c,Ln))}),C4=rt(function(c){var f=kr(c);return Ln(f)&&(f=e),Av(Ka(c,Ln),Ve(f,2))}),I4=rt(function(c){var f=kr(c);return f=typeof f=="function"?f:e,Av(Ka(c,Ln),e,f)}),O4=rt(jv);function R4(c,f){return XO(c||[],f||[],ru)}o(R4,"zipObject");function L4(c,f){return XO(c||[],f||[],cu)}o(L4,"zipObjectDeep");var N4=rt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,RR(c,d)});function LR(c){var f=P(c);return f.__chain__=!0,f}o(LR,"chain");function F4(c,f){return f(c),c}o(F4,"tap");function Ag(c,f){return f(c)}o(Ag,"thru");var D4=sa(function(c){var f=c.length,d=f?c[0]:0,T=this.__wrapped__,S=o(function(C){return fv(C,c)},"interceptor");return f>1||this.__actions__.length||!(T instanceof dt)||!ca(d)?this.thru(S):(T=T.slice(d,+d+(f?1:0)),T.__actions__.push({func:Ag,args:[S],thisArg:e}),new Vr(T,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function _4(){return LR(this)}o(_4,"wrapperChain");function V4(){return new Vr(this.value(),this.__chain__)}o(V4,"wrapperCommit");function w4(){this.__values__===e&&(this.__values__=GR(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(w4,"wrapperNext");function M4(){return this}o(M4,"wrapperToIterator");function k4(c){for(var f,d=this;d instanceof cg;){var T=AR(d);T.__index__=0,T.__values__=e,f?S.__wrapped__=T:f=T;var S=T;d=d.__wrapped__}return S.__wrapped__=c,f}o(k4,"wrapperPlant");function j4(){var c=this.__wrapped__;if(c instanceof dt){var f=c;return this.__actions__.length&&(f=new dt(this)),f=f.reverse(),f.__actions__.push({func:Ag,args:[kv],thisArg:e}),new Vr(f,this.__chain__)}return this.thru(kv)}o(j4,"wrapperReverse");function U4(){return KO(this.__wrapped__,this.__actions__)}o(U4,"wrapperValue");var $4=mg(function(c,f,d){Nt.call(c,d)?++c[d]:oa(c,d,1)});function B4(c,f,d){var T=Ye(c)?oO:NU;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(B4,"every");function H4(c,f){var d=Ye(c)?Ka:RO;return d(c,Ve(f,3))}o(H4,"filter");var G4=iR(PR),W4=iR(xR);function K4(c,f){return ri(Pg(c,f),1)}o(K4,"flatMap");function X4(c,f){return ri(Pg(c,f),qt)}o(X4,"flatMapDeep");function Q4(c,f,d){return d=d===e?1:et(d),ri(Pg(c,f),d)}o(Q4,"flatMapDepth");function NR(c,f){var d=Ye(c)?Dr:za;return d(c,Ve(f,3))}o(NR,"forEach");function FR(c,f){var d=Ye(c)?pj:OO;return d(c,Ve(f,3))}o(FR,"forEachRight");var q4=mg(function(c,f,d){Nt.call(c,d)?c[d].push(f):oa(c,d,[f])});function Y4(c,f,d,T){c=Wi(c)?c:vl(c),d=d&&!T?et(d):0;var S=c.length;return d<0&&(d=Wn(S+d,0)),Rg(c)?d<=S&&c.indexOf(f,d)>-1:!!S&&cl(c,f,d)>-1}o(Y4,"includes");var z4=rt(function(c,f,d){var T=-1,S=typeof f=="function",C=Wi(c)?K(c.length):[];return za(c,function(L){C[++T]=S?fr(f,L,d):au(L,f,d)}),C}),J4=mg(function(c,f,d){oa(c,d,f)});function Pg(c,f){var d=Ye(c)?pn:VO;return d(c,Ve(f,3))}o(Pg,"map");function Z4(c,f,d,T){return c==null?[]:(Ye(f)||(f=f==null?[]:[f]),d=T?e:d,Ye(d)||(d=d==null?[]:[d]),jO(c,f,d))}o(Z4,"orderBy");var eB=mg(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function tB(c,f,d){var T=Ye(c)?zT:lO,S=arguments.length<3;return T(c,Ve(f,4),d,S,za)}o(tB,"reduce");function nB(c,f,d){var T=Ye(c)?dj:lO,S=arguments.length<3;return T(c,Ve(f,4),d,S,OO)}o(nB,"reduceRight");function iB(c,f){var d=Ye(c)?Ka:RO;return d(c,Ig(Ve(f,3)))}o(iB,"reject");function rB(c){var f=Ye(c)?PO:qU;return f(c)}o(rB,"sample");function oB(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=et(f);var T=Ye(c)?CU:YU;return T(c,f)}o(oB,"sampleSize");function aB(c){var f=Ye(c)?IU:JU;return f(c)}o(aB,"shuffle");function sB(c){if(c==null)return 0;if(Wi(c))return Rg(c)?fl(c):c.length;var f=yi(c);return f==ze||f==mn?c.size:hv(c).length}o(sB,"size");function cB(c,f,d){var T=Ye(c)?JT:ZU;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(cB,"some");var lB=rt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Li(c,f[0],f[1])?f=[]:d>2&&Li(f[0],f[1],f[2])&&(f=[f[0]]),jO(c,ri(f,1),[])}),xg=Bj||function(){return qn.Date.now()};function fB(c,f){if(typeof f!="function")throw new _r(r);return c=et(c),function(){if(--c<1)return f.apply(this,arguments)}}o(fB,"after");function DR(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,aa(c,te,e,e,e,e,f)}o(DR,"ary");function _R(c,f){var d;if(typeof f!="function")throw new _r(r);return c=et(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(_R,"before");var Uv=rt(function(c,f,d){var T=b;if(d.length){var S=Qa(d,yl(Uv));T|=$}return aa(c,T,f,d,S)}),VR=rt(function(c,f,d){var T=b|I;if(d.length){var S=Qa(d,yl(VR));T|=$}return aa(f,T,c,d,S)});function wR(c,f,d){f=d?e:f;var T=aa(c,M,e,e,e,e,e,f);return T.placeholder=wR.placeholder,T}o(wR,"curry");function MR(c,f,d){f=d?e:f;var T=aa(c,G,e,e,e,e,e,f);return T.placeholder=MR.placeholder,T}o(MR,"curryRight");function kR(c,f,d){var T,S,C,L,N,k,z=0,J=!1,ne=!1,ge=!0;if(typeof c!="function")throw new _r(r);f=jr(f)||0,yn(d)&&(J=!!d.leading,ne="maxWait"in d,C=ne?Wn(jr(d.maxWait)||0,f):C,ge="trailing"in d?!!d.trailing:ge);function Oe(Nn){var so=T,ua=S;return T=S=e,z=Nn,L=c.apply(ua,so),L}o(Oe,"invokeFunc");function Me(Nn){return z=Nn,N=uu(ct,f),J?Oe(Nn):L}o(Me,"leadingEdge");function nt(Nn){var so=Nn-k,ua=Nn-z,iL=f-so;return ne?hi(iL,C-ua):iL}o(nt,"remainingWait");function ke(Nn){var so=Nn-k,ua=Nn-z;return k===e||so>=f||so<0||ne&&ua>=C}o(ke,"shouldInvoke");function ct(){var Nn=xg();if(ke(Nn))return gt(Nn);N=uu(ct,nt(Nn))}o(ct,"timerExpired");function gt(Nn){return N=e,ge&&T?Oe(Nn):(T=S=e,L)}o(gt,"trailingEdge");function gr(){N!==e&&QO(N),z=0,T=k=S=N=e}o(gr,"cancel");function Ni(){return N===e?L:gt(xg())}o(Ni,"flush");function mr(){var Nn=xg(),so=ke(Nn);if(T=arguments,S=this,k=Nn,so){if(N===e)return Me(k);if(ne)return QO(N),N=uu(ct,f),Oe(k)}return N===e&&(N=uu(ct,f)),L}return o(mr,"debounced"),mr.cancel=gr,mr.flush=Ni,mr}o(kR,"debounce");var uB=rt(function(c,f){return IO(c,1,f)}),pB=rt(function(c,f,d){return IO(c,jr(f)||0,d)});function dB(c){return aa(c,Re)}o(dB,"flip");function Cg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new _r(r);var d=o(function(){var T=arguments,S=f?f.apply(this,T):T[0],C=d.cache;if(C.has(S))return C.get(S);var L=c.apply(this,T);return d.cache=C.set(S,L)||C,L},"memoized");return d.cache=new(Cg.Cache||ra),d}o(Cg,"memoize"),Cg.Cache=ra;function Ig(c){if(typeof c!="function")throw new _r(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}o(Ig,"negate");function gB(c){return _R(2,c)}o(gB,"once");var mB=e$(function(c,f){f=f.length==1&&Ye(f[0])?pn(f[0],ur(Ve())):pn(ri(f,1),ur(Ve()));var d=f.length;return rt(function(T){for(var S=-1,C=hi(T.length,d);++S<C;)T[S]=f[S].call(this,T[S]);return fr(c,this,T)})}),$v=rt(function(c,f){var d=Qa(f,yl($v));return aa(c,$,e,f,d)}),jR=rt(function(c,f){var d=Qa(f,yl(jR));return aa(c,se,e,f,d)}),hB=sa(function(c,f){return aa(c,le,e,e,e,f)});function yB(c,f){if(typeof c!="function")throw new _r(r);return f=f===e?f:et(f),rt(c,f)}o(yB,"rest");function TB(c,f){if(typeof c!="function")throw new _r(r);return f=f==null?0:Wn(et(f),0),rt(function(d){var T=d[f],S=es(d,0,f);return T&&Xa(S,T),fr(c,this,S)})}o(TB,"spread");function vB(c,f,d){var T=!0,S=!0;if(typeof c!="function")throw new _r(r);return yn(d)&&(T="leading"in d?!!d.leading:T,S="trailing"in d?!!d.trailing:S),kR(c,f,{leading:T,maxWait:f,trailing:S})}o(vB,"throttle");function bB(c){return DR(c,1)}o(bB,"unary");function EB(c,f){return $v(xv(f),c)}o(EB,"wrap");function SB(){if(!arguments.length)return[];var c=arguments[0];return Ye(c)?c:[c]}o(SB,"castArray");function AB(c){return wr(c,m)}o(AB,"clone");function PB(c,f){return f=typeof f=="function"?f:e,wr(c,m,f)}o(PB,"cloneWith");function xB(c){return wr(c,p|m)}o(xB,"cloneDeep");function CB(c,f){return f=typeof f=="function"?f:e,wr(c,p|m,f)}o(CB,"cloneDeepWith");function IB(c,f){return f==null||CO(c,f,Yn(f))}o(IB,"conformsTo");function ao(c,f){return c===f||c!==c&&f!==f}o(ao,"eq");var OB=vg(dv),RB=vg(function(c,f){return c>=f}),cc=FO(function(){return arguments}())?FO:function(c){return En(c)&&Nt.call(c,"callee")&&!TO.call(c,"callee")},Ye=K.isArray,LB=ZI?ur(ZI):MU;function Wi(c){return c!=null&&Og(c.length)&&!la(c)}o(Wi,"isArrayLike");function Ln(c){return En(c)&&Wi(c)}o(Ln,"isArrayLikeObject");function NB(c){return c===!0||c===!1||En(c)&&Ri(c)==O}o(NB,"isBoolean");var ts=Gj||Jv,FB=eO?ur(eO):kU;function DB(c){return En(c)&&c.nodeType===1&&!pu(c)}o(DB,"isElement");function _B(c){if(c==null)return!0;if(Wi(c)&&(Ye(c)||typeof c=="string"||typeof c.splice=="function"||ts(c)||Tl(c)||cc(c)))return!c.length;var f=yi(c);if(f==ze||f==mn)return!c.size;if(fu(c))return!hv(c).length;for(var d in c)if(Nt.call(c,d))return!1;return!0}o(_B,"isEmpty");function VB(c,f){return su(c,f)}o(VB,"isEqual");function wB(c,f,d){d=typeof d=="function"?d:e;var T=d?d(c,f):e;return T===e?su(c,f,e,d):!!T}o(wB,"isEqualWith");function Bv(c){if(!En(c))return!1;var f=Ri(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!pu(c)}o(Bv,"isError");function MB(c){return typeof c=="number"&&bO(c)}o(MB,"isFinite");function la(c){if(!yn(c))return!1;var f=Ri(c);return f==_e||f==Lt||f==tt||f==ii}o(la,"isFunction");function UR(c){return typeof c=="number"&&c==et(c)}o(UR,"isInteger");function Og(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Le}o(Og,"isLength");function yn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(yn,"isObject");function En(c){return c!=null&&typeof c=="object"}o(En,"isObjectLike");var $R=tO?ur(tO):UU;function kB(c,f){return c===f||mv(c,f,Fv(f))}o(kB,"isMatch");function jB(c,f,d){return d=typeof d=="function"?d:e,mv(c,f,Fv(f),d)}o(jB,"isMatchWith");function UB(c){return BR(c)&&c!=+c}o(UB,"isNaN");function $B(c){if(A$(c))throw new Ke(i);return DO(c)}o($B,"isNative");function BB(c){return c===null}o(BB,"isNull");function HB(c){return c==null}o(HB,"isNil");function BR(c){return typeof c=="number"||En(c)&&Ri(c)==Mt}o(BR,"isNumber");function pu(c){if(!En(c)||Ri(c)!=fn)return!1;var f=tg(c);if(f===null)return!0;var d=Nt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&zd.call(d)==kj}o(pu,"isPlainObject");var Hv=nO?ur(nO):$U;function GB(c){return UR(c)&&c>=-Le&&c<=Le}o(GB,"isSafeInteger");var HR=iO?ur(iO):BU;function Rg(c){return typeof c=="string"||!Ye(c)&&En(c)&&Ri(c)==mi}o(Rg,"isString");function dr(c){return typeof c=="symbol"||En(c)&&Ri(c)==Ht}o(dr,"isSymbol");var Tl=rO?ur(rO):HU;function WB(c){return c===e}o(WB,"isUndefined");function KB(c){return En(c)&&yi(c)==Hi}o(KB,"isWeakMap");function XB(c){return En(c)&&Ri(c)==Xf}o(XB,"isWeakSet");var QB=vg(yv),qB=vg(function(c,f){return c<=f});function GR(c){if(!c)return[];if(Wi(c))return Rg(c)?ro(c):Gi(c);if(Zf&&c[Zf])return Cj(c[Zf]());var f=yi(c),d=f==ze?rv:f==mn?Qd:vl;return d(c)}o(GR,"toArray");function fa(c){if(!c)return c===0?c:0;if(c=jr(c),c===qt||c===-qt){var f=c<0?-1:1;return f*Tn}return c===c?c:0}o(fa,"toFinite");function et(c){var f=fa(c),d=f%1;return f===f?d?f-d:f:0}o(et,"toInteger");function WR(c){return c?rc(et(c),0,nn):0}o(WR,"toLength");function jr(c){if(typeof c=="number")return c;if(dr(c))return vn;if(yn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=yn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=fO(c);var d=R2.test(c);return d||N2.test(c)?lj(c.slice(2),d?2:8):O2.test(c)?vn:+c}o(jr,"toNumber");function KR(c){return No(c,Ki(c))}o(KR,"toPlainObject");function YB(c){return c?rc(et(c),-Le,Le):c===0?c:0}o(YB,"toSafeInteger");function It(c){return c==null?"":pr(c)}o(It,"toString");var zB=ml(function(c,f){if(fu(f)||Wi(f)){No(f,Yn(f),c);return}for(var d in f)Nt.call(f,d)&&ru(c,d,f[d])}),XR=ml(function(c,f){No(f,Ki(f),c)}),Lg=ml(function(c,f,d,T){No(f,Ki(f),c,T)}),JB=ml(function(c,f,d,T){No(f,Yn(f),c,T)}),ZB=sa(fv);function eH(c,f){var d=gl(c);return f==null?d:xO(d,f)}o(eH,"create");var tH=rt(function(c,f){c=Wt(c);var d=-1,T=f.length,S=T>2?f[2]:e;for(S&&Li(f[0],f[1],S)&&(T=1);++d<T;)for(var C=f[d],L=Ki(C),N=-1,k=L.length;++N<k;){var z=L[N],J=c[z];(J===e||ao(J,ul[z])&&!Nt.call(c,z))&&(c[z]=C[z])}return c}),nH=rt(function(c){return c.push(e,fR),fr(QR,e,c)});function iH(c,f){return aO(c,Ve(f,3),Lo)}o(iH,"findKey");function rH(c,f){return aO(c,Ve(f,3),pv)}o(rH,"findLastKey");function oH(c,f){return c==null?c:uv(c,Ve(f,3),Ki)}o(oH,"forIn");function aH(c,f){return c==null?c:LO(c,Ve(f,3),Ki)}o(aH,"forInRight");function sH(c,f){return c&&Lo(c,Ve(f,3))}o(sH,"forOwn");function cH(c,f){return c&&pv(c,Ve(f,3))}o(cH,"forOwnRight");function lH(c){return c==null?[]:ug(c,Yn(c))}o(lH,"functions");function fH(c){return c==null?[]:ug(c,Ki(c))}o(fH,"functionsIn");function Gv(c,f,d){var T=c==null?e:oc(c,f);return T===e?d:T}o(Gv,"get");function uH(c,f){return c!=null&&dR(c,f,DU)}o(uH,"has");function Wv(c,f){return c!=null&&dR(c,f,_U)}o(Wv,"hasIn");var pH=oR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Jd.call(f)),c[f]=d},Xv(Xi)),dH=oR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Jd.call(f)),Nt.call(c,f)?c[f].push(d):c[f]=[d]},Ve),gH=rt(au);function Yn(c){return Wi(c)?AO(c):hv(c)}o(Yn,"keys");function Ki(c){return Wi(c)?AO(c,!0):GU(c)}o(Ki,"keysIn");function mH(c,f){var d={};return f=Ve(f,3),Lo(c,function(T,S,C){oa(d,f(T,S,C),T)}),d}o(mH,"mapKeys");function hH(c,f){var d={};return f=Ve(f,3),Lo(c,function(T,S,C){oa(d,S,f(T,S,C))}),d}o(hH,"mapValues");var yH=ml(function(c,f,d){pg(c,f,d)}),QR=ml(function(c,f,d,T){pg(c,f,d,T)}),TH=sa(function(c,f){var d={};if(c==null)return d;var T=!1;f=pn(f,function(C){return C=Za(C,c),T||(T=C.length>1),C}),No(c,Lv(c),d),T&&(d=wr(d,p|g|m,u$));for(var S=f.length;S--;)Sv(d,f[S]);return d});function vH(c,f){return qR(c,Ig(Ve(f)))}o(vH,"omitBy");var bH=sa(function(c,f){return c==null?{}:KU(c,f)});function qR(c,f){if(c==null)return{};var d=pn(Lv(c),function(T){return[T]});return f=Ve(f),UO(c,d,function(T,S){return f(T,S[0])})}o(qR,"pickBy");function EH(c,f,d){f=Za(f,c);var T=-1,S=f.length;for(S||(S=1,c=e);++T<S;){var C=c==null?e:c[Fo(f[T])];C===e&&(T=S,C=d),c=la(C)?C.call(c):C}return c}o(EH,"result");function SH(c,f,d){return c==null?c:cu(c,f,d)}o(SH,"set");function AH(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:cu(c,f,d,T)}o(AH,"setWith");var YR=cR(Yn),zR=cR(Ki);function PH(c,f,d){var T=Ye(c),S=T||ts(c)||Tl(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;S?d=T?new C:[]:yn(c)?d=la(C)?gl(tg(c)):{}:d={}}return(S?Dr:Lo)(c,function(L,N,k){return f(d,L,N,k)}),d}o(PH,"transform");function xH(c,f){return c==null?!0:Sv(c,f)}o(xH,"unset");function CH(c,f,d){return c==null?c:WO(c,f,xv(d))}o(CH,"update");function IH(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:WO(c,f,xv(d),T)}o(IH,"updateWith");function vl(c){return c==null?[]:iv(c,Yn(c))}o(vl,"values");function OH(c){return c==null?[]:iv(c,Ki(c))}o(OH,"valuesIn");function RH(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=jr(d),d=d===d?d:0),f!==e&&(f=jr(f),f=f===f?f:0),rc(jr(c),f,d)}o(RH,"clamp");function LH(c,f,d){return f=fa(f),d===e?(d=f,f=0):d=fa(d),c=jr(c),VU(c,f,d)}o(LH,"inRange");function NH(c,f,d){if(d&&typeof d!="boolean"&&Li(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=fa(c),f===e?(f=c,c=0):f=fa(f)),c>f){var T=c;c=f,f=T}if(d||c%1||f%1){var S=EO();return hi(c+S*(f-c+cj("1e-"+((S+"").length-1))),f)}return vv(c,f)}o(NH,"random");var FH=hl(function(c,f,d){return f=f.toLowerCase(),c+(d?JR(f):f)});function JR(c){return Kv(It(c).toLowerCase())}o(JR,"capitalize");function ZR(c){return c=It(c),c&&c.replace(D2,Ej).replace(J2,"")}o(ZR,"deburr");function DH(c,f,d){c=It(c),f=pr(f);var T=c.length;d=d===e?T:rc(et(d),0,T);var S=d;return d-=f.length,d>=0&&c.slice(d,S)==f}o(DH,"endsWith");function _H(c){return c=It(c),c&&Ce.test(c)?c.replace(Te,Sj):c}o(_H,"escape");function VH(c){return c=It(c),c&&T2.test(c)?c.replace(zf,"\\$&"):c}o(VH,"escapeRegExp");var wH=hl(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),MH=hl(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),kH=nR("toLowerCase");function jH(c,f,d){c=It(c),f=et(f);var T=f?fl(c):0;if(!f||T>=f)return c;var S=(f-T)/2;return Tg(og(S),d)+c+Tg(rg(S),d)}o(jH,"pad");function UH(c,f,d){c=It(c),f=et(f);var T=f?fl(c):0;return f&&T<f?c+Tg(f-T,d):c}o(UH,"padEnd");function $H(c,f,d){c=It(c),f=et(f);var T=f?fl(c):0;return f&&T<f?Tg(f-T,d)+c:c}o($H,"padStart");function BH(c,f,d){return d||f==null?f=0:f&&(f=+f),Qj(It(c).replace(BT,""),f||0)}o(BH,"parseInt");function HH(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=et(f),bv(It(c),f)}o(HH,"repeat");function GH(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(GH,"replace");var WH=hl(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function KH(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?nn:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!Hv(f))&&(f=pr(f),!f&&ll(c))?es(ro(c),0,d):c.split(f,d)):[]}o(KH,"split");var XH=hl(function(c,f,d){return c+(d?" ":"")+Kv(f)});function QH(c,f,d){return c=It(c),d=d==null?0:rc(et(d),0,c.length),f=pr(f),c.slice(d,d+f.length)==f}o(QH,"startsWith");function qH(c,f,d){var T=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=It(c),f=Lg({},f,T,lR);var S=Lg({},f.imports,T.imports,lR),C=Yn(S),L=iv(S,C),N,k,z=0,J=f.interpolate||Hd,ne="__p += '",ge=ov((f.escape||Hd).source+"|"+J.source+"|"+(J===un?I2:Hd).source+"|"+(f.evaluate||Hd).source+"|$","g"),Oe="//# sourceURL="+(Nt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ij+"]")+`
|
|
272
|
-
`;c.replace(ge,function(ke,ct,gt,gr,Ni,mr){return gt||(gt=gr),ne+=c.slice(z,mr).replace(
|
|
271
|
+
`)}o(b$,"insertWrapDetails");function E$(c){return Ye(c)||cc(c)||!!(bO&&c&&c[bO])}o(E$,"isFlattenable");function ca(c,f){var d=typeof c;return f=f??Le,!!f&&(d=="number"||d!="symbol"&&D2.test(c))&&c>-1&&c%1==0&&c<f}o(ca,"isIndex");function Li(c,f,d){if(!yn(d))return!1;var T=typeof f;return(T=="number"?Wi(d)&&ca(f,d.length):T=="string"&&f in d)?so(d[f],c):!1}o(Li,"isIterateeCall");function _v(c,f){if(Ye(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||dr(c)?!0:Bd.test(c)||!lr.test(c)||f!=null&&c in Wt(f)}o(_v,"isKey");function S$(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(S$,"isKeyable");function Vv(c){var f=bg(c),d=P[f];if(typeof d!="function"||!(f in dt.prototype))return!1;if(c===d)return!0;var T=Nv(d);return!!T&&c===T[0]}o(Vv,"isLaziable");function A$(c){return!!hO&&hO in c}o(A$,"isMasked");var P$=Yd?la:Jv;function fu(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||ul;return c===d}o(fu,"isPrototype");function hR(c){return c===c&&!yn(c)}o(hR,"isStrictComparable");function yR(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Wt(d))}}o(yR,"matchesStrictComparable");function x$(c){var f=Cg(c,function(T){return d.size===l&&d.clear(),T}),d=f.cache;return f}o(x$,"memoizeCapped");function C$(c,f){var d=c[1],T=f[1],S=d|T,C=S<(b|I|te),L=T==te&&d==j||T==te&&d==le&&c[7].length<=f[8]||T==(te|le)&&f[7].length<=f[8]&&d==j;if(!(C||L))return c;T&b&&(c[2]=f[2],S|=d&b?0:N);var F=f[3];if(F){var M=c[3];c[3]=M?ZO(M,F,f[4]):F,c[4]=M?Qa(c[3],u):f[4]}return F=f[5],F&&(M=c[5],c[5]=M?eR(M,F,f[6]):F,c[6]=M?Qa(c[5],u):f[6]),F=f[7],F&&(c[7]=F),T&te&&(c[8]=c[8]==null?f[8]:hi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=S,c}o(C$,"mergeData");function I$(c){var f=[];if(c!=null)for(var d in Wt(c))f.push(d);return f}o(I$,"nativeKeysIn");function O$(c){return Jd.call(c)}o(O$,"objectToString");function TR(c,f,d){return f=Wn(f===e?c.length-1:f,0),function(){for(var T=arguments,S=-1,C=Wn(T.length-f,0),L=K(C);++S<C;)L[S]=T[f+S];S=-1;for(var F=K(f+1);++S<f;)F[S]=T[S];return F[f]=d(L),fr(c,this,F)}}o(TR,"overRest");function vR(c,f){return f.length<2?c:oc(c,Mr(f,0,-1))}o(vR,"parent");function R$(c,f){for(var d=c.length,T=hi(f.length,d),S=Gi(c);T--;){var C=f[T];c[T]=ca(C,d)?S[C]:e}return c}o(R$,"reorder");function wv(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(wv,"safeGet");var bR=SR(HO),uu=Gj||function(c,f){return qn.setTimeout(c,f)},Mv=SR(JU);function ER(c,f,d){var T=f+"";return Mv(c,b$(T,L$(y$(T),d)))}o(ER,"setWrapToString");function SR(c){var f=0,d=0;return function(){var T=Qj(),S=qe-(T-d);if(d=T,S>0){if(++f>=$e)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(SR,"shortOut");function Sg(c,f){var d=-1,T=c.length,S=T-1;for(f=f===e?T:f;++d<f;){var C=vv(d,S),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(Sg,"shuffleSelf");var AR=x$(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace($T,function(d,T,S,C){f.push(S?C.replace(I2,"$1"):T||d)}),f});function Do(c){if(typeof c=="string"||dr(c))return c;var f=c+"";return f=="0"&&1/c==-qt?"-0":f}o(Do,"toKey");function sc(c){if(c!=null){try{return zd.call(c)}catch{}try{return c+""}catch{}}return""}o(sc,"toSource");function L$(c,f){return Dr(Ie,function(d){var T="_."+d[0];f&d[1]&&!Kd(c,T)&&c.push(T)}),c.sort()}o(L$,"updateWrapDetails");function PR(c){if(c instanceof dt)return c.clone();var f=new Vr(c.__wrapped__,c.__chain__);return f.__actions__=Gi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(PR,"wrapperClone");function N$(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Wn(et(f),0);var T=c==null?0:c.length;if(!T||f<1)return[];for(var S=0,C=0,L=K(rg(T/f));S<T;)L[C++]=Mr(c,S,S+=f);return L}o(N$,"chunk");function F$(c){for(var f=-1,d=c==null?0:c.length,T=0,S=[];++f<d;){var C=c[f];C&&(S[T++]=C)}return S}o(F$,"compact");function D$(){var c=arguments.length;if(!c)return[];for(var f=K(c-1),d=arguments[0],T=c;T--;)f[T-1]=arguments[T];return Xa(Ye(d)?Gi(d):[d],ri(f,1))}o(D$,"concat");var _$=rt(function(c,f){return Ln(c)?ou(c,ri(f,1,Ln,!0)):[]}),V$=rt(function(c,f){var d=kr(f);return Ln(d)&&(d=e),Ln(c)?ou(c,ri(f,1,Ln,!0),Ve(d,2)):[]}),w$=rt(function(c,f){var d=kr(f);return Ln(d)&&(d=e),Ln(c)?ou(c,ri(f,1,Ln,!0),e,d):[]});function M$(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:et(f),Mr(c,f<0?0:f,T)):[]}o(M$,"drop");function k$(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:et(f),f=T-f,Mr(c,0,f<0?0:f)):[]}o(k$,"dropRight");function j$(c,f){return c&&c.length?gg(c,Ve(f,3),!0,!0):[]}o(j$,"dropRightWhile");function U$(c,f){return c&&c.length?gg(c,Ve(f,3),!0):[]}o(U$,"dropWhile");function $$(c,f,d,T){var S=c==null?0:c.length;return S?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,T=S),DU(c,f,d,T)):[]}o($$,"fill");function xR(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=d==null?0:et(d);return S<0&&(S=Wn(T+S,0)),Xd(c,Ve(f,3),S)}o(xR,"findIndex");function CR(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=T-1;return d!==e&&(S=et(d),S=d<0?Wn(T+S,0):hi(S,T-1)),Xd(c,Ve(f,3),S,!0)}o(CR,"findLastIndex");function IR(c){var f=c==null?0:c.length;return f?ri(c,1):[]}o(IR,"flatten");function B$(c){var f=c==null?0:c.length;return f?ri(c,qt):[]}o(B$,"flattenDeep");function H$(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:et(f),ri(c,f)):[]}o(H$,"flattenDepth");function G$(c){for(var f=-1,d=c==null?0:c.length,T={};++f<d;){var S=c[f];T[S[0]]=S[1]}return T}o(G$,"fromPairs");function OR(c){return c&&c.length?c[0]:e}o(OR,"head");function W$(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=d==null?0:et(d);return S<0&&(S=Wn(T+S,0)),cl(c,f,S)}o(W$,"indexOf");function K$(c){var f=c==null?0:c.length;return f?Mr(c,0,-1):[]}o(K$,"initial");var X$=rt(function(c){var f=pn(c,Pv);return f.length&&f[0]===c[0]?gv(f):[]}),Q$=rt(function(c){var f=kr(c),d=pn(c,Pv);return f===kr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?gv(d,Ve(f,2)):[]}),q$=rt(function(c){var f=kr(c),d=pn(c,Pv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?gv(d,e,f):[]});function Y$(c,f){return c==null?"":Kj.call(c,f)}o(Y$,"join");function kr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(kr,"last");function z$(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var S=T;return d!==e&&(S=et(d),S=S<0?Wn(T+S,0):hi(S,T-1)),f===f?Lj(c,f,S):Xd(c,cO,S,!0)}o(z$,"lastIndexOf");function J$(c,f){return c&&c.length?jO(c,et(f)):e}o(J$,"nth");var Z$=rt(RR);function RR(c,f){return c&&c.length&&f&&f.length?Tv(c,f):c}o(RR,"pullAll");function e4(c,f,d){return c&&c.length&&f&&f.length?Tv(c,f,Ve(d,2)):c}o(e4,"pullAllBy");function t4(c,f,d){return c&&c.length&&f&&f.length?Tv(c,f,e,d):c}o(t4,"pullAllWith");var n4=sa(function(c,f){var d=c==null?0:c.length,T=fv(c,f);return BO(c,pn(f,function(S){return ca(S,d)?+S:S}).sort(JO)),T});function i4(c,f){var d=[];if(!(c&&c.length))return d;var T=-1,S=[],C=c.length;for(f=Ve(f,3);++T<C;){var L=c[T];f(L,T,c)&&(d.push(L),S.push(T))}return BO(c,S),d}o(i4,"remove");function kv(c){return c==null?c:Yj.call(c)}o(kv,"reverse");function r4(c,f,d){var T=c==null?0:c.length;return T?(d&&typeof d!="number"&&Li(c,f,d)?(f=0,d=T):(f=f==null?0:et(f),d=d===e?T:et(d)),Mr(c,f,d)):[]}o(r4,"slice");function o4(c,f){return dg(c,f)}o(o4,"sortedIndex");function a4(c,f,d){return Ev(c,f,Ve(d,2))}o(a4,"sortedIndexBy");function s4(c,f){var d=c==null?0:c.length;if(d){var T=dg(c,f);if(T<d&&so(c[T],f))return T}return-1}o(s4,"sortedIndexOf");function c4(c,f){return dg(c,f,!0)}o(c4,"sortedLastIndex");function l4(c,f,d){return Ev(c,f,Ve(d,2),!0)}o(l4,"sortedLastIndexBy");function f4(c,f){var d=c==null?0:c.length;if(d){var T=dg(c,f,!0)-1;if(so(c[T],f))return T}return-1}o(f4,"sortedLastIndexOf");function u4(c){return c&&c.length?GO(c):[]}o(u4,"sortedUniq");function p4(c,f){return c&&c.length?GO(c,Ve(f,2)):[]}o(p4,"sortedUniqBy");function d4(c){var f=c==null?0:c.length;return f?Mr(c,1,f):[]}o(d4,"tail");function g4(c,f,d){return c&&c.length?(f=d||f===e?1:et(f),Mr(c,0,f<0?0:f)):[]}o(g4,"take");function m4(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:et(f),f=T-f,Mr(c,f<0?0:f,T)):[]}o(m4,"takeRight");function h4(c,f){return c&&c.length?gg(c,Ve(f,3),!1,!0):[]}o(h4,"takeRightWhile");function y4(c,f){return c&&c.length?gg(c,Ve(f,3)):[]}o(y4,"takeWhile");var T4=rt(function(c){return Ja(ri(c,1,Ln,!0))}),b4=rt(function(c){var f=kr(c);return Ln(f)&&(f=e),Ja(ri(c,1,Ln,!0),Ve(f,2))}),E4=rt(function(c){var f=kr(c);return f=typeof f=="function"?f:e,Ja(ri(c,1,Ln,!0),e,f)});function S4(c){return c&&c.length?Ja(c):[]}o(S4,"uniq");function A4(c,f){return c&&c.length?Ja(c,Ve(f,2)):[]}o(A4,"uniqBy");function P4(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ja(c,e,f):[]}o(P4,"uniqWith");function jv(c){if(!(c&&c.length))return[];var f=0;return c=Ka(c,function(d){if(Ln(d))return f=Wn(d.length,f),!0}),nv(f,function(d){return pn(c,ZT(d))})}o(jv,"unzip");function LR(c,f){if(!(c&&c.length))return[];var d=jv(c);return f==null?d:pn(d,function(T){return fr(f,e,T)})}o(LR,"unzipWith");var x4=rt(function(c,f){return Ln(c)?ou(c,f):[]}),C4=rt(function(c){return Av(Ka(c,Ln))}),I4=rt(function(c){var f=kr(c);return Ln(f)&&(f=e),Av(Ka(c,Ln),Ve(f,2))}),O4=rt(function(c){var f=kr(c);return f=typeof f=="function"?f:e,Av(Ka(c,Ln),e,f)}),R4=rt(jv);function L4(c,f){return QO(c||[],f||[],ru)}o(L4,"zipObject");function N4(c,f){return QO(c||[],f||[],cu)}o(N4,"zipObjectDeep");var F4=rt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,LR(c,d)});function NR(c){var f=P(c);return f.__chain__=!0,f}o(NR,"chain");function D4(c,f){return f(c),c}o(D4,"tap");function Ag(c,f){return f(c)}o(Ag,"thru");var _4=sa(function(c){var f=c.length,d=f?c[0]:0,T=this.__wrapped__,S=o(function(C){return fv(C,c)},"interceptor");return f>1||this.__actions__.length||!(T instanceof dt)||!ca(d)?this.thru(S):(T=T.slice(d,+d+(f?1:0)),T.__actions__.push({func:Ag,args:[S],thisArg:e}),new Vr(T,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function V4(){return NR(this)}o(V4,"wrapperChain");function w4(){return new Vr(this.value(),this.__chain__)}o(w4,"wrapperCommit");function M4(){this.__values__===e&&(this.__values__=WR(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(M4,"wrapperNext");function k4(){return this}o(k4,"wrapperToIterator");function j4(c){for(var f,d=this;d instanceof cg;){var T=PR(d);T.__index__=0,T.__values__=e,f?S.__wrapped__=T:f=T;var S=T;d=d.__wrapped__}return S.__wrapped__=c,f}o(j4,"wrapperPlant");function U4(){var c=this.__wrapped__;if(c instanceof dt){var f=c;return this.__actions__.length&&(f=new dt(this)),f=f.reverse(),f.__actions__.push({func:Ag,args:[kv],thisArg:e}),new Vr(f,this.__chain__)}return this.thru(kv)}o(U4,"wrapperReverse");function $4(){return XO(this.__wrapped__,this.__actions__)}o($4,"wrapperValue");var B4=mg(function(c,f,d){Ft.call(c,d)?++c[d]:oa(c,d,1)});function H4(c,f,d){var T=Ye(c)?aO:FU;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(H4,"every");function G4(c,f){var d=Ye(c)?Ka:LO;return d(c,Ve(f,3))}o(G4,"filter");var W4=rR(xR),K4=rR(CR);function X4(c,f){return ri(Pg(c,f),1)}o(X4,"flatMap");function Q4(c,f){return ri(Pg(c,f),qt)}o(Q4,"flatMapDeep");function q4(c,f,d){return d=d===e?1:et(d),ri(Pg(c,f),d)}o(q4,"flatMapDepth");function FR(c,f){var d=Ye(c)?Dr:za;return d(c,Ve(f,3))}o(FR,"forEach");function DR(c,f){var d=Ye(c)?dj:RO;return d(c,Ve(f,3))}o(DR,"forEachRight");var Y4=mg(function(c,f,d){Ft.call(c,d)?c[d].push(f):oa(c,d,[f])});function z4(c,f,d,T){c=Wi(c)?c:vl(c),d=d&&!T?et(d):0;var S=c.length;return d<0&&(d=Wn(S+d,0)),Rg(c)?d<=S&&c.indexOf(f,d)>-1:!!S&&cl(c,f,d)>-1}o(z4,"includes");var J4=rt(function(c,f,d){var T=-1,S=typeof f=="function",C=Wi(c)?K(c.length):[];return za(c,function(L){C[++T]=S?fr(f,L,d):au(L,f,d)}),C}),Z4=mg(function(c,f,d){oa(c,d,f)});function Pg(c,f){var d=Ye(c)?pn:wO;return d(c,Ve(f,3))}o(Pg,"map");function eB(c,f,d,T){return c==null?[]:(Ye(f)||(f=f==null?[]:[f]),d=T?e:d,Ye(d)||(d=d==null?[]:[d]),UO(c,f,d))}o(eB,"orderBy");var tB=mg(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function nB(c,f,d){var T=Ye(c)?zT:fO,S=arguments.length<3;return T(c,Ve(f,4),d,S,za)}o(nB,"reduce");function iB(c,f,d){var T=Ye(c)?gj:fO,S=arguments.length<3;return T(c,Ve(f,4),d,S,RO)}o(iB,"reduceRight");function rB(c,f){var d=Ye(c)?Ka:LO;return d(c,Ig(Ve(f,3)))}o(rB,"reject");function oB(c){var f=Ye(c)?xO:YU;return f(c)}o(oB,"sample");function aB(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=et(f);var T=Ye(c)?IU:zU;return T(c,f)}o(aB,"sampleSize");function sB(c){var f=Ye(c)?OU:ZU;return f(c)}o(sB,"shuffle");function cB(c){if(c==null)return 0;if(Wi(c))return Rg(c)?fl(c):c.length;var f=yi(c);return f==ze||f==mn?c.size:hv(c).length}o(cB,"size");function lB(c,f,d){var T=Ye(c)?JT:e$;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(lB,"some");var fB=rt(function(c,f){if(c==null)return[];var d=f.length;return d>1&&Li(c,f[0],f[1])?f=[]:d>2&&Li(f[0],f[1],f[2])&&(f=[f[0]]),UO(c,ri(f,1),[])}),xg=Hj||function(){return qn.Date.now()};function uB(c,f){if(typeof f!="function")throw new _r(r);return c=et(c),function(){if(--c<1)return f.apply(this,arguments)}}o(uB,"after");function _R(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,aa(c,te,e,e,e,e,f)}o(_R,"ary");function VR(c,f){var d;if(typeof f!="function")throw new _r(r);return c=et(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(VR,"before");var Uv=rt(function(c,f,d){var T=b;if(d.length){var S=Qa(d,yl(Uv));T|=$}return aa(c,T,f,d,S)}),wR=rt(function(c,f,d){var T=b|I;if(d.length){var S=Qa(d,yl(wR));T|=$}return aa(f,T,c,d,S)});function MR(c,f,d){f=d?e:f;var T=aa(c,j,e,e,e,e,e,f);return T.placeholder=MR.placeholder,T}o(MR,"curry");function kR(c,f,d){f=d?e:f;var T=aa(c,G,e,e,e,e,e,f);return T.placeholder=kR.placeholder,T}o(kR,"curryRight");function jR(c,f,d){var T,S,C,L,F,M,z=0,J=!1,ne=!1,ge=!0;if(typeof c!="function")throw new _r(r);f=jr(f)||0,yn(d)&&(J=!!d.leading,ne="maxWait"in d,C=ne?Wn(jr(d.maxWait)||0,f):C,ge="trailing"in d?!!d.trailing:ge);function Oe(Nn){var co=T,ua=S;return T=S=e,z=Nn,L=c.apply(ua,co),L}o(Oe,"invokeFunc");function Me(Nn){return z=Nn,F=uu(ct,f),J?Oe(Nn):L}o(Me,"leadingEdge");function nt(Nn){var co=Nn-M,ua=Nn-z,rL=f-co;return ne?hi(rL,C-ua):rL}o(nt,"remainingWait");function ke(Nn){var co=Nn-M,ua=Nn-z;return M===e||co>=f||co<0||ne&&ua>=C}o(ke,"shouldInvoke");function ct(){var Nn=xg();if(ke(Nn))return gt(Nn);F=uu(ct,nt(Nn))}o(ct,"timerExpired");function gt(Nn){return F=e,ge&&T?Oe(Nn):(T=S=e,L)}o(gt,"trailingEdge");function gr(){F!==e&&qO(F),z=0,T=M=S=F=e}o(gr,"cancel");function Ni(){return F===e?L:gt(xg())}o(Ni,"flush");function mr(){var Nn=xg(),co=ke(Nn);if(T=arguments,S=this,M=Nn,co){if(F===e)return Me(M);if(ne)return qO(F),F=uu(ct,f),Oe(M)}return F===e&&(F=uu(ct,f)),L}return o(mr,"debounced"),mr.cancel=gr,mr.flush=Ni,mr}o(jR,"debounce");var pB=rt(function(c,f){return OO(c,1,f)}),dB=rt(function(c,f,d){return OO(c,jr(f)||0,d)});function gB(c){return aa(c,Re)}o(gB,"flip");function Cg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new _r(r);var d=o(function(){var T=arguments,S=f?f.apply(this,T):T[0],C=d.cache;if(C.has(S))return C.get(S);var L=c.apply(this,T);return d.cache=C.set(S,L)||C,L},"memoized");return d.cache=new(Cg.Cache||ra),d}o(Cg,"memoize"),Cg.Cache=ra;function Ig(c){if(typeof c!="function")throw new _r(r);return function(){var f=arguments;switch(f.length){case 0:return!c.call(this);case 1:return!c.call(this,f[0]);case 2:return!c.call(this,f[0],f[1]);case 3:return!c.call(this,f[0],f[1],f[2])}return!c.apply(this,f)}}o(Ig,"negate");function mB(c){return VR(2,c)}o(mB,"once");var hB=t$(function(c,f){f=f.length==1&&Ye(f[0])?pn(f[0],ur(Ve())):pn(ri(f,1),ur(Ve()));var d=f.length;return rt(function(T){for(var S=-1,C=hi(T.length,d);++S<C;)T[S]=f[S].call(this,T[S]);return fr(c,this,T)})}),$v=rt(function(c,f){var d=Qa(f,yl($v));return aa(c,$,e,f,d)}),UR=rt(function(c,f){var d=Qa(f,yl(UR));return aa(c,se,e,f,d)}),yB=sa(function(c,f){return aa(c,le,e,e,e,f)});function TB(c,f){if(typeof c!="function")throw new _r(r);return f=f===e?f:et(f),rt(c,f)}o(TB,"rest");function vB(c,f){if(typeof c!="function")throw new _r(r);return f=f==null?0:Wn(et(f),0),rt(function(d){var T=d[f],S=es(d,0,f);return T&&Xa(S,T),fr(c,this,S)})}o(vB,"spread");function bB(c,f,d){var T=!0,S=!0;if(typeof c!="function")throw new _r(r);return yn(d)&&(T="leading"in d?!!d.leading:T,S="trailing"in d?!!d.trailing:S),jR(c,f,{leading:T,maxWait:f,trailing:S})}o(bB,"throttle");function EB(c){return _R(c,1)}o(EB,"unary");function SB(c,f){return $v(xv(f),c)}o(SB,"wrap");function AB(){if(!arguments.length)return[];var c=arguments[0];return Ye(c)?c:[c]}o(AB,"castArray");function PB(c){return wr(c,m)}o(PB,"clone");function xB(c,f){return f=typeof f=="function"?f:e,wr(c,m,f)}o(xB,"cloneWith");function CB(c){return wr(c,p|m)}o(CB,"cloneDeep");function IB(c,f){return f=typeof f=="function"?f:e,wr(c,p|m,f)}o(IB,"cloneDeepWith");function OB(c,f){return f==null||IO(c,f,Yn(f))}o(OB,"conformsTo");function so(c,f){return c===f||c!==c&&f!==f}o(so,"eq");var RB=vg(dv),LB=vg(function(c,f){return c>=f}),cc=DO((function(){return arguments})())?DO:function(c){return En(c)&&Ft.call(c,"callee")&&!vO.call(c,"callee")},Ye=K.isArray,NB=eO?ur(eO):kU;function Wi(c){return c!=null&&Og(c.length)&&!la(c)}o(Wi,"isArrayLike");function Ln(c){return En(c)&&Wi(c)}o(Ln,"isArrayLikeObject");function FB(c){return c===!0||c===!1||En(c)&&Ri(c)==O}o(FB,"isBoolean");var ts=Wj||Jv,DB=tO?ur(tO):jU;function _B(c){return En(c)&&c.nodeType===1&&!pu(c)}o(_B,"isElement");function VB(c){if(c==null)return!0;if(Wi(c)&&(Ye(c)||typeof c=="string"||typeof c.splice=="function"||ts(c)||Tl(c)||cc(c)))return!c.length;var f=yi(c);if(f==ze||f==mn)return!c.size;if(fu(c))return!hv(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(VB,"isEmpty");function wB(c,f){return su(c,f)}o(wB,"isEqual");function MB(c,f,d){d=typeof d=="function"?d:e;var T=d?d(c,f):e;return T===e?su(c,f,e,d):!!T}o(MB,"isEqualWith");function Bv(c){if(!En(c))return!1;var f=Ri(c);return f==V||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!pu(c)}o(Bv,"isError");function kB(c){return typeof c=="number"&&EO(c)}o(kB,"isFinite");function la(c){if(!yn(c))return!1;var f=Ri(c);return f==_e||f==Nt||f==tt||f==ii}o(la,"isFunction");function $R(c){return typeof c=="number"&&c==et(c)}o($R,"isInteger");function Og(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Le}o(Og,"isLength");function yn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(yn,"isObject");function En(c){return c!=null&&typeof c=="object"}o(En,"isObjectLike");var BR=nO?ur(nO):$U;function jB(c,f){return c===f||mv(c,f,Fv(f))}o(jB,"isMatch");function UB(c,f,d){return d=typeof d=="function"?d:e,mv(c,f,Fv(f),d)}o(UB,"isMatchWith");function $B(c){return HR(c)&&c!=+c}o($B,"isNaN");function BB(c){if(P$(c))throw new Ke(i);return _O(c)}o(BB,"isNative");function HB(c){return c===null}o(HB,"isNull");function GB(c){return c==null}o(GB,"isNil");function HR(c){return typeof c=="number"||En(c)&&Ri(c)==Mt}o(HR,"isNumber");function pu(c){if(!En(c)||Ri(c)!=fn)return!1;var f=tg(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&zd.call(d)==jj}o(pu,"isPlainObject");var Hv=iO?ur(iO):BU;function WB(c){return $R(c)&&c>=-Le&&c<=Le}o(WB,"isSafeInteger");var GR=rO?ur(rO):HU;function Rg(c){return typeof c=="string"||!Ye(c)&&En(c)&&Ri(c)==mi}o(Rg,"isString");function dr(c){return typeof c=="symbol"||En(c)&&Ri(c)==Ht}o(dr,"isSymbol");var Tl=oO?ur(oO):GU;function KB(c){return c===e}o(KB,"isUndefined");function XB(c){return En(c)&&yi(c)==Hi}o(XB,"isWeakMap");function QB(c){return En(c)&&Ri(c)==Xf}o(QB,"isWeakSet");var qB=vg(yv),YB=vg(function(c,f){return c<=f});function WR(c){if(!c)return[];if(Wi(c))return Rg(c)?oo(c):Gi(c);if(Zf&&c[Zf])return Ij(c[Zf]());var f=yi(c),d=f==ze?rv:f==mn?Qd:vl;return d(c)}o(WR,"toArray");function fa(c){if(!c)return c===0?c:0;if(c=jr(c),c===qt||c===-qt){var f=c<0?-1:1;return f*Tn}return c===c?c:0}o(fa,"toFinite");function et(c){var f=fa(c),d=f%1;return f===f?d?f-d:f:0}o(et,"toInteger");function KR(c){return c?rc(et(c),0,rn):0}o(KR,"toLength");function jr(c){if(typeof c=="number")return c;if(dr(c))return vn;if(yn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=yn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=uO(c);var d=L2.test(c);return d||F2.test(c)?fj(c.slice(2),d?2:8):R2.test(c)?vn:+c}o(jr,"toNumber");function XR(c){return Fo(c,Ki(c))}o(XR,"toPlainObject");function zB(c){return c?rc(et(c),-Le,Le):c===0?c:0}o(zB,"toSafeInteger");function It(c){return c==null?"":pr(c)}o(It,"toString");var JB=ml(function(c,f){if(fu(f)||Wi(f)){Fo(f,Yn(f),c);return}for(var d in f)Ft.call(f,d)&&ru(c,d,f[d])}),QR=ml(function(c,f){Fo(f,Ki(f),c)}),Lg=ml(function(c,f,d,T){Fo(f,Ki(f),c,T)}),ZB=ml(function(c,f,d,T){Fo(f,Yn(f),c,T)}),eH=sa(fv);function tH(c,f){var d=gl(c);return f==null?d:CO(d,f)}o(tH,"create");var nH=rt(function(c,f){c=Wt(c);var d=-1,T=f.length,S=T>2?f[2]:e;for(S&&Li(f[0],f[1],S)&&(T=1);++d<T;)for(var C=f[d],L=Ki(C),F=-1,M=L.length;++F<M;){var z=L[F],J=c[z];(J===e||so(J,ul[z])&&!Ft.call(c,z))&&(c[z]=C[z])}return c}),iH=rt(function(c){return c.push(e,uR),fr(qR,e,c)});function rH(c,f){return sO(c,Ve(f,3),No)}o(rH,"findKey");function oH(c,f){return sO(c,Ve(f,3),pv)}o(oH,"findLastKey");function aH(c,f){return c==null?c:uv(c,Ve(f,3),Ki)}o(aH,"forIn");function sH(c,f){return c==null?c:NO(c,Ve(f,3),Ki)}o(sH,"forInRight");function cH(c,f){return c&&No(c,Ve(f,3))}o(cH,"forOwn");function lH(c,f){return c&&pv(c,Ve(f,3))}o(lH,"forOwnRight");function fH(c){return c==null?[]:ug(c,Yn(c))}o(fH,"functions");function uH(c){return c==null?[]:ug(c,Ki(c))}o(uH,"functionsIn");function Gv(c,f,d){var T=c==null?e:oc(c,f);return T===e?d:T}o(Gv,"get");function pH(c,f){return c!=null&&gR(c,f,_U)}o(pH,"has");function Wv(c,f){return c!=null&&gR(c,f,VU)}o(Wv,"hasIn");var dH=aR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Jd.call(f)),c[f]=d},Xv(Xi)),gH=aR(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Jd.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),mH=rt(au);function Yn(c){return Wi(c)?PO(c):hv(c)}o(Yn,"keys");function Ki(c){return Wi(c)?PO(c,!0):WU(c)}o(Ki,"keysIn");function hH(c,f){var d={};return f=Ve(f,3),No(c,function(T,S,C){oa(d,f(T,S,C),T)}),d}o(hH,"mapKeys");function yH(c,f){var d={};return f=Ve(f,3),No(c,function(T,S,C){oa(d,S,f(T,S,C))}),d}o(yH,"mapValues");var TH=ml(function(c,f,d){pg(c,f,d)}),qR=ml(function(c,f,d,T){pg(c,f,d,T)}),vH=sa(function(c,f){var d={};if(c==null)return d;var T=!1;f=pn(f,function(C){return C=Za(C,c),T||(T=C.length>1),C}),Fo(c,Lv(c),d),T&&(d=wr(d,p|g|m,p$));for(var S=f.length;S--;)Sv(d,f[S]);return d});function bH(c,f){return YR(c,Ig(Ve(f)))}o(bH,"omitBy");var EH=sa(function(c,f){return c==null?{}:XU(c,f)});function YR(c,f){if(c==null)return{};var d=pn(Lv(c),function(T){return[T]});return f=Ve(f),$O(c,d,function(T,S){return f(T,S[0])})}o(YR,"pickBy");function SH(c,f,d){f=Za(f,c);var T=-1,S=f.length;for(S||(S=1,c=e);++T<S;){var C=c==null?e:c[Do(f[T])];C===e&&(T=S,C=d),c=la(C)?C.call(c):C}return c}o(SH,"result");function AH(c,f,d){return c==null?c:cu(c,f,d)}o(AH,"set");function PH(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:cu(c,f,d,T)}o(PH,"setWith");var zR=lR(Yn),JR=lR(Ki);function xH(c,f,d){var T=Ye(c),S=T||ts(c)||Tl(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;S?d=T?new C:[]:yn(c)?d=la(C)?gl(tg(c)):{}:d={}}return(S?Dr:No)(c,function(L,F,M){return f(d,L,F,M)}),d}o(xH,"transform");function CH(c,f){return c==null?!0:Sv(c,f)}o(CH,"unset");function IH(c,f,d){return c==null?c:KO(c,f,xv(d))}o(IH,"update");function OH(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:KO(c,f,xv(d),T)}o(OH,"updateWith");function vl(c){return c==null?[]:iv(c,Yn(c))}o(vl,"values");function RH(c){return c==null?[]:iv(c,Ki(c))}o(RH,"valuesIn");function LH(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=jr(d),d=d===d?d:0),f!==e&&(f=jr(f),f=f===f?f:0),rc(jr(c),f,d)}o(LH,"clamp");function NH(c,f,d){return f=fa(f),d===e?(d=f,f=0):d=fa(d),c=jr(c),wU(c,f,d)}o(NH,"inRange");function FH(c,f,d){if(d&&typeof d!="boolean"&&Li(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=fa(c),f===e?(f=c,c=0):f=fa(f)),c>f){var T=c;c=f,f=T}if(d||c%1||f%1){var S=SO();return hi(c+S*(f-c+lj("1e-"+((S+"").length-1))),f)}return vv(c,f)}o(FH,"random");var DH=hl(function(c,f,d){return f=f.toLowerCase(),c+(d?ZR(f):f)});function ZR(c){return Kv(It(c).toLowerCase())}o(ZR,"capitalize");function eL(c){return c=It(c),c&&c.replace(_2,Sj).replace(Z2,"")}o(eL,"deburr");function _H(c,f,d){c=It(c),f=pr(f);var T=c.length;d=d===e?T:rc(et(d),0,T);var S=d;return d-=f.length,d>=0&&c.slice(d,S)==f}o(_H,"endsWith");function VH(c){return c=It(c),c&&Ce.test(c)?c.replace(Te,Aj):c}o(VH,"escape");function wH(c){return c=It(c),c&&b2.test(c)?c.replace(zf,"\\$&"):c}o(wH,"escapeRegExp");var MH=hl(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),kH=hl(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),jH=iR("toLowerCase");function UH(c,f,d){c=It(c),f=et(f);var T=f?fl(c):0;if(!f||T>=f)return c;var S=(f-T)/2;return Tg(og(S),d)+c+Tg(rg(S),d)}o(UH,"pad");function $H(c,f,d){c=It(c),f=et(f);var T=f?fl(c):0;return f&&T<f?c+Tg(f-T,d):c}o($H,"padEnd");function BH(c,f,d){c=It(c),f=et(f);var T=f?fl(c):0;return f&&T<f?Tg(f-T,d)+c:c}o(BH,"padStart");function HH(c,f,d){return d||f==null?f=0:f&&(f=+f),qj(It(c).replace(BT,""),f||0)}o(HH,"parseInt");function GH(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=et(f),bv(It(c),f)}o(GH,"repeat");function WH(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(WH,"replace");var KH=hl(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function XH(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?rn:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!Hv(f))&&(f=pr(f),!f&&ll(c))?es(oo(c),0,d):c.split(f,d)):[]}o(XH,"split");var QH=hl(function(c,f,d){return c+(d?" ":"")+Kv(f)});function qH(c,f,d){return c=It(c),d=d==null?0:rc(et(d),0,c.length),f=pr(f),c.slice(d,d+f.length)==f}o(qH,"startsWith");function YH(c,f,d){var T=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=It(c),f=Lg({},f,T,fR);var S=Lg({},f.imports,T.imports,fR),C=Yn(S),L=iv(S,C),F,M,z=0,J=f.interpolate||Hd,ne="__p += '",ge=ov((f.escape||Hd).source+"|"+J.source+"|"+(J===un?O2:Hd).source+"|"+(f.evaluate||Hd).source+"|$","g"),Oe="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++rj+"]")+`
|
|
272
|
+
`;c.replace(ge,function(ke,ct,gt,gr,Ni,mr){return gt||(gt=gr),ne+=c.slice(z,mr).replace(V2,Pj),ct&&(F=!0,ne+=`' +
|
|
273
273
|
__e(`+ct+`) +
|
|
274
|
-
'`),Ni&&(
|
|
274
|
+
'`),Ni&&(M=!0,ne+=`';
|
|
275
275
|
`+Ni+`;
|
|
276
276
|
__p += '`),gt&&(ne+=`' +
|
|
277
277
|
((__t = (`+gt+`)) == null ? '' : __t) +
|
|
278
278
|
'`),z=mr+ke.length,ke}),ne+=`';
|
|
279
|
-
`;var Me=
|
|
279
|
+
`;var Me=Ft.call(f,"variable")&&f.variable;if(!Me)ne=`with (obj) {
|
|
280
280
|
`+ne+`
|
|
281
281
|
}
|
|
282
|
-
`;else if(
|
|
282
|
+
`;else if(C2.test(Me))throw new Ke(a);ne=(M?ne.replace(hn,""):ne).replace(Rn,"$1").replace(it,"$1;"),ne="function("+(Me||"obj")+`) {
|
|
283
283
|
`+(Me?"":`obj || (obj = {});
|
|
284
|
-
`)+"var __t, __p = ''"+(
|
|
284
|
+
`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+ne+`return __p
|
|
288
|
-
}`;var nt=tL(function(){return At(C,Oe+"return "+ne).apply(e,L)});if(nt.source=ne,Bv(nt))throw nt;return nt}o(qH,"template");function YH(c){return It(c).toLowerCase()}o(YH,"toLower");function zH(c){return It(c).toUpperCase()}o(zH,"toUpper");function JH(c,f,d){if(c=It(c),c&&(d||f===e))return fO(c);if(!c||!(f=pr(f)))return c;var T=ro(c),S=ro(f),C=uO(T,S),L=pO(T,S)+1;return es(T,C,L).join("")}o(JH,"trim");function ZH(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,gO(c)+1);if(!c||!(f=pr(f)))return c;var T=ro(c),S=pO(T,ro(f))+1;return es(T,0,S).join("")}o(ZH,"trimEnd");function eG(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(BT,"");if(!c||!(f=pr(f)))return c;var T=ro(c),S=uO(T,ro(f));return es(T,S).join("")}o(eG,"trimStart");function tG(c,f){var d=D,T=Ue;if(yn(f)){var S="separator"in f?f.separator:S;d="length"in f?et(f.length):d,T="omission"in f?pr(f.omission):T}c=It(c);var C=c.length;if(ll(c)){var L=ro(c);C=L.length}if(d>=C)return c;var N=d-fl(T);if(N<1)return T;var k=L?es(L,0,N).join(""):c.slice(0,N);if(S===e)return k+T;if(L&&(N+=k.length-N),Hv(S)){if(c.slice(N).search(S)){var z,J=k;for(S.global||(S=ov(S.source,It(FI.exec(S))+"g")),S.lastIndex=0;z=S.exec(J);)var ne=z.index;k=k.slice(0,ne===e?N:ne)}}else if(c.indexOf(pr(S),N)!=N){var ge=k.lastIndexOf(S);ge>-1&&(k=k.slice(0,ge))}return k+T}o(tG,"truncate");function nG(c){return c=It(c),c&&Ae.test(c)?c.replace(me,Lj):c}o(nG,"unescape");var iG=hl(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),Kv=nR("toUpperCase");function eL(c,f,d){return c=It(c),f=d?e:f,f===e?xj(c)?Dj(c):hj(c):c.match(f)||[]}o(eL,"words");var tL=rt(function(c,f){try{return fr(c,e,f)}catch(d){return Bv(d)?d:new Ke(d)}}),rG=sa(function(c,f){return Dr(f,function(d){d=Fo(d),oa(c,d,Uv(c[d],c))}),c});function oG(c){var f=c==null?0:c.length,d=Ve();return c=f?pn(c,function(T){if(typeof T[1]!="function")throw new _r(r);return[d(T[0]),T[1]]}):[],rt(function(T){for(var S=-1;++S<f;){var C=c[S];if(fr(C[0],this,T))return fr(C[1],this,T)}})}o(oG,"cond");function aG(c){return LU(wr(c,p))}o(aG,"conforms");function Xv(c){return function(){return c}}o(Xv,"constant");function sG(c,f){return c==null||c!==c?f:c}o(sG,"defaultTo");var cG=rR(),lG=rR(!0);function Xi(c){return c}o(Xi,"identity");function Qv(c){return _O(typeof c=="function"?c:wr(c,p))}o(Qv,"iteratee");function fG(c){return wO(wr(c,p))}o(fG,"matches");function uG(c,f){return MO(c,wr(f,p))}o(uG,"matchesProperty");var pG=rt(function(c,f){return function(d){return au(d,c,f)}}),dG=rt(function(c,f){return function(d){return au(c,d,f)}});function qv(c,f,d){var T=Yn(f),S=ug(f,T);d==null&&!(yn(f)&&(S.length||!T.length))&&(d=f,f=c,c=this,S=ug(f,Yn(f)));var C=!(yn(d)&&"chain"in d)||!!d.chain,L=la(c);return Dr(S,function(N){var k=f[N];c[N]=k,L&&(c.prototype[N]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Gi(this.__actions__);return ne.push({func:k,args:arguments,thisArg:c}),J.__chain__=z,J}return k.apply(c,Xa([this.value()],arguments))})}),c}o(qv,"mixin");function gG(){return qn._===this&&(qn._=jj),this}o(gG,"noConflict");function Yv(){}o(Yv,"noop");function mG(c){return c=et(c),rt(function(f){return kO(f,c)})}o(mG,"nthArg");var hG=Iv(pn),yG=Iv(oO),TG=Iv(JT);function nL(c){return _v(c)?ZT(Fo(c)):XU(c)}o(nL,"property");function vG(c){return function(f){return c==null?e:oc(c,f)}}o(vG,"propertyOf");var bG=aR(),EG=aR(!0);function zv(){return[]}o(zv,"stubArray");function Jv(){return!1}o(Jv,"stubFalse");function SG(){return{}}o(SG,"stubObject");function AG(){return""}o(AG,"stubString");function PG(){return!0}o(PG,"stubTrue");function xG(c,f){if(c=et(c),c<1||c>Le)return[];var d=nn,T=hi(c,nn);f=Ve(f),c-=nn;for(var S=nv(T,f);++d<c;)f(d);return S}o(xG,"times");function CG(c){return Ye(c)?pn(c,Fo):dr(c)?[c]:Gi(SR(It(c)))}o(CG,"toPath");function IG(c){var f=++Mj;return It(c)+f}o(IG,"uniqueId");var OG=yg(function(c,f){return c+f},0),RG=Ov("ceil"),LG=yg(function(c,f){return c/f},1),NG=Ov("floor");function FG(c){return c&&c.length?fg(c,Xi,dv):e}o(FG,"max");function DG(c,f){return c&&c.length?fg(c,Ve(f,2),dv):e}o(DG,"maxBy");function _G(c){return cO(c,Xi)}o(_G,"mean");function VG(c,f){return cO(c,Ve(f,2))}o(VG,"meanBy");function wG(c){return c&&c.length?fg(c,Xi,yv):e}o(wG,"min");function MG(c,f){return c&&c.length?fg(c,Ve(f,2),yv):e}o(MG,"minBy");var kG=yg(function(c,f){return c*f},1),jG=Ov("round"),UG=yg(function(c,f){return c-f},0);function $G(c){return c&&c.length?tv(c,Xi):0}o($G,"sum");function BG(c,f){return c&&c.length?tv(c,Ve(f,2)):0}return o(BG,"sumBy"),P.after=fB,P.ary=DR,P.assign=zB,P.assignIn=XR,P.assignInWith=Lg,P.assignWith=JB,P.at=ZB,P.before=_R,P.bind=Uv,P.bindAll=rG,P.bindKey=VR,P.castArray=SB,P.chain=LR,P.chunk=L$,P.compact=N$,P.concat=F$,P.cond=oG,P.conforms=aG,P.constant=Xv,P.countBy=$4,P.create=eH,P.curry=wR,P.curryRight=MR,P.debounce=kR,P.defaults=tH,P.defaultsDeep=nH,P.defer=uB,P.delay=pB,P.difference=D$,P.differenceBy=_$,P.differenceWith=V$,P.drop=w$,P.dropRight=M$,P.dropRightWhile=k$,P.dropWhile=j$,P.fill=U$,P.filter=H4,P.flatMap=K4,P.flatMapDeep=X4,P.flatMapDepth=Q4,P.flatten=CR,P.flattenDeep=$$,P.flattenDepth=B$,P.flip=dB,P.flow=cG,P.flowRight=lG,P.fromPairs=H$,P.functions=lH,P.functionsIn=fH,P.groupBy=q4,P.initial=W$,P.intersection=K$,P.intersectionBy=X$,P.intersectionWith=Q$,P.invert=pH,P.invertBy=dH,P.invokeMap=z4,P.iteratee=Qv,P.keyBy=J4,P.keys=Yn,P.keysIn=Ki,P.map=Pg,P.mapKeys=mH,P.mapValues=hH,P.matches=fG,P.matchesProperty=uG,P.memoize=Cg,P.merge=yH,P.mergeWith=QR,P.method=pG,P.methodOf=dG,P.mixin=qv,P.negate=Ig,P.nthArg=mG,P.omit=TH,P.omitBy=vH,P.once=gB,P.orderBy=Z4,P.over=hG,P.overArgs=mB,P.overEvery=yG,P.overSome=TG,P.partial=$v,P.partialRight=jR,P.partition=eB,P.pick=bH,P.pickBy=qR,P.property=nL,P.propertyOf=vG,P.pull=J$,P.pullAll=OR,P.pullAllBy=Z$,P.pullAllWith=e4,P.pullAt=t4,P.range=bG,P.rangeRight=EG,P.rearg=hB,P.reject=iB,P.remove=n4,P.rest=yB,P.reverse=kv,P.sampleSize=oB,P.set=SH,P.setWith=AH,P.shuffle=aB,P.slice=i4,P.sortBy=lB,P.sortedUniq=f4,P.sortedUniqBy=u4,P.split=KH,P.spread=TB,P.tail=p4,P.take=d4,P.takeRight=g4,P.takeRightWhile=m4,P.takeWhile=h4,P.tap=F4,P.throttle=vB,P.thru=Ag,P.toArray=GR,P.toPairs=YR,P.toPairsIn=zR,P.toPath=CG,P.toPlainObject=KR,P.transform=PH,P.unary=bB,P.union=y4,P.unionBy=T4,P.unionWith=b4,P.uniq=E4,P.uniqBy=S4,P.uniqWith=A4,P.unset=xH,P.unzip=jv,P.unzipWith=RR,P.update=CH,P.updateWith=IH,P.values=vl,P.valuesIn=OH,P.without=P4,P.words=eL,P.wrap=EB,P.xor=x4,P.xorBy=C4,P.xorWith=I4,P.zip=O4,P.zipObject=R4,P.zipObjectDeep=L4,P.zipWith=N4,P.entries=YR,P.entriesIn=zR,P.extend=XR,P.extendWith=Lg,qv(P,P),P.add=OG,P.attempt=tL,P.camelCase=FH,P.capitalize=JR,P.ceil=RG,P.clamp=RH,P.clone=AB,P.cloneDeep=xB,P.cloneDeepWith=CB,P.cloneWith=PB,P.conformsTo=IB,P.deburr=ZR,P.defaultTo=sG,P.divide=LG,P.endsWith=DH,P.eq=ao,P.escape=_H,P.escapeRegExp=VH,P.every=B4,P.find=G4,P.findIndex=PR,P.findKey=iH,P.findLast=W4,P.findLastIndex=xR,P.findLastKey=rH,P.floor=NG,P.forEach=NR,P.forEachRight=FR,P.forIn=oH,P.forInRight=aH,P.forOwn=sH,P.forOwnRight=cH,P.get=Gv,P.gt=OB,P.gte=RB,P.has=uH,P.hasIn=Wv,P.head=IR,P.identity=Xi,P.includes=Y4,P.indexOf=G$,P.inRange=LH,P.invoke=gH,P.isArguments=cc,P.isArray=Ye,P.isArrayBuffer=LB,P.isArrayLike=Wi,P.isArrayLikeObject=Ln,P.isBoolean=NB,P.isBuffer=ts,P.isDate=FB,P.isElement=DB,P.isEmpty=_B,P.isEqual=VB,P.isEqualWith=wB,P.isError=Bv,P.isFinite=MB,P.isFunction=la,P.isInteger=UR,P.isLength=Og,P.isMap=$R,P.isMatch=kB,P.isMatchWith=jB,P.isNaN=UB,P.isNative=$B,P.isNil=HB,P.isNull=BB,P.isNumber=BR,P.isObject=yn,P.isObjectLike=En,P.isPlainObject=pu,P.isRegExp=Hv,P.isSafeInteger=GB,P.isSet=HR,P.isString=Rg,P.isSymbol=dr,P.isTypedArray=Tl,P.isUndefined=WB,P.isWeakMap=KB,P.isWeakSet=XB,P.join=q$,P.kebabCase=wH,P.last=kr,P.lastIndexOf=Y$,P.lowerCase=MH,P.lowerFirst=kH,P.lt=QB,P.lte=qB,P.max=FG,P.maxBy=DG,P.mean=_G,P.meanBy=VG,P.min=wG,P.minBy=MG,P.stubArray=zv,P.stubFalse=Jv,P.stubObject=SG,P.stubString=AG,P.stubTrue=PG,P.multiply=kG,P.nth=z$,P.noConflict=gG,P.noop=Yv,P.now=xg,P.pad=jH,P.padEnd=UH,P.padStart=$H,P.parseInt=BH,P.random=NH,P.reduce=tB,P.reduceRight=nB,P.repeat=HH,P.replace=GH,P.result=EH,P.round=jG,P.runInContext=w,P.sample=rB,P.size=sB,P.snakeCase=WH,P.some=cB,P.sortedIndex=r4,P.sortedIndexBy=o4,P.sortedIndexOf=a4,P.sortedLastIndex=s4,P.sortedLastIndexBy=c4,P.sortedLastIndexOf=l4,P.startCase=XH,P.startsWith=QH,P.subtract=UG,P.sum=$G,P.sumBy=BG,P.template=qH,P.times=xG,P.toFinite=fa,P.toInteger=et,P.toLength=WR,P.toLower=YH,P.toNumber=jr,P.toSafeInteger=YB,P.toString=It,P.toUpper=zH,P.trim=JH,P.trimEnd=ZH,P.trimStart=eG,P.truncate=tG,P.unescape=nG,P.uniqueId=IG,P.upperCase=iG,P.upperFirst=Kv,P.each=NR,P.eachRight=FR,P.first=IR,qv(P,function(){var c={};return Lo(P,function(f,d){Nt.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Dr(["drop","take"],function(c,f){dt.prototype[c]=function(d){d=d===e?1:Wn(et(d),0);var T=this.__filtered__&&!f?new dt(this):this.clone();return T.__filtered__?T.__takeCount__=hi(d,T.__takeCount__):T.__views__.push({size:hi(d,nn),type:c+(T.__dir__<0?"Right":"")}),T},dt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Dr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==tn||d==St;dt.prototype[c]=function(S){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(S,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),Dr(["head","last"],function(c,f){var d="take"+(f?"Right":"");dt.prototype[c]=function(){return this[d](1).value()[0]}}),Dr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");dt.prototype[c]=function(){return this.__filtered__?new dt(this):this[d](1)}}),dt.prototype.compact=function(){return this.filter(Xi)},dt.prototype.find=function(c){return this.filter(c).head()},dt.prototype.findLast=function(c){return this.reverse().find(c)},dt.prototype.invokeMap=rt(function(c,f){return typeof c=="function"?new dt(this):this.map(function(d){return au(d,c,f)})}),dt.prototype.reject=function(c){return this.filter(Ig(Ve(c)))},dt.prototype.slice=function(c,f){c=et(c);var d=this;return d.__filtered__&&(c>0||f<0)?new dt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=et(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},dt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},dt.prototype.toArray=function(){return this.take(nn)},Lo(dt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),S=P[T?"take"+(f=="last"?"Right":""):f],C=T||/^find/.test(f);S&&(P.prototype[f]=function(){var L=this.__wrapped__,N=T?[1]:arguments,k=L instanceof dt,z=N[0],J=k||Ye(L),ne=o(function(ct){var gt=S.apply(P,Xa([ct],N));return T&&ge?gt[0]:gt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(k=J=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,Me=C&&!ge,nt=k&&!Oe;if(!C&&J){L=nt?L:new dt(this);var ke=c.apply(L,N);return ke.__actions__.push({func:Ag,args:[ne],thisArg:e}),new Vr(ke,ge)}return Me&&nt?c.apply(this,N):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(c){var f=qd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var S=arguments;if(T&&!this.__chain__){var C=this.value();return f.apply(Ye(C)?C:[],S)}return this[d](function(L){return f.apply(Ye(L)?L:[],S)})}}),Lo(dt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Nt.call(dl,T)||(dl[T]=[]),dl[T].push({name:f,func:d})}}),dl[hg(e,I).name]=[{name:"wrapper",func:e}],dt.prototype.clone=tU,dt.prototype.reverse=nU,dt.prototype.value=iU,P.prototype.at=D4,P.prototype.chain=_4,P.prototype.commit=V4,P.prototype.next=w4,P.prototype.plant=k4,P.prototype.reverse=j4,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=U4,P.prototype.first=P.prototype.head,Zf&&(P.prototype[Zf]=M4),P},"runInContext"),qa=_j();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qn._=qa,define(function(){return qa})):ec?((ec.exports=qa)._=qa,QT._=qa):qn._=qa}).call(Sf)});var bM=Ze((Nde,vM)=>{var{findIndex:LY}=qp();function NY(e,t){let i=LY(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(NY,"findNextTextualToken");vM.exports={findNextTextualToken:NY}});var AM=Ze((Dde,SM)=>{var EM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function FY({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(EM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(FY,"isXMLNamespaceKey");function DY(e){if(typeof e!="string")return;let t=e.match(EM);if(t!==null)return t.groups&&t.groups.prefix||""}o(DY,"getXMLNamespaceKeyPrefix");SM.exports={isXMLNamespaceKey:FY,getXMLNamespaceKeyPrefix:DY}});var xM=Ze((Vde,PM)=>{var{findNextTextualToken:_Y}=bM(),{isXMLNamespaceKey:VY,getXMLNamespaceKeyPrefix:wY}=AM();PM.exports={findNextTextualToken:_Y,isXMLNamespaceKey:VY,getXMLNamespaceKeyPrefix:wY}});var $P=Ze((wde,IM)=>{var{reduce:MY,has:CM,isArray:kY}=qp();function jY(e){return MY(e,(n,i,r)=>(r==="parent"||(CM(i,"type")?n.push(i):kY(i)&&i.length>0&&CM(i[0],"type")&&(n=n.concat(i))),n),[])}o(jY,"getAstChildrenReflective");IM.exports={getAstChildrenReflective:jY}});var BP=Ze((kde,OM)=>{OM.exports={DEFAULT_NS:"::DEFAULT"}});var wM=Ze((jde,VM)=>{var{BaseXmlCstVisitor:UY}=UP(),{last:$Y,forEach:FM,reduce:BY,map:Yp,pick:GP,sortBy:HY,isEmpty:GY,isArray:DM,assign:WY}=qp(),{findNextTextualToken:KY,isXMLNamespaceKey:XY,getXMLNamespaceKeyPrefix:QY}=xM(),{getAstChildrenReflective:qY}=$P(),{DEFAULT_NS:YY}=BP();function zY(e,t){RM.setState({tokenVector:t});let n=RM.visit(e);return n.rootElement!==Jc&&_M(n.rootElement),n}o(zY,"buildAst");var WP=class WP extends UY{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:Jc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&GY(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),eT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Yp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),eT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Yp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Yp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Jc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Yp(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 e9(i,t),t9(i,t),n9(i,t,this.tokenVector),eT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Jc,value:Jc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=tT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=JY(a.image),r.syntax.value=tT(a)}return eT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Jc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=HY(r,["startOffset"]),s=Yp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(WP,"CstToAstVisitor");var HP=WP,RM=new HP;function eT(e){let t=qY(e);FM(t,n=>n.parent=e)}o(eT,"setChildrenParent");function _M(e,t=[]){let n=BY(e.attributes,(r,a)=>{if(a.key!==Jc&&XY({key:a.key,includeEmptyPrefix:!1})===!0){let s=QY(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[YY]=l}}return r},{}),i=Object.create(null);e.namespaces=WY(i,t,n),FM(e.subElements,r=>_M(r,e.namespaces))}o(_M,"updateNamespaces");function tT(e){return GP(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(tT,"toXMLToken");function LM(e){return GP(e,["startOffset","startLine","startColumn"])}o(LM,"startOfXMLToken");function NM(e){return GP(e,["endOffset","endLine","endColumn"])}o(NM,"endOfXMLToken");function Ua(e){return DM(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ua,"exists");function JY(e){return e.substring(1,e.length-1)}o(JY,"stripQuotes");function ZY(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(ZY,"nsToParts");var Jc=null;function e9(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=tT(n);let i=ZY(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=tT(t.END_NAME[0]))}o(e9,"handleElementOpenCloseNameRanges");function t9(e,t){if(Ua(t.OPEN)){let n;Ua(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ua(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...LM(t.OPEN[0]),...NM(n)}),Ua(t.SLASH_OPEN)&&Ua(t.END)&&(e.syntax.closeBody={...LM(t.SLASH_OPEN[0]),...NM(t.END[0])})}}o(t9,"handleElementOpenCloseBodyRanges");function n9(e,t,n){if(Ua(t.Name)){let i=t.Name[0].endOffset+2;if(Ua(t.START_CLOSE)||Ua(t.SLASH_CLOSE)){let r=(Ua(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=DM(t.attribute)?$Y(t.attribute).location.endOffset:t.Name[0].endOffset,s=KY(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(n9,"handleElementAttributeRanges");VM.exports={buildAst:zY}});var jM=Ze(($de,kM)=>{var{forEach:i9,isFunction:Af}=qp(),{getAstChildrenReflective:r9}=$P();function MM(e,t){switch(e.type){case"XMLDocument":{Af(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Af(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Af(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Af(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Af(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Af(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=r9(e);i9(n,i=>{MM(i,t)})}o(MM,"accept");kM.exports={accept:MM}});var $M=Ze((Hde,UM)=>{var{buildAst:o9}=wM(),{accept:a9}=jM(),{DEFAULT_NS:s9}=BP();UM.exports={buildAst:o9,accept:a9,DEFAULT_NS:s9}});var Fi={};lc(Fi,{deleteConfigEntityByPath:()=>SZ,exportConfig:()=>bZ,exportConfigEntityByPath:()=>EZ,generateCustomExtension:()=>CI,generateSchema:()=>vZ,getApiVersion:()=>CZ,getChanges:()=>y2,getGenericSchema:()=>wT,getPathToGenericSchema:()=>wk,getProject:()=>NZ,importConfig:()=>AZ,importProject:()=>PZ,importProjectSchema:()=>xZ,isDirectory:()=>OZ,log:()=>re,prompts:()=>TZ,readDirectory:()=>NI});module.exports=Fg(Fi);var de=Z(ae());var W=Z(ae());var Be=o(e=>typeof e=="string","isString"),du=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),UF=o(e=>e==null?"":""+e,"makeString"),A5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),P5=/###/g,$F=o(e=>e&&e.indexOf("###")>-1?e.replace(P5,"."):e,"cleanKey"),BF=o(e=>!e||Be(e),"canNotTraverseDeeper"),gu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(BF(e))return{};let a=$F(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return BF(e)?{}:{obj:e,k:$F(i[r])}},"getLastOfPath"),HF=o((e,t,n)=>{let{obj:i,k:r}=gu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=gu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=gu(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),x5=o((e,t,n,i)=>{let{obj:r,k:a}=gu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),_g=o((e,t)=>{let{obj:n,k:i}=gu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),C5=o((e,t,n)=>{let i=_g(e,n);return i!==void 0?i:_g(t,n)},"getPathWithDefaults"),JF=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]):JF(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),El=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),I5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},O5=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>I5[t]):e,"escape"),db=class db{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(db,"RegExpCache");var ab=db,R5=[" ",",","?","!",";"],L5=new ab(20),N5=o((e,t,n)=>{t=t||"",n=n||"";let i=R5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=L5.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"),sb=o((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),yu=o(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),F5={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,i;(i=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||i.call(n,console,t)}},mu=class mu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||F5,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new mu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new mu(this.logger,t)}};o(mu,"Logger");var cb=mu,Do=new cb,gb=class gb{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r.apply(r,[t,...n])})}};o(gb,"EventEmitter");var Sl=gb,mb=class mb extends Sl{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i,r={}){var p,g;let a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=_g(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:sb((g=(p=this.data)==null?void 0:p[t])==null?void 0:g[n],i,a)}addResource(t,n,i,r,a={silent:!1}){let s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),HF(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i,r={silent:!1}){for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=_g(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?JF(u,i,a):u={...u,...i},HF(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(mb,"ResourceStore");var Vg=mb,ZF={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,r))??t}),t}},GF={},WF=o(e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),jg=class jg extends Sl{constructor(t,n={}){super(),A5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Do.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let r=this.resolve(t,i);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!N5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof options=="object"&&(r={...r}),r||(r={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(t[t.length-1],r),p=u[u.length-1],g=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");let m=r.lng||this.language,v=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return v?a?{res:`${p}${g}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${g}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:l;let E=this.resolve(t,r),b=E==null?void 0:E.res,I=(E==null?void 0:E.usedKey)||l,F=(E==null?void 0:E.exactUsedKey)||l,M=["[object Number]","[object Function]","[object RegExp]"],G=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,se=r.count!==void 0&&!Be(r.count),te=jg.hasDefaultValue(r),le=se?this.pluralResolver.getSuffix(m,r.count,r):"",Re=r.ordinal&&se?this.pluralResolver.getSuffix(m,r.count,{ordinal:!1}):"",D=se&&!r.ordinal&&r.count===0,Ue=D&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${le}`]||r[`defaultValue${Re}`]||r.defaultValue,$e=b;$&&!b&&te&&($e=Ue);let qe=WF($e),tn=Object.prototype.toString.apply($e);if($&&$e&&qe&&M.indexOf(tn)<0&&!(Be(G)&&Array.isArray($e))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let $t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,$e,{...r,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(E.res=$t,E.usedParams=this.getUsedParamsDetails(r),E):$t}if(s){let $t=Array.isArray($e),St=$t?[]:{},qt=$t?F:I;for(let Le in $e)if(Object.prototype.hasOwnProperty.call($e,Le)){let Tn=`${qt}${s}${Le}`;te&&!b?St[Le]=this.translate(Tn,{...r,defaultValue:WF(Ue)?Ue[Le]:void 0,joinArrays:!1,ns:u}):St[Le]=this.translate(Tn,{...r,joinArrays:!1,ns:u}),St[Le]===Tn&&(St[Le]=$e[Le])}b=St}}else if($&&Be(G)&&Array.isArray(b))b=b.join(G),b&&(b=this.extendTranslation(b,t,r,i));else{let $t=!1,St=!1;!this.isValidLookup(b)&&te&&($t=!0,b=Ue),this.isValidLookup(b)||(St=!0,b=l);let Le=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&St?void 0:b,Tn=te&&Ue!==b&&this.options.updateMissing;if(St||$t||Tn){if(this.logger.log(Tn?"updateKey":"missingKey",m,p,l,Tn?Ue:b),s){let rn=this.resolve(l,{...r,keySeparator:!1});rn&&rn.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 vn=[],nn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&nn&&nn[0])for(let rn=0;rn<nn.length;rn++)vn.push(nn[rn]);else this.options.saveMissingTo==="all"?vn=this.languageUtils.toResolveHierarchy(r.lng||this.language):vn.push(r.lng||this.language);let On=o((rn,Ie,ln)=>{var tt;let Oi=te&&ln!==b?ln:Le;this.options.missingKeyHandler?this.options.missingKeyHandler(rn,p,Ie,Oi,Tn,r):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(rn,p,Ie,Oi,Tn,r),this.emit("missingKey",rn,p,Ie,b)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&se?vn.forEach(rn=>{let Ie=this.pluralResolver.getSuffixes(rn,r);D&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ie.push(`${this.options.pluralSeparator}zero`),Ie.forEach(ln=>{On([rn],l+ln,r[`defaultValue${ln}`]||Ue)})}):On(vn,l,Ue))}b=this.extendTranslation(b,t,r,E,i),St&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${p}${g}${l}`),(St||$t)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${g}${l}`:l,$t?b:void 0,r))}return a?(E.res=b,E.usedParams=this.getUsedParamsDetails(r),E):b}extendTranslation(t,n,i,r,a){var u,p;if((u=this.i18nFormat)!=null&&u.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let g=Be(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(g){let E=t.match(this.interpolator.nestingRegexp);m=E&&E.length}let v=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||r.usedLng,i),g){let E=t.match(this.interpolator.nestingRegexp),b=E&&E.length;m<b&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...E)=>(a==null?void 0:a[0])===E[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${E[0]} in key: ${n[0]}`),null):this.translate(...E,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,l=Be(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&i.applyPostProcessor!==!1&&(t=ZF.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&!Be(n.count),E=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{var M,G;this.isValidLookup(i)||(l=F,!GF[`${I[0]}-${F}`]&&((M=this.utils)!=null&&M.hasLoadedNamespace)&&!((G=this.utils)!=null&&G.hasLoadedNamespace(l))&&(GF[`${I[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach($=>{var le;if(this.isValidLookup(i))return;s=$;let se=[g];if((le=this.i18nFormat)!=null&&le.addLookupKeys)this.i18nFormat.addLookupKeys(se,g,$,F,n);else{let Re;v&&(Re=this.pluralResolver.getSuffix($,n.count,n));let D=`${this.options.pluralSeparator}zero`,Ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(se.push(g+Re),n.ordinal&&Re.indexOf(Ue)===0&&se.push(g+Re.replace(Ue,this.options.pluralSeparator)),E&&se.push(g+D)),b){let $e=`${g}${this.options.contextSeparator}${n.context}`;se.push($e),v&&(se.push($e+Re),n.ordinal&&Re.indexOf(Ue)===0&&se.push($e+Re.replace(Ue,this.options.pluralSeparator)),E&&se.push($e+D))}}let te;for(;te=se.pop();)this.isValidLookup(i)||(a=te,i=this.getResource($,F,te,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i,r={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(jg,"Translator");var wg=jg,hb=class hb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Do.create("languageUtils")}getScriptPartFromCode(t){if(t=yu(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=yu(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;let a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(hb,"LanguageUtil");var Mg=hb,KF={zero:0,one:1,two:2,few:3,many:4,other:5},XF={select:o(e=>e===1?"one":"other","select"),resolvedOptions:o(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},yb=class yb{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=Do.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=yu(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),XF;if(!t.match(/-|_/))return XF;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,i={}){return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>KF[r]-KF[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,i={}){let r=this.getRule(t,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};o(yb,"PluralResolver");var lb=yb,QF=o((e,t,n,i=".",r=!0)=>{let a=C5(e,t,n);return!a&&r&&Be(n)&&(a=sb(e,n,i),a===void 0&&(a=sb(t,n,i))),a},"deepFindWithDefaults"),ob=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),Tb=class Tb{constructor(t={}){var n;this.logger=Do.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(i=>i),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:E,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:F,maxReplaces:M,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:O5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?El(a):s||"{{",this.suffix=l?El(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?El(v):E||El("$t("),this.nestingSuffix=b?El(b):I||El(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=M||1e3,this.alwaysFormat=G!==void 0?G:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>(n==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){var E;let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(b=>{if(b.indexOf(this.formatSeparator)<0){let G=QF(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,i,{...r,...n,interpolationkey:b}):G}let I=b.split(this.formatSeparator),F=I.shift().trim(),M=I.join(this.formatSeparator).trim();return this.format(QF(n,u,F,this.options.keySeparator,this.options.ignoreJSONStructure),M,i,{...r,...n,interpolationkey:F})},"handleFormat");this.resetRegExp();let g=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((E=r==null?void 0:r.interpolation)==null?void 0:E.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>ob(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?ob(this.escape(b)):ob(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let I=a[1].trim();if(s=p(I),s===void 0)if(typeof g=="function"){let M=g(t,a,r);s=Be(M)?M:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=UF(s));let F=b.safeValue(s);if(t=t.replace(a[0],F),m?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,i={}){let r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let E=v.match(/'/g),b=v.match(/"/g);(((E==null?void 0:E.length)??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,I),`${u}${g}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(u=r[1].slice(p).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=UF(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),u.length&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(Tb,"Interpolator");var fb=Tb,D5=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"),qF=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(yu(i),r),t[s]=l),l(n)}},"createCachedFormatter"),_5=o(e=>(t,n,i)=>e(yu(n),i)(t),"createNonCachedFormatter"),vb=class vb{constructor(t={}){this.logger=Do.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?qF:_5;this.formats={number:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a});return l=>s.format(l)}),currency:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a,style:"currency"});return l=>s.format(l)}),datetime:i((r,a)=>{let s=new Intl.DateTimeFormat(r,{...a});return l=>s.format(l)}),relativetime:i((r,a)=>{let s=new Intl.RelativeTimeFormat(r,{...a});return l=>s.format(l,a.range||"day")}),list:i((r,a)=>{let s=new Intl.ListFormat(r,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=qF(n)}format(t,n,i,r={}){let a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{var m;let{formatName:p,formatOptions:g}=D5(u);if(this.formats[p]){let v=l;try{let E=((m=r==null?void 0:r.formatParams)==null?void 0:m[r.interpolationkey])||{},b=E.locale||E.lng||r.locale||r.lng||i;v=this.formats[p](l,b,{...g,...r,...E})}catch(E){this.logger.warn(E)}return v}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(vb,"Formatter");var ub=vb,V5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),bb=class bb extends Sl{constructor(t,n,i,r={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Do.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{x5(u.loaded,[a],s),V5(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i,r=0,a=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t,n=""){let i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a,s={},l=()=>{}){var u,p,g,m,v;if((p=(u=this.services)==null?void 0:u.utils)!=null&&p.hasLoadedNamespace&&!((m=(g=this.services)==null?void 0:g.utils)!=null&&m.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((v=this.backend)!=null&&v.create){let E={...s,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let I;b.length===5?I=b(t,n,i,r,E):I=b(t,n,i,r),I&&typeof I.then=="function"?I.then(F=>l(null,F)).catch(l):l(null,I)}catch(I){l(I)}else b(t,n,i,r,l,E)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(bb,"Connector");var pb=bb,YF=o(()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),zF=o(e=>{var t,n;return Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},"transformOptions"),Dg=o(()=>{},"noop"),w5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),hu=class hu extends Sl{constructor(t={},n){if(super(),this.options=zF(t),this.services={},this.logger=Do,this.modules={external:[]},w5(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Be(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=YF();this.options={...i,...this.options,...zF(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=o(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Do.init(r(this.modules.logger),this.options):Do.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=ub;let g=new Mg(this.options);this.store=new Vg(this.options.resources,this.options);let m=this.services;m.logger=Do,m.resourceStore=this.store,m.languageUtils=g,m.pluralResolver=new lb(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=r(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new fb(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new pb(r(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(v,...E)=>{this.emit(v,...E)}),this.modules.languageDetector&&(m.languageDetector=r(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=r(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new wg(this.services,this.options),this.translator.on("*",(v,...E)=>{this.emit(v,...E)}),this.modules.external.forEach(v=>{v.init&&v.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Dg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...g)=>this.store[p](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...g)=>(this.store[p](...g),this)});let l=du(),u=o(()=>{let p=o((g,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),n(g,m)},"finish");if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(t,n=Dg){var a,s;let i=n,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let l=[],u=o(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})},"append");r?u(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>u(g)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>u(p)),this.services.backendConnector.load(l,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let r=du();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Dg),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"&&ZF.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;let i=du();this.emit("languageChanging",t);let r=o(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),a=o((l,u)=>{u?this.isLanguageChangingTo===t&&(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(l,(...p)=>this.t(...p))},"done"),s=o(l=>{var g,m;!t&&!l&&this.services.languageDetector&&(l=[]);let u=Be(l)?l:l&&l[0],p=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Be(l)?[l]:l);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(m=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||m.call(g,p)),this.loadResources(p,v=>{a(v,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,i){let r=o((a,s,...l)=>{let u;typeof s!="object"?u=this.options.overloadTranslationOptionHandler([a,s].concat(l)):u={...s},u.lng=u.lng||r.lng,u.lngs=u.lngs||r.lngs,u.ns=u.ns||r.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||r.keyPrefix);let p=this.options.keySeparator||".",g;return u.keyPrefix&&Array.isArray(a)?g=a.map(m=>`${u.keyPrefix}${p}${m}`):g=u.keyPrefix?`${u.keyPrefix}${p}${a}`:a,this.t(g,u)},"fixedT");return Be(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=du();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=du();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){var r,a;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";if(Intl.Locale){let s=new Intl.Locale(t);if(s&&s.getTextInfo){let l=s.getTextInfo();if(l&&l.direction)return l.direction}}let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((a=this.services)==null?void 0:a.languageUtils)||new Mg(YF());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new hu(t,n)}cloneInstance(t={},n=Dg){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new hu(r);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){let l=Object.keys(this.store.data).reduce((u,p)=>(u[p]={...this.store.data[p]},u[p]=Object.keys(u[p]).reduce((g,m)=>(g[m]={...u[p][m]},g),u[p]),u),{});a.store=new Vg(l,r),a.services.resourceStore=a.store}return a.translator=new wg(a.services,r),a.translator.on("*",(l,...u)=>{a.emit(l,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(hu,"I18n");var kg=hu,Q=kg.createInstance();Q.createInstance=kg.createInstance;var BZ=Q.createInstance,HZ=Q.dir,GZ=Q.init,WZ=Q.loadResources,KZ=Q.reloadResources,XZ=Q.use,QZ=Q.changeLanguage,qZ=Q.getFixedT,YZ=Q.t,zZ=Q.exists,JZ=Q.setDefaultNamespace,ZZ=Q.hasLoadedNamespace,eee=Q.loadNamespaces,tee=Q.loadLanguages;var d0=Z(Eb()),g0=Z(CD()),am=Z(p0()),Tt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Su=require("@sap-ux/vocabularies-types/vocabularies/Communication");var rm=Z(ae());var re=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var U="#/definitions/",mK=[W.v4.FE_TEMPLATE_V4_LIST_REPORT,W.v4.FE_TEMPLATE_V4_ALP,W.v4.FE_TEMPLATE_V4_OBJECT_PAGE,W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],hK=["sap.fe.core","sap.fe.templates"],Ol=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),yr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Ur(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,am.parse)(r.fileContent,r.dataSourceUri))}catch(a){return re(t,{severity:W.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,am.merge)(...n);i=(0,g0.convert)(r)}return i}o(Ur,"parseAndMergeAndConvert");var Il=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function $b(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($b,"evaluateCommonLabel");function sm(e,t){let n=e.value;return e.$target&&(n=$b(e.$target.annotations,t,n)),n}o(sm,"getLabelForPropertyPath");function Au(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=$b(i.annotations,t,n)),n}o(Au,"getLabelForDataField");function ya(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 $b(a.annotations,t,s)}}}else return}o(ya,"getLabel");function cm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(cm,"getDescriptionForActionBasedDataFields");function Bb(e,t,n){let i=Au(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Bb,"getTitleForDataField");function ft(e){return e.replace("#","::").replace(/\//g,":2f")}o(ft,"prepareRef");function ha(e){if(e){let t=`${W.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ha,"getPageTypeV2");function Hb(e){let t="name"in e&&typeof e.name=="string"?om(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return W.PageTypeV4.CustomPage}o(Hb,"getPageTypeV4");function yK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(yK,"getTargetAnnotationName");function oi(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(oi,"findAlias");function TK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(TK,"getAnnotationFromMetaPath");function vK(e,t,n){var s,l;let i=e[e.length-1],r=TK(i),a=oi(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(vK,"determineTargetAnnotation");function bK(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Tt.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${W.UIVOCABULARY}`);return e}o(bK,"adjustKey");function EK(e,t,n,i,r=W.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=bK(t,u,a);let g=vK(u,n,e);if(g){let E=r===W.FioriElementsVersion.v2?"::":"#";t=yK(g,a).replace("#",E),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 E=r===W.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(E)}${E}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(EK,"getKeyAndEntityTypeOfReferenceFacet");function m0(e,t,n,i,r=W.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!==Tt.UIAnnotationTypes.CollectionFacet&&"Target"in e){let E=Il(e.Target);if(!E){re(i,{severity:W.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:F,namespace:M}=EK(n,l,p,E,r,a);if(F)return;l=b,p=I,u=M}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(m0,"getSectionFacet");function SK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(SK,"getDecodedPathElement");var Gb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),h0=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=SK(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=Gb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),wo=o((e,t,n,i,r=!1)=>h0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),y0=o((e,t,n,i,r)=>{h0(e,t,i,r,n)},"setManifestSectionByPathV4");function Wb(e){let t,n,i;switch(e.$Type){case Tt.UIAnnotationTypes.DataField:t=Il(e.Value);break;case Tt.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Il(e.Value);break;case Tt.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${W.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Tt.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ft(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Il(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Tt.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ft(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithNavigationPath:i=Il(e.Value),n=Il(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(Wb,"getSchemaKeyOfLineItemRecord");function AK(e,t,n){return e.includes(Tt.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Tt.UIAnnotationTerms.Chart:e.includes(Tt.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Tt.UIAnnotationTerms.Identification:n&&e.includes(Tt.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Tt.UIAnnotationTerms.LineItem:e.includes(Tt.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Tt.UIAnnotationTerms.FieldGroup:e.includes(Tt.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Tt.UIAnnotationTerms.DataPoint:e.includes(Tt.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Tt.UIAnnotationTerms.PresentationVariant:void 0}o(AK,"getUIAnnotationTerm");function PK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Su.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Su.CommunicationAnnotationTerms.Address:void 0}o(PK,"getCommunicationAnnotationTerm");function xK(e,t,n){return AK(e,t,n)||PK(e,t)}o(xK,"getAnnotationTerm");function CK(e,t,n,i,r){var p,g,m,v,E,b,I,F,M;let a=oi(W.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(xK(s,a,i)){case Tt.UIAnnotationTerms.Chart:{n[s]={base:W.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.Identification:{n[s]={base:W.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.LineItem:{if(!s.includes(Tt.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let G=s.split("::");G[G.length-1]=`@${Tt.UIAnnotationTerms.LineItem}`,s=G.join("::")}n[s]={base:W.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.FieldGroup:{n[s]={base:W.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.DataPoint:{n[s]={base:W.FacetBase.DataPoint},n[s].Label=(E=t==null?void 0:t.Target)==null?void 0:E.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.PresentationVariant:{n[s]={base:W.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Su.CommunicationAnnotationTerms.Contact:{n[s]={base:W.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 Su.CommunicationAnnotationTerms.Address:{n[s]={base:W.FacetBase.Address},n[s].target=(M=t==null?void 0:t.Target)==null?void 0:M.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:W.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",W.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(CK,"evaluateTargetAnnotation");function Kb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(Kb,"getAnnotationPathUsingFullyQualifiedName");function Xb(e,t,n,i,r,a=W.FioriElementsVersion.v2,s){var u;let l=m0(e,i,t,s,a,!1);if(l)switch(e.$Type){case Tt.UIAnnotationTypes.ReferenceFacet:{CK(l,e,r,i,t);break}case Tt.UIAnnotationTypes.CollectionFacet:{let p=Kb(i,e.fullyQualifiedName),g=r[l.key]={base:W.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===W.FioriElementsVersion.v4&&re(s,{severity:W.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{Xb(m,t,n,i,g.facets,a,s)});break}}}o(Xb,"addFacetToConfig");function lm(e,t,n=W.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=oi(W.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{Xb(m,t,g,e,r,n,i)})}return r}o(lm,"getObjectPageHeaderFacets");function fm(e,t,n=W.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=oi(W.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{Xb(g,t,p,e,r,n,i)})}return r}o(fm,"getObjectPageFacets");function Qb(e){var t,n,i,r;if(e[W.ManifestSection.generic]&&Object.keys(e[W.ManifestSection.generic]).length>0||e[W.ManifestSection.ovp]&&Object.keys(e[W.ManifestSection.ovp]).length>0)return W.FioriElementsVersion.v2;{let a=(n=(t=e[W.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[W.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let u=typeof a[l].name=="string"?a[l].name:"";return mK.indexOf(u)>-1||om(u)})||s&&Object.keys(s).find(l=>hK.indexOf(l)>-1)?W.FioriElementsVersion.v4:void 0}}o(Qb,"getFEVersionFromManifest");function IK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[W.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[W.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[W.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[W.ManifestSection.ui5].models[t].dataSource:void 0}o(IK,"getMainService");function T0(e){var i,r;let t=IK(e);if(!t)return W.OdataVersion.v2;let n=(i=e[W.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?W.OdataVersion.v4:W.OdataVersion.v2}o(T0,"getODataVersionFromManifest");function OK(e,t){var i,r;let n;if(e[W.ManifestSection.generic]){let a=e[W.ManifestSection.generic].pages;if(!a){re(t,{severity:W.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ha((i=l.component)==null?void 0:i.name)===W.PageTypeV2.AnalyticalListPage){n=W.TemplateType.AnalyticalListPageV2;break}else if(ha((r=l.component)==null?void 0:r.name)===W.PageTypeV2.ListReport){n=W.TemplateType.ListReportObjectPageV2;break}}}else n||re(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.generic}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return n}o(OK,"determineV2Template");function Pu(e){var i,r,a,s;let t,n=Hb(e);if(n===W.PageTypeV4.AnalyticalListPage)t=W.TemplateType.AnalyticalListPageV4;else if(n===W.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[W.ALPViewType.Primary]||l[W.ALPViewType.Secondary])?t=W.TemplateType.AnalyticalListPageV4:t=W.TemplateType.ListReportObjectPageV4}else n===W.PageTypeV4.ObjectPage?t=W.TemplateType.ListReportObjectPageV4:[W.PageTypeV4.CustomPage,W.PageTypeV4.FPMCustomPage].includes(n)&&(t=W.TemplateType.FreestylePageV4);return t}o(Pu,"determineV4PageTemplateType");function RK(e){let t;for(let n in e){let i=e[n];if(t=Pu(i),t)break}return t}o(RK,"determineV4TemplateFromPages");function LK(e,t){let n=e[W.ManifestSection.ui5].routing&&e[W.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return re(t,{severity:W.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing"]}}),W.TemplateType.ListReportObjectPageV4;let i=RK(n);return i||re(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.ui5}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing","targets"]}}),i}o(LK,"determineV4Template");function dc(e,t,n){let i;return e[W.ManifestSection.ovp]?i=W.TemplateType.OverviewPageV2:t===W.FioriElementsVersion.v2?i=OK(e,n):t===W.FioriElementsVersion.v4&&(i=LK(e,n)),i}o(dc,"getTemplateTypeFromManifest");function Ta(e,t,n){e!=null&&e.ID?(t.title=W.FACETTITLEPREFIX+e.ID,t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:n.replace(W.UIVOCABULARYALPHADOT,"")}])}o(Ta,"addSectionTitle");function is(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(is,"addSectionDescription");function Rl(e,t,n){var i,r;Ta(e,t,n),is(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(Rl,"addTargetTitleAndSectionDescription");function v0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(v0,"addChartFacetID");function Mo(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[W.SchemaTag.isViewNode]=!0,i[W.SchemaTag.annotationPath]=t.annotationPath,Rl(t,i,n),i}o(Mo,"createDefaultSection");function b0(e,t,n,i=W.FioriElementsVersion.v2,r=!1){var l,u;let a=oi(W.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let v=m0(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(b0,"getObjectPageFacetSection");var rs=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(),rs(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),Ub=o(e=>e===W.SchemaType.FreestylePage?W.PageTypeV2.CustomPage:e===W.SchemaType.FPMCustomPage?W.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Ft=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case W.SchemaType.Application:{i.filename="App",i.path=`./${W.DirName.Schemas}/${i.filename}`;break}case W.SchemaType.ListReport:case W.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:Ub(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}case W.PageTypeV4.FPMCustomPage:case W.SchemaType.FPMCustomPage:{i.filename=n?`${W.SchemaType.FPMCustomPage}_${n}`:Ub(W.SchemaType.FPMCustomPage),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}default:{i.filename=Ub(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function um(e,t,n,i){if(e===W.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(um,"generatePageId");function qb(e,t,n){let i=t==null?void 0:t.properties,r=t==null?void 0:t.required;if(!i&&(t!=null&&t.$ref)){let s=t==null?void 0:t.$ref,l=e.definitions[s.split(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(qb,"findMatchingKeysByAdditionalProperties");function NK(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=qb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(NK,"fillArrayFromAnyOfReference");function FK(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(U)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{NK(r,n,t,i)}),i.length===0))return;return i}o(FK,"fillArrayFromPropertyDefinition");function DK(e){return e.replace(W.UIVOCABULARYDOT,"")}o(DK,"extractUIAnnotationType");function _K(e,t,n,i,r,a,s,l){var p,g,m,v,E;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],((p=u==null?void 0:u.targetDefinition)==null?void 0:p.dataType)!==DK(Tt.UIAnnotationTypes.DataFieldForActionGroup)&&((g=u==null?void 0:u.targetDefinition)!=null&&g.$ref)||((m=u==null?void 0:u.targetDefinition)==null?void 0:m.type)==="array")return u=ko(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(M=>{M!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[M].properties})}),u.title=(v=u==null?void 0:u.targetDefinition)!=null&&v.title?u.targetDefinition.title:n;let I=b==null?void 0:b.split("<")[0],F=i||{};u.configObject=a.createInstance(s,I,F,(E=u==null?void 0:u.targetDefinition)==null?void 0:E.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(_K,"determineNextDefinitionFromDefinitionArray");function ko(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=ko(e,t,n,i.items,r,a,s),l;let u=FK(i,n,e);if(u)return l=_K(u,e,t,n,r,a,s,i),l}o(ko,"getNextTargetDefinition");var Yb=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,d0.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function pm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(pm,"convertEnumToCSV");function Yi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Yi,"convertActionKeyToStableId");function an(e){return e==null?void 0:e.split(U)[1]}o(an,"getDefinitionKey");function dm(e){return`#/definitions/${e}`}o(dm,"getDefinitionsRef");function gm(e){return e instanceof Error?e.message:String(e)}o(gm,"getErrorMessage");function gc(e,t){return e==null?void 0:e.includes(t)}o(gc,"isFeatureSupported");function jo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(jo,"updatePropertyIndices");function mm(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(mm,"getJSONPropertyByPath");function E0(e){return e=e.replace(W.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(E0,"removeNamespaces");function Ll(e){return e=e.replace(W.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Ll,"replaceNamespaces");function va(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(U))return t.substring(U.length)}o(va,"getRefType");function om(e){if(e===W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return W.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${W.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in W.PageTypeV4)return W.PageTypeV4[n]}}o(om,"convertTemplateNameToPageTypeV4");function hm(e,t){if(e===t)return!0;let n=om(e);return n?n===om(t):!1}o(hm,"compareTemplateNames");var Ro=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=Z(ae());var zi=Z(ae());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ym=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),zn=o((e,t)=>{let n,i=zi.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 VK(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(VK,"escapeId");var S0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(S0||{}),A0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(A0||{});function wK(e,t,n){let i;return e=e.map(function(r){if(r===zi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===zi.PropertyName.sections)return i=t[a+1],t[a+1]=zn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(wK,"mapBreadcrumbs");var zb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=wK(t,s,r)),s[0]===zi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH):t[0]===zi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.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}`),VK(p)},"buildColumnControlId"),Ji=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 MK(e){let t=zi.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(MK,"determinePattern");var Jb=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=MK(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),Jn=o((e,t,n)=>{Jb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(S0);Jb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ai=o((e,t,n)=>{let i=Object.values(A0);Jb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function mc(){}o(mc,"doNotDelete");var Yee=Z(x0());var Zb=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(Zb,e),"syncRule");function Mn(e,t){let n;return e&&(n=Reflect.getMetadata(Zb,e,t)),n}o(Mn,"getReflectMetadata");function C0(e){let t;return e&&(t=Reflect.getMetadata(Zb,e)),t}o(C0,"getReflectTypeMetadata");var Zi=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),I0=Symbol("childId"),kt=o(e=>Reflect.metadata(I0,e),"childId"),Tm=o((e,t)=>Reflect.getMetadata(I0,e,t),"getChildId"),vm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),kK=Symbol("descriptionSrcURL"),Ne=o(e=>Reflect.metadata(kK,e),"descriptionSrcURL");var jK=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(jK,e),"validity");function Nl(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Nl,"getTextForDeprecated");var V0=Z(D0()),w0=Z(ae());var M0=V0.default.change,_0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function k0(e,t){let n="";try{for(let i in _0)e[i]===void 0&&(e[i]=_0[i]);n=M0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(k0,"createChangeString");function Tr(e){try{return M0.parse(e)}catch{return!1}}o(Tr,"parseChangeString");function j0(e,t,n,i,r){let a=n.layer?n.layer===w0.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(j0,"fillFlexChangeContent");function bm(e,t){return k0(e,t)}o(bm,"exportToFlexChange");var hc=Z(ae());function Fl(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(Fl,"importProperty");function Em(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(re(i,{severity:hc.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Em,"checkDeprecatedProperties");function eE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(U)[1]];return eE(n,t)}else return e.title?e.title.startsWith(hc.FACETTITLEPREFIX)?e.title.split(hc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(eE,"getSectionTitle");function Sm(e){let t=e.split(`${hc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Sm,"getTargetFromCustomColumnRef");function $r(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o($r,"removeEmptyStructure");var Dt=require("@sap-ux/vocabularies-types/vocabularies/UI");var $o=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ea=require("@sap-ux/vocabularies-types/vocabularies/UI");var U0=Z(ae()),ee=Z(ae()),$0=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Mn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=wo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(Fl(m,l,g,e,a,r),Em(u,l,v,s))}}}o(Ot,"importSettingsOfObject");var rE="DataFieldForActionGroup";function KK(){return([e,t],[n,i])=>t[ee.SchemaTag.propertyIndex]-i[ee.SchemaTag.propertyIndex]}o(KK,"sortByPropertyIndex");function xu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(KK())}o(xu,"sortPropertiesRecords");function XK(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(XK,"getExtensionText");function tE(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ee.v4.Placement.After)===ee.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(tE,"addExtensionToSortedArray");function QK(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(QK,"addRemainingTargetByBefore");function B0(e,t,n,i){let r=t.includes(ee.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=XK(e);return{$ref:`${U}${r}`,description:a,keys:[{name:ee.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(B0,"getExtensionDetails");function nE(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=B0(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(E=>E[0]===g.position.anchor);v>-1?(tE(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(re(i,{severity:Fi.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&QK(e,p,g,n,m)}else r&&(tE(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?nE(e,t,n,i):s>0&&nE(e,t,n,i,!0)}o(nE,"adjustCustomExtReferringToCustomExt");function qK(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ee.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ee.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(qK,"getExtensionAnchor");function YK(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(YK,"getLocalExtensionsToSkip");function zK(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ee.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===ee.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ee.v4.Placement.Before))}),s>-1?s:0}o(zK,"getExtensionIndexByMergedApproach");function JK(e,t,n,i,r=!1){return r?zK(e,t,n):n.findIndex(a=>a[0]===i)}o(JK,"getExtensionIndex");function ZK(e,t,n,i,r){re(e,{severity:Fi.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:ee.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(ZK,"handleInvalidExtension");function ba(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=YK(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=B0(g,n,p,ee.ActionType.Custom);if(typeof g!="object"){ZK(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=qK(g,s);if(v){let E=JK(g,e,t,v,a);E>-1&&(tE(g,t,E,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&nE(l,n,t,r),t}o(ba,"addExtensionToArray");function oE(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(oE,"addEnumForProperties");function eX(e,t,n,i=ee.DefinitionName.CustomColumn){if(i===ee.DefinitionName.CustomColumn||i.indexOf(ee.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];oE(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[ee.SchemaTag.propertyIndex]=r}}o(eX,"addColumnPropertyIndexAndEnum");function yc(e,t,n,i=ee.DefinitionName.CustomColumn,r,a){var v,E,b,I;let s=r||ee.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=xu(l),p=a?a.replace(/::/g,"/"):`@${Ea.UIAnnotationTerms.LineItem}`,g=(I=(b=(E=(v=t.options)==null?void 0:v.settings)==null?void 0:E.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;g&&(u=ba(g,u,i,void 0,n)),eX(u,e,l,i);let m={};u.forEach(([F,M])=>m[F]=M),e.definitions[s].properties=m}o(yc,"addCustomColumnDefinition");function H0(e,t){let n=t.$Type===Ea.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(ee.DefinitionName.LineItemsOfView)?i=n?ee.DefinitionName.ViewToolBarActionGroup:ee.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ee.DefinitionName.LineItems)?i=n?ee.DefinitionName.ToolBarActionGroup:ee.DefinitionName.ToolBarAction:i=n?ee.DefinitionName.ObjectPageToolBarActionGroup:ee.DefinitionName.ObjectPageToolBarAction,i}o(H0,"determineActionDefinitionName");function tX(e,t,n){e[ee.SchemaTag.keys]=[],t[ee.SchemaKeyName.semanticObject]&&e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.semanticObject,value:t[ee.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Sc(n,!0);e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.action,value:i}),r&&(e[ee.SchemaTag.target]=r)}o(tX,"addTargetAndKeysOfAction");function G0(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=H0(n,a),u=ci(a,n.entityType),p=a.$Type.split(`${ee.UIVOCABULARY}.`)[1],g=typeof a.Action=="string"?a.Action:a.Action.path,m=xm(g),v=i.properties[`${p}::${m}`]={description:u};if(t?v.$ref=q0(l,ft(m),n.appSchema,r):(v.properties={},v.type="object",v.isViewNode=!0),v[ee.SchemaTag.propertyIndex]=s,v[ee.SchemaTag.dataType]=Hr(a),tX(v,a,g),v[ee.SchemaTag.annotationType]=a.$Type,t){let E=v.$ref.replace(U,""),b=vt(l,E,n.appSchema,!1);b[ee.SchemaTag.annotationPath]=`${r}/${s}`}else v[ee.SchemaTag.annotationPath]=`${r}/${s}`}o(G0,"addActionRecordToSchema");function W0(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=H0(n,i),u=Br(i),p={};t?(s.properties[`${u}`]={$ref:si(l,ft(u))},p=vt(l,ft(u),n.appSchema)):s.properties[`${u}`]=p,Pa(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ci(i,n.entityType),p.type="object",p.isViewNode=!0,p[ee.SchemaTag.propertyIndex]=a,p[ee.SchemaTag.dataType]=Hr(i),p[ee.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((g,m)=>{let v={...e,lineItemRecord:g,lineItemPath:`${p[ee.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};G0(v,t)})}o(W0,"addGroupActionRecordToSchema");function aE(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?G0(e,!n):sE(e)}o(aE,"addLineItemActionDefinition");function sE(e){var g;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Ea.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,u=t.lineItemId;if((g=n.Target)!=null&&g.value){let m=`@${oi(ee.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Br(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[u]);let v=m.properties,E={description:ci(n,t.entityType)};i?(E.properties={},E.type="object",E.isViewNode=!0):E.$ref=U+l,E[ee.SchemaTag.annotationType]=n==null?void 0:n.$Type,E[ee.SchemaTag.annotationPath]=`${r}/${a}`,E[ee.SchemaTag.propertyIndex]=a,E[ee.SchemaTag.dataType]=Hr(n),v[p]=E,Om(n,v,p)}}o(sE,"addLineItemRecordToSchema");function cE(e,t,n,i,r=ee.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};os.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(cE,"appendLineItemsToSchema");function Tc(e,t=ee.DefinitionName.TableColumn,n=ee.DefinitionName.CustomColumn,i=ee.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Cm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);cE(e,r,a,void 0,t)}o(Tc,"addLineItemsTypeToSchema");function vc(e,t,n,i=ee.DefinitionName.Position,r){var p,g,m,v,E;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==ee.DefinitionName.LineItems?r:`@${Ea.UIAnnotationTerms.LineItem}`,u=(E=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:E.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;Aa(s,b)}}o(vc,"addFragmentEnumForAnchor");function lo(e,t,n=ee.DefinitionName.CustomActionPosition){as(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(lo,"addEnumForActionAnchor");function Am(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(hm(t,e[s].name)||t===ee.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ee.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Am,"findPageV4");function K0(e,t){let n,i=e.properties[ee.PropertyName.table];return t.templateType===ee.TemplateType.AnalyticalListPageV4?(n=ee.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${U}${ee.DefinitionName.ALPTableView}`,delete e.definitions[ee.DefinitionName.Table],delete e.definitions[ee.DefinitionName.LRChartView],delete e.definitions[ee.DefinitionName.LRTableView],delete e.definitions[ee.DefinitionName.MultiTableModeV4]):t.templateType===ee.TemplateType.ListReportObjectPageV4&&(n=ee.DefinitionName.Table,delete i.anyOf,i.$ref=`${U}${ee.DefinitionName.Table}`,e.definitions[n].properties[ee.PropertyName.annotationPath][ee.SchemaTag.hidden]=!0,delete e.definitions[ee.DefinitionName.ALPTableView],e.properties[ee.PropertyName.defaultPath][ee.SchemaTag.hidden]=!0),n}o(K0,"alignSchemaWithTemplateType");function Sa(e,t,n,i=ee.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,E,b,I,F,M,G,$;let s=e.definitions[r];if(!s)return;let l=xu(s),u;a?i.indexOf(ee.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ee.DefinitionName.CustomFormActionOP?u=`@${Ea.UIAnnotationTerms.FieldGroup}`:u=`@${Ea.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ee.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(E=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:E.sections)==null?void 0:b[u])==null?void 0:I.actions:p=($=(G=(M=(F=t.options)==null?void 0:F.settings)==null?void 0:M.controlConfiguration)==null?void 0:G[u])==null?void 0:$.actions,p&&(l=ba(p,l,i,"press",n)),l){for(let te=0;te<l.length;te++)l[te][1][ee.SchemaTag.propertyIndex]=te;let se={};l.forEach(([te,le])=>se[te]=le),e.definitions[r].properties=se}}o(Sa,"addCustomActionDefinition");function Pm(e,t,n,i=ee.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,E,b,I,F;let a=e.definitions[r];if(!a)return;let s=xu(a),l;[ee.DefinitionName.CustomHeaderAction,ee.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(F=(I=(b=(E=t.options)==null?void 0:E.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:F.actions,l&&(s=ba(l,s,i,"press",n));let u={};if(s){for(let M=0;M<s.length;M++)s[M][1][ee.SchemaTag.propertyIndex]=M;s.forEach(([M,G])=>u[M]=G)}e.definitions[r].properties=u}o(Pm,"addHeaderFooterCustomActionDefinition");function bc(e,t,n){let i=mm(e,[ee.ManifestSection.ui5,"routing","targets"]);if(!i){re(n,{severity:Fi.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}let r=mm(i,[t]);if(!r){re(n,{severity:Fi.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}return r}o(bc,"getManifestPage");function Ec(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,$0.join)(...p,g),v=e.find(E=>E.dataSourceUri.endsWith(m));if(v){let E=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:E==null?void 0:E.contextPath,entitySet:E==null?void 0:E.entitySet}}}}}o(Ec,"getPageCustomExtensionFile");function Uo(e,t,n,i){let r=bc(n,t,i),a=mm(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ec(e,r,n,"view",a):void 0}o(Uo,"getPageCustomViewFile");function X0(e,t,n,i,r,a,s){var g,m,v,E,b,I,F,M,G,$,se,te;let l=xu(t),u=new Map;if(l=l.map(le=>{let Re=Im(e,le[1],le[0],{keyProperties:[ee.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Re.const,le[0]),[Re.const,le[1]]}),a){let le=(b=(E=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:E.sections)==null?void 0:b[a];le&&"subSections"in le&&(l=ba(le.subSections,l,i,"template",s,r))}else if(i.includes(ee.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let le=(M=(F=(I=n.options)==null?void 0:I.settings)==null?void 0:F.content)==null?void 0:M.header;le&&"facets"in le&&(l=ba(le.facets,l,i,"template",s,r))}else{let le=(te=(se=($=(G=n.options)==null?void 0:G.settings)==null?void 0:$.content)==null?void 0:se.body)==null?void 0:te.sections;le&&(l=ba(le,l,i,"template",s,r))}for(let le=0;le<l.length;le++)l[le][1][ee.SchemaTag.propertyIndex]=le;let p={};l.forEach(([le,Re])=>{le=u.get(le)||le,p[le]=Re}),t.properties=p}o(X0,"addCustomSectionDefinition");function Q0(e,t,n){var l,u,p;let i=xu(t),r=new Map;i=i.map(g=>{let m=Im(e,g[1],g[0],{keyProperties:[ee.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Ea.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ba(a.filterFields,i,ee.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ee.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(Q0,"addCustomFilterFieldDefinition");function iE(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:u,manifestSectionId:p,targetAnnotation:g}=e,m=(t??"").split("<")[0],v=r.createInstance(U0.PageTypeV4.ObjectPage,m),E=[s.replace("/","??")];if(g&&E.push(g),v){let b=a[s]=v;Ot(b,l,i.definitions[t],u,E,p),n||$r(a,s)}}o(iE,"importActionToConfigurationObject");function nX(e,t){let{actionPropertyDefinition:n}=e,i=an(t.$ref||n.$ref);iE(e,i)}o(nX,"importSingleActionSettingsOfReference");function iX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=an(t.$ref??n.$ref);iE(e,s,!0);let l=r[a];Pa(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:u}=t;for(let p in u){let g=u[p],m=an(g.$ref),v=i.definitions[m],E=an(v.$ref??g.$ref),b={...e,actionsInConfig:l,actionKey:p};iE(b,E)}$r(r,a)}o(iX,"importGroupActionSettingsOfReference");function Dl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=an(t.$ref),r=n.definitions[i];r.dataType===rE?iX(e,r):nX(e,r)}o(Dl,"importActionSettingsOfReference");var vE=class vE{addDefinition(t){Y0(t)}addLineItemDefinition(t){sE(t)}};o(vE,"DataFieldStrategy");var fo=vE,bE=class bE extends fo{generateStableId(t){return xa("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=ya(t.Label,n);return cm(t,i)}addDefinition(t){Cu(t)}addLineItemDefinition(t){aE(t)}};o(bE,"DataFieldForActionStrategy");var lE=bE,EE=class EE extends fo{generateStableId(t){return xa("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=ya(t.Label,n);return t.Label??t.ID??i}addDefinition(t){Cu(t)}addLineItemDefinition(t){var n;W0(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(EE,"DataFieldForActionGroupStrategy");var fE=EE,SE=class SE extends fo{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+LE(t)}generateDescription(t,n){let i=ya(t.Label,n);return cm(t,i)}addDefinition(t){Cu(t)}addLineItemDefinition(t){aE(t)}};o(SE,"DataFieldForIntentBasedNavigationStrategy");var uE=SE,AE=class AE extends fo{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+xa(n)}generateDescription(t,n){var a,s,l,u;let i=Au(t,n);return ya(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((u=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:u.split("UI.v1.")[1])}};o(AE,"DataFieldForAnnotationStrategy");var pE=AE,PE=class PE extends fo{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=ss(t.Value)+"::"),n+=t.Action,xa(n)}generateDescription(t,n){let i=ya(t.Label,n);return cm(t,i)}};o(PE,"DataFieldWithActionStrategy");var dE=PE,xE=class xE extends fo{generateStableId(t){return xa("DataField::"+ss(t.Value))}generateDescription(t,n){let i=ya(t.Label,n);return Bb(t,n,i)}};o(xE,"DataFieldStrategyDefault");var gE=xE,CE=class CE extends fo{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=ss(t.Value)+"::",n+=LE(t),xa(n)}generateDescription(t,n){return Au(t,n)||t.Value.path}};o(CE,"DataFieldWithIntentBasedNavigationStrategy");var mE=CE,IE=class IE extends fo{generateStableId(t){let n="DataFieldWithNavigationPath::"+ss(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),xa(n)}generateDescription(t,n){let i=ya(t.Label,n);return Bb(t,n,i)}};o(IE,"DataFieldWithNavigationPathStrategy");var hE=IE,OE=class OE extends fo{generateStableId(t){return xa("DataFieldWithUrl::"+ss(t.Value))}generateDescription(t,n){let i=Au(t,n);return ya(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(OE,"DataFieldWithUrlStrategy");var yE=OE,RE=class RE{constructor(){this.strategies=new Map,this.registerStrategy($o.UIAnnotationTypes.DataFieldForAction,new lE),this.registerStrategy($o.UIAnnotationTypes.DataFieldForActionGroup,new fE),this.registerStrategy($o.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new uE),this.registerStrategy($o.UIAnnotationTypes.DataFieldForAnnotation,new pE),this.registerStrategy($o.UIAnnotationTypes.DataFieldWithAction,new dE),this.registerStrategy($o.UIAnnotationTypes.DataField,new gE),this.registerStrategy($o.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new mE),this.registerStrategy($o.UIAnnotationTypes.DataFieldWithNavigationPath,new hE),this.registerStrategy($o.UIAnnotationTypes.DataFieldWithUrl,new yE)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(RE,"DataFieldStrategyContext");var TE=RE,os=new TE;function xm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(xm,"replaceSpecialChars");var xa=o(function(e){return xm(E0(e))},"prepareId");function rX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(rX,"evaluateConcat");function ss(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 rX(e);if(e&&typeof e=="string")return xm(e.replace(/ /g,"_"))}o(ss,"getStableIdPartFromValue");var LE=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Br=o(function(e){let t=os.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var fe=Z(ae());var De=Z(ae());var er=require("@sap-ux/vocabularies-types/vocabularies/UI"),e_=require("path"),t_=Z(uc());var Rm="ResponsiveTableWithMultiSelect<LineItems>",Lm="ResponsiveTableWithInlineDelete<LineItems>",oX="TreeTable<LineItems>",aX="AnalyticalTable<LineItems>",sX="GridTable<LineItems>",NE=[Rm,Lm,oX,aX,sX],z0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],J0="template::",Nm="template:::ObjectPageAction:::";function cX(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(cX,"addCustomColumnDefinition");function lX(e,t){let n;return e==="TableColumnActionIntentBased"?n=Wb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ft(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===er.UIAnnotationTypes.DataFieldForAction?n=ft(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ft(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(lX,"getActionId");function FE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=lX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=ci(n.lineItemRecord,n.entityType);t.properties[l]={$ref:U+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=Sc(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(FE,"handleActionRecord");function fX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===er.UIAnnotationTypes.DataFieldForAction||t.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(fX,"getColumnActionType");function uX(e,t){let n=[];if(!(e.$Type!==er.UIAnnotationTypes.DataFieldForAction&&e.$Type!==er.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),fX(t,e,n),n}o(uX,"getActionType");function n_(e,t,n){let i=Wb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:U+De.DefinitionName.TableColumn,description:ci(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Vm(r.properties[i],e.lineItemRecord),Om(e.lineItemRecord,r.properties,i)}}o(n_,"generateGenericColumn");function pX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{FE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&FE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{FE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":n_(i,t,r)}}o(pX,"handleAnyAction");function Iu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Iu,"retrieveNameWithoutVocabularyFromVisualization");function _l(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=Cm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=uX(g,r);v?v.forEach(E=>{pX(E,t,s,m,p,l,r)}):n_(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${U}${a}`})}o(_l,"addLineItemsType");function dX(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(dX,"addListReportLeadingProperties");function gX(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 E in a){let b=(m=a[E])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}Aa(v,r)}}o(gX,"addTabkeyEnum");function Fm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,t_.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("\\"+e_.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),Aa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Fm,"addFragmentEnum");function Vl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){cX(e,a,s),dX(e,t,s),gX(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Fm(e,r,u,"fragmentName",s),Fm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Fm(e,r,u,"cellsFragmentName",s),Fm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Vl,"addTableColumnExtensions");function i_(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(i_,"removeElementsFromEnum");function Dm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=yr(n==null?void 0:n.fullyQualifiedName,er.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ft(s.value)}>`,p=Hr(s);s.type==="PropertyPath"&&(l=sm(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(Dm,"addSelectionFields");function r_(e,t){for(let n of t.entityProperties)e.push(n.name)}o(r_,"addEntityPropertiesToEnum");function _m(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(_m,"isDraftEnabled");function o_(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(o_,"isEntityDeletable");function a_(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(a_,"isEntityUpdatable");function wl(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(wl,"addStandardHeaderActions");function s_(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(s_,"addStandardFooterActionsOP");function Ml(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});re(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(Ml,"getUIAnnotationForEntitySet");function mX(e,t,n,i){if(e===fe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Dt.UIAnnotationTypes.DataField:case Dt.UIAnnotationTypes.DataFieldForAnnotation:case Dt.UIAnnotationTypes.DataFieldWithNavigationPath:case Dt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===fe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Dt.UIAnnotationTypes.DataField:case Dt.UIAnnotationTypes.DataFieldForAnnotation:case Dt.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(mX,"copyFieldProperties");function _E(e,t,n,i){let r=e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===fe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(_E,"determineFieldDefinitionName");function hX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][fe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(hX,"addKeysTagForDataField");function yX(e,t,n){if(e.$Type===Dt.UIAnnotationTypes.DataField||e.$Type===Dt.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Dt.UIAnnotationTypes.DataFieldWithNavigationPath)hX(e,t,n);else if(e.$Type===Dt.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][fe.SchemaTag.keys]=[{name:"Target",value:Ll(e.Target.value)}],t.definitions[n][fe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Dt.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][fe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Dt.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][fe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(yX,"addKeysTagToField");function TX(e){var t,n;return e.$Type===Dt.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Dt.UIAnnotationTypes.ConnectedFieldsType}o(TX,"isConnectedField");function vX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Dt.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 E=u.findIndex(b=>b===m);E===-1&&(E=g,g++),DE(e,t,v,`ConnectedFields::${a.qualifier}`,E.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(vX,"addConnectedFields");function c_(e,t,n){if(n)return n;let i=ft(t);return e.definitions[i].properties}o(c_,"getFieldsSchemaContainer");function VE(e,t){return e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(VE,"getFieldReference");function DE(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let g={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:u,key:r,version:s,section:a,entityTypeName:p};os.getStrategy(n.$Type).addDefinition(g)}o(DE,"addField");function bX(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(bX,"determineTargetIdOfForm");function EX(e,t,n,i,r,a){if(e.base===fe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&DE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];DE(t,n,l,i,s,e,r)}}o(EX,"addFieldsToFormDefinition");function SX(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][fe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][fe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][fe.SchemaTag.annotationPath]=yr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(SX,"addTagsToFormDefinition");function wm(e,t,n,i,r,a){if(!t.target)return;let s=bX(t),l=ft(`${e}${fe.DefinitionName.Form}<${s}>`),u=ft(`${e}${fe.DefinitionName.Fields}<${s}>`),p=ft(`${e}${fe.DefinitionName.Actions}<${s}>`),g=!(t.base===fe.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${U}${l}`},e===fe.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][fe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},SX(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][fe.SchemaTag.isViewNode]=!0,EX(t,e,i,s,r,g),s}o(wm,"handleForm");function wE(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(wE,"replaceAlias");function Mm(e,t){let n=wE(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(Mm,"getActionNameAndId");function l_(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:l_(a.pages,t)}}o(l_,"isFirstObjectPage");function km(e,t,n,i,r){var g,m;e.definitions[fe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${U}${fe.DefinitionName.ObjectPageFooter}`},e.definitions[fe.DefinitionName.ObjectPageFooter].properties[fe.PropertyName.actions]={$ref:`${U}${fe.DefinitionName.FooterActions}`};let a=e.definitions[fe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[fe.SchemaTag.isViewNode]=!0;let s=oi(fe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${Dt.UIAnnotationTerms.Identification}`,`/@${Dt.UIAnnotationTerms.Identification}`);a[fe.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[fe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Dt.UIAnnotationTerms.Identification}`);n===fe.FioriElementsVersion.v2&&l_(r,t)&&!_m(l)&&s_(e,a),delete e.definitions[fe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${fe.DefinitionName.ObjectPageFooter}<${fe.DefinitionName.ObjectPageFooterActions}>`]}o(km,"addFooterActions");function jm(e,t,n,i,r,a=!1){var m,v;let s=fe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[fe.DefinitionName.ObjectPageHeader].properties[fe.PropertyName.actions]={$ref:`${U}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[fe.SchemaTag.isViewNode]=!0;let p=oi(fe.UIVOCABULARY,n.serviceAVT),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[fe.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Dt.UIAnnotationTerms.Identification}`,`/@${Dt.UIAnnotationTerms.Identification}`):t&&(u[fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Dt.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&wl(e,!0,l)}o(jm,"addHeaderActions");function Um(e,t){e.properties.header={$ref:`${U}${fe.DefinitionName.ObjectPageHeader}`},e.definitions[fe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[fe.DefinitionName.ObjectPageHeader][fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Dt.UIAnnotationTerms.HeaderInfo}`)}o(Um,"addCommonHeaderSchema");function f_(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(f_,"determineEntitySetOfEntityType");function Y0(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Br(r),g=VE(u,p),m=_E(u,p,a,g),v=c_(t,`${i}${fe.DefinitionName.Fields}<${a}>`,s.fields),E={};v[g]={$ref:`${U}${m}`,propertyIndex:parseInt(l)},TX(r)&&(E=vX(i,t,r,n,u)),u_(e,m,E)}o(Y0,"addDataFieldDefinition");function Cu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Br(r),g=VE(u,p),m=_E(u,p,a,g),v={};if(n&&i===fe.SectionType.Section){let E=c_(t,`${i}${fe.DefinitionName.Actions}<${a}>`,s.actions),b=E[g]={$ref:`${U}${m}`};b[fe.SchemaTag.propertyIndex]=parseInt(l)}AX(e,m,v),u_(e,m,v)}o(Cu,"addDataFieldForActionAndActionGroupDefinition");function AX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===Dt.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},u=Br(s),p=VE(a,u),g=_E(a,u,t,p);Cu(l),n[p]=i.definitions[g]})}o(AX,"addGroupedActionsToDefinition");function u_(e,t,n={}){var u,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ci(r,s.entityType),additionalProperties:!1},r.$Type===Dt.UIAnnotationTypes.DataFieldForActionGroup&&Pa(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),yX(r,i,t),i.definitions[t][fe.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][fe.SchemaTag.annotationType]=r.$Type,i.definitions[t][fe.SchemaTag.isViewNode]=!0,Vm(i.definitions[t],r),mX(a,i,r,t),r.$Type===Dt.UIAnnotationTypes.DataFieldForAction&&((u=i.definitions)!=null&&u[fe.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${U}${fe.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===Dt.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[fe.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${U}${fe.DefinitionName.ObjectPageFormActionGroup}`)}o(u_,"writeDefinitionToSchema");var vr=require("@sap-ux/vocabularies-types/vocabularies/UI");var Xe=Z(ae());function Aa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Aa,"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)}}Aa(r,n)}o(Ou,"addEnumForValidAnnotations");function cs(e,t,n){let i=t.definitions[n].properties[Xe.SchemaTag.annotationPath],r=[vr.UIAnnotationTerms.SelectionVariant,vr.UIAnnotationTerms.SelectionPresentationVariant];Ou(e,r,i)}o(cs,"addEnumForSingleTabVariant");function p_(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[vr.UIAnnotationTerms.SelectionVariant,vr.UIAnnotationTerms.SelectionPresentationVariant];Ou(n.entityType,r,i)}o(p_,"addEnumForMultiTabVariant");function d_(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Aa(r,i)}o(d_,"addEnumForVariantEntitySet");function g_(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[vr.UIAnnotationTerms.FieldGroup];Ou(e,r,i)}o(g_,"addEnumFieldGroupAnnotationPath");function m_(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Xe.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${U}${Xe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(m_,"addDefinitionForRelatedFacetKeys");function Ac(e){return e.replace("#","::")}o(Ac,"getFacetKeyInSchema");function Ru(e,t){return`${e}<${Ac(t)}>`}o(Ru,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=Ru(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function $m(e,t,n){let i;return t===Xe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${vr.UIAnnotationTerms.LineItem}`?i=`${U}${n}`:(i=`${U}${n}<${t}>`,vt(n,t,e,!0)),i}o($m,"getCustomExtensionDefinitionName");function Cm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Xe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=$m(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let u=e?Xe.DefinitionName.ObjectPageToolBar:Xe.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${Xe.DefinitionName.Actions}<${ft(r)}>`;t.definitions[p].properties.actions.$ref=U+g;let m=r.startsWith(Xe.DefinitionName.LineItems)?Xe.DefinitionName.Actions:Xe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=$m(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let E,b;if(r===Xe.DefinitionName.LineItems&&t.properties.footer){b=`${Xe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${U}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Xe.DefinitionName.GenericFooter}))}let I=`${Xe.DefinitionName.FooterActions}<${ft(r)}>`;t.definitions[b].properties.actions.$ref=U+I,E=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.Actions])),E.properties={},E.additionalProperties=!1}return n&&(l=yr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Xe.SchemaTag.annotationPath]=l,E&&(t.definitions[b][Xe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:E,lineItemPath:l}}o(Cm,"addCommonLineItemDefinitions");function h_(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(h_,"getDataTypeFromAnnotation");function Pc(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=h_(e.$Type)),t}o(Pc,"determineDataTypeOfTarget");function Hr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Pc((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=h_(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(Hr,"determineDataType");function Vm(e,t){let n=Hr(t);n&&(e[Xe.SchemaTag.dataType]=n)}o(Vm,"addDataTypeToDefinition");function si(e,t){return`${U}${Ru(e,t)}`}o(si,"getFacetDefinitionLink");function q0(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=si(e,l),r++;let u=n.definitions[Ru(e,l)],p=((u==null?void 0:u.annotationPath)??"").split("/").slice(0,-1).join("/");a=!u||p===i}while(!a);return s}o(q0,"getUniqueFacetDefinitionLink");function ls(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${U}${i}`}o(ls,"addDefinitionRef");function Bm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Xe.UIVOCABULARY}`);t=`/${n}/@${Xe.UIVOCABULARY}${i}`}return t}o(Bm,"getFacetAnnotationPath");function Lu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:si(a?u:l,t)};let p=vt(a?u:l,t,i,!0);Ta(e,p,t),is(e,p,t),p[Xe.SchemaTag.annotationPath]=e.annotationPath,p[Xe.SchemaTag.isViewNode]=!0}o(Lu,"handleAddressContact");function ME(e,t,n){typeof e=="object"&&(e[t]=n)}o(ME,"updateSchemaProperty");function kl(e,t,n=ft("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Xe.DefinitionName.Fields4Dialog}${n}`];ME(r.properties.fields.items,"enum",i)}o(kl,"addFieldsType");function PX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(PX,"findFirstSchemaDefinitionKey");function Im(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=an(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=PX(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(Im,"getEnumEntry");function as(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=Im(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];ME(l,"oneOf",r)}else ME(a,"oneOf",r)}o(as,"addDescriptiveEnumDefinition");function Sc(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(Sc,"getActionKey");function Om(e,t,n){var i,r,a;try{if(e.Value)t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.value,value:ss(e.Value)}];else if(e.$Type===vr.UIAnnotationTypes.DataFieldWithAction||e.$Type===vr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Sc(e.Action,!0);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.action,value:s}],l&&(t[n][Xe.SchemaTag.target]=l)}else if(e.$Type===vr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Sc(e.Target.value,!1);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.target,value:Ll(s)}],t[n][Xe.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===vr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===vr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=Sc(s,!0);t[n][Xe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Xe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Xe.SchemaTag.target]=u)}}catch{return}}o(Om,"addKeyToDefinition");function ci(e,t){try{return os.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ci,"getDataFieldDescription");function Pa(e,t){e[Xe.SchemaTag.messages]||(e[Xe.SchemaTag.messages]=[]),Array.isArray(e[Xe.SchemaTag.messages])&&e[Xe.SchemaTag.messages].push({text:t})}o(Pa,"addMessageToSchema");var jl=Z(ae());var y_=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var v_="1.108.60";var b_={name:"@sap/ux-specification",version:v_,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas -s htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.36.0","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.108.60","@sapui5/ts-types-esm":"latest-1.108","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.11.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.3.0",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.2","typescript-json-schema":"0.65.1","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var fs=class fs{constructor(){fs.distTagsOfSpec.length===0&&(fs.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){fs.distTagsOfSpec=[]}getSpecVersion(){return v_}getDistTagsOfVersion(){let t=[],n=y_,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});re(n,{severity:jl.LogSeverity.Info,message:r,location:{path:jl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(fs.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});re(n,{severity:jl.LogSeverity.Warning,message:r,location:{path:jl.MANIFESTPATH}})}}};o(fs,"DistTagEvaluator"),fs.distTagsOfSpec=[];var Nu=fs;var ue=Z(ae());var jn=Z(ae());var Ei=Z(ae());function E_(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(E_,"getCustomPageFullName");function IX(e){let n=E_(e).split(".");return n[n.length-1]}o(IX,"getCustomPageName");function S_(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)||Ei.ViewTypes.XML}o(S_,"getViewType");function OX(e,t){return S_(e,t).toLowerCase()}o(OX,"getViewTypeExtension");function RX(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=E_(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(RX,"getViewPath");function LX(e,t){let n=e.entitySet||IX(e),{viewPath:i,fileName:r}=RX(e,t,[n]),a=OX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(LX,"getCustomPagePath");var kE=class kE{constructor(t,n,i,r){this.unhandledControllers=[];let a=Ft(Ei.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)===Ei.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Ei.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[Ei.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=S_(t,this.app)===Ei.ViewTypes.XML&&!!t.config;if(t.pageType===Ei.PageTypeV4.CustomPage||t.pageType===Ei.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Ft(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=Ft(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Ft(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Ei.PageTypeV4.CustomPage||t.pageType===Ei.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=LX(t,this.app);n.$filePath=i}};o(kE,"AppProvider");var us=kE;var ut=Z(ae());var Ul=Z(ae());var Kn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),A_=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"),P_=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 jE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(jE,"getNewPageTemplate");function NX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(NX,"findPageInManifest");function FX(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=jE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:jE(e[t].pageType)}),!Array.isArray(n.pages))){let i=NX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=jE(e[t].pageType)),UE(t,e,i)}}o(FX,"transformPageFromAssociation");function DX(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===Ul.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Ul.PageTypeV2.ListReport||n.pageType===Ul.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(DX,"deletePage");function UE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Ul.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)FX(t,r,n);Array.isArray(n.pages)||DX(n,t,i)}}o(UE,"transformPageToNewManifestV2");var lV=Z(uc());var RA={};lc(RA,{ALPAnalyticalTable:()=>OS,ALPGridTable:()=>IS,ALPResponsiveTable:()=>CS,Action:()=>FS,AnalyticalCard:()=>Wl,AnalyticalCardSettings:()=>Km,AnalyticalCardSettingsv4:()=>KE,AnalyticalListPageFilterBar:()=>tS,AnalyticalTable:()=>xS,BaseCustomSection:()=>lp,ChartSettings:()=>YS,ChartSettingsType:()=>BE,CommonCardSettings:()=>ms,CommonFilterBar:()=>Hu,CommonHeaderFacetSettings:()=>_c,CommonTableSettings:()=>vs,CommonTableSettingsForSections:()=>jc,CreateWithFilters:()=>TS,CustomCard:()=>GE,DataLoadSettings:()=>bS,DateRange:()=>zE,DefaultDateRange:()=>JE,DefaultSpanObject:()=>HE,FRAGMENT_DEFINITION:()=>Ho,Field:()=>YE,FieldForAction:()=>aS,Fields4Dialog:()=>ES,Fields4DialogOP:()=>AA,FooterAction:()=>_S,FormAction:()=>oS,GlobalChartSettings:()=>EA,GlobalTableSettings:()=>IA,GridTable:()=>RS,HeaderActionStandard:()=>jS,HeaderSections:()=>rA,KPISettings:()=>zS,LinkListCardSettings:()=>QE,LinklistCard:()=>Uu,ListCard:()=>Gl,ListCardSettings:()=>WE,ListReportFilterBar:()=>nS,MultiEdit:()=>vS,ObjectPageAnalyticalTable:()=>PA,ObjectPageChart:()=>bA,ObjectPageCustomSectionFragment:()=>fp,ObjectPageCustomSectionView:()=>up,ObjectPageFooterAction:()=>aA,ObjectPageFooterActionStandard:()=>$S,ObjectPageGridTable:()=>xA,ObjectPageHeader:()=>JS,ObjectPageHeaderAction:()=>ZS,ObjectPageHeaderActionStandard:()=>US,ObjectPageHeaderSectionAddress:()=>iA,ObjectPageHeaderSectionChart:()=>tA,ObjectPageHeaderSectionDataPoint:()=>nA,ObjectPageHeaderSectionForm:()=>eA,ObjectPageLayout:()=>cA,ObjectPageResponsiveTable:()=>Uc,ObjectPageSectionAddressV2:()=>dA,ObjectPageSectionChartV2:()=>uA,ObjectPageSectionContactV2:()=>gA,ObjectPageSectionFormV2:()=>fA,ObjectPageSectionTableV2:()=>pA,ObjectPageSectionV2:()=>lA,ObjectPageSubSectionChartV2:()=>yA,ObjectPageSubSectionContactV2:()=>TA,ObjectPageSubSectionFormV2:()=>hA,ObjectPageSubSectionTableV2:()=>vA,ObjectPageSubSectionV2:()=>mA,ObjectPageToolBarAction:()=>OA,ObjectPageTreeTable:()=>CA,QuickVariantSelection:()=>SS,QuickVariantSelectionOP:()=>SA,QuickVariantSelectionX:()=>AS,ResponsiveTable:()=>Rc,SAP_UI_TABLE:()=>Zm,SaveAndEditOP:()=>kS,SelectionFieldDateSettings:()=>ZE,SelectionFields:()=>eS,Share:()=>VS,ShareOP:()=>wS,StackCard:()=>ju,StackCardSettings:()=>XE,TableALP:()=>Yl,TableCard:()=>Kl,TableCardSettings:()=>qE,TableColumn:()=>GS,TableColumnAction:()=>bh,TableColumnActionIntentBased:()=>WS,TableCustomColumn:()=>KS,ToolBar:()=>QS,ToolBarAction:()=>DS,TreeTable:()=>PS,UpAndDownNavigationOP:()=>MS,buildIntentBasedActionId:()=>BS,deleteColumnFromFragment:()=>nh,deleteType:()=>Jl,exportColorPalette:()=>O_,exportCreateParametersFields:()=>fh,exportCustomColumnsToFragment:()=>hS,exportDateSettingsField:()=>F_,exportDefaultSpan:()=>R_,exportType:()=>zl,getChartSectionControlId:()=>rV,getContactSubSectionControlId:()=>aV,getCustomColumnPath:()=>ih,getFormSectionControlId:()=>iV,getRootCustomColumnFromFragmentJSON:()=>Ku,getSectionControlId:()=>Mc,getSmartChartControlId:()=>tp,getSmartTableControlId:()=>Oc,getSubSectionControlId:()=>oV,getTableSectionControlId:()=>nV,importCreateParameters:()=>lh,importDateSettings:()=>iS});var Zn=Z(ae());var je=o(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),uo=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),x_=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),C_=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var An=o(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),Pe=o(e=>{let t=[Zn.ManifestSection.ovp];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var xc=o((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Wm=o(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Di=o(e=>{let t=[];return t.push(Wm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Cc=o(e=>Di(e)+"/tableSettings","getGlobalTableSettingsPathV2"),po=o((e,t,n)=>{let i=[];i.push(Wm(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Wr=o((e,t,n)=>po(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),I_=o((e,t,n)=>po(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),$E=o(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ca=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join("|");return i.unshift(u),`${$E()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Gm=class Gm{};o(Gm,"ApplicationV2"),h([kt("settings")],Gm.prototype,"settings",2);var Hm=Gm,Gr=class Gr{};o(Gr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Gr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Gr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Gr.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Gr.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),Ne("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Gr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"statePreservationMode",2);var ps=Gr;var Fu=Z(ae());function _X(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=Fu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Fu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Fu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(_X,"importColorPalette");function O_(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Fu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(O_,"exportColorPalette");function R_(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(R_,"exportDefaultSpan");var Xm=class Xm{};o(Xm,"ChartSettingsType"),h([y({manifest:{path:o(()=>An()+"/chartSettings","path")}})],Xm.prototype,"showDataLabel",2);var BE=Xm,ds=class ds{};o(ds,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"cols",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"rows",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"minimumSubTitleRow",2);var HE=ds,Kt=class Kt{};o(Kt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"title",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"category",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Pe(t),"path"),export:R_}})],Kt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"customParams",2);var ms=Kt,$l=class $l{};o($l,"CustomCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],$l.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],$l.prototype,"template",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],$l.prototype,"settings",2);var GE=$l,gs=class gs extends ms{};o(gs,"ListCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"listType",2);var WE=gs,Du=class Du{};o(Du,"ListCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Du.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Du.prototype,"template",2);var Gl=Du,go=class go extends ms{};o(go,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],go.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],go.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],go.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],go.prototype,"navigation",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],go.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],go.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Pe(t),"path"),import:_X,export:O_}})],go.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],go.prototype,"bEnableStableColors",2);var Km=go,Qm=class Qm extends Km{};o(Qm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Qm.prototype,"measureAggregate",2);var KE=Qm,_u=class _u{};o(_u,"AnalyticalCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],_u.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],_u.prototype,"template",2);var Wl=_u,Bl=class Bl extends ms{};o(Bl,"StackCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Bl.prototype,"itemText",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Bl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Bl.prototype,"objectStreamCardsSettings",2);var XE=Bl,Vu=class Vu{};o(Vu,"StackCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Vu.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Vu.prototype,"template",2);var ju=Vu,Hl=class Hl extends ms{};o(Hl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Hl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Hl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Hl.prototype,"staticContent",2);var QE=Hl,wu=class wu{};o(wu,"LinklistCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],wu.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],wu.prototype,"template",2);var Uu=wu,Mu=class Mu extends ms{};o(Mu,"TableCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Mu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Mu.prototype,"enableAddToInsights",2);var qE=Mu,ku=class ku{};o(ku,"TableCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ku.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ku.prototype,"template",2);var Kl=ku;var L_=Z(ae());var VX=o((e,t,n,i,r)=>{let a=zn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),qm=class qm{};o(qm,"Field"),h([y({flex:{controlId:VX,controlType:o(()=>L_.ControlType.GroupElement,"controlType")},generate:mt})],qm.prototype,"visible",2);var YE=qm;var Ic=Z(ae());function iS(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(iS,"importDateSettings");function wX(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(wX,"importDateSettingsField");function F_(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(F_,"exportDateSettingsField");var Xl=class Xl{};o(Xl,"DateRange"),h([y({manifest:{path:o(t=>je(t)+Ic.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Xl.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+Ic.DATESETTINGSPATH,"path"),import:iS,export:pm}}),x({since:"1.77.0"})],Xl.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+Ic.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Xl.prototype,"exclude",2);var zE=Xl,Ym={controlId:zt,controlType:o(()=>Ic.ControlType.SmartFilterBar,"controlType")},$u={path:o((e,t,n)=>`${je(e)}${Ic.DATESETTINGSPATH}/fields/${n}`,"path")},N_={...$u,import:wX,export:F_},zm=class zm{};o(zm,"DefaultDateRange"),h([y({manifest:$u}),x({since:"1.90.0"})],zm.prototype,"operation",2);var JE=zm,hs=class hs{};o(hs,"SelectionFieldDateSettings"),h([y({manifest:N_}),x({since:"1.77.0"})],hs.prototype,"selectedValues",2),h([y({manifest:$u}),x({since:"1.77.0"})],hs.prototype,"exclude",2),h([y({manifest:$u}),x({since:"1.77.0"})],hs.prototype,"customDateRangeImplementation",2),h([y({manifest:N_}),x({since:"1.77.0"})],hs.prototype,"filter",2),h([y({manifest:$u}),x({since:"1.90.0"})],hs.prototype,"defaultValue",2);var ZE=hs,rS=class rS{};o(rS,"SelectionFields");var eS=rS,mo=class mo{};o(mo,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],mo.prototype,"smartVariantManagement",2),h([y({flex:Ym}),x({since:"1.40.0"})],mo.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],mo.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],mo.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:iS}}),x({since:"1.77.0"})],mo.prototype,"dateSettings",2),h([y({flex:Ym}),x({since:"1.28.0"})],mo.prototype,"showClearOnFB",2),h([y({flex:Ym}),x({since:"1.38.0"})],mo.prototype,"showFilterConfiguration",2),h([y({flex:Ym}),x({since:"1.28.0"})],mo.prototype,"showRestoreOnFB",2);var Hu=mo,Bu=class Bu extends Hu{};o(Bu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],Bu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Bu.prototype,"filterDefaultsFromSelectionVariant",2);var tS=Bu,Jm=class Jm extends Hu{};o(Jm,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),Ne("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],Jm.prototype,"annotationPath",2);var nS=Jm;var sS=Z(ae());var MX=o((e,t,n,i,r)=>{if(i()===sS.ControlType.Button){let a=n[n.length-1],s=zn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),Bo={controlId:MX,controlType:o(()=>sS.ControlType.Button,"controlType")},ys=class ys{};o(ys,"FormAction"),h([y({flex:Bo,generate:mt})],ys.prototype,"visible",2),h([y({flex:Bo})],ys.prototype,"tooltip",2),h([y({flex:Bo})],ys.prototype,"icon",2),h([y({flex:Bo})],ys.prototype,"activeIcon",2),h([y({flex:Bo})],ys.prototype,"type",2);var oS=ys,Ts=class Ts{};o(Ts,"FieldForAction"),h([y({flex:Bo,generate:mt})],Ts.prototype,"visible",2),h([y({flex:Bo})],Ts.prototype,"tooltip",2),h([y({flex:Bo})],Ts.prototype,"icon",2),h([y({flex:Bo})],Ts.prototype,"activeIcon",2),h([y({flex:Bo}),x({since:"1.73.0"})],Ts.prototype,"type",2);var aS=Ts;var Et=Z(ae()),ho=Z(uc());var uS=require("path"),t3=Z(ae()),W_=Z(G_()),K_=require("fs");var n3=(0,uS.join)(__dirname,"templates");var i3=o((e,t)=>{let n=(0,K_.readFileSync)(e,"utf8");return(0,W_.render)(n,t)},"renderTemplate");var pS=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 i3((0,uS.join)(n3,t+".xml"),n)},"getSingleColumnContent"),dS=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=pS(i,t);n=n+`
|
|
288
|
+
}`;var nt=nL(function(){return At(C,Oe+"return "+ne).apply(e,L)});if(nt.source=ne,Bv(nt))throw nt;return nt}o(YH,"template");function zH(c){return It(c).toLowerCase()}o(zH,"toLower");function JH(c){return It(c).toUpperCase()}o(JH,"toUpper");function ZH(c,f,d){if(c=It(c),c&&(d||f===e))return uO(c);if(!c||!(f=pr(f)))return c;var T=oo(c),S=oo(f),C=pO(T,S),L=dO(T,S)+1;return es(T,C,L).join("")}o(ZH,"trim");function eG(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,mO(c)+1);if(!c||!(f=pr(f)))return c;var T=oo(c),S=dO(T,oo(f))+1;return es(T,0,S).join("")}o(eG,"trimEnd");function tG(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(BT,"");if(!c||!(f=pr(f)))return c;var T=oo(c),S=pO(T,oo(f));return es(T,S).join("")}o(tG,"trimStart");function nG(c,f){var d=D,T=Ue;if(yn(f)){var S="separator"in f?f.separator:S;d="length"in f?et(f.length):d,T="omission"in f?pr(f.omission):T}c=It(c);var C=c.length;if(ll(c)){var L=oo(c);C=L.length}if(d>=C)return c;var F=d-fl(T);if(F<1)return T;var M=L?es(L,0,F).join(""):c.slice(0,F);if(S===e)return M+T;if(L&&(F+=M.length-F),Hv(S)){if(c.slice(F).search(S)){var z,J=M;for(S.global||(S=ov(S.source,It(DI.exec(S))+"g")),S.lastIndex=0;z=S.exec(J);)var ne=z.index;M=M.slice(0,ne===e?F:ne)}}else if(c.indexOf(pr(S),F)!=F){var ge=M.lastIndexOf(S);ge>-1&&(M=M.slice(0,ge))}return M+T}o(nG,"truncate");function iG(c){return c=It(c),c&&Ae.test(c)?c.replace(me,Nj):c}o(iG,"unescape");var rG=hl(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),Kv=iR("toUpperCase");function tL(c,f,d){return c=It(c),f=d?e:f,f===e?Cj(c)?_j(c):yj(c):c.match(f)||[]}o(tL,"words");var nL=rt(function(c,f){try{return fr(c,e,f)}catch(d){return Bv(d)?d:new Ke(d)}}),oG=sa(function(c,f){return Dr(f,function(d){d=Do(d),oa(c,d,Uv(c[d],c))}),c});function aG(c){var f=c==null?0:c.length,d=Ve();return c=f?pn(c,function(T){if(typeof T[1]!="function")throw new _r(r);return[d(T[0]),T[1]]}):[],rt(function(T){for(var S=-1;++S<f;){var C=c[S];if(fr(C[0],this,T))return fr(C[1],this,T)}})}o(aG,"cond");function sG(c){return NU(wr(c,p))}o(sG,"conforms");function Xv(c){return function(){return c}}o(Xv,"constant");function cG(c,f){return c==null||c!==c?f:c}o(cG,"defaultTo");var lG=oR(),fG=oR(!0);function Xi(c){return c}o(Xi,"identity");function Qv(c){return VO(typeof c=="function"?c:wr(c,p))}o(Qv,"iteratee");function uG(c){return MO(wr(c,p))}o(uG,"matches");function pG(c,f){return kO(c,wr(f,p))}o(pG,"matchesProperty");var dG=rt(function(c,f){return function(d){return au(d,c,f)}}),gG=rt(function(c,f){return function(d){return au(c,d,f)}});function qv(c,f,d){var T=Yn(f),S=ug(f,T);d==null&&!(yn(f)&&(S.length||!T.length))&&(d=f,f=c,c=this,S=ug(f,Yn(f)));var C=!(yn(d)&&"chain"in d)||!!d.chain,L=la(c);return Dr(S,function(F){var M=f[F];c[F]=M,L&&(c.prototype[F]=function(){var z=this.__chain__;if(C||z){var J=c(this.__wrapped__),ne=J.__actions__=Gi(this.__actions__);return ne.push({func:M,args:arguments,thisArg:c}),J.__chain__=z,J}return M.apply(c,Xa([this.value()],arguments))})}),c}o(qv,"mixin");function mG(){return qn._===this&&(qn._=Uj),this}o(mG,"noConflict");function Yv(){}o(Yv,"noop");function hG(c){return c=et(c),rt(function(f){return jO(f,c)})}o(hG,"nthArg");var yG=Iv(pn),TG=Iv(aO),vG=Iv(JT);function iL(c){return _v(c)?ZT(Do(c)):QU(c)}o(iL,"property");function bG(c){return function(f){return c==null?e:oc(c,f)}}o(bG,"propertyOf");var EG=sR(),SG=sR(!0);function zv(){return[]}o(zv,"stubArray");function Jv(){return!1}o(Jv,"stubFalse");function AG(){return{}}o(AG,"stubObject");function PG(){return""}o(PG,"stubString");function xG(){return!0}o(xG,"stubTrue");function CG(c,f){if(c=et(c),c<1||c>Le)return[];var d=rn,T=hi(c,rn);f=Ve(f),c-=rn;for(var S=nv(T,f);++d<c;)f(d);return S}o(CG,"times");function IG(c){return Ye(c)?pn(c,Do):dr(c)?[c]:Gi(AR(It(c)))}o(IG,"toPath");function OG(c){var f=++kj;return It(c)+f}o(OG,"uniqueId");var RG=yg(function(c,f){return c+f},0),LG=Ov("ceil"),NG=yg(function(c,f){return c/f},1),FG=Ov("floor");function DG(c){return c&&c.length?fg(c,Xi,dv):e}o(DG,"max");function _G(c,f){return c&&c.length?fg(c,Ve(f,2),dv):e}o(_G,"maxBy");function VG(c){return lO(c,Xi)}o(VG,"mean");function wG(c,f){return lO(c,Ve(f,2))}o(wG,"meanBy");function MG(c){return c&&c.length?fg(c,Xi,yv):e}o(MG,"min");function kG(c,f){return c&&c.length?fg(c,Ve(f,2),yv):e}o(kG,"minBy");var jG=yg(function(c,f){return c*f},1),UG=Ov("round"),$G=yg(function(c,f){return c-f},0);function BG(c){return c&&c.length?tv(c,Xi):0}o(BG,"sum");function HG(c,f){return c&&c.length?tv(c,Ve(f,2)):0}return o(HG,"sumBy"),P.after=uB,P.ary=_R,P.assign=JB,P.assignIn=QR,P.assignInWith=Lg,P.assignWith=ZB,P.at=eH,P.before=VR,P.bind=Uv,P.bindAll=oG,P.bindKey=wR,P.castArray=AB,P.chain=NR,P.chunk=N$,P.compact=F$,P.concat=D$,P.cond=aG,P.conforms=sG,P.constant=Xv,P.countBy=B4,P.create=tH,P.curry=MR,P.curryRight=kR,P.debounce=jR,P.defaults=nH,P.defaultsDeep=iH,P.defer=pB,P.delay=dB,P.difference=_$,P.differenceBy=V$,P.differenceWith=w$,P.drop=M$,P.dropRight=k$,P.dropRightWhile=j$,P.dropWhile=U$,P.fill=$$,P.filter=G4,P.flatMap=X4,P.flatMapDeep=Q4,P.flatMapDepth=q4,P.flatten=IR,P.flattenDeep=B$,P.flattenDepth=H$,P.flip=gB,P.flow=lG,P.flowRight=fG,P.fromPairs=G$,P.functions=fH,P.functionsIn=uH,P.groupBy=Y4,P.initial=K$,P.intersection=X$,P.intersectionBy=Q$,P.intersectionWith=q$,P.invert=dH,P.invertBy=gH,P.invokeMap=J4,P.iteratee=Qv,P.keyBy=Z4,P.keys=Yn,P.keysIn=Ki,P.map=Pg,P.mapKeys=hH,P.mapValues=yH,P.matches=uG,P.matchesProperty=pG,P.memoize=Cg,P.merge=TH,P.mergeWith=qR,P.method=dG,P.methodOf=gG,P.mixin=qv,P.negate=Ig,P.nthArg=hG,P.omit=vH,P.omitBy=bH,P.once=mB,P.orderBy=eB,P.over=yG,P.overArgs=hB,P.overEvery=TG,P.overSome=vG,P.partial=$v,P.partialRight=UR,P.partition=tB,P.pick=EH,P.pickBy=YR,P.property=iL,P.propertyOf=bG,P.pull=Z$,P.pullAll=RR,P.pullAllBy=e4,P.pullAllWith=t4,P.pullAt=n4,P.range=EG,P.rangeRight=SG,P.rearg=yB,P.reject=rB,P.remove=i4,P.rest=TB,P.reverse=kv,P.sampleSize=aB,P.set=AH,P.setWith=PH,P.shuffle=sB,P.slice=r4,P.sortBy=fB,P.sortedUniq=u4,P.sortedUniqBy=p4,P.split=XH,P.spread=vB,P.tail=d4,P.take=g4,P.takeRight=m4,P.takeRightWhile=h4,P.takeWhile=y4,P.tap=D4,P.throttle=bB,P.thru=Ag,P.toArray=WR,P.toPairs=zR,P.toPairsIn=JR,P.toPath=IG,P.toPlainObject=XR,P.transform=xH,P.unary=EB,P.union=T4,P.unionBy=b4,P.unionWith=E4,P.uniq=S4,P.uniqBy=A4,P.uniqWith=P4,P.unset=CH,P.unzip=jv,P.unzipWith=LR,P.update=IH,P.updateWith=OH,P.values=vl,P.valuesIn=RH,P.without=x4,P.words=tL,P.wrap=SB,P.xor=C4,P.xorBy=I4,P.xorWith=O4,P.zip=R4,P.zipObject=L4,P.zipObjectDeep=N4,P.zipWith=F4,P.entries=zR,P.entriesIn=JR,P.extend=QR,P.extendWith=Lg,qv(P,P),P.add=RG,P.attempt=nL,P.camelCase=DH,P.capitalize=ZR,P.ceil=LG,P.clamp=LH,P.clone=PB,P.cloneDeep=CB,P.cloneDeepWith=IB,P.cloneWith=xB,P.conformsTo=OB,P.deburr=eL,P.defaultTo=cG,P.divide=NG,P.endsWith=_H,P.eq=so,P.escape=VH,P.escapeRegExp=wH,P.every=H4,P.find=W4,P.findIndex=xR,P.findKey=rH,P.findLast=K4,P.findLastIndex=CR,P.findLastKey=oH,P.floor=FG,P.forEach=FR,P.forEachRight=DR,P.forIn=aH,P.forInRight=sH,P.forOwn=cH,P.forOwnRight=lH,P.get=Gv,P.gt=RB,P.gte=LB,P.has=pH,P.hasIn=Wv,P.head=OR,P.identity=Xi,P.includes=z4,P.indexOf=W$,P.inRange=NH,P.invoke=mH,P.isArguments=cc,P.isArray=Ye,P.isArrayBuffer=NB,P.isArrayLike=Wi,P.isArrayLikeObject=Ln,P.isBoolean=FB,P.isBuffer=ts,P.isDate=DB,P.isElement=_B,P.isEmpty=VB,P.isEqual=wB,P.isEqualWith=MB,P.isError=Bv,P.isFinite=kB,P.isFunction=la,P.isInteger=$R,P.isLength=Og,P.isMap=BR,P.isMatch=jB,P.isMatchWith=UB,P.isNaN=$B,P.isNative=BB,P.isNil=GB,P.isNull=HB,P.isNumber=HR,P.isObject=yn,P.isObjectLike=En,P.isPlainObject=pu,P.isRegExp=Hv,P.isSafeInteger=WB,P.isSet=GR,P.isString=Rg,P.isSymbol=dr,P.isTypedArray=Tl,P.isUndefined=KB,P.isWeakMap=XB,P.isWeakSet=QB,P.join=Y$,P.kebabCase=MH,P.last=kr,P.lastIndexOf=z$,P.lowerCase=kH,P.lowerFirst=jH,P.lt=qB,P.lte=YB,P.max=DG,P.maxBy=_G,P.mean=VG,P.meanBy=wG,P.min=MG,P.minBy=kG,P.stubArray=zv,P.stubFalse=Jv,P.stubObject=AG,P.stubString=PG,P.stubTrue=xG,P.multiply=jG,P.nth=J$,P.noConflict=mG,P.noop=Yv,P.now=xg,P.pad=UH,P.padEnd=$H,P.padStart=BH,P.parseInt=HH,P.random=FH,P.reduce=nB,P.reduceRight=iB,P.repeat=GH,P.replace=WH,P.result=SH,P.round=UG,P.runInContext=w,P.sample=oB,P.size=cB,P.snakeCase=KH,P.some=lB,P.sortedIndex=o4,P.sortedIndexBy=a4,P.sortedIndexOf=s4,P.sortedLastIndex=c4,P.sortedLastIndexBy=l4,P.sortedLastIndexOf=f4,P.startCase=QH,P.startsWith=qH,P.subtract=$G,P.sum=BG,P.sumBy=HG,P.template=YH,P.times=CG,P.toFinite=fa,P.toInteger=et,P.toLength=KR,P.toLower=zH,P.toNumber=jr,P.toSafeInteger=zB,P.toString=It,P.toUpper=JH,P.trim=ZH,P.trimEnd=eG,P.trimStart=tG,P.truncate=nG,P.unescape=iG,P.uniqueId=OG,P.upperCase=rG,P.upperFirst=Kv,P.each=FR,P.eachRight=DR,P.first=OR,qv(P,(function(){var c={};return No(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c})(),{chain:!1}),P.VERSION=t,Dr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Dr(["drop","take"],function(c,f){dt.prototype[c]=function(d){d=d===e?1:Wn(et(d),0);var T=this.__filtered__&&!f?new dt(this):this.clone();return T.__filtered__?T.__takeCount__=hi(d,T.__takeCount__):T.__views__.push({size:hi(d,rn),type:c+(T.__dir__<0?"Right":"")}),T},dt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Dr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==nn||d==St;dt.prototype[c]=function(S){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(S,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),Dr(["head","last"],function(c,f){var d="take"+(f?"Right":"");dt.prototype[c]=function(){return this[d](1).value()[0]}}),Dr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");dt.prototype[c]=function(){return this.__filtered__?new dt(this):this[d](1)}}),dt.prototype.compact=function(){return this.filter(Xi)},dt.prototype.find=function(c){return this.filter(c).head()},dt.prototype.findLast=function(c){return this.reverse().find(c)},dt.prototype.invokeMap=rt(function(c,f){return typeof c=="function"?new dt(this):this.map(function(d){return au(d,c,f)})}),dt.prototype.reject=function(c){return this.filter(Ig(Ve(c)))},dt.prototype.slice=function(c,f){c=et(c);var d=this;return d.__filtered__&&(c>0||f<0)?new dt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=et(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},dt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},dt.prototype.toArray=function(){return this.take(rn)},No(dt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),S=P[T?"take"+(f=="last"?"Right":""):f],C=T||/^find/.test(f);S&&(P.prototype[f]=function(){var L=this.__wrapped__,F=T?[1]:arguments,M=L instanceof dt,z=F[0],J=M||Ye(L),ne=o(function(ct){var gt=S.apply(P,Xa([ct],F));return T&&ge?gt[0]:gt},"interceptor");J&&d&&typeof z=="function"&&z.length!=1&&(M=J=!1);var ge=this.__chain__,Oe=!!this.__actions__.length,Me=C&&!ge,nt=M&&!Oe;if(!C&&J){L=nt?L:new dt(this);var ke=c.apply(L,F);return ke.__actions__.push({func:Ag,args:[ne],thisArg:e}),new Vr(ke,ge)}return Me&&nt?c.apply(this,F):(ke=this.thru(ne),Me?T?ke.value()[0]:ke.value():ke)})}),Dr(["pop","push","shift","sort","splice","unshift"],function(c){var f=qd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var S=arguments;if(T&&!this.__chain__){var C=this.value();return f.apply(Ye(C)?C:[],S)}return this[d](function(L){return f.apply(Ye(L)?L:[],S)})}}),No(dt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Ft.call(dl,T)||(dl[T]=[]),dl[T].push({name:f,func:d})}}),dl[hg(e,I).name]=[{name:"wrapper",func:e}],dt.prototype.clone=nU,dt.prototype.reverse=iU,dt.prototype.value=rU,P.prototype.at=_4,P.prototype.chain=V4,P.prototype.commit=w4,P.prototype.next=M4,P.prototype.plant=j4,P.prototype.reverse=U4,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=$4,P.prototype.first=P.prototype.head,Zf&&(P.prototype[Zf]=k4),P}),"runInContext"),qa=Vj();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(qn._=qa,define(function(){return qa})):ec?((ec.exports=qa)._=qa,QT._=qa):qn._=qa}).call(Sf)});var EM=Ze((Dde,bM)=>{var{findIndex:FY}=qp();function DY(e,t){let i=FY(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(DY,"findNextTextualToken");bM.exports={findNextTextualToken:DY}});var PM=Ze((Vde,AM)=>{var SM=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function _Y({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(SM);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(_Y,"isXMLNamespaceKey");function VY(e){if(typeof e!="string")return;let t=e.match(SM);if(t!==null)return t.groups&&t.groups.prefix||""}o(VY,"getXMLNamespaceKeyPrefix");AM.exports={isXMLNamespaceKey:_Y,getXMLNamespaceKeyPrefix:VY}});var CM=Ze((Mde,xM)=>{var{findNextTextualToken:wY}=EM(),{isXMLNamespaceKey:MY,getXMLNamespaceKeyPrefix:kY}=PM();xM.exports={findNextTextualToken:wY,isXMLNamespaceKey:MY,getXMLNamespaceKeyPrefix:kY}});var BP=Ze((kde,OM)=>{var{reduce:jY,has:IM,isArray:UY}=qp();function $Y(e){return jY(e,(n,i,r)=>(r==="parent"||(IM(i,"type")?n.push(i):UY(i)&&i.length>0&&IM(i[0],"type")&&(n=n.concat(i))),n),[])}o($Y,"getAstChildrenReflective");OM.exports={getAstChildrenReflective:$Y}});var HP=Ze((Ude,RM)=>{RM.exports={DEFAULT_NS:"::DEFAULT"}});var MM=Ze(($de,wM)=>{var{BaseXmlCstVisitor:BY}=$P(),{last:HY,forEach:DM,reduce:GY,map:Yp,pick:WP,sortBy:WY,isEmpty:KY,isArray:_M,assign:XY}=qp(),{findNextTextualToken:QY,isXMLNamespaceKey:qY,getXMLNamespaceKeyPrefix:YY}=CM(),{getAstChildrenReflective:zY}=BP(),{DEFAULT_NS:JY}=HP();function ZY(e,t){LM.setState({tokenVector:t});let n=LM.visit(e);return n.rootElement!==Jc&&VM(n.rootElement),n}o(ZY,"buildAst");var KP=class KP extends BY{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:Jc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&KY(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),eT(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Yp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),eT(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Yp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Yp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Jc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Yp(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 n9(i,t),i9(i,t),r9(i,t,this.tokenVector),eT(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Jc,value:Jc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=tT(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=e9(a.image),r.syntax.value=tT(a)}return eT(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Jc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=WY(r,["startOffset"]),s=Yp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(KP,"CstToAstVisitor");var GP=KP,LM=new GP;function eT(e){let t=zY(e);DM(t,n=>n.parent=e)}o(eT,"setChildrenParent");function VM(e,t=[]){let n=GY(e.attributes,(r,a)=>{if(a.key!==Jc&&qY({key:a.key,includeEmptyPrefix:!1})===!0){let s=YY(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[JY]=l}}return r},{}),i=Object.create(null);e.namespaces=XY(i,t,n),DM(e.subElements,r=>VM(r,e.namespaces))}o(VM,"updateNamespaces");function tT(e){return WP(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(tT,"toXMLToken");function NM(e){return WP(e,["startOffset","startLine","startColumn"])}o(NM,"startOfXMLToken");function FM(e){return WP(e,["endOffset","endLine","endColumn"])}o(FM,"endOfXMLToken");function Ua(e){return _M(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ua,"exists");function e9(e){return e.substring(1,e.length-1)}o(e9,"stripQuotes");function t9(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(t9,"nsToParts");var Jc=null;function n9(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=tT(n);let i=t9(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=tT(t.END_NAME[0]))}o(n9,"handleElementOpenCloseNameRanges");function i9(e,t){if(Ua(t.OPEN)){let n;Ua(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ua(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...NM(t.OPEN[0]),...FM(n)}),Ua(t.SLASH_OPEN)&&Ua(t.END)&&(e.syntax.closeBody={...NM(t.SLASH_OPEN[0]),...FM(t.END[0])})}}o(i9,"handleElementOpenCloseBodyRanges");function r9(e,t,n){if(Ua(t.Name)){let i=t.Name[0].endOffset+2;if(Ua(t.START_CLOSE)||Ua(t.SLASH_CLOSE)){let r=(Ua(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=_M(t.attribute)?HY(t.attribute).location.endOffset:t.Name[0].endOffset,s=QY(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(r9,"handleElementAttributeRanges");wM.exports={buildAst:ZY}});var UM=Ze((Hde,jM)=>{var{forEach:o9,isFunction:Af}=qp(),{getAstChildrenReflective:a9}=BP();function kM(e,t){switch(e.type){case"XMLDocument":{Af(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{Af(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{Af(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{Af(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{Af(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{Af(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=a9(e);o9(n,i=>{kM(i,t)})}o(kM,"accept");jM.exports={accept:kM}});var BM=Ze((Wde,$M)=>{var{buildAst:s9}=MM(),{accept:c9}=UM(),{DEFAULT_NS:l9}=HP();$M.exports={buildAst:s9,accept:c9,DEFAULT_NS:l9}});var Fi={};lc(Fi,{deleteConfigEntityByPath:()=>PZ,exportConfig:()=>SZ,exportConfigEntityByPath:()=>AZ,generateCustomExtension:()=>II,generateSchema:()=>EZ,getApiVersion:()=>OZ,getChanges:()=>T2,getGenericSchema:()=>wT,getPathToGenericSchema:()=>Mk,getProject:()=>DZ,importConfig:()=>xZ,importProject:()=>CZ,importProjectSchema:()=>IZ,isDirectory:()=>LZ,log:()=>re,prompts:()=>bZ,readDirectory:()=>FI});module.exports=Fg(Fi);var de=Z(ae());var W=Z(ae());var Be=o(e=>typeof e=="string","isString"),du=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),$F=o(e=>e==null?"":""+e,"makeString"),P5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),x5=/###/g,BF=o(e=>e&&e.indexOf("###")>-1?e.replace(x5,"."):e,"cleanKey"),HF=o(e=>!e||Be(e),"canNotTraverseDeeper"),gu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(HF(e))return{};let a=BF(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return HF(e)?{}:{obj:e,k:BF(i[r])}},"getLastOfPath"),GF=o((e,t,n)=>{let{obj:i,k:r}=gu(e,t,Object);if(i!==void 0||t.length===1){i[r]=n;return}let a=t[t.length-1],s=t.slice(0,t.length-1),l=gu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=gu(e,s,Object),l!=null&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),C5=o((e,t,n,i)=>{let{obj:r,k:a}=gu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),_g=o((e,t)=>{let{obj:n,k:i}=gu(e,t);if(n&&Object.prototype.hasOwnProperty.call(n,i))return n[i]},"getPath"),I5=o((e,t,n)=>{let i=_g(e,n);return i!==void 0?i:_g(t,n)},"getPathWithDefaults"),ZF=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]):ZF(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),El=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),O5={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},R5=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>O5[t]):e,"escape"),gb=class gb{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(gb,"RegExpCache");var ab=gb,L5=[" ",",","?","!",";"],N5=new ab(20),F5=o((e,t,n)=>{t=t||"",n=n||"";let i=L5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=N5.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"),sb=o((e,t,n=".")=>{if(!e)return;if(e[t])return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0;let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),yu=o(e=>e==null?void 0:e.replace("_","-"),"getCleanedCode"),D5={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){var n,i;(i=(n=console==null?void 0:console[e])==null?void 0:n.apply)==null||i.call(n,console,t)}},mu=class mu{constructor(t,n={}){this.init(t,n)}init(t,n={}){this.prefix=n.prefix||"i18next:",this.logger=t||D5,this.options=n,this.debug=n.debug}log(...t){return this.forward(t,"log","",!0)}warn(...t){return this.forward(t,"warn","",!0)}error(...t){return this.forward(t,"error","")}deprecate(...t){return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new mu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new mu(this.logger,t)}};o(mu,"Logger");var cb=mu,_o=new cb,mb=class mb{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t,...n){this.observers[t]&&Array.from(this.observers[t].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r(...n)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([r,a])=>{for(let s=0;s<a;s++)r.apply(r,[t,...n])})}};o(mb,"EventEmitter");var Sl=mb,hb=class hb extends Sl{constructor(t,n={ns:["translation"],defaultNS:"translation"}){super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i,r={}){var p,g;let a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=_g(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:sb((g=(p=this.data)==null?void 0:p[t])==null?void 0:g[n],i,a)}addResource(t,n,i,r,a={silent:!1}){let s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),GF(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i,r={silent:!1}){for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a,s={silent:!1,skipCopy:!1}){let l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=_g(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?ZF(u,i,a):u={...u,...i},GF(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(hb,"ResourceStore");var Vg=hb,eD={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{var s;t=((s=this.processors[a])==null?void 0:s.process(t,n,i,r))??t}),t}},tD=Symbol("i18next/PATH_KEY");function _5(){let e=[],t=Object.create(null),n;return t.get=(i,r)=>{var a;return(a=n==null?void 0:n.revoke)==null||a.call(n),r===tD?e:(e.push(r),n=Proxy.revocable(i,t),n.proxy)},Proxy.revocable(Object.create(null),t).proxy}o(_5,"createProxy");function lb(e,t){let{[tD]:n}=e(_5());return n.join((t==null?void 0:t.keySeparator)??".")}o(lb,"keysFromSelector");var WF={},KF=o(e=>!Be(e)&&typeof e!="boolean"&&typeof e!="number","shouldHandleAsObject"),jg=class jg extends Sl{constructor(t,n={}){super(),P5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=_o.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t,n={interpolation:{}}){let i={...n};if(t==null)return!1;let r=this.resolve(t,i);return(r==null?void 0:r.res)!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!F5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){let r=typeof n=="object"?{...n}:n;if(typeof r!="object"&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),typeof r=="object"&&(r={...r}),r||(r={}),t==null)return"";typeof t=="function"&&(t=lb(t,{...this.options,...r})),Array.isArray(t)||(t=[String(t)]);let a=r.returnDetails!==void 0?r.returnDetails:this.options.returnDetails,s=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,{key:l,namespaces:u}=this.extractFromKey(t[t.length-1],r),p=u[u.length-1],g=r.nsSeparator!==void 0?r.nsSeparator:this.options.nsSeparator;g===void 0&&(g=":");let m=r.lng||this.language,v=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if((m==null?void 0:m.toLowerCase())==="cimode")return v?a?{res:`${p}${g}${l}`,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:`${p}${g}${l}`:a?{res:l,usedKey:l,exactUsedKey:l,usedLng:m,usedNS:p,usedParams:this.getUsedParamsDetails(r)}:l;let E=this.resolve(t,r),b=E==null?void 0:E.res,I=(E==null?void 0:E.usedKey)||l,N=(E==null?void 0:E.exactUsedKey)||l,j=["[object Number]","[object Function]","[object RegExp]"],G=r.joinArrays!==void 0?r.joinArrays:this.options.joinArrays,$=!this.i18nFormat||this.i18nFormat.handleAsObject,se=r.count!==void 0&&!Be(r.count),te=jg.hasDefaultValue(r),le=se?this.pluralResolver.getSuffix(m,r.count,r):"",Re=r.ordinal&&se?this.pluralResolver.getSuffix(m,r.count,{ordinal:!1}):"",D=se&&!r.ordinal&&r.count===0,Ue=D&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${le}`]||r[`defaultValue${Re}`]||r.defaultValue,$e=b;$&&!b&&te&&($e=Ue);let qe=KF($e),nn=Object.prototype.toString.apply($e);if($&&$e&&qe&&j.indexOf(nn)<0&&!(Be(G)&&Array.isArray($e))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let $t=this.options.returnedObjectHandler?this.options.returnedObjectHandler(I,$e,{...r,ns:u}):`key '${l} (${this.language})' returned an object instead of string.`;return a?(E.res=$t,E.usedParams=this.getUsedParamsDetails(r),E):$t}if(s){let $t=Array.isArray($e),St=$t?[]:{},qt=$t?N:I;for(let Le in $e)if(Object.prototype.hasOwnProperty.call($e,Le)){let Tn=`${qt}${s}${Le}`;te&&!b?St[Le]=this.translate(Tn,{...r,defaultValue:KF(Ue)?Ue[Le]:void 0,joinArrays:!1,ns:u}):St[Le]=this.translate(Tn,{...r,joinArrays:!1,ns:u}),St[Le]===Tn&&(St[Le]=$e[Le])}b=St}}else if($&&Be(G)&&Array.isArray(b))b=b.join(G),b&&(b=this.extendTranslation(b,t,r,i));else{let $t=!1,St=!1;!this.isValidLookup(b)&&te&&($t=!0,b=Ue),this.isValidLookup(b)||(St=!0,b=l);let Le=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&St?void 0:b,Tn=te&&Ue!==b&&this.options.updateMissing;if(St||$t||Tn){if(this.logger.log(Tn?"updateKey":"missingKey",m,p,l,Tn?Ue:b),s){let on=this.resolve(l,{...r,keySeparator:!1});on&&on.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 vn=[],rn=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if(this.options.saveMissingTo==="fallback"&&rn&&rn[0])for(let on=0;on<rn.length;on++)vn.push(rn[on]);else this.options.saveMissingTo==="all"?vn=this.languageUtils.toResolveHierarchy(r.lng||this.language):vn.push(r.lng||this.language);let On=o((on,Ie,ln)=>{var tt;let Oi=te&&ln!==b?ln:Le;this.options.missingKeyHandler?this.options.missingKeyHandler(on,p,Ie,Oi,Tn,r):(tt=this.backendConnector)!=null&&tt.saveMissing&&this.backendConnector.saveMissing(on,p,Ie,Oi,Tn,r),this.emit("missingKey",on,p,Ie,b)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&se?vn.forEach(on=>{let Ie=this.pluralResolver.getSuffixes(on,r);D&&r[`defaultValue${this.options.pluralSeparator}zero`]&&Ie.indexOf(`${this.options.pluralSeparator}zero`)<0&&Ie.push(`${this.options.pluralSeparator}zero`),Ie.forEach(ln=>{On([on],l+ln,r[`defaultValue${ln}`]||Ue)})}):On(vn,l,Ue))}b=this.extendTranslation(b,t,r,E,i),St&&b===l&&this.options.appendNamespaceToMissingKey&&(b=`${p}${g}${l}`),(St||$t)&&this.options.parseMissingKeyHandler&&(b=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${p}${g}${l}`:l,$t?b:void 0,r))}return a?(E.res=b,E.usedParams=this.getUsedParamsDetails(r),E):b}extendTranslation(t,n,i,r,a){var u,p;if((u=this.i18nFormat)!=null&&u.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let g=Be(t)&&(((p=i==null?void 0:i.interpolation)==null?void 0:p.skipOnVariables)!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(g){let E=t.match(this.interpolator.nestingRegexp);m=E&&E.length}let v=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(v={...this.options.interpolation.defaultVariables,...v}),t=this.interpolator.interpolate(t,v,i.lng||this.language||r.usedLng,i),g){let E=t.match(this.interpolator.nestingRegexp),b=E&&E.length;m<b&&(i.nest=!1)}!i.lng&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,(...E)=>(a==null?void 0:a[0])===E[0]&&!i.context?(this.logger.warn(`It seems you are nesting recursively key: ${E[0]} in key: ${n[0]}`),null):this.translate(...E,n),i)),i.interpolation&&this.interpolator.reset()}let s=i.postProcess||this.options.postProcess,l=Be(s)?[s]:s;return t!=null&&(l!=null&&l.length)&&i.applyPostProcessor!==!1&&(t=eD.handle(l,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t,n={}){let i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&!Be(n.count),E=v&&!n.ordinal&&n.count===0,b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(N=>{var j,G;this.isValidLookup(i)||(l=N,!WF[`${I[0]}-${N}`]&&((j=this.utils)!=null&&j.hasLoadedNamespace)&&!((G=this.utils)!=null&&G.hasLoadedNamespace(l))&&(WF[`${I[0]}-${N}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach($=>{var le;if(this.isValidLookup(i))return;s=$;let se=[g];if((le=this.i18nFormat)!=null&&le.addLookupKeys)this.i18nFormat.addLookupKeys(se,g,$,N,n);else{let Re;v&&(Re=this.pluralResolver.getSuffix($,n.count,n));let D=`${this.options.pluralSeparator}zero`,Ue=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(n.ordinal&&Re.indexOf(Ue)===0&&se.push(g+Re.replace(Ue,this.options.pluralSeparator)),se.push(g+Re),E&&se.push(g+D)),b){let $e=`${g}${this.options.contextSeparator||"_"}${n.context}`;se.push($e),v&&(n.ordinal&&Re.indexOf(Ue)===0&&se.push($e+Re.replace(Ue,this.options.pluralSeparator)),se.push($e+Re),E&&se.push($e+D))}}let te;for(;te=se.pop();)this.isValidLookup(i)||(a=te,i=this.getResource($,N,te,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i,r={}){var a;return(a=this.i18nFormat)!=null&&a.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(t={}){let n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(jg,"Translator");var wg=jg,yb=class yb{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=_o.create("languageUtils")}getScriptPartFromCode(t){if(t=yu(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=yu(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){let n;try{n=Intl.getCanonicalLocales(t)[0]}catch{}return n&&this.options.lowerCaseLng&&(n=n.toLowerCase()),n||(this.options.lowerCaseLng?t.toLowerCase():t)}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getScriptPartFromCode(i);if(this.isSupportedCode(r))return n=r;let a=this.getLanguagePartFromCode(i);if(this.isSupportedCode(a))return n=a;n=this.options.supportedLngs.find(s=>{if(s===a)return s;if(!(s.indexOf("-")<0&&a.indexOf("-")<0)&&(s.indexOf("-")>0&&a.indexOf("-")<0&&s.substring(0,s.indexOf("-"))===a||s.indexOf(a)===0&&a.length>1))return s})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes((n===!1?[]:n)||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(yb,"LanguageUtil");var Mg=yb,XF={zero:0,one:1,two:2,few:3,many:4,other:5},QF={select:o(e=>e===1?"one":"other","select"),resolvedOptions:o(()=>({pluralCategories:["one","other"]}),"resolvedOptions")},Tb=class Tb{constructor(t,n={}){this.languageUtils=t,this.options=n,this.logger=_o.create("pluralResolver"),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t,n={}){let i=yu(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),QF;if(!t.match(/-|_/))return QF;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}needsPlural(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),(i==null?void 0:i.resolvedOptions().pluralCategories.length)>1}getPluralFormsOfKey(t,n,i={}){return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t,n={}){let i=this.getRule(t,n);return i||(i=this.getRule("dev",n)),i?i.resolvedOptions().pluralCategories.sort((r,a)=>XF[r]-XF[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):[]}getSuffix(t,n,i={}){let r=this.getRule(t,i);return r?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:(this.logger.warn(`no plural rule found for: ${t}`),this.getSuffix("dev",n,i))}};o(Tb,"PluralResolver");var fb=Tb,qF=o((e,t,n,i=".",r=!0)=>{let a=I5(e,t,n);return!a&&r&&Be(n)&&(a=sb(e,n,i),a===void 0&&(a=sb(t,n,i))),a},"deepFindWithDefaults"),ob=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),vb=class vb{constructor(t={}){var n;this.logger=_o.create("interpolator"),this.options=t,this.format=((n=t==null?void 0:t.interpolation)==null?void 0:n.format)||(i=>i),this.init(t)}init(t={}){t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:E,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:N,maxReplaces:j,alwaysFormat:G}=t.interpolation;this.escape=n!==void 0?n:R5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?El(a):s||"{{",this.suffix=l?El(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?El(v):E||El("$t("),this.nestingSuffix=b?El(b):I||El(")"),this.nestingOptionsSeparator=N||",",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==null?void 0:n.source)===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(t,n,i,r){var E;let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(b=>{if(b.indexOf(this.formatSeparator)<0){let G=qF(n,u,b,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(G,void 0,i,{...r,...n,interpolationkey:b}):G}let I=b.split(this.formatSeparator),N=I.shift().trim(),j=I.join(this.formatSeparator).trim();return this.format(qF(n,u,N,this.options.keySeparator,this.options.ignoreJSONStructure),j,i,{...r,...n,interpolationkey:N})},"handleFormat");this.resetRegExp();let g=(r==null?void 0:r.missingInterpolationHandler)||this.options.missingInterpolationHandler,m=((E=r==null?void 0:r.interpolation)==null?void 0:E.skipOnVariables)!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(b=>ob(b),"safeValue")},{regex:this.regexp,safeValue:o(b=>this.escapeValue?ob(this.escape(b)):ob(b),"safeValue")}].forEach(b=>{for(l=0;a=b.regex.exec(t);){let I=a[1].trim();if(s=p(I),s===void 0)if(typeof g=="function"){let j=g(t,a,r);s=Be(j)?j:""}else if(r&&Object.prototype.hasOwnProperty.call(r,I))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${I} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=$F(s));let N=b.safeValue(s);if(t=t.replace(a[0],N),m?(b.regex.lastIndex+=s.length,b.regex.lastIndex-=a[0].length):b.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n,i={}){let r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let E=v.match(/'/g),b=v.match(/"/g);(((E==null?void 0:E.length)??0)%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,I),`${u}${g}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(p!==-1&&(u=r[1].slice(p).split(this.formatSeparator).map(g=>g.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=$F(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),u.length&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(vb,"Interpolator");var ub=vb,V5=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"),YF=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(yu(i),r),t[s]=l),l(n)}},"createCachedFormatter"),w5=o(e=>(t,n,i)=>e(yu(n),i)(t),"createNonCachedFormatter"),bb=class bb{constructor(t={}){this.logger=_o.create("formatter"),this.options=t,this.init(t)}init(t,n={interpolation:{}}){this.formatSeparator=n.interpolation.formatSeparator||",";let i=n.cacheInBuiltFormats?YF:w5;this.formats={number:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a});return l=>s.format(l)}),currency:i((r,a)=>{let s=new Intl.NumberFormat(r,{...a,style:"currency"});return l=>s.format(l)}),datetime:i((r,a)=>{let s=new Intl.DateTimeFormat(r,{...a});return l=>s.format(l)}),relativetime:i((r,a)=>{let s=new Intl.RelativeTimeFormat(r,{...a});return l=>s.format(l,a.range||"day")}),list:i((r,a)=>{let s=new Intl.ListFormat(r,{...a});return l=>s.format(l)})}}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=YF(n)}format(t,n,i,r={}){let a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{var m;let{formatName:p,formatOptions:g}=V5(u);if(this.formats[p]){let v=l;try{let E=((m=r==null?void 0:r.formatParams)==null?void 0:m[r.interpolationkey])||{},b=E.locale||E.lng||r.locale||r.lng||i;v=this.formats[p](l,b,{...g,...r,...E})}catch(E){this.logger.warn(E)}return v}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(bb,"Formatter");var pb=bb,M5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),Eb=class Eb extends Sl{constructor(t,n,i,r={}){var a,s;super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=_o.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],(s=(a=this.backend)==null?void 0:a.init)==null||s.call(a,i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{C5(u.loaded,[a],s),M5(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i,r=0,a=this.retryTimeout,s){if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n,i={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t,n=""){let i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a,s={},l=()=>{}){var u,p,g,m,v;if((p=(u=this.services)==null?void 0:u.utils)!=null&&p.hasLoadedNamespace&&!((m=(g=this.services)==null?void 0:g.utils)!=null&&m.hasLoadedNamespace(n))){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if((v=this.backend)!=null&&v.create){let E={...s,isUpdate:a},b=this.backend.create.bind(this.backend);if(b.length<6)try{let I;b.length===5?I=b(t,n,i,r,E):I=b(t,n,i,r),I&&typeof I.then=="function"?I.then(N=>l(null,N)).catch(l):l(null,I)}catch(I){l(I)}else b(t,n,i,r,l,E)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(Eb,"Connector");var db=Eb,zF=o(()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),"get"),JF=o(e=>{var t,n;return Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),((n=(t=e.supportedLngs)==null?void 0:t.indexOf)==null?void 0:n.call(t,"cimode"))<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),typeof e.initImmediate=="boolean"&&(e.initAsync=e.initImmediate),e},"transformOptions"),Dg=o(()=>{},"noop"),k5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),hu=class hu extends Sl{constructor(t={},n){if(super(),this.options=JF(t),this.services={},this.logger=_o,this.modules={external:[]},k5(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initAsync)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(t={},n){this.isInitializing=!0,typeof t=="function"&&(n=t,t={}),t.defaultNS==null&&t.ns&&(Be(t.ns)?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));let i=zF();this.options={...i,...this.options,...JF(t)},this.options.interpolation={...i.interpolation,...this.options.interpolation},t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let r=o(p=>p?typeof p=="function"?new p:p:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?_o.init(r(this.modules.logger),this.options):_o.init(null,this.options);let p;this.modules.formatter?p=this.modules.formatter:p=pb;let g=new Mg(this.options);this.store=new Vg(this.options.resources,this.options);let m=this.services;m.logger=_o,m.resourceStore=this.store,m.languageUtils=g,m.pluralResolver=new fb(g,{prepend:this.options.pluralSeparator,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),this.options.interpolation.format&&this.options.interpolation.format!==i.interpolation.format&&this.logger.deprecate("init: you are still using the legacy format function, please use the new approach: https://www.i18next.com/translation-function/formatting"),p&&(!this.options.interpolation.format||this.options.interpolation.format===i.interpolation.format)&&(m.formatter=r(p),m.formatter.init&&m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new ub(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new db(r(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",(E,...b)=>{this.emit(E,...b)}),this.modules.languageDetector&&(m.languageDetector=r(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=r(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new wg(this.services,this.options),this.translator.on("*",(E,...b)=>{this.emit(E,...b)}),this.modules.external.forEach(E=>{E.init&&E.init(this)})}if(this.format=this.options.interpolation.format,n||(n=Dg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let p=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);p.length>0&&p[0]!=="dev"&&(this.options.lng=p[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(p=>{this[p]=(...g)=>this.store[p](...g)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(p=>{this[p]=(...g)=>(this.store[p](...g),this)});let l=du(),u=o(()=>{let p=o((g,m)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),l.resolve(m),n(g,m)},"finish");if(this.languages&&!this.isInitialized)return p(null,this.t.bind(this));this.changeLanguage(this.options.lng,p)},"load");return this.options.resources||!this.options.initAsync?u():setTimeout(u,0),l}loadResources(t,n=Dg){var a,s;let i=n,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if((r==null?void 0:r.toLowerCase())==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let l=[],u=o(p=>{if(!p||p==="cimode")return;this.services.languageUtils.toResolveHierarchy(p).forEach(m=>{m!=="cimode"&&l.indexOf(m)<0&&l.push(m)})},"append");r?u(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(g=>u(g)),(s=(a=this.options.preload)==null?void 0:a.forEach)==null||s.call(a,p=>u(p)),this.services.backendConnector.load(l,this.options.ns,p=>{!p&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(p)})}else i(null)}reloadResources(t,n,i){let r=du();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=Dg),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"&&eD.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1)){for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}!this.resolvedLanguage&&this.languages.indexOf(t)<0&&this.store.hasLanguageSomeTranslations(t)&&(this.resolvedLanguage=t,this.languages.unshift(t))}}changeLanguage(t,n){this.isLanguageChangingTo=t;let i=du();this.emit("languageChanging",t);let r=o(l=>{this.language=l,this.languages=this.services.languageUtils.toResolveHierarchy(l),this.resolvedLanguage=void 0,this.setResolvedLanguage(l)},"setLngProps"),a=o((l,u)=>{u?this.isLanguageChangingTo===t&&(r(u),this.translator.changeLanguage(u),this.isLanguageChangingTo=void 0,this.emit("languageChanged",u),this.logger.log("languageChanged",u)):this.isLanguageChangingTo=void 0,i.resolve((...p)=>this.t(...p)),n&&n(l,(...p)=>this.t(...p))},"done"),s=o(l=>{var g,m;!t&&!l&&this.services.languageDetector&&(l=[]);let u=Be(l)?l:l&&l[0],p=this.store.hasLanguageSomeTranslations(u)?u:this.services.languageUtils.getBestMatchFromCodes(Be(l)?[l]:l);p&&(this.language||r(p),this.translator.language||this.translator.changeLanguage(p),(m=(g=this.services.languageDetector)==null?void 0:g.cacheUserLanguage)==null||m.call(g,p)),this.loadResources(p,v=>{a(v,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),i}getFixedT(t,n,i){let r=o((a,s,...l)=>{let u;typeof s!="object"?u=this.options.overloadTranslationOptionHandler([a,s].concat(l)):u={...s},u.lng=u.lng||r.lng,u.lngs=u.lngs||r.lngs,u.ns=u.ns||r.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||r.keyPrefix);let p=this.options.keySeparator||".",g;return u.keyPrefix&&Array.isArray(a)?g=a.map(m=>(typeof m=="function"&&(m=lb(m,{...this.options,...s})),`${u.keyPrefix}${p}${m}`)):(typeof a=="function"&&(a=lb(a,{...this.options,...s})),g=u.keyPrefix?`${u.keyPrefix}${p}${a}`:a),this.t(g,u)},"fixedT");return Be(t)?r.lng=t:r.lngs=t,r.ns=n,r.keyPrefix=i,r}t(...t){var n;return(n=this.translator)==null?void 0:n.translate(...t)}exists(...t){var n;return(n=this.translator)==null?void 0:n.exists(...t)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t,n={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=du();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=du();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){var r,a;if(t||(t=this.resolvedLanguage||(((r=this.languages)==null?void 0:r.length)>0?this.languages[0]:this.language)),!t)return"rtl";try{let s=new Intl.Locale(t);if(s&&s.getTextInfo){let l=s.getTextInfo();if(l&&l.direction)return l.direction}}catch{}let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=((a=this.services)==null?void 0:a.languageUtils)||new Mg(zF());return t.toLowerCase().indexOf("-latn")>1?"ltr":n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(t={},n){return new hu(t,n)}cloneInstance(t={},n=Dg){let i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new hu(r);if((t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i){let l=Object.keys(this.store.data).reduce((u,p)=>(u[p]={...this.store.data[p]},u[p]=Object.keys(u[p]).reduce((g,m)=>(g[m]={...u[p][m]},g),u[p]),u),{});a.store=new Vg(l,r),a.services.resourceStore=a.store}return a.translator=new wg(a.services,r),a.translator.on("*",(l,...u)=>{a.emit(l,...u)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(hu,"I18n");var kg=hu,Q=kg.createInstance();Q.createInstance=kg.createInstance;var GZ=Q.createInstance,WZ=Q.dir,KZ=Q.init,XZ=Q.loadResources,QZ=Q.reloadResources,qZ=Q.use,YZ=Q.changeLanguage,zZ=Q.getFixedT,JZ=Q.t,ZZ=Q.exists,eee=Q.setDefaultNamespace,tee=Q.hasLoadedNamespace,nee=Q.loadNamespaces,iee=Q.loadLanguages;var m_=Z(Sb()),h_=Z(OD()),am=Z(g_()),Tt=require("@sap-ux/vocabularies-types/vocabularies/UI"),Su=require("@sap-ux/vocabularies-types/vocabularies/Communication");var rm=Z(ae());var re=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${rm.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var U="#/definitions/",yK=[W.v4.FE_TEMPLATE_V4_LIST_REPORT,W.v4.FE_TEMPLATE_V4_ALP,W.v4.FE_TEMPLATE_V4_OBJECT_PAGE,W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],TK=["sap.fe.core","sap.fe.templates"],Ol=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),yr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Ur(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,am.parse)(r.fileContent,r.dataSourceUri))}catch(a){return re(t,{severity:W.LogSeverity.Error,message:Q.t("ANNOERR"),location:{path:Q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,am.merge)(...n);i=(0,h_.convert)(r)}return i}o(Ur,"parseAndMergeAndConvert");var Il=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Bb(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(Bb,"evaluateCommonLabel");function sm(e,t){let n=e.value;return e.$target&&(n=Bb(e.$target.annotations,t,n)),n}o(sm,"getLabelForPropertyPath");function Au(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=Bb(i.annotations,t,n)),n}o(Au,"getLabelForDataField");function ya(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 Bb(a.annotations,t,s)}}}else return}o(ya,"getLabel");function cm(e,t){var r;let n=e,i=typeof n.Action=="string"?n.Action:(r=n.Action)==null?void 0:r.path;return t&&typeof t=="string"?t:i}o(cm,"getDescriptionForActionBasedDataFields");function Hb(e,t,n){let i=Au(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(Hb,"getTitleForDataField");function ft(e){return e.replace("#","::").replace(/\//g,":2f")}o(ft,"prepareRef");function ha(e){if(e){let t=`${W.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(ha,"getPageTypeV2");function Gb(e){let t="name"in e&&typeof e.name=="string"?om(e.name):void 0;if(t)return t;if("viewId"in e&&e.viewId||"viewName"in e&&e.viewName)return W.PageTypeV4.CustomPage}o(Gb,"getPageTypeV4");function vK(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(vK,"getTargetAnnotationName");function oi(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(oi,"findAlias");function bK(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(bK,"getAnnotationFromMetaPath");function EK(e,t,n){var s,l;let i=e[e.length-1],r=bK(i),a=oi(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(EK,"determineTargetAnnotation");function SK(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Tt.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${W.UIVOCABULARY}`);return e}o(SK,"adjustKey");function AK(e,t,n,i,r=W.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=SK(t,u,a);let g=EK(u,n,e);if(g){let E=r===W.FioriElementsVersion.v2?"::":"#";t=vK(g,a).replace("#",E),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 E=r===W.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(E)}${E}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(AK,"getKeyAndEntityTypeOfReferenceFacet");function y_(e,t,n,i,r=W.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!==Tt.UIAnnotationTypes.CollectionFacet&&"Target"in e){let E=Il(e.Target);if(!E){re(i,{severity:W.LogSeverity.Error,message:Q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:N,namespace:j}=AK(n,l,p,E,r,a);if(N)return;l=b,p=I,u=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(y_,"getSectionFacet");function PK(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(PK,"getDecodedPathElement");var Wb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),T_=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=PK(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=Wb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Mo=o((e,t,n,i,r=!1)=>T_(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),v_=o((e,t,n,i,r)=>{T_(e,t,i,r,n)},"setManifestSectionByPathV4");function Kb(e){let t,n,i;switch(e.$Type){case Tt.UIAnnotationTypes.DataField:t=Il(e.Value);break;case Tt.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Il(e.Value);break;case Tt.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${W.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Tt.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ft(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Il(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Tt.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ft(e.Action)}`);break;case Tt.UIAnnotationTypes.DataFieldWithNavigationPath:i=Il(e.Value),n=Il(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(Kb,"getSchemaKeyOfLineItemRecord");function xK(e,t,n){return e.includes(Tt.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Tt.UIAnnotationTerms.Chart:e.includes(Tt.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Tt.UIAnnotationTerms.Identification:n&&e.includes(Tt.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Tt.UIAnnotationTerms.LineItem:e.includes(Tt.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Tt.UIAnnotationTerms.FieldGroup:e.includes(Tt.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Tt.UIAnnotationTerms.DataPoint:e.includes(Tt.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Tt.UIAnnotationTerms.PresentationVariant:void 0}o(xK,"getUIAnnotationTerm");function CK(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?Su.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?Su.CommunicationAnnotationTerms.Address:void 0}o(CK,"getCommunicationAnnotationTerm");function IK(e,t,n){return xK(e,t,n)||CK(e,t)}o(IK,"getAnnotationTerm");function OK(e,t,n,i,r){var p,g,m,v,E,b,I,N,j;let a=oi(W.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(IK(s,a,i)){case Tt.UIAnnotationTerms.Chart:{n[s]={base:W.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.Identification:{n[s]={base:W.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.LineItem:{if(!s.includes(Tt.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let G=s.split("::");G[G.length-1]=`@${Tt.UIAnnotationTerms.LineItem}`,s=G.join("::")}n[s]={base:W.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.FieldGroup:{n[s]={base:W.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.DataPoint:{n[s]={base:W.FacetBase.DataPoint},n[s].Label=(E=t==null?void 0:t.Target)==null?void 0:E.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Tt.UIAnnotationTerms.PresentationVariant:{n[s]={base:W.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Su.CommunicationAnnotationTerms.Contact:{n[s]={base:W.FacetBase.Contact},n[s].target=(N=t==null?void 0:t.Target)==null?void 0:N.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Su.CommunicationAnnotationTerms.Address:{n[s]={base:W.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:W.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",W.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(OK,"evaluateTargetAnnotation");function Xb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(Xb,"getAnnotationPathUsingFullyQualifiedName");function Qb(e,t,n,i,r,a=W.FioriElementsVersion.v2,s){var u;let l=y_(e,i,t,s,a,!1);if(l)switch(e.$Type){case Tt.UIAnnotationTypes.ReferenceFacet:{OK(l,e,r,i,t);break}case Tt.UIAnnotationTypes.CollectionFacet:{let p=Xb(i,e.fullyQualifiedName),g=r[l.key]={base:W.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===W.FioriElementsVersion.v4&&re(s,{severity:W.LogSeverity.Error,message:Q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{Qb(m,t,n,i,g.facets,a,s)});break}}}o(Qb,"addFacetToConfig");function lm(e,t,n=W.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=oi(W.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{Qb(m,t,g,e,r,n,i)})}return r}o(lm,"getObjectPageHeaderFacets");function fm(e,t,n=W.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=oi(W.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{Qb(g,t,p,e,r,n,i)})}return r}o(fm,"getObjectPageFacets");function qb(e){var t,n,i,r;if(e[W.ManifestSection.generic]&&Object.keys(e[W.ManifestSection.generic]).length>0||e[W.ManifestSection.ovp]&&Object.keys(e[W.ManifestSection.ovp]).length>0)return W.FioriElementsVersion.v2;{let a=(n=(t=e[W.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[W.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>{let u=typeof a[l].name=="string"?a[l].name:"";return yK.indexOf(u)>-1||om(u)})||s&&Object.keys(s).find(l=>TK.indexOf(l)>-1)?W.FioriElementsVersion.v4:void 0}}o(qb,"getFEVersionFromManifest");function RK(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[W.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[W.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[W.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[W.ManifestSection.ui5].models[t].dataSource:void 0}o(RK,"getMainService");function b_(e){var i,r;let t=RK(e);if(!t)return W.OdataVersion.v2;let n=(i=e[W.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?W.OdataVersion.v4:W.OdataVersion.v2}o(b_,"getODataVersionFromManifest");function LK(e,t){var i,r;let n;if(e[W.ManifestSection.generic]){let a=e[W.ManifestSection.generic].pages;if(!a){re(t,{severity:W.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(ha((i=l.component)==null?void 0:i.name)===W.PageTypeV2.AnalyticalListPage){n=W.TemplateType.AnalyticalListPageV2;break}else if(ha((r=l.component)==null?void 0:r.name)===W.PageTypeV2.ListReport){n=W.TemplateType.ListReportObjectPageV2;break}}}else n||re(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.generic}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.generic]}});return n}o(LK,"determineV2Template");function Pu(e){var i,r,a,s;let t,n=Gb(e);if(n===W.PageTypeV4.AnalyticalListPage)t=W.TemplateType.AnalyticalListPageV4;else if(n===W.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[W.ALPViewType.Primary]||l[W.ALPViewType.Secondary])?t=W.TemplateType.AnalyticalListPageV4:t=W.TemplateType.ListReportObjectPageV4}else n===W.PageTypeV4.ObjectPage?t=W.TemplateType.ListReportObjectPageV4:[W.PageTypeV4.CustomPage,W.PageTypeV4.FPMCustomPage].includes(n)&&(t=W.TemplateType.FreestylePageV4);return t}o(Pu,"determineV4PageTemplateType");function NK(e){let t;for(let n in e){let i=e[n];if(t=Pu(i),t)break}return t}o(NK,"determineV4TemplateFromPages");function FK(e,t){let n=e[W.ManifestSection.ui5].routing&&e[W.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return re(t,{severity:W.LogSeverity.Info,message:Q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing"]}}),W.TemplateType.ListReportObjectPageV4;let i=NK(n);return i||re(t,{severity:W.LogSeverity.Error,message:Q.t("NOTEMPLATE",{section:W.ManifestSection.ui5}),location:{path:W.MANIFESTPATH,range:[W.ManifestSection.ui5,"routing","targets"]}}),i}o(FK,"determineV4Template");function dc(e,t,n){let i;return e[W.ManifestSection.ovp]?i=W.TemplateType.OverviewPageV2:t===W.FioriElementsVersion.v2?i=LK(e,n):t===W.FioriElementsVersion.v4&&(i=FK(e,n)),i}o(dc,"getTemplateTypeFromManifest");function Ta(e,t,n){e!=null&&e.ID?(t.title=W.FACETTITLEPREFIX+e.ID,t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[W.SchemaTag.keys]=[{name:W.SchemaKeyName.id,value:n.replace(W.UIVOCABULARYALPHADOT,"")}])}o(Ta,"addSectionTitle");function is(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(is,"addSectionDescription");function Rl(e,t,n){var i,r;Ta(e,t,n),is(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(Rl,"addTargetTitleAndSectionDescription");function E_(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(E_,"addChartFacetID");function ko(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[W.SchemaTag.isViewNode]=!0,i[W.SchemaTag.annotationPath]=t.annotationPath,Rl(t,i,n),i}o(ko,"createDefaultSection");function S_(e,t,n,i=W.FioriElementsVersion.v2,r=!1){var l,u;let a=oi(W.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let v=y_(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(S_,"getObjectPageFacetSection");var rs=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(),rs(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),$b=o(e=>e===W.SchemaType.FreestylePage?W.PageTypeV2.CustomPage:e===W.SchemaType.FPMCustomPage?W.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case W.SchemaType.Application:{i.filename="App",i.path=`./${W.DirName.Schemas}/${i.filename}`;break}case W.SchemaType.ListReport:case W.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:$b(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}case W.PageTypeV4.FPMCustomPage:case W.SchemaType.FPMCustomPage:{i.filename=n?`${W.SchemaType.FPMCustomPage}_${n}`:$b(W.SchemaType.FPMCustomPage),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}default:{i.filename=$b(e),i.path=`../${W.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function um(e,t,n,i){if(e===W.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o(um,"generatePageId");function Yb(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(Yb,"findMatchingKeysByAdditionalProperties");function DK(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=Yb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(DK,"fillArrayFromAnyOfReference");function _K(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(U)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{DK(r,n,t,i)}),i.length===0))return;return i}o(_K,"fillArrayFromPropertyDefinition");function VK(e){return e.replace(W.UIVOCABULARYDOT,"")}o(VK,"extractUIAnnotationType");function wK(e,t,n,i,r,a,s,l){var p,g,m,v,E;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],((p=u==null?void 0:u.targetDefinition)==null?void 0:p.dataType)!==VK(Tt.UIAnnotationTypes.DataFieldForActionGroup)&&((g=u==null?void 0:u.targetDefinition)!=null&&g.$ref)||((m=u==null?void 0:u.targetDefinition)==null?void 0:m.type)==="array")return u=jo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(j=>{j!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[j].properties})}),u.title=(v=u==null?void 0:u.targetDefinition)!=null&&v.title?u.targetDefinition.title:n;let I=b==null?void 0:b.split("<")[0],N=i||{};u.configObject=a.createInstance(s,I,N,(E=u==null?void 0:u.targetDefinition)==null?void 0:E.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(wK,"determineNextDefinitionFromDefinitionArray");function jo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=jo(e,t,n,i.items,r,a,s),l;let u=_K(i,n,e);if(u)return l=wK(u,e,t,n,r,a,s,i),l}o(jo,"getNextTargetDefinition");var zb=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,m_.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function pm(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(pm,"convertEnumToCSV");function Yi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Yi,"convertActionKeyToStableId");function zt(e){return e==null?void 0:e.split(U)[1]}o(zt,"getDefinitionKey");function dm(e){return`#/definitions/${e}`}o(dm,"getDefinitionsRef");function gm(e){return e instanceof Error?e.message:String(e)}o(gm,"getErrorMessage");function gc(e,t){return e==null?void 0:e.includes(t)}o(gc,"isFeatureSupported");function Uo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Uo,"updatePropertyIndices");function mm(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(mm,"getJSONPropertyByPath");function A_(e){return e=e.replace(W.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(A_,"removeNamespaces");function Ll(e){return e=e.replace(W.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(Ll,"replaceNamespaces");function va(e){let t=e.$ref;if(typeof t=="string"&&t.startsWith(U))return t.substring(U.length)}o(va,"getRefType");function om(e){if(e===W.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return W.PageTypeV4.FPMCustomPage;if(e!=null&&e.startsWith(`${W.v4.FE_NAMESPACE_V4}.`)){let t=e.split("."),n=t[t.length-1];if(n in W.PageTypeV4)return W.PageTypeV4[n]}}o(om,"convertTemplateNameToPageTypeV4");function hm(e,t){if(e===t)return!0;let n=om(e);return n?n===om(t):!1}o(hm,"compareTemplateNames");var Lo=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=Z(ae());var zi=Z(ae());var Jt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),ym=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),zn=o((e,t)=>{let n,i=zi.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 MK(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(MK,"escapeId");var P_=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(P_||{}),x_=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(x_||{});function kK(e,t,n){let i;return e=e.map(function(r){if(r===zi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===zi.PropertyName.sections)return i=t[a+1],t[a+1]=zn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(kK,"mapBreadcrumbs");var Jb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=kK(t,s,r)),s[0]===zi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH):t[0]===zi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.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}`),MK(p)},"buildColumnControlId"),Ji=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 jK(e){let t=zi.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(jK,"determinePattern");var Zb=o((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let a=r[n],s=a,l=a.$ref?e.definitions[a.$ref.split(U)[1]]:a,u=a.description?a.description:l.description,p=jK(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),Jn=o((e,t,n)=>{Zb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(P_);Zb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ai=o((e,t,n)=>{let i=Object.values(x_);Zb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function mc(){}o(mc,"doNotDelete");var Jee=Z(I_());var eE=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(eE,e),"syncRule");function Mn(e,t){let n;return e&&(n=Reflect.getMetadata(eE,e,t)),n}o(Mn,"getReflectMetadata");function O_(e){let t;return e&&(t=Reflect.getMetadata(eE,e)),t}o(O_,"getReflectTypeMetadata");var Zi=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),R_=Symbol("childId"),kt=o(e=>Reflect.metadata(R_,e),"childId"),Tm=o((e,t)=>Reflect.getMetadata(R_,e,t),"getChildId"),vm=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),UK=Symbol("descriptionSrcURL"),Ne=o(e=>Reflect.metadata(UK,e),"descriptionSrcURL");var $K=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata($K,e),"validity");function Nl(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Nl,"getTextForDeprecated");var M_=Z(V_()),k_=Z(ae());var j_=M_.default.change,w_={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function U_(e,t){let n="";try{for(let i in w_)e[i]===void 0&&(e[i]=w_[i]);n=j_.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(U_,"createChangeString");function Tr(e){try{return j_.parse(e)}catch{return!1}}o(Tr,"parseChangeString");function $_(e,t,n,i,r){let a=n.layer?n.layer===k_.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($_,"fillFlexChangeContent");function bm(e,t){return U_(e,t)}o(bm,"exportToFlexChange");var hc=Z(ae());function Fl(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(Fl,"importProperty");function Em(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(re(i,{severity:hc.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(Em,"checkDeprecatedProperties");function tE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(U)[1]];return tE(n,t)}else return e.title?e.title.startsWith(hc.FACETTITLEPREFIX)?e.title.split(hc.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(tE,"getSectionTitle");function Sm(e){let t=e.split(`${hc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(Sm,"getTargetFromCustomColumnRef");function $r(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o($r,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var Bo=require("@sap-ux/vocabularies-types/vocabularies/UI");var Ea=require("@sap-ux/vocabularies-types/vocabularies/UI");var B_=Z(ae()),ee=Z(ae()),H_=require("path");function Ot(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Mn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=Mo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(Fl(m,l,g,e,a,r),Em(u,l,v,s))}}}o(Ot,"importSettingsOfObject");var oE="DataFieldForActionGroup";function QK(){return([e,t],[n,i])=>t[ee.SchemaTag.propertyIndex]-i[ee.SchemaTag.propertyIndex]}o(QK,"sortByPropertyIndex");function xu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(QK())}o(xu,"sortPropertiesRecords");function qK(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(qK,"getExtensionText");function nE(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ee.v4.Placement.After)===ee.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(nE,"addExtensionToSortedArray");function YK(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(YK,"addRemainingTargetByBefore");function G_(e,t,n,i){let r=t.includes(ee.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=qK(e);return{$ref:`${U}${r}`,description:a,keys:[{name:ee.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(G_,"getExtensionDetails");function iE(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=G_(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(E=>E[0]===g.position.anchor);v>-1?(nE(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(re(i,{severity:Fi.LogSeverity.Error,message:Q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&YK(e,p,g,n,m)}else r&&(nE(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?iE(e,t,n,i):s>0&&iE(e,t,n,i,!0)}o(iE,"adjustCustomExtReferringToCustomExt");function zK(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ee.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ee.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(zK,"getExtensionAnchor");function JK(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(JK,"getLocalExtensionsToSkip");function ZK(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ee.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===ee.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ee.v4.Placement.Before))}),s>-1?s:0}o(ZK,"getExtensionIndexByMergedApproach");function eX(e,t,n,i,r=!1){return r?ZK(e,t,n):n.findIndex(a=>a[0]===i)}o(eX,"getExtensionIndex");function tX(e,t,n,i,r){re(e,{severity:Fi.LogSeverity.Error,message:Q.t("INVALIDEXTENSION",{id:t}),location:{path:ee.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(tX,"handleInvalidExtension");function ba(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=JK(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=G_(g,n,p,ee.ActionType.Custom);if(typeof g!="object"){tX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=zK(g,s);if(v){let E=eX(g,e,t,v,a);E>-1&&(nE(g,t,E,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&iE(l,n,t,r),t}o(ba,"addExtensionToArray");function aE(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(aE,"addEnumForProperties");function nX(e,t,n,i=ee.DefinitionName.CustomColumn){if(i===ee.DefinitionName.CustomColumn||i.indexOf(ee.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];aE(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[ee.SchemaTag.propertyIndex]=r}}o(nX,"addColumnPropertyIndexAndEnum");function yc(e,t,n,i=ee.DefinitionName.CustomColumn,r,a){var v,E,b,I;let s=r||ee.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=xu(l),p=a?a.replace(/::/g,"/"):`@${Ea.UIAnnotationTerms.LineItem}`,g=(I=(b=(E=(v=t.options)==null?void 0:v.settings)==null?void 0:E.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;g&&(u=ba(g,u,i,void 0,n)),nX(u,e,l,i);let m={};u.forEach(([N,j])=>m[N]=j),e.definitions[s].properties=m}o(yc,"addCustomColumnDefinition");function W_(e,t){let n=t.$Type===Ea.UIAnnotationTypes.DataFieldForActionGroup,i;return e.lineItemId.startsWith(ee.DefinitionName.LineItemsOfView)?i=n?ee.DefinitionName.ViewToolBarActionGroup:ee.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ee.DefinitionName.LineItems)?i=n?ee.DefinitionName.ToolBarActionGroup:ee.DefinitionName.ToolBarAction:i=n?ee.DefinitionName.ObjectPageToolBarActionGroup:ee.DefinitionName.ObjectPageToolBarAction,i}o(W_,"determineActionDefinitionName");function iX(e,t,n){e[ee.SchemaTag.keys]=[],t[ee.SchemaKeyName.semanticObject]&&e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.semanticObject,value:t[ee.SchemaKeyName.semanticObject]});let{key:i,ns:r}=Sc(n,!0);e[ee.SchemaTag.keys].push({name:ee.SchemaKeyName.action,value:i}),r&&(e[ee.SchemaTag.target]=r)}o(iX,"addTargetAndKeysOfAction");function K_(e,t=!0){let{lineItemData:n,actions:i,lineItemPath:r,lineItemRecord:a,index:s}=e;if(a.Determining===!0)return;let l=W_(n,a),u=ci(a,n.entityType),p=a.$Type.split(`${ee.UIVOCABULARY}.`)[1],g=typeof a.Action=="string"?a.Action:a.Action.path,m=xm(g),v=i.properties[`${p}::${m}`]={description:u};if(t?v.$ref=z_(l,ft(m),n.appSchema,r):(v.properties={},v.type="object",v.isViewNode=!0),v[ee.SchemaTag.propertyIndex]=s,v[ee.SchemaTag.dataType]=Hr(a),iX(v,a,g),v[ee.SchemaTag.annotationType]=a.$Type,t){let E=v.$ref.replace(U,""),b=vt(l,E,n.appSchema,!1);b[ee.SchemaTag.annotationPath]=`${r}/${s}`}else v[ee.SchemaTag.annotationPath]=`${r}/${s}`}o(K_,"addActionRecordToSchema");function X_(e,t=!0){let{lineItemData:n,lineItemRecord:i,lineItemPath:r,index:a,actions:s}=e,l=W_(n,i),u=Br(i),p={};t?(s.properties[`${u}`]={$ref:si(l,ft(u))},p=vt(l,ft(u),n.appSchema)):s.properties[`${u}`]=p,Pa(p,Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),p.properties={},p.description=ci(i,n.entityType),p.type="object",p.isViewNode=!0,p[ee.SchemaTag.propertyIndex]=a,p[ee.SchemaTag.dataType]=Hr(i),p[ee.SchemaTag.annotationPath]=`${r}/${a}`,(i.Actions??[]).forEach((g,m)=>{let v={...e,lineItemRecord:g,lineItemPath:`${p[ee.SchemaTag.annotationPath]}/Actions`,actions:p,index:m};K_(v,t)})}o(X_,"addGroupActionRecordToSchema");function sE(e){let{lineItemRecord:t,lineItemDefinition:n}=e;t.Inline!==!0||t.Determining===!0?K_(e,!n):cE(e)}o(sE,"addLineItemActionDefinition");function cE(e){var g;let{lineItemData:t,lineItemRecord:n,lineItemDefinition:i,lineItemPath:r,index:a,columnDefinitionName:s}=e,l=n.$Type===Ea.UIAnnotationTypes.DataFieldForAction?`${s}Action`:s,u=t.lineItemId;if((g=n.Target)!=null&&g.value){let m=`@${oi(ee.UIVOCABULARY,t.oDataServiceAVT)}.`;n.Target.value=n.Target.value.replace(m,"@")}let p=Br(n).replace(/\//g,"::");if(p){let m=i;m||(m=t.appSchema.definitions[u]);let v=m.properties,E={description:ci(n,t.entityType)};i?(E.properties={},E.type="object",E.isViewNode=!0):E.$ref=U+l,E[ee.SchemaTag.annotationType]=n==null?void 0:n.$Type,E[ee.SchemaTag.annotationPath]=`${r}/${a}`,E[ee.SchemaTag.propertyIndex]=a,E[ee.SchemaTag.dataType]=Hr(n),v[p]=E,Om(n,v,p)}}o(cE,"addLineItemRecordToSchema");function lE(e,t,n,i,r=ee.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{let l={lineItemData:e,actions:t,lineItemPath:n,lineItemRecord:s,index:a,lineItemDefinition:i,columnDefinitionName:r};os.getStrategy(s.$Type).addLineItemDefinition(l),a++})}o(lE,"appendLineItemsToSchema");function Tc(e,t=ee.DefinitionName.TableColumn,n=ee.DefinitionName.CustomColumn,i=ee.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=Cm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);lE(e,r,a,void 0,t)}o(Tc,"addLineItemsTypeToSchema");function vc(e,t,n,i=ee.DefinitionName.Position,r){var p,g,m,v,E;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==ee.DefinitionName.LineItems?r:`@${Ea.UIAnnotationTerms.LineItem}`,u=(E=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:E.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;Aa(s,b)}}o(vc,"addFragmentEnumForAnchor");function fo(e,t,n=ee.DefinitionName.CustomActionPosition){as(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(fo,"addEnumForActionAnchor");function Am(e,t,n,i){var a;let r;for(let s in e){let l=((a=e[s].options)==null?void 0:a.settings)||{};if((i&&l.contextPath===i||(n==null?void 0:n.name)&&l.entitySet===n.name)&&(hm(t,e[s].name)||t===ee.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ee.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Am,"findPageV4");function Q_(e,t){let n,i=e.properties[ee.PropertyName.table];return t.templateType===ee.TemplateType.AnalyticalListPageV4?(n=ee.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${U}${ee.DefinitionName.ALPTableView}`,delete e.definitions[ee.DefinitionName.Table],delete e.definitions[ee.DefinitionName.LRChartView],delete e.definitions[ee.DefinitionName.LRTableView],delete e.definitions[ee.DefinitionName.MultiTableModeV4]):t.templateType===ee.TemplateType.ListReportObjectPageV4&&(n=ee.DefinitionName.Table,delete i.anyOf,i.$ref=`${U}${ee.DefinitionName.Table}`,e.definitions[n].properties[ee.PropertyName.annotationPath][ee.SchemaTag.hidden]=!0,delete e.definitions[ee.DefinitionName.ALPTableView],e.properties[ee.PropertyName.defaultPath][ee.SchemaTag.hidden]=!0),n}o(Q_,"alignSchemaWithTemplateType");function Sa(e,t,n,i=ee.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,E,b,I,N,j,G,$;let s=e.definitions[r];if(!s)return;let l=xu(s),u;a?i.indexOf(ee.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ee.DefinitionName.CustomFormActionOP?u=`@${Ea.UIAnnotationTerms.FieldGroup}`:u=`@${Ea.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ee.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(E=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:E.sections)==null?void 0:b[u])==null?void 0:I.actions:p=($=(G=(j=(N=t.options)==null?void 0:N.settings)==null?void 0:j.controlConfiguration)==null?void 0:G[u])==null?void 0:$.actions,p&&(l=ba(p,l,i,"press",n)),l){for(let te=0;te<l.length;te++)l[te][1][ee.SchemaTag.propertyIndex]=te;let se={};l.forEach(([te,le])=>se[te]=le),e.definitions[r].properties=se}}o(Sa,"addCustomActionDefinition");function Pm(e,t,n,i=ee.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,E,b,I,N;let a=e.definitions[r];if(!a)return;let s=xu(a),l;[ee.DefinitionName.CustomHeaderAction,ee.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(N=(I=(b=(E=t.options)==null?void 0:E.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:N.actions,l&&(s=ba(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][ee.SchemaTag.propertyIndex]=j;s.forEach(([j,G])=>u[j]=G)}e.definitions[r].properties=u}o(Pm,"addHeaderFooterCustomActionDefinition");function bc(e,t,n){let i=mm(e,[ee.ManifestSection.ui5,"routing","targets"]);if(!i){re(n,{severity:Fi.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}let r=mm(i,[t]);if(!r){re(n,{severity:Fi.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:t}),location:{path:ee.MANIFESTPATH,range:[ee.ManifestSection.ui5,"routing"]}});return}return r}o(bc,"getManifestPage");function Ec(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,H_.join)(...p,g),v=e.find(E=>E.dataSourceUri.endsWith(m));if(v){let E=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:E==null?void 0:E.contextPath,entitySet:E==null?void 0:E.entitySet}}}}}o(Ec,"getPageCustomExtensionFile");function $o(e,t,n,i){let r=bc(n,t,i),a=mm(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ec(e,r,n,"view",a):void 0}o($o,"getPageCustomViewFile");function q_(e,t,n,i,r,a,s){var g,m,v,E,b,I,N,j,G,$,se,te;let l=xu(t),u=new Map;if(l=l.map(le=>{let Re=Im(e,le[1],le[0],{keyProperties:[ee.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Re.const,le[0]),[Re.const,le[1]]}),a){let le=(b=(E=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:E.sections)==null?void 0:b[a];le&&"subSections"in le&&(l=ba(le.subSections,l,i,"template",s,r))}else if(i.includes(ee.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let le=(j=(N=(I=n.options)==null?void 0:I.settings)==null?void 0:N.content)==null?void 0:j.header;le&&"facets"in le&&(l=ba(le.facets,l,i,"template",s,r))}else{let le=(te=(se=($=(G=n.options)==null?void 0:G.settings)==null?void 0:$.content)==null?void 0:se.body)==null?void 0:te.sections;le&&(l=ba(le,l,i,"template",s,r))}for(let le=0;le<l.length;le++)l[le][1][ee.SchemaTag.propertyIndex]=le;let p={};l.forEach(([le,Re])=>{le=u.get(le)||le,p[le]=Re}),t.properties=p}o(q_,"addCustomSectionDefinition");function Y_(e,t,n){var l,u,p;let i=xu(t),r=new Map;i=i.map(g=>{let m=Im(e,g[1],g[0],{keyProperties:[ee.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Ea.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ba(a.filterFields,i,ee.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ee.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(Y_,"addCustomFilterFieldDefinition");function rE(e,t,n=!1){let{appSchema:i,factory:r,actionsInConfig:a,actionKey:s,manifest:l,routingId:u,manifestSectionId:p,targetAnnotation:g}=e,m=(t??"").split("<")[0],v=r.createInstance(B_.PageTypeV4.ObjectPage,m),E=[s.replace("/","??")];if(g&&E.push(g),v){let b=a[s]=v;Ot(b,l,i.definitions[t],u,E,p),n||$r(a,s)}}o(rE,"importActionToConfigurationObject");function rX(e,t){let{actionPropertyDefinition:n}=e,i=zt(t.$ref||n.$ref);rE(e,i)}o(rX,"importSingleActionSettingsOfReference");function oX(e,t){let{actionPropertyDefinition:n,appSchema:i,actionsInConfig:r,actionKey:a}=e,s=zt(t.$ref??n.$ref);rE(e,s,!0);let l=r[a];Pa(l,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let{properties:u}=t;for(let p in u){let g=u[p],m=zt(g.$ref),v=i.definitions[m],E=zt(v.$ref??g.$ref),b={...e,actionsInConfig:l,actionKey:p};rE(b,E)}$r(r,a)}o(oX,"importGroupActionSettingsOfReference");function Dl(e){let{actionPropertyDefinition:t,appSchema:n}=e,i=zt(t.$ref),r=n.definitions[i];r.dataType===oE?oX(e,r):rX(e,r)}o(Dl,"importActionSettingsOfReference");var bE=class bE{addDefinition(t){J_(t)}addLineItemDefinition(t){cE(t)}};o(bE,"DataFieldStrategy");var uo=bE,EE=class EE extends uo{generateStableId(t){return xa("DataFieldForAction::"+t.Action)}generateDescription(t,n){let i=ya(t.Label,n);return cm(t,i)}addDefinition(t){Cu(t)}addLineItemDefinition(t){sE(t)}};o(EE,"DataFieldForActionStrategy");var fE=EE,SE=class SE extends uo{generateStableId(t){return xa("DataFieldForActionGroup::"+t.ID)}generateDescription(t,n){let i=ya(t.Label,n);return t.Label??t.ID??i}addDefinition(t){Cu(t)}addLineItemDefinition(t){var n;X_(t,!((n=t.lineItemData)!=null&&n.isMacro))}};o(SE,"DataFieldForActionGroupStrategy");var uE=SE,AE=class AE extends uo{generateStableId(t){return"DataFieldForIntentBasedNavigation::"+NE(t)}generateDescription(t,n){let i=ya(t.Label,n);return cm(t,i)}addDefinition(t){Cu(t)}addLineItemDefinition(t){sE(t)}};o(AE,"DataFieldForIntentBasedNavigationStrategy");var pE=AE,PE=class PE extends uo{generateStableId(t){var i,r;let n=((i=t.Target)==null?void 0:i.$AnnotationPath)??((r=t.Target)==null?void 0:r.value)??"";return"DataFieldForAnnotation::"+xa(n)}generateDescription(t,n){var a,s,l,u;let i=Au(t,n);return ya(t.Label,n)||i||((s=(a=t==null?void 0:t.Target)==null?void 0:a.$target)==null?void 0:s.Title)||((u=(l=t==null?void 0:t.Target)==null?void 0:l.value)==null?void 0:u.split("UI.v1.")[1])}};o(PE,"DataFieldForAnnotationStrategy");var dE=PE,xE=class xE extends uo{generateStableId(t){let n="DataFieldWithAction::";return"Value"in t&&t.Value&&(n+=ss(t.Value)+"::"),n+=t.Action,xa(n)}generateDescription(t,n){let i=ya(t.Label,n);return cm(t,i)}};o(xE,"DataFieldWithActionStrategy");var gE=xE,CE=class CE extends uo{generateStableId(t){return xa("DataField::"+ss(t.Value))}generateDescription(t,n){let i=ya(t.Label,n);return Hb(t,n,i)}};o(CE,"DataFieldStrategyDefault");var mE=CE,IE=class IE extends uo{generateStableId(t){let n="DataFieldWithIntentBasedNavigation::";return n+=ss(t.Value)+"::",n+=NE(t),xa(n)}generateDescription(t,n){return Au(t,n)||t.Value.path}};o(IE,"DataFieldWithIntentBasedNavigationStrategy");var hE=IE,OE=class OE extends uo{generateStableId(t){let n="DataFieldWithNavigationPath::"+ss(t.Value);return t.Target&&t.Target.$NavigationPropertyPath&&(n+="::"+t.Target.$NavigationPropertyPath),xa(n)}generateDescription(t,n){let i=ya(t.Label,n);return Hb(t,n,i)}};o(OE,"DataFieldWithNavigationPathStrategy");var yE=OE,RE=class RE extends uo{generateStableId(t){return xa("DataFieldWithUrl::"+ss(t.Value))}generateDescription(t,n){let i=Au(t,n);return ya(t.Label,n)||i||(typeof t.Value=="string"?t.Value:t.Value.path)}};o(RE,"DataFieldWithUrlStrategy");var TE=RE,LE=class LE{constructor(){this.strategies=new Map,this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForAction,new fE),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForActionGroup,new uE),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForIntentBasedNavigation,new pE),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldForAnnotation,new dE),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithAction,new gE),this.registerStrategy(Bo.UIAnnotationTypes.DataField,new mE),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithIntentBasedNavigation,new hE),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithNavigationPath,new yE),this.registerStrategy(Bo.UIAnnotationTypes.DataFieldWithUrl,new TE)}registerStrategy(t,n){this.strategies.set(t,n)}getStrategy(t){return this.strategies.get(t)}};o(LE,"DataFieldStrategyContext");var vE=LE,os=new vE;function xm(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(xm,"replaceSpecialChars");var xa=o(function(e){return xm(A_(e))},"prepareId");function aX(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(aX,"evaluateConcat");function ss(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 aX(e);if(e&&typeof e=="string")return xm(e.replace(/ /g,"_"))}o(ss,"getStableIdPartFromValue");var NE=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),Br=o(function(e){let t=os.getStrategy(e.$Type);return t==null?void 0:t.generateStableId(e)},"getStableIdPartFromDataField");var fe=Z(ae());var De=Z(ae());var er=require("@sap-ux/vocabularies-types/vocabularies/UI"),n0=require("path"),i0=Z(uc());var Rm="ResponsiveTableWithMultiSelect<LineItems>",Lm="ResponsiveTableWithInlineDelete<LineItems>",sX="TreeTable<LineItems>",cX="AnalyticalTable<LineItems>",lX="GridTable<LineItems>",FE=[Rm,Lm,sX,cX,lX],Z_=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],e0="template::",Nm="template:::ObjectPageAction:::";function fX(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(fX,"addCustomColumnDefinition");function uX(e,t){let n;return e==="TableColumnActionIntentBased"?n=Kb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ft(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===er.UIAnnotationTypes.DataFieldForAction?n=ft(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ft(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(uX,"getActionId");function DE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=uX(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=ci(n.lineItemRecord,n.entityType);t.properties[l]={$ref:U+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=Sc(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(DE,"handleActionRecord");function pX(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===er.UIAnnotationTypes.DataFieldForAction||t.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(pX,"getColumnActionType");function dX(e,t){let n=[];if(!(e.$Type!==er.UIAnnotationTypes.DataFieldForAction&&e.$Type!==er.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===er.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===er.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),pX(t,e,n),n}o(dX,"getActionType");function r0(e,t,n){let i=Kb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:U+De.DefinitionName.TableColumn,description:ci(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Vm(r.properties[i],e.lineItemRecord),Om(e.lineItemRecord,r.properties,i)}}o(r0,"generateGenericColumn");function gX(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{DE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&DE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{DE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":r0(i,t,r)}}o(gX,"handleAnyAction");function Iu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(Iu,"retrieveNameWithoutVocabularyFromVisualization");function _l(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=Cm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=dX(g,r);v?v.forEach(E=>{gX(E,t,s,m,p,l,r)}):r0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${U}${a}`})}o(_l,"addLineItemsType");function mX(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(mX,"addListReportLeadingProperties");function hX(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 E in a){let b=(m=a[E])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}Aa(v,r)}}o(hX,"addTabkeyEnum");function Fm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,i0.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("\\"+n0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),Aa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(Fm,"addFragmentEnum");function Vl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){fX(e,a,s),mX(e,t,s),hX(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Fm(e,r,u,"fragmentName",s),Fm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),Fm(e,r,u,"cellsFragmentName",s),Fm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(Vl,"addTableColumnExtensions");function o0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(o0,"removeElementsFromEnum");function Dm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=yr(n==null?void 0:n.fullyQualifiedName,er.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ft(s.value)}>`,p=Hr(s);s.type==="PropertyPath"&&(l=sm(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(Dm,"addSelectionFields");function a0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(a0,"addEntityPropertiesToEnum");function _m(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(_m,"isDraftEnabled");function 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 c0(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(c0,"isEntityUpdatable");function wl(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(wl,"addStandardHeaderActions");function l0(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(l0,"addStandardFooterActionsOP");function Ml(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?Q.t("NOUIANNOTATIONS",{entityType:t.name}):Q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});re(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(Ml,"getUIAnnotationForEntitySet");function yX(e,t,n,i){if(e===fe.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithNavigationPath:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===fe.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case _t.UIAnnotationTypes.DataField:case _t.UIAnnotationTypes.DataFieldForAnnotation:case _t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(yX,"copyFieldProperties");function VE(e,t,n,i){let r=e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===fe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(VE,"determineFieldDefinitionName");function TX(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][fe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][fe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(TX,"addKeysTagForDataField");function vX(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)TX(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][fe.SchemaTag.keys]=[{name:"Target",value:Ll(e.Target.value)}],t.definitions[n][fe.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][fe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][fe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][fe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][fe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(vX,"addKeysTagToField");function bX(e){var t,n;return e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===_t.UIAnnotationTypes.ConnectedFieldsType}o(bX,"isConnectedField");function EX(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let E=u.findIndex(b=>b===m);E===-1&&(E=g,g++),_E(e,t,v,`ConnectedFields::${a.qualifier}`,E.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(EX,"addConnectedFields");function f0(e,t,n){if(n)return n;let i=ft(t);return e.definitions[i].properties}o(f0,"getFieldsSchemaContainer");function wE(e,t){return e===fe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::").splice(1).join("::"):t}o(wE,"getFieldReference");function _E(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){if(!n||!n.$Type)return;let g={appSchema:t,withActions:l,sectionType:e,field:n,targetID:i,containersSchema:u,key:r,version:s,section:a,entityTypeName:p};os.getStrategy(n.$Type).addDefinition(g)}o(_E,"addField");function SX(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(SX,"determineTargetIdOfForm");function AX(e,t,n,i,r,a){if(e.base===fe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&_E(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];_E(t,n,l,i,s,e,r)}}o(AX,"addFieldsToFormDefinition");function PX(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][fe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][fe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][fe.SchemaTag.annotationPath]=yr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(PX,"addTagsToFormDefinition");function wm(e,t,n,i,r,a){if(!t.target)return;let s=SX(t),l=ft(`${e}${fe.DefinitionName.Form}<${s}>`),u=ft(`${e}${fe.DefinitionName.Fields}<${s}>`),p=ft(`${e}${fe.DefinitionName.Actions}<${s}>`),g=!(t.base===fe.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${U}${l}`},e===fe.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][fe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${U}${u}`}},description:"Form",additionalProperties:!1},PX(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][fe.SchemaTag.isViewNode]=!0,AX(t,e,i,s,r,g),s}o(wm,"handleForm");function ME(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(ME,"replaceAlias");function Mm(e,t){let n=ME(e.Action??"",t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(Mm,"getActionNameAndId");function u0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:u0(a.pages,t)}}o(u0,"isFirstObjectPage");function km(e,t,n,i,r){var g,m;e.definitions[fe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${U}${fe.DefinitionName.ObjectPageFooter}`},e.definitions[fe.DefinitionName.ObjectPageFooter].properties[fe.PropertyName.actions]={$ref:`${U}${fe.DefinitionName.FooterActions}`};let a=e.definitions[fe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[fe.SchemaTag.isViewNode]=!0;let s=oi(fe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let v=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);a[fe.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[fe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===fe.FioriElementsVersion.v2&&u0(r,t)&&!_m(l)&&l0(e,a),delete e.definitions[fe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${fe.DefinitionName.ObjectPageFooter}<${fe.DefinitionName.ObjectPageFooterActions}>`]}o(km,"addFooterActions");function jm(e,t,n,i,r,a=!1){var m,v;let s=fe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[fe.DefinitionName.ObjectPageHeader].properties[fe.PropertyName.actions]={$ref:`${U}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[fe.SchemaTag.isViewNode]=!0;let p=oi(fe.UIVOCABULARY,n.serviceAVT),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[fe.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(u[fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&wl(e,!0,l)}o(jm,"addHeaderActions");function Um(e,t){e.properties.header={$ref:`${U}${fe.DefinitionName.ObjectPageHeader}`},e.definitions[fe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${fe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[fe.DefinitionName.ObjectPageHeader][fe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}o(Um,"addCommonHeaderSchema");function p0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(p0,"determineEntitySetOfEntityType");function J_(e){let{appSchema:t,section:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Br(r),g=wE(u,p),m=VE(u,p,a,g),v=f0(t,`${i}${fe.DefinitionName.Fields}<${a}>`,s.fields),E={};v[g]={$ref:`${U}${m}`,propertyIndex:parseInt(l)},bX(r)&&(E=EX(i,t,r,n,u)),d0(e,m,E)}o(J_,"addDataFieldDefinition");function Cu(e){let{appSchema:t,withActions:n,sectionType:i,field:r,targetID:a,containersSchema:s,key:l,version:u}=e,p=Br(r),g=wE(u,p),m=VE(u,p,a,g),v={};if(n&&i===fe.SectionType.Section){let E=f0(t,`${i}${fe.DefinitionName.Actions}<${a}>`,s.actions),b=E[g]={$ref:`${U}${m}`};b[fe.SchemaTag.propertyIndex]=parseInt(l)}xX(e,m,v),d0(e,m,v)}o(Cu,"addDataFieldForActionAndActionGroupDefinition");function xX(e,t,n){let{appSchema:i,field:r,version:a}=e;r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&(r.Actions??[]).forEach(s=>{let l={...e,field:s,targetID:t,withActions:!1},u=Br(s),p=wE(a,u),g=VE(a,u,t,p);Cu(l),n[p]=i.definitions[g]})}o(xX,"addGroupedActionsToDefinition");function d0(e,t,n={}){var u,p;let{appSchema:i,field:r,version:a,section:s,entityTypeName:l}=e;i.definitions[t]={type:"object",properties:n,description:ci(r,s.entityType),additionalProperties:!1},r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&Pa(i.definitions[t],Q.t("ACTION_GROUPS_ARENT_SUPPORTED")),vX(r,i,t),i.definitions[t][fe.SchemaTag.annotationPath]=`/${l}/${r.fullyQualifiedName.split(l)[1]}`,i.definitions[t][fe.SchemaTag.annotationType]=r.$Type,i.definitions[t][fe.SchemaTag.isViewNode]=!0,Vm(i.definitions[t],r),yX(a,i,r,t),r.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((u=i.definitions)!=null&&u[fe.DefinitionName.FormAction])&&(i.definitions[t].$ref=`${U}${fe.DefinitionName.FormAction}`,delete i.definitions[t].properties),r.$Type===_t.UIAnnotationTypes.DataFieldForActionGroup&&((p=i.definitions)!=null&&p[fe.DefinitionName.ObjectPageFormActionGroup])&&(i.definitions[t].$ref=`${U}${fe.DefinitionName.ObjectPageFormActionGroup}`)}o(d0,"writeDefinitionToSchema");var vr=require("@sap-ux/vocabularies-types/vocabularies/UI");var Xe=Z(ae());function Aa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(Aa,"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)}}Aa(r,n)}o(Ou,"addEnumForValidAnnotations");function cs(e,t,n){let i=t.definitions[n].properties[Xe.SchemaTag.annotationPath],r=[vr.UIAnnotationTerms.SelectionVariant,vr.UIAnnotationTerms.SelectionPresentationVariant];Ou(e,r,i)}o(cs,"addEnumForSingleTabVariant");function g0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[vr.UIAnnotationTerms.SelectionVariant,vr.UIAnnotationTerms.SelectionPresentationVariant];Ou(n.entityType,r,i)}o(g0,"addEnumForMultiTabVariant");function m0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),Aa(r,i)}o(m0,"addEnumForVariantEntitySet");function h0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[vr.UIAnnotationTerms.FieldGroup];Ou(e,r,i)}o(h0,"addEnumFieldGroupAnnotationPath");function y0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[Xe.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${U}${Xe.DefinitionName.RelatedFacetKeys}`},l]}}}}o(y0,"addDefinitionForRelatedFacetKeys");function Ac(e){return e.replace("#","::")}o(Ac,"getFacetKeyInSchema");function Ru(e,t){return`${e}<${Ac(t)}>`}o(Ru,"getFacetDefinitionKey");function vt(e,t,n,i=!0){let r=t;if(i&&(r=Ru(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(vt,"parseSchemaDefinition");function $m(e,t,n){let i;return t===Xe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${vr.UIAnnotationTerms.LineItem}`?i=`${U}${n}`:(i=`${U}${n}<${t}>`,vt(n,t,e,!0)),i}o($m,"getCustomExtensionDefinitionName");function Cm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][Xe.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=$m(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let u=e?Xe.DefinitionName.ObjectPageToolBar:Xe.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${Xe.DefinitionName.Actions}<${ft(r)}>`;t.definitions[p].properties.actions.$ref=U+g;let m=r.startsWith(Xe.DefinitionName.LineItems)?Xe.DefinitionName.Actions:Xe.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=$m(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let E,b;if(r===Xe.DefinitionName.LineItems&&t.properties.footer){b=`${Xe.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${U}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.GenericFooter]))}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:Xe.DefinitionName.GenericFooter}))}let I=`${Xe.DefinitionName.FooterActions}<${ft(r)}>`;t.definitions[b].properties.actions.$ref=U+I,E=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[Xe.DefinitionName.Actions])),E.properties={},E.additionalProperties=!1}return n&&(l=yr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][Xe.SchemaTag.annotationPath]=l,E&&(t.definitions[b][Xe.SchemaTag.annotationPath]=l))),{actions:v,footerActions:E,lineItemPath:l}}o(Cm,"addCommonLineItemDefinitions");function T0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(T0,"getDataTypeFromAnnotation");function Pc(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=T0(e.$Type)),t}o(Pc,"determineDataTypeOfTarget");function Hr(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=Pc((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=T0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(Hr,"determineDataType");function Vm(e,t){let n=Hr(t);n&&(e[Xe.SchemaTag.dataType]=n)}o(Vm,"addDataTypeToDefinition");function si(e,t){return`${U}${Ru(e,t)}`}o(si,"getFacetDefinitionLink");function z_(e,t,n,i){let r=0,a=!1,s="";do{let l=`${t}${r===0?"":"."+r}`;s=si(e,l),r++;let u=n.definitions[Ru(e,l)],p=((u==null?void 0:u.annotationPath)??"").split("/").slice(0,-1).join("/");a=!u||p===i}while(!a);return s}o(z_,"getUniqueFacetDefinitionLink");function ls(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${U}${i}`}o(ls,"addDefinitionRef");function Bm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${Xe.UIVOCABULARY}`);t=`/${n}/@${Xe.UIVOCABULARY}${i}`}return t}o(Bm,"getFacetAnnotationPath");function Lu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:si(a?u:l,t)};let p=vt(a?u:l,t,i,!0);Ta(e,p,t),is(e,p,t),p[Xe.SchemaTag.annotationPath]=e.annotationPath,p[Xe.SchemaTag.isViewNode]=!0}o(Lu,"handleAddressContact");function kE(e,t,n){typeof e=="object"&&(e[t]=n)}o(kE,"updateSchemaProperty");function kl(e,t,n=ft("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${Xe.DefinitionName.Fields4Dialog}${n}`];kE(r.properties.fields.items,"enum",i)}o(kl,"addFieldsType");function CX(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(CX,"findFirstSchemaDefinitionKey");function Im(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=zt(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=CX(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(Im,"getEnumEntry");function as(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=Im(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];kE(l,"oneOf",r)}else kE(a,"oneOf",r)}o(as,"addDescriptiveEnumDefinition");function Sc(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(Sc,"getActionKey");function Om(e,t,n){var i,r,a;try{if(e.Value)t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.value,value:ss(e.Value)}];else if(e.$Type===vr.UIAnnotationTypes.DataFieldWithAction||e.$Type===vr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=Sc(e.Action,!0);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.action,value:s}],l&&(t[n][Xe.SchemaTag.target]=l)}else if(e.$Type===vr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=Sc(e.Target.value,!1);t[n][Xe.SchemaTag.keys]=[{name:Xe.SchemaKeyName.target,value:Ll(s)}],t[n][Xe.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===vr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===vr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=Sc(s,!0);t[n][Xe.SchemaTag.keys]=[{name:"SemanticObject",value:e[Xe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][Xe.SchemaTag.target]=u)}}catch{return}}o(Om,"addKeyToDefinition");function ci(e,t){try{return os.getStrategy(e.$Type).generateDescription(e,t)}catch{return""}}o(ci,"getDataFieldDescription");function Pa(e,t){e[Xe.SchemaTag.messages]||(e[Xe.SchemaTag.messages]=[]),Array.isArray(e[Xe.SchemaTag.messages])&&e[Xe.SchemaTag.messages].push({text:t})}o(Pa,"addMessageToSchema");var jl=Z(ae());var v0=[{version:"1.136",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.136","UI5-1.137","UI5-1.138","UI5-1.139","UI5-1.140"]},{version:"1.124",distTag:["UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130","UI5-1.131","UI5-1.132","UI5-1.133","UI5-1.134","UI5-1.135"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var E0="1.108.62";var S0={name:"@sap/ux-specification",version:E0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">=20.0.0 <21.0.0 || >=22.0.0 <23.0.0 || >=24.0.0 <25.0.0 || >=26.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas -s htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/schema/index.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -s htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.38.2","@sap-ux/vocabularies-types":"0.13.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.108.62","@sapui5/ts-types-esm":"latest-1.108","@types/d3":"7.4.3","@types/jquery":"3.5.32","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.11.0",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"25.4.2",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.2","typescript-json-schema":"0.65.1","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var fs=class fs{constructor(){fs.distTagsOfSpec.length===0&&(fs.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){fs.distTagsOfSpec=[]}getSpecVersion(){return E0}getDistTagsOfVersion(){let t=[],n=v0,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});re(n,{severity:jl.LogSeverity.Info,message:r,location:{path:jl.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(fs.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=Q.t("WRONGMINUI5VERSION",{minUI5Version:t});re(n,{severity:jl.LogSeverity.Warning,message:r,location:{path:jl.MANIFESTPATH}})}}};o(fs,"DistTagEvaluator"),fs.distTagsOfSpec=[];var Nu=fs;var ue=Z(ae());var jn=Z(ae());var Ei=Z(ae());function A0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(A0,"getCustomPageFullName");function RX(e){let n=A0(e).split(".");return n[n.length-1]}o(RX,"getCustomPageName");function P0(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)||Ei.ViewTypes.XML}o(P0,"getViewType");function LX(e,t){return P0(e,t).toLowerCase()}o(LX,"getViewTypeExtension");function NX(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=A0(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(NX,"getViewPath");function FX(e,t){let n=e.entitySet||RX(e),{viewPath:i,fileName:r}=NX(e,t,[n]),a=LX(e,t);return[...i,`${r}.view.${a}`].join("/")}o(FX,"getCustomPagePath");var jE=class jE{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(Ei.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)===Ei.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Ei.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[Ei.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=P0(t,this.app)===Ei.ViewTypes.XML&&!!t.config;if(t.pageType===Ei.PageTypeV4.CustomPage||t.pageType===Ei.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===Ei.PageTypeV4.CustomPage||t.pageType===Ei.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=FX(t,this.app);n.$filePath=i}};o(jE,"AppProvider");var us=jE;var ut=Z(ae());var Ul=Z(ae());var Kn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),x0=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"),C0=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 UE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(UE,"getNewPageTemplate");function DX(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(DX,"findPageInManifest");function _X(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=UE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:UE(e[t].pageType)}),!Array.isArray(n.pages))){let i=DX(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=UE(e[t].pageType)),$E(t,e,i)}}o(_X,"transformPageFromAssociation");function VX(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===Ul.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Ul.PageTypeV2.ListReport||n.pageType===Ul.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(VX,"deletePage");function $E(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Ul.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)_X(t,r,n);Array.isArray(n.pages)||VX(n,t,i)}}o($E,"transformPageToNewManifestV2");var uV=Z(uc());var LA={};lc(LA,{ALPAnalyticalTable:()=>RS,ALPGridTable:()=>OS,ALPResponsiveTable:()=>IS,Action:()=>DS,AnalyticalCard:()=>Wl,AnalyticalCardSettings:()=>Km,AnalyticalCardSettingsv4:()=>XE,AnalyticalListPageFilterBar:()=>nS,AnalyticalTable:()=>CS,BaseCustomSection:()=>lp,ChartSettings:()=>zS,ChartSettingsType:()=>HE,CommonCardSettings:()=>ms,CommonFilterBar:()=>Hu,CommonHeaderFacetSettings:()=>_c,CommonTableSettings:()=>vs,CommonTableSettingsForSections:()=>jc,CreateWithFilters:()=>vS,CustomCard:()=>WE,DataLoadSettings:()=>ES,DateRange:()=>JE,DefaultDateRange:()=>ZE,DefaultSpanObject:()=>GE,FRAGMENT_DEFINITION:()=>Go,Field:()=>zE,FieldForAction:()=>sS,Fields4Dialog:()=>SS,Fields4DialogOP:()=>PA,FooterAction:()=>VS,FormAction:()=>aS,GlobalChartSettings:()=>SA,GlobalTableSettings:()=>OA,GridTable:()=>LS,HeaderActionStandard:()=>US,HeaderSections:()=>oA,KPISettings:()=>JS,LinkListCardSettings:()=>qE,LinklistCard:()=>Uu,ListCard:()=>Gl,ListCardSettings:()=>KE,ListReportFilterBar:()=>iS,MultiEdit:()=>bS,ObjectPageAnalyticalTable:()=>xA,ObjectPageChart:()=>EA,ObjectPageCustomSectionFragment:()=>fp,ObjectPageCustomSectionView:()=>up,ObjectPageFooterAction:()=>sA,ObjectPageFooterActionStandard:()=>BS,ObjectPageGridTable:()=>CA,ObjectPageHeader:()=>ZS,ObjectPageHeaderAction:()=>eA,ObjectPageHeaderActionStandard:()=>$S,ObjectPageHeaderSectionAddress:()=>rA,ObjectPageHeaderSectionChart:()=>nA,ObjectPageHeaderSectionDataPoint:()=>iA,ObjectPageHeaderSectionForm:()=>tA,ObjectPageLayout:()=>lA,ObjectPageResponsiveTable:()=>Uc,ObjectPageSectionAddressV2:()=>gA,ObjectPageSectionChartV2:()=>pA,ObjectPageSectionContactV2:()=>mA,ObjectPageSectionFormV2:()=>uA,ObjectPageSectionTableV2:()=>dA,ObjectPageSectionV2:()=>fA,ObjectPageSubSectionChartV2:()=>TA,ObjectPageSubSectionContactV2:()=>vA,ObjectPageSubSectionFormV2:()=>yA,ObjectPageSubSectionTableV2:()=>bA,ObjectPageSubSectionV2:()=>hA,ObjectPageToolBarAction:()=>RA,ObjectPageTreeTable:()=>IA,QuickVariantSelection:()=>AS,QuickVariantSelectionOP:()=>AA,QuickVariantSelectionX:()=>PS,ResponsiveTable:()=>Rc,SAP_UI_TABLE:()=>Zm,SaveAndEditOP:()=>jS,SelectionFieldDateSettings:()=>eS,SelectionFields:()=>tS,Share:()=>wS,ShareOP:()=>MS,StackCard:()=>ju,StackCardSettings:()=>QE,TableALP:()=>Yl,TableCard:()=>Kl,TableCardSettings:()=>YE,TableColumn:()=>WS,TableColumnAction:()=>bh,TableColumnActionIntentBased:()=>KS,TableCustomColumn:()=>XS,ToolBar:()=>qS,ToolBarAction:()=>_S,TreeTable:()=>xS,UpAndDownNavigationOP:()=>kS,buildIntentBasedActionId:()=>HS,deleteColumnFromFragment:()=>nh,deleteType:()=>Jl,exportColorPalette:()=>L0,exportCreateParametersFields:()=>fh,exportCustomColumnsToFragment:()=>yS,exportDateSettingsField:()=>_0,exportDefaultSpan:()=>N0,exportType:()=>zl,getChartSectionControlId:()=>aV,getContactSubSectionControlId:()=>cV,getCustomColumnPath:()=>ih,getFormSectionControlId:()=>oV,getRootCustomColumnFromFragmentJSON:()=>Ku,getSectionControlId:()=>Mc,getSmartChartControlId:()=>tp,getSmartTableControlId:()=>Oc,getSubSectionControlId:()=>sV,getTableSectionControlId:()=>rV,importCreateParameters:()=>lh,importDateSettings:()=>rS});var Zn=Z(ae());var je=o(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),po=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),I0=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),O0=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var An=o(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),Pe=o(e=>{let t=[Zn.ManifestSection.ovp];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var xc=o((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Wm=o(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Di=o(e=>{let t=[];return t.push(Wm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Cc=o(e=>Di(e)+"/tableSettings","getGlobalTableSettingsPathV2"),go=o((e,t,n)=>{let i=[];i.push(Wm(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),Wr=o((e,t,n)=>go(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),R0=o((e,t,n)=>go(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),BE=o(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ca=o((e,t,n,...i)=>{let a=n.split("|"),s=e[e.length-1].split("|"),l="";a.length===4?l=[a[2],a[3]].join("|"):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join("|");return i.unshift(u),`${BE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Gm=class Gm{};o(Gm,"ApplicationV2"),h([kt("settings")],Gm.prototype,"settings",2);var Hm=Gm,Gr=class Gr{};o(Gr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Gr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Gr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Gr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Gr.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Gr.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),Ne("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Gr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Zn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Gr.prototype,"statePreservationMode",2);var ps=Gr;var Fu=Z(ae());function wX(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=Fu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=Fu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:Fu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(wX,"importColorPalette");function L0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===Fu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(L0,"exportColorPalette");function N0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(N0,"exportDefaultSpan");var Xm=class Xm{};o(Xm,"ChartSettingsType"),h([y({manifest:{path:o(()=>An()+"/chartSettings","path")}})],Xm.prototype,"showDataLabel",2);var HE=Xm,ds=class ds{};o(ds,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"cols",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"rows",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ds.prototype,"minimumSubTitleRow",2);var GE=ds,Kt=class Kt{};o(Kt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"title",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"category",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Pe(t),"path"),export:N0}})],Kt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Kt.prototype,"customParams",2);var ms=Kt,$l=class $l{};o($l,"CustomCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],$l.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],$l.prototype,"template",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],$l.prototype,"settings",2);var WE=$l,gs=class gs extends ms{};o(gs,"ListCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],gs.prototype,"listType",2);var KE=gs,Du=class Du{};o(Du,"ListCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Du.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Du.prototype,"template",2);var Gl=Du,mo=class mo extends ms{};o(mo,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],mo.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],mo.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],mo.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],mo.prototype,"navigation",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],mo.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],mo.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Pe(t),"path"),import:wX,export:L0}})],mo.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],mo.prototype,"bEnableStableColors",2);var Km=mo,Qm=class Qm extends Km{};o(Qm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Qm.prototype,"measureAggregate",2);var XE=Qm,_u=class _u{};o(_u,"AnalyticalCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],_u.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],_u.prototype,"template",2);var Wl=_u,Bl=class Bl extends ms{};o(Bl,"StackCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Bl.prototype,"itemText",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Bl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Bl.prototype,"objectStreamCardsSettings",2);var QE=Bl,Vu=class Vu{};o(Vu,"StackCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Vu.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Vu.prototype,"template",2);var ju=Vu,Hl=class Hl extends ms{};o(Hl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Hl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Hl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Hl.prototype,"staticContent",2);var qE=Hl,wu=class wu{};o(wu,"LinklistCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],wu.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],wu.prototype,"template",2);var Uu=wu,Mu=class Mu extends ms{};o(Mu,"TableCardSettings"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Mu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],Mu.prototype,"enableAddToInsights",2);var YE=Mu,ku=class ku{};o(ku,"TableCard"),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ku.prototype,"model",2),h([y({manifest:{path:o(t=>Pe(t),"path")}})],ku.prototype,"template",2);var Kl=ku;var F0=Z(ae());var MX=o((e,t,n,i,r)=>{let a=zn(n[1],r),s=n.slice(-1)[0];return Jt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),qm=class qm{};o(qm,"Field"),h([y({flex:{controlId:MX,controlType:o(()=>F0.ControlType.GroupElement,"controlType")},generate:mt})],qm.prototype,"visible",2);var zE=qm;var Ic=Z(ae());function rS(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(rS,"importDateSettings");function kX(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(kX,"importDateSettingsField");function _0(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(_0,"exportDateSettingsField");var Xl=class Xl{};o(Xl,"DateRange"),h([y({manifest:{path:o(t=>je(t)+Ic.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Xl.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+Ic.DATESETTINGSPATH,"path"),import:rS,export:pm}}),x({since:"1.77.0"})],Xl.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+Ic.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Xl.prototype,"exclude",2);var JE=Xl,Ym={controlId:Jt,controlType:o(()=>Ic.ControlType.SmartFilterBar,"controlType")},$u={path:o((e,t,n)=>`${je(e)}${Ic.DATESETTINGSPATH}/fields/${n}`,"path")},D0={...$u,import:kX,export:_0},zm=class zm{};o(zm,"DefaultDateRange"),h([y({manifest:$u}),x({since:"1.90.0"})],zm.prototype,"operation",2);var ZE=zm,hs=class hs{};o(hs,"SelectionFieldDateSettings"),h([y({manifest:D0}),x({since:"1.77.0"})],hs.prototype,"selectedValues",2),h([y({manifest:$u}),x({since:"1.77.0"})],hs.prototype,"exclude",2),h([y({manifest:$u}),x({since:"1.77.0"})],hs.prototype,"customDateRangeImplementation",2),h([y({manifest:D0}),x({since:"1.77.0"})],hs.prototype,"filter",2),h([y({manifest:$u}),x({since:"1.90.0"})],hs.prototype,"defaultValue",2);var eS=hs,oS=class oS{};o(oS,"SelectionFields");var tS=oS,ho=class ho{};o(ho,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],ho.prototype,"smartVariantManagement",2),h([y({flex:Ym}),x({since:"1.40.0"})],ho.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],ho.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],ho.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:rS}}),x({since:"1.77.0"})],ho.prototype,"dateSettings",2),h([y({flex:Ym}),x({since:"1.28.0"})],ho.prototype,"showClearOnFB",2),h([y({flex:Ym}),x({since:"1.38.0"})],ho.prototype,"showFilterConfiguration",2),h([y({flex:Ym}),x({since:"1.28.0"})],ho.prototype,"showRestoreOnFB",2);var Hu=ho,Bu=class Bu extends Hu{};o(Bu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],Bu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Bu.prototype,"filterDefaultsFromSelectionVariant",2);var nS=Bu,Jm=class Jm extends Hu{};o(Jm,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),Ne("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],Jm.prototype,"annotationPath",2);var iS=Jm;var cS=Z(ae());var jX=o((e,t,n,i,r)=>{if(i()===cS.ControlType.Button){let a=n[n.length-1],s=zn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Jt(e,t)},"getFormActionButtonId"),Ho={controlId:jX,controlType:o(()=>cS.ControlType.Button,"controlType")},ys=class ys{};o(ys,"FormAction"),h([y({flex:Ho,generate:mt})],ys.prototype,"visible",2),h([y({flex:Ho})],ys.prototype,"tooltip",2),h([y({flex:Ho})],ys.prototype,"icon",2),h([y({flex:Ho})],ys.prototype,"activeIcon",2),h([y({flex:Ho})],ys.prototype,"type",2);var aS=ys,Ts=class Ts{};o(Ts,"FieldForAction"),h([y({flex:Ho,generate:mt})],Ts.prototype,"visible",2),h([y({flex:Ho})],Ts.prototype,"tooltip",2),h([y({flex:Ho})],Ts.prototype,"icon",2),h([y({flex:Ho})],Ts.prototype,"activeIcon",2),h([y({flex:Ho}),x({since:"1.73.0"})],Ts.prototype,"type",2);var sS=Ts;var Et=Z(ae()),yo=Z(uc());var pS=require("path"),i3=Z(ae()),X0=Z(K0()),Q0=require("fs");var r3=(0,pS.join)(__dirname,"templates");var o3=o((e,t)=>{let n=(0,Q0.readFileSync)(e,"utf8");return(0,X0.render)(n,t)},"renderTemplate");var dS=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 o3((0,pS.join)(r3,t+".xml"),n)},"getSingleColumnContent"),gS=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=dS(i,t);n=n+`
|
|
289
289
|
`+r}return n+`
|
|
290
|
-
</core:FragmentDefinition>`},"getColumnFragmentContent"),
|
|
290
|
+
</core:FragmentDefinition>`},"getColumnFragmentContent"),mS=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
|
|
291
291
|
<Text text="Placeholder"/>`}),t+`
|
|
292
|
-
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var eh=require("path");var Ho="core:FragmentDefinition",Zm="sap.ui.table",mS=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Zm,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Zm,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Zm,name:"AnalyticalColumn"}]]),r3=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Q_={type:"element",name:"Text",attributes:{text:"Placeholder"}},o3=JSON.stringify(Q_);function a3(e,t){var i;let n=t?(i=e==null?void 0:e[Ho])==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(a3,"getFragmentNamespaces");function X_(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(X_,"getTagName");function th(e,t,n=e){let i=a3(n,!!(t||n!==e));if(t){let r=mS.get(t);return X_(r,i.get(r.namespace))}else{let r=mS.keys();for(let a of r){let s=mS.get(a),l=i?X_(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(th,"getTagNameFromFragmentJSON");function Ku(e,t=e){let n=th(e,void 0,t);return e[n]}o(Ku,"getRootCustomColumnFromFragmentJSON");function s3(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(s3,"addP13nData");function q_(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=s3(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(q_,"handleFragmentColumn");function c3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(eh.sep);if(p[p.length-1]===l){let g=JSON.parse((0,ho.xml2json)(u.fileContent,{compact:!0}));try{let m=th(g[Ho]);m&&(delete g[Ho][m],u.fileContent=(0,ho.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(c3,"deleteColumnsFromFragment");function Y_(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===o3&&(e.splice(n,1),t-=1,t===0));n++);}o(Y_,"deleteNumberOfCells");function l3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,ho.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&Y_(l.elements[0].elements,u.length),s.fileContent=(0,ho.json2xml)(JSON.stringify(l),{spaces:4});break}}o(l3,"deleteCellsFromFragment");function nh(e,t,n,i){if(i){c3(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&l3(a,i,n)}}o(nh,"deleteColumnFromFragment");function f3(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(Q_)}o(f3,"addNewColumnsInFragment");function u3(e,t){let n=JSON.parse((0,ho.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)f3(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;Y_(a,r)}e.fileContent=(0,ho.json2xml)(JSON.stringify(n),{spaces:4})}}o(u3,"updateNonEmptyCellsFragment");function p3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(eh.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=gS(n):u3(r,n);break}}return i}o(p3,"updateCellsFragment");function d3(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Kn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){re(r,{severity:Et.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,eh.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),v=Kn(l,m),E=n.reduce((b,I)=>I.cellsFragmentName?I:b);E&&E.cellsFragmentName?(v.fragmentName=s=E.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):P_(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(d3,"exportCustomColumnsToManifest");function g3(e,t,n,i,r){let a=pS(e,t);if(a){let s=JSON.parse((0,ho.xml2json)(a,{compact:!0})),l=Ku(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(g3,"insertNewColumnInFragment");function m3(e,t){let n=[];for(let i=0;i<e.length;i++)q_(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(m3,"processCustomColumnInArray");function h3(e,t,n){if(e){if(Array.isArray(e))m3(e,t);else if(!q_(e,t)){let r=th(n[Ho]);r&&(delete n[Ho][r],e=void 0)}}return e}o(h3,"maintainExistingColumnInFragment");function y3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=g3(a,i,n,r,s)}return n}o(y3,"insertNewColumnsInFragment");function T3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=dS(i,r);else{let u=JSON.parse((0,ho.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Ku(u[Ho]),l=h3(l,i,u),l=y3(i,n,l,r,u);let g=th(u,r);u[Ho][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ho.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(T3,"updateColumnsInFragment");function hS(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=d3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,E=v.substr(i.length+1),b=E.split(".");v=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),M=F?F[F.length-1]:null,G=M?M+Et.FRAGMENTNAMEPART+g:null,$=T3(s,v,E,m,r),se=!1;if(p?se=p3(s,G,n):se=!0,!$){let te={fileContent:dS(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(te)}if(!se){let te={fileContent:gS(n),dataSourceUri:u.replace(v,G),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(te)}}o(hS,"exportCustomColumnsToFragment");var ih=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=r3.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 li=Z(ae());var yS="/multiEdit",Oc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+li.PropertyName.table:zt(e,t),"getSmartTableControlId");function lh(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(lh,"importCreateParameters");function fh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(fh,"exportCreateParametersFields");function v3(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(v3,"exportVariants");function b3(e,t){t.variants&&(Object.keys(t.variants).length>0?v3(e,t):delete e.variants)}o(b3,"exportQuickVariantSelectionX");function E3(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(E3,"importMultiEdit");var rh=class rh{};o(rh,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],rh.prototype,"strategy",2);var TS=rh,Ql=class Ql{};o(Ql,"MultiEdit"),h([y({manifest:{path:o(t=>uo(t)+yS,"path")}})],Ql.prototype,"enabled",2),h([y({manifest:{path:o(t=>uo(t)+yS,"path")}})],Ql.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>uo(t)+yS,"path"),export:pm}})],Ql.prototype,"ignoredFields",2);var vS=Ql;function qu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(qu,"importType");function zl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(zl,"exportType");function Jl(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(Jl,"deleteType");var oh=class oh{};o(oh,"DataLoadSettings"),h([y({manifest:{path:o(t=>C_(t),"path")}}),x({since:"1.75.2"})],oh.prototype,"loadDataOnAppLaunch",2);var bS=oh,ah=class ah{};o(ah,"Fields4Dialog"),h([y({manifest:{path:o(t=>uo(t)+"/createWithParameterDialog","path"),export:fh}}),x({since:"1.77.0"})],ah.prototype,"fields",2);var ES=ah,Xu=class Xu{};o(Xu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Xu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Xu.prototype,"variants",2);var SS=Xu,ql=class ql{};o(ql,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],ql.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],ql.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path"),export:b3}}),x({since:"1.48.0"})],ql.prototype,"variants",2);var AS=ql,Si=class Si{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(Si,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>uo(t),"path"),import:lh}}),x({since:"1.77.0"})],Si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:zt,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],Si.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Si.prototype,"useExportToExcel",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Si.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],Si.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],Si.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.38.0"})],Si.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.70.0"})],Si.prototype,"selectAll",2),h([y({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.70.0"})],Si.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],Si.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],Si.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.56.0"}),Ne("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Si.prototype,"enableTableFilterInPageVariant",2),h([kt("toolBar")],Si.prototype,"toolBar",2);var vs=Si,Go=class Go extends vs{};o(Go,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],Go.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Go.prototype,"createWithFilters",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.Table,"controlType")},generate:Jn}),x({since:"1.52.0"})],Go.prototype,"popinLayout",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.Table,"controlType")}})],Go.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>uo(t),"path")}}),x({since:"1.77.0"})],Go.prototype,"inlineDelete",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Go.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>uo(t),"path"),import:E3}}),x({since:"1.98.0"})],Go.prototype,"multiEdit",2);var Rc=Go,sh=class sh extends vs{};o(sh,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],sh.prototype,"type",2);var PS=sh,yo=class yo extends vs{};o(yo,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],yo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],yo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],yo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],yo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],yo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],yo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],yo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],yo.prototype,"createWithFilters",2);var xS=yo,Wo=class Wo extends vs{};o(Wo,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],Wo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Wo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],Wo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Wo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Wo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Wo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],Wo.prototype,"allFiltersAsInParameters",2);var Yl=Wo,ch=class ch extends Yl{};o(ch,"ALPResponsiveTable"),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],ch.prototype,"growingThreshold",2);var CS=ch,LS=class LS extends Yl{};o(LS,"ALPGridTable");var IS=LS,NS=class NS extends Yl{};o(NS,"ALPAnalyticalTable");var OS=NS,Qu=class Qu extends vs{};o(Qu,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],Qu.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Qu.prototype,"createWithFilters",2);var RS=Qu;var Yu=Z(ae());var S3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}`},"getActionButtonId"),A3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),P3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${Nm}${i}`},"getStandardFooterActionOPButtonId"),BS=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${Yi(r)}`},"buildIntentBasedActionId"),x3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),bs={controlId:S3,controlType:o(()=>Yu.ControlType.Button,"controlType")},zu={controlId:A3,controlType:o(()=>Yu.ControlType.Button,"controlType")},z_={controlId:P3,controlType:o(()=>Yu.ControlType.Button,"controlType")},uh={controlId:x3,controlType:o(()=>Yu.ControlType.Button,"controlType")},Lc=class Lc{};o(Lc,"Action"),h([y({flex:bs})],Lc.prototype,"tooltip",2),h([y({flex:bs})],Lc.prototype,"icon",2),h([y({flex:bs})],Lc.prototype,"activeIcon",2),h([y({flex:bs})],Lc.prototype,"type",2);var FS=Lc,Nc=class Nc{};o(Nc,"ToolBarAction"),h([y({flex:bs})],Nc.prototype,"tooltip",2),h([y({flex:bs})],Nc.prototype,"icon",2),h([y({flex:bs})],Nc.prototype,"activeIcon",2),h([y({flex:bs})],Nc.prototype,"type",2);var DS=Nc,Fc=class Fc{};o(Fc,"FooterAction"),h([y({flex:uh})],Fc.prototype,"tooltip",2),h([y({flex:uh})],Fc.prototype,"icon",2),h([y({flex:uh})],Fc.prototype,"activeIcon",2),h([y({flex:uh})],Fc.prototype,"type",2);var _S=Fc,ph=class ph{};o(ph,"Share"),h([y({flex:zu})],ph.prototype,"visible",2);var VS=ph,dh=class dh{};o(dh,"ShareOP"),h([y({flex:zu})],dh.prototype,"visible",2);var wS=dh,gh=class gh{};o(gh,"UpAndDownNavigationOP"),h([y({flex:zu})],gh.prototype,"visible",2);var MS=gh,mh=class mh{};o(mh,"SaveAndEditOP"),h([y({flex:z_,generate:mt})],mh.prototype,"visible",2);var kS=mh,hh=class hh{};o(hh,"HeaderActionStandard"),h([y({flex:zu})],hh.prototype,"visible",2);var jS=hh,yh=class yh{};o(yh,"ObjectPageHeaderActionStandard"),h([y({flex:zu})],yh.prototype,"visible",2);var US=yh,Th=class Th{};o(Th,"ObjectPageFooterActionStandard"),h([y({flex:z_})],Th.prototype,"visible",2);var $S=Th;var ep=Z(ae());var C3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ji(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),I3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ji(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),O3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),HS={controlId:C3,controlType:o(()=>ep.ControlType.TableColumn,"controlType")},Ju={controlId:O3,controlType:o(()=>ep.ControlType.Button,"controlType")},J_={...HS,controlId:I3},vh={...Ju,controlId:BS},Zu=class Zu{};o(Zu,"TableColumn"),h([y({flex:{controlId:zb,controlType:o(()=>ep.ControlType.TableColumn,"controlType")}})],Zu.prototype,"width",2),h([y({flex:{controlId:zb,controlType:o(()=>ep.ControlType.TableColumn,"controlType")},generate:Jn})],Zu.prototype,"hAlign",2);var GS=Zu,Ia=class Ia{};o(Ia,"TableColumnAction"),h([y({flex:HS})],Ia.prototype,"width",2),h([y({flex:HS,generate:Jn})],Ia.prototype,"hAlign",2),h([y({flex:Ju})],Ia.prototype,"tooltip",2),h([y({flex:Ju})],Ia.prototype,"icon",2),h([y({flex:Ju})],Ia.prototype,"activeIcon",2),h([y({flex:Ju})],Ia.prototype,"type",2);var bh=Ia,Oa=class Oa extends bh{};o(Oa,"TableColumnActionIntentBased"),h([y({flex:J_})],Oa.prototype,"width",2),h([y({flex:J_,generate:Jn})],Oa.prototype,"hAlign",2),h([y({flex:vh})],Oa.prototype,"tooltip",2),h([y({flex:vh})],Oa.prototype,"icon",2),h([y({flex:vh})],Oa.prototype,"activeIcon",2),h([y({flex:vh})],Oa.prototype,"type",2);var WS=Oa,XS=class XS{};o(XS,"TableCustomColumn");var KS=XS;var qS=class qS{};o(qS,"ToolBar");var QS=qS;var Dc=Z(ae());var tp=o(e=>e+Dc.PropertyName.chart,"getSmartChartControlId"),Es=class Es{};o(Es,"ChartSettings"),h([y({flex:{controlId:tp,controlType:o(()=>Dc.ControlType.SmartChart,"controlType")}})],Es.prototype,"showLegendButton",2),h([y({flex:{controlId:tp,controlType:o(()=>Dc.ControlType.SmartChart,"controlType")}})],Es.prototype,"showDownloadButton",2),h([y({flex:{controlId:tp,controlType:o(()=>Dc.ControlType.SmartChart,"controlType")}})],Es.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:tp,controlType:o(()=>Dc.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")}})],Es.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>x_(t),"path")}}),x({since:"1.81.0"})],Es.prototype,"showDataLabel",2);var YS=Es;var Ra=class Ra{};o(Ra,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"groupId",2);var zS=Ra;var Z_=Z(ae());var R3=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([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.46.0"})],Ss.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.46.0"})],Ss.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"})],Ss.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"}),Ne("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Ss.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:R3,controlType:o(()=>Z_.ControlType.Avatar,"controlType")},generate:mt})],Ss.prototype,"displayShape",2);var JS=Ss;var Eh=Z(ae());var L3=o((e,t,n,i)=>{if(i()===Eh.ControlType.Button||i()===Eh.ControlType.HeaderAction){let r=n[2];return`${e}action::${Yi(r)}`}return zt(e,t)},"getActionButtonId"),np={controlId:L3,controlType:o(()=>Eh.ControlType.HeaderAction,"controlType")},As=class As{};o(As,"ObjectPageHeaderAction"),h([y({flex:np,generate:mt})],As.prototype,"visible",2),h([y({flex:np})],As.prototype,"tooltip",2),h([y({flex:np})],As.prototype,"icon",2),h([y({flex:np})],As.prototype,"activeIcon",2),h([y({flex:np})],As.prototype,"type",2);var ZS=As;var ip=Z(ae());var Ih="header::headerEditable::",N3=o((e,t,n,i,r)=>`${e}${Ih}${r}`,"getDataPointHeaderSectionId"),F3=o((e,t,n,i,r)=>`${e}${Ih}${r}::ContactAddress`,"getAddressHeaderSectionId"),D3=o((e,t,n,i,r)=>`${e}${Ih}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),eV=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(ip.FACETTITLEPREFIX)?r.split(ip.FACETTITLEPREFIX)[1]:a;return`${e}${Ih}${s}::Form`},"getFormHeaderSectionId"),rp={controlType:o(()=>ip.ControlType.ObjectPageHeaderSection,"controlType")},Sh=class Sh{};o(Sh,"CommonHeaderFacetSettings"),h([y({flex:{...rp,controlId:eV},generate:mt})],Sh.prototype,"visible",2);var _c=Sh,Ah=class Ah extends _c{};o(Ah,"ObjectPageHeaderSectionForm"),h([y({flex:{...rp,controlId:eV}})],Ah.prototype,"visible",2);var eA=Ah,Ph=class Ph extends _c{};o(Ph,"ObjectPageHeaderSectionChart"),h([y({flex:{...rp,controlId:D3}})],Ph.prototype,"visible",2);var tA=Ph,xh=class xh extends _c{};o(xh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...rp,controlId:N3}})],xh.prototype,"visible",2);var nA=xh,Ch=class Ch extends _c{};o(Ch,"ObjectPageHeaderSectionAddress"),h([y({flex:{...rp,controlId:F3}})],Ch.prototype,"visible",2);var iA=Ch,oA=class oA{};o(oA,"HeaderSections");var rA=oA;var sA=Z(ae());var _3=o((e,t,n,i)=>{if(i()===sA.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${Yi(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),op={controlId:_3,controlType:o(()=>sA.ControlType.Button,"controlType")},Ps=class Ps{};o(Ps,"ObjectPageFooterAction"),h([y({flex:op,generate:mt})],Ps.prototype,"visible",2),h([y({flex:op})],Ps.prototype,"tooltip",2),h([y({flex:op})],Ps.prototype,"icon",2),h([y({flex:op})],Ps.prototype,"activeIcon",2),h([y({flex:op})],Ps.prototype,"type",2);var aA=Ps;var ap=Z(ae());var Oh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),Vc=class Vc{};o(Vc,"ObjectPageLayout"),h([y({flex:{controlId:Oh,controlType:o(()=>ap.ControlType.ObjectPageLayout,"controlType")},generate:mt})],Vc.prototype,"showHeaderContent",2),h([y({flex:{controlId:Oh,controlType:o(()=>ap.ControlType.ObjectPageLayout,"controlType")}})],Vc.prototype,"showAnchorBar",2),h([y({flex:{controlId:Oh,controlType:o(()=>ap.ControlType.ObjectPageLayout,"controlType")}})],Vc.prototype,"useIconTabBar",2),h([y({flex:{controlId:Oh,controlType:o(()=>ap.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],Vc.prototype,"alwaysShowContentHeader",2);var cA=Vc;var tV=Z(ae());var wc=class wc{};o(wc,"BaseCustomSection"),h([y({manifest:{path:Ca,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],wc.prototype,"relatedFacet",2),h([y({manifest:{path:Ca,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],wc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>Ca(t,{},i,tV.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],wc.prototype,"title",2),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],wc.prototype,"className",2);var lp=wc,sp=class sp extends lp{};o(sp,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],sp.prototype,"fragmentName",2),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],sp.prototype,"type",2);var fp=sp,cp=class cp extends lp{};o(cp,"ObjectPageCustomSectionView"),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],cp.prototype,"viewName",2),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],cp.prototype,"type",2);var up=cp;var tr=Z(ae());var nV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),tr.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),iV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),rV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),Mc=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),oV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),aV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),Rh=class Rh{};o(Rh,"ObjectPageSectionV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Rh.prototype,"visible",2);var lA=Rh,Lh=class Lh{};o(Lh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Lh.prototype,"visible",2);var fA=Lh,Nh=class Nh{};o(Nh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Nh.prototype,"visible",2);var uA=Nh,Fh=class Fh{};o(Fh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Fh.prototype,"visible",2);var pA=Fh,Dh=class Dh{};o(Dh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Dh.prototype,"visible",2);var dA=Dh,_h=class _h{};o(_h,"ObjectPageSectionContactV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],_h.prototype,"visible",2);var gA=_h,Vh=class Vh{};o(Vh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:oV,controlType:o(()=>tr.ControlType.SubSection,"controlType")},generate:mt})],Vh.prototype,"visible",2);var mA=Vh,wh=class wh{};o(wh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:iV,controlType:o(()=>tr.ControlType.Group,"controlType")},generate:mt})],wh.prototype,"visible",2);var hA=wh,Mh=class Mh{};o(Mh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:rV,controlType:o(()=>tr.ControlType.SmartChart,"controlType")},generate:mt})],Mh.prototype,"visible",2);var yA=Mh,kh=class kh{};o(kh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:aV,controlType:o(()=>tr.ControlType.SubSection,"controlType")},generate:mt})],kh.prototype,"visible",2);var TA=kh,jh=class jh{};o(jh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:nV,controlType:o(()=>tr.ControlType.SmartTable,"controlType")},generate:mt})],jh.prototype,"visible",2);var vA=jh;var Uh=class Uh{};o(Uh,"ObjectPageChart"),h([y({manifest:{path:I_}}),x({since:"1.78.0"})],Uh.prototype,"variantManagement",2);var bA=Uh,$h=class $h{};o($h,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Di(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],$h.prototype,"variantManagement",2);var EA=$h;var br=Z(ae());var kc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=br.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=zn(a[0],r),zt(e,a)},"getSmartTableControlId"),pp=class pp{};o(pp,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>po(t,n,i)+br.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],pp.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>po(t,n,i)+br.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],pp.prototype,"variants",2);var SA=pp,Bh=class Bh{};o(Bh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>Wr(t,n,i)+"/createWithParameterDialog","path"),export:fh}}),x({since:"1.77.0"})],Bh.prototype,"fields",2);var AA=Bh,Ai=class Ai{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Ai,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:Wr,import:lh}}),x({since:"1.77.0"})],Ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],Ai.prototype,"editable",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),Ne("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ai.prototype,"showPasteButton",2),h([y({manifest:{path:Wr}}),x({since:"1.54.0"})],Ai.prototype,"multiSelect",2),h([y({manifest:{path:Wr}}),x({since:"1.70.0"})],Ai.prototype,"selectAll",2),h([y({manifest:{path:Wr}}),x({since:"1.70.0"})],Ai.prototype,"selectionLimit",2),h([y({manifest:{path:po}}),x({since:"1.63.0"})],Ai.prototype,"quickVariantSelection",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Ai.prototype,"exportType",2),h([y({manifest:{path:po}}),x({since:"1.48.5"}),Ne("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ai.prototype,"createMode",2),h([y({manifest:{path:po}}),x({since:"1.61.0"})],Ai.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:Wr}}),x({since:"1.78.0"})],Ai.prototype,"variantManagement",2),h([kt("toolBar")],Ai.prototype,"toolBar",2);var jc=Ai,xs=class xs extends jc{};o(xs,"ObjectPageResponsiveTable"),h([y({manifest:{path:Wr}})],xs.prototype,"type",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.Table,"controlType")}})],xs.prototype,"includeItemInSelection",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],xs.prototype,"popinLayout",2),h([y({manifest:{path:Wr}}),x({since:"1.77.0"})],xs.prototype,"inlineDelete",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],xs.prototype,"growingThreshold",2);var Uc=xs,dp=class dp extends jc{};o(dp,"ObjectPageAnalyticalTable"),h([y({manifest:{path:Wr}})],dp.prototype,"type",2),h([y({manifest:{path:po}}),x({since:"1.67.0"})],dp.prototype,"condensedTableLayout",2);var PA=dp,gp=class gp extends jc{};o(gp,"ObjectPageGridTable"),h([y({manifest:{path:Wr}})],gp.prototype,"type",2),h([y({manifest:{path:po}}),x({since:"1.67.0"})],gp.prototype,"condensedTableLayout",2);var xA=gp,mp=class mp extends jc{};o(mp,"ObjectPageTreeTable"),h([y({manifest:{path:Wr}})],mp.prototype,"type",2),h([y({manifest:{path:po}}),x({since:"1.67.0"})],mp.prototype,"condensedTableLayout",2);var CA=mp,La=class La{};o(La,"GlobalTableSettings"),h([y({manifest:{path:Cc}}),x({since:"1.70.0"})],La.prototype,"selectAll",2),h([y({manifest:{path:Cc}}),x({since:"1.78.0"})],La.prototype,"variantManagement",2),h([y({manifest:{path:Cc}})],La.prototype,"type",2),h([y({manifest:{path:Cc}}),x({since:"1.54.0"})],La.prototype,"multiSelect",2),h([y({manifest:{path:Cc}}),x({since:"1.67.0"})],La.prototype,"condensedTableLayout",2),h([y({manifest:{path:Cc}}),x({since:"1.77.0"})],La.prototype,"inlineDelete",2);var IA=La;var sV=Z(ae());var V3=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=zn(n[1],r);return`${e}${s}::action::${Yi(a).replace(":2f","::")}`},"getActionButtonId"),hp={controlId:V3,controlType:o(()=>sV.ControlType.Button,"controlType")},Cs=class Cs{};o(Cs,"ObjectPageToolBarAction"),h([y({flex:hp,generate:mt})],Cs.prototype,"visible",2),h([y({flex:hp})],Cs.prototype,"tooltip",2),h([y({flex:hp})],Cs.prototype,"icon",2),h([y({flex:hp})],Cs.prototype,"activeIcon",2),h([y({flex:hp})],Cs.prototype,"type",2);var OA=Cs;var _i=Z(ae());function LA(e,t,n,i){if(t.controlType===_i.ControlType.TableColumn||t.controlType===_i.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===_i.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",_i.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(LA,"addFlexChangeToConfigTableColumn");function Hh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(_i.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Hh,"addFlexChangeToConfigTable");function Gh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,E;let s=Tr(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===_i.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===_i.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(_i.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(_i.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(E=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:E.properties[l.propertyId]}u&&LA(t.table,l,n,i)})}o(Gh,"importFlexChangesOfColumn");function Is(e){return e.replace("/","::")}o(Is,"convertActionKey");function NA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(NA,"convertSelector");function w3(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(w3,"addSmartFilterBarFlex");function M3(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=Yi((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}`,E=`${u[0]}:::${p}:::${g}`;i.set(v,r),i.set(r,E)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(M3,"filterActions");function k3(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(k3,"addColumnActionConfigPart");function j3(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(j3,"getActionId");function U3(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=M3(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"&&k3(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(U3,"addActionFlex");function $3(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Mn(e[ut.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ut.PropertyName.chart],t):e[ut.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o($3,"addSmartChartFlex");function Wh(e,t,n,i){var r,a;try{let s=Tr(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ut.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ut.PageTypeV2.AnalyticalListPage))switch(s.controlId=NA(s.controlId),s.controlType){case ut.ControlType.SmartFilterBar:{w3(e,l,s,n);break}case ut.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ut.ControlType.Button:{let u=j3(s);u&&U3(e,l,s,n,u);break}case ut.ControlType.SmartChart:{$3(e,l,s,n);break}default:break}}catch(s){re(i,{severity:ut.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(Wh,"addFlex");function B3(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(B3,"adjustQuickVariantSelectionX");function kn(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=Mn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Kn(t,g),Fl(p,s,u,e),Em(l,s,g,r)}B3(u,e)}}o(kn,"transferSettingsOfObject");function Kh(e,t){var r,a,s,l,u,p,g,m,v;let n=e[ut.ManifestSection.generic].pages[t],i=ut.v2.TableTypeV2.ResponsiveTable;return(r=e[ut.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ut.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ut.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=ut.v2.TableTypeV2.AnalyticalTable),i}o(Kh,"determineTableType");function cV(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(cV,"evaluateFragmentColumn");function H3(e,t,n,i){let r;if(e===ut.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===ut.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(H3,"determineCellsFragmentName");function G3(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,lV.xml2json)(e[0].fileContent,{compact:!0}))[Ho];try{let g=Ku(p);if(g)if((l=t[ut.PropertyName.table])!=null&&l.columns||(t[ut.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)cV(m,n,i,r,t,a,s);else cV(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(G3,"analyzeFilteredFragments");function W3(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 E=H3(u,e,p,g),b=v.split(".");v=b[b.length-1]+ut.FRAGMENTNAMEPART+m;let I=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{G3(I,n,e,s,g,u,E)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{Gh(i,n,F.id,F,r)})}}}o(W3,"processViewExtensions");function Zl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[ut.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=ut.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[ut.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;W3(g,m,e,t,a)}}o(Zl,"addFragments");function Xh(e,t,n){if(e.header={actions:{}},n[ut.DefinitionName.HeaderActionsStandard]){let i=n[ut.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ut.PageTypeV2.ListReport,r,{})}}o(Xh,"importHeaderActions");var Qo=Z(ae());var yp="sap.suite.ui.generic.template.ListReport";var fV="sap.suite.ui.generic.template.ListReport.view.ListReport";var qh=Z(ae());var uV=Z(ae());function pV(e,t=[]){return e.concat(["component","settings"]).concat(t)}o(pV,"getManifestPathToPageSettings");function Ko(e,t,n){let i=e,r=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Ko,"getManifestPropertyByPath");function Na(e){return e!==null&&typeof e=="object"}o(Na,"isDefinition");function Qh(e,t,n,i,r,a,s){let l=n[uV.SchemaTag.conversionExit],u=l==null?void 0:l.name,p=t?t(u):void 0;if(!p)return i;let g=l.params;return e?p.appToConfig(i,g,r??[],n,s):p.configToApp(i,g,r??[],n,a)}o(Qh,"executeConversionExit");function $c(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&re(n,{severity:qh.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o($c,"hasPropertyTypeError");var Woe=Symbol("Property is suppressed without explanation");var jt=Z(ae());function Bc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(ha((r=s.component)==null?void 0:r.name)===jt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Bc(s.pages,t,n),i))return n.unshift(a),i}}o(Bc,"findObjectPageV2");function ef(e,t){var n;for(let i in e){let r=e[i];if(ha((n=r.component)==null?void 0:n.name)===jt.PageTypeV2.ListReport)return t.push(i),r}}o(ef,"findListReportPageV2");function tf(e){if(!e.manifest[jt.ManifestSection.generic]){re(e.logger,{severity:jt.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}let t=e.manifest[jt.ManifestSection.generic].pages;if(!t){re(e.logger,{severity:jt.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}return t}o(tf,"getV2Pages");function nf(e,t,n){var i;if(!e){re(t,{severity:jt.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;re(t,{severity:jt.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}}o(nf,"checkV2Page");function rf(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),ha((i=a.component)==null?void 0:i.name)===jt.PageTypeV2.AnalyticalListPage)return a}re(n,{severity:jt.LogSeverity.Error,message:Q.t("NOALP"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}o(rf,"findAnalyticalListPage");function FA(e,t){let n=e.split("|");return jt.v2.SectionPosition[n[0]]&&n[1]===t}o(FA,"isAssociatedCustomSection");function dV(e,t){let n=Kn(e,`sap.ui5/extends/extensions/${jt.v2.SAPUI5_VIEW_EXTENSION}/${jt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)FA(r,t)&&(i[r]=n[r]);return i}o(dV,"findCustomSectionExtensions");function K3(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(K3,"removeEmptySettingsOfFooter");function X3(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(X3,"removeEmptySettingsOfFilterBar");function Q3(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(Q3,"removeEmptySettingsOfToolBar");function Yh(e){Q3(e),X3(e),K3(e)}o(Yh,"removeEmptySettings");var Qt=Z(ae());var mV=Z(ae());var DA={};lc(DA,{ACTION_GROUPS_ARENT_SUPPORTED:()=>MQ,ANNOERR:()=>gQ,ANNOTATIONFILE:()=>mQ,COMPONENTNOTDEFINED:()=>hQ,CONTEXTPATHCOULDNOTBERESOLVED:()=>fQ,ENTITYSETNOTFOUND:()=>lQ,FLEXERROR:()=>CQ,INCONSISTENTSCHEMA:()=>VQ,INVALIDANCHOR:()=>IQ,INVALIDEXTENSION:()=>OQ,INVALIDTARGETDEFINITION:()=>LQ,MACROS_ANNOTATION_ERROR:()=>DQ,NOALP:()=>pQ,NOANNOTATIONFORPATH:()=>sQ,NOBASEPATH:()=>z3,NOCHARTS:()=>bQ,NOENTITYSET:()=>nQ,NOENTITYTYPE4SET:()=>iQ,NOFE:()=>Z3,NOFRAGMENT:()=>RQ,NOGENERICSCHEMA:()=>eQ,NOID4SECTION:()=>NQ,NOLINEITEMANDCHARTS:()=>EQ,NOLINEITEMFORPATH:()=>cQ,NOLINEITEMS:()=>vQ,NOLR:()=>uQ,NOPAGEFORENTITYSET:()=>tQ,NOPAGES:()=>J3,NOPRESENTATIONVARIANT:()=>rQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>oQ,NOPRESENTATIONVARIANTFORSPV:()=>aQ,NOROUTING:()=>yQ,NOROUTINGID:()=>xQ,NOTARGET:()=>PQ,NOTARGETS:()=>AQ,NOTEMPLATE:()=>dQ,NOUIANNOTATIONS:()=>TQ,NOVISUALIZATIONS:()=>SQ,TYPEERROR:()=>_Q,UNEXISTING_ANNOTATION_PATH:()=>wQ,UNKNOWNMINUI5VERSION:()=>Y3,WRONGMINUI5VERSION:()=>q3,XMLPARSEFAILURE:()=>FQ,default:()=>kQ});var q3="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",Y3="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",z3="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",J3="No pages found in manifest for app with id '{{- appId}}'",Z3="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",eQ="No generic schema found while generating page schema for {{- pageType}}",tQ="No page found in manifest for entitySet '{{- entitySet}}'",nQ="No entitySet defined for page '{{- pageName}}'",iQ="No entityType could be found for the given entity set '{{- entitySetName}}'",rQ="No PresentationVariant defined for '{{- key}}'",oQ="No PresentationVariant found for default SelectionPresentationVariant",aQ="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",sQ="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",cQ="No line item annotation found for path '{{- annotationPath}}'",lQ="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",fQ="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",uQ="No page found in manifest for list report",pQ="No page found in manifest for analytical list page",dQ="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",gQ="Error while parsing annotation files",mQ="Annotation file: '{{- file}}'",hQ="Component name is not defined for page '{{- pageName}}'",yQ="Incomplete manifest definition: no routing defined",TQ="No UI Annotation defined for entity type '{{- entityType }}'",vQ="UI.LineItem annotation has not been defined",bQ="UI.Chart annotation has not been defined",EQ="Neither UI.LineItem nor UI.Chart annotation has been defined",SQ="Empty Collection for Visualizations",AQ="Incomplete manifest definition: no targets defined",PQ="Invalid reference: annotation target '{{- target}}' not found",xQ="No page found in manifest for routingId '{{- routingId}}'",CQ="Error while parsing flex change",IQ="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",OQ="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",RQ="fragmentName is undefined for columnKey '{{- columnKey}}'",LQ="Invalid routing target definition in manifest: '{{- target}}'",NQ="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",FQ="Parsing of XML file failed with error - {{- error}}",DQ="Error during resolving annotation for '{{- control}}'",_Q="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",VQ="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",wQ="The annotation path doesn't exist.",MQ="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",kQ={WRONGMINUI5VERSION:q3,UNKNOWNMINUI5VERSION:Y3,NOBASEPATH:z3,NOPAGES:J3,NOFE:Z3,NOGENERICSCHEMA:eQ,NOPAGEFORENTITYSET:tQ,NOENTITYSET:nQ,NOENTITYTYPE4SET:iQ,NOPRESENTATIONVARIANT:rQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:oQ,NOPRESENTATIONVARIANTFORSPV:aQ,NOANNOTATIONFORPATH:sQ,NOLINEITEMFORPATH:cQ,ENTITYSETNOTFOUND:lQ,CONTEXTPATHCOULDNOTBERESOLVED:fQ,NOLR:uQ,NOALP:pQ,NOTEMPLATE:dQ,ANNOERR:gQ,ANNOTATIONFILE:mQ,COMPONENTNOTDEFINED:hQ,NOROUTING:yQ,NOUIANNOTATIONS:TQ,NOLINEITEMS:vQ,NOCHARTS:bQ,NOLINEITEMANDCHARTS:EQ,NOVISUALIZATIONS:SQ,NOTARGETS:AQ,NOTARGET:PQ,NOROUTINGID:xQ,FLEXERROR:CQ,INVALIDANCHOR:IQ,INVALIDEXTENSION:OQ,NOFRAGMENT:RQ,INVALIDTARGETDEFINITION:LQ,NOID4SECTION:NQ,XMLPARSEFAILURE:FQ,MACROS_ANNOTATION_ERROR:DQ,TYPEERROR:_Q,INCONSISTENTSCHEMA:VQ,UNEXISTING_ANNOTATION_PATH:wQ,ACTION_GROUPS_ARENT_SUPPORTED:MQ};function gV(e){e.addResourceBundle(e.language,"translation",DA)}o(gV,"initI18n");function Xt(e="en"){Q.init({resources:{en:{translation:mV.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
292
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var eh=require("path");var Go="core:FragmentDefinition",Zm="sap.ui.table",hS=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Zm,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Zm,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Zm,name:"AnalyticalColumn"}]]),a3=new Map([[Et.v2.FE_TEMPLATE_V2_LIST_REPORT,Et.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Et.v2.FE_TEMPLATE_V2_ALP,Et.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Et.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Et.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Y0={type:"element",name:"Text",attributes:{text:"Placeholder"}},s3=JSON.stringify(Y0);function c3(e,t){var i;let n=t?(i=e==null?void 0:e[Go])==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(c3,"getFragmentNamespaces");function q0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(q0,"getTagName");function th(e,t,n=e){let i=c3(n,!!(t||n!==e));if(t){let r=hS.get(t);return q0(r,i.get(r.namespace))}else{let r=hS.keys();for(let a of r){let s=hS.get(a),l=i?q0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(th,"getTagNameFromFragmentJSON");function Ku(e,t=e){let n=th(e,void 0,t);return e[n]}o(Ku,"getRootCustomColumnFromFragmentJSON");function l3(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(l3,"addP13nData");function z0(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=l3(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(z0,"handleFragmentColumn");function f3(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(eh.sep);if(p[p.length-1]===l){let g=JSON.parse((0,yo.xml2json)(u.fileContent,{compact:!0}));try{let m=th(g[Go]);m&&(delete g[Go][m],u.fileContent=(0,yo.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(f3,"deleteColumnsFromFragment");function J0(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===s3&&(e.splice(n,1),t-=1,t===0));n++);}o(J0,"deleteNumberOfCells");function u3(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,yo.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&J0(l.elements[0].elements,u.length),s.fileContent=(0,yo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(u3,"deleteCellsFromFragment");function nh(e,t,n,i){if(i){f3(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&u3(a,i,n)}}o(nh,"deleteColumnFromFragment");function p3(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(Y0)}o(p3,"addNewColumnsInFragment");function d3(e,t){let n=JSON.parse((0,yo.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)p3(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;J0(a,r)}e.fileContent=(0,yo.json2xml)(JSON.stringify(n),{spaces:4})}}o(d3,"updateNonEmptyCellsFragment");function g3(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(eh.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=mS(n):d3(r,n);break}}return i}o(g3,"updateCellsFragment");function m3(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Kn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){re(r,{severity:Et.LogSeverity.Error,message:Q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=Et.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,eh.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),v=Kn(l,m),E=n.reduce((b,I)=>I.cellsFragmentName?I:b);E&&E.cellsFragmentName?(v.fragmentName=s=E.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):C0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(m3,"exportCustomColumnsToManifest");function h3(e,t,n,i,r){let a=dS(e,t);if(a){let s=JSON.parse((0,yo.xml2json)(a,{compact:!0})),l=Ku(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(h3,"insertNewColumnInFragment");function y3(e,t){let n=[];for(let i=0;i<e.length;i++)z0(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(y3,"processCustomColumnInArray");function T3(e,t,n){if(e){if(Array.isArray(e))y3(e,t);else if(!z0(e,t)){let r=th(n[Go]);r&&(delete n[Go][r],e=void 0)}}return e}o(T3,"maintainExistingColumnInFragment");function v3(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=h3(a,i,n,r,s)}return n}o(v3,"insertNewColumnsInFragment");function b3(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=gS(i,r);else{let u=JSON.parse((0,yo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Ku(u[Go]),l=T3(l,i,u),l=v3(i,n,l,r,u);let g=th(u,r);u[Go][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,yo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(b3,"updateColumnsInFragment");function yS(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=m3(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,E=v.substr(i.length+1),b=E.split(".");v=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let N=p==null?void 0:p.split("."),j=N?N[N.length-1]:null,G=j?j+Et.FRAGMENTNAMEPART+g:null,$=b3(s,v,E,m,r),se=!1;if(p?se=g3(s,G,n):se=!0,!$){let te={fileContent:gS(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(te)}if(!se){let te={fileContent:mS(n),dataSourceUri:u.replace(v,G),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(te)}}o(yS,"exportCustomColumnsToFragment");var ih=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=a3.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 li=Z(ae());var TS="/multiEdit",Oc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+li.PropertyName.table:Jt(e,t),"getSmartTableControlId");function lh(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(lh,"importCreateParameters");function fh(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(fh,"exportCreateParametersFields");function E3(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(E3,"exportVariants");function S3(e,t){t.variants&&(Object.keys(t.variants).length>0?E3(e,t):delete e.variants)}o(S3,"exportQuickVariantSelectionX");function A3(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(A3,"importMultiEdit");var rh=class rh{};o(rh,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],rh.prototype,"strategy",2);var vS=rh,Ql=class Ql{};o(Ql,"MultiEdit"),h([y({manifest:{path:o(t=>po(t)+TS,"path")}})],Ql.prototype,"enabled",2),h([y({manifest:{path:o(t=>po(t)+TS,"path")}})],Ql.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>po(t)+TS,"path"),export:pm}})],Ql.prototype,"ignoredFields",2);var bS=Ql;function qu(e){var t;if((t=e==null?void 0:e.tableSettings)!=null&&t.type)return e.tableSettings.type;if(e!=null&&e.tableType)return e.tableType}o(qu,"importType");function zl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(zl,"exportType");function Jl(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(Jl,"deleteType");var oh=class oh{};o(oh,"DataLoadSettings"),h([y({manifest:{path:o(t=>O0(t),"path")}}),x({since:"1.75.2"})],oh.prototype,"loadDataOnAppLaunch",2);var ES=oh,ah=class ah{};o(ah,"Fields4Dialog"),h([y({manifest:{path:o(t=>po(t)+"/createWithParameterDialog","path"),export:fh}}),x({since:"1.77.0"})],ah.prototype,"fields",2);var SS=ah,Xu=class Xu{};o(Xu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Xu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Xu.prototype,"variants",2);var AS=Xu,ql=class ql{};o(ql,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],ql.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],ql.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+li.QUICKVARPATHX,"path"),export:S3}}),x({since:"1.48.0"})],ql.prototype,"variants",2);var PS=ql,Si=class Si{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(Si,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>po(t),"path"),import:lh}}),x({since:"1.77.0"})],Si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Jt,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],Si.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Si.prototype,"useExportToExcel",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Si.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],Si.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],Si.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>po(t),"path")}}),x({since:"1.38.0"})],Si.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>po(t),"path")}}),x({since:"1.70.0"})],Si.prototype,"selectAll",2),h([y({manifest:{path:o(t=>po(t),"path")}}),x({since:"1.70.0"})],Si.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],Si.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],Si.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.56.0"}),Ne("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],Si.prototype,"enableTableFilterInPageVariant",2),h([kt("toolBar")],Si.prototype,"toolBar",2);var vs=Si,Wo=class Wo extends vs{};o(Wo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],Wo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Wo.prototype,"createWithFilters",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.Table,"controlType")},generate:Jn}),x({since:"1.52.0"})],Wo.prototype,"popinLayout",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.Table,"controlType")}})],Wo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>po(t),"path")}}),x({since:"1.77.0"})],Wo.prototype,"inlineDelete",2),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Wo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>po(t),"path"),import:A3}}),x({since:"1.98.0"})],Wo.prototype,"multiEdit",2);var Rc=Wo,sh=class sh extends vs{};o(sh,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],sh.prototype,"type",2);var xS=sh,To=class To extends vs{};o(To,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],To.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],To.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],To.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],To.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],To.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],To.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],To.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],To.prototype,"createWithFilters",2);var CS=To,Ko=class Ko extends vs{};o(Ko,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],Ko.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Ko.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],Ko.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Ko.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Ko.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Ko.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],Ko.prototype,"allFiltersAsInParameters",2);var Yl=Ko,ch=class ch extends Yl{};o(ch,"ALPResponsiveTable"),h([y({flex:{controlId:Oc,controlType:o(()=>li.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],ch.prototype,"growingThreshold",2);var IS=ch,NS=class NS extends Yl{};o(NS,"ALPGridTable");var OS=NS,FS=class FS extends Yl{};o(FS,"ALPAnalyticalTable");var RS=FS,Qu=class Qu extends vs{};o(Qu,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:qu,export:zl,delete:Jl}}),x({since:"1.50.0"})],Qu.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Qu.prototype,"createWithFilters",2);var LS=Qu;var Yu=Z(ae());var P3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}`},"getActionButtonId"),x3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),C3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${Nm}${i}`},"getStandardFooterActionOPButtonId"),HS=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${Yi(r)}`},"buildIntentBasedActionId"),I3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${Yi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),bs={controlId:P3,controlType:o(()=>Yu.ControlType.Button,"controlType")},zu={controlId:x3,controlType:o(()=>Yu.ControlType.Button,"controlType")},Z0={controlId:C3,controlType:o(()=>Yu.ControlType.Button,"controlType")},uh={controlId:I3,controlType:o(()=>Yu.ControlType.Button,"controlType")},Lc=class Lc{};o(Lc,"Action"),h([y({flex:bs})],Lc.prototype,"tooltip",2),h([y({flex:bs})],Lc.prototype,"icon",2),h([y({flex:bs})],Lc.prototype,"activeIcon",2),h([y({flex:bs})],Lc.prototype,"type",2);var DS=Lc,Nc=class Nc{};o(Nc,"ToolBarAction"),h([y({flex:bs})],Nc.prototype,"tooltip",2),h([y({flex:bs})],Nc.prototype,"icon",2),h([y({flex:bs})],Nc.prototype,"activeIcon",2),h([y({flex:bs})],Nc.prototype,"type",2);var _S=Nc,Fc=class Fc{};o(Fc,"FooterAction"),h([y({flex:uh})],Fc.prototype,"tooltip",2),h([y({flex:uh})],Fc.prototype,"icon",2),h([y({flex:uh})],Fc.prototype,"activeIcon",2),h([y({flex:uh})],Fc.prototype,"type",2);var VS=Fc,ph=class ph{};o(ph,"Share"),h([y({flex:zu})],ph.prototype,"visible",2);var wS=ph,dh=class dh{};o(dh,"ShareOP"),h([y({flex:zu})],dh.prototype,"visible",2);var MS=dh,gh=class gh{};o(gh,"UpAndDownNavigationOP"),h([y({flex:zu})],gh.prototype,"visible",2);var kS=gh,mh=class mh{};o(mh,"SaveAndEditOP"),h([y({flex:Z0,generate:mt})],mh.prototype,"visible",2);var jS=mh,hh=class hh{};o(hh,"HeaderActionStandard"),h([y({flex:zu})],hh.prototype,"visible",2);var US=hh,yh=class yh{};o(yh,"ObjectPageHeaderActionStandard"),h([y({flex:zu})],yh.prototype,"visible",2);var $S=yh,Th=class Th{};o(Th,"ObjectPageFooterActionStandard"),h([y({flex:Z0})],Th.prototype,"visible",2);var BS=Th;var ep=Z(ae());var O3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ji(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),R3=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ji(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),L3=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),GS={controlId:O3,controlType:o(()=>ep.ControlType.TableColumn,"controlType")},Ju={controlId:L3,controlType:o(()=>ep.ControlType.Button,"controlType")},eV={...GS,controlId:R3},vh={...Ju,controlId:HS},Zu=class Zu{};o(Zu,"TableColumn"),h([y({flex:{controlId:Jb,controlType:o(()=>ep.ControlType.TableColumn,"controlType")}})],Zu.prototype,"width",2),h([y({flex:{controlId:Jb,controlType:o(()=>ep.ControlType.TableColumn,"controlType")},generate:Jn})],Zu.prototype,"hAlign",2);var WS=Zu,Ia=class Ia{};o(Ia,"TableColumnAction"),h([y({flex:GS})],Ia.prototype,"width",2),h([y({flex:GS,generate:Jn})],Ia.prototype,"hAlign",2),h([y({flex:Ju})],Ia.prototype,"tooltip",2),h([y({flex:Ju})],Ia.prototype,"icon",2),h([y({flex:Ju})],Ia.prototype,"activeIcon",2),h([y({flex:Ju})],Ia.prototype,"type",2);var bh=Ia,Oa=class Oa extends bh{};o(Oa,"TableColumnActionIntentBased"),h([y({flex:eV})],Oa.prototype,"width",2),h([y({flex:eV,generate:Jn})],Oa.prototype,"hAlign",2),h([y({flex:vh})],Oa.prototype,"tooltip",2),h([y({flex:vh})],Oa.prototype,"icon",2),h([y({flex:vh})],Oa.prototype,"activeIcon",2),h([y({flex:vh})],Oa.prototype,"type",2);var KS=Oa,QS=class QS{};o(QS,"TableCustomColumn");var XS=QS;var YS=class YS{};o(YS,"ToolBar");var qS=YS;var Dc=Z(ae());var tp=o(e=>e+Dc.PropertyName.chart,"getSmartChartControlId"),Es=class Es{};o(Es,"ChartSettings"),h([y({flex:{controlId:tp,controlType:o(()=>Dc.ControlType.SmartChart,"controlType")}})],Es.prototype,"showLegendButton",2),h([y({flex:{controlId:tp,controlType:o(()=>Dc.ControlType.SmartChart,"controlType")}})],Es.prototype,"showDownloadButton",2),h([y({flex:{controlId:tp,controlType:o(()=>Dc.ControlType.SmartChart,"controlType")}})],Es.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:tp,controlType:o(()=>Dc.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")}})],Es.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>I0(t),"path")}}),x({since:"1.81.0"})],Es.prototype,"showDataLabel",2);var zS=Es;var Ra=class Ra{};o(Ra,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>xc(t,i),"path")}})],Ra.prototype,"groupId",2);var JS=Ra;var tV=Z(ae());var N3=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Jt(e,n)},"getAvatarControlId"),Ss=class Ss{};o(Ss,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.46.0"})],Ss.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.46.0"})],Ss.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"})],Ss.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"}),Ne("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],Ss.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:N3,controlType:o(()=>tV.ControlType.Avatar,"controlType")},generate:mt})],Ss.prototype,"displayShape",2);var ZS=Ss;var Eh=Z(ae());var F3=o((e,t,n,i)=>{if(i()===Eh.ControlType.Button||i()===Eh.ControlType.HeaderAction){let r=n[2];return`${e}action::${Yi(r)}`}return Jt(e,t)},"getActionButtonId"),np={controlId:F3,controlType:o(()=>Eh.ControlType.HeaderAction,"controlType")},As=class As{};o(As,"ObjectPageHeaderAction"),h([y({flex:np,generate:mt})],As.prototype,"visible",2),h([y({flex:np})],As.prototype,"tooltip",2),h([y({flex:np})],As.prototype,"icon",2),h([y({flex:np})],As.prototype,"activeIcon",2),h([y({flex:np})],As.prototype,"type",2);var eA=As;var ip=Z(ae());var Ih="header::headerEditable::",D3=o((e,t,n,i,r)=>`${e}${Ih}${r}`,"getDataPointHeaderSectionId"),_3=o((e,t,n,i,r)=>`${e}${Ih}${r}::ContactAddress`,"getAddressHeaderSectionId"),V3=o((e,t,n,i,r)=>`${e}${Ih}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),nV=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(ip.FACETTITLEPREFIX)?r.split(ip.FACETTITLEPREFIX)[1]:a;return`${e}${Ih}${s}::Form`},"getFormHeaderSectionId"),rp={controlType:o(()=>ip.ControlType.ObjectPageHeaderSection,"controlType")},Sh=class Sh{};o(Sh,"CommonHeaderFacetSettings"),h([y({flex:{...rp,controlId:nV},generate:mt})],Sh.prototype,"visible",2);var _c=Sh,Ah=class Ah extends _c{};o(Ah,"ObjectPageHeaderSectionForm"),h([y({flex:{...rp,controlId:nV}})],Ah.prototype,"visible",2);var tA=Ah,Ph=class Ph extends _c{};o(Ph,"ObjectPageHeaderSectionChart"),h([y({flex:{...rp,controlId:V3}})],Ph.prototype,"visible",2);var nA=Ph,xh=class xh extends _c{};o(xh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...rp,controlId:D3}})],xh.prototype,"visible",2);var iA=xh,Ch=class Ch extends _c{};o(Ch,"ObjectPageHeaderSectionAddress"),h([y({flex:{...rp,controlId:_3}})],Ch.prototype,"visible",2);var rA=Ch,aA=class aA{};o(aA,"HeaderSections");var oA=aA;var cA=Z(ae());var w3=o((e,t,n,i)=>{if(i()===cA.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${Yi(r)}::Determining`}return Jt(e,t)},"getFooterActionButtonId"),op={controlId:w3,controlType:o(()=>cA.ControlType.Button,"controlType")},Ps=class Ps{};o(Ps,"ObjectPageFooterAction"),h([y({flex:op,generate:mt})],Ps.prototype,"visible",2),h([y({flex:op})],Ps.prototype,"tooltip",2),h([y({flex:op})],Ps.prototype,"icon",2),h([y({flex:op})],Ps.prototype,"activeIcon",2),h([y({flex:op})],Ps.prototype,"type",2);var sA=Ps;var ap=Z(ae());var Oh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Jt(e,n)},"getControlId"),Vc=class Vc{};o(Vc,"ObjectPageLayout"),h([y({flex:{controlId:Oh,controlType:o(()=>ap.ControlType.ObjectPageLayout,"controlType")},generate:mt})],Vc.prototype,"showHeaderContent",2),h([y({flex:{controlId:Oh,controlType:o(()=>ap.ControlType.ObjectPageLayout,"controlType")}})],Vc.prototype,"showAnchorBar",2),h([y({flex:{controlId:Oh,controlType:o(()=>ap.ControlType.ObjectPageLayout,"controlType")}})],Vc.prototype,"useIconTabBar",2),h([y({flex:{controlId:Oh,controlType:o(()=>ap.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],Vc.prototype,"alwaysShowContentHeader",2);var lA=Vc;var iV=Z(ae());var wc=class wc{};o(wc,"BaseCustomSection"),h([y({manifest:{path:Ca,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],wc.prototype,"relatedFacet",2),h([y({manifest:{path:Ca,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],wc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>Ca(t,{},i,iV.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],wc.prototype,"title",2),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],wc.prototype,"className",2);var lp=wc,sp=class sp extends lp{};o(sp,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],sp.prototype,"fragmentName",2),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],sp.prototype,"type",2);var fp=sp,cp=class cp extends lp{};o(cp,"ObjectPageCustomSectionView"),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],cp.prototype,"viewName",2),h([y({manifest:{path:Ca}}),x({since:"1.52.0"})],cp.prototype,"type",2);var up=cp;var tr=Z(ae());var rV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),tr.DefinitionName.Table];return Jt(e,s)},"getTableSectionControlId"),oV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"FormGroup"];return Jt(e,s)},"getFormSectionControlId"),aV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Chart"];return Jt(e,s)},"getChartSectionControlId"),Mc=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"Section"];return Jt(e,s)},"getSectionControlId"),sV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"SubSection"];return Jt(e,s)},"getSubSectionControlId"),cV=o((e,t,n,i,r)=>{let s=[zn(n[1],r),"ContactsList"];return Jt(e,s)},"getContactSubSectionControlId"),Rh=class Rh{};o(Rh,"ObjectPageSectionV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Rh.prototype,"visible",2);var fA=Rh,Lh=class Lh{};o(Lh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Lh.prototype,"visible",2);var uA=Lh,Nh=class Nh{};o(Nh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Nh.prototype,"visible",2);var pA=Nh,Fh=class Fh{};o(Fh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Fh.prototype,"visible",2);var dA=Fh,Dh=class Dh{};o(Dh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],Dh.prototype,"visible",2);var gA=Dh,_h=class _h{};o(_h,"ObjectPageSectionContactV2"),h([y({flex:{controlId:Mc,controlType:o(()=>tr.ControlType.Section,"controlType")},generate:mt})],_h.prototype,"visible",2);var mA=_h,Vh=class Vh{};o(Vh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:sV,controlType:o(()=>tr.ControlType.SubSection,"controlType")},generate:mt})],Vh.prototype,"visible",2);var hA=Vh,wh=class wh{};o(wh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:oV,controlType:o(()=>tr.ControlType.Group,"controlType")},generate:mt})],wh.prototype,"visible",2);var yA=wh,Mh=class Mh{};o(Mh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:aV,controlType:o(()=>tr.ControlType.SmartChart,"controlType")},generate:mt})],Mh.prototype,"visible",2);var TA=Mh,kh=class kh{};o(kh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:cV,controlType:o(()=>tr.ControlType.SubSection,"controlType")},generate:mt})],kh.prototype,"visible",2);var vA=kh,jh=class jh{};o(jh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:rV,controlType:o(()=>tr.ControlType.SmartTable,"controlType")},generate:mt})],jh.prototype,"visible",2);var bA=jh;var Uh=class Uh{};o(Uh,"ObjectPageChart"),h([y({manifest:{path:R0}}),x({since:"1.78.0"})],Uh.prototype,"variantManagement",2);var EA=Uh,$h=class $h{};o($h,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Di(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],$h.prototype,"variantManagement",2);var SA=$h;var br=Z(ae());var kc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=br.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=zn(a[0],r),Jt(e,a)},"getSmartTableControlId"),pp=class pp{};o(pp,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>go(t,n,i)+br.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],pp.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>go(t,n,i)+br.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],pp.prototype,"variants",2);var AA=pp,Bh=class Bh{};o(Bh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>Wr(t,n,i)+"/createWithParameterDialog","path"),export:fh}}),x({since:"1.77.0"})],Bh.prototype,"fields",2);var PA=Bh,Ai=class Ai{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(Ai,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:Wr,import:lh}}),x({since:"1.77.0"})],Ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],Ai.prototype,"editable",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),Ne("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],Ai.prototype,"showPasteButton",2),h([y({manifest:{path:Wr}}),x({since:"1.54.0"})],Ai.prototype,"multiSelect",2),h([y({manifest:{path:Wr}}),x({since:"1.70.0"})],Ai.prototype,"selectAll",2),h([y({manifest:{path:Wr}}),x({since:"1.70.0"})],Ai.prototype,"selectionLimit",2),h([y({manifest:{path:go}}),x({since:"1.63.0"})],Ai.prototype,"quickVariantSelection",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],Ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],Ai.prototype,"exportType",2),h([y({manifest:{path:go}}),x({since:"1.48.5"}),Ne("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],Ai.prototype,"createMode",2),h([y({manifest:{path:go}}),x({since:"1.61.0"})],Ai.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:Wr}}),x({since:"1.78.0"})],Ai.prototype,"variantManagement",2),h([kt("toolBar")],Ai.prototype,"toolBar",2);var jc=Ai,xs=class xs extends jc{};o(xs,"ObjectPageResponsiveTable"),h([y({manifest:{path:Wr}})],xs.prototype,"type",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.Table,"controlType")}})],xs.prototype,"includeItemInSelection",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],xs.prototype,"popinLayout",2),h([y({manifest:{path:Wr}}),x({since:"1.77.0"})],xs.prototype,"inlineDelete",2),h([y({flex:{controlId:kc,controlType:o(()=>br.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],xs.prototype,"growingThreshold",2);var Uc=xs,dp=class dp extends jc{};o(dp,"ObjectPageAnalyticalTable"),h([y({manifest:{path:Wr}})],dp.prototype,"type",2),h([y({manifest:{path:go}}),x({since:"1.67.0"})],dp.prototype,"condensedTableLayout",2);var xA=dp,gp=class gp extends jc{};o(gp,"ObjectPageGridTable"),h([y({manifest:{path:Wr}})],gp.prototype,"type",2),h([y({manifest:{path:go}}),x({since:"1.67.0"})],gp.prototype,"condensedTableLayout",2);var CA=gp,mp=class mp extends jc{};o(mp,"ObjectPageTreeTable"),h([y({manifest:{path:Wr}})],mp.prototype,"type",2),h([y({manifest:{path:go}}),x({since:"1.67.0"})],mp.prototype,"condensedTableLayout",2);var IA=mp,La=class La{};o(La,"GlobalTableSettings"),h([y({manifest:{path:Cc}}),x({since:"1.70.0"})],La.prototype,"selectAll",2),h([y({manifest:{path:Cc}}),x({since:"1.78.0"})],La.prototype,"variantManagement",2),h([y({manifest:{path:Cc}})],La.prototype,"type",2),h([y({manifest:{path:Cc}}),x({since:"1.54.0"})],La.prototype,"multiSelect",2),h([y({manifest:{path:Cc}}),x({since:"1.67.0"})],La.prototype,"condensedTableLayout",2),h([y({manifest:{path:Cc}}),x({since:"1.77.0"})],La.prototype,"inlineDelete",2);var OA=La;var lV=Z(ae());var M3=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=zn(n[1],r);return`${e}${s}::action::${Yi(a).replace(":2f","::")}`},"getActionButtonId"),hp={controlId:M3,controlType:o(()=>lV.ControlType.Button,"controlType")},Cs=class Cs{};o(Cs,"ObjectPageToolBarAction"),h([y({flex:hp,generate:mt})],Cs.prototype,"visible",2),h([y({flex:hp})],Cs.prototype,"tooltip",2),h([y({flex:hp})],Cs.prototype,"icon",2),h([y({flex:hp})],Cs.prototype,"activeIcon",2),h([y({flex:hp})],Cs.prototype,"type",2);var RA=Cs;var _i=Z(ae());function NA(e,t,n,i){if(t.controlType===_i.ControlType.TableColumn||t.controlType===_i.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===_i.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",_i.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(NA,"addFlexChangeToConfigTableColumn");function Hh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(_i.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(Hh,"addFlexChangeToConfigTable");function Gh(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,E;let s=Tr(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===_i.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===_i.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(_i.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(_i.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(E=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:E.properties[l.propertyId]}u&&NA(t.table,l,n,i)})}o(Gh,"importFlexChangesOfColumn");function Is(e){return e.replace("/","::")}o(Is,"convertActionKey");function FA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(FA,"convertSelector");function k3(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(k3,"addSmartFilterBarFlex");function j3(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=Yi((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}`,E=`${u[0]}:::${p}:::${g}`;i.set(v,r),i.set(r,E)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(j3,"filterActions");function U3(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(U3,"addColumnActionConfigPart");function $3(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($3,"getActionId");function B3(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=j3(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"&&U3(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(B3,"addActionFlex");function H3(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Mn(e[ut.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[ut.PropertyName.chart],t):e[ut.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(H3,"addSmartChartFlex");function Wh(e,t,n,i){var r,a;try{let s=Tr(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(ut.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(ut.PageTypeV2.AnalyticalListPage))switch(s.controlId=FA(s.controlId),s.controlType){case ut.ControlType.SmartFilterBar:{k3(e,l,s,n);break}case ut.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case ut.ControlType.Button:{let u=$3(s);u&&B3(e,l,s,n,u);break}case ut.ControlType.SmartChart:{H3(e,l,s,n);break}default:break}}catch(s){re(i,{severity:ut.LogSeverity.Error,message:Q.t("FLEXERROR")},...s)}}o(Wh,"addFlex");function G3(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(G3,"adjustQuickVariantSelectionX");function kn(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=Mn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Kn(t,g),Fl(p,s,u,e),Em(l,s,g,r)}G3(u,e)}}o(kn,"transferSettingsOfObject");function Kh(e,t){var r,a,s,l,u,p,g,m,v;let n=e[ut.ManifestSection.generic].pages[t],i=ut.v2.TableTypeV2.ResponsiveTable;return(r=e[ut.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[ut.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[ut.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=ut.v2.TableTypeV2.AnalyticalTable),i}o(Kh,"determineTableType");function fV(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(fV,"evaluateFragmentColumn");function W3(e,t,n,i){let r;if(e===ut.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===ut.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(W3,"determineCellsFragmentName");function K3(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,uV.xml2json)(e[0].fileContent,{compact:!0}))[Go];try{let g=Ku(p);if(g)if((l=t[ut.PropertyName.table])!=null&&l.columns||(t[ut.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)fV(m,n,i,r,t,a,s);else fV(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(K3,"analyzeFilteredFragments");function X3(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 E=W3(u,e,p,g),b=v.split(".");v=b[b.length-1]+ut.FRAGMENTNAMEPART+m;let I=i.fragments.filter(N=>N.dataSourceUri.endsWith(v));try{K3(I,n,e,s,g,u,E)}catch(N){i.logger.error(N.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(N=>{Gh(i,n,N.id,N,r)})}}}o(X3,"processViewExtensions");function Zl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[ut.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=ut.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[ut.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;X3(g,m,e,t,a)}}o(Zl,"addFragments");function Xh(e,t,n){if(e.header={actions:{}},n[ut.DefinitionName.HeaderActionsStandard]){let i=n[ut.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(ut.PageTypeV2.ListReport,r,{})}}o(Xh,"importHeaderActions");var Qo=Z(ae());var yp="sap.suite.ui.generic.template.ListReport";var pV="sap.suite.ui.generic.template.ListReport.view.ListReport";var qh=Z(ae());var dV=Z(ae());function gV(e,t=[]){return e.concat(["component","settings"]).concat(t)}o(gV,"getManifestPathToPageSettings");function Xo(e,t,n){let i=e,r=t.every(function(a){return!i||typeof i!="object"||Array.isArray(i)&&typeof a!="number"?!1:(i=i[a],!0)})&&typeof i=="object"&&i!==null;return{hasPath:r,value:r&&n?i[n]:void 0,parent:r?i:void 0}}o(Xo,"getManifestPropertyByPath");function Na(e){return e!==null&&typeof e=="object"}o(Na,"isDefinition");function Qh(e,t,n,i,r,a,s){let l=n[dV.SchemaTag.conversionExit],u=l==null?void 0:l.name,p=t?t(u):void 0;if(!p)return i;let g=l.params;return e?p.appToConfig(i,g,r??[],n,s):p.configToApp(i,g,r??[],n,a)}o(Qh,"executeConversionExit");function $c(e,t,n,i="string",r=!1){let a;if(e===void 0)a=r;else if(e===null||typeof e!="object")a=!0;else{let s=e[t];s===void 0?a=r:a=typeof s!==i||s===null&&r}return a&&re(n,{severity:qh.LogSeverity.Error,message:Q.t("TYPEERROR",{propertyName:t,expectedType:i})}),a}o($c,"hasPropertyTypeError");var Xoe=Symbol("Property is suppressed without explanation");var jt=Z(ae());function Bc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(ha((r=s.component)==null?void 0:r.name)===jt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Bc(s.pages,t,n),i))return n.unshift(a),i}}o(Bc,"findObjectPageV2");function ef(e,t){var n;for(let i in e){let r=e[i];if(ha((n=r.component)==null?void 0:n.name)===jt.PageTypeV2.ListReport)return t.push(i),r}}o(ef,"findListReportPageV2");function tf(e){if(!e.manifest[jt.ManifestSection.generic]){re(e.logger,{severity:jt.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}let t=e.manifest[jt.ManifestSection.generic].pages;if(!t){re(e.logger,{severity:jt.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}return t}o(tf,"getV2Pages");function nf(e,t,n){var i;if(!e){re(t,{severity:jt.LogSeverity.Error,message:Q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;re(t,{severity:jt.LogSeverity.Error,message:Q.t("NOENTITYSET",{pageName:r}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}}o(nf,"checkV2Page");function rf(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),ha((i=a.component)==null?void 0:i.name)===jt.PageTypeV2.AnalyticalListPage)return a}re(n,{severity:jt.LogSeverity.Error,message:Q.t("NOALP"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}o(rf,"findAnalyticalListPage");function DA(e,t){let n=e.split("|");return jt.v2.SectionPosition[n[0]]&&n[1]===t}o(DA,"isAssociatedCustomSection");function mV(e,t){let n=Kn(e,`sap.ui5/extends/extensions/${jt.v2.SAPUI5_VIEW_EXTENSION}/${jt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)DA(r,t)&&(i[r]=n[r]);return i}o(mV,"findCustomSectionExtensions");function Q3(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(Q3,"removeEmptySettingsOfFooter");function q3(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(q3,"removeEmptySettingsOfFilterBar");function Y3(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(Y3,"removeEmptySettingsOfToolBar");function Yh(e){Y3(e),q3(e),Q3(e)}o(Yh,"removeEmptySettings");var Qt=Z(ae());var yV=Z(ae());var _A={};lc(_A,{ACTION_GROUPS_ARENT_SUPPORTED:()=>jQ,ANNOERR:()=>hQ,ANNOTATIONFILE:()=>yQ,COMPONENTNOTDEFINED:()=>TQ,CONTEXTPATHCOULDNOTBERESOLVED:()=>pQ,ENTITYSETNOTFOUND:()=>uQ,FLEXERROR:()=>OQ,INCONSISTENTSCHEMA:()=>MQ,INVALIDANCHOR:()=>RQ,INVALIDEXTENSION:()=>LQ,INVALIDTARGETDEFINITION:()=>FQ,MACROS_ANNOTATION_ERROR:()=>VQ,NOALP:()=>gQ,NOANNOTATIONFORPATH:()=>lQ,NOBASEPATH:()=>Z3,NOCHARTS:()=>SQ,NOENTITYSET:()=>rQ,NOENTITYTYPE4SET:()=>oQ,NOFE:()=>tQ,NOFRAGMENT:()=>NQ,NOGENERICSCHEMA:()=>nQ,NOID4SECTION:()=>DQ,NOLINEITEMANDCHARTS:()=>AQ,NOLINEITEMFORPATH:()=>fQ,NOLINEITEMS:()=>EQ,NOLR:()=>dQ,NOPAGEFORENTITYSET:()=>iQ,NOPAGES:()=>eQ,NOPRESENTATIONVARIANT:()=>aQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>sQ,NOPRESENTATIONVARIANTFORSPV:()=>cQ,NOROUTING:()=>vQ,NOROUTINGID:()=>IQ,NOTARGET:()=>CQ,NOTARGETS:()=>xQ,NOTEMPLATE:()=>mQ,NOUIANNOTATIONS:()=>bQ,NOVISUALIZATIONS:()=>PQ,TYPEERROR:()=>wQ,UNEXISTING_ANNOTATION_PATH:()=>kQ,UNKNOWNMINUI5VERSION:()=>J3,WRONGMINUI5VERSION:()=>z3,XMLPARSEFAILURE:()=>_Q,default:()=>UQ});var z3="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",J3="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",Z3="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",eQ="No pages found in manifest for app with id '{{- appId}}'",tQ="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",nQ="No generic schema found while generating page schema for {{- pageType}}",iQ="No page found in manifest for entitySet '{{- entitySet}}'",rQ="No entitySet defined for page '{{- pageName}}'",oQ="No entityType could be found for the given entity set '{{- entitySetName}}'",aQ="No PresentationVariant defined for '{{- key}}'",sQ="No PresentationVariant found for default SelectionPresentationVariant",cQ="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",lQ="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",fQ="No line item annotation found for path '{{- annotationPath}}'",uQ="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",pQ="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",dQ="No page found in manifest for list report",gQ="No page found in manifest for analytical list page",mQ="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",hQ="Error while parsing annotation files",yQ="Annotation file: '{{- file}}'",TQ="Component name is not defined for page '{{- pageName}}'",vQ="Incomplete manifest definition: no routing defined",bQ="No UI Annotation defined for entity type '{{- entityType }}'",EQ="UI.LineItem annotation has not been defined",SQ="UI.Chart annotation has not been defined",AQ="Neither UI.LineItem nor UI.Chart annotation has been defined",PQ="Empty Collection for Visualizations",xQ="Incomplete manifest definition: no targets defined",CQ="Invalid reference: annotation target '{{- target}}' not found",IQ="No page found in manifest for routingId '{{- routingId}}'",OQ="Error while parsing flex change",RQ="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",LQ="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",NQ="fragmentName is undefined for columnKey '{{- columnKey}}'",FQ="Invalid routing target definition in manifest: '{{- target}}'",DQ="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",_Q="Parsing of XML file failed with error - {{- error}}",VQ="Error during resolving annotation for '{{- control}}'",wQ="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",MQ="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",kQ="The annotation path doesn't exist.",jQ="Action groups aren't supported in the version you're using. Please update to SAPUI5 1.132 or higher.",UQ={WRONGMINUI5VERSION:z3,UNKNOWNMINUI5VERSION:J3,NOBASEPATH:Z3,NOPAGES:eQ,NOFE:tQ,NOGENERICSCHEMA:nQ,NOPAGEFORENTITYSET:iQ,NOENTITYSET:rQ,NOENTITYTYPE4SET:oQ,NOPRESENTATIONVARIANT:aQ,NOPRESENTATIONVARIANTFORDEFAULTSPV:sQ,NOPRESENTATIONVARIANTFORSPV:cQ,NOANNOTATIONFORPATH:lQ,NOLINEITEMFORPATH:fQ,ENTITYSETNOTFOUND:uQ,CONTEXTPATHCOULDNOTBERESOLVED:pQ,NOLR:dQ,NOALP:gQ,NOTEMPLATE:mQ,ANNOERR:hQ,ANNOTATIONFILE:yQ,COMPONENTNOTDEFINED:TQ,NOROUTING:vQ,NOUIANNOTATIONS:bQ,NOLINEITEMS:EQ,NOCHARTS:SQ,NOLINEITEMANDCHARTS:AQ,NOVISUALIZATIONS:PQ,NOTARGETS:xQ,NOTARGET:CQ,NOROUTINGID:IQ,FLEXERROR:OQ,INVALIDANCHOR:RQ,INVALIDEXTENSION:LQ,NOFRAGMENT:NQ,INVALIDTARGETDEFINITION:FQ,NOID4SECTION:DQ,XMLPARSEFAILURE:_Q,MACROS_ANNOTATION_ERROR:VQ,TYPEERROR:wQ,INCONSISTENTSCHEMA:MQ,UNEXISTING_ANNOTATION_PATH:kQ,ACTION_GROUPS_ARENT_SUPPORTED:jQ};function hV(e){e.addResourceBundle(e.language,"translation",_A)}o(hV,"initI18n");function Xt(e="en"){Q.init({resources:{en:{translation:yV.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
293
|
|
|
294
|
-
`}),gV(Q)}o(Xt,"initI18n");var VA={};lc(VA,{AnalyticalListPage:()=>Xr,ListReport:()=>To,ObjectPage:()=>fi,OverviewPage:()=>Jt,exportFilterSettings:()=>TV,importDateSettingsOVP:()=>hV,importFilterSettings:()=>yV});var zh=Z(ae());var Xr=class{};o(Xr,"AnalyticalListPage"),h([y({flex:{controlId:ym,controlType:o(()=>zh.ControlType.DynamicPage,"controlType")}})],Xr.prototype,"fitContent",2),h([kt("table")],Xr.prototype,"table",2),h([kt("template::SmartFilterBar")],Xr.prototype,"filterBar",2),h([kt("analyticalListPageChart")],Xr.prototype,"chart",2),h([kt("analyticalListFooter")],Xr.prototype,"footer",2),Xr=h([Zi({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:zh.v2.FE_TEMPLATE_V2_ALP})],Xr);var Tp=Z(ae());var To=class{};o(To,"ListReport"),h([y({flex:{controlId:ym,controlType:o(()=>Tp.ControlType.DynamicPage,"controlType")}})],To.prototype,"fitContent",2),h([kt("listReportFilter")],To.prototype,"filterBar",2),h([kt("listReport")],To.prototype,"table",2),h([kt("listReportFooter")],To.prototype,"footer",2),To=h([Zi({id:Tp.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Tp.v2.FE_TEMPLATE_V2_LIST_REPORT})],To);var _A=Z(ae());var fi=class{};o(fi,"ObjectPage"),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.1"})],fi.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"})],fi.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"navToListOnSave",2),h([kt("header")],fi.prototype,"header",2),h([kt("sections")],fi.prototype,"sections",2),h([kt("layout")],fi.prototype,"layout",2),h([y({manifest:{path:o(t=>Wm(t),"path")}}),x({since:"1.77.0"})],fi.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Di(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],fi.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Di(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:mc}}),x({since:"1.71.0"})],fi.prototype,"globalTableSettings",2),fi=h([Zi({id:_A.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:_A.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],fi);function jQ(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(jQ,"importDateSettingsFieldsOVP");function hV(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&&jQ(e,t),t}o(hV,"importDateSettingsOVP");function yV(e){let t={};return t.dateSettings=hV(e.filterSettings),t}o(yV,"importFilterSettings");function UQ(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(UQ,"exportFilterFields");function TV(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&&UQ(t,n,e))}o(TV,"exportFilterSettings");var Jt=class{};o(Jt,"OverviewPage"),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>An(),"path"),import:yV,export:TV}}),x({since:"1.80.0"})],Jt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>An(),"path")}})],Jt.prototype,"resizableLayout",2),Jt=h([Zi({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Jt);var wA=class wA{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(wA,"MetadataFactory");var of=wA;var ei=Z(ae());var $Q={},BQ={Table:Rc,ResponsiveTableWithMultiSelect:Rc,ResponsiveTableWithInlineDelete:Rc},HQ={[ei.v2.CardSettingsType.listCardSettings]:Gl,[ei.v2.CardSettingsType.listCardSettingsv4]:Gl,[ei.v2.CardSettingsType.analyticalCardSettings]:Wl,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:Wl,[ei.v2.CardSettingsType.stackCardSettings]:ju,[ei.v2.CardSettingsType.linkListCardSettings]:Uu,[ei.v2.CardSettingsType.tableCardSettings]:Kl,[ei.v2.CardSettingsType.tableCardSettingsv4]:Kl},GQ={[ei.SAPUI5_VIEW_CLASS]:up,[ei.SAPUI5_FRAGMENT_CLASS]:fp,Table:Uc,ObjectPageResponsiveTableWithMultiSelect:Uc,ObjectPageResponsiveTableWithInlineDelete:Uc},WQ={[ei.PageTypeV2.AnalyticalListPage]:$Q,[ei.PageTypeV2.ListReport]:BQ,[ei.PageTypeV2.ObjectPage]:GQ,[ei.PageTypeV2.OverviewPage]:HQ},MA=class MA extends of{constructor(){super(RA,VA,WQ)}};o(MA,"MetadataInstanceFactoryV2");var Vi=MA;function KQ(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),kn(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"),kn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(KQ,"importFilterBar");function kA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=Tr(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};Hh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&Gh(e,n,s)}o(kA,"importFlexChangesOfTableAndColumns");function XQ(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Rm]&&t[Lm]&&(a=JSON.parse(JSON.stringify(t[Rm])),a.properties={...a.properties,...t[Lm].properties}),kn(n.table,i.manifest,a,r,i.logger),kA(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&&re(i.logger,{severity:Qt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(XQ,"importTable");function QQ(e,t,n,i){let r=e.jsonSchema.definitions,a=Kh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),Xh(t,n,r),XQ(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),kn(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=Is(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),kn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}KQ(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=Is(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),kn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(QQ,"addSettings");function vV(e){if(Xt(),!tf(e))return;let n=new Vi,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=ef(e.manifest[Qt.ManifestSection.generic].pages,r);if(nf(a,e.logger,a==null?void 0:a.entitySet),!!a)return QQ(e,i,n,r[0]),e.flex.forEach(s=>{Tr(s)&&Wh(i,s,e.jsonSchema,e.logger)}),Zl(i,e,a,Qt.PageTypeV2.ListReport),Yh(i),i}o(vV,"createListReportConfig");var ve=Z(ae());var vp=require("@sap-ux/vocabularies-types/vocabularies/UI");var YQ=[ve.ControlType.Avatar,ve.ControlType.ObjectPageLayout,ve.ControlType.DynamicPage];function zQ(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(`${vp.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${ve.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(vp.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(zQ,"getSingleSelectorIdPart");function JQ(e){let t,n=e.split(":::");if(n.length===1)t=zQ(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(`::${vp.UIAnnotationTerms.LineItem}`,`/@${vp.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(JQ,"getFacetID");function ZQ(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=Tr(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let E=JQ(v);v=NA(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:E,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){re(n,{severity:ve.LogSeverity.Error,message:Q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(ZQ,"prepareFlexChanges");var e7=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 t7(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&LA(i,t,r)}o(t7,"addFlexChangeToColumns");function bV(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,ve.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===ve.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?t7(a,p,r.properties,n):Hh(n,p,r))}}o(bV,"importFlexChangesOfTable");function n7(e,t){return e.facetId==="template"&&t}o(n7,"isStandardActionFlexChange");var EV=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 i7(e,t,n,i,r,a){var I;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===ve.ControlType.GroupElement&&l,g=((I=t.facetId)==null?void 0:I.includes(ve.ACTIONTITLEPREFIX))&&!r&&s,m=r&&EV(u,r.split("::"))&&s,v=e.title&&EV(u,e.title.split("::"),!0),E=!t.facetId&&YQ.includes(t.controlType),b=n7(t,l);return p||g||m||v||E||b}o(i7,"matchSelector");function r7(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[ve.SchemaTag.controlType]))continue;i7(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(r7,"importFlexChanges");function o7(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(re(n.logger,{severity:ve.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(o7,"checkDeprecatedProperties");function a7(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=Kn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Kn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Kn(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 o7(p,a,n,u),p}o(a7,"importManifestSetting");function wi(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=Mn(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],E=e.jsonSchema.definitions[v];bV(i.flexChanges,g,t,r,E,l)}else bV(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);r7(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&a7(m,i.pageKeys,e,t,g,s,r)}}o(wi,"transferSettingsAndFlexChanges");function AV(e,t,n,i){let r=Yi(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=`${J0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Nm}${r}`;break}}return r.replace(/@/g,"")}o(AV,"getActionId");function s7(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=AV(s,a,"","");e.actions[a]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,l,{}),wi(n,e[ve.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(s7,"fillStandardActions");function Jh(e,t,n,i,r,a){var l;n[ve.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=Is(p),m=AV(s,g,r,a);m&&(n[ve.PropertyName.actions][g]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,s),wi(e,n[ve.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[ve.PropertyName.actions])!=null&&l[g]&&Object.keys(n[ve.PropertyName.actions][g]).length===0&&delete n[ve.PropertyName.actions][g]}}s7(n,t,e,i),Object.keys(n[ve.PropertyName.actions]).length===0&&delete n[ve.PropertyName.actions]}o(Jh,"fillActions");function c7(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(ve.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;wi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[ve.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(c7,"fillFields");function l7(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(l7,"prepareTableSchema");function f7(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(ve.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][ve.PropertyName.table]=g;let m=e.jsonSchema.definitions,v=l7(p,t,m);wi(e,i[t.id],t.schema,r,{title:t.title}),wi(e,i[t.id][ve.PropertyName.table],v,r,t);let E=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(E!=null&&E.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Jh(e,E.properties,i[t.id][ve.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][ve.PropertyName.table].toolBar).length===0&&delete i[t.id][ve.PropertyName.table].toolBar}}o(f7,"fillTableInConfig");function u7(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Sm(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Zl(n[t],e,i,ve.PageTypeV2.ObjectPage,l,r)}}o(u7,"fillCustomColumnsInConfig");function p7(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][ve.PropertyName.chart]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(wi(e,i[t.id],t.schema,r,{title:t.title}),wi(e,i[t.id][ve.PropertyName.chart],e.jsonSchema.definitions[ve.DefinitionName.ObjectPageChart],r,t))}o(p7,"fillChartSection");function d7(e,t,n,i){n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&wi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(d7,"fillHeaderSection");function g7(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&wi(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&&Jh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&c7(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(g7,"fillFormSection");function SV(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&wi(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,jA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(SV,"fillSubSection");function jA(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:e7(t[l]),schema:t[l],title:eE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],f7(e,p,n,i,r),u7(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],p7(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],g7(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}>`],SV(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],d7(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],SV(e,p,n,i,r))}}o(jA,"fillSectionsInConfig");function m7(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];wi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(m7,"fillCustomSectionsInConfig");function h7(e,t){var g,m;let n=t.factory.createPageInstance(ve.PageTypeV2.ObjectPage);wi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;wi(e,n.globalTableSettings,i[ve.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.ObjectPageHeader);let r=i[ve.DefinitionName.ObjectPageHeader]?i[ve.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];wi(e,n.header,r,t);let a=i[ve.DefinitionName.ObjectPageHeaderActions];a&&Jh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[ve.DefinitionName.FooterActions];s&&Jh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageLayout"),wi(e,n.layout,i[ve.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[ve.DefinitionName.HeaderSections];if(l){let v=(g=t.v2Page.component)==null?void 0:g.settings;jA(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[ve.DefinitionName.Sections];if(u){let v=(m=t.v2Page.component)==null?void 0:m.settings;jA(e,u.properties,v,n.sections,t)}let p=dV(e.manifest,e.entitySet);return m7(p,n,t,i,e),n}o(h7,"fillConfig");function Zh(e){Xt();let t=tf(e);if(!t)return;let n=e.entitySet,i=[],r=Bc(t,e.entitySet,i);if(nf(r,e.logger,n),!r)return;let a=ZQ(e.flex,n),s=new Vi;return h7(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Zh,"createObjectPageConfigV2");var Xo=Z(ae());var $A=Z(Eb());var _t=Z(ae());var y7=["colorPalette","tabs"];function T7(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(T7,"createCard");function PV(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),PV(e,n.join("|"))}return t}o(PV,"findAvailableId");function bp(e,t,n,i,r,a,s){i!=null&&i.properties&&UA(e,t,n,i.properties,r,a,s)}o(bp,"transferManifestEntriesOVP");function Hc(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(Hc,"assignReflectMetadataRules");function v7(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=Hc(e.factory,i[1],t,"CustomCard"),bp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(v7,"processAnyOfDefinitionsOfOVP");function b7(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!y7.includes(i)?t[i]=(0,$A.default)(t[i]||{},r||{},{arrayMerge:Yb}):t[i]=r}o(b7,"checkSyncRuleForExport");function E7(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Kn(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,$A.default)(l.settings||{},r||{},{arrayMerge:Yb});else if(r!==void 0){let u=e.manifest.export;b7(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(E7,"transferToManifest");function S7(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]=Hc(e.factory,i[0],e.currentObject[t],"CustomCard"),T7(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,bp(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(S7,"transferCards");function A7(e,t){if(t==="cards")S7(e);else{let n=ko(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=Hc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],bp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],UA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],UA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(A7,"exportOfObject");function UA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Ol(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Mn(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=v7(g)):u&&typeof u=="object"&&i[l]&&A7(g,l),p!=null&&p.manifest&&E7(p,a,l,t,u,e)}}o(UA,"processProperties");function P7(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=j0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=bm(p,g);e.exportResults.flexChanges.find(E=>{let b=!1,I=JSON.parse(E);I={content:I.content,selector:I.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(I)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(P7,"evaluateFlexRule");function x7(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(x7,"exportConfigValueToManifest");function C7(e,t,n,i,r){let a=Kn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)x7(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,rs(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(C7,"evaluateManifestRule");function I7(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(I7,"getManifestPathOfSections");function O7(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(O7,"getManifestPathOfTable");function R7(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=I7(t,a,n,e,r):t[0]===_t.PropertyName.table?a=O7(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(R7,"getManifestPath");function L7(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)P7(e,i,t,r,a,n,s);else if(t.manifest){let u=R7(e,i,t,n,a);C7(e,u,t,s,n)}}o(L7,"evaluateExportRule");function N7(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(nh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);nh(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(N7,"deleteObsoleteColumn");function F7(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=A_(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,N7(r,e,n))}o(F7,"deleteObsoleteColumnsFromFragment");function D7(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=ih(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(D7,"clusterConfigColumnsByPath");function xV(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}=ih(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{F7(p)}catch(g){e.logger.error(g.message)}}if(t){let l=D7(t,n,e.v2Page,s,r);for(let u in l)hS(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(xV,"transferColumnExtensions");function _7(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=PV(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(E=>{var b;return(b=E.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split(U),v=e.appSchema.definitions[m[m.length-1]];Os(e,t[p],i,[...r,s[p]],v)}let u=Kn(e.exportResults.manifest,$E());for(let p in u)FA(p,l)&&!s.includes(p)&&delete u[p]}o(_7,"transferManifestExtensions");function V7(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 zn(n,t)}o(V7,"getSectionId");function w7(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=ko(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Os(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(w7,"transferIndexTable");function M7(e,t,n,i,r,a){let s,l=Sm(e.$ref);l&&(s={target:l,key:V7(t,n)}),xV(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(M7,"transferCustomColumns");function k7(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=ko(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&Os(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(k7,"handleAnyOfDefinitions");function j7(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")_7(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){M7(l,t,s,e,n,a);return}else a?Os(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&k7(l,e,s,n==null?void 0:n[r],r,i,t)}o(j7,"transferComplexProperty");function Os(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&&!Ol(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Tm(t,l),p=u?[...n,u]:n,g=Mn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=ko(e.appSchema,a,s,m,l,e.factory,e.pageType);if(L7(e,g,t,[...i],p,a,l),w7(s,e,a,l,p,i),s===void 0||typeof s=="object")j7(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===U+"TableCustomColumns"){xV(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Os,"transferManifestEntriesAndFlexChange");function CV(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Hc(r,i,n[i],s),a.push(i),BA(r,n[i],e,l.properties,a)}o(CV,"transferSettingsOfRef");function U7(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split(U);CV(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${U}${Xo.v2.cardTemplateSettingsMap[e.template]}`.split(U);CV(i,l,e,t,r,a)}}o(U7,"processPropertiesOfObject");function $7(e,t,n,i,r,a){let s=Mn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Kn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{Fl(s,u,t,e)}catch(p){re(i.logger,{severity:Xo.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:gm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&U7(e,t,r,i,a,n)}o($7,"processOvpProperty");function BA(e,t,n,i,r){for(let a in i)$7(t,a,r,n,i,e)}o(BA,"processOvpProperties");function B7(e,t,n){BA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Xo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Xo.ManifestSection.ovp].cards[i].template,a=Xo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Hc(n,a,{},"CustomCard"),e.cards=Hc(n,a,e.cards,"CustomCard"),BA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(B7,"addSettings");function ey(e){let t=new Vi,n=t.createPageInstance(Xo.PageTypeV2.OverviewPage);return e.jsonSchema&&B7(n,e,t),n}o(ey,"createOverviewPageConfig");var xt=Z(ae());function H7(e,t,n,i){var p,g;let r=Kh(e.manifest,i),a=e.jsonSchema.definitions;Xh(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(kn(t.table,e.manifest,s,i,e.logger),kA(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=Is(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),kn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),kn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let E=v;t.filterBar.selectionFields[E]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),kn(t.filterBar.selectionFields[E],e.manifest,a.SelectionFieldDateSettings,i,e.logger,E)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),kn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=Is(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),kn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[xt.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(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),kn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(H7,"addSettings");function ty(e){if(Xt(),!tf(e))return;let n=new Vi,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=rf(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(nf(a,e.logger,a==null?void 0:a.entitySet),!!a)return H7(e,i,n,r[0]),e.flex.forEach(s=>{Tr(s)&&Wh(i,s,e.jsonSchema,e.logger)}),Zl(i,e,a,xt.PageTypeV2.AnalyticalListPage),Yh(i),i}o(ty,"createAnalyticalListPageConfig");var ti=Z(ae());var af=require("@sap-ux/vocabularies-types/vocabularies/UI");var W7=["filterBar","table","footer"],K7=ti.UIVOCABULARYALPHADOT.substring(1);function HA(e,t,n,i){cs(e,n,"QuickVariant"),p_(n,"QuickVariantX",t),d_(i,n,"QuickVariantX")}o(HA,"addEnumForVariantPaths");function X7(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[af.UIAnnotationTerms.SelectionPresentationVariant,af.UIAnnotationTerms.SelectionVariant,af.UIAnnotationTerms.PresentationVariant];Ou(e,r,i)}o(X7,"addEnumForFilterBarAnnotationPath");function Q7(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(af.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(af.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(K7,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(re(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(Q7,"getPresentationVariantForLineItem");function q7(e,t,n){if($c(t,"annotationPath",n))return;let i=Q7(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Iu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||re(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(q7,"getLineItemAnnotation");function IV(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:U+ti.DefinitionName.LineItems},r=U+ti.DefinitionName.ToolBarLR;NE.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}=Ml(e);if(s){let u=[],p=ef(e.manifest[ti.ManifestSection.generic].pages,u);wl(n);let g=q7(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=yr(a.fullyQualifiedName,g.term,g.qualifier);NE.forEach(E=>{n.definitions[E][ti.SchemaTag.annotationPath]=v})}_l(!1,n,g,a);let m=s.SelectionFields;if(Dm(n,m,a),kl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],r_(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return re(e.logger,{severity:ti.LogSeverity.Error,message:Q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;Vl(n,a,p,e.manifest,e.fragments),HA(a,e.entitySet,n,e.serviceAVT),X7(a,n,ti.DefinitionName.ListReportFilterBar),g_(a,n,ti.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 jo(n,W7),n}o(IV,"generateListReportSchemaV2");var we=Z(ae());var Ep=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 OV(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(OV,"getClassesForSingleSection");function RV(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],OV(n,i,t),RV(n,t)}}o(RV,"getSubsectionClasses");function Y7(e,t,n){let i;for(let r in e.sections)i=t.sections[r],OV(i,r,n),RV(i,n)}o(Y7,"getExportClassesForSections");function z7(e,t){let n=ef(t.manifest[we.ManifestSection.generic].pages,e);if(!n){re(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){re(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(z7,"findV2Page");function GA(e,t){let n=vm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(GA,"calculateBaseId");function LV(e,t,n=!1){let i=Ep(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=z7(a,e),l=new Vi,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:GA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(p,u,[],[],e.jsonSchema)}return i}o(LV,"exportListReportPage");function NV(e,t,n=!1){let i=e.page.config,r=Ep(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=rf(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Vi,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:GA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(p,u,[],[],e.jsonSchema)}return r}o(NV,"exportAnalyticalListPage");function FV(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Ep(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Bc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return re(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new Vi,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&Y7(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:GA(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(g,p,[],[],e.jsonSchema)}}return a}o(FV,"exportObjectPage");var DV=o(e=>{let t=Ep();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Vi,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&bp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),J7=o((e,t,n)=>{var s;let i=Ep();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Hm,e);r.settings=Object.assign(new ps,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Mn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Kn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],rs(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&UE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function _V(e,t){if(e[we.SchemaType.ListReport])return KA(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return FV(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return DV(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return J7(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return NV(e[we.SchemaType.AnalyticalListPage],t)}o(_V,"exportPageV2");function WA(e,t,n=!1){if(e[we.SchemaType.ListReport])return KA(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return FV(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return DV(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return NV(e[we.SchemaType.AnalyticalListPage],t,n)}o(WA,"exportConfigEntityByPathV2");var Fa=Z(ae());function wV(e,t){e.anyOf&&e.anyOf.forEach(function(n){Gc(n,t)})}o(wV,"addAnyOfToReferredTypes");function iy(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(iy,"getSingleItem");function Gc(e,t){if(typeof e!="object")return;let n=va(e);n&&MV(n,t),wV(e,t),Gc(e.additionalProperties,t),Gc(iy(e),t)}o(Gc,"addReferredTypesFromElement");function MV(e,t){t.referredTypeNames.add(e);let n=t.types[e];Gc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Gc(r,t)):Gc(iy(n),t),Gc(n.additionalProperties,t)}o(MV,"addReferredTypesFromType");function ny(e,t,n,i,r){if(typeof t!="object")return;let a=va(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=dm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let u={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};XA(n,u,e.syncRuleProvider,l,r)}else MV(a,r)}else XA(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(ny,"applyAdaptationInfoToElement");function VV(e,t,n,i){let r=i==null?void 0:i.elementAdapter;return r?r(n,t,e):{}}o(VV,"applySyncRuleToElement");function XA(e,t,n,i,r){var v,E;let a=C0(n),s=VV(e,t,i,a);if(!s)return;ny(s.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((v=s.referenceAdaptation)==null?void 0:v.specificParams)||t.specificParams},u=i.properties,p;if(u)p=u;else{let b=iy(i);if(b)u={items:b},p=i;else return}let g,m=((E=s.referenceAdaptation)==null?void 0:E.processingRuleProvider)||function(b,I){g=g||n&&new n;let F=Mn(g,b);return VV(e,l,I,F)};for(let b in u){let I=u[b];if(typeof I!="object"){p[b]=I;continue}let F={...I},M=m(b,F);M?(M.controlId?F[Fa.SchemaTag.controlId]=`${t.pageInfo.controlId}--${M.controlId}`:M.manifestPath&&(F[Fa.SchemaTag.artifactType]="Manifest",F[Fa.SchemaTag.manifestPath]=M.manifestPath),wV(F,r),ny(M.referenceAdaptation,F,e,l,r),ny(M.additionalPropertiesAdaptation,F.additionalProperties,e,l,r),ny(M.itemsAdaptation,iy(F),e,l,r),p[b]=F):delete p[b]}}o(XA,"adjustElement");function Z7(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(Z7,"getViewId");function kV(e,t,n){var $;Xt();let i=dc(e.manifest,Fa.FioriElementsVersion.v2,n);if(!i||i===Fa.TemplateType.OverviewPageV2)return;let{parent:r}=Ko(e.manifest,e.pagePath);if(!r)return;let a=r.component;if($c(r,"entitySet",n,"string",!0)||$c(a,"name",n,"string",!0))return;let s=r.entitySet,l=a.name,u=t(l),p=u==null?void 0:u.genericSchema,g=u==null?void 0:u.syncRuleProvider;if(!g||!p)return p;let m=e.parsedAnnotations||Ur(e.annotations,n),v=($=m==null?void 0:m.entitySets)==null?void 0:$.find(se=>se.name===s);if(!v)return p;let E=structuredClone(p),b=Z7(e.appId,l,s),F={pageInfo:{appId:e.appId,componentName:l,entitySet:s,controlId:b,pagePath:e.pagePath}},M={templateType:i,manifest:e.manifest,serviceAVT:m,fioriElementsVersion:Fa.FioriElementsVersion.v2,entitySet:v,fragments:e.fragments,logger:n,entityType:v.entityType},G={types:E.definitions,referredTypeNames:new Set};XA(M,F,g,E,G);for(let se in E.definitions)G.referredTypeNames.has(se)||delete E.definitions[se];return E}o(kV,"getAdaptedSchema");var ay=Z(ae());var QA=Z(ae());var jV=Z(ae());var oy=class oy{};o(oy,"Share"),h([y({flex:{controlType:o(()=>jV.ControlType.Button,"controlType")},elementAdapter:o(()=>({controlId:"template::Share"}),"elementAdapter")})],oy.prototype,"visible",2);var ry=oy;var Rs=class{};o(Rs,"ListHeaderActions"),h([y({elementAdapter:o(()=>({referenceAdaptation:{syncRuleProvider:ry}}),"elementAdapter")})],Rs.prototype,"Share",2),Rs=h([y({elementAdapter:o(function(e){return e[QA.SchemaTag.icon]="Export",{}},"elementAdapter")})],Rs);var Da=class{};o(Da,"ListHeader"),h([y({elementAdapter:o(()=>({referenceAdaptation:{syncRuleProvider:Rs}}),"elementAdapter")})],Da.prototype,"actions",2),Da=h([y({elementAdapter(e){return e[QA.SchemaTag.icon]="Header",{}}})],Da);var vo=class{};o(vo,"ListReportNew"),h([y({flex:{controlType:o(()=>ay.ControlType.DynamicPage,"controlType")},elementAdapter(){return{controlId:"page"}}})],vo.prototype,"fitContent",2),h([y({elementAdapter:o(function(t){return t[ay.SchemaTag.propertyIndex]=0,{referenceAdaptation:{syncRuleProvider:Da}}},"elementAdapter")})],vo.prototype,"header",2),vo=h([Zi({id:fV,pageId:yp}),y({elementAdapter(e,t,n){let i=pV(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=Ml(n),{value:s}=Ko(n.manifest,i);return{referenceAdaptation:{specificParams:{settings:s,entityType:r,uIAnnotations:a}}}}})],vo);var JA=require("path"),XV=require("fs");var Er=Z(ae());function eq(e){let t={};return e.flex.forEach(function(i){let r=Tr(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(eq,"getChangeMapFormImportParameters");function qA(e,t,n,i,r){if(e===void 0)return;let a=va(t),s=a?n[a]:void 0;if(t[Er.SchemaTag.conversionExit]&&(e=Qh(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return qA(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},u=!1;for(let p in t.properties){let g=t.properties[p],m=qA(e[p],g,n,i,r);m!==void 0&&(u=!0,l[p]=m)}return u?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(qA,"getConfigRep");function UV(e,t,n,i,r,a,s,l){let u=qA(r,a,s,l,t);if(u===void 0)return;let p=e,g=[];n.forEach(function(m){g.push(m);let v=m.propertyName;p[v]=p[v]||t.propertyInstanceProvider(g),p=p[v]}),p[i]=u}o(UV,"transferValueToConfig");function tq(e,t,n,i,r,a,s,l){let u=r[Er.SchemaTag.controlId],p=l[u];if(!p)return;let g=-1,m=p.find(function(v,E){return v.content.property===i?(g=E,!0):!1});m&&(UV(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[u]:p.splice(g,1))}o(tq,"importFlexChangesToConfigProperty");function nq(e,t,n,i,r,a,s){let l=r[Er.SchemaTag.manifestPath],u,p;Array.isArray(l)?(p=l,u=!0):(p=l.path,u=l.addTargetPropertyToPath);let{hasPath:g,value:m,parent:v}=Ko(s.manifest,p,u?i:void 0);if(!g)return;UV(e,t,n,i,u?m:v,r,a,s)}o(nq,"importManifestToConfigProperty");function $V(e,t,n,i,r,a,s){if(Na(n.properties))for(let l in n.properties){let u=n.properties[l];if(!Na(u))continue;let p=u[Er.SchemaTag.artifactType];if(p===Er.ArtifactType.FlexChange)tq(e,t,i,l,u,r,a,s);else if(p===Er.ArtifactType.Manifest&&u[Er.SchemaTag.manifestPath])nq(e,t,i,l,u,r,a);else{let g=va(u),m=g?r[g]:void 0;if(Na(m)){let v=i.concat([{propertyName:l,propertyType:g.split("<")[0]}]);$V(e,t,m,v,r,a,s)}}}}o($V,"importDefinitionIntoConfig");function BV(e,t,n){var m;let i=dc(e.manifest,Er.FioriElementsVersion.v2,e.logger);if(!i||i===Er.TemplateType.OverviewPageV2)return;let{parent:r}=Ko(e.manifest,t),a=(m=r==null?void 0:r.component)==null?void 0:m.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let l=eq(e),u=e.jsonSchema,p=u.definitions,g=s.propertyInstanceProvider([]);return $V(g,s,u,[],p,e,l),g}o(BV,"getConfigForPage");var Pi=Z(ae());function iq(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[Pi.SchemaTag.controlId],controlType:e[Pi.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o(iq,"addFlexChangeInfoToList");function HV(e,t,n,i){var l;if(n[Pi.SchemaTag.conversionExit])return Qh(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let u in n.properties){let p=n.properties[u];if(!Na(p))continue;let g=va(p);p=g&&i.globalTypeDefinitions[g]||p;let m=r[u];s=s||m!==void 0;let v=HV(e?e[u]:void 0,m,p,i);v===void 0?delete r[u]:(r[u]=v,a=!0)}return a?r:s?Object.keys(t).every(u=>Na(n.properties[u]))?void 0:r:t}o(HV,"getValueForManifest");function YA(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(r,a){return YA(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return YA(e[r],t[r])})}o(YA,"isDifferent");function rq(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(rq,"isEmpty");function oq(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],u=[];e.some(function(m,v){if(v===s)return!0;let E=a[m];if(typeof E!="object"||E===null)return!0;a=E,u.push(a)});let p=u.length===s?a[l]:void 0,g=HV(t,p,i,r);if(YA(g,p))if(g===void 0){n.manifestChangeIndicator=Pi.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let v=u[m];if(!rq(v))break;let E=u[m-1],b=e[m];delete E[b]}}else{for(let m=u.length;m<s;m++){let v={};a[e[m]]=v,a=v}a[l]=g,n.manifestChangeIndicator=p===void 0?Pi.ChangeIndicator.Created:Pi.ChangeIndicator.Updated}}o(oq,"applyManifestChange");function aq(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[Pi.SchemaTag.artifactType];if(s===Pi.ArtifactType.FlexChange)iq(i,a,n,t.flexList);else if(s===Pi.ArtifactType.Manifest&&i[Pi.SchemaTag.manifestPath]){let l,u=i[Pi.SchemaTag.manifestPath];Array.isArray(u)?l=u.concat([n]):(l=u.path,u.addTargetPropertyToPath&&(l=l.concat([n]))),oq(l,a,t,i,r)}else{let l=va(i),u=l?r.globalTypeDefinitions[l]:void 0;Na(u)&&GV(a,t,u,r)}}o(aq,"transferConfigPropertyToExportResults");function GV(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];Na(s)&&aq(e,t,a,s,i)}}o(GV,"transferConfigToExportResults");function WV(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Pi.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Pi.ChangeIndicator.NoChange,flexList:[],fragments:i};return GV(t,a,e.jsonSchema,r),a}o(WV,"exportPage");var sq=!1,cq={generateListReportSchemaV2(e,t){return IV(e,t)},createListReportConfig(e){return vV(e)},exportListReportPage(e,t,n){return LV(e,t,n)}},zA;function lq(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,JA.join)(__dirname.substring(0,i+13),"dist")}let t=(0,JA.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,XV.readFileSync)(t,"utf8"))}o(lq,"getPersistentListReportNewSchema");function fq(){let e=lq();return function(t){return t===yp?{genericSchema:e,syncRuleProvider:vo}:void 0}}o(fq,"createGenericSchemaInfoProvider");function uq(e){return e===yp?{propertyInstanceProvider:o(function(t){return new vo},"propertyInstanceProvider")}:void 0}o(uq,"getConfigInfo");function KV(e){let{value:t}=Ko(e,[Qo.ManifestSection.generic],"pages");return Array.isArray(t)?[Qo.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Qo.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}o(KV,"getPathForRootPage");function pq(e,t,n){let i=!e.layer||e.layer===Qo.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,bm(r,t)}o(pq,"flexInfoToChangeString");function dq(){let e=fq(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[Qo.ManifestSection.app].id=n,i.flexList.map(pq.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=KV(i);if(!r)return null;let a={appId:((s=i[Qo.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return kV(a,e,n.logger)},createListReportConfig(n){let i=KV(n.manifest);return BV(n,i,uq)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Qo.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=WV(s),u=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:u,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(dq,"createPageHandlerLRGeneric");function ZA(){return sq?(zA=zA||dq(),zA):cq}o(ZA,"getPageHandlerLR");function Sp(e,t){return ZA().generateListReportSchemaV2(e,t)}o(Sp,"generateListReportSchemaV2");function sy(e){return ZA().createListReportConfig(e)}o(sy,"createListReportConfig");function KA(e,t,n=!1){return ZA().exportListReportPage(e,t,n)}o(KA,"exportListReportPage");function ly(e,t){var n,i;return(n=e.component)!=null&&n.name?um(ha((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(ly,"generateId");function gq(e,t,n,i){e.navigation={};let r=QV(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=ly(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(gq,"getPageConfigsAndNavigations");function QV(e,t){var i;let n={};for(let r in e){let a=e[r],s=ly(a,r);if(!s)continue;let l={pageType:ha((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===jn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=sy(p)}else if(l.pageType===jn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=ty(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=Zh(p)}a.pages&&gq(l,a,t,n)}return n}o(QV,"getPagesAndConfigs");var eP=class eP extends us{constructor(t){Xt();let n;t.manifest[jn.ManifestSection.generic]?n=t.manifest[jn.ManifestSection.generic].pages:re(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}}),n||re(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&ly(n[i],i),a=new ps,s=Ft(jn.SchemaType.Application),l=t.appSchemas[s.filename];kn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,QV(n,t),a)}};o(eP,"V2AppProvider");var cy=eP;function Ap(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||re(n,{severity:jn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:jn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=ly(l,s);i[u]=l}if(t===jn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Ap(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Ap,"getPages");var Wc=Z(ae());var tP=class tP extends us{constructor(t){let n={},i=t.manifest[Wc.ManifestSection.ovp],r=new ps,a=Ft(Wc.SchemaType.Application);kn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Wc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Wc.PageTypeV2.OverviewPage,config:ey(l),entitySet:i.globalFilterEntitySet},p=um(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(tP,"V2OvpProvider");var fy=tP;var _=Z(ae()),Kc=require("@sap-ux/vocabularies-types/vocabularies/UI");var mq=["header","filterBar","chart","table"],nP="@UI.LineItem";function iP(e,t,n,i,r){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=yr(e.fullyQualifiedName,Kc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+ft(s.value);s.type==="PropertyPath"&&(l=sm(s,e)),i.properties[u]={$ref:U+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=Hr(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++}),i}o(iP,"addSelectionFields");function hq(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Kc.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(hq,"getVisualFilters");function yq(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(yq,"getPropertiesIndex");function Tq(e,t,n,i){var s,l,u,p,g,m;let r=yq(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let E=n[v];if(!E.template){let b=a.properties[v]={$ref:si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let F=vt(_.DefinitionName.VisualFilter,v,t);(s=E.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${E.visualFilter.valueList}`);let M=(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=M||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(Tq,"addVisualFilters");function vq(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},Q0(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&as(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(vq,"applyCustomFilterFields");function bq(e,t,n,i){var l,u;let r=hq(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={},Tq(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=iP(e,t,a,s),vq(t,s,n)}o(bq,"addFilterBar");function qV(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=ft(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=ci(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(qV,"defineActions");function YV(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"?Ll(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(YV,"findTheRightVisualization");function Eq(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(Eq,"analyzeChartAnnotation");function Sq(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=YV((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(re(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=nP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(Sq,"analyzeSPVforView");function sf(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=YV(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return Sq(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=nP,m=`/${s}/@${Kc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=nP;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}=Eq(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(sf,"analyzeViewAnnotation");function Aq(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];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Pa(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(Aq,"addALPChartView");function Pq(e,t,n,i,r,a){var M,G,$,se,te,le,Re,D;let s=(M=n.entityType)==null?void 0:M.annotations.UI,l=(se=($=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:$[0])==null?void 0:se[_.SchemaTag.annotationPath],{targetAnnotation:u}=sf(l,s,n.serviceAVT,"primary",void 0,n.logger);Aq(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=U+p,qV(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=sf((Re=(le=(te=t==null?void 0:t[0])==null?void 0:te.secondary)==null?void 0:le[0])==null?void 0:Re[_.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 E=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(E)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],E.additionalProperties=!1,E.description="Table (key: secondary)",E.title="Table",g?(delete E.properties,E.$ref=`${U}${_.DefinitionName.ALPTable}`):i||(E.properties={}),E[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,I;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=i.split(_.UIVOCABULARYDOT)[1]),b){let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(Ue,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let $e=s[I].fullyQualifiedName.split("@");E[_.SchemaTag.annotationPath]=`/${$e[0]}/@${$e[1]}`,E[_.SchemaTag.key]="secondary",E[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}yc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${ft(_.DefinitionName.LineItems)}>`;Sa(e,r,n.logger,void 0,F),lo(e,F,_.DefinitionName.CustomActionPosition)}o(Pq,"addALPViews");function xq(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 qV(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${U}${r}`,n}o(xq,"addViewChartDefinitions");function Cq(e,t,n,i,r,a){let s=xq(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(Cq,"addViewChart");function Iq(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),ls(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},ls(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};Tc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(Iq,"addViewLineItems");function Oq(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(Oq,"addTagsToView");function Rq(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(Rq,"getTargetEntityType");function Lq(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Kc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);ls(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),yc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),vc(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}>`;Sa(e.appSchema,i,t.logger,p,u,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${U}${g}`,lo(e.appSchema,u,g)}o(Lq,"addViewCustomExtensions");function Nq(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)Iq(n,t,e,n.targetAnnotation,i),Lq(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)Cq(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(Nq,"addLRViewParts");function Fq(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=Rq(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:E,namespace:b,title:I}=sf(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(G=>G.targetTypeName===b))==null?void 0:l.name);let F=ft(u[_.SchemaTag.key]),M={viewKey:F,appSchema:e,targetAnnotation:E,navPropName:p,targetEntityType:g,title:I,entitySet:u.entitySet};Nq(v,s,M,n,i,m,u),Oq(s,F,b,u)}}o(Fq,"addLRViews");function Dq(e,t,n,i,r,a){var g,m,v,E,b,I,F,M,G,$,se,te,le;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=sf(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Re=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${ft(Re)}`,Ue=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete Ue[_.SchemaTag.isViewNode],ls(Ue.properties.toolBar,_.DefinitionName.ToolBar,D),Ue[_.SchemaTag.annotationPath]=u,Ue.properties.columns={},ls(Ue.properties.columns,D),delete s.properties,ls(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let $e=(m=t.entityType)==null?void 0:m.annotations.UI[Re];$e||re(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Re})});let qe={isObjectPage:!1,appSchema:e,lineItemAnnotation:$e,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Tc(qe);let tn=(v=Re.split("#"))==null?void 0:v[1],$t=tn?`@${Kc.UIAnnotationTerms.LineItem}#${tn}`:`@${Kc.UIAnnotationTerms.LineItem}`;yc(e,i,t.logger,void 0,D,$t),vc(e,D,i,void 0,$t);let St=`${_.DefinitionName.Actions}<${D}>`,qt=$m(e,D,_.DefinitionName.CustomTableAction);Sa(e,i,t.logger,an(qt),St,$t),lo(e,St,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,ls(s.properties.columns,_.DefinitionName.LineItems);let Re=(I=(b=(E=t.entityType)==null?void 0:E.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Re&&!((G=(M=(F=i.options)==null?void 0:F.settings)==null?void 0:M.views)!=null&&G.paths)&&re(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Re,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(D),yc(e,i,t.logger),vc(e,_.DefinitionName.LineItems,i),Re&&!((te=(se=($=i.options)==null?void 0:$.settings)==null?void 0:se.views)!=null&&te.paths)&&(s[_.SchemaTag.annotationPath]=yr((le=t.entityType)==null?void 0:le.fullyQualifiedName,Re.term,Re.qualifier));let Ue=`${_.DefinitionName.Actions}<${ft(_.DefinitionName.LineItems)}>`;Sa(e,i,t.logger,void 0,Ue),lo(e,Ue,_.DefinitionName.CustomActionPosition)}}o(Dq,"adaptTableDefinition");function _q(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(_q,"getDefaultAnnotationPath");function Vq(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=_q(t,n.entityType,n.templateType),l=K0(e,n);bq(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(Dq(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],Fq(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&&(Pq(e,r,n,s,t,l),vc(e,_.DefinitionName.LineItems,t))}o(Vq,"addTableAndViews");function wq(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Pm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${U}${l}`,lo(e,i,l)}o(wq,"addHeaderActions");function Pp(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&oi(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,cs(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return re(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Am(l,n,e.entitySet,i);if(!u)return r;wq(r,u,e.logger),Vq(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,jo(r,mq),r}o(Pp,"generateListReportSchemaV4");var $i=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=Z(ae());var BM=Z(uc()),HM=Z($M()),GM=Z(UP());var WM=Z(ae()),KM=Z(ae());function c9(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(c9,"findElementByXMLPath");function XM(e,t){return e[t]?!1:(e[t]={},!0)}o(XM,"ensureObjectExists");function l9(e,t){let n={},i=an(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(l9,"getPropertiesFromRef");function f9(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=XM(l,i),m=l[i];return Zc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(f9,"traverseDefaultAggregation");function u9(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(u9,"isDefaultAggregationAppliable");function Zc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=l9(s,n.$ref));for(let v in u){let E=u[v],b=typeof E=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&u9(u,p)&&(l=f9(e,t,p)||l,b=!1),!!b)if((m=(g=E.metadata)==null?void 0:g.path)!=null&&m.length){let I=E.metadata.path,F=I.slice(r.length),M=c9(i,F);l=XM(a,v)||l;let G=a[v];l=Zc({fullSchema:e.fullSchema,schema:E,element:M,contextPath:I,config:G,parent:e},t)||l}else l=t(e,E,a,v)||l}return l}o(Zc,"traverseSchema");function Pf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,GM.parse)(e.fileContent),s=(0,HM.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,BM.xml2js)(e.fileContent)}catch(r){re(n,{severity:KM.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:gm(r)}),location:{path:e.dataSourceUri}})}return i}o(Pf,"parseXML");function xf(e){return`${WM.DefinitionName.CustomExtensionFragment}<${e}>`}o(xf,"getCustomExtensionFragmentDefinitionKey");function nT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(nT,"getRootElement");var zP=Z(ae()),JP=Z(ae());var zp=Z(ae());function ws(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(ws,"getAttribute");function QM(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(QM,"getNodeByName");function p9(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(p9,"resolveMetaPath");function KP(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=ws(t,"contextPath")||i.contextPath,a=ws(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let I=p9(a);I.path&&(u=l?I.path:`${u}/${I.path}`,a=I.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let E;if(a){let I=a.split(".");I.length&&(E=I[I.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:E}:void 0}o(KP,"getEntityTypeResolution");function qM(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(qM,"applyAnnotationPath");function d9(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=sf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=Kb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(d9,"getTableLineItemAnnotationData");var YM={"sap.fe.macros.Chart":o(e=>{let t=KP(e);qM(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=KP(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=oi(zp.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]);iP(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=KP(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=oi(zp.UIVOCABULARY,n);if(qM(t,r),t.annotationPath){let u=d9(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:zp.DefinitionName.LineItems,isMacro:!0};cE(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var zM=Z(ae());var g9=new Map([["filterFields","SelectionField::"]]),m9=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Jp={anchor:"anchor",placement:"placement",key:"key"};function h9(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[an(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Jp.anchor in r&&Jp.placement in r}return!1}o(h9,"isCustomExtensionSchema");function JM(e){let t=g9.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=m9.get(e),t&&(n.prefix=t)),n}o(JM,"getAnnotationPrefix");function y9(e,t,n,i){let r=t.properties[n],a=JM(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=ws(l,Jp.key)||n,p=ws(l,Jp.anchor),g=ws(l,Jp.placement)||zM.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(y9,"getExtensionData");function T9(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}=y9(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ba(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(T9,"updatePropertyIndices");function v9(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=ws(e.subElements[s],"key")||r}return r}o(v9,"getCorrectedAnchorEnumKey");function b9(e,t,n,i){var a,s;let r=JM(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;as(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=v9(e,m.const,r,t.properties[m.const]))}}o(b9,"applyEnumsForAnchors");function ZM(e,t,n,i){h9(t,n)&&(i=i||e.name,T9(e,t,i),b9(e,t,n,i))}o(ZM,"handleExtensions");var di=[];for(let e=0;e<256;++e)di.push((e+256).toString(16).slice(1));function ek(e,t=0){return(di[e[t+0]]+di[e[t+1]]+di[e[t+2]]+di[e[t+3]]+"-"+di[e[t+4]]+di[e[t+5]]+"-"+di[e[t+6]]+di[e[t+7]]+"-"+di[e[t+8]]+di[e[t+9]]+"-"+di[e[t+10]]+di[e[t+11]]+di[e[t+12]]+di[e[t+13]]+di[e[t+14]]+di[e[t+15]]).toLowerCase()}o(ek,"unsafeStringify");var tk=require("crypto");var rT=new Uint8Array(256),iT=rT.length;function XP(){return iT>rT.length-16&&((0,tk.randomFillSync)(rT),iT=0),rT.slice(iT,iT+=16)}o(XP,"rng");var nk=require("crypto"),QP={randomUUID:nk.randomUUID};function E9(e,t,n){var r;if(QP.randomUUID&&!t&&!e)return QP.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??XP();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 ek(i)}o(E9,"v4");var qP=E9;var YP="sap.fe.macros",S9=["id","key","title","text","label","header"];function ik(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(ik,"getElementName");function A9(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(A9,"isElementWithNamespace");function P9(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(P9,"getDependencies");function x9(e,t){let n="",i=e.attributes||[];for(let r of S9){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(x9,"getViewNodeDescription");function C9(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(C9,"findAvailableName");function rk(e,t){if(e.properties={},e.$ref){let n=an(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(rk,"prepareSchemaProperties");function I9(e,t,n){t.properties||rk(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(I9,"handleAttributes");function O9(e){e.type===JP.MacrosPropertyType.Control&&(e.internalId=qP())}o(O9,"applyIdForMacros");function R9(e,t,n){var i,r;try{(r=(i=YM)[e])==null||r.call(i,t)}catch{re(n,{severity:zP.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(R9,"callAnnotationHandler");function L9(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===JP.MacrosPropertyType.Control&&(e.controlName=n)}o(L9,"updateMetadataByReference");function N9(e,t,n,i){var v,E,b,I,F;let r=n.schema;t.properties||rk(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(E=a==null?void 0:a.metadata)==null?void 0:E.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?C9(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(an(a.$ref)):g=[`${YP}.${i}`,`${YP}.table.${i}`,`${YP}.filterBar.${i}`];let m=!1;for(let M of g){let G=(F=r.definitions)==null?void 0:F[M];if(typeof G!="object")continue;L9(u,G,M);let $=x9(e,i),se={$ref:dm(M),description:$,propertyIndex:n.index,metadata:u};I9(e,se,r),t.properties[p]=se,m=!0,R9(M,{...n,node:e,schema:se,rootSchema:n.schema},n.logger);break}if(O9(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let M={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=M}return p}o(N9,"addControlToSchema");function ok(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)}ok(r,t)}}o(ok,"populateUsedDefinitionKeys");function F9(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(F9,"isElementAddableToSchema");function D9(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!QM(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(D9,"getDefaultAggregation");function _9(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,ak(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:ik(s),index:a}]},i)}}o(_9,"handleSubElementsOfXMLNode");function ak(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[an(t.$ref)]:t;if(A9(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let E=(v=t.metadata)==null?void 0:v.defaultAggregation;E&&F9(e,t.properties[E])&&(t=t.properties[E]);let b=e.name.split(":"),I=N9(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];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),ok(t,i));let p=D9(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),_9(l,t,n,i),r.push({node:e,schema:t});for(let E of r)ZM(E.node,E.schema,n.schema,E.name)}o(ak,"handleXMLNode");function V9(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(V9,"getMacrosPrefixes");function el(e,t,n,i){let r=Pf(t.file,!0,i),a=[];if(!r)return;Xt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){re(i,{severity:zP.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=P9(l),p=V9(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],E=!g[v.name];g[v.name]=!0,ak(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:E,path:[{name:ik(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(el,"generateMacrosSchemaDefinition");function sk(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&&sk(i.subSections,t)}}o(sk,"populateTemplates");function ck(e,t,n,i){var s,l,u;let r=bc(n.manifest,i),a=[];sk(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=xf(p);e.definitions[m]=g;let v=Ec(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:E={},definitions:b={}}=el(t,v,n.serviceAVT,n.logger)||{};g.properties=E;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o(ck,"resolveFragments");var w9=["header","layout","sections","footer"],M9=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],ex="Custom Action";function dk(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=Mm(t.item,e),p=Br(t.item),m=t.item.$Type===$i.UIAnnotationTypes.DataFieldForActionGroup,v=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,E=t.item.fullyQualifiedName.replace(`@${$i.UIAnnotationTerms.Identification}`,`/@${$i.UIAnnotationTerms.Identification}`),b=`${v}<${ft(p)}>`,I=i.definitions[b]={type:"object",$ref:`${U}${v}`,description:ci(t.item,r)};if(I[R.SchemaTag.isViewNode]=!0,I[R.SchemaTag.dataType]=Hr(t.item),I[R.SchemaTag.propertyIndex]=s,m){I.properties={},Pa(I,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let F=(t.item.Actions??[]).map((M,G)=>({item:M,index:G}));ZP(F,e,i,r,I,R.ActionType.Annotation)}else I[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&I[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),I[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});u&&(i.definitions[b][R.SchemaTag.target]=u),I[R.SchemaTag.actionType]=n,I[R.SchemaTag.annotationPath]=`/${E}`,a.properties[p]={$ref:`${U}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(dk,"addSingleHeaderActionV4");function lk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${U}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(lk,"addStandardHeaderAction");function fk(e,t,n,i,r,a){let s=Br(e.item),l=ci(e.item,n),u=ft(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${$i.UIAnnotationTerms.Identification}`,`/@${$i.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${U}${R.DefinitionName.FooterActionV4}`,description:l};g[R.SchemaTag.isViewNode]=!0,g[R.SchemaTag.actionType]=t,g[R.SchemaTag.propertyIndex]=a,g[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${U}${u}`}}o(fk,"addSingleFooterAction");function k9(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===$i.UIAnnotationTypes.DataFieldForAction||i.$Type===$i.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===$i.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(M9.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(k9,"groupByCriticality");function j9(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&&(dk(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(j9,"addCopyAction");function ZP(e,t,n,i,r,a,s=0){let l=s;for(let u of e)dk(t,u,a,n,i,r,l),l++}o(ZP,"addGroupedHeaderActions");function U9(e){let t="RelatedApps",n=e.properties[t]={$ref:`${U}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(U9,"addRelatedAppsButton");function uk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(uk,"setAnnotationPathFromEntitySetOrEntityType");function $9(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?k9(n):{};if(ZP(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=o_(r.entitySet),g=a_(r.entitySet);if(_m(r.entitySet)&&g){let m=lk("Edit",t,i,s.length);uk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=lk("Delete",t,i,s.length+1);uk(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;j9(l,r.serviceAVT,t,e,i,u),ZP(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,u),gk(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),U9(i)}o($9,"addHeaderActionCallBackV4");function B9(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===$i.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];fk(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];fk(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(B9,"addFooterActionCallBackV4");function H9(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${$i.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${R.DefinitionName.CustomColumnOP}<${n}>`;yc(e,t,r,u,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let g=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${U}${g}`,vc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&oE(m,l)}o(H9,"addCustomColumnsOP");function G9(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${$i.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=ex;let u=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${ft(n)}>`;Sa(e,t,r,u,p,i);let g=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${U}${m}`,lo(e,p,m)}o(G9,"addTableCustomActionsOP");function gk(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=ex;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Pm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${U}${s}`,lo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${U}${n}`})}o(gk,"addHeaderFooterCustomActionsOP");function W9(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=ex;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,u=`${R.DefinitionName.SectionActions}<${ft(n)}>`;Sa(e,t,r,l,u,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${U}${p}`,lo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${U}${a}`})}o(W9,"addFormCustomActionsOP");function K9(e,t,n,i,r,a,s){let l=Ac(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=vt(R.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${U}${l}`},g.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=si(R.DefinitionName.QuickVariantSelectionV4OP,t);let m=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=si(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),cs(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Tc(v,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),H9(n,a,l,t,s),G9(n,a,l,t,s),g}o(K9,"handleLineItem");function mk(e,t,n,i,r,a,s){s&&oT(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);Ta(e,l,Ac(t)),is(e,l,Ac(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.$ref=si(R.DefinitionName.ObjectPageTable,t);let u=K9(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(mk,"handleSectionTable");function X9(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:si(l,n)};let u=vt(l,n,r);e.ID||(u.properties={}),Ta(e,u,n),is(e,u,n),u[R.SchemaTag.annotationPath]=e.annotationPath,u[R.SchemaTag.target]=e.namespace,u[R.SchemaTag.isViewNode]=!0;let p=wm(a,e,u,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let g=Ac(n);vt(R.DefinitionName.CustomFormActionOP,p,r),W9(r,t,p,g,s)}}o(X9,"handleFormIdentification");function pk(e,t,n,i,r){n.properties[t]={$ref:`${U}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);Rl(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=Pc(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(pk,"handleHeaderFacet");function Q9(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=ci(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:si(R.DefinitionName.ObjectPageToolBarAction,g),description:u};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let v=vt(R.DefinitionName.ObjectPageToolBarAction,ft(g),n);v[R.SchemaTag.annotationPath]=Bm(l),v[R.SchemaTag.dataType]=Hr(l),v.properties={},a++})}return r}o(Q9,"handleChartActions");function q9(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=Bm(e),r[R.SchemaTag.dataType]=Pc(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=si(R.DefinitionName.ObjectPageToolBarActions,t);let s=Q9(e,t,n,i);return{chart:r,chartActions:s}}o(q9,"handleChart");function hk(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,u=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&oT(i,t,l);let p=Ru(u,t),g=vt(l,p,n,!1);if(Rl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[R.SchemaTag.annotationPath]=Bm(e),g.properties.chart.$ref=si(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=q9(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:v}}o(hk,"handleSectionChart");function Y9(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${wE(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(Y9,"getVisualizationKeyAndType");function z9(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(z9,"getTargetFromNavigation");function J9(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=Y9(!!r,a,n),p=r?a:z9(n,s,u),g=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(J9,"getVisualizationProps");function oT(e,t,n,i){e.properties[t]={$ref:si(n,i||t)}}o(oT,"addPropertyRef");function yk(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(yk,"getSectionPropertyRef");function Z9(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=yk(t,r);oT(i,l,R.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=mk(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,Rl(e,p,t),delete p[R.SchemaTag.isViewNode],g[R.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[R.SchemaTag.target]=r.namespace}o(Z9,"addPVLineItemSection");function ez(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=yk(t,r);oT(i,l,s,u);let{parentChartRef:p}=hk(r.target,u,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(Ta(e,p,t),v0(e,p)):Rl(e,p,t)}o(ez,"addPVChartSection");function tz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){re(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=J9(e,t,a),u=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?ez(e,t,n,i,l,u):l.type.startsWith(R.Visualization.LineItem)&&Z9(e,t,n,i,l,a,s))}o(tz,"handleSectionPresentationVariant");function nz(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o(nz,"containsCollectionFacet");function iz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};gc(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(iz,"createCustomSubSectionReference");function rz(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),v=vt(R.DefinitionName.CustomSectionActionOP,p,e),E=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${U}${E}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${U}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let I=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${U}${I}`,v[R.SchemaTag.isViewNode]=!0,Sa(e,t,i,b,E,p),lo(e,E,I)}}o(rz,"applyCustomActionsToCustomSections");function tx(e,t,n,i,r,a,s){var m,v,E,b,I;let l=!1,u;a&&s?(l=!nz(a),u=iz(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${U}${u}`},X0(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&as(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];F.properties={},rz(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(I=(b=(E=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:E.body)==null?void 0:b.sections)==null?void 0:I[s],M=F&&"subSections"in F?F.subSections:{};for(let G=g.oneOf.length-1;G>=0;G--){let $=g.oneOf[G];M[$.const]||($.hidden=!0)}}}o(tx,"applyCustomSections");function oz(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Mo(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[R.SchemaTag.annotationPath]=e.annotationPath,g[R.SchemaTag.target]=e.namespace,g[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],g[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)nx(a,e.facets,v,g,n,r,s,m);u&&tx(g,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(oz,"handleCollection");function nx(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${Ac(n)}>`;switch(u.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{tz(u,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{oz(u,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let g=t[n];mk(u,n,r,g,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{X9(u,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{pk(u,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?pk(u,n,i,r,p):a===R.SectionType.Section&&hk(u,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{Lu(u,n,i,r,a);break}default:i.properties[n]=Mo(r,u,n)}}o(nx,"addSection");function az(e,t,n){let i=fm(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)nx(e,i,a,r,t,R.SectionType.Section,n);tx(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(az,"addSections");function sz(e,t,n,i){let r=lm(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)nx(e,r,s,a,t,R.SectionType.HeaderSection,i);tx(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(sz,"addHeaderSections");function cz(e,t,n){let i=e.entityType;Um(t,i),jm(t,i,e,$9,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${$i.UIAnnotationTerms.HeaderFacets}`),sz(e,t,i,n)}o(cz,"addHeader");function Zp(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${U}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return re(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return re(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=Am(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(cz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${$i.UIAnnotationTerms.Facets}`),gc(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{ck(r,i,e,l.id)}catch(u){re(e.logger,{severity:R.LogSeverity.Error,message:u})}}az(e,r,l),km(r,e,R.FioriElementsVersion.v4,B9),gk(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],jo(r,w9),r}o(Zp,"generateObjectPageSchemaV4");function ix(e,t){return JSON.parse(JSON.stringify(t))}o(ix,"generateFreestyleSchemaV4");var Jr=Z(ae());function rx(e,t,n,i,r,a,s,l,u){let p=Ur(n,r),{entitySet:g,entityType:m}=tl(p,s,t,r),v={templateType:Jr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Zp(v,e,s,l)}o(rx,"generateObjectPageInterfaceV4");function aT(e,t,n,i,r,a,s){Xt();let l=Ur(i,r),{entitySet:u,entityType:p}=tl(l,s,n,r),g={templateType:e,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Jr.TemplateType.ListReportObjectPageV4?Jr.v4.FE_TEMPLATE_V4_LIST_REPORT:Jr.v4.FE_TEMPLATE_V4_ALP;return Pp(g,t,m,s)}o(aT,"generateListReportInterfaceV4");function ox(e,t,n,i,r,a){let s=Ur(n,a),l={templateType:e,fioriElementsVersion:Jr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return ix(l,t)}o(ox,"generateFreestyleInterfaceV4");function ax(e,t,n,i,r,a,s){let l={};if(gc(a,Jr.Features.BuildingBlocks)){let u=Ur(r,s),p=Uo(i||[],t,n,s);l=p!=null&&p.file.fileContent?el(e,p,u,s):{}}return l}o(ax,"generateFPMCustomPageInterfaceV4");var il=require("@sap-ux/vocabularies-types/vocabularies/UI"),Sk=Z(ae());var nl=Z(ae());var bk=new Map([[nl.PageTypeV2.ListReport,nl.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[nl.PageTypeV2.ObjectPage,nl.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Tk=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"),vk=o(e=>{var t;for(let[n,i]of bk)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"),lz=o((e,t)=>{let n="";for(let[r,a]of bk)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Ek={manifest:{path:o(()=>`sap.ui5/extends/extensions/${nl.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=vk(n);i&&(t[i]={},Tk(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=lz(s,i);e[l]||(e[l]={}),Tk(r[s],e[l])}for(let s in e){let l=vk(s);l&&!r[l]&&delete e[s]}},"export")}};var pt=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),lT=o(e=>pt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),fT=o(e=>pt(e)+"/content/header","getSettingsPathForHeaderOP"),fz=o(e=>pt(e)+"/content/footer","getSettingsPathForFooterOP"),eo=o(e=>pt(e)+"/controlConfiguration","getControlConfigurationPath"),uT=o((e,t,n)=>eo(e)+`/@${il.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),pT=o(e=>eo(e)+`/@${il.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ms=o((e,t,n,i)=>eo(e)+`/@${il.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),sx=o((e,t,n,i)=>pT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Ir=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),ir=o((e,t,n,i,r)=>r?Ir(e,t,n,i,r):eo(e)+`/@${il.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),dT=o((e,t,n,i,r)=>ir(e,t,n,i,r)+Sk.QUICKVARPATH,"getQuickVariantPath"),rr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Bi=o((e,t,n,i,r)=>r?rr(e,t,n,i,r):eo(e)+`/@${il.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),to=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?eo(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Or=o((e,t,n,i,r)=>r?to(e,t,n,i,r):eo(e)+`/@${il.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),or=o((e,t,n,i)=>eo(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Hn=o((e,t,n,i)=>eo(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>fT(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),gT=o((e,t,n,i)=>pt(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),Ao=o((e,t,n,i)=>fz(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),wn=o((e,t,n)=>eo(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),If=o((e,t,n,i)=>{let r=pt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),ks=o((e,t,n,i)=>pt(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Rr=o((e,t,n,i)=>{let r=pt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),Of=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=pt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),cT=class cT{};o(cT,"ApplicationV4"),h([kt("settings")],cT.prototype,"settings",2);var sT=cT,Zr=class Zr{};o(Zr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Zr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Zr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Zr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],Zr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],Zr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],Zr.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Zr.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],Zr.prototype,"path",2),h([y(Ek)],Zr.prototype,"controllerExtensions",2);var Cf=Zr;var he=Z(ae());var sI={};lc(sI,{ALPChart:()=>mC,ALPTable:()=>Mf,ActionAfterExecutionConfiguration:()=>jC,ActionAfterExecutionConfigurationFooter:()=>Ox,ActionAfterExecutionConfigurationForm:()=>Fx,ActionAfterExecutionConfigurationOP:()=>vd,ActionAfterExecutionConfigurationObjectPageHeader:()=>Gx,ActionAfterExecutionConfigurationToolBarLR:()=>YC,Actions:()=>KC,AdditionalSemanticObject:()=>MC,CommonHeaderFacetSettings:()=>Xs,CommonViewSettings:()=>wf,CustomActionPosition:()=>tI,CustomActionPositionOP:()=>FC,CustomFilterField:()=>ux,CustomFilterFieldPosition:()=>fx,CustomFooterActionOP:()=>Nx,CustomFooterActionPositionOP:()=>Lx,CustomFormActionOP:()=>Ux,CustomHeaderAction:()=>hx,CustomHeaderActionOP:()=>Qx,CustomHeaderActionPosition:()=>id,CustomHeaderActionPositionOP:()=>Xx,CustomSectionActionOP:()=>Ax,CustomSectionActionPositionOP:()=>Sx,CustomTableAction:()=>nI,CustomTableActionOP:()=>DC,FilterBar:()=>cx,FlexSettings:()=>zx,FooterActionV4:()=>Rx,FormAction:()=>Dx,Header:()=>dx,HeaderActions:()=>px,HeaderSections:()=>iC,LRChartView:()=>hC,LRTableView:()=>yC,MultiTableModeV4:()=>vC,ObjectPageCustomHeaderSectionFlexSettings:()=>yx,ObjectPageCustomHeaderSectionFragment:()=>Tx,ObjectPageCustomSectionActions:()=>vx,ObjectPageCustomSectionFragment:()=>Lf,ObjectPageCustomSubSectionFragment:()=>bx,ObjectPageFooter:()=>xx,ObjectPageFooterActions:()=>Px,ObjectPageForm:()=>wx,ObjectPageFormActionGroup:()=>_x,ObjectPageFormActions:()=>Vx,ObjectPageHeader:()=>Bx,ObjectPageHeaderAction:()=>Wx,ObjectPageHeaderActionGroup:()=>Kx,ObjectPageHeaderActions:()=>$x,ObjectPageHeaderSectionAddress:()=>nC,ObjectPageHeaderSectionChart:()=>Zx,ObjectPageHeaderSectionContact:()=>tC,ObjectPageHeaderSectionDataPoint:()=>eC,ObjectPageHeaderSectionForm:()=>Jx,ObjectPageLayout:()=>fC,ObjectPageTable:()=>md,ObjectPageTableColumn:()=>$f,ObjectPageTableColumnAction:()=>CC,ObjectPageToolBarAction:()=>LC,ObjectPageToolBarActionGroup:()=>NC,ObjectPageToolBarActions:()=>_C,PersonalizationType:()=>pC,PersonalizationTypeOP:()=>PC,Position:()=>BC,PositionOP:()=>IC,QuickVariantSelectionV4:()=>gC,QuickVariantSelectionV4OP:()=>xC,RelatedApps:()=>kC,Table:()=>bC,TableColumn:()=>OT,TableColumnAction:()=>UC,TableCreationModeOP:()=>AC,TableCustomColumn:()=>GC,TableCustomColumnOP:()=>OC,TableSettings:()=>ET,TableViewExtension:()=>TC,TableViewSettings:()=>pd,ToolBar:()=>XC,ToolBarAction:()=>zC,ToolBarActionGroup:()=>JC,ViewCustomActionPosition:()=>iI,ViewPersonalizationType:()=>dC,ViewPosition:()=>HC,ViewTableColumn:()=>RT,ViewTableColumnAction:()=>$C,ViewTableCustomAction:()=>rI,ViewTableCustomColumn:()=>WC,ViewToolBarAction:()=>eI,ViewToolBarActionGroup:()=>ZC,VisualFilter:()=>lx,checkViewOrder:()=>EC,deleteCreationModeProperty:()=>gd,deletePersonalizationProperty:()=>Io,exportCreationModeProperty:()=>dd,exportPersonalization:()=>xT,exportPersonalizationProperty:()=>Co});function uz(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(uz,"exportVisualFilterValueList");var Rf=class Rf{};o(Rf,"FilterBar"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.99.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Rf.prototype,"hideFilterBar",2),h([y({manifest:{path:pT}}),x({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rf.prototype,"initialLayout",2),h([y({manifest:{path:pT}}),x({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rf.prototype,"layout",2);var cx=Rf,ed=class ed{};o(ed,"VisualFilter"),h([y({manifest:{path:sx}}),x({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],ed.prototype,"availability",2),h([y({manifest:{path:sx,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:uz,key:"visualFilter"}}),x({since:"1.93.0"})],ed.prototype,"visualFilterValueList",2);var lx=ed,td=class td{};o(td,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ms(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ms(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"placement",2);var fx=td,js=class js{};o(js,"CustomFilterField"),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"label",2),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"property",2),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"template",2),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"required",2),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"position",2);var ux=js;var gx=class gx{};o(gx,"HeaderActions");var px=gx,mx=class mx{};o(mx,"Header");var dx=mx;var nd=class nd{};o(nd,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"placement",2);var id=nd,Us=class Us{};o(Us,"CustomHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Us.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Us.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Us.prototype,"press",2),h([y({manifest:{path:gi},generate:Jn}),x({since:"1.84.0"})],Us.prototype,"visible",2),h([y({manifest:{path:gi},generate:Jn}),x({since:"1.84.0"})],Us.prototype,"enabled",2);var hx=Us;var mT=class mT{};o(mT,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Rr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],mT.prototype,"designtime",2);var yx=mT,ar=class ar{};o(ar,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Rr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],ar.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Rr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],ar.prototype,"relativePosition",2),h([y({manifest:{path:Rr},generate:ai}),x({since:"1.84.0"})],ar.prototype,"visible",2),h([y({manifest:{path:Rr}}),x({since:"1.77.0"})],ar.prototype,"title",2),h([y({manifest:{path:Rr}}),x({since:"1.77.0"})],ar.prototype,"subTitle",2),h([y({manifest:{path:Rr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],ar.prototype,"fragmentName",2),h([y({manifest:{path:Rr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],ar.prototype,"templateEdit",2),h([y({manifest:{path:Rr}}),x({since:"1.81.0"})],ar.prototype,"stashed",2),h([y({manifest:{path:Rr}}),x({since:"1.81.0"})],ar.prototype,"flexSettings",2),h([y({manifest:{path:Rr}}),x({since:"1.81.0"})],ar.prototype,"requestGroupId",2),h([y({manifest:{path:Rr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],ar.prototype,"controls",2);var Tx=ar;var Ex=class Ex{};o(Ex,"ObjectPageCustomSectionActions");var vx=Ex,$s=class $s{};o($s,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>If(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],$s.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>If(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],$s.prototype,"relativePosition",2),h([y({manifest:{path:If}}),x({since:"1.77.0"})],$s.prototype,"title",2),h([y({manifest:{path:If,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],$s.prototype,"fragmentName",2),h([y({manifest:{path:If,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],$s.prototype,"controls",2);var Lf=$s,Bs=class Bs extends Lf{};o(Bs,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${Of.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Bs.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${Of.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Bs.prototype,"relativePosition",2),h([y({manifest:{path:Of}}),x({since:"1.77.0"})],Bs.prototype,"title",2),h([y({manifest:{path:Of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Bs.prototype,"fragmentName",2),h([y({manifest:{path:Of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Bs.prototype,"controls",2);var bx=Bs;var rd=class rd{};o(rd,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"placement",2);var Sx=rd,Hs=class Hs{};o(Hs,"CustomSectionActionOP"),h([y({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"text",2),h([y({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"position",2),h([y({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"press",2),h([y({manifest:{path:ks},generate:ai}),x({since:"1.84.0"})],Hs.prototype,"visible",2),h([y({manifest:{path:ks},generate:ai}),x({since:"1.84.0"})],Hs.prototype,"enabled",2);var Ax=Hs;var Cx=class Cx{};o(Cx,"ObjectPageFooterActions");var Px=Cx,Ix=class Ix{};o(Ix,"ObjectPageFooter");var xx=Ix;var od=class od{};o(od,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>Ao(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],od.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Ao(t,n,i,r)+"/afterExecution","path")}})],od.prototype,"enableAutoScroll",2);var Ox=od,hT=class hT{};o(hT,"FooterActionV4"),h([y({manifest:{path:Ao}}),x({since:"1.84.0"})],hT.prototype,"afterExecution",2);var Rx=hT,ad=class ad{};o(ad,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ao(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ad.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ao(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ad.prototype,"placement",2);var Lx=ad,Gs=class Gs{};o(Gs,"CustomFooterActionOP"),h([y({manifest:{path:Ao}}),x({since:"1.84.0"})],Gs.prototype,"text",2),h([y({manifest:{path:Ao}}),x({since:"1.84.0"})],Gs.prototype,"position",2),h([y({manifest:{path:Ao}}),x({since:"1.84.0"})],Gs.prototype,"press",2),h([y({manifest:{path:Ao},generate:ai}),x({since:"1.84.0"})],Gs.prototype,"visible",2),h([y({manifest:{path:Ao},generate:ai}),x({since:"1.84.0"})],Gs.prototype,"enabled",2);var Nx=Gs;var sd=class sd{};o(sd,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],sd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}})],sd.prototype,"enableAutoScroll",2);var Fx=sd,yT=class yT{};o(yT,"FormAction"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],yT.prototype,"afterExecution",2);var Dx=yT,Mx=class Mx{};o(Mx,"ObjectPageFormActionGroup");var _x=Mx,kx=class kx{};o(kx,"ObjectPageFormActions");var Vx=kx,jx=class jx{};o(jx,"ObjectPageForm");var wx=jx;var Ws=class Ws{};o(Ws,"CustomFormActionOP"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Ws.prototype,"text",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Ws.prototype,"position",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Ws.prototype,"press",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Ws.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Ws.prototype,"enabled",2);var Ux=Ws;var Hx=class Hx{};o(Hx,"ObjectPageHeaderActions");var $x=Hx,Nf=class Nf{};o(Nf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Nf.prototype,"editableHeaderContent",2),h([y({manifest:{path:fT}}),x({since:"1.84.0"})],Nf.prototype,"visible",2),h([y({manifest:{path:fT}}),x({since:"1.84.0"})],Nf.prototype,"anchorBarVisible",2);var Bx=Nf;var cd=class cd{};o(cd,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],cd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],cd.prototype,"enableAutoScroll",2);var Gx=cd,TT=class TT{};o(TT,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],TT.prototype,"afterExecution",2);var Wx=TT,qx=class qx{};o(qx,"ObjectPageHeaderActionGroup");var Kx=qx,Yx=class Yx extends id{};o(Yx,"CustomHeaderActionPositionOP");var Xx=Yx,Ks=class Ks{};o(Ks,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Ks.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Ks.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Ks.prototype,"press",2),h([y({manifest:{path:gi},generate:ai}),x({since:"1.84.0"})],Ks.prototype,"visible",2),h([y({manifest:{path:gi},generate:ai}),x({since:"1.84.0"})],Ks.prototype,"enabled",2);var Qx=Ks;var vT=class vT{};o(vT,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>uT(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),Ne("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],vT.prototype,"designtime",2);var zx=vT,ld=class ld{};o(ld,"CommonHeaderFacetSettings"),h([y({manifest:{path:uT}}),x({since:"1.81.0"})],ld.prototype,"stashed",2),h([y({manifest:{path:uT}}),x({since:"1.81.0"})],ld.prototype,"flexSettings",2);var Xs=ld,rC=class rC extends Xs{};o(rC,"ObjectPageHeaderSectionForm");var Jx=rC,oC=class oC extends Xs{};o(oC,"ObjectPageHeaderSectionChart");var Zx=oC,aC=class aC extends Xs{};o(aC,"ObjectPageHeaderSectionDataPoint");var eC=aC,sC=class sC extends Xs{};o(sC,"ObjectPageHeaderSectionContact");var tC=sC,cC=class cC extends Xs{};o(cC,"ObjectPageHeaderSectionAddress");var nC=cC,lC=class lC{};o(lC,"HeaderSections");var iC=lC;var bT=class bT{};o(bT,"ObjectPageLayout"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],bT.prototype,"sectionLayout",2);var fC=bT;var CT=Z(ae());var uC=Z(ae());var pz=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 xo(e,t,n,i,r,a){let s=lT(e),l=pz(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[uC.SchemaTag.key]===(a==null?void 0:a.key)||g[uC.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(xo,"getSettingsPathForLRViewsPath");function dz(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(dz,"fillNewlyOrderedViews");function EC(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=dz(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(EC,"checkViewOrder");function xT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(xT,"exportPersonalization");function Co(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(Co,"exportPersonalizationProperty");function Io(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(Io,"deletePersonalizationProperty");function SC(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(SC,"deleteView");function dd(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(dd,"exportCreationModeProperty");function gd(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(gd,"deleteCreationModeProperty");function Ak(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Ak,"importPersonalization");function Pk(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Pk,"determineIndexOfView");var Ff=class Ff{};o(Ff,"PersonalizationType"),h([y({manifest:{path:ir,export:Co,delete:Io}})],Ff.prototype,"column",2),h([y({manifest:{path:ir,export:Co,delete:Io}})],Ff.prototype,"sort",2),h([y({manifest:{path:ir,export:Co,delete:Io}})],Ff.prototype,"filter",2);var pC=Ff,Df=class Df{};o(Df,"ViewPersonalizationType"),h([y({manifest:{path:Ir,export:Co,delete:Io}})],Df.prototype,"column",2),h([y({manifest:{path:Ir,export:Co,delete:Io}})],Df.prototype,"sort",2),h([y({manifest:{path:ir,export:Co,delete:Io}})],Df.prototype,"filter",2);var dC=Df,_f=class _f{};o(_f,"QuickVariantSelectionV4"),h([y({manifest:{path:dT}})],_f.prototype,"paths",2),h([y({manifest:{path:dT}})],_f.prototype,"hideTableTitle",2),h([y({manifest:{path:dT}})],_f.prototype,"showCounts",2);var gC=_f,Po=class Po{};o(Po,"TableSettings"),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Po.prototype,"type",2),h([y({manifest:{path:ir,import:Ak,export:xT}}),x({since:"1.86.0"})],Po.prototype,"personalization",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Po.prototype,"selectionMode",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],Po.prototype,"selectAll",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],Po.prototype,"selectionLimit",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Po.prototype,"enableExport",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],Po.prototype,"quickVariantSelection",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Po.prototype,"condensedTableLayout",2);var ET=Po,ST=class ST{};o(ST,"ALPChart"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/primary/0","path"),delete:SC}})],ST.prototype,"annotationPath",2);var mC=ST,rl=class rl{};o(rl,"CommonViewSettings"),h([y({manifest:{path:xo,delete:mc}})],rl.prototype,"key",2),h([y({manifest:{path:lT,import:Pk,export:o((t,n)=>{EC(t,n)},"export"),delete:SC}})],rl.prototype,"index",2),h([y({manifest:{path:xo,delete:mc}})],rl.prototype,"annotationPath",2),h([y({manifest:{path:xo}})],rl.prototype,"entitySet",2);var wf=rl,no=class no extends wf{};o(no,"TableViewSettings"),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],no.prototype,"type",2),h([y({manifest:{path:Ir,import:Ak}}),x({since:"1.86.0"})],no.prototype,"personalization",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],no.prototype,"selectionMode",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],no.prototype,"selectAll",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],no.prototype,"selectionLimit",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],no.prototype,"enableExport",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],no.prototype,"quickVariantSelection",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],no.prototype,"condensedTableLayout",2),h([y({manifest:{path:Ir}}),x({since:"1.117.0"}),Ne("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],no.prototype,"hierarchyQualifier",2);var pd=no;function gz(e){return pd}o(gz,"getTableViewSettings");var fd=class fd extends pd{};o(fd,"ALPTable"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/secondary/0","path"),delete:mc}})],fd.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],fd.prototype,"initialLoad",2);var Mf=fd,AT=class AT extends wf{};o(AT,"LRChartView"),h([y({manifest:{path:xo},generate:Jn})],AT.prototype,"visible",2);var hC=AT,Vf=class Vf extends gz(wf){};o(Vf,"LRTableView"),h([y({manifest:{path:xo}})],Vf.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:xo}})],Vf.prototype,"entitySet",2),h([y({manifest:{path:xo},generate:Jn})],Vf.prototype,"visible",2);var yC=Vf,Qs=class Qs{};o(Qs,"TableViewExtension"),h([y({manifest:{path:xo}})],Qs.prototype,"key",2),h([y({manifest:{path:lT,import:Pk,export:o((t,n)=>{EC(t,n)},"export"),delete:SC}})],Qs.prototype,"index",2),h([y({manifest:{path:xo}})],Qs.prototype,"label",2),h([y({manifest:{path:xo}})],Qs.prototype,"template",2),h([y({manifest:{path:xo},generate:Jn})],Qs.prototype,"visible",2);var TC=Qs,PT=class PT{};o(PT,"MultiTableModeV4"),h([y({manifest:{path:o(t=>pt(t)+"/views","path")}})],PT.prototype,"showCounts",2);var vC=PT,ud=class ud extends ET{};o(ud,"Table"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/secondary/0","path"),delete:mc}})],ud.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],ud.prototype,"initialLoad",2);var bC=ud;var kf=class kf{};o(kf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{dd(t,n,i)},"export"),delete:o((t,n,i,r)=>{gd(t,r)},"delete")}})],kf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{dd(t,n,i)},"export"),delete:o((t,n,i,r)=>{gd(t,r)},"delete")}})],kf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{dd(t,n,i)},"export"),delete:o((t,n,i,r)=>{gd(t,r)},"delete")}})],kf.prototype,"inlineCreationRowsHiddenInEditMode",2);var AC=kf,jf=class jf{};o(jf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Co,delete:Io}})],jf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Co,delete:Io}})],jf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Co,delete:Io}})],jf.prototype,"filter",2);var PC=jf,Uf=class Uf{};o(Uf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+CT.QUICKVARPATH,"path")}})],Uf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+CT.QUICKVARPATH,"path")}})],Uf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+CT.QUICKVARPATH,"path")}})],Uf.prototype,"showCounts",2);var xC=Uf,sr=class sr{};o(sr,"ObjectPageTable"),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"type",2),h([y({manifest:{path:wn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],sr.prototype,"creationMode",2),h([y({manifest:{path:wn,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:xT}}),x({since:"1.86.0"})],sr.prototype,"personalization",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"selectionMode",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"selectAll",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"selectionLimit",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],sr.prototype,"enableExport",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"quickVariantSelection",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],sr.prototype,"condensedTableLayout",2),h([y({manifest:{path:wn}}),x({since:"1.86.0"})],sr.prototype,"enableFullScreen",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"enablePaste",2);var md=sr;var hd=class hd{};o(hd,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>or(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],hd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>or(t,n,i,r)+"/afterExecution","path")}})],hd.prototype,"enableAutoScroll",2);var vd=hd,yd=class yd{};o(yd,"ObjectPageTableColumn"),h([y({manifest:{path:or}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],yd.prototype,"width",2),h([y({manifest:{path:or}}),x({since:"1.85.0"})],yd.prototype,"availability",2);var $f=yd,RC=class RC extends $f{};o(RC,"ObjectPageTableColumnAction");var CC=RC,Td=class Td{};o(Td,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>or(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Td.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>or(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Td.prototype,"placement",2);var IC=Td,Zo=class Zo{};o(Zo,"TableCustomColumnOP"),h([y({manifest:{path:or}}),x({since:"1.84.0"})],Zo.prototype,"position",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],Zo.prototype,"header",2),h([y({manifest:{path:or}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Zo.prototype,"width",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],Zo.prototype,"template",2),h([y({manifest:{path:or}}),x({since:"1.86.0"})],Zo.prototype,"horizontalAlign",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],Zo.prototype,"availability",2),h([y({manifest:{path:or}}),x({since:"1.85.0"})],Zo.prototype,"properties",2);var OC=Zo;var IT=class IT{};o(IT,"ObjectPageToolBarAction"),h([y({manifest:{path:Hn}})],IT.prototype,"enableOnSelect",2);var LC=IT,VC=class VC{};o(VC,"ObjectPageToolBarActionGroup");var NC=VC,bd=class bd{};o(bd,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],bd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],bd.prototype,"placement",2);var FC=bd,$a=class $a{};o($a,"CustomTableActionOP"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],$a.prototype,"text",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],$a.prototype,"position",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],$a.prototype,"press",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],$a.prototype,"requiresSelection",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],$a.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],$a.prototype,"enabled",2);var DC=$a,wC=class wC{};o(wC,"ObjectPageToolBarActions");var _C=wC;var Bf=class Bf{};o(Bf,"AdditionalSemanticObject"),h([y({manifest:{path:gT}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Bf.prototype,"allowedActions",2),h([y({manifest:{path:gT}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Bf.prototype,"unavailableActions",2),h([y({manifest:{path:gT}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Bf.prototype,"mapping",2);var MC=Bf,Ed=class Ed{};o(Ed,"RelatedApps"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Ed.prototype,"showRelatedApps",2),h([y({manifest:{path:pt}})],Ed.prototype,"additionalSemanticObjects",2);var kC=Ed;var Sd=class Sd{};o(Sd,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Sd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/afterExecution","path")}})],Sd.prototype,"enableAutoScroll",2);var jC=Sd,Ad=class Ad{};o(Ad,"TableColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ad.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Ad.prototype,"availability",2);var OT=Ad,Pd=class Pd{};o(Pd,"ViewTableColumn"),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Pd.prototype,"width",2),h([y({manifest:{path:rr}}),x({since:"1.85.0"})],Pd.prototype,"availability",2);var RT=Pd,LT=class LT extends OT{};o(LT,"TableColumnAction"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],LT.prototype,"afterExecution",2);var UC=LT,NT=class NT extends RT{};o(NT,"ViewTableColumnAction"),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],NT.prototype,"afterExecution",2);var $C=NT,xd=class xd{};o(xd,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],xd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],xd.prototype,"placement",2);var BC=xd,Cd=class Cd{};o(Cd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>rr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Cd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>rr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Cd.prototype,"placement",2);var HC=Cd,ea=class ea{};o(ea,"TableCustomColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],ea.prototype,"position",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],ea.prototype,"header",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ea.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],ea.prototype,"template",2),h([y({manifest:{path:Bi}}),x({since:"1.86.0"})],ea.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],ea.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],ea.prototype,"properties",2);var GC=ea,ta=class ta{};o(ta,"ViewTableCustomColumn"),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],ta.prototype,"position",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],ta.prototype,"header",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ta.prototype,"width",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],ta.prototype,"template",2),h([y({manifest:{path:rr}}),x({since:"1.86.0"})],ta.prototype,"horizontalAlign",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],ta.prototype,"availability",2),h([y({manifest:{path:rr}}),x({since:"1.85.0"})],ta.prototype,"properties",2);var WC=ta;var QC=class QC{};o(QC,"Actions");var KC=QC,qC=class qC{};o(qC,"ToolBar");var XC=qC;var Id=class Id{};o(Id,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Or(t,n,i,r,a)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Id.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Or(t,n,i,r,a)+"/afterExecution","path")}})],Id.prototype,"enableAutoScroll",2);var YC=Id,Od=class Od{};o(Od,"ToolBarAction"),h([y({manifest:{path:Or}})],Od.prototype,"enableOnSelect",2),h([y({manifest:{path:Or}})],Od.prototype,"afterExecution",2);var zC=Od,oI=class oI{};o(oI,"ToolBarActionGroup");var JC=oI,aI=class aI{};o(aI,"ViewToolBarActionGroup");var ZC=aI,Rd=class Rd{};o(Rd,"ViewToolBarAction"),h([y({manifest:{path:to}})],Rd.prototype,"enableOnSelect",2),h([y({manifest:{path:to}})],Rd.prototype,"afterExecution",2);var eI=Rd,Ld=class Ld{};o(Ld,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Or(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Or(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"placement",2);var tI=Ld,Ba=class Ba{};o(Ba,"CustomTableAction"),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],Ba.prototype,"text",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],Ba.prototype,"position",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],Ba.prototype,"press",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],Ba.prototype,"requiresSelection",2),h([y({manifest:{path:Or},generate:Jn}),x({since:"1.84.0"})],Ba.prototype,"visible",2),h([y({manifest:{path:Or},generate:Jn}),x({since:"1.84.0"})],Ba.prototype,"enabled",2);var nI=Ba,Nd=class Nd{};o(Nd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>to(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Nd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>to(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Nd.prototype,"placement",2);var iI=Nd,Ha=class Ha{};o(Ha,"ViewTableCustomAction"),h([y({manifest:{path:to}}),x({since:"1.84.0"})],Ha.prototype,"text",2),h([y({manifest:{path:to}}),x({since:"1.84.0"})],Ha.prototype,"position",2),h([y({manifest:{path:to}}),x({since:"1.84.0"})],Ha.prototype,"press",2),h([y({manifest:{path:to}}),x({since:"1.84.0"})],Ha.prototype,"requiresSelection",2),h([y({manifest:{path:to},generate:Jn}),x({since:"1.84.0"})],Ha.prototype,"visible",2),h([y({manifest:{path:to},generate:Jn}),x({since:"1.84.0"})],Ha.prototype,"enabled",2);var rI=Ha;var uI={};lc(uI,{FreestylePage:()=>lI,ListReport:()=>Lr,ObjectPage:()=>Oo});function mz(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(mz,"deleteAllALPViews");function hz(){}o(hz,"doNotExport");function yz(){}o(yz,"doNotImport");var Lr=class{};o(Lr,"ListReport"),h([y({manifest:{path:o(t=>pt(t)+"/views","path"),import:yz,export:hz,delete:mz}})],Lr.prototype,"chart",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Lr.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/[]/0","path")}}),Ne("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Lr.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}})],Lr.prototype,"defaultTemplateAnnotationPath",2),h([kt("header")],Lr.prototype,"header",2),h([kt("fe::FilterBar")],Lr.prototype,"filterBar",2),Lr=h([Zi({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Lr);var cI=Z(ae());var Oo=class{};o(Oo,"ObjectPage"),h([kt("header")],Oo.prototype,"header",2),h([kt("layout")],Oo.prototype,"layout",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Oo.prototype,"variantManagement",2),h([kt("sections")],Oo.prototype,"sections",2),Oo=h([Zi({id:`${cI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:cI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Oo);var fI=class fI{};o(fI,"FreestylePage");var lI=fI;var FT=Z(ae());var Tz={ALPTableView:Mf},vz={ALPTableView:Mf},bz={Table:md,TableColumn:$f,ObjectPageCustomSectionView:Lf,ActionAfterExecutionConfiguration:vd},Ez={[FT.PageTypeV4.AnalyticalListPage]:Tz,[FT.PageTypeV4.ListReport]:vz,[FT.PageTypeV4.ObjectPage]:bz},pI=class pI extends of{constructor(){super(sI,uI,Ez)}};o(pI,"MetadataInstanceFactoryV4");var Ga=pI;var dI=require("@sap-ux/vocabularies-types/vocabularies/UI");function gI(e,t,n,i,r,a,s){var g,m,v,E,b,I;let l=t.jsonSchema.definitions,u=a&&a!==`@${dI.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 $=s||a;Ot(e.columns[F],t.manifest,l[G],r,[F,$],$,t.logger),$r(e.columns,F)}$r(e,"columns")}else{let F=(I=(b=(E=(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:E.options)==null?void 0:b.settings)==null?void 0:I.views;(!F||F.paths.length<1)&&re(t.logger,{severity:he.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o(gI,"transferColumns");function Sz(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=an(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}$r(t,"visualFilters")}}o(Sz,"importVisualFilters");function Az(e,t,n,i,r,a=he.DefinitionName.LineItems,s){var g;let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${dI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let v=p.properties[m];if(typeof v=="object"&&v.$ref){let b={actionPropertyDefinition:(g=p==null?void 0:p.properties)==null?void 0:g[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:u};Dl(b)}}}o(Az,"importActions");function mI(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Ot(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),Az(e,u,n,i,r,a,s),$r(u.toolBar,"actions"),$r(u,"toolBar")}o(mI,"transferToolBar");function xk(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(xk,"determineTargetAnnotationOfView");function Pz(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);mI(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Ot(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),gI(g,e,n,i,r,void 0,m)}}o(Pz,"importALPViews");function xz(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(xz,"getViewTypeByDefinition");function Cz(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(U)[1],m=xz(g),v=a[p[0]]=n.createInstance(i,m),E=s[g].entitySet,b=xk(s,g,E);if(Ot(v,e.manifest,s[g],r,[p[0],b]),m===he.DefinitionName.LRTableView){let I=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;mI(e,v,n,i,r,I,b),gI(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}$r(t.table,"views")}o(Cz,"importLRViews");function Iz(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=an(p.$ref),m=e.definitions[g],v=an(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,v),Ot(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),$r(t.header,"actions"),$r(t,"header")}}}}o(Iz,"transferHeaderActions");function Oz(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];Ot(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(Oz,"importCustomFilterFields");function Rz(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),Iz(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),Sz(e,t.filterBar,n,i,r),Oz(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=xk(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),mI(e,t,n,i,r,u),gI(t.table,e,n,i,r,u,p),Cz(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&Pz(e,t,n,i,r)}o(Rz,"addSettings");function ol(e,t){if(Xt(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){re(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){re(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ga,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Hb(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){Rz(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(ol,"createListReportConfig");var be=Z(ae()),qs=require("@sap-ux/vocabularies-types/vocabularies/UI");function Lz(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(Lz,"isBoolean");function Nz(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(Nz,"isNumber");function Fz(e,t){let n=e.toString();return Lz(n,t)?n==="true":Nz(n,t)?parseFloat(n):e}o(Fz,"convertValue");function Dz(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=Fz(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(Dz,"importProperty");function Ck(e,t,n){let i,r=Pf(e.file,!1,n);if(r){let a=nT(r);i={},Zc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},Dz)}return i}o(Ck,"convertXmlFileToConfig");function DT(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Uo(t||[],r,n,a),l;return s&&(l=Ck(s,i,e.logger)),l}o(DT,"createCustomPageConfig");function Fd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=xf(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=bc(i,a),g=Ec(n||[],p,i,"fragment",t),m;if(g){let E={...u,definitions:r.definitions};m=Ck(g,E,s)}return m}o(Fd,"createCustomFragmentConfig");function hI(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(hI,"getManifestId");function Dd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Dd,"getDefinitionId");function _z(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Dd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(be.DefinitionName.CustomColumnOP)>-1?s=be.DefinitionName.CustomColumnOP:s=be.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(be.PageTypeV4.ObjectPage,s);Ot(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(_z,"fillTableColumnsInConfig");function Rk(e,t,n,i,r,a=n){var s;if(typeof t=="object")for(let l in t.properties){let u=t.properties[l];if(typeof u=="object"&&u.$ref){let p=an(u.$ref),g=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],v;m.includes(be.DefinitionName.CustomSectionActionOP)?v=i.actions:v=i[n].table.toolBar.actions;let E={actionPropertyDefinition:g,appSchema:e.jsonSchema,factory:r,actionsInConfig:v,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Dl(E)}}}o(Rk,"fillSectionActionsInConfig");function Vz(e,t,n,i,r,a=n){if(t.actions){let s=i[n].form.actions={},u=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageSectionForm}<${Dd(a)}>`].properties.form.$ref.split(U)[1],m=e.jsonSchema.definitions[u].properties.actions.$ref.split(U)[1],v=e.jsonSchema.definitions[m];for(let E in v.properties){let b=v.properties[E],I=an(b.$ref),F=e.jsonSchema.definitions[I];if(F.annotationType===qs.UIAnnotationTypes.DataFieldForAction||F.annotationType===qs.UIAnnotationTypes.DataFieldForActionGroup||F.description==="Custom Action"){let M={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:E,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Dl(M)}}}}o(Vz,"fillFormActionsInConfig");function Ik(e,t,n,i,r,a){var u;let s=a||hI(i,!1,qs.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageTable);let p=`${be.DefinitionName.ObjectPageTable}<${a?Dd(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${be.DefinitionName.Actions}<${Dd(s)}>`];Rk(e,g,i,n,r,s),_z(e,l,n,i,r,s)}}o(Ik,"fillTableInConfig");function wz(e,t,n,i,r){var l;let a=hI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageForm,{actions:{}}),Vz(e,s,i,n,r,a))}o(wz,"fillFormInConfig");function Mz(e,t,n,i,r,a){let s=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(U)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=Fd(e,s.fragmentName);s.controls=u}n[i]=s}o(Mz,"fillCustomSubSectionInConfig");function Lk(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let v=t[m],E=m;if(m.includes(qs.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith(U+be.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split(U)[1];E=b?hI(b,!0,qs.UIAnnotationTerms.LineItem):m,Ik(e,n,i,m,r,E)}else(l=v.$ref)!=null&&l.startsWith(U+be.DefinitionName.ObjectPageSectionTableV4)?Ik(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},Lk(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith(U+be.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${qs.UIAnnotationTerms.FieldGroup}::`))?wz(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith(U+be.DefinitionName.ObjectPageCustomSubSectionFragment)&&Mz(e,v,i,m,r,a)}}o(Lk,"fillSectionsInConfig");function kz(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageCustomSectionActions}<${Dd(l)}>`];Rk(e,m,l,p,i,l)}let g=u.template;if(g){let m=Fd(e,g);p.controls=m}n.sections[l]=p}}o(kz,"fillCustomSectionsInConfig");function jz(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=Fd(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=Fd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(jz,"fillCustomHeaderSectionsInConfig");function Uz(e,t,n,i,r){var s,l;let a=e.definitions[be.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split(U)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(be.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(be.PageTypeV4.ObjectPage,g):{},Ot(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(be.FACETTITLEPREFIX)[1]))}}}o(Uz,"fillHeaderFacets");function Ok(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&&Dl({actionPropertyDefinition:g,appSchema:e,factory:n,actionsInConfig:u,actionKey:p,manifest:i,routingId:r})}}}o(Ok,"fillHeaderFooterActions");function $z(e,t,n){var a,s;let i=n.createPageInstance(be.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[be.DefinitionName.Sections]&&(i.sections={},Lk(e,e.jsonSchema.definitions[be.DefinitionName.Sections].properties,r,i.sections,n)),kz(e,r,i,n),Uz(e.jsonSchema,i,n,e.manifest,e.routingId),jz(e,r,i,n),Ok(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.ObjectPageHeaderActions,be.PropertyName.header),Ok(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.FooterActions,be.PropertyName.footer)),i}o($z,"fillObjectPageConfig");function _T(e){if(Xt(),!e.manifest[be.ManifestSection.ui5]||!e.manifest[be.ManifestSection.ui5].routing){re(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5]}});return}let t=e.manifest[be.ManifestSection.ui5].routing.targets;if(!t){re(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){re(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let i=new Ga;return $z(e,n,i)}o(_T,"createObjectPageConfigV4");var We=Z(ae());var yI=[],VT={};function Bz(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(Bz,"routesSorter");function TI(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(TI,"resolveTarget");function Hz(e){let t={};e=e.concat().sort(Bz);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=TI(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(Hz,"populateAssociations");function Gz(e,t,n){let i;return e.name?e.name===We.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=We.PageTypeV4.FPMCustomPage:e.name.endsWith(We.PageTypeV4.ListReport)||e.name.endsWith(We.PageTypeV4.AnalyticalListPage)?i=We.PageTypeV4.ListReport:e.name.endsWith(We.PageTypeV4.ObjectPage)?i=We.PageTypeV4.ObjectPage:i=We.PageTypeV4.CustomPage:"viewId"in e?i=We.PageTypeV4.CustomPage:(re(t,{severity:We.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:We.MANIFESTPATH,range:[`${We.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in We.ViewTypes&&"viewName"in e&&(i=We.PageTypeV4.CustomPage)),i}o(Gz,"determinePageType");function Wz(e){let t=e.target.viewId||e.target.id,n=Ft(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===We.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===We.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=_T(r)}else if(e.page.pageType===We.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=DT(r)}else if(e.templateType===We.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=ol(r,We.SchemaType.ListReport)}else if(e.templateType===We.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=ol(r,We.SchemaType.AnalyticalListPage)}else if(e.templateType===We.TemplateType.FreestylePageV4&&e.page.pageType===We.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=Pu(e.target)===We.TemplateType.AnalyticalListPageV4?We.SchemaType.AnalyticalListPage:We.SchemaType.ListReport;e.page.config=ol(r,s)}}}o(Wz,"convertSettingsToConfig");function Kz(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");yI.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");yI.push(t[t.length-1])}}o(Kz,"updateUnhandledControllers");function Xz(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(Xz,"setVariantManagmentAndNavigation");function Qz(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}=tl(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(Qz,"setEntitySetEntityTypeContextPath");function qz(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([We.PageTypeV4.CustomPage,We.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===We.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(qz,"evaluateCustomPageSettings");function Yz(e,t,n,i){var p;let r=e.targets[t],a=Gz(r,i.logger,t),s={pageType:a};if(Qz(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),VT[t]&&VT[t].indexOf(".")!==-1){let g=VT[t].split(".");s.navigationProperty=g[g.length-1]}qz(r,s,a),Xz(r,s),Kz(r);let l=e.routes.find(g=>(g==null?void 0:g.target)&&g.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};Wz(u)}o(Yz,"getSinglePageAndConfig");function Nk(e){let t={},n=e.manifest[We.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return re(e.logger,{severity:We.LogSeverity.Error,message:i,location:{path:We.MANIFESTPATH,range:[We.ManifestSection.ui5]}}),t}VT=Hz(n.routes||[]);for(let i in n.targets)Yz(n,i,t,e);return t}o(Nk,"getPagesAndConfigs");function Fk(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 TI(t?t.target:e.routes[0].target)}else return}o(Fk,"getHome");function Dk(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(Dk,"getSettings");function Gf(e,t){let n=e[We.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];hm(t,a.name)&&(i[r]=a)}return i}o(Gf,"getPages");var vI=class vI extends us{constructor(t){Xt();let n=new Cf,i=Ft(We.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Fk(t.manifest[We.ManifestSection.ui5].routing),Nk(t),{...Dk(t.manifest[We.ManifestSection.ui5].routing),...n}),this.unhandledControllers=yI}};o(vI,"V4AppProvider");var Hf=vI;var _k=require("fs"),al=require("path"),Vk=Z(ae()),_d=Z(ae());var wk=o((e,t,n=__dirname)=>{let i;switch(t){case _d.SchemaType.Application:{i=`${_d.SchemaType.Application}${e.toUpperCase()}.json`;break}case _d.SchemaType.FPMCustomPage:{i=`${_d.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,al.join)(n,"schemas",e,i);if(n.endsWith((0,al.join)("specification","packages","specification")))return(0,al.join)(n,"dist","schemas",e,i);if(n.endsWith((0,al.join)("src","specification")))return(0,al.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,al.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),zz=o(async e=>new Promise((t,n)=>{(0,_k.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),wT=o(async(e,t)=>{try{let n=wk(e||Vk.FioriElementsVersion.v4,t,__dirname);return await zz(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Jz(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Ft(r);n[a.filename]=await wT(t,r)}return n}o(Jz,"getGenericSchemas");function kk(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=oi(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(kk,"getAnnotationsForUi");function Vd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(Vd,"getEntitySetByEntitySetName");function Zz(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(Zz,"resolveNavigationProperty");function tl(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}=Zz(r,e):re(i,{severity:ue.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&re(i,{severity:ue.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(tl,"getEntityTypeEntitySetFromContextPath");function Mk(e,t,n){let i=Ap(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=Vd(a,e.serviceAVT);s||re(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Ft(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Ft(ue.SchemaType.ObjectPage);n[l.filename]=wd(e,t[u.filename])}}o(Mk,"generateObjectPageSchemasV2");function eJ(e,t,n){var l,u;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:E}=tl(s,m,g,e.logger);e.entityType=E,e.entitySet=v;let b=Ft(ue.SchemaType.ListReport,p),I=Ft(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=Pu(a[p])),n[b.filename]=Pp(e,t[I.filename],a[p].name,m)}}o(eJ,"generateListReportSchemasV4");function tJ(e,t,n){var r;let i=Ap(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=Vd(s,e.serviceAVT);let l=Ft(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Ft(ue.SchemaType.ListReport);t[l.filename]=Sp(e,n[u.filename])}}o(tJ,"generateAppSchemaV2LR");function nJ(e,t,n){var a,s;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=tl(r,p,u);e.entitySet=m,e.entityType=g;let v=Ft(ue.SchemaType.ObjectPage,l),E=Ft(ue.SchemaType.ObjectPage),b=Ft(ue.SchemaType.FPMCustomPage);n[v.filename]=Zp(e,t[E.filename],p,t[b.filename])}}o(nJ,"generateObjectPageSchemasV4");function iJ(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)tJ(e,r,t),Mk(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=Ap(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=Vd(u,e.serviceAVT);let p=Ft(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Ft(ue.SchemaType.AnalyticalListPage);r[p.filename]=Md(e,t[g.filename])}Mk(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Ft(ue.SchemaType.OverviewPage),l=Ft(ue.SchemaType.OverviewPage);r[s.filename]=kd(t[l.filename],e.manifest)}return{...t,...r}}o(iJ,"generateAppSchemasV2");function rJ(e,t,n){if(!gc(e.featureToggles,ue.Features.BuildingBlocks))return;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Uo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Ft(ue.SchemaType.FPMCustomPage,void 0,l),p=Ft(ue.SchemaType.FPMCustomPage);n[u.filename]=el(t[p.filename],s,e.serviceAVT,e.logger)}}}o(rJ,"generateCustomPageSchemasV4");function oJ(e,t,n){let i={};return n&&(eJ(e,t,i),nJ(e,t,i),rJ(e,t,i)),{...t,...i}}o(oJ,"generateAppSchemasV4");async function jk(e,t,n){let i=await Jz(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?oJ(e,i,t):iJ(e,i,t,n)}o(jk,"generateAppSchemas");function aJ(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new cy(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Hf(e);break;case ue.TemplateType.OverviewPageV2:t=new fy(e);break;default:t=new Hf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(aJ,"importConfigs");function Uk(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ue.SchemaType.Application?r=`${ue.DirName.Schemas}/${ue.FileName.App[0].toUpperCase()}${ue.FileName.App.slice(1)}`:r=`${ue.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(Uk,"getFileList");async function bI(e){var b,I;Xt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Nu().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let u=Qb(t),p=Ur(n,i),g=kk(p),m=dc(t,u,i),E=await jk({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Uk(E)}o(bI,"importProjectSchema");async function EI(e){var G,$;Xt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Nu().doesUi5VersionFitDistTags(($=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:$.minUI5Version,i);let p=Qb(t),g=T0(t),m=Ur(n,i),v=dc(t,p,i),E={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=kk(m),I=await jk(E,b,v),M=aJ({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Uk(I,M)}o(EI,"importProjectSchemaAndConfig");var sJ=["header","sections","footer"];function cJ(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(cJ,"addFlexChangeForSection");function lJ(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Ro.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Mm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${ft(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Ro.UIAnnotationTerms.Identification}`,`/@${Ro.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(lJ,"addHeaderActionCallBackV2");function fJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ro.UIAnnotationTypes.DataFieldForAction){let a=Br(r).split("::").splice(1).join("::"),s=ci(r,e),l=ft(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Ro.UIAnnotationTerms.Identification}`,`/@${Ro.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(fJ,"addFooterActionCallBackV2");function uJ(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(b=>b.name===i),E=Bc(t[oe.ManifestSection.generic].pages,n,m);return Vl(e,v,E,t,l,p,g,a.ID),p}o(uJ,"ensureCustomColumnDefinitionExists");function Ud(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&cJ(e,t,"visible",n)}o(Ud,"addAppSchemaDefinition");function pJ(e,t,n){e.properties[t]={$ref:`${U}${n}`}}o(pJ,"addSectionReference");function jd(e,t,n,i){let r=ft(`${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}>`,cs(n.entityType,i,`QuickVariant<${t}>`)}o(jd,"addTableDefinition");function dJ(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]=Mo(n,i,t);let u=n.definitions[l];Ud(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,Ta(i,u,t),is(i,u,t),jd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),jd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),jd("ObjectPageGridTable",t,i,n),jd("ObjectPageTreeTable",t,i,n),jd("ObjectPageAnalyticalTable",t,i,n);let p,g=f_(i.entityType,e.serviceAVT);g&&(p=uJ(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))&&_l(!0,n,v.target,v.entityType,v.ID||m,p)}}o(dJ,"handleLineItem");function gJ(e,t,n,i,r,a=!1){e.definitions[t]=Mo(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Ud(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(gJ,"handleSubSection");function mJ(e,t,n,i,r){e.definitions[t]=Mo(e,n,i);let a=e.definitions[t];Ud(e,a,r,"ObjectPageSectionChartV2")}o(mJ,"handleSectionChart");function $k(e,t,n,i,r,a){e.definitions[t]=Mo(e,n,i);let s=e.definitions[t];Ud(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=Pc(n==null?void 0:n.target)}o($k,"handleHeaderFacet");function hJ(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=Pc(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(hJ,"addDataPointHeaderFacetDataType");function yJ(e,t,n,i,r){e.definitions[t]=Mo(e,n,i);let a=e.definitions[t];return Ud(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(yJ,"handleFormSection");function TJ(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(TJ,"getSectionType");function vJ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ro.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(vJ,"getReferenceKey");function Hk(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=TJ(l.base,a,s),p=vJ(l,n,u),g=`${u}<${p}>`;switch(pJ(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,gJ(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)Hk(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{dJ(e,p,r,l,t,u),kl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{mJ(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=yJ(r,g,l,p,u);wm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Lu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Lu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{$k(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{$k(r,g,l,p,u),hJ(r,g,l);break}default:i.properties[n]=Mo(r,l,p)}}o(Hk,"addSection");function Bk(e,t,n,i,r,a=!1){if(e)for(let s in t)Hk(i,t,s,n,r,!1,a)}o(Bk,"addSectionsFromFacets");function Gk(e,t,n){var g,m,v,E,b,I;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}/@${Ro.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}/@${Ro.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=fm((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=lm((E=e.entitySet)==null?void 0:E.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 M=n[F];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(M.entitySet)?(Bk(l,a,i,e,t),Bk(u,s,r,e,t,!0)):Gk(e,t,M.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(Gk,"addSections");function bJ(e,t,n){Um(e,n),jm(e,n,t,lJ,void 0,!0)}o(bJ,"addHeader");function EJ(e,t,n,i){let r=b0(t,n,i,void 0,!0);r&&m_(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(EJ,"addRelatedFacetKeysType");function wd(e,t){var s;Xt();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?(bJ(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Gk(e,n,a),EJ(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]),km(n,e,oe.FioriElementsVersion.v2,fJ,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,jo(n,sJ),n):(re(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(wd,"generateObjectPageSchemaV2");var en=Z(ae());var SJ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function AJ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if($c(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let F=I+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return re(n,{severity:en.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(I){return p=p||Iu("LineItem",I),g=g||Iu("Chart",I),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],E=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(E>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][E-1],F=Q.t(I);re(n,{severity:en.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(AJ,"getLineItemAndChartAnnotation");function PJ(e,t){let n=e.definitions[en.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[en.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(PJ,"addChart");function Md(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[en.PropertyName.table].anyOf[0].$ref=U+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${U}${en.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${U}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[en.PropertyName.table].anyOf[1].$ref=`${U}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${U}${en.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${U}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[en.PropertyName.table].anyOf[2].$ref=`${U}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${U}${en.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${U}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,i_(n.definitions.TableColumnExtensionTypeV2.enum,[en.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=Ml(e);if(s){wl(n);let l=[],u=rf(e.manifest[en.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=AJ(u,s,e.logger);p&&z0.forEach(v=>{n.definitions[v][en.SchemaTag.annotationPath]=yr(a.fullyQualifiedName,p.term,p.qualifier)}),_l(!1,n,p,a),g&&PJ(n,g);let m=s.SelectionFields;if(Dm(n,m,a),kl(n,a),!u)return re(e.logger,{severity:en.LogSeverity.Error,message:Q.t("NOLR"),location:{path:en.MANIFESTPATH,range:[en.ManifestSection.generic]}}),n;Vl(n,a,u,e.manifest,e.fragments),HA(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 jo(n,SJ),n}o(Md,"generateAnalyticalListReportSchemaV2");var Wk=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function xJ(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(xJ,"getCardDefinitionNames");function CJ(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"},Aa(a,s.CardModel);let l=xJ(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=U+"CardModel"}}o(CJ,"addModelsEnum");function IJ(e,t){let n=e.properties;for(let i in Wk){let r=Wk[i],a=r.key;n[a]&&(n[a].messages=[{text:Nl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(IJ,"markDeprecatedProperties");function Kk(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},IJ(n,t),CJ(n,t),n}o(Kk,"generateOverviewPageSchemaV2");var Ys=Z(ae());function SI(e,t,n,i,r,a){Xt();let s=Ur(e,t),l={templateType:a,fioriElementsVersion:Ys.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=Vd(r,l.serviceAVT),l.entitySet||re(l.logger,{severity:Ys.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(SI,"prepareGenerationV2");function AI(e,t,n,i,r,a){let s=SI(n,a,i,r,t,Ys.TemplateType.ListReportObjectPageV2);return wd(s,e)}o(AI,"generateObjectPageInterfaceV2");function PI(e,t,n,i,r,a){let s=SI(n,a,i,r,t,Ys.TemplateType.ListReportObjectPageV2);return Sp(s,e)}o(PI,"generateListReportInterfaceV2");function xI(e,t,n,i,r,a){let s=SI(n,a,i,r,t,Ys.TemplateType.AnalyticalListPageV2);return Md(s,e)}o(xI,"generateAnalyticalListPageInterfaceV2");function kd(e,t){return Kk(e,t)}o(kd,"generateOVPInterfaceV2");var Wf=Z(ae()),Qk=require("@sap-ux/vocabularies-types/vocabularies/UI");function Xk(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(Xk,"updateDependencyLib");function MT(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(MT,"extractLastIdPart");function qk(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return re(i,{severity:Wf.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Wf.PropertyName.sections),s=a>-1?MT(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Qk.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Wf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return CI(g),!0}o(qk,"createNewCustomColumn");var Wa=Z(ae());var zk=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Yk=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function OJ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(OJ,"initializeRouting");function RJ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(RJ,"setTargetOptions");function LJ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Wa.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(LJ,"calculateQueryPattern");function Jk(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){Jk(e,t,n,s);return}}}o(Jk,"fillNavigationParts");function NJ(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(NJ,"fillParentKeys");function FJ(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(RJ(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=[];Jk(p,a,t,r,l==null?void 0:l.contextPath);let g=NJ(e.routePattern);u=LJ(p,l,g)}i.routes.push(zk(u,s.route,s.route))}}}o(FJ,"handlePageNavigation");function DJ(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(DJ,"removeDeletedPages");function _J(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Yk({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=Yk({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(_J,"transferEntitySetandContextPath");function VJ(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(VJ,"updateRouteLayout");function wJ(e,t,n){var i;return e.pageType&&![Wa.PageTypeV4.CustomPage,Wa.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Wa.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Wa.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(wJ,"fillTarget");function Zk(e,t,n){var r,a;let i=OJ(n[Wa.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(zk(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=wJ(u,l,s),_J(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={}),FJ(u,t,l,i,s),VJ(i,s,u),i.targets[s]=l}return DJ(i,t),i}o(Zk,"transformRoutingV4");var Ii=Z(ae());var e2=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],t2=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:e2[r]?s.controlAggregation=e2[r]:s.controlAggregation=Ii.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)t2(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),MJ=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,t2(e,t,t.home);let n={viewName:Ii.FIORI_FCL_ROOT_VIEW_NAME,type:Ii.ViewTypes.XML,async:!0,id:Ii.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Xk(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),kJ=o(e=>{var t;e.rootView&&e.rootView.viewName===Ii.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ii.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),n2=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?MJ(e,t):kJ(e)},"updateFcl");var ie=Z(ae()),$d=require("@sap-ux/vocabularies-types/vocabularies/UI");var i2=Z(uc()),kT=Z(ae());function jJ(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(jJ,"isExportValueEquals");function UJ(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)===kT.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(UJ,"deleteProperty");function r2(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Zc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},r2)}else jJ((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]&&(UJ(e,i),l=!0);return l}o(r2,"exportProperty");function jT(e,t,n,i,r,a){let s=Pf(e.file,!1,a);if(s){let l=nT(s);if(Zc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},r2)){let p=(0,i2.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:kT.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(jT,"getExtensionExportResult");var o2=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Uo(n||[],a.name,i,s)),u&&jT(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),a2=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=bc(u,s[0]);p=Ec(a,m,u,g,t)}if(p){let m=xf(t),E={...i.definitions[m],definitions:i.definitions};jT(p,r,n,E,g,l)}},"exportXMLFragmentConfig");var s2=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],$J=[...s2,"views","initialLoad","template"],UT=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function BJ(e,t,n){var s,l,u,p;let i=`@${$d.UIAnnotationTerms.LineItem}`,r=`@${$d.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(BJ,"determineTargetAnnotationOfTable");function HJ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(HJ,"determineTargetAnnotationOfChart");function GJ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(U)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(GJ,"determineTargetAnnotationBasedOnParentView");function WJ(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}=GJ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(WJ,"determineTargetAnnotationOfView");function KJ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(KJ,"determineTargetAnnotationOfHeaderSections");function XJ(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=MT(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(XJ,"determineTargetAnnotationOfSections");function QJ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=BJ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=HJ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=XJ(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=KJ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=WJ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(QJ,"determineTargetAnnotation");function qJ(e){return e.includes(rE)}o(qJ,"isGroupingElement");function YJ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||qJ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(YJ,"determineKeyForSyncRule");function zJ(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(zJ,"createNewObjectInManifest");function c2(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&&(zJ(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(c2,"transferPropertyToManifest");function JJ(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&&s2.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&$J.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 rs(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(JJ,"deleteFromManifest");function ZJ(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}=QJ(e,n.transferParameters,n.configObject),g=YJ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),v=wo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(v){let E={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&&Ol([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=JJ(e,E,n.transferParameters,v,m,u,l):r=c2(E,n.propertyDefinition,i)}return r}o(ZJ,"exportManifestChange");function eZ(e,t,n){let i=Mn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);a2(e.transferParameters,r,n.configObject)}else i.manifest&&ZJ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(eZ,"evaluateExportRule");function tZ(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,OI(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(tZ,"transferSubObject");function nZ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=pt(e.pageNameArray)+"/views",a=wo(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(nZ,"createALPTableView");function iZ(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=pt(e.transferParameters.pageNameArray)+"/views",r=wo(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)||$d.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(iZ,"createALPChartView");function rZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=pt(e.pageNameArray),r=wo(e.exportResults.manifest,i),a=`@${$d.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(rZ,"createVisualFilters");function oZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=pt(t.pageNameArray)+"/views",s=wo(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(oZ,"createLRTableView");function aZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=qk(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return iZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return nZ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=oZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=rZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(aZ,"createNewElement");function sZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(sZ,"isDefinitionTraversable");function II(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Tm(e.configObject,e.key),s=ko(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=aZ(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(U)[1],i),p=a?[...t,a]:[...t,e.key];if(l||eZ(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||sZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;tZ(e,s,r,p,m)}}o(II,"transferSortedListEntry");function cZ(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]],II(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,II(e,i,r),a=!0)}),e.index++})}return a}o(cZ,"transferConfigEntriesWithAnyOfDefinitions");function lZ(e,t,n,i){let r=qb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(lZ,"mergeEntriesForInsert");function fZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(fZ,"sortProperties");function uZ(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=cZ(n,p,i,r,a)}return s}o(uZ,"checkIfAnyOfDefinition");function OI(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=uZ(u,e,l,a,n,i),g=fZ(a.properties);u!=null&&u.$ref&&lZ(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!Ol(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,II(l,n,i,p),m[1].$ref&&s++)})}o(OI,"transferManifestEntriesAndFlexChange");function l2(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(l2,"getClassesForSingleSection");function f2(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],l2(n,i,t),f2(n,t)}}o(f2,"getSubsectionClasses");function pZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],l2(e,r,n),f2(i,n)}o(pZ,"getExportClassesForSections");function u2(e,t){let n=vm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(u2,"calculateBaseId");var p2=o((e,t,n=!1)=>{var l;let i=UT(e.manifest),r=new Ga,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&pZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:u2(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return OI(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),dZ=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=UT(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split(U)[1]);let v=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((I=g.toolBar)!=null&&I.actions&&v)for(let F in v.properties)g.toolBar.actions[F]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let E={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:u2(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return OI(E,n,[],[],[],u),l},"exportListPage"),RI=o((e,t,n,i=!1)=>{let r=new Ga,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return dZ(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),d2=o((e,t,n=!1)=>RI(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),gZ=o((e,t,n,i,r,a)=>{let s=wo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=Gb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];c2(u,p,{}),!l&&Object.keys(s).length&&y0(r,t,s)},"applyExportRule"),mZ=o((e,t,n)=>{var a;let i=UT(t),r=Object.assign(new sT,e);r.settings=Object.assign(new Cf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Mn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)gZ(l,u,s,e,i.manifest,n);else{let p=wo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],rs(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=Zk(e.home,e.pages,i.manifest),n2(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),g2=o((e,t)=>{if(e[ie.SchemaType.ListReport])return RI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return p2(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return mZ(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return d2(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return o2(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),hZ=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=UT(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Uo(n||[],i.name,r,e.logger)),l&&jT(l,s,i.config,t,"view",a),s},"exportCustomPage"),LI=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return RI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return p2(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return d2(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return hZ(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ut=require("@sap-ux/fe-fpm-writer");var yZ=new Map([[de.CustomExtensionType.CustomPage,Ut.generateCustomPage],[de.CustomExtensionType.CustomColumn,Ut.generateCustomColumn],[de.CustomExtensionType.CustomSection,Ut.generateCustomSection],[de.CustomExtensionType.ObjectPage,Ut.generateObjectPage],[de.CustomExtensionType.ListReport,Ut.generateListReport],[de.CustomExtensionType.CustomAction,Ut.generateCustomAction],[de.CustomExtensionType.CustomView,Ut.generateCustomView],[de.CustomExtensionType.ControllerExtension,Ut.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Ut.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Ut.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Ut.generateCustomHeaderSection]]),TZ={api:Ut.PromptsAPI,types:Ut.PromptsType};function vZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ListReport];t=PI(i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ObjectPage];t=AI(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=kd(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.AnalyticalListPage];t=xI(i,r,a,s,l,u)}}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.ListReport];t=aT(de.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[de.SchemaType.ObjectPage];t=rx(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.AnalyticalListPage];t=aT(de.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=ox(de.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[de.SchemaType.FPMCustomPage];t=ax(i,r,a,s,u,e.featureToggles,l)}}return t}o(vZ,"generateSchema");function bZ(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=_V(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=g2(i,n)}return t}o(bZ,"exportConfig");function EZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=WA(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=LI(i,n)}return t}o(EZ,"exportConfigEntityByPath");function SZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=WA(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=LI(i,n,!0)}return t}o(SZ,"deleteConfigEntityByPath");function AZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=sy(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=Zh(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=ey(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=ty(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=ol(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=_T(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=ol(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=DT(n[de.SchemaType.FPMCustomPage]))}return t}o(AZ,"importConfig");async function PZ(e){return EI(e)}o(PZ,"importProject");async function xZ(e){return bI(e)}o(xZ,"importProjectSchema");function CZ(){return{version:"23",fpmWriter:"31",moduleVersion:b_.version}}o(CZ,"getApiVersion");function CI(e){let t=yZ.get(e.customExtension);if(t&&typeof t=="function")return(0,Ut.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(CI,"generateCustomExtension");var io=require("path"),zs=require("fs");var Kf=o(async e=>new Promise((t,n)=>{(0,zs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),IZ=o(async e=>JSON.parse(await Kf(e)),"readJSON"),NI=o(async e=>new Promise((t,n)=>{(0,zs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),OZ=o(async e=>new Promise(t=>{(0,zs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),h2=o(async e=>new Promise(t=>{(0,zs.exists)(e,n=>{t(n)})}),"resourceExists"),RZ=o(async e=>IZ((0,io.join)(e,"manifest.json")),"getManifest"),y2=o(async e=>{let t=[],n=(0,io.join)(e,"changes");if(!await h2(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await NI(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Kf((0,io.join)(n,a)));return t},"getChanges"),m2=o(async(e,t="fragments")=>{let n=[],i=(0,io.join)(e,"ext",t);if(!await h2(i))return n;let r=await NI(i);for(let a of r){let s=(0,io.join)(i,a),l=await Kf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),LZ=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,io.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await Kf(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 E=(0,io.join)(t,i[v].settings.localUri);n.push({dataSourceUri:E,fileContent:await Kf(E)})}}if(n.length===0)for(let v in i){let E=i[v];if((E==null?void 0:E.type)==="ODataAnnotation"&&((m=E==null?void 0:E.settings)!=null&&m.localUri)){let b=(0,io.join)(t,E.settings.localUri);n.push({dataSourceUri:b,fileContent:await Kf(b)})}}return n},"getAnnotations"),NZ=o(async e=>{let t=(0,io.basename)(e),n=(0,io.join)(e,"webapp"),i=await RZ(n),r=await LZ(i,n),a=await y2(n),s=await m2(n),l=await m2(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");fc(Fi,Z(ae()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
|
|
294
|
+
`}),hV(Q)}o(Xt,"initI18n");var wA={};lc(wA,{AnalyticalListPage:()=>Xr,ListReport:()=>vo,ObjectPage:()=>fi,OverviewPage:()=>Zt,exportFilterSettings:()=>bV,importDateSettingsOVP:()=>TV,importFilterSettings:()=>vV});var zh=Z(ae());var Xr=class{};o(Xr,"AnalyticalListPage"),h([y({flex:{controlId:ym,controlType:o(()=>zh.ControlType.DynamicPage,"controlType")}})],Xr.prototype,"fitContent",2),h([kt("table")],Xr.prototype,"table",2),h([kt("template::SmartFilterBar")],Xr.prototype,"filterBar",2),h([kt("analyticalListPageChart")],Xr.prototype,"chart",2),h([kt("analyticalListFooter")],Xr.prototype,"footer",2),Xr=h([Zi({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:zh.v2.FE_TEMPLATE_V2_ALP})],Xr);var Tp=Z(ae());var vo=class{};o(vo,"ListReport"),h([y({flex:{controlId:ym,controlType:o(()=>Tp.ControlType.DynamicPage,"controlType")}})],vo.prototype,"fitContent",2),h([kt("listReportFilter")],vo.prototype,"filterBar",2),h([kt("listReport")],vo.prototype,"table",2),h([kt("listReportFooter")],vo.prototype,"footer",2),vo=h([Zi({id:Tp.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Tp.v2.FE_TEMPLATE_V2_LIST_REPORT})],vo);var VA=Z(ae());var fi=class{};o(fi,"ObjectPage"),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.1"})],fi.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.48.0"})],fi.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Di(t),"path")}}),x({since:"1.52.0"})],fi.prototype,"navToListOnSave",2),h([kt("header")],fi.prototype,"header",2),h([kt("sections")],fi.prototype,"sections",2),h([kt("layout")],fi.prototype,"layout",2),h([y({manifest:{path:o(t=>Wm(t),"path")}}),x({since:"1.77.0"})],fi.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Di(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],fi.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Di(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:mc}}),x({since:"1.71.0"})],fi.prototype,"globalTableSettings",2),fi=h([Zi({id:VA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:VA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],fi);function $Q(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($Q,"importDateSettingsFieldsOVP");function TV(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&&$Q(e,t),t}o(TV,"importDateSettingsOVP");function vV(e){let t={};return t.dateSettings=TV(e.filterSettings),t}o(vV,"importFilterSettings");function BQ(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(BQ,"exportFilterFields");function bV(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&&BQ(t,n,e))}o(bV,"exportFilterSettings");var Zt=class{};o(Zt,"OverviewPage"),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>An(),"path"),import:vV,export:bV}}),x({since:"1.80.0"})],Zt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>An(),"path")}})],Zt.prototype,"resizableLayout",2),Zt=h([Zi({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Zt);var MA=class MA{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(MA,"MetadataFactory");var of=MA;var ei=Z(ae());var HQ={},GQ={Table:Rc,ResponsiveTableWithMultiSelect:Rc,ResponsiveTableWithInlineDelete:Rc},WQ={[ei.v2.CardSettingsType.listCardSettings]:Gl,[ei.v2.CardSettingsType.listCardSettingsv4]:Gl,[ei.v2.CardSettingsType.analyticalCardSettings]:Wl,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:Wl,[ei.v2.CardSettingsType.stackCardSettings]:ju,[ei.v2.CardSettingsType.linkListCardSettings]:Uu,[ei.v2.CardSettingsType.tableCardSettings]:Kl,[ei.v2.CardSettingsType.tableCardSettingsv4]:Kl},KQ={[ei.SAPUI5_VIEW_CLASS]:up,[ei.SAPUI5_FRAGMENT_CLASS]:fp,Table:Uc,ObjectPageResponsiveTableWithMultiSelect:Uc,ObjectPageResponsiveTableWithInlineDelete:Uc},XQ={[ei.PageTypeV2.AnalyticalListPage]:HQ,[ei.PageTypeV2.ListReport]:GQ,[ei.PageTypeV2.ObjectPage]:KQ,[ei.PageTypeV2.OverviewPage]:WQ},kA=class kA extends of{constructor(){super(LA,wA,XQ)}};o(kA,"MetadataInstanceFactoryV2");var Vi=kA;function QQ(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),kn(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"),kn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(QQ,"importFilterBar");function jA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=Tr(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};Hh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&Gh(e,n,s)}o(jA,"importFlexChangesOfTableAndColumns");function qQ(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Rm]&&t[Lm]&&(a=JSON.parse(JSON.stringify(t[Rm])),a.properties={...a.properties,...t[Lm].properties}),kn(n.table,i.manifest,a,r,i.logger),jA(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&&re(i.logger,{severity:Qt.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}o(qQ,"importTable");function YQ(e,t,n,i){let r=e.jsonSchema.definitions,a=Kh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),Xh(t,n,r),qQ(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),kn(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=Is(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),kn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}QQ(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=Is(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),kn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(YQ,"addSettings");function EV(e){if(Xt(),!tf(e))return;let n=new Vi,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=ef(e.manifest[Qt.ManifestSection.generic].pages,r);if(nf(a,e.logger,a==null?void 0:a.entitySet),!!a)return YQ(e,i,n,r[0]),e.flex.forEach(s=>{Tr(s)&&Wh(i,s,e.jsonSchema,e.logger)}),Zl(i,e,a,Qt.PageTypeV2.ListReport),Yh(i),i}o(EV,"createListReportConfig");var ve=Z(ae());var vp=require("@sap-ux/vocabularies-types/vocabularies/UI");var JQ=[ve.ControlType.Avatar,ve.ControlType.ObjectPageLayout,ve.ControlType.DynamicPage];function ZQ(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(`${vp.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${ve.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(vp.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(ZQ,"getSingleSelectorIdPart");function e7(e){let t,n=e.split(":::");if(n.length===1)t=ZQ(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(`::${vp.UIAnnotationTerms.LineItem}`,`/@${vp.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(e7,"getFacetID");function t7(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=Tr(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(ve.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let E=e7(v);v=FA(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:E,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){re(n,{severity:ve.LogSeverity.Error,message:Q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(t7,"prepareFlexChanges");var n7=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 i7(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&NA(i,t,r)}o(i7,"addFlexChangeToColumns");function SV(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,ve.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===ve.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?i7(a,p,r.properties,n):Hh(n,p,r))}}o(SV,"importFlexChangesOfTable");function r7(e,t){return e.facetId==="template"&&t}o(r7,"isStandardActionFlexChange");var AV=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 o7(e,t,n,i,r,a){var I;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===ve.ControlType.GroupElement&&l,g=((I=t.facetId)==null?void 0:I.includes(ve.ACTIONTITLEPREFIX))&&!r&&s,m=r&&AV(u,r.split("::"))&&s,v=e.title&&AV(u,e.title.split("::"),!0),E=!t.facetId&&JQ.includes(t.controlType),b=r7(t,l);return p||g||m||v||E||b}o(o7,"matchSelector");function a7(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[ve.SchemaTag.controlType]))continue;o7(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(a7,"importFlexChanges");function s7(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(re(n.logger,{severity:ve.LogSeverity.Warning,message:Nl(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(s7,"checkDeprecatedProperties");function c7(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=Kn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Kn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Kn(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 s7(p,a,n,u),p}o(c7,"importManifestSetting");function wi(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=Mn(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],E=e.jsonSchema.definitions[v];SV(i.flexChanges,g,t,r,E,l)}else SV(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);a7(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&c7(m,i.pageKeys,e,t,g,s,r)}}o(wi,"transferSettingsAndFlexChanges");function xV(e,t,n,i){let r=Yi(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=`${e0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Nm}${r}`;break}}return r.replace(/@/g,"")}o(xV,"getActionId");function l7(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=xV(s,a,"","");e.actions[a]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,l,{}),wi(n,e[ve.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(l7,"fillStandardActions");function Jh(e,t,n,i,r,a){var l;n[ve.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=Is(p),m=xV(s,g,r,a);m&&(n[ve.PropertyName.actions][g]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,s),wi(e,n[ve.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[ve.PropertyName.actions])!=null&&l[g]&&Object.keys(n[ve.PropertyName.actions][g]).length===0&&delete n[ve.PropertyName.actions][g]}}l7(n,t,e,i),Object.keys(n[ve.PropertyName.actions]).length===0&&delete n[ve.PropertyName.actions]}o(Jh,"fillActions");function f7(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(ve.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;wi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[ve.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(f7,"fillFields");function u7(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(u7,"prepareTableSchema");function p7(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(ve.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][ve.PropertyName.table]=g;let m=e.jsonSchema.definitions,v=u7(p,t,m);wi(e,i[t.id],t.schema,r,{title:t.title}),wi(e,i[t.id][ve.PropertyName.table],v,r,t);let E=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(E!=null&&E.properties){let b=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Jh(e,E.properties,i[t.id][ve.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][ve.PropertyName.table].toolBar).length===0&&delete i[t.id][ve.PropertyName.table].toolBar}}o(p7,"fillTableInConfig");function d7(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?Sm(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Zl(n[t],e,i,ve.PageTypeV2.ObjectPage,l,r)}}o(d7,"fillCustomColumnsInConfig");function g7(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][ve.PropertyName.chart]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(wi(e,i[t.id],t.schema,r,{title:t.title}),wi(e,i[t.id][ve.PropertyName.chart],e.jsonSchema.definitions[ve.DefinitionName.ObjectPageChart],r,t))}o(g7,"fillChartSection");function m7(e,t,n,i){n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&wi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(m7,"fillHeaderSection");function h7(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&wi(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&&Jh(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&f7(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(h7,"fillFormSection");function PV(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(ve.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&wi(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,UA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(PV,"fillSubSection");function UA(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:n7(t[l]),schema:t[l],title:tE(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],p7(e,p,n,i,r),d7(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],g7(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],h7(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}>`],PV(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],m7(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],PV(e,p,n,i,r))}}o(UA,"fillSectionsInConfig");function y7(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];wi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(y7,"fillCustomSectionsInConfig");function T7(e,t){var g,m;let n=t.factory.createPageInstance(ve.PageTypeV2.ObjectPage);wi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;wi(e,n.globalTableSettings,i[ve.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(ve.PageTypeV2.ObjectPage,ve.DefinitionName.ObjectPageHeader);let r=i[ve.DefinitionName.ObjectPageHeader]?i[ve.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];wi(e,n.header,r,t);let a=i[ve.DefinitionName.ObjectPageHeaderActions];a&&Jh(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[ve.DefinitionName.FooterActions];s&&Jh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(ve.PageTypeV2.ObjectPage,"ObjectPageLayout"),wi(e,n.layout,i[ve.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[ve.DefinitionName.HeaderSections];if(l){let v=(g=t.v2Page.component)==null?void 0:g.settings;UA(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[ve.DefinitionName.Sections];if(u){let v=(m=t.v2Page.component)==null?void 0:m.settings;UA(e,u.properties,v,n.sections,t)}let p=mV(e.manifest,e.entitySet);return y7(p,n,t,i,e),n}o(T7,"fillConfig");function Zh(e){Xt();let t=tf(e);if(!t)return;let n=e.entitySet,i=[],r=Bc(t,e.entitySet,i);if(nf(r,e.logger,n),!r)return;let a=t7(e.flex,n),s=new Vi;return T7(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Zh,"createObjectPageConfigV2");var Qr=Z(ae());var BA=Z(Sb());var Rt=Z(ae());var v7=["colorPalette","tabs"];function b7(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(b7,"createCard");function CV(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),CV(e,n.join("|"))}return t}o(CV,"findAvailableId");function bp(e,t,n,i,r,a,s){i!=null&&i.properties&&$A(e,t,n,i.properties,r,a,s)}o(bp,"transferManifestEntriesOVP");function Hc(e,t,n,i){return e.createInstance(Rt.PageTypeV2.OverviewPage,i,n,t)}o(Hc,"assignReflectMetadataRules");function E7(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=Hc(e.factory,i[1],t,"CustomCard"),bp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(E7,"processAnyOfDefinitionsOfOVP");function S7(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!v7.includes(i)?t[i]=(0,BA.default)(t[i]||{},r||{},{arrayMerge:zb}):t[i]=r}o(S7,"checkSyncRuleForExport");function A7(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Kn(i.manifest,s);if(n in Rt.v2.CardSettingsType||n==="settings")l.settings=(0,BA.default)(l.settings||{},r||{},{arrayMerge:zb});else if(r!==void 0){let u=e.manifest.export;S7(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(A7,"transferToManifest");function P7(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template??"CustomCard",i=[...new Set(Object.keys(Rt.v2.cardTemplateTypeMap))].filter(r=>r!==n);i.push(n);for(let r of i){let a;Object.values(Rt.v2.CardTemplateType).includes(r)?a=Object.keys(e.appSchema.definitions).filter(s=>{var u;let l=(u=e.appSchema.definitions[s].properties)==null?void 0:u.template;if(l!=null&&l.enum)return l.enum.indexOf(r)>-1;if(l!=null&&l.const)return l.const===r}):a=["CustomCard"],e.currentObject[t]=Hc(e.factory,a[0],e.currentObject[t],"CustomCard"),b7(t,e.exportResults.manifest[Rt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,bp(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[a[0]],e.factory,["cards",t],e.entityPathArray)}}),Object.keys(e.exportResults.manifest[Rt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Rt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated)})}o(P7,"transferCards");function x7(e,t){if(t==="cards")P7(e);else{let n=jo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Rt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split(U);e.currentObject=Hc(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],bp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],$A(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],$A(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(x7,"exportOfObject");function $A(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!Ol(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=Mn(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=E7(g)):u&&typeof u=="object"&&i[l]&&x7(g,l),p!=null&&p.manifest&&A7(p,a,l,t,u,e)}}o($A,"processProperties");function C7(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=$_(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=bm(p,g);e.exportResults.flexChanges.find(E=>{let b=!1,I=JSON.parse(E);I={content:I.content,selector:I.selector};let N=JSON.parse(m);return N={content:N.content,selector:N.selector},JSON.stringify(I)===JSON.stringify(N)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(C7,"evaluateFlexRule");function I7(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=Rt.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=Rt.ChangeIndicator.Updated}}o(I7,"exportConfigValueToManifest");function O7(e,t,n,i,r){let a=Kn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)I7(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=Rt.ChangeIndicator.Updated,rs(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(O7,"evaluateManifestRule");function R7(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(Rt.FACETTITLEPREFIX)?r.split(Rt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(R7,"getManifestPathOfSections");function L7(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(L7,"getManifestPathOfTable");function N7(e,t,n,i,r){let a;return t[0]===Rt.PropertyName.sections?a=R7(t,a,n,e,r):t[0]===Rt.PropertyName.table?a=L7(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(N7,"getManifestPath");function F7(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)C7(e,i,t,r,a,n,s);else if(t.manifest){let u=N7(e,i,t,n,a);O7(e,u,t,s,n)}}o(F7,"evaluateExportRule");function D7(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(nh(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Rt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Rt.ViewTemplateType.ResponsiveTableColumnsExtension,Rt.ViewTemplateType.ResponsiveTableCellsExtension);nh(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(D7,"deleteObsoleteColumn");function _7(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=x0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Rt.ChangeIndicator.Updated,D7(r,e,n))}o(_7,"deleteObsoleteColumnsFromFragment");function V7(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=ih(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(V7,"clusterConfigColumnsByPath");function IV(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 Rt.v2.TableColumnExtensionTypeV2){let{path:u}=ih(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{_7(p)}catch(g){e.logger.error(g.message)}}if(t){let l=V7(t,n,e.v2Page,s,r);for(let u in l)yS(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(IV,"transferColumnExtensions");function w7(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=CV(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(E=>{var b;return(b=E.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split(U),v=e.appSchema.definitions[m[m.length-1]];Os(e,t[p],i,[...r,s[p]],v)}let u=Kn(e.exportResults.manifest,BE());for(let p in u)DA(p,l)&&!s.includes(p)&&delete u[p]}o(w7,"transferManifestExtensions");function M7(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Rt.PropertyName.table){n=e[i-1];break}return zn(n,t)}o(M7,"getSectionId");function k7(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=jo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);Os(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(k7,"transferIndexTable");function j7(e,t,n,i,r,a){let s,l=Sm(e.$ref);l&&(s={target:l,key:M7(t,n)}),IV(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(j7,"transferCustomColumns");function U7(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=jo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&Os(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(U7,"handleAnyOfDefinitions");function $7(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")w7(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){j7(l,t,s,e,n,a);return}else a?Os(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&U7(l,e,s,n==null?void 0:n[r],r,i,t)}o($7,"transferComplexProperty");function Os(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&&!Ol(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Tm(t,l),p=u?[...n,u]:n,g=Mn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=jo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(F7(e,g,t,[...i],p,a,l),k7(s,e,a,l,p,i),s===void 0||typeof s=="object")$7(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===U+"TableCustomColumns"){IV(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(Os,"transferManifestEntriesAndFlexChange");function OV(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Hc(r,i,n[i],s),a.push(i),HA(r,n[i],e,l.properties,a)}o(OV,"transferSettingsOfRef");function B7(e,t,n,i,r,a){if(n[t].$ref){e[t]=e[t]??{};let s=n[t].$ref.split(U);OV(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf&&e.template in Qr.v2.cardTemplateSettingsMap){e[t]=e[t]??{};let l=`${U}${Qr.v2.cardTemplateSettingsMap[e.template]}`.split(U);OV(i,l,e,t,r,a)}}o(B7,"processPropertiesOfObject");function H7(e,t,n,i,r,a){let s=Mn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Kn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{Fl(s,u,t,e)}catch(p){re(i.logger,{severity:Qr.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:gm(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&B7(e,t,r,i,a,n)}o(H7,"processOvpProperty");function HA(e,t,n,i,r){for(let a in i)H7(t,a,r,n,i,e)}o(HA,"processOvpProperties");function G7(e,t,n){HA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Qr.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Qr.ManifestSection.ovp].cards[i].template,a=Qr.v2.cardTemplateTypeMap[r]??"CustomCard",s=[...new Set(Object.values(Qr.v2.cardTemplateTypeMap))].filter(l=>l!==a);s.push(a);for(let l of s)e.cards[i]=Hc(n,l,e.cards[i]??{},"CustomCard"),e.cards=Hc(n,l,e.cards,"CustomCard"),HA(n,e.cards[i],t,t.jsonSchema.definitions[l].properties,["cards",i])})}o(G7,"addSettings");function ey(e){let t=new Vi,n=t.createPageInstance(Qr.PageTypeV2.OverviewPage);return e.jsonSchema&&G7(n,e,t),n}o(ey,"createOverviewPageConfig");var xt=Z(ae());function W7(e,t,n,i){var p,g;let r=Kh(e.manifest,i),a=e.jsonSchema.definitions;Xh(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(kn(t.table,e.manifest,s,i,e.logger),jA(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),kn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=Is(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),kn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),kn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let E=v;t.filterBar.selectionFields[E]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),kn(t.filterBar.selectionFields[E],e.manifest,a.SelectionFieldDateSettings,i,e.logger,E)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),kn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=Is(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),kn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[xt.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(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),kn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(W7,"addSettings");function ty(e){if(Xt(),!tf(e))return;let n=new Vi,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=rf(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(nf(a,e.logger,a==null?void 0:a.entitySet),!!a)return W7(e,i,n,r[0]),e.flex.forEach(s=>{Tr(s)&&Wh(i,s,e.jsonSchema,e.logger)}),Zl(i,e,a,xt.PageTypeV2.AnalyticalListPage),Yh(i),i}o(ty,"createAnalyticalListPageConfig");var ti=Z(ae());var af=require("@sap-ux/vocabularies-types/vocabularies/UI");var X7=["filterBar","table","footer"],Q7=ti.UIVOCABULARYALPHADOT.substring(1);function GA(e,t,n,i){cs(e,n,"QuickVariant"),g0(n,"QuickVariantX",t),m0(i,n,"QuickVariantX")}o(GA,"addEnumForVariantPaths");function q7(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[af.UIAnnotationTerms.SelectionPresentationVariant,af.UIAnnotationTerms.SelectionVariant,af.UIAnnotationTerms.PresentationVariant];Ou(e,r,i)}o(q7,"addEnumForFilterBarAnnotationPath");function Y7(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(af.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(af.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(Q7,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(re(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(Y7,"getPresentationVariantForLineItem");function z7(e,t,n){if($c(t,"annotationPath",n))return;let i=Y7(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=Iu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||re(n,{severity:ti.LogSeverity.Warning,message:Q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(z7,"getLineItemAnnotation");function RV(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:U+ti.DefinitionName.LineItems},r=U+ti.DefinitionName.ToolBarLR;FE.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}=Ml(e);if(s){let u=[],p=ef(e.manifest[ti.ManifestSection.generic].pages,u);wl(n);let g=z7(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=yr(a.fullyQualifiedName,g.term,g.qualifier);FE.forEach(E=>{n.definitions[E][ti.SchemaTag.annotationPath]=v})}_l(!1,n,g,a);let m=s.SelectionFields;if(Dm(n,m,a),kl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],a0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return re(e.logger,{severity:ti.LogSeverity.Error,message:Q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;Vl(n,a,p,e.manifest,e.fragments),GA(a,e.entitySet,n,e.serviceAVT),q7(a,n,ti.DefinitionName.ListReportFilterBar),h0(a,n,ti.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 Uo(n,X7),n}o(RV,"generateListReportSchemaV2");var we=Z(ae());var Ep=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 LV(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(LV,"getClassesForSingleSection");function NV(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],LV(n,i,t),NV(n,t)}}o(NV,"getSubsectionClasses");function J7(e,t,n){let i;for(let r in e.sections)i=t.sections[r],LV(i,r,n),NV(i,n)}o(J7,"getExportClassesForSections");function Z7(e,t){let n=ef(t.manifest[we.ManifestSection.generic].pages,e);if(!n){re(t.logger,{severity:we.LogSeverity.Error,message:Q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){re(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(Z7,"findV2Page");function WA(e,t){let n=vm(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(WA,"calculateBaseId");function FV(e,t,n=!1){let i=Ep(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=Z7(a,e),l=new Vi,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:WA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(p,u,[],[],e.jsonSchema)}return i}o(FV,"exportListReportPage");function DV(e,t,n=!1){let i=e.page.config,r=Ep(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=rf(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new Vi,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:WA(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(p,u,[],[],e.jsonSchema)}return r}o(DV,"exportAnalyticalListPage");function _V(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Ep(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Bc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return re(e.logger,{severity:we.LogSeverity.Error,message:Q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new Vi,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&J7(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:WA(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};Os(g,p,[],[],e.jsonSchema)}}return a}o(_V,"exportObjectPage");var VV=o(e=>{let t=Ep();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Vi,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&bp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),eq=o((e,t,n)=>{var s;let i=Ep();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Hm,e);r.settings=Object.assign(new ps,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Mn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Kn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],rs(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&$E(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function wV(e,t){if(e[we.SchemaType.ListReport])return XA(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return _V(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return VV(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return eq(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return DV(e[we.SchemaType.AnalyticalListPage],t)}o(wV,"exportPageV2");function KA(e,t,n=!1){if(e[we.SchemaType.ListReport])return XA(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return _V(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return VV(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return DV(e[we.SchemaType.AnalyticalListPage],t,n)}o(KA,"exportConfigEntityByPathV2");var Fa=Z(ae());function MV(e,t){e.anyOf&&e.anyOf.forEach(function(n){Gc(n,t)})}o(MV,"addAnyOfToReferredTypes");function iy(e){return typeof e.items!="object"||Array.isArray(e.items)?void 0:e.items}o(iy,"getSingleItem");function Gc(e,t){if(typeof e!="object")return;let n=va(e);n&&kV(n,t),MV(e,t),Gc(e.additionalProperties,t),Gc(iy(e),t)}o(Gc,"addReferredTypesFromElement");function kV(e,t){t.referredTypeNames.add(e);let n=t.types[e];Gc(n,t);let i=n.properties;i?Object.values(i).forEach(r=>Gc(r,t)):Gc(iy(n),t),Gc(n.additionalProperties,t)}o(kV,"addReferredTypesFromType");function ny(e,t,n,i,r){if(typeof t!="object")return;let a=va(t);if(a){let s=r.types[a];if(s||(s=e==null?void 0:e.refTypeDefinition,r.types[a]=s),e){let l;if(e.suffix){let p=`${a}<${e.suffix}>`;t.$ref=dm(p),l=structuredClone(s),r.types[p]=l,r.referredTypeNames.add(p)}else r.referredTypeNames.add(a),l=s;let u={pageInfo:i.pageInfo,specificParams:e.specificParams||i.specificParams};QA(n,u,e.syncRuleProvider,l,r)}else kV(a,r)}else QA(n,i,e==null?void 0:e.syncRuleProvider,t,r)}o(ny,"applyAdaptationInfoToElement");function QA(e,t,n,i,r){var v,E;let a={element:i},s=O_(n);if(s!=null&&s.processingRuleAdapter&&(s.processingRuleAdapter(a,t,e),!a.element))return;ny(a.additionalPropertiesAdaptation,i.additionalProperties,e,t,r);let l={pageInfo:t.pageInfo,specificParams:((v=a.referenceAdaptation)==null?void 0:v.specificParams)||t.specificParams},u=i.properties,p;if(u)p=u;else{let b=iy(i);if(b)u={items:b},p=i;else return}let g,m=((E=a.referenceAdaptation)==null?void 0:E.processingRulesAdapter)||function(b,I){g=g||n&&new n;let N=Mn(g,b);N!=null&&N.processingRuleAdapter&&N.processingRuleAdapter(I,t,e)};for(let b in u){let I=u[b];if(typeof I!="object"){p[b]=I;continue}let N={element:{...I}};m(b,N),N.element?(N.controlId?N.element[Fa.SchemaTag.controlId]=`${t.pageInfo.controlId}--${N.controlId}`:N.manifestPath&&(N.element[Fa.SchemaTag.artifactType]="Manifest",N.element[Fa.SchemaTag.manifestPath]=N.manifestPath),MV(N.element,r),ny(N.referenceAdaptation,N.element,e,l,r),ny(N.additionalPropertiesAdaptation,N.element.additionalProperties,e,l,r),ny(N.itemsAdaptation,iy(N.element),e,l,r),p[b]=N.element):delete p[b]}}o(QA,"adjustElement");function tq(e,t,n){let i=t.split("."),r=i[i.length-1],a=t+".view."+(r==="ObjectPage"?"Details":r);return`${e}::${a}::${n}`}o(tq,"getViewId");function jV(e,t,n){var $;Xt();let i=dc(e.manifest,Fa.FioriElementsVersion.v2,n);if(!i||i===Fa.TemplateType.OverviewPageV2)return;let{parent:r}=Xo(e.manifest,e.pagePath);if(!r)return;let a=r.component;if($c(r,"entitySet",n,"string",!0)||$c(a,"name",n,"string",!0))return;let s=r.entitySet,l=a.name,u=t(l),p=u==null?void 0:u.genericSchema,g=u==null?void 0:u.syncRuleProvider;if(!g||!p)return p;let m=e.parsedAnnotations||Ur(e.annotations,n),v=($=m==null?void 0:m.entitySets)==null?void 0:$.find(se=>se.name===s);if(!v)return p;let E=structuredClone(p),b=tq(e.appId,l,s),N={pageInfo:{appId:e.appId,componentName:l,entitySet:s,controlId:b,pagePath:e.pagePath}},j={templateType:i,manifest:e.manifest,serviceAVT:m,fioriElementsVersion:Fa.FioriElementsVersion.v2,entitySet:v,fragments:e.fragments,logger:n,entityType:v.entityType},G={types:E.definitions,referredTypeNames:new Set};QA(j,N,g,E,G);for(let se in E.definitions)G.referredTypeNames.has(se)||delete E.definitions[se];return E}o(jV,"getAdaptedSchema");var ay=Z(ae());var qA=Z(ae());var UV=Z(ae());var oy=class oy{};o(oy,"Share"),h([y({flex:{controlType:o(()=>UV.ControlType.Button,"controlType")},processingRuleAdapter:o(t=>{t.controlId="template::Share"},"processingRuleAdapter")})],oy.prototype,"visible",2);var ry=oy;var Rs=class{};o(Rs,"ListHeaderActions"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:ry}}})],Rs.prototype,"Share",2),Rs=h([y({processingRuleAdapter(e){e.element[qA.SchemaTag.icon]="Export"}})],Rs);var Da=class{};o(Da,"ListHeader"),h([y({processingRuleAdapter(t){t.referenceAdaptation={syncRuleProvider:Rs}}})],Da.prototype,"actions",2),Da=h([y({processingRuleAdapter(e){e.element[qA.SchemaTag.icon]="Header"}})],Da);var bo=class{};o(bo,"ListReportNew"),h([y({flex:{controlType:o(()=>ay.ControlType.DynamicPage,"controlType")},processingRuleAdapter(t){t.controlId="page"}})],bo.prototype,"fitContent",2),h([y({processingRuleAdapter(t){t.element[ay.SchemaTag.propertyIndex]=0,t.referenceAdaptation={syncRuleProvider:Da}}})],bo.prototype,"header",2),bo=h([Zi({id:pV,pageId:yp}),y({processingRuleAdapter(e,t,n){let i=gV(t.pageInfo.pagePath),{entityType:r,uIAnnotations:a}=Ml(n),{value:s}=Xo(n.manifest,i),l={settings:s,entityType:r,uIAnnotations:a};e.referenceAdaptation={specificParams:l}}})],bo);var ZA=require("path"),QV=require("fs");var Er=Z(ae());function nq(e){let t={};return e.flex.forEach(function(i){let r=Tr(i);if(r){let a=r,s=t[a.controlId]||[];s.push(a),t[a.controlId]=s}}),t}o(nq,"getChangeMapFormImportParameters");function YA(e,t,n,i,r){if(e===void 0)return;let a=va(t),s=a?n[a]:void 0;if(t[Er.SchemaTag.conversionExit]&&(e=Qh(!0,r.conversionExitProvider,t,e,i.fragments,void 0,i.logger),!s))return e;if(s)return YA(e,s,n,i,r);if(t.type==="object"&&t.properties&&typeof e=="object"){let l={},u=!1;for(let p in t.properties){let g=t.properties[p],m=YA(e[p],g,n,i,r);m!==void 0&&(u=!0,l[p]=m)}return u?l:void 0}return t.type==="array"&&!Array.isArray(e)?typeof e=="string"&&e!==""?e.split(","):void 0:e}o(YA,"getConfigRep");function $V(e,t,n,i,r,a,s,l){let u=YA(r,a,s,l,t);if(u===void 0)return;let p=e,g=[];n.forEach(function(m){g.push(m);let v=m.propertyName;p[v]=p[v]||t.propertyInstanceProvider(g),p=p[v]}),p[i]=u}o($V,"transferValueToConfig");function iq(e,t,n,i,r,a,s,l){let u=r[Er.SchemaTag.controlId],p=l[u];if(!p)return;let g=-1,m=p.find(function(v,E){return v.content.property===i?(g=E,!0):!1});m&&($V(e,t,n,i,m.type==="propertyBindingChange"?m.content.newBinding:m.content.newValue,r,a,s),p.length===1?delete l[u]:p.splice(g,1))}o(iq,"importFlexChangesToConfigProperty");function rq(e,t,n,i,r,a,s){let l=r[Er.SchemaTag.manifestPath],u,p;Array.isArray(l)?(p=l,u=!0):(p=l.path,u=l.addTargetPropertyToPath);let{hasPath:g,value:m,parent:v}=Xo(s.manifest,p,u?i:void 0);if(!g)return;$V(e,t,n,i,u?m:v,r,a,s)}o(rq,"importManifestToConfigProperty");function BV(e,t,n,i,r,a,s){if(Na(n.properties))for(let l in n.properties){let u=n.properties[l];if(!Na(u))continue;let p=u[Er.SchemaTag.artifactType];if(p===Er.ArtifactType.FlexChange)iq(e,t,i,l,u,r,a,s);else if(p===Er.ArtifactType.Manifest&&u[Er.SchemaTag.manifestPath])rq(e,t,i,l,u,r,a);else{let g=va(u),m=g?r[g]:void 0;if(Na(m)){let v=i.concat([{propertyName:l,propertyType:g.split("<")[0]}]);BV(e,t,m,v,r,a,s)}}}}o(BV,"importDefinitionIntoConfig");function HV(e,t,n){var m;let i=dc(e.manifest,Er.FioriElementsVersion.v2,e.logger);if(!i||i===Er.TemplateType.OverviewPageV2)return;let{parent:r}=Xo(e.manifest,t),a=(m=r==null?void 0:r.component)==null?void 0:m.name,s=typeof a=="string"?n(a):void 0;if(!s)return;let l=nq(e),u=e.jsonSchema,p=u.definitions,g=s.propertyInstanceProvider([]);return BV(g,s,u,[],p,e,l),g}o(HV,"getConfigForPage");var Pi=Z(ae());function oq(e,t,n,i){let r=t===void 0?null:t,a=typeof r=="string"&&r.startsWith("{");i.push({controlId:e[Pi.SchemaTag.controlId],controlType:e[Pi.SchemaTag.controlType],propertyName:n,newValue:r,isBinding:a})}o(oq,"addFlexChangeInfoToList");function GV(e,t,n,i){var l;if(n[Pi.SchemaTag.conversionExit])return Qh(!1,i.conversionExitProvider,n,e,i.fragments,t);if(n.type==="array"&&((l=n.items)==null?void 0:l.type)==="string")return!Array.isArray(e)||e.length===0?t===""||typeof t!="string"?t:void 0:e.join(",");if(e===t||n.type!=="object"||!n.properties)return e;let r=typeof t=="object"&&t!==null?{...t}:{},a=!1,s=!1;for(let u in n.properties){let p=n.properties[u];if(!Na(p))continue;let g=va(p);p=g&&i.globalTypeDefinitions[g]||p;let m=r[u];s=s||m!==void 0;let v=GV(e?e[u]:void 0,m,p,i);v===void 0?delete r[u]:(r[u]=v,a=!0)}return a?r:s?Object.keys(t).every(u=>Na(n.properties[u]))?void 0:r:t}o(GV,"getValueForManifest");function zA(e,t){if(typeof e!="object"||typeof t!="object"||e===null||t===null)return e!==t;if(Array.isArray(e)||Array.isArray(t))return Array.isArray(e)&&Array.isArray(t)?e.length!==t.length||e.some(function(r,a){return zA(r,t[a])}):!0;let n=Object.keys(e).filter(r=>e[r]!==void 0),i=Object.keys(t).filter(r=>t[r]!==void 0);return n.length!==i.length||n.some(function(r){return zA(e[r],t[r])})}o(zA,"isDifferent");function aq(e){return!e||!Object.keys(e).some(t=>e[t]!==void 0)}o(aq,"isEmpty");function sq(e,t,n,i,r){let a=n.manifest,s=e.length-1,l=e[s],u=[];e.some(function(m,v){if(v===s)return!0;let E=a[m];if(typeof E!="object"||E===null)return!0;a=E,u.push(a)});let p=u.length===s?a[l]:void 0,g=GV(t,p,i,r);if(zA(g,p))if(g===void 0){n.manifestChangeIndicator=Pi.ChangeIndicator.Deleted;for(let m=s;m>0;m--){let v=u[m];if(!aq(v))break;let E=u[m-1],b=e[m];delete E[b]}}else{for(let m=u.length;m<s;m++){let v={};a[e[m]]=v,a=v}a[l]=g,n.manifestChangeIndicator=p===void 0?Pi.ChangeIndicator.Created:Pi.ChangeIndicator.Updated}}o(sq,"applyManifestChange");function cq(e,t,n,i,r){let a=e==null?void 0:e[n],s=i[Pi.SchemaTag.artifactType];if(s===Pi.ArtifactType.FlexChange)oq(i,a,n,t.flexList);else if(s===Pi.ArtifactType.Manifest&&i[Pi.SchemaTag.manifestPath]){let l,u=i[Pi.SchemaTag.manifestPath];Array.isArray(u)?l=u.concat([n]):(l=u.path,u.addTargetPropertyToPath&&(l=l.concat([n]))),sq(l,a,t,i,r)}else{let l=va(i),u=l?r.globalTypeDefinitions[l]:void 0;Na(u)&&WV(a,t,u,r)}}o(cq,"transferConfigPropertyToExportResults");function WV(e,t,n,i){let r=n.properties||{};for(let a in r){let s=n.properties[a];Na(s)&&cq(e,t,a,s,i)}}o(WV,"transferConfigToExportResults");function KV(e){let t=e.config,n=e.jsonSchema.definitions,i=(e.fragments||[]).map(function(s){return{...s,changeIndicator:Pi.ChangeIndicator.NoChange}}),r={globalTypeDefinitions:n,conversionExitProvider:e.conversionExitProvider,fragments:i},a={manifest:structuredClone(e.manifest),manifestChangeIndicator:Pi.ChangeIndicator.NoChange,flexList:[],fragments:i};return WV(t,a,e.jsonSchema,r),a}o(KV,"exportPage");var lq=!1,fq={generateListReportSchemaV2(e,t){return RV(e,t)},createListReportConfig(e){return EV(e)},exportListReportPage(e,t,n){return FV(e,t,n)}},JA;function uq(){let e;if(__dirname.endsWith("dist"))e=__dirname;else{let i=__dirname.lastIndexOf("specification");e=(0,ZA.join)(__dirname.substring(0,i+13),"dist")}let t=(0,ZA.join)(e,"schemas","v2","ListReportNewConfig.json");return JSON.parse((0,QV.readFileSync)(t,"utf8"))}o(uq,"getPersistentListReportNewSchema");function pq(){let e=uq();return function(t){return t===yp?{genericSchema:e,syncRuleProvider:bo}:void 0}}o(pq,"createGenericSchemaInfoProvider");function dq(e){return e===yp?{propertyInstanceProvider:o(function(t){return new bo},"propertyInstanceProvider")}:void 0}o(dq,"getConfigInfo");function XV(e){let{value:t}=Xo(e,[Qo.ManifestSection.generic],"pages");return Array.isArray(t)?[Qo.ManifestSection.generic,"pages",0]:t&&typeof t=="object"?[Qo.ManifestSection.generic,"pages",Object.keys(t)[0]]:void 0}o(XV,"getPathForRootPage");function gq(e,t,n){let i=!e.layer||e.layer===Qo.FlexChangeLayer.Customer,r={controlId:n.controlId,controlType:n.controlType,content:{property:n.propertyName},sapui5Version:e.ui5Version,isCustomer:i};return n.isBinding?(r.content.newBinding=n.newValue,r.type="propertyBindingChange"):r.content.newValue=n.newValue,bm(r,t)}o(gq,"flexInfoToChangeString");function mq(){let e=pq(),t=o(function(n,i,r){let a=structuredClone(i.manifest);return a[Qo.ManifestSection.app].id=n,i.flexList.map(gq.bind(null,r,a))},"getFlexChangesAsStrings");return{generateListReportSchemaV2(n){var s;let i=n.manifest,r=XV(i);if(!r)return null;let a={appId:((s=i[Qo.ManifestSection.app])==null?void 0:s.id)||"",manifest:i,pagePath:r,annotations:[],parsedAnnotations:n.serviceAVT,fragments:n.fragments};return jV(a,e,n.logger)},createListReportConfig(n){let i=XV(n.manifest);return HV(n,i,dq)},exportListReportPage(n,i,r){let a=n.fragments?n.fragments.map(function(p){return{...p,changeIndicator:Qo.ChangeIndicator.NoChange}}):[],s={appId:n.appId,config:n.page.config,manifest:n.manifest,jsonSchema:n.jsonSchema,fragments:a,logger:n.logger},l=KV(s),u=t(n.appId,l,i);return{manifest:l.manifest,fragments:l.fragments,flexChanges:u,manifestChangeIndicator:l.manifestChangeIndicator}}}}o(mq,"createPageHandlerLRGeneric");function eP(){return lq?(JA=JA||mq(),JA):fq}o(eP,"getPageHandlerLR");function Sp(e,t){return eP().generateListReportSchemaV2(e,t)}o(Sp,"generateListReportSchemaV2");function sy(e){return eP().createListReportConfig(e)}o(sy,"createListReportConfig");function XA(e,t,n=!1){return eP().exportListReportPage(e,t,n)}o(XA,"exportListReportPage");function ly(e,t){var n,i;return(n=e.component)!=null&&n.name?um(ha((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(ly,"generateId");function hq(e,t,n,i){e.navigation={};let r=qV(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=ly(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(hq,"getPageConfigsAndNavigations");function qV(e,t){var i;let n={};for(let r in e){let a=e[r],s=ly(a,r);if(!s)continue;let l={pageType:ha((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===jn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=sy(p)}else if(l.pageType===jn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=ty(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=Zh(p)}a.pages&&hq(l,a,t,n)}return n}o(qV,"getPagesAndConfigs");var tP=class tP extends us{constructor(t){Xt();let n;t.manifest[jn.ManifestSection.generic]?n=t.manifest[jn.ManifestSection.generic].pages:re(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOFE"),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}}),n||re(t.logger,{severity:jn.LogSeverity.Error,message:Q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:jn.MANIFESTPATH,range:[jn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&ly(n[i],i),a=new ps,s=Dt(jn.SchemaType.Application),l=t.appSchemas[s.filename];kn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,qV(n,t),a)}};o(tP,"V2AppProvider");var cy=tP;function Ap(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||re(n,{severity:jn.LogSeverity.Error,message:Q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:jn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=ly(l,s);i[u]=l}if(t===jn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Ap(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Ap,"getPages");var Wc=Z(ae());var nP=class nP extends us{constructor(t){let n={},i=t.manifest[Wc.ManifestSection.ovp],r=new ps,a=Dt(Wc.SchemaType.Application);kn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Wc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Wc.PageTypeV2.OverviewPage,config:ey(l),entitySet:i.globalFilterEntitySet},p=um(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(nP,"V2OvpProvider");var fy=nP;var _=Z(ae()),Kc=require("@sap-ux/vocabularies-types/vocabularies/UI");var yq=["header","filterBar","chart","table"],iP="@UI.LineItem";function rP(e,t,n,i,r){i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=yr(e.fullyQualifiedName,Kc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+ft(s.value);s.type==="PropertyPath"&&(l=sm(s,e)),i.properties[u]={$ref:U+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=Hr(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++}),i}o(rP,"addSelectionFields");function Tq(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Kc.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(Tq,"getVisualFilters");function vq(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(vq,"getPropertiesIndex");function bq(e,t,n,i){var s,l,u,p,g,m;let r=vq(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let E=n[v];if(!E.template){let b=a.properties[v]={$ref:si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let N=vt(_.DefinitionName.VisualFilter,v,t);(s=E.visualFilter)!=null&&s.valueList&&(N[_.SchemaTag.annotationPath]=`${v}/@${E.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();N.description=j||v,N[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(bq,"addVisualFilters");function Eq(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},Y_(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&as(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(Eq,"applyCustomFilterFields");function Sq(e,t,n,i){var l,u;let r=Tq(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={},bq(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=rP(e,t,a,s),Eq(t,s,n)}o(Sq,"addFilterBar");function YV(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=ft(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=ci(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(YV,"defineActions");function zV(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"?Ll(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(zV,"findTheRightVisualization");function Aq(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(Aq,"analyzeChartAnnotation");function Pq(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=zV((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(re(r,{severity:_.LogSeverity.Error,message:Q.t("NOVISUALIZATIONS")}),s=iP,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(Pq,"analyzeSPVforView");function sf(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=zV(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return Pq(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=iP,m=`/${s}/@${Kc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=iP;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}=Aq(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(sf,"analyzeViewAnnotation");function xq(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];if(i[a]){let s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}else Pa(r,Q.t("UNEXISTING_ANNOTATION_PATH"))}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(xq,"addALPChartView");function Cq(e,t,n,i,r,a){var j,G,$,se,te,le,Re,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(se=($=(G=t==null?void 0:t[0])==null?void 0:G.primary)==null?void 0:$[0])==null?void 0:se[_.SchemaTag.annotationPath],{targetAnnotation:u}=sf(l,s,n.serviceAVT,"primary",void 0,n.logger);xq(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=U+p,YV(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=sf((Re=(le=(te=t==null?void 0:t[0])==null?void 0:te.secondary)==null?void 0:le[0])==null?void 0:Re[_.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 E=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(E)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],E.additionalProperties=!1,E.description="Table (key: secondary)",E.title="Table",g?(delete E.properties,E.$ref=`${U}${_.DefinitionName.ALPTable}`):i||(E.properties={}),E[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,I;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=i.split(_.UIVOCABULARYDOT)[1]),b){let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(Ue,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let $e=s[I].fullyQualifiedName.split("@");E[_.SchemaTag.annotationPath]=`/${$e[0]}/@${$e[1]}`,E[_.SchemaTag.key]="secondary",E[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}yc(e,r,n.logger);let N=`${_.DefinitionName.Actions}<${ft(_.DefinitionName.LineItems)}>`;Sa(e,r,n.logger,void 0,N),fo(e,N,_.DefinitionName.CustomActionPosition)}o(Cq,"addALPViews");function Iq(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 YV(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${U}${r}`,n}o(Iq,"addViewChartDefinitions");function Oq(e,t,n,i,r,a){let s=Iq(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(Oq,"addViewChart");function Rq(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=vt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),ls(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},ls(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};Tc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(Rq,"addViewLineItems");function Lq(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(Lq,"addTagsToView");function Nq(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(Nq,"getTargetEntityType");function Fq(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Kc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=vt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);ls(l.properties.position,_.DefinitionName.ViewPosition,r),vt(_.DefinitionName.ViewPosition,r,e.appSchema),yc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),vc(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}>`;Sa(e.appSchema,i,t.logger,p,u,s),vt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${U}${g}`,fo(e.appSchema,u,g)}o(Fq,"addViewCustomExtensions");function Dq(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)Rq(n,t,e,n.targetAnnotation,i),Fq(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)Oq(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(Dq,"addLRViewParts");function _q(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=Nq(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:E,namespace:b,title:I}=sf(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(G=>G.targetTypeName===b))==null?void 0:l.name);let N=ft(u[_.SchemaTag.key]),j={viewKey:N,appSchema:e,targetAnnotation:E,navPropName:p,targetEntityType:g,title:I,entitySet:u.entitySet};Dq(v,s,j,n,i,m,u),Lq(s,N,b,u)}}o(_q,"addLRViews");function Vq(e,t,n,i,r,a){var g,m,v,E,b,I,N,j,G,$,se,te,le;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=sf(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Re=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${ft(Re)}`,Ue=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete Ue[_.SchemaTag.isViewNode],ls(Ue.properties.toolBar,_.DefinitionName.ToolBar,D),Ue[_.SchemaTag.annotationPath]=u,Ue.properties.columns={},ls(Ue.properties.columns,D),delete s.properties,ls(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let $e=(m=t.entityType)==null?void 0:m.annotations.UI[Re];$e||re(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOTARGET",{target:Re})});let qe={isObjectPage:!1,appSchema:e,lineItemAnnotation:$e,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Tc(qe);let nn=(v=Re.split("#"))==null?void 0:v[1],$t=nn?`@${Kc.UIAnnotationTerms.LineItem}#${nn}`:`@${Kc.UIAnnotationTerms.LineItem}`;yc(e,i,t.logger,void 0,D,$t),vc(e,D,i,void 0,$t);let St=`${_.DefinitionName.Actions}<${D}>`,qt=$m(e,D,_.DefinitionName.CustomTableAction);Sa(e,i,t.logger,zt(qt),St,$t),fo(e,St,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${U}${_.DefinitionName.ToolBarLR}`,ls(s.properties.columns,_.DefinitionName.LineItems);let Re=(I=(b=(E=t.entityType)==null?void 0:E.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Re&&!((G=(j=(N=i.options)==null?void 0:N.settings)==null?void 0:j.views)!=null&&G.paths)&&re(t.logger,{severity:_.LogSeverity.Error,message:Q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Re,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Tc(D),yc(e,i,t.logger),vc(e,_.DefinitionName.LineItems,i),Re&&!((te=(se=($=i.options)==null?void 0:$.settings)==null?void 0:se.views)!=null&&te.paths)&&(s[_.SchemaTag.annotationPath]=yr((le=t.entityType)==null?void 0:le.fullyQualifiedName,Re.term,Re.qualifier));let Ue=`${_.DefinitionName.Actions}<${ft(_.DefinitionName.LineItems)}>`;Sa(e,i,t.logger,void 0,Ue),fo(e,Ue,_.DefinitionName.CustomActionPosition)}}o(Vq,"adaptTableDefinition");function wq(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(wq,"getDefaultAnnotationPath");function Mq(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=wq(t,n.entityType,n.templateType),l=Q_(e,n);Sq(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(Vq(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],_q(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&&(Cq(e,r,n,s,t,l),vc(e,_.DefinitionName.LineItems,t))}o(Mq,"addTableAndViews");function kq(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",Pm(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;vt(l,l,e,!1),s.properties.position.$ref=`${U}${l}`,fo(e,i,l)}o(kq,"addHeaderActions");function Pp(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&oi(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,cs(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return re(e.logger,{severity:_.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Am(l,n,e.entitySet,i);if(!u)return r;kq(r,u,e.logger),Mq(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Uo(r,yq),r}o(Pp,"generateListReportSchemaV4");var $i=require("@sap-ux/vocabularies-types/vocabularies/UI"),R=Z(ae());var HM=Z(uc()),GM=Z(BM()),WM=Z($P());var KM=Z(ae()),XM=Z(ae());function f9(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(f9,"findElementByXMLPath");function QM(e,t){return e[t]?!1:(e[t]={},!0)}o(QM,"ensureObjectExists");function u9(e,t){let n={},i=zt(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(u9,"getPropertiesFromRef");function p9(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=QM(l,i),m=l[i];return Zc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(p9,"traverseDefaultAggregation");function d9(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(d9,"isDefaultAggregationAppliable");function Zc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=u9(s,n.$ref));for(let v in u){let E=u[v],b=typeof E=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&d9(u,p)&&(l=p9(e,t,p)||l,b=!1),!!b)if((m=(g=E.metadata)==null?void 0:g.path)!=null&&m.length){let I=E.metadata.path,N=I.slice(r.length),j=f9(i,N);l=QM(a,v)||l;let G=a[v];l=Zc({fullSchema:e.fullSchema,schema:E,element:j,contextPath:I,config:G,parent:e},t)||l}else l=t(e,E,a,v)||l}return l}o(Zc,"traverseSchema");function Pf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,WM.parse)(e.fileContent),s=(0,GM.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,HM.xml2js)(e.fileContent)}catch(r){re(n,{severity:XM.LogSeverity.Error,message:Q.t("XMLPARSEFAILURE",{error:gm(r)}),location:{path:e.dataSourceUri}})}return i}o(Pf,"parseXML");function xf(e){return`${KM.DefinitionName.CustomExtensionFragment}<${e}>`}o(xf,"getCustomExtensionFragmentDefinitionKey");function nT(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(nT,"getRootElement");var JP=Z(ae()),ZP=Z(ae());var zp=Z(ae());function ws(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(ws,"getAttribute");function qM(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(qM,"getNodeByName");function g9(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(g9,"resolveMetaPath");function XP(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=ws(t,"contextPath")||i.contextPath,a=ws(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let I=g9(a);I.path&&(u=l?I.path:`${u}/${I.path}`,a=I.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let E;if(a){let I=a.split(".");I.length&&(E=I[I.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:E}:void 0}o(XP,"getEntityTypeResolution");function YM(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(YM,"applyAnnotationPath");function m9(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=sf(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=Xb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(m9,"getTableLineItemAnnotationData");var zM={"sap.fe.macros.Chart":o(e=>{let t=XP(e);YM(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=XP(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=oi(zp.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]);rP(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=XP(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=oi(zp.UIVOCABULARY,n);if(YM(t,r),t.annotationPath){let u=m9(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:zp.DefinitionName.LineItems,isMacro:!0};lE(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var JM=Z(ae());var h9=new Map([["filterFields","SelectionField::"]]),y9=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Jp={anchor:"anchor",placement:"placement",key:"key"};function T9(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[zt(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Jp.anchor in r&&Jp.placement in r}return!1}o(T9,"isCustomExtensionSchema");function ZM(e){let t=h9.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=y9.get(e),t&&(n.prefix=t)),n}o(ZM,"getAnnotationPrefix");function v9(e,t,n,i){let r=t.properties[n],a=ZM(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=ws(l,Jp.key)||n,p=ws(l,Jp.anchor),g=ws(l,Jp.placement)||JM.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(v9,"getExtensionData");function b9(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}=v9(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ba(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(b9,"updatePropertyIndices");function E9(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=ws(e.subElements[s],"key")||r}return r}o(E9,"getCorrectedAnchorEnumKey");function S9(e,t,n,i){var a,s;let r=ZM(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;as(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=E9(e,m.const,r,t.properties[m.const]))}}o(S9,"applyEnumsForAnchors");function ek(e,t,n,i){T9(t,n)&&(i=i||e.name,b9(e,t,i),S9(e,t,n,i))}o(ek,"handleExtensions");var di=[];for(let e=0;e<256;++e)di.push((e+256).toString(16).slice(1));function tk(e,t=0){return(di[e[t+0]]+di[e[t+1]]+di[e[t+2]]+di[e[t+3]]+"-"+di[e[t+4]]+di[e[t+5]]+"-"+di[e[t+6]]+di[e[t+7]]+"-"+di[e[t+8]]+di[e[t+9]]+"-"+di[e[t+10]]+di[e[t+11]]+di[e[t+12]]+di[e[t+13]]+di[e[t+14]]+di[e[t+15]]).toLowerCase()}o(tk,"unsafeStringify");var nk=require("crypto");var rT=new Uint8Array(256),iT=rT.length;function QP(){return iT>rT.length-16&&((0,nk.randomFillSync)(rT),iT=0),rT.slice(iT,iT+=16)}o(QP,"rng");var ik=require("crypto"),qP={randomUUID:ik.randomUUID};function A9(e,t,n){var r;if(qP.randomUUID&&!t&&!e)return qP.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??QP();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 tk(i)}o(A9,"v4");var YP=A9;var zP="sap.fe.macros",P9=["id","key","title","text","label","header"];function rk(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(rk,"getElementName");function x9(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(x9,"isElementWithNamespace");function C9(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(C9,"getDependencies");function I9(e,t){let n="",i=e.attributes||[];for(let r of P9){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(I9,"getViewNodeDescription");function O9(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(O9,"findAvailableName");function ok(e,t){if(e.properties={},e.$ref){let n=zt(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(ok,"prepareSchemaProperties");function R9(e,t,n){t.properties||ok(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(R9,"handleAttributes");function L9(e){e.type===ZP.MacrosPropertyType.Control&&(e.internalId=YP())}o(L9,"applyIdForMacros");function N9(e,t,n){var i,r;try{(r=(i=zM)[e])==null||r.call(i,t)}catch{re(n,{severity:JP.LogSeverity.Error,message:Q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(N9,"callAnnotationHandler");function F9(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===ZP.MacrosPropertyType.Control&&(e.controlName=n)}o(F9,"updateMetadataByReference");function D9(e,t,n,i){var v,E,b,I,N;let r=n.schema;t.properties||ok(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(E=a==null?void 0:a.metadata)==null?void 0:E.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?O9(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(zt(a.$ref)):g=[`${zP}.${i}`,`${zP}.table.${i}`,`${zP}.filterBar.${i}`];let m=!1;for(let j of g){let G=(N=r.definitions)==null?void 0:N[j];if(typeof G!="object")continue;F9(u,G,j);let $=I9(e,i),se={$ref:dm(j),description:$,propertyIndex:n.index,metadata:u};R9(e,se,r),t.properties[p]=se,m=!0,N9(j,{...n,node:e,schema:se,rootSchema:n.schema},n.logger);break}if(L9(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(D9,"addControlToSchema");function ak(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)}ak(r,t)}}o(ak,"populateUsedDefinitionKeys");function _9(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let n=t.additionalProperties.$ref,i=zt(n),r=i.split(".");if(i==="sap.ui.core.Control"||r[r.length-1]===e.name)return!0}return!1}o(_9,"isElementAddableToSchema");function V9(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!qM(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(V9,"getDefaultAggregation");function w9(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,sk(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:rk(s),index:a}]},i)}}o(w9,"handleSubElementsOfXMLNode");function sk(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[zt(t.$ref)]:t;if(x9(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let E=(v=t.metadata)==null?void 0:v.defaultAggregation;E&&_9(e,t.properties[E])&&(t=t.properties[E]);let b=e.name.split(":"),I=D9(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];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),ak(t,i));let p=V9(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),w9(l,t,n,i),r.push({node:e,schema:t});for(let E of r)ek(E.node,E.schema,n.schema,E.name)}o(sk,"handleXMLNode");function M9(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(M9,"getMacrosPrefixes");function el(e,t,n,i){let r=Pf(t.file,!0,i),a=[];if(!r)return;Xt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){re(i,{severity:JP.LogSeverity.Error,message:Q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=C9(l),p=M9(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],E=!g[v.name];g[v.name]=!0,sk(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:E,path:[{name:rk(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(el,"generateMacrosSchemaDefinition");function ck(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&&ck(i.subSections,t)}}o(ck,"populateTemplates");function lk(e,t,n,i){var s,l,u;let r=bc(n.manifest,i),a=[];ck(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=xf(p);e.definitions[m]=g;let v=Ec(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:E={},definitions:b={}}=el(t,v,n.serviceAVT,n.logger)||{};g.properties=E;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o(lk,"resolveFragments");var k9=["header","layout","sections","footer"],j9=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],tx="Custom Action";function gk(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=Mm(t.item,e),p=Br(t.item),m=t.item.$Type===$i.UIAnnotationTypes.DataFieldForActionGroup,v=m?R.DefinitionName.ObjectPageHeaderActionGroup:R.DefinitionName.ObjectPageHeaderAction,E=t.item.fullyQualifiedName.replace(`@${$i.UIAnnotationTerms.Identification}`,`/@${$i.UIAnnotationTerms.Identification}`),b=`${v}<${ft(p)}>`,I=i.definitions[b]={type:"object",$ref:`${U}${v}`,description:ci(t.item,r)};if(I[R.SchemaTag.isViewNode]=!0,I[R.SchemaTag.dataType]=Hr(t.item),I[R.SchemaTag.propertyIndex]=s,m){I.properties={},Pa(I,Q.t("ACTION_GROUPS_ARENT_SUPPORTED"));let N=(t.item.Actions??[]).map((j,G)=>({item:j,index:G}));ex(N,e,i,r,I,R.ActionType.Annotation)}else I[R.SchemaTag.keys]=[],t.item[R.SchemaKeyName.semanticObject]&&I[R.SchemaTag.keys].push({name:R.SchemaKeyName.semanticObject,value:t.item[R.SchemaKeyName.semanticObject]}),I[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:l});u&&(i.definitions[b][R.SchemaTag.target]=u),I[R.SchemaTag.actionType]=n,I[R.SchemaTag.annotationPath]=`/${E}`,a.properties[p]={$ref:`${U}${b}`},a.properties[p][R.SchemaTag.propertyIndex]=s}o(gk,"addSingleHeaderActionV4");function fk(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[R.SchemaTag.isViewNode]=!0,s[R.SchemaTag.propertyIndex]=i,s[R.SchemaTag.keys]=[],s[R.SchemaTag.keys].push({name:R.SchemaKeyName.action,value:e}),s[R.SchemaTag.actionType]=R.ActionType.Standard,n.properties[r]={$ref:`${U}${a}`},n.properties[r][R.SchemaTag.propertyIndex]=i,s}o(fk,"addStandardHeaderAction");function uk(e,t,n,i,r,a){let s=Br(e.item),l=ci(e.item,n),u=ft(`${R.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${$i.UIAnnotationTerms.Identification}`,`/@${$i.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${U}${R.DefinitionName.FooterActionV4}`,description:l};g[R.SchemaTag.isViewNode]=!0,g[R.SchemaTag.actionType]=t,g[R.SchemaTag.propertyIndex]=a,g[R.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${U}${u}`}}o(uk,"addSingleFooterAction");function U9(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===$i.UIAnnotationTypes.DataFieldForAction||i.$Type===$i.UIAnnotationTypes.DataFieldForActionGroup||i.$Type===$i.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(j9.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(U9,"groupByCriticality");function $9(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&&(gk(t,e[s],R.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o($9,"addCopyAction");function ex(e,t,n,i,r,a,s=0){let l=s;for(let u of e)gk(t,u,a,n,i,r,l),l++}o(ex,"addGroupedHeaderActions");function B9(e){let t="RelatedApps",n=e.properties[t]={$ref:`${U}${t}`,description:"Related Apps"};n[R.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[R.SchemaTag.artifactType]=R.ArtifactType.Manifest,n[R.SchemaTag.actionType]=R.ActionType.Standard,n[R.SchemaTag.isViewNode]=!0,n[R.SchemaTag.keys]=[{name:R.SchemaKeyName.action,value:t}]}o(B9,"addRelatedAppsButton");function pk(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[R.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`:e[R.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${R.UIVOCABULARYALPHADOT}${i}`}o(pk,"setAnnotationPathFromEntitySetOrEntityType");function H9(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?U9(n):{};if(ex(s,r.serviceAVT,t,e,i,R.ActionType.Criticality),r.entitySet){let p=s0(r.entitySet),g=c0(r.entitySet);if(_m(r.entitySet)&&g){let m=fk("Edit",t,i,s.length);pk(m,r.entitySet,e,"UpdateHidden")}if(p){let m=fk("Delete",t,i,s.length+1);pk(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;$9(l,r.serviceAVT,t,e,i,u),ex(l,r.serviceAVT,t,e,i,R.ActionType.Annotation,u),mk(t,a,R.DefinitionName.CustomHeaderActionOP,r.logger),B9(i)}o(H9,"addHeaderActionCallBackV4");function G9(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===$i.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];uk(l,R.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];uk(l,R.ActionType.Annotation,e,t,n,r.length+s)}}o(G9,"addFooterActionCallBackV4");function W9(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${$i.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomColumnOP}<${n}>`:R.DefinitionName.CustomColumnOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${R.DefinitionName.CustomColumnOP}<${n}>`;yc(e,t,r,u,n,i);let p=a?n:R.DefinitionName.PositionOP;vt(R.DefinitionName.PositionOP,p,e,a);let g=a?`${R.DefinitionName.PositionOP}<${n}>`:R.DefinitionName.PositionOP;l.properties.position.$ref=`${U}${g}`,vc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&aE(m,l)}o(W9,"addCustomColumnsOP");function K9(e,t,n,i,r){let a=n!==R.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${$i.UIAnnotationTerms.LineItem}`,s=a?`${R.DefinitionName.CustomTableActionOP}<${n}>`:R.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[R.SchemaTag.isViewNode]=!0,l.description=tx;let u=`${R.DefinitionName.CustomTableActionOP}<${n}>`,p=`${R.DefinitionName.Actions}<${ft(n)}>`;Sa(e,t,r,u,p,i);let g=a?n:R.DefinitionName.CustomActionPositionOP;vt(R.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${R.DefinitionName.CustomActionPositionOP}<${n}>`:R.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${U}${m}`,fo(e,p,m)}o(K9,"addTableCustomActionsOP");function mk(e,t,n,i){let r=e.definitions[n];r[R.SchemaTag.isViewNode]=!0,r.description=tx;let a=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.ObjectPageHeaderActions:R.DefinitionName.FooterActions;Pm(e,t,i,n,a);let s=n===R.DefinitionName.CustomHeaderActionOP?R.DefinitionName.CustomHeaderActionPositionOP:R.DefinitionName.CustomFooterActionPositionOP;vt(s,s,e,!1),r.properties.position.$ref=`${U}${s}`,fo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${U}${n}`})}o(mk,"addHeaderFooterCustomActionsOP");function X9(e,t,n,i,r){let a=`${R.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[R.SchemaTag.isViewNode]=!0,s.description=tx;let l=`${R.DefinitionName.CustomFormActionOP}<${n}>`,u=`${R.DefinitionName.SectionActions}<${ft(n)}>`;Sa(e,t,r,l,u,i),vt(R.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${R.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${U}${p}`,fo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${U}${a}`})}o(X9,"addFormCustomActionsOP");function Q9(e,t,n,i,r,a,s){let l=Ac(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=vt(R.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${U}${l}`},g.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=si(R.DefinitionName.QuickVariantSelectionV4OP,t);let m=vt(R.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=si(R.DefinitionName.AnnotationPathAsObject,t),vt(R.DefinitionName.AnnotationPathAsObject,t,n),cs(e.entityType,n,`${R.DefinitionName.AnnotationPathAsObject}<${l}>`);let v={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Tc(v,R.DefinitionName.ObjectPageTableColumn,R.DefinitionName.CustomColumnOP,R.DefinitionName.CustomTableActionOP),W9(n,a,l,t,s),K9(n,a,l,t,s),g}o(Q9,"handleLineItem");function hk(e,t,n,i,r,a,s){s&&oT(s,t,R.DefinitionName.ObjectPageSectionTableV4);let l=vt(R.DefinitionName.ObjectPageSectionTableV4,t,n);Ta(e,l,Ac(t)),is(e,l,Ac(t)),l[R.SchemaTag.annotationPath]=e.annotationPath,l[R.SchemaTag.target]=e.namespace,l.properties.table.$ref=si(R.DefinitionName.ObjectPageTable,t);let u=Q9(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(hk,"handleSectionTable");function q9(e,t,n,i,r,a,s){let l;a===R.SectionType.Section?l=R.DefinitionName.ObjectPageSectionForm:a===R.SectionType.HeaderSection&&(l=R.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:si(l,n)};let u=vt(l,n,r);e.ID||(u.properties={}),Ta(e,u,n),is(e,u,n),u[R.SchemaTag.annotationPath]=e.annotationPath,u[R.SchemaTag.target]=e.namespace,u[R.SchemaTag.isViewNode]=!0;let p=wm(a,e,u,r,R.FioriElementsVersion.v4,n);if(e.base===R.FacetBase.Form){let g=Ac(n);vt(R.DefinitionName.CustomFormActionOP,p,r),X9(r,t,p,g,s)}}o(q9,"handleFormIdentification");function dk(e,t,n,i,r){n.properties[t]={$ref:`${U}${r}`};let a=vt(R.DefinitionName.CommonHeaderFacetSettings,r,i,!1);Rl(e,a,t),a[R.SchemaTag.annotationPath]=e.annotationPath,a[R.SchemaTag.target]=e.namespace,a[R.SchemaTag.dataType]=Pc(e==null?void 0:e.target),a[R.SchemaTag.isViewNode]=!0}o(dk,"handleHeaderFacet");function Y9(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=s,u=ci(l,i),p=l.$Type.split(R.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:si(R.DefinitionName.ObjectPageToolBarAction,g),description:u};m[R.SchemaTag.propertyIndex]=a,m[R.SchemaTag.annotationType]=l.$Type;let v=vt(R.DefinitionName.ObjectPageToolBarAction,ft(g),n);v[R.SchemaTag.annotationPath]=Bm(l),v[R.SchemaTag.dataType]=Hr(l),v.properties={},a++})}return r}o(Y9,"handleChartActions");function z9(e,t,n,i){let r=vt(R.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[R.SchemaTag.annotationPath]=Bm(e),r[R.SchemaTag.dataType]=Pc(e.target||e),r[R.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=si(R.DefinitionName.ObjectPageToolBar,t);let a=vt(R.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=si(R.DefinitionName.ObjectPageToolBarActions,t);let s=Y9(e,t,n,i);return{chart:r,chartActions:s}}o(z9,"handleChart");function yk(e,t,n,i,r=e.entityType,a=!1,s){let l=a?R.DefinitionName.CommonHeaderFacetSettings:R.DefinitionName.ObjectPageSectionChart,u=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart;i&&oT(i,t,l);let p=Ru(u,t),g=vt(l,p,n,!1);if(Rl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[R.SchemaTag.annotationPath]=Bm(e),g.properties.chart.$ref=si(R.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=z9(e.target||e,t,n,r);return m[R.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:v}}o(yk,"handleSectionChart");function J9(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${ME(r,n.serviceAVT)}`,l=s.split(R.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(J9,"getVisualizationKeyAndType");function Z9(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(Z9,"getTargetFromNavigation");function ez(e,t,n){let i=e.target[R.FacetBase.PresentationVariant]?e.target[R.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=J9(!!r,a,n),p=r?a:Z9(n,s,u),g=e.target[R.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(ez,"getVisualizationProps");function oT(e,t,n,i){e.properties[t]={$ref:si(n,i||t)}}o(oT,"addPropertyRef");function Tk(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Tk,"getSectionPropertyRef");function tz(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=Tk(t,r);oT(i,l,R.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=hk(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[R.SchemaTag.annotationPath]=e.annotationPath,Rl(e,p,t),delete p[R.SchemaTag.isViewNode],g[R.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[R.SchemaTag.target]=r.namespace}o(tz,"addPVLineItemSection");function nz(e,t,n,i,r,a=!1){let s=a?R.DefinitionName.ObjectPageHeaderSectionChart:R.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=Tk(t,r);oT(i,l,s,u);let{parentChartRef:p}=yk(r.target,u,n,void 0,e.entityType,a,r.namespace);p[R.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(Ta(e,p,t),E_(e,p)):Rl(e,p,t)}o(nz,"addPVChartSection");function iz(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){re(a.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=ez(e,t,a),u=r===R.SectionType.HeaderSection;l&&(l.type.startsWith(R.Visualization.Chart)?nz(e,t,n,i,l,u):l.type.startsWith(R.Visualization.LineItem)&&tz(e,t,n,i,l,a,s))}o(iz,"handleSectionPresentationVariant");function rz(e){let t=e.facets||{};for(let n in t)if(t[n].base===R.FacetBase.CollectionFacet)return!0;return!1}o(rz,"containsCollectionFacet");function oz(e,t,n){var a;let i=`${R.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[R.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};gc(n,R.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(oz,"createCustomSubSectionReference");function az(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=vt(n,p,e),m=vt(R.DefinitionName.ObjectPageCustomSectionActions,p,e),v=vt(R.DefinitionName.CustomSectionActionOP,p,e),E=`${R.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${U}${E}`};let b=`${R.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${U}${b}`},vt(R.DefinitionName.CustomSectionActionPositionOP,p,e);let I=`${R.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${U}${I}`,v[R.SchemaTag.isViewNode]=!0,Sa(e,t,i,b,E,p),fo(e,E,I)}}o(az,"applyCustomActionsToCustomSections");function nx(e,t,n,i,r,a,s){var m,v,E,b,I;let l=!1,u;a&&s?(l=!rz(a),u=oz(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${U}${u}`},q_(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&as(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[R.SchemaKeyName.id,R.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(R.DefinitionName.ObjectPageCustomSectionFragment)){let N=t.definitions[R.DefinitionName.ObjectPageCustomSectionActions];N.properties={},az(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(R.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let N=(I=(b=(E=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:E.body)==null?void 0:b.sections)==null?void 0:I[s],j=N&&"subSections"in N?N.subSections:{};for(let G=g.oneOf.length-1;G>=0;G--){let $=g.oneOf[G];j[$.const]||($.hidden=!0)}}}o(nx,"applyCustomSections");function sz(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=ko(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[R.SchemaTag.annotationPath]=e.annotationPath,g[R.SchemaTag.target]=e.namespace,g[R.SchemaTag.keys]=[{name:R.SchemaKeyName.id,value:e.ID}],g[R.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)ix(a,e.facets,v,g,n,r,s,m);u&&nx(g,n,a,s,R.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(sz,"handleCollection");function ix(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${Ac(n)}>`;switch(u.base){case R.FacetBase.PresentationVariant:case R.FacetBase.SelectionPresentationVariant:{iz(u,n,r,i,a,e,s);break}case R.FacetBase.CollectionFacet:{sz(u,n,r,i,a,e,s,l);break}case R.FacetBase.LineItem:{if(a===R.SectionType.Section){let g=t[n];hk(u,n,r,g,e,s,i)}break}case R.FacetBase.Form:case R.FacetBase.Identification:{q9(u,s,n,i,r,a,e.logger);break}case R.FacetBase.DataPoint:{dk(u,n,i,r,p);break}case R.FacetBase.Chart:{a===R.SectionType.HeaderSection?dk(u,n,i,r,p):a===R.SectionType.Section&&yk(u,n,r,i);break}case R.FacetBase.Address:case R.FacetBase.Contact:{Lu(u,n,i,r,a);break}default:i.properties[n]=ko(r,u,n)}}o(ix,"addSection");function cz(e,t,n){let i=fm(e.entityType,e.serviceAVT,R.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[R.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[R.DefinitionName.Sections];for(let a in i)ix(e,i,a,r,t,R.SectionType.Section,n);nx(r,t,e,n,R.DefinitionName.ObjectPageCustomSectionFragment)}o(cz,"addSections");function lz(e,t,n,i){let r=lm(n,e.serviceAVT,R.FioriElementsVersion.v4,e.logger),a=t.definitions[R.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)ix(e,r,s,a,t,R.SectionType.HeaderSection,i);nx(a,t,e,i,R.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[R.DefinitionName.ObjectPageHeaderSectionAddress]}}o(lz,"addHeaderSections");function fz(e,t,n){let i=e.entityType;Um(t,i),jm(t,i,e,H9,n),i&&(t.definitions[R.DefinitionName.HeaderSections][R.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${$i.UIAnnotationTerms.HeaderFacets}`),lz(e,t,i,n)}o(fz,"addHeader");function Zp(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${U}${R.DefinitionName.Sections}`},!e.manifest[R.ManifestSection.ui5].routing||!e.manifest[R.ManifestSection.ui5].routing.targets)return re(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:R.MANIFESTPATH}}),r;let a=r.definitions[R.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:R.DefinitionName.Sections};if(a[R.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[R.ManifestSection.ui5].routing.targets;if(!s)return re(e.logger,{severity:R.LogSeverity.Error,message:Q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:R.MANIFESTPATH,range:[R.ManifestSection.generic]}}),r;let l=Am(s,R.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(fz(e,r,l),a[R.SchemaTag.isViewNode]=!0,e.entityType&&(a[R.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${$i.UIAnnotationTerms.Facets}`),gc(e.featureToggles,R.Features.BuildingBlocks)&&i){r.definitions[R.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{lk(r,i,e,l.id)}catch(u){re(e.logger,{severity:R.LogSeverity.Error,message:u})}}cz(e,r,l),km(r,e,R.FioriElementsVersion.v4,G9),mk(r,l,R.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[R.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[R.DefinitionName.GenericColumnsOP],delete r.definitions[R.DefinitionName.GenericSections],delete r.definitions[R.DefinitionName.GenericSubSections],delete r.definitions[R.DefinitionName.ObjectPageChart],delete r.definitions[R.DefinitionName.ObjectPageSectionAddress],delete r.definitions[R.DefinitionName.ObjectPageSectionChart],delete r.definitions[R.DefinitionName.ObjectPageSectionContact],delete r.definitions[R.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[R.DefinitionName.ObjectPageSectionForm],delete r.definitions[R.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[R.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[R.DefinitionName.ObjectPageSubSections],delete r.definitions[R.DefinitionName.ObjectPageTable],delete r.definitions[R.DefinitionName.ObjectPageToolBar],delete r.definitions[R.DefinitionName.ObjectPageToolBarAction],delete r.definitions[R.DefinitionName.ObjectPageToolBarActions],delete r.definitions[R.DefinitionName.QuickVariantSelectionV4OP],Uo(r,k9),r}o(Zp,"generateObjectPageSchemaV4");function rx(e,t){return JSON.parse(JSON.stringify(t))}o(rx,"generateFreestyleSchemaV4");var Zr=Z(ae());function ox(e,t,n,i,r,a,s,l,u){let p=Ur(n,r),{entitySet:g,entityType:m}=tl(p,s,t,r),v={templateType:Zr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Zr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Zp(v,e,s,l)}o(ox,"generateObjectPageInterfaceV4");function aT(e,t,n,i,r,a,s){Xt();let l=Ur(i,r),{entitySet:u,entityType:p}=tl(l,s,n,r),g={templateType:e,fioriElementsVersion:Zr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Zr.TemplateType.ListReportObjectPageV4?Zr.v4.FE_TEMPLATE_V4_LIST_REPORT:Zr.v4.FE_TEMPLATE_V4_ALP;return Pp(g,t,m,s)}o(aT,"generateListReportInterfaceV4");function ax(e,t,n,i,r,a){let s=Ur(n,a),l={templateType:e,fioriElementsVersion:Zr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return rx(l,t)}o(ax,"generateFreestyleInterfaceV4");function sx(e,t,n,i,r,a,s){let l={};if(gc(a,Zr.Features.BuildingBlocks)){let u=Ur(r,s),p=$o(i||[],t,n,s);l=p!=null&&p.file.fileContent?el(e,p,u,s):{}}return l}o(sx,"generateFPMCustomPageInterfaceV4");var il=require("@sap-ux/vocabularies-types/vocabularies/UI"),Ak=Z(ae());var nl=Z(ae());var Ek=new Map([[nl.PageTypeV2.ListReport,nl.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[nl.PageTypeV2.ObjectPage,nl.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),vk=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"),bk=o(e=>{var t;for(let[n,i]of Ek)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"),uz=o((e,t)=>{let n="";for(let[r,a]of Ek)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Sk={manifest:{path:o(()=>`sap.ui5/extends/extensions/${nl.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=bk(n);i&&(t[i]={},vk(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=uz(s,i);e[l]||(e[l]={}),vk(r[s],e[l])}for(let s in e){let l=bk(s);l&&!r[l]&&delete e[s]}},"export")}};var pt=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),lT=o(e=>pt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),fT=o(e=>pt(e)+"/content/header","getSettingsPathForHeaderOP"),pz=o(e=>pt(e)+"/content/footer","getSettingsPathForFooterOP"),to=o(e=>pt(e)+"/controlConfiguration","getControlConfigurationPath"),uT=o((e,t,n)=>to(e)+`/@${il.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),pT=o(e=>to(e)+`/@${il.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ms=o((e,t,n,i)=>to(e)+`/@${il.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),cx=o((e,t,n,i)=>pT(e)+`/filterFields/${i}`,"getFilterFieldPath"),Ir=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?to(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),ir=o((e,t,n,i,r)=>r?Ir(e,t,n,i,r):to(e)+`/@${il.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),dT=o((e,t,n,i,r)=>ir(e,t,n,i,r)+Ak.QUICKVARPATH,"getQuickVariantPath"),rr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?to(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),Bi=o((e,t,n,i,r)=>r?rr(e,t,n,i,r):to(e)+`/@${il.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),no=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?to(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Or=o((e,t,n,i,r)=>r?no(e,t,n,i,r):to(e)+`/@${il.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),or=o((e,t,n,i)=>to(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Hn=o((e,t,n,i)=>to(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>fT(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),gT=o((e,t,n,i)=>pt(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),Po=o((e,t,n,i)=>pz(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),wn=o((e,t,n)=>to(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),If=o((e,t,n,i)=>{let r=pt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),ks=o((e,t,n,i)=>pt(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Rr=o((e,t,n,i)=>{let r=pt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),Of=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=pt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),cT=class cT{};o(cT,"ApplicationV4"),h([kt("settings")],cT.prototype,"settings",2);var sT=cT,eo=class eo{};o(eo,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],eo.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],eo.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],eo.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],eo.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],eo.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],eo.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],eo.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],eo.prototype,"path",2),h([y(Sk)],eo.prototype,"controllerExtensions",2);var Cf=eo;var he=Z(ae());var cI={};lc(cI,{ALPChart:()=>hC,ALPTable:()=>Mf,ActionAfterExecutionConfiguration:()=>UC,ActionAfterExecutionConfigurationFooter:()=>Rx,ActionAfterExecutionConfigurationForm:()=>Dx,ActionAfterExecutionConfigurationOP:()=>vd,ActionAfterExecutionConfigurationObjectPageHeader:()=>Wx,ActionAfterExecutionConfigurationToolBarLR:()=>zC,Actions:()=>XC,AdditionalSemanticObject:()=>kC,CommonHeaderFacetSettings:()=>Xs,CommonViewSettings:()=>wf,CustomActionPosition:()=>nI,CustomActionPositionOP:()=>DC,CustomFilterField:()=>px,CustomFilterFieldPosition:()=>ux,CustomFooterActionOP:()=>Fx,CustomFooterActionPositionOP:()=>Nx,CustomFormActionOP:()=>$x,CustomHeaderAction:()=>yx,CustomHeaderActionOP:()=>qx,CustomHeaderActionPosition:()=>id,CustomHeaderActionPositionOP:()=>Qx,CustomSectionActionOP:()=>Px,CustomSectionActionPositionOP:()=>Ax,CustomTableAction:()=>iI,CustomTableActionOP:()=>_C,FilterBar:()=>lx,FlexSettings:()=>Jx,FooterActionV4:()=>Lx,FormAction:()=>_x,Header:()=>gx,HeaderActions:()=>dx,HeaderSections:()=>rC,LRChartView:()=>yC,LRTableView:()=>TC,MultiTableModeV4:()=>bC,ObjectPageCustomHeaderSectionFlexSettings:()=>Tx,ObjectPageCustomHeaderSectionFragment:()=>vx,ObjectPageCustomSectionActions:()=>bx,ObjectPageCustomSectionFragment:()=>Lf,ObjectPageCustomSubSectionFragment:()=>Ex,ObjectPageFooter:()=>Cx,ObjectPageFooterActions:()=>xx,ObjectPageForm:()=>Mx,ObjectPageFormActionGroup:()=>Vx,ObjectPageFormActions:()=>wx,ObjectPageHeader:()=>Hx,ObjectPageHeaderAction:()=>Kx,ObjectPageHeaderActionGroup:()=>Xx,ObjectPageHeaderActions:()=>Bx,ObjectPageHeaderSectionAddress:()=>iC,ObjectPageHeaderSectionChart:()=>eC,ObjectPageHeaderSectionContact:()=>nC,ObjectPageHeaderSectionDataPoint:()=>tC,ObjectPageHeaderSectionForm:()=>Zx,ObjectPageLayout:()=>uC,ObjectPageTable:()=>md,ObjectPageTableColumn:()=>$f,ObjectPageTableColumnAction:()=>IC,ObjectPageToolBarAction:()=>NC,ObjectPageToolBarActionGroup:()=>FC,ObjectPageToolBarActions:()=>VC,PersonalizationType:()=>dC,PersonalizationTypeOP:()=>xC,Position:()=>HC,PositionOP:()=>OC,QuickVariantSelectionV4:()=>mC,QuickVariantSelectionV4OP:()=>CC,RelatedApps:()=>jC,Table:()=>EC,TableColumn:()=>OT,TableColumnAction:()=>$C,TableCreationModeOP:()=>PC,TableCustomColumn:()=>WC,TableCustomColumnOP:()=>RC,TableSettings:()=>ET,TableViewExtension:()=>vC,TableViewSettings:()=>pd,ToolBar:()=>QC,ToolBarAction:()=>JC,ToolBarActionGroup:()=>ZC,ViewCustomActionPosition:()=>rI,ViewPersonalizationType:()=>gC,ViewPosition:()=>GC,ViewTableColumn:()=>RT,ViewTableColumnAction:()=>BC,ViewTableCustomAction:()=>oI,ViewTableCustomColumn:()=>KC,ViewToolBarAction:()=>tI,ViewToolBarActionGroup:()=>eI,VisualFilter:()=>fx,checkViewOrder:()=>SC,deleteCreationModeProperty:()=>gd,deletePersonalizationProperty:()=>Oo,exportCreationModeProperty:()=>dd,exportPersonalization:()=>xT,exportPersonalizationProperty:()=>Io});function dz(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(dz,"exportVisualFilterValueList");var Rf=class Rf{};o(Rf,"FilterBar"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.99.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],Rf.prototype,"hideFilterBar",2),h([y({manifest:{path:pT}}),x({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rf.prototype,"initialLayout",2),h([y({manifest:{path:pT}}),x({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rf.prototype,"layout",2);var lx=Rf,ed=class ed{};o(ed,"VisualFilter"),h([y({manifest:{path:cx}}),x({since:"1.93.0"}),Ne("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],ed.prototype,"availability",2),h([y({manifest:{path:cx,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:dz,key:"visualFilter"}}),x({since:"1.93.0"})],ed.prototype,"visualFilterValueList",2);var fx=ed,td=class td{};o(td,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ms(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ms(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"placement",2);var ux=td,js=class js{};o(js,"CustomFilterField"),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"label",2),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"property",2),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"template",2),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"required",2),h([y({manifest:{path:Ms}}),x({since:"1.77.0"})],js.prototype,"position",2);var px=js;var mx=class mx{};o(mx,"HeaderActions");var dx=mx,hx=class hx{};o(hx,"Header");var gx=hx;var nd=class nd{};o(nd,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],nd.prototype,"placement",2);var id=nd,Us=class Us{};o(Us,"CustomHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Us.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Us.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Us.prototype,"press",2),h([y({manifest:{path:gi},generate:Jn}),x({since:"1.84.0"})],Us.prototype,"visible",2),h([y({manifest:{path:gi},generate:Jn}),x({since:"1.84.0"})],Us.prototype,"enabled",2);var yx=Us;var mT=class mT{};o(mT,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Rr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],mT.prototype,"designtime",2);var Tx=mT,ar=class ar{};o(ar,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Rr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],ar.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Rr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],ar.prototype,"relativePosition",2),h([y({manifest:{path:Rr},generate:ai}),x({since:"1.84.0"})],ar.prototype,"visible",2),h([y({manifest:{path:Rr}}),x({since:"1.77.0"})],ar.prototype,"title",2),h([y({manifest:{path:Rr}}),x({since:"1.77.0"})],ar.prototype,"subTitle",2),h([y({manifest:{path:Rr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],ar.prototype,"fragmentName",2),h([y({manifest:{path:Rr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],ar.prototype,"templateEdit",2),h([y({manifest:{path:Rr}}),x({since:"1.81.0"})],ar.prototype,"stashed",2),h([y({manifest:{path:Rr}}),x({since:"1.81.0"})],ar.prototype,"flexSettings",2),h([y({manifest:{path:Rr}}),x({since:"1.81.0"})],ar.prototype,"requestGroupId",2),h([y({manifest:{path:Rr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],ar.prototype,"controls",2);var vx=ar;var Sx=class Sx{};o(Sx,"ObjectPageCustomSectionActions");var bx=Sx,$s=class $s{};o($s,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>If(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],$s.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>If(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],$s.prototype,"relativePosition",2),h([y({manifest:{path:If}}),x({since:"1.77.0"})],$s.prototype,"title",2),h([y({manifest:{path:If,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],$s.prototype,"fragmentName",2),h([y({manifest:{path:If,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],$s.prototype,"controls",2);var Lf=$s,Bs=class Bs extends Lf{};o(Bs,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${Of.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Bs.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${Of.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Bs.prototype,"relativePosition",2),h([y({manifest:{path:Of}}),x({since:"1.77.0"})],Bs.prototype,"title",2),h([y({manifest:{path:Of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Bs.prototype,"fragmentName",2),h([y({manifest:{path:Of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Bs.prototype,"controls",2);var Ex=Bs;var rd=class rd{};o(rd,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>ks(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"placement",2);var Ax=rd,Hs=class Hs{};o(Hs,"CustomSectionActionOP"),h([y({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"text",2),h([y({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"position",2),h([y({manifest:{path:ks}}),x({since:"1.84.0"})],Hs.prototype,"press",2),h([y({manifest:{path:ks},generate:ai}),x({since:"1.84.0"})],Hs.prototype,"visible",2),h([y({manifest:{path:ks},generate:ai}),x({since:"1.84.0"})],Hs.prototype,"enabled",2);var Px=Hs;var Ix=class Ix{};o(Ix,"ObjectPageFooterActions");var xx=Ix,Ox=class Ox{};o(Ox,"ObjectPageFooter");var Cx=Ox;var od=class od{};o(od,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>Po(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],od.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Po(t,n,i,r)+"/afterExecution","path")}})],od.prototype,"enableAutoScroll",2);var Rx=od,hT=class hT{};o(hT,"FooterActionV4"),h([y({manifest:{path:Po}}),x({since:"1.84.0"})],hT.prototype,"afterExecution",2);var Lx=hT,ad=class ad{};o(ad,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Po(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ad.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Po(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],ad.prototype,"placement",2);var Nx=ad,Gs=class Gs{};o(Gs,"CustomFooterActionOP"),h([y({manifest:{path:Po}}),x({since:"1.84.0"})],Gs.prototype,"text",2),h([y({manifest:{path:Po}}),x({since:"1.84.0"})],Gs.prototype,"position",2),h([y({manifest:{path:Po}}),x({since:"1.84.0"})],Gs.prototype,"press",2),h([y({manifest:{path:Po},generate:ai}),x({since:"1.84.0"})],Gs.prototype,"visible",2),h([y({manifest:{path:Po},generate:ai}),x({since:"1.84.0"})],Gs.prototype,"enabled",2);var Fx=Gs;var sd=class sd{};o(sd,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],sd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/afterExecution","path")}})],sd.prototype,"enableAutoScroll",2);var Dx=sd,yT=class yT{};o(yT,"FormAction"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],yT.prototype,"afterExecution",2);var _x=yT,kx=class kx{};o(kx,"ObjectPageFormActionGroup");var Vx=kx,jx=class jx{};o(jx,"ObjectPageFormActions");var wx=jx,Ux=class Ux{};o(Ux,"ObjectPageForm");var Mx=Ux;var Ws=class Ws{};o(Ws,"CustomFormActionOP"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Ws.prototype,"text",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Ws.prototype,"position",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],Ws.prototype,"press",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Ws.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],Ws.prototype,"enabled",2);var $x=Ws;var Gx=class Gx{};o(Gx,"ObjectPageHeaderActions");var Bx=Gx,Nf=class Nf{};o(Nf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Nf.prototype,"editableHeaderContent",2),h([y({manifest:{path:fT}}),x({since:"1.84.0"})],Nf.prototype,"visible",2),h([y({manifest:{path:fT}}),x({since:"1.84.0"})],Nf.prototype,"anchorBarVisible",2);var Hx=Nf;var cd=class cd{};o(cd,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],cd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],cd.prototype,"enableAutoScroll",2);var Wx=cd,TT=class TT{};o(TT,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],TT.prototype,"afterExecution",2);var Kx=TT,Yx=class Yx{};o(Yx,"ObjectPageHeaderActionGroup");var Xx=Yx,zx=class zx extends id{};o(zx,"CustomHeaderActionPositionOP");var Qx=zx,Ks=class Ks{};o(Ks,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Ks.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Ks.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Ks.prototype,"press",2),h([y({manifest:{path:gi},generate:ai}),x({since:"1.84.0"})],Ks.prototype,"visible",2),h([y({manifest:{path:gi},generate:ai}),x({since:"1.84.0"})],Ks.prototype,"enabled",2);var qx=Ks;var vT=class vT{};o(vT,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>uT(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),Ne("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],vT.prototype,"designtime",2);var Jx=vT,ld=class ld{};o(ld,"CommonHeaderFacetSettings"),h([y({manifest:{path:uT}}),x({since:"1.81.0"})],ld.prototype,"stashed",2),h([y({manifest:{path:uT}}),x({since:"1.81.0"})],ld.prototype,"flexSettings",2);var Xs=ld,oC=class oC extends Xs{};o(oC,"ObjectPageHeaderSectionForm");var Zx=oC,aC=class aC extends Xs{};o(aC,"ObjectPageHeaderSectionChart");var eC=aC,sC=class sC extends Xs{};o(sC,"ObjectPageHeaderSectionDataPoint");var tC=sC,cC=class cC extends Xs{};o(cC,"ObjectPageHeaderSectionContact");var nC=cC,lC=class lC extends Xs{};o(lC,"ObjectPageHeaderSectionAddress");var iC=lC,fC=class fC{};o(fC,"HeaderSections");var rC=fC;var bT=class bT{};o(bT,"ObjectPageLayout"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],bT.prototype,"sectionLayout",2);var uC=bT;var CT=Z(ae());var pC=Z(ae());var gz=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 Co(e,t,n,i,r,a){let s=lT(e),l=gz(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[pC.SchemaTag.key]===(a==null?void 0:a.key)||g[pC.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(Co,"getSettingsPathForLRViewsPath");function mz(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(mz,"fillNewlyOrderedViews");function SC(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=mz(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(SC,"checkViewOrder");function xT(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(xT,"exportPersonalization");function Io(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(Io,"exportPersonalizationProperty");function Oo(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(Oo,"deletePersonalizationProperty");function AC(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(AC,"deleteView");function dd(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(dd,"exportCreationModeProperty");function gd(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(gd,"deleteCreationModeProperty");function Pk(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Pk,"importPersonalization");function xk(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(xk,"determineIndexOfView");var Ff=class Ff{};o(Ff,"PersonalizationType"),h([y({manifest:{path:ir,export:Io,delete:Oo}})],Ff.prototype,"column",2),h([y({manifest:{path:ir,export:Io,delete:Oo}})],Ff.prototype,"sort",2),h([y({manifest:{path:ir,export:Io,delete:Oo}})],Ff.prototype,"filter",2);var dC=Ff,Df=class Df{};o(Df,"ViewPersonalizationType"),h([y({manifest:{path:Ir,export:Io,delete:Oo}})],Df.prototype,"column",2),h([y({manifest:{path:Ir,export:Io,delete:Oo}})],Df.prototype,"sort",2),h([y({manifest:{path:ir,export:Io,delete:Oo}})],Df.prototype,"filter",2);var gC=Df,_f=class _f{};o(_f,"QuickVariantSelectionV4"),h([y({manifest:{path:dT}})],_f.prototype,"paths",2),h([y({manifest:{path:dT}})],_f.prototype,"hideTableTitle",2),h([y({manifest:{path:dT}})],_f.prototype,"showCounts",2);var mC=_f,xo=class xo{};o(xo,"TableSettings"),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xo.prototype,"type",2),h([y({manifest:{path:ir,import:Pk,export:xT}}),x({since:"1.86.0"})],xo.prototype,"personalization",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],xo.prototype,"selectionMode",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],xo.prototype,"selectAll",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],xo.prototype,"selectionLimit",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],xo.prototype,"enableExport",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"})],xo.prototype,"quickVariantSelection",2),h([y({manifest:{path:ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],xo.prototype,"condensedTableLayout",2);var ET=xo,ST=class ST{};o(ST,"ALPChart"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/primary/0","path"),delete:AC}})],ST.prototype,"annotationPath",2);var hC=ST,rl=class rl{};o(rl,"CommonViewSettings"),h([y({manifest:{path:Co,delete:mc}})],rl.prototype,"key",2),h([y({manifest:{path:lT,import:xk,export:o((t,n)=>{SC(t,n)},"export"),delete:AC}})],rl.prototype,"index",2),h([y({manifest:{path:Co,delete:mc}})],rl.prototype,"annotationPath",2),h([y({manifest:{path:Co}})],rl.prototype,"entitySet",2);var wf=rl,io=class io extends wf{};o(io,"TableViewSettings"),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],io.prototype,"type",2),h([y({manifest:{path:Ir,import:Pk}}),x({since:"1.86.0"})],io.prototype,"personalization",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],io.prototype,"selectionMode",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],io.prototype,"selectAll",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],io.prototype,"selectionLimit",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],io.prototype,"enableExport",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"})],io.prototype,"quickVariantSelection",2),h([y({manifest:{path:Ir}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],io.prototype,"condensedTableLayout",2),h([y({manifest:{path:Ir}}),x({since:"1.117.0"}),Ne("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],io.prototype,"hierarchyQualifier",2);var pd=io;function hz(e){return pd}o(hz,"getTableViewSettings");var fd=class fd extends pd{};o(fd,"ALPTable"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/secondary/0","path"),delete:mc}})],fd.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],fd.prototype,"initialLoad",2);var Mf=fd,AT=class AT extends wf{};o(AT,"LRChartView"),h([y({manifest:{path:Co},generate:Jn})],AT.prototype,"visible",2);var yC=AT,Vf=class Vf extends hz(wf){};o(Vf,"LRTableView"),h([y({manifest:{path:Co}})],Vf.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:Co}})],Vf.prototype,"entitySet",2),h([y({manifest:{path:Co},generate:Jn})],Vf.prototype,"visible",2);var TC=Vf,Qs=class Qs{};o(Qs,"TableViewExtension"),h([y({manifest:{path:Co}})],Qs.prototype,"key",2),h([y({manifest:{path:lT,import:xk,export:o((t,n)=>{SC(t,n)},"export"),delete:AC}})],Qs.prototype,"index",2),h([y({manifest:{path:Co}})],Qs.prototype,"label",2),h([y({manifest:{path:Co}})],Qs.prototype,"template",2),h([y({manifest:{path:Co},generate:Jn})],Qs.prototype,"visible",2);var vC=Qs,PT=class PT{};o(PT,"MultiTableModeV4"),h([y({manifest:{path:o(t=>pt(t)+"/views","path")}})],PT.prototype,"showCounts",2);var bC=PT,ud=class ud extends ET{};o(ud,"Table"),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/0/secondary/0","path"),delete:mc}})],ud.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],ud.prototype,"initialLoad",2);var EC=ud;var kf=class kf{};o(kf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{dd(t,n,i)},"export"),delete:o((t,n,i,r)=>{gd(t,r)},"delete")}})],kf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{dd(t,n,i)},"export"),delete:o((t,n,i,r)=>{gd(t,r)},"delete")}})],kf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:o((t,n,i)=>{dd(t,n,i)},"export"),delete:o((t,n,i,r)=>{gd(t,r)},"delete")}})],kf.prototype,"inlineCreationRowsHiddenInEditMode",2);var PC=kf,jf=class jf{};o(jf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Io,delete:Oo}})],jf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Io,delete:Oo}})],jf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i),"path"),export:Io,delete:Oo}})],jf.prototype,"filter",2);var xC=jf,Uf=class Uf{};o(Uf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+CT.QUICKVARPATH,"path")}})],Uf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+CT.QUICKVARPATH,"path")}})],Uf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>wn(t,n,i)+CT.QUICKVARPATH,"path")}})],Uf.prototype,"showCounts",2);var CC=Uf,sr=class sr{};o(sr,"ObjectPageTable"),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"type",2),h([y({manifest:{path:wn,import:o(t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}},"import")}}),x({since:"1.84.0"})],sr.prototype,"creationMode",2),h([y({manifest:{path:wn,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:xT}}),x({since:"1.86.0"})],sr.prototype,"personalization",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"selectionMode",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"selectAll",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"selectionLimit",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],sr.prototype,"enableExport",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"quickVariantSelection",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],sr.prototype,"condensedTableLayout",2),h([y({manifest:{path:wn}}),x({since:"1.86.0"})],sr.prototype,"enableFullScreen",2),h([y({manifest:{path:wn}}),x({since:"1.84.0"})],sr.prototype,"enablePaste",2);var md=sr;var hd=class hd{};o(hd,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>or(t,n,i,r)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],hd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>or(t,n,i,r)+"/afterExecution","path")}})],hd.prototype,"enableAutoScroll",2);var vd=hd,yd=class yd{};o(yd,"ObjectPageTableColumn"),h([y({manifest:{path:or}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],yd.prototype,"width",2),h([y({manifest:{path:or}}),x({since:"1.85.0"})],yd.prototype,"availability",2);var $f=yd,LC=class LC extends $f{};o(LC,"ObjectPageTableColumnAction");var IC=LC,Td=class Td{};o(Td,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>or(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Td.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>or(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Td.prototype,"placement",2);var OC=Td,Zo=class Zo{};o(Zo,"TableCustomColumnOP"),h([y({manifest:{path:or}}),x({since:"1.84.0"})],Zo.prototype,"position",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],Zo.prototype,"header",2),h([y({manifest:{path:or}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Zo.prototype,"width",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],Zo.prototype,"template",2),h([y({manifest:{path:or}}),x({since:"1.86.0"})],Zo.prototype,"horizontalAlign",2),h([y({manifest:{path:or}}),x({since:"1.84.0"})],Zo.prototype,"availability",2),h([y({manifest:{path:or}}),x({since:"1.85.0"})],Zo.prototype,"properties",2);var RC=Zo;var IT=class IT{};o(IT,"ObjectPageToolBarAction"),h([y({manifest:{path:Hn}})],IT.prototype,"enableOnSelect",2);var NC=IT,wC=class wC{};o(wC,"ObjectPageToolBarActionGroup");var FC=wC,bd=class bd{};o(bd,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],bd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Hn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],bd.prototype,"placement",2);var DC=bd,$a=class $a{};o($a,"CustomTableActionOP"),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],$a.prototype,"text",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],$a.prototype,"position",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],$a.prototype,"press",2),h([y({manifest:{path:Hn}}),x({since:"1.84.0"})],$a.prototype,"requiresSelection",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],$a.prototype,"visible",2),h([y({manifest:{path:Hn},generate:ai}),x({since:"1.84.0"})],$a.prototype,"enabled",2);var _C=$a,MC=class MC{};o(MC,"ObjectPageToolBarActions");var VC=MC;var Bf=class Bf{};o(Bf,"AdditionalSemanticObject"),h([y({manifest:{path:gT}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Bf.prototype,"allowedActions",2),h([y({manifest:{path:gT}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Bf.prototype,"unavailableActions",2),h([y({manifest:{path:gT}}),Ne("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Bf.prototype,"mapping",2);var kC=Bf,Ed=class Ed{};o(Ed,"RelatedApps"),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Ed.prototype,"showRelatedApps",2),h([y({manifest:{path:pt}})],Ed.prototype,"additionalSemanticObjects",2);var jC=Ed;var Sd=class Sd{};o(Sd,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Sd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/afterExecution","path")}})],Sd.prototype,"enableAutoScroll",2);var UC=Sd,Ad=class Ad{};o(Ad,"TableColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ad.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Ad.prototype,"availability",2);var OT=Ad,Pd=class Pd{};o(Pd,"ViewTableColumn"),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Pd.prototype,"width",2),h([y({manifest:{path:rr}}),x({since:"1.85.0"})],Pd.prototype,"availability",2);var RT=Pd,LT=class LT extends OT{};o(LT,"TableColumnAction"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],LT.prototype,"afterExecution",2);var $C=LT,NT=class NT extends RT{};o(NT,"ViewTableColumnAction"),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],NT.prototype,"afterExecution",2);var BC=NT,xd=class xd{};o(xd,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],xd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Bi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],xd.prototype,"placement",2);var HC=xd,Cd=class Cd{};o(Cd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>rr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Cd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>rr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Cd.prototype,"placement",2);var GC=Cd,ea=class ea{};o(ea,"TableCustomColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],ea.prototype,"position",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],ea.prototype,"header",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ea.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],ea.prototype,"template",2),h([y({manifest:{path:Bi}}),x({since:"1.86.0"})],ea.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],ea.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],ea.prototype,"properties",2);var WC=ea,ta=class ta{};o(ta,"ViewTableCustomColumn"),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],ta.prototype,"position",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],ta.prototype,"header",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/api/sap.ui.core.CSSSize")],ta.prototype,"width",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],ta.prototype,"template",2),h([y({manifest:{path:rr}}),x({since:"1.86.0"})],ta.prototype,"horizontalAlign",2),h([y({manifest:{path:rr}}),x({since:"1.84.0"})],ta.prototype,"availability",2),h([y({manifest:{path:rr}}),x({since:"1.85.0"})],ta.prototype,"properties",2);var KC=ta;var qC=class qC{};o(qC,"Actions");var XC=qC,YC=class YC{};o(YC,"ToolBar");var QC=YC;var Id=class Id{};o(Id,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Or(t,n,i,r,a)+"/afterExecution","path")}}),Ne("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Id.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Or(t,n,i,r,a)+"/afterExecution","path")}})],Id.prototype,"enableAutoScroll",2);var zC=Id,Od=class Od{};o(Od,"ToolBarAction"),h([y({manifest:{path:Or}})],Od.prototype,"enableOnSelect",2),h([y({manifest:{path:Or}})],Od.prototype,"afterExecution",2);var JC=Od,aI=class aI{};o(aI,"ToolBarActionGroup");var ZC=aI,sI=class sI{};o(sI,"ViewToolBarActionGroup");var eI=sI,Rd=class Rd{};o(Rd,"ViewToolBarAction"),h([y({manifest:{path:no}})],Rd.prototype,"enableOnSelect",2),h([y({manifest:{path:no}})],Rd.prototype,"afterExecution",2);var tI=Rd,Ld=class Ld{};o(Ld,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Or(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Or(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Ld.prototype,"placement",2);var nI=Ld,Ba=class Ba{};o(Ba,"CustomTableAction"),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],Ba.prototype,"text",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],Ba.prototype,"position",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],Ba.prototype,"press",2),h([y({manifest:{path:Or}}),x({since:"1.84.0"})],Ba.prototype,"requiresSelection",2),h([y({manifest:{path:Or},generate:Jn}),x({since:"1.84.0"})],Ba.prototype,"visible",2),h([y({manifest:{path:Or},generate:Jn}),x({since:"1.84.0"})],Ba.prototype,"enabled",2);var iI=Ba,Nd=class Nd{};o(Nd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>no(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Nd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>no(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Nd.prototype,"placement",2);var rI=Nd,Ha=class Ha{};o(Ha,"ViewTableCustomAction"),h([y({manifest:{path:no}}),x({since:"1.84.0"})],Ha.prototype,"text",2),h([y({manifest:{path:no}}),x({since:"1.84.0"})],Ha.prototype,"position",2),h([y({manifest:{path:no}}),x({since:"1.84.0"})],Ha.prototype,"press",2),h([y({manifest:{path:no}}),x({since:"1.84.0"})],Ha.prototype,"requiresSelection",2),h([y({manifest:{path:no},generate:Jn}),x({since:"1.84.0"})],Ha.prototype,"visible",2),h([y({manifest:{path:no},generate:Jn}),x({since:"1.84.0"})],Ha.prototype,"enabled",2);var oI=Ha;var pI={};lc(pI,{FreestylePage:()=>fI,ListReport:()=>Lr,ObjectPage:()=>Ro});function yz(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(yz,"deleteAllALPViews");function Tz(){}o(Tz,"doNotExport");function vz(){}o(vz,"doNotImport");var Lr=class{};o(Lr,"ListReport"),h([y({manifest:{path:o(t=>pt(t)+"/views","path"),import:vz,export:Tz,delete:yz}})],Lr.prototype,"chart",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"})],Lr.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>pt(t)+"/views/paths/[]/0","path")}}),Ne("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Lr.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>pt(t),"path")}})],Lr.prototype,"defaultTemplateAnnotationPath",2),h([kt("header")],Lr.prototype,"header",2),h([kt("fe::FilterBar")],Lr.prototype,"filterBar",2),Lr=h([Zi({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Lr);var lI=Z(ae());var Ro=class{};o(Ro,"ObjectPage"),h([kt("header")],Ro.prototype,"header",2),h([kt("layout")],Ro.prototype,"layout",2),h([y({manifest:{path:o(t=>pt(t),"path")}}),x({since:"1.84.0"}),Ne("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Ro.prototype,"variantManagement",2),h([kt("sections")],Ro.prototype,"sections",2),Ro=h([Zi({id:`${lI.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:lI.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Ro);var uI=class uI{};o(uI,"FreestylePage");var fI=uI;var FT=Z(ae());var bz={ALPTableView:Mf},Ez={ALPTableView:Mf},Sz={Table:md,TableColumn:$f,ObjectPageCustomSectionView:Lf,ActionAfterExecutionConfiguration:vd},Az={[FT.PageTypeV4.AnalyticalListPage]:bz,[FT.PageTypeV4.ListReport]:Ez,[FT.PageTypeV4.ObjectPage]:Sz},dI=class dI extends of{constructor(){super(cI,pI,Az)}};o(dI,"MetadataInstanceFactoryV4");var Ga=dI;var gI=require("@sap-ux/vocabularies-types/vocabularies/UI");function mI(e,t,n,i,r,a,s){var g,m,v,E,b,I;let l=t.jsonSchema.definitions,u=a&&a!==`@${gI.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let N in p.properties){let G=l[u].properties[N].$ref.split(U)[1].split("<")[0];e.columns[N]=n.createInstance(i,G);let $=s||a;Ot(e.columns[N],t.manifest,l[G],r,[N,$],$,t.logger),$r(e.columns,N)}$r(e,"columns")}else{let N=(I=(b=(E=(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:E.options)==null?void 0:b.settings)==null?void 0:I.views;(!N||N.paths.length<1)&&re(t.logger,{severity:he.LogSeverity.Error,message:Q.t("NOLINEITEMS")})}}o(mI,"transferColumns");function Pz(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=zt(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),Ot(t.visualFilters[l],e.manifest,a[p],r,[l])}}$r(t,"visualFilters")}}o(Pz,"importVisualFilters");function xz(e,t,n,i,r,a=he.DefinitionName.LineItems,s){var g;let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${gI.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let m in p.properties){let v=p.properties[m];if(typeof v=="object"&&v.$ref){let b={actionPropertyDefinition:(g=p==null?void 0:p.properties)==null?void 0:g[m],appSchema:e.jsonSchema,factory:n,actionsInConfig:t.toolBar.actions,actionKey:m,manifest:e.manifest,routingId:r,targetAnnotation:u};Dl(b)}}}o(xz,"importActions");function hI(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Ot(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),xz(e,u,n,i,r,a,s),$r(u.toolBar,"actions"),$r(u,"toolBar")}o(hI,"transferToolBar");function Ck(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(Ck,"determineTargetAnnotationOfView");function Cz(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];Ot(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),Ot(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);hI(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Ot(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),mI(g,e,n,i,r,void 0,m)}}o(Cz,"importALPViews");function Iz(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(Iz,"getViewTypeByDefinition");function Oz(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Ot(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split(U)[1],m=Iz(g),v=a[p[0]]=n.createInstance(i,m),E=s[g].entitySet,b=Ck(s,g,E);if(Ot(v,e.manifest,s[g],r,[p[0],b]),m===he.DefinitionName.LRTableView){let I=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;hI(e,v,n,i,r,I,b),mI(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}$r(t.table,"views")}o(Oz,"importLRViews");function Rz(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=zt(p.$ref),m=e.definitions[g],v=zt(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,v),Ot(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),$r(t.header,"actions"),$r(t,"header")}}}}o(Rz,"transferHeaderActions");function Lz(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];Ot(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(Lz,"importCustomFilterFields");function Nz(e,t,n,i,r,a){if(Ot(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),Ot(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),Rz(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),Ot(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),Pz(e,t.filterBar,n,i,r),Lz(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=Ck(e.jsonSchema.definitions,s);Ot(t.table,e.manifest,l,r,[s,p]),hI(e,t,n,i,r,u),mI(t.table,e,n,i,r,u,p),Oz(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&Cz(e,t,n,i,r)}o(Nz,"addSettings");function ol(e,t){if(Xt(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){re(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){re(e.logger,{severity:he.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ga,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Gb(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){Nz(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(ol,"createListReportConfig");var be=Z(ae()),qs=require("@sap-ux/vocabularies-types/vocabularies/UI");function Fz(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(Fz,"isBoolean");function Dz(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(Dz,"isNumber");function _z(e,t){let n=e.toString();return Fz(n,t)?n==="true":Dz(n,t)?parseFloat(n):e}o(_z,"convertValue");function Vz(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=_z(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(Vz,"importProperty");function Ik(e,t,n){let i,r=Pf(e.file,!1,n);if(r){let a=nT(r);i={},Zc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},Vz)}return i}o(Ik,"convertXmlFileToConfig");function DT(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=Ik(s,i,e.logger)),l}o(DT,"createCustomPageConfig");function Fd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=xf(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=bc(i,a),g=Ec(n||[],p,i,"fragment",t),m;if(g){let E={...u,definitions:r.definitions};m=Ik(g,E,s)}return m}o(Fd,"createCustomFragmentConfig");function yI(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(yI,"getManifestId");function Dd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(Dd,"getDefinitionId");function wz(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[Dd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(be.DefinitionName.CustomColumnOP)>-1?s=be.DefinitionName.CustomColumnOP:s=be.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(be.PageTypeV4.ObjectPage,s);Ot(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(wz,"fillTableColumnsInConfig");function Lk(e,t,n,i,r,a=n){var s;if(typeof t=="object")for(let l in t.properties){let u=t.properties[l];if(typeof u=="object"&&u.$ref){let p=zt(u.$ref),g=(s=t==null?void 0:t.properties)==null?void 0:s[l],m=p.split("<")[0],v;m.includes(be.DefinitionName.CustomSectionActionOP)?v=i.actions:v=i[n].table.toolBar.actions;let E={actionPropertyDefinition:g,appSchema:e.jsonSchema,factory:r,actionsInConfig:v,actionKey:l,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Dl(E)}}}o(Lk,"fillSectionActionsInConfig");function Mz(e,t,n,i,r,a=n){if(t.actions){let s=i[n].form.actions={},u=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageSectionForm}<${Dd(a)}>`].properties.form.$ref.split(U)[1],m=e.jsonSchema.definitions[u].properties.actions.$ref.split(U)[1],v=e.jsonSchema.definitions[m];for(let E in v.properties){let b=v.properties[E],I=zt(b.$ref),N=e.jsonSchema.definitions[I];if(N.annotationType===qs.UIAnnotationTypes.DataFieldForAction||N.annotationType===qs.UIAnnotationTypes.DataFieldForActionGroup||N.description==="Custom Action"){let j={actionPropertyDefinition:b,appSchema:e.jsonSchema,factory:r,actionsInConfig:s,actionKey:E,manifest:e.manifest,routingId:e.routingId,manifestSectionId:a};Dl(j)}}}}o(Mz,"fillFormActionsInConfig");function Ok(e,t,n,i,r,a){var u;let s=a||yI(i,!1,qs.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageTable);let p=`${be.DefinitionName.ObjectPageTable}<${a?Dd(a):i.replace("#","::")}>`;Ot(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${be.DefinitionName.Actions}<${Dd(s)}>`];Lk(e,g,i,n,r,s),wz(e,l,n,i,r,s)}}o(Ok,"fillTableInConfig");function kz(e,t,n,i,r){var l;let a=yI(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageForm,{actions:{}}),Mz(e,s,i,n,r,a))}o(kz,"fillFormInConfig");function jz(e,t,n,i,r,a){let s=r.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(U)[1];if(Ot(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=Fd(e,s.fragmentName);s.controls=u}n[i]=s}o(jz,"fillCustomSubSectionInConfig");function Nk(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let v=t[m],E=m;if(m.includes(qs.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith(U+be.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split(U)[1];E=b?yI(b,!0,qs.UIAnnotationTerms.LineItem):m,Ok(e,n,i,m,r,E)}else(l=v.$ref)!=null&&l.startsWith(U+be.DefinitionName.ObjectPageSectionTableV4)?Ok(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},Nk(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith(U+be.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${qs.UIAnnotationTerms.FieldGroup}::`))?kz(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith(U+be.DefinitionName.ObjectPageCustomSubSectionFragment)&&jz(e,v,i,m,r,a)}}o(Nk,"fillSectionsInConfig");function Uz(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionFragment);if(Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${be.DefinitionName.ObjectPageCustomSectionActions}<${Dd(l)}>`];Lk(e,m,l,p,i,l)}let g=u.template;if(g){let m=Fd(e,g);p.controls=m}n.sections[l]=p}}o(Uz,"fillCustomSectionsInConfig");function $z(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageCustomHeaderSectionFragment);Ot(p,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=Fd(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=Fd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o($z,"fillCustomHeaderSectionsInConfig");function Bz(e,t,n,i,r){var s,l;let a=e.definitions[be.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split(U)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(be.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=g?n.createInstance(be.PageTypeV4.ObjectPage,g):{},Ot(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(be.FACETTITLEPREFIX)[1]))}}}o(Bz,"fillHeaderFacets");function Rk(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&&Dl({actionPropertyDefinition:g,appSchema:e,factory:n,actionsInConfig:u,actionKey:p,manifest:i,routingId:r})}}}o(Rk,"fillHeaderFooterActions");function Hz(e,t,n){var a,s;let i=n.createPageInstance(be.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageHeader),Ot(i.header,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageFooter),Ot(i.footer,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(be.PageTypeV4.ObjectPage,be.DefinitionName.ObjectPageLayout),Ot(i.layout,e.manifest,e.jsonSchema.definitions[be.DefinitionName.ObjectPageLayout],e.routingId,[]),Ot(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[be.DefinitionName.Sections]&&(i.sections={},Nk(e,e.jsonSchema.definitions[be.DefinitionName.Sections].properties,r,i.sections,n)),Uz(e,r,i,n),Bz(e.jsonSchema,i,n,e.manifest,e.routingId),$z(e,r,i,n),Rk(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.ObjectPageHeaderActions,be.PropertyName.header),Rk(e.jsonSchema,i,n,e.manifest,e.routingId,be.DefinitionName.FooterActions,be.PropertyName.footer)),i}o(Hz,"fillObjectPageConfig");function _T(e){if(Xt(),!e.manifest[be.ManifestSection.ui5]||!e.manifest[be.ManifestSection.ui5].routing){re(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTING"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5]}});return}let t=e.manifest[be.ManifestSection.ui5].routing.targets;if(!t){re(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOTARGETS"),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){re(e.logger,{severity:be.LogSeverity.Error,message:Q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:be.MANIFESTPATH,range:[be.ManifestSection.ui5,"routing"]}});return}let i=new Ga;return Hz(e,n,i)}o(_T,"createObjectPageConfigV4");var We=Z(ae());var TI=[],VT={};function Gz(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(Gz,"routesSorter");function vI(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(vI,"resolveTarget");function Wz(e){let t={};e=e.concat().sort(Gz);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=vI(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(Wz,"populateAssociations");function Kz(e,t,n){let i;return e.name?e.name===We.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=We.PageTypeV4.FPMCustomPage:e.name.endsWith(We.PageTypeV4.ListReport)||e.name.endsWith(We.PageTypeV4.AnalyticalListPage)?i=We.PageTypeV4.ListReport:e.name.endsWith(We.PageTypeV4.ObjectPage)?i=We.PageTypeV4.ObjectPage:i=We.PageTypeV4.CustomPage:"viewId"in e?i=We.PageTypeV4.CustomPage:(re(t,{severity:We.LogSeverity.Error,message:Q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:We.MANIFESTPATH,range:[`${We.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in We.ViewTypes&&"viewName"in e&&(i=We.PageTypeV4.CustomPage)),i}o(Kz,"determinePageType");function Xz(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===We.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===We.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=_T(r)}else if(e.page.pageType===We.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=DT(r)}else if(e.templateType===We.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=ol(r,We.SchemaType.ListReport)}else if(e.templateType===We.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=ol(r,We.SchemaType.AnalyticalListPage)}else if(e.templateType===We.TemplateType.FreestylePageV4&&e.page.pageType===We.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=Pu(e.target)===We.TemplateType.AnalyticalListPageV4?We.SchemaType.AnalyticalListPage:We.SchemaType.ListReport;e.page.config=ol(r,s)}}}o(Xz,"convertSettingsToConfig");function Qz(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");TI.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");TI.push(t[t.length-1])}}o(Qz,"updateUnhandledControllers");function qz(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(qz,"setVariantManagmentAndNavigation");function Yz(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}=tl(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(Yz,"setEntitySetEntityTypeContextPath");function zz(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([We.PageTypeV4.CustomPage,We.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===We.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(zz,"evaluateCustomPageSettings");function Jz(e,t,n,i){var p;let r=e.targets[t],a=Kz(r,i.logger,t),s={pageType:a};if(Yz(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),VT[t]&&VT[t].indexOf(".")!==-1){let g=VT[t].split(".");s.navigationProperty=g[g.length-1]}zz(r,s,a),qz(r,s),Qz(r);let l=e.routes.find(g=>(g==null?void 0:g.target)&&g.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),!((p=s.view)!=null&&p.template)&&"name"in r&&r.name&&(s.template=r.name),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};Xz(u)}o(Jz,"getSinglePageAndConfig");function Fk(e){let t={},n=e.manifest[We.ManifestSection.ui5].routing;if(!n||!n.routes){let i=Q.t("NOROUTING");return re(e.logger,{severity:We.LogSeverity.Error,message:i,location:{path:We.MANIFESTPATH,range:[We.ManifestSection.ui5]}}),t}VT=Wz(n.routes||[]);for(let i in n.targets)Jz(n,i,t,e);return t}o(Fk,"getPagesAndConfigs");function Dk(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 vI(t?t.target:e.routes[0].target)}else return}o(Dk,"getHome");function _k(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(_k,"getSettings");function Gf(e,t){let n=e[We.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];hm(t,a.name)&&(i[r]=a)}return i}o(Gf,"getPages");var bI=class bI extends us{constructor(t){Xt();let n=new Cf,i=Dt(We.SchemaType.Application),r=t.appSchemas[i.filename];Ot(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Dk(t.manifest[We.ManifestSection.ui5].routing),Fk(t),{..._k(t.manifest[We.ManifestSection.ui5].routing),...n}),this.unhandledControllers=TI}};o(bI,"V4AppProvider");var Hf=bI;var Vk=require("fs"),al=require("path"),wk=Z(ae()),_d=Z(ae());var Mk=o((e,t,n=__dirname)=>{let i;switch(t){case _d.SchemaType.Application:{i=`${_d.SchemaType.Application}${e.toUpperCase()}.json`;break}case _d.SchemaType.FPMCustomPage:{i=`${_d.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,al.join)(n,"schemas",e,i);if(n.endsWith((0,al.join)("specification","packages","specification")))return(0,al.join)(n,"dist","schemas",e,i);if(n.endsWith((0,al.join)("src","specification")))return(0,al.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,al.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Zz=o(async e=>new Promise((t,n)=>{(0,Vk.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),wT=o(async(e,t)=>{try{let n=Mk(e||wk.FioriElementsVersion.v4,t,__dirname);return await Zz(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function eJ(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await wT(t,r)}return n}o(eJ,"getGenericSchemas");function jk(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=oi(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(jk,"getAnnotationsForUi");function Vd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(Vd,"getEntitySetByEntitySetName");function tJ(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(tJ,"resolveNavigationProperty");function tl(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}=tJ(r,e):re(i,{severity:ue.LogSeverity.Error,message:Q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&re(i,{severity:ue.LogSeverity.Error,message:Q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(tl,"getEntityTypeEntitySetFromContextPath");function kk(e,t,n){let i=Ap(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=Vd(a,e.serviceAVT);s||re(e.logger,{severity:ue.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(ue.SchemaType.ObjectPage);n[l.filename]=wd(e,t[u.filename])}}o(kk,"generateObjectPageSchemasV2");function nJ(e,t,n){var l,u;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:E}=tl(s,m,g,e.logger);e.entityType=E,e.entitySet=v;let b=Dt(ue.SchemaType.ListReport,p),I=Dt(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=Pu(a[p])),n[b.filename]=Pp(e,t[I.filename],a[p].name,m)}}o(nJ,"generateListReportSchemasV4");function iJ(e,t,n){var r;let i=Ap(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=Vd(s,e.serviceAVT);let l=Dt(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(ue.SchemaType.ListReport);t[l.filename]=Sp(e,n[u.filename])}}o(iJ,"generateAppSchemaV2LR");function rJ(e,t,n){var a,s;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=tl(r,p,u);e.entitySet=m,e.entityType=g;let v=Dt(ue.SchemaType.ObjectPage,l),E=Dt(ue.SchemaType.ObjectPage),b=Dt(ue.SchemaType.FPMCustomPage);n[v.filename]=Zp(e,t[E.filename],p,t[b.filename])}}o(rJ,"generateObjectPageSchemasV4");function oJ(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)iJ(e,r,t),kk(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=Ap(e.manifest[ue.ManifestSection.generic].pages,ue.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=Vd(u,e.serviceAVT);let p=Dt(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(ue.SchemaType.AnalyticalListPage);r[p.filename]=Md(e,t[g.filename])}kk(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Dt(ue.SchemaType.OverviewPage),l=Dt(ue.SchemaType.OverviewPage);r[s.filename]=kd(t[l.filename],e.manifest)}return{...t,...r}}o(oJ,"generateAppSchemasV2");function aJ(e,t,n){if(!gc(e.featureToggles,ue.Features.BuildingBlocks))return;let i=Gf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=$o(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(ue.SchemaType.FPMCustomPage,void 0,l),p=Dt(ue.SchemaType.FPMCustomPage);n[u.filename]=el(t[p.filename],s,e.serviceAVT,e.logger)}}}o(aJ,"generateCustomPageSchemasV4");function sJ(e,t,n){let i={};return n&&(nJ(e,t,i),rJ(e,t,i),aJ(e,t,i)),{...t,...i}}o(sJ,"generateAppSchemasV4");async function Uk(e,t,n){let i=await eJ(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?sJ(e,i,t):oJ(e,i,t,n)}o(Uk,"generateAppSchemas");function cJ(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new cy(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Hf(e);break;case ue.TemplateType.OverviewPageV2:t=new fy(e);break;default:t=new Hf(e);break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let a in i)n.push({dataSourceUri:a,fileContent:JSON.stringify(i[a],null,4)});for(let a in r)n.push({dataSourceUri:a,fileContent:JSON.stringify(r[a],null,4)})}return n}o(cJ,"importConfigs");function $k(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===ue.SchemaType.Application?r=`${ue.DirName.Schemas}/${ue.FileName.App[0].toUpperCase()}${ue.FileName.App.slice(1)}`:r=`${ue.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o($k,"getFileList");async function EI(e){var b,I;Xt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new Nu().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let u=qb(t),p=Ur(n,i),g=jk(p),m=dc(t,u,i),E=await Uk({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return $k(E)}o(EI,"importProjectSchema");async function SI(e){var G,$;Xt();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new Nu().doesUi5VersionFitDistTags(($=(G=t["sap.ui5"])==null?void 0:G.dependencies)==null?void 0:$.minUI5Version,i);let p=qb(t),g=b_(t),m=Ur(n,i),v=dc(t,p,i),E={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=jk(m),I=await Uk(E,b,v),j=cJ({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return $k(I,j)}o(SI,"importProjectSchemaAndConfig");var lJ=["header","sections","footer"];function fJ(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(fJ,"addFlexChangeForSection");function uJ(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Lo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Mm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${ft(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Lo.UIAnnotationTerms.Identification}`,`/@${Lo.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(uJ,"addHeaderActionCallBackV2");function pJ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Lo.UIAnnotationTypes.DataFieldForAction){let a=Br(r).split("::").splice(1).join("::"),s=ci(r,e),l=ft(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Lo.UIAnnotationTerms.Identification}`,`/@${Lo.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(pJ,"addFooterActionCallBackV2");function dJ(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(b=>b.name===i),E=Bc(t[oe.ManifestSection.generic].pages,n,m);return Vl(e,v,E,t,l,p,g,a.ID),p}o(dJ,"ensureCustomColumnDefinitionExists");function Ud(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&fJ(e,t,"visible",n)}o(Ud,"addAppSchemaDefinition");function gJ(e,t,n){e.properties[t]={$ref:`${U}${n}`}}o(gJ,"addSectionReference");function jd(e,t,n,i){let r=ft(`${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}>`,cs(n.entityType,i,`QuickVariant<${t}>`)}o(jd,"addTableDefinition");function mJ(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]=ko(n,i,t);let u=n.definitions[l];Ud(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,Ta(i,u,t),is(i,u,t),jd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),jd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),jd("ObjectPageGridTable",t,i,n),jd("ObjectPageTreeTable",t,i,n),jd("ObjectPageAnalyticalTable",t,i,n);let p,g=p0(i.entityType,e.serviceAVT);g&&(p=dJ(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))&&_l(!0,n,v.target,v.entityType,v.ID||m,p)}}o(mJ,"handleLineItem");function hJ(e,t,n,i,r,a=!1){e.definitions[t]=ko(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Ud(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(hJ,"handleSubSection");function yJ(e,t,n,i,r){e.definitions[t]=ko(e,n,i);let a=e.definitions[t];Ud(e,a,r,"ObjectPageSectionChartV2")}o(yJ,"handleSectionChart");function Bk(e,t,n,i,r,a){e.definitions[t]=ko(e,n,i);let s=e.definitions[t];Ud(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=Pc(n==null?void 0:n.target)}o(Bk,"handleHeaderFacet");function TJ(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=Pc(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(TJ,"addDataPointHeaderFacetDataType");function vJ(e,t,n,i,r){e.definitions[t]=ko(e,n,i);let a=e.definitions[t];return Ud(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(vJ,"handleFormSection");function bJ(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(bJ,"getSectionType");function EJ(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Lo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(EJ,"getReferenceKey");function Gk(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=bJ(l.base,a,s),p=EJ(l,n,u),g=`${u}<${p}>`;switch(gJ(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,hJ(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)Gk(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{mJ(e,p,r,l,t,u),kl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{yJ(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=vJ(r,g,l,p,u);wm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{Lu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{Lu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{Bk(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{Bk(r,g,l,p,u),TJ(r,g,l);break}default:i.properties[n]=ko(r,l,p)}}o(Gk,"addSection");function Hk(e,t,n,i,r,a=!1){if(e)for(let s in t)Gk(i,t,s,n,r,!1,a)}o(Hk,"addSectionsFromFacets");function Wk(e,t,n){var g,m,v,E,b,I;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}/@${Lo.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}/@${Lo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=fm((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=lm((E=e.entitySet)==null?void 0:E.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 N in n){let j=n[N];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(j.entitySet)?(Hk(l,a,i,e,t),Hk(u,s,r,e,t,!0)):Wk(e,t,j.pages)}let p=t.definitions.CustomSections;for(let N in p.properties)i.properties[N]=p.properties[N]}o(Wk,"addSections");function SJ(e,t,n){Um(e,n),jm(e,n,t,uJ,void 0,!0)}o(SJ,"addHeader");function AJ(e,t,n,i){let r=S_(t,n,i,void 0,!0);r&&y0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(AJ,"addRelatedFacetKeysType");function wd(e,t){var s;Xt();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?(SJ(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Wk(e,n,a),AJ(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]),km(n,e,oe.FioriElementsVersion.v2,pJ,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,Uo(n,lJ),n):(re(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(wd,"generateObjectPageSchemaV2");var tn=Z(ae());var PJ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function xJ(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if($c(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let N=I+(r?"#"+r:"");return t[N]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?Q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):Q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return re(n,{severity:tn.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(I){return p=p||Iu("LineItem",I),g=g||Iu("Chart",I),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],E=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(E>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][E-1],N=Q.t(I);re(n,{severity:tn.LogSeverity.Warning,message:N})}return{lineItemAnnotation:m,chartAnnotation:v}}o(xJ,"getLineItemAndChartAnnotation");function CJ(e,t){let n=e.definitions[tn.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[tn.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(CJ,"addChart");function Md(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[tn.PropertyName.table].anyOf[0].$ref=U+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[tn.PropertyName.table].anyOf[1].$ref=`${U}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(Q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[tn.PropertyName.table].anyOf[2].$ref=`${U}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${U}${tn.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${U}${tn.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,o0(n.definitions.TableColumnExtensionTypeV2.enum,[tn.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=Ml(e);if(s){wl(n);let l=[],u=rf(e.manifest[tn.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=xJ(u,s,e.logger);p&&Z_.forEach(v=>{n.definitions[v][tn.SchemaTag.annotationPath]=yr(a.fullyQualifiedName,p.term,p.qualifier)}),_l(!1,n,p,a),g&&CJ(n,g);let m=s.SelectionFields;if(Dm(n,m,a),kl(n,a),!u)return re(e.logger,{severity:tn.LogSeverity.Error,message:Q.t("NOLR"),location:{path:tn.MANIFESTPATH,range:[tn.ManifestSection.generic]}}),n;Vl(n,a,u,e.manifest,e.fragments),GA(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 Uo(n,PJ),n}o(Md,"generateAnalyticalListReportSchemaV2");var Kk=[{key:"globalFilterEntityType",since:"",deprecated:{since:"1.54.0",text:"Use globalFilterEntitySet instead."}}];function IJ(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(IJ,"getCardDefinitionNames");function OJ(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"},Aa(a,s.CardModel);let l=IJ(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=U+"CardModel"}}o(OJ,"addModelsEnum");function RJ(e,t){let n=e.properties;for(let i in Kk){let r=Kk[i],a=r.key;n[a]&&(n[a].messages=[{text:Nl(a,{since:r.since,deprecated:{since:r.deprecated.since,text:r.deprecated.text}})}]);let s=t==null?void 0:t["sap.ovp"];s&&!s[a]&&(n[a].hidden=!0)}}o(RJ,"markDeprecatedProperties");function Xk(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},RJ(n,t),OJ(n,t),n}o(Xk,"generateOverviewPageSchemaV2");var Ys=Z(ae());function AI(e,t,n,i,r,a){Xt();let s=Ur(e,t),l={templateType:a,fioriElementsVersion:Ys.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=Vd(r,l.serviceAVT),l.entitySet||re(l.logger,{severity:Ys.LogSeverity.Error,message:Q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(AI,"prepareGenerationV2");function PI(e,t,n,i,r,a){let s=AI(n,a,i,r,t,Ys.TemplateType.ListReportObjectPageV2);return wd(s,e)}o(PI,"generateObjectPageInterfaceV2");function xI(e,t,n,i,r,a){let s=AI(n,a,i,r,t,Ys.TemplateType.ListReportObjectPageV2);return Sp(s,e)}o(xI,"generateListReportInterfaceV2");function CI(e,t,n,i,r,a){let s=AI(n,a,i,r,t,Ys.TemplateType.AnalyticalListPageV2);return Md(s,e)}o(CI,"generateAnalyticalListPageInterfaceV2");function kd(e,t){return Xk(e,t)}o(kd,"generateOVPInterfaceV2");var Wf=Z(ae()),qk=require("@sap-ux/vocabularies-types/vocabularies/UI");function Qk(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(Qk,"updateDependencyLib");function MT(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(MT,"extractLastIdPart");function Yk(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return re(i,{severity:Wf.LogSeverity.Error,message:Q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Wf.PropertyName.sections),s=a>-1?MT(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${qk.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Wf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return II(g),!0}o(Yk,"createNewCustomColumn");var Wa=Z(ae());var Jk=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),zk=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function LJ(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(LJ,"initializeRouting");function NJ(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(NJ,"setTargetOptions");function FJ(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Wa.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(FJ,"calculateQueryPattern");function Zk(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){Zk(e,t,n,s);return}}}o(Zk,"fillNavigationParts");function DJ(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(DJ,"fillParentKeys");function _J(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(NJ(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=[];Zk(p,a,t,r,l==null?void 0:l.contextPath);let g=DJ(e.routePattern);u=FJ(p,l,g)}i.routes.push(Jk(u,s.route,s.route))}}}o(_J,"handlePageNavigation");function VJ(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(VJ,"removeDeletedPages");function wJ(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=zk({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=zk({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(wJ,"transferEntitySetandContextPath");function MJ(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(MJ,"updateRouteLayout");function kJ(e,t,n){var i;return e.pageType&&![Wa.PageTypeV4.CustomPage,Wa.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:e.template??`sap.fe.templates.${e.pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Wa.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Wa.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(i=t==null?void 0:t.options)==null?void 0:i.settings,viewName:e.view.name}}}),t}o(kJ,"fillTarget");function e2(e,t,n){var r,a;let i=LJ(n[Wa.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Jk(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=kJ(u,l,s),wJ(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={}),_J(u,t,l,i,s),MJ(i,s,u),i.targets[s]=l}return VJ(i,t),i}o(e2,"transformRoutingV4");var Ii=Z(ae());var t2=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],n2=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:t2[r]?s.controlAggregation=t2[r]:s.controlAggregation=Ii.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)n2(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),jJ=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,n2(e,t,t.home);let n={viewName:Ii.FIORI_FCL_ROOT_VIEW_NAME,type:Ii.ViewTypes.XML,async:!0,id:Ii.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,Qk(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),UJ=o(e=>{var t;e.rootView&&e.rootView.viewName===Ii.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Ii.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),i2=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?jJ(e,t):UJ(e)},"updateFcl");var ie=Z(ae()),$d=require("@sap-ux/vocabularies-types/vocabularies/UI");var r2=Z(uc()),kT=Z(ae());function $J(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o($J,"isExportValueEquals");function BJ(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)===kT.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(BJ,"deleteProperty");function o2(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Zc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},o2)}else $J((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]&&(BJ(e,i),l=!0);return l}o(o2,"exportProperty");function jT(e,t,n,i,r,a){let s=Pf(e.file,!1,a);if(s){let l=nT(s);if(Zc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},o2)){let p=(0,r2.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:kT.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(jT,"getExtensionExportResult");var a2=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&&jT(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),s2=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=bc(u,s[0]);p=Ec(a,m,u,g,t)}if(p){let m=xf(t),E={...i.definitions[m],definitions:i.definitions};jT(p,r,n,E,g,l)}},"exportXMLFragmentConfig");var c2=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],HJ=[...c2,"views","initialLoad","template"],UT=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function GJ(e,t,n){var s,l,u,p;let i=`@${$d.UIAnnotationTerms.LineItem}`,r=`@${$d.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ie.DefinitionName.TableSPV])==null?void 0:s[ie.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ie.DefinitionName.ALPTable])==null?void 0:u[ie.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ie.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(GJ,"determineTargetAnnotationOfTable");function WJ(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ie.DefinitionName.ALPChart])==null?void 0:a[ie.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(WJ,"determineTargetAnnotationOfChart");function KJ(e,t,n,i,r){var a;if(e.length===3)t=n=i[ie.SchemaTag.annotationPath]&&i[ie.SchemaTag.annotationPath].substr(i[ie.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split(U)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ie.SchemaTag.annotationPath])&&l[ie.SchemaTag.annotationPath].substr(l[ie.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(KJ,"determineTargetAnnotationBasedOnParentView");function XJ(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}=KJ(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ie.SchemaTag.annotationPath]&&l[ie.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ie.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ie.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(XJ,"determineTargetAnnotationOfView");function QJ(e,t,n){let i,r;return e[2].split(`@${ie.UIVOCABULARY}`)[1]?n&&n.indexOf(ie.FACETTITLEPREFIX)>-1?i=r=n.split(ie.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(QJ,"determineTargetAnnotationOfHeaderSections");function qJ(e,t){let n=e[1].split(`@${ie.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=MT(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(qJ,"determineTargetAnnotationOfSections");function YJ(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=GJ(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=WJ(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=qJ(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=QJ(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=XJ(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(YJ,"determineTargetAnnotation");function zJ(e){return e.includes(oE)}o(zJ,"isGroupingElement");function JJ(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ie.PropertyName.actions,ie.PropertyName.columns,ie.PropertyName.views,ie.PropertyName.visualFilters,ie.PropertyName.selectionFields].includes(ie.PropertyName[r])||zJ(r)){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(JJ,"determineKeyForSyncRule");function ZJ(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(ZJ,"createNewObjectInManifest");function l2(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&&(ZJ(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(l2,"transferPropertyToManifest");function eZ(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&&c2.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&HJ.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 rs(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(eZ,"deleteFromManifest");function tZ(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}=YJ(e,n.transferParameters,n.configObject),g=JJ(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),v=Mo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(v){let E={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&&Ol([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=eZ(e,E,n.transferParameters,v,m,u,l):r=l2(E,n.propertyDefinition,i)}return r}o(tZ,"exportManifestChange");function nZ(e,t,n){let i=Mn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);s2(e.transferParameters,r,n.configObject)}else i.manifest&&tZ(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ie.ChangeIndicator.Updated)}o(nZ,"evaluateExportRule");function iZ(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,RI(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(iZ,"transferSubObject");function rZ(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=pt(e.pageNameArray)+"/views",a=Mo(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(rZ,"createALPTableView");function oZ(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=pt(e.transferParameters.pageNameArray)+"/views",r=Mo(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)||$d.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(oZ,"createALPChartView");function aZ(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=pt(e.pageNameArray),r=Mo(e.exportResults.manifest,i),a=`@${$d.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(aZ,"createVisualFilters");function sZ(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=pt(t.pageNameArray)+"/views",s=Mo(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(sZ,"createLRTableView");function cZ(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ie.DefinitionName.CustomColumn))i=Yk(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ie.DefinitionName.ALPChartView&&e.key===ie.PropertyName.chart&&e.configObject)return oZ(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return rZ(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=sZ(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ie.DefinitionName.VisualFilters)&&(i=aZ(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(cZ,"createNewElement");function lZ(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(lZ,"isDefinitionTraversable");function OI(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Tm(e.configObject,e.key),s=jo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=cZ(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split(U)[1],i),p=a?[...t,a]:[...t,e.key];if(l||nZ(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||lZ(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;iZ(e,s,r,p,m)}}o(OI,"transferSortedListEntry");function fZ(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]],OI(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,OI(e,i,r),a=!0)}),e.index++})}return a}o(fZ,"transferConfigEntriesWithAnyOfDefinitions");function uZ(e,t,n,i){let r=Yb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(uZ,"mergeEntriesForInsert");function pZ(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ie.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ie.SchemaTag.propertyIndex]-r[1][ie.SchemaTag.propertyIndex])),t}o(pZ,"sortProperties");function dZ(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=fZ(n,p,i,r,a)}return s}o(dZ,"checkIfAnyOfDefinition");function RI(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=dZ(u,e,l,a,n,i),g=pZ(a.properties);u!=null&&u.$ref&&uZ(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!Ol(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,OI(l,n,i,p),m[1].$ref&&s++)})}o(RI,"transferManifestEntriesAndFlexChange");function f2(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(f2,"getClassesForSingleSection");function u2(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],f2(n,i,t),u2(n,t)}}o(u2,"getSubsectionClasses");function gZ(e,t,n){let i;for(let r in e.sections)i=t.sections[r],f2(e,r,n),u2(i,n)}o(gZ,"getExportClassesForSections");function p2(e,t){let n=vm(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(p2,"calculateBaseId");var d2=o((e,t,n=!1)=>{var l;let i=UT(e.manifest),r=new Ga,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&gZ(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:p2(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ie.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return RI(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),mZ=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=UT(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ie.PropertyName.annotationPath]?ie.DefinitionName.ALPTableView:ie.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ie.DefinitionName.LineItems;u.definitions[ie.DefinitionName.TableSPV]&&(m=u.definitions[ie.DefinitionName.TableSPV].properties.columns.$ref.split(U)[1]);let v=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((I=g.toolBar)!=null&&I.actions&&v)for(let N in v.properties)g.toolBar.actions[N]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[N]);let E={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:p2(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ie.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return RI(E,n,[],[],[],u),l},"exportListPage"),LI=o((e,t,n,i=!1)=>{let r=new Ga,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return mZ(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),g2=o((e,t,n=!1)=>LI(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),hZ=o((e,t,n,i,r,a)=>{let s=Mo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=Wb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];l2(u,p,{}),!l&&Object.keys(s).length&&v_(r,t,s)},"applyExportRule"),yZ=o((e,t,n)=>{var a;let i=UT(t),r=Object.assign(new sT,e);r.settings=Object.assign(new Cf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Mn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)hZ(l,u,s,e,i.manifest,n);else{let p=Mo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],rs(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=e2(e.home,e.pages,i.manifest),i2(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),m2=o((e,t)=>{if(e[ie.SchemaType.ListReport])return LI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return d2(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return yZ(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return g2(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return a2(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),TZ=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=UT(e.manifest),l;return t&&Object.keys(t).length>0&&(l=$o(n||[],i.name,r,e.logger)),l&&jT(l,s,i.config,t,"view",a),s},"exportCustomPage"),NI=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return LI(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return d2(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return g2(e[ie.SchemaType.AnalyticalListPage],t,n);if(e[ie.SchemaType.FPMCustomPage])return TZ(e[ie.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ut=require("@sap-ux/fe-fpm-writer");var vZ=new Map([[de.CustomExtensionType.CustomPage,Ut.generateCustomPage],[de.CustomExtensionType.CustomColumn,Ut.generateCustomColumn],[de.CustomExtensionType.CustomSection,Ut.generateCustomSection],[de.CustomExtensionType.ObjectPage,Ut.generateObjectPage],[de.CustomExtensionType.ListReport,Ut.generateListReport],[de.CustomExtensionType.CustomAction,Ut.generateCustomAction],[de.CustomExtensionType.CustomView,Ut.generateCustomView],[de.CustomExtensionType.ControllerExtension,Ut.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Ut.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Ut.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Ut.generateCustomHeaderSection]]),bZ={api:Ut.PromptsAPI,types:Ut.PromptsType};function EZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ListReport];t=xI(i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.ObjectPage];t=PI(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=kd(i,r)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[de.SchemaType.AnalyticalListPage];t=CI(i,r,a,s,l,u)}}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];if(n[de.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.ListReport];t=aT(de.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[de.SchemaType.ObjectPage];t=ox(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[de.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[de.SchemaType.AnalyticalListPage];t=aT(de.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[de.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[de.SchemaType.FreestylePage];t=ax(de.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[de.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[de.SchemaType.FPMCustomPage];t=sx(i,r,a,s,u,e.featureToggles,l)}}return t}o(EZ,"generateSchema");function SZ(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=wV(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=m2(i,n)}return t}o(SZ,"exportConfig");function AZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=KA(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=NI(i,n)}return t}o(AZ,"exportConfigEntityByPath");function PZ(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=KA(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=NI(i,n,!0)}return t}o(PZ,"deleteConfigEntityByPath");function xZ(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=sy(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=Zh(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=ey(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=ty(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=ol(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=_T(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=ol(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=DT(n[de.SchemaType.FPMCustomPage]))}return t}o(xZ,"importConfig");async function CZ(e){return SI(e)}o(CZ,"importProject");async function IZ(e){return EI(e)}o(IZ,"importProjectSchema");function OZ(){return{version:"23",fpmWriter:"31",moduleVersion:S0.version}}o(OZ,"getApiVersion");function II(e){let t=vZ.get(e.customExtension);if(t&&typeof t=="function")return(0,Ut.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(II,"generateCustomExtension");var ro=require("path"),zs=require("fs");var Kf=o(async e=>new Promise((t,n)=>{(0,zs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),RZ=o(async e=>JSON.parse(await Kf(e)),"readJSON"),FI=o(async e=>new Promise((t,n)=>{(0,zs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),LZ=o(async e=>new Promise(t=>{(0,zs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),y2=o(async e=>new Promise(t=>{(0,zs.exists)(e,n=>{t(n)})}),"resourceExists"),NZ=o(async e=>RZ((0,ro.join)(e,"manifest.json")),"getManifest"),T2=o(async e=>{let t=[],n=(0,ro.join)(e,"changes");if(!await y2(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await FI(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Kf((0,ro.join)(n,a)));return t},"getChanges"),h2=o(async(e,t="fragments")=>{let n=[],i=(0,ro.join)(e,"ext",t);if(!await y2(i))return n;let r=await FI(i);for(let a of r){let s=(0,ro.join)(i,a),l=await Kf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),FZ=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,ro.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await Kf(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 E=(0,ro.join)(t,i[v].settings.localUri);n.push({dataSourceUri:E,fileContent:await Kf(E)})}}if(n.length===0)for(let v in i){let E=i[v];if((E==null?void 0:E.type)==="ODataAnnotation"&&((m=E==null?void 0:E.settings)!=null&&m.localUri)){let b=(0,ro.join)(t,E.settings.localUri);n.push({dataSourceUri:b,fileContent:await Kf(b)})}}return n},"getAnnotations"),DZ=o(async e=>{let t=(0,ro.basename)(e),n=(0,ro.join)(e,"webapp"),i=await NZ(n),r=await FZ(i,n),a=await T2(n),s=await h2(n),l=await h2(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");fc(Fi,Z(ae()),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:
|