@sap/ux-specification 1.120.19 → 1.124.1

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.
Files changed (46) hide show
  1. package/CHANGELOG.md +7 -521
  2. package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
  3. package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
  4. package/dist/documentation/v2/v2-ListReport.html +2 -2
  5. package/dist/documentation/v2/v2-ObjectPage.html +2 -2
  6. package/dist/documentation/v2/v2-OverviewPage.html +2 -2
  7. package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
  8. package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
  9. package/dist/documentation/v4/v4-FreestylePage.html +2 -2
  10. package/dist/documentation/v4/v4-ListReport.html +2 -2
  11. package/dist/documentation/v4/v4-ObjectPage.html +2 -2
  12. package/dist/index-min.js +80 -80
  13. package/dist/index-min.js.map +3 -3
  14. package/dist/schemas/v2/AnalyticalListPageConfig.json +13 -10
  15. package/dist/schemas/v2/ListReportConfig.json +20 -15
  16. package/dist/schemas/v2/ObjectPageConfig.json +22 -16
  17. package/dist/schemas/v4/ListReportConfig.json +18 -0
  18. package/dist/schemas/v4/ObjectPageConfig.json +6 -0
  19. package/dist/specification/package.json +3 -3
  20. package/dist/specification/src/sync/common/dist_tag.json +8 -13
  21. package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.d.ts.map +1 -1
  22. package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.js +10 -5
  23. package/dist/specification/src/sync/v2/export/controls/ObjectPageTable.js.map +1 -1
  24. package/dist/specification/src/sync/v2/export/controls/Table.d.ts.map +1 -1
  25. package/dist/specification/src/sync/v2/export/controls/Table.js +10 -5
  26. package/dist/specification/src/sync/v2/export/controls/Table.js.map +1 -1
  27. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +1 -0
  28. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
  29. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +11 -0
  30. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
  31. package/dist/specification/src/sync/v4/export/controls/Table.d.ts +2 -0
  32. package/dist/specification/src/sync/v4/export/controls/Table.d.ts.map +1 -1
  33. package/dist/specification/src/sync/v4/export/controls/Table.js +22 -0
  34. package/dist/specification/src/sync/v4/export/controls/Table.js.map +1 -1
  35. package/dist/specification/src/sync/v4/generate/listReport.d.ts.map +1 -1
  36. package/dist/specification/src/sync/v4/generate/listReport.js +38 -36
  37. package/dist/specification/src/sync/v4/generate/listReport.js.map +1 -1
  38. package/dist/specification/src/sync/v4/utils/utils.d.ts +1 -1
  39. package/dist/specification/src/sync/v4/utils/utils.d.ts.map +1 -1
  40. package/dist/specification/src/sync/v4/utils/utils.js +4 -2
  41. package/dist/specification/src/sync/v4/utils/utils.js.map +1 -1
  42. package/dist/types/src/v2/controls/ObjectPageTable.d.ts +5 -5
  43. package/dist/types/src/v2/controls/Table.d.ts +9 -9
  44. package/dist/types/src/v4/controls/Table.d.ts +4 -0
  45. package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
  46. package/package.json +3 -3
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var DB=Object.create;var tl=Object.defineProperty;var CO=Object.getOwnPropertyDescriptor;var VB=Object.getOwnPropertyNames;var MB=Object.getPrototypeOf,wB=Object.prototype.hasOwnProperty;var o=(e,t)=>tl(e,"name",{value:t,configurable:!0});var ze=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ws=(e,t)=>{for(var n in t)tl(e,n,{get:t[n],enumerable:!0})},ag=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of VB(t))!wB.call(e,r)&&r!==n&&tl(e,r,{get:()=>t[r],enumerable:!(i=CO(t,r))||i.enumerable});return e},Ks=(e,t,n)=>(ag(e,t,"default"),n&&ag(n,t,"default")),te=(e,t,n)=>(n=e!=null?DB(MB(e)):{},ag(t||!e||!e.__esModule?tl(n,"default",{value:e,enumerable:!0}):n,e)),sg=e=>ag(tl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?CO(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&tl(t,n,r),r};var tL=Ye((aY,eL)=>{var TT=Object.defineProperty,kB=Object.getOwnPropertyDescriptor,UB=Object.getOwnPropertyNames,jB=Object.prototype.hasOwnProperty,ET=o((e,t)=>{for(var n in t)TT(e,n,{get:t[n],enumerable:!0})},"C"),$B=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of UB(t))!jB.call(e,r)&&r!==n&&TT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=kB(t,r))||i.enumerable});return e},"Je"),BB=o(e=>$B(TT({},"__esModule",{value:!0}),e),"$e"),IO={};ET(IO,{ALPViewType:o(()=>DO,"ALPViewType"),ActionTitlePrefix:o(()=>KB,"ActionTitlePrefix"),ActionType:o(()=>wO,"ActionType"),ArtifactType:o(()=>MO,"ArtifactType"),BindingPropertyRegexAsString:o(()=>QB,"BindingPropertyRegexAsString"),ChangeIndicator:o(()=>BO,"ChangeIndicator"),ChartColor:o(()=>rN,"ChartColor"),ColorPaletteDefinitionType:o(()=>nN,"ColorPaletteDefinitionType"),ControlType:o(()=>kO,"ControlType"),CustomExtensionType:o(()=>sN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>iH,"DATESETTINGSPATH"),DataSourceType:o(()=>eN,"DataSourceType"),DefinitionName:o(()=>WO,"DefinitionName"),DirName:o(()=>jO,"DirName"),DraftDiscardEnabledSettings:o(()=>zO,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>_O,"ExportArtifacts"),FIORI_FCL_ROOT_ID:o(()=>sH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>aH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>rH,"FRAGMENTNAMEPART"),FacetBase:o(()=>HO,"FacetBase"),FacetTitlePrefix:o(()=>WB,"FacetTitlePrefix"),Features:o(()=>cN,"Features"),FileName:o(()=>$O,"FileName"),FioriElementsVersion:o(()=>OO,"FioriElementsVersion"),FlexChangeLayer:o(()=>FO,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>ZO,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>LO,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>oH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>oN,"LogSeverity"),LogSeverityLabel:o(()=>fH,"LogSeverityLabel"),MANIFESTPATH:o(()=>qB,"MANIFESTPATH"),MacrosPropertyType:o(()=>qO,"MacrosPropertyType"),ManifestSection:o(()=>tN,"ManifestSection"),OdataVersion:o(()=>NO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>GB,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>HB,"PageType"),PageTypeV2:o(()=>bT,"PageTypeV2"),PageTypeV4:o(()=>AT,"PageTypeV4"),PropertyName:o(()=>KO,"PropertyName"),QUICKVARPATH:o(()=>tH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>nH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>lH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>cH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>QO,"SchemaKeyName"),SchemaTag:o(()=>XO,"SchemaTag"),SchemaType:o(()=>RO,"SchemaType"),SectionType:o(()=>VO,"SectionType"),StatePreservationMode:o(()=>JO,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>YO,"TableColumnVerticalAlignment"),TemplateType:o(()=>aN,"TemplateType"),UIVOCABULARY:o(()=>JB,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>eH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>ZB,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>YB,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>zB,"VOCWITHSLASH"),ViewTemplateType:o(()=>GO,"ViewTemplateType"),ViewTypes:o(()=>iN,"ViewTypes"),Visualization:o(()=>UO,"Visualization"),defaultExportResult:o(()=>XB,"defaultExportResult"),v2:o(()=>lN,"v2"),v4:o(()=>DN,"v4")});eL.exports=BB(IO);var bT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(bT||{}),AT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(AT||{}),HB={...bT,...AT},GB=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"]]),OO=(e=>(e.v2="v2",e.v4="v4",e))(OO||{}),NO=(e=>(e.v2="v2",e.v4="v4",e))(NO||{}),LO=(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))(LO||{}),FO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(FO||{}),RO=(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))(RO||{}),_O=(e=>(e.flex="flex",e.manifest="manifest",e))(_O||{}),DO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(DO||{}),VO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(VO||{}),MO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(MO||{}),wO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(wO||{}),kO=(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))(kO||{}),UO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(UO||{}),jO=(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))(jO||{}),$O=(e=>(e.App="app.json",e))($O||{}),WB="Facet ID: ",KB="Action ID: ",BO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(BO||{}),XB={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},HO=(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))(HO||{}),QB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",GO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(GO||{}),WO=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(WO||{}),KO=(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))(KO||{}),XO=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(XO||{}),QO=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(QO||{}),qB="webapp/manifest.json",zB="/@com.sap.vocabularies",YB="::@com.sap.vocabularies",JB="com.sap.vocabularies.UI.v1",ZB="com.sap.vocabularies.UI.v1.",eH="@com.sap.vocabularies.UI.v1.",tH="/quickVariantSelection",nH="/quickVariantSelectionX",iH="/filterSettings/dateSettings",rH=".fragment.",qO=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(qO||{}),zO=(e=>(e.restricted="restricted",e))(zO||{}),YO=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(YO||{}),JO=(e=>(e.persistence="persistence",e.discovery="discovery",e))(JO||{}),ZO=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(ZO||{}),eN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(eN||{}),tN=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(tN||{}),oH="sap.ui.generic.app/settings",nN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(nN||{}),aH="sap.fe.templates.RootContainer.view.Fcl",sH="appRootView",iN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(iN||{}),cH="sap.ui.core.mvc.View",lH="sap.ui.core.Fragment",rN=(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))(rN||{}),oN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(oN||{}),fH={error:"Error",warning:"Warning",info:"Information"},aN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(aN||{}),sN=(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))(sN||{}),cN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(cN||{}),lN={};ET(lN,{CardSettingsType:o(()=>pN,"CardSettingsType"),CardTemplateType:o(()=>uN,"CardTemplateType"),ChartCardType:o(()=>fN,"ChartCardType"),ChartType:o(()=>NN,"ChartType"),ContainerLayoutType:o(()=>_N,"ContainerLayoutType"),CreateMode:o(()=>RN,"CreateMode"),DateRangeType:o(()=>vN,"DateRangeType"),DefaultContentView:o(()=>CN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>TN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>IN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>FN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>dH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>hH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>mH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>gH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>EN,"FilterPathType"),IgnoredFieldsType:o(()=>xN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>yN,"LinkListFlavorType"),ListFlavorType:o(()=>gN,"ListFlavorType"),ListTypeType:o(()=>mN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>ON,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>dN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>vH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>yH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>bH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>EH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>TH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>LN,"SectionPosition"),SortOrderType:o(()=>hN,"SortOrderType"),Strategy:o(()=>PN,"Strategy"),TableColumnExtensionTypeV2:o(()=>SN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>AN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>pH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>uH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>bN,"customColumnViewTypes")});var fN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(fN||{}),uN=(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))(uN||{}),uH={"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"},pH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},pN=(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))(pN||{}),dN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(dN||{}),gN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(gN||{}),mN=(e=>(e.extended="extended",e.condensed="condensed",e))(mN||{}),hN=(e=>(e.ascending="ascending",e.descending="descending",e))(hN||{}),yN=(e=>(e.standard="standard",e.carousel="carousel",e))(yN||{}),vN=(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))(vN||{}),TN=(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))(TN||{}),EN=(e=>(e.key="key",e.catgory="category",e))(EN||{}),bN=(e=>(e.XML="XML",e))(bN||{}),AN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(AN||{}),SN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(SN||{}),PN=(e=>(e.extension="extension",e))(PN||{}),xN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(xN||{}),CN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(CN||{}),IN=(e=>(e.visual="visual",e.compact="compact",e))(IN||{}),ON=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(ON||{}),NN=(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))(NN||{}),LN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(LN||{}),FN=(e=>(e.XML="XML",e))(FN||{}),RN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(RN||{}),dH="sap.suite.ui.generic.template",gH="sap.suite.ui.generic.template.ObjectPage",mH="sap.suite.ui.generic.template.ListReport",hH="sap.suite.ui.generic.template.AnalyticalListPage",yH="sap.ui.viewExtensions",vH="sap.ui.controllerExtensions",TH="sap.suite.ui.generic.template.ObjectPage.view.Details",EH="sap.suite.ui.generic.template.ListReport.view.ListReport",bH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",_N=(e=>(e.fixed="fixed",e.resizable="resizable",e))(_N||{}),DN={};ET(DN,{ActionPlacement:o(()=>VN,"ActionPlacement"),Availability:o(()=>zN,"Availability"),CustomSectionViewTypesV4:o(()=>KN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>UN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>AH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>CH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>SH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>xH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>PH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>OH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>BN,"FilterFieldPlacement"),HorizontalAlign:o(()=>YN,"HorizontalAlign"),InitialLayoutType:o(()=>$N,"InitialLayoutType"),InitialLoadType:o(()=>kN,"InitialLoadType"),LayoutType:o(()=>jN,"LayoutType"),Placement:o(()=>qN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>LH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>NH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>IH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>RH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>FH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>GN,"SectionLayoutType"),SectionPosition:o(()=>WN,"SectionPosition"),SectionPositionV4:o(()=>QN,"SectionPositionV4"),SelectType:o(()=>HN,"SelectType"),SelectionMode:o(()=>MN,"SelectionMode"),TableCreationModeType:o(()=>XN,"TableCreationModeType"),TableTypeV4:o(()=>wN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>ZN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>JN,"VariantManagementTypeObjectPage")});var VN=(e=>(e.After="After",e.Before="Before",e))(VN||{}),MN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(MN||{}),wN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(wN||{}),kN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(kN||{}),UN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(UN||{}),jN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(jN||{}),$N=(e=>(e.Compact="Compact",e.Visual="Visual",e))($N||{}),BN=(e=>(e.After="After",e.Before="Before",e))(BN||{}),HN=(e=>(e.single="single",e.multi="multi",e))(HN||{}),GN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(GN||{}),WN=(e=>(e.After="After",e.Before="Before",e))(WN||{}),KN=(e=>(e.XML="XML",e))(KN||{}),XN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(XN||{}),AH="sap.fe.templates",SH="sap.fe.core.fpm",PH="sap.fe.templates.ObjectPage",xH="sap.fe.templates.ListReport",CH="sap.fe.templates.AnalyticalListPage",IH="XMLFragment",QN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(QN||{}),OH="sap.f.routing.Router",NH="sap.f",LH="sap.ui.controllerExtensions",FH="sap.fe.templates.ObjectPage.ObjectPageController",RH="sap.fe.templates.ListReport.ListReportController",qN=(e=>(e.After="After",e.Before="Before",e))(qN||{}),zN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(zN||{}),YN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(YN||{}),JN=(e=>(e.None="None",e.Control="Control",e))(JN||{}),ZN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ZN||{})});var aL=Ye(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.Features=wr.CustomExtensionType=wr.TemplateType=wr.LogSeverityLabel=wr.LogSeverity=void 0;var nL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(nL||(wr.LogSeverity=nL={}));wr.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var iL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(iL||(wr.TemplateType=iL={}));var rL;(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"})(rL||(wr.CustomExtensionType=rL={}));var oL;(function(e){e.BuildingBlocks="BuildingBlocks"})(oL||(wr.Features=oL={}))});var _L=Ye((lY,RL)=>{var ST=Object.defineProperty,_H=Object.getOwnPropertyDescriptor,DH=Object.getOwnPropertyNames,VH=Object.prototype.hasOwnProperty,MH=o((e,t)=>{for(var n in t)ST(e,n,{get:t[n],enumerable:!0})},"h"),wH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of DH(t))!VH.call(e,r)&&r!==n&&ST(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=_H(t,r))||i.enumerable});return e},"M"),kH=o(e=>wH(ST({},"__esModule",{value:!0}),e),"Q"),sL={};MH(sL,{CardSettingsType:o(()=>fL,"CardSettingsType"),CardTemplateType:o(()=>lL,"CardTemplateType"),ChartCardType:o(()=>cL,"ChartCardType"),ChartType:o(()=>IL,"ChartType"),ContainerLayoutType:o(()=>FL,"ContainerLayoutType"),CreateMode:o(()=>LL,"CreateMode"),DateRangeType:o(()=>hL,"DateRangeType"),DefaultContentView:o(()=>PL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>yL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>xL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>NL,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>$H,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>GH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>HH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>BH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>vL,"FilterPathType"),IgnoredFieldsType:o(()=>SL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>mL,"LinkListFlavorType"),ListFlavorType:o(()=>pL,"ListFlavorType"),ListTypeType:o(()=>dL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>CL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>uL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>KH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>WH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>qH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>QH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>XH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>OL,"SectionPosition"),SortOrderType:o(()=>gL,"SortOrderType"),Strategy:o(()=>AL,"Strategy"),TableColumnExtensionTypeV2:o(()=>bL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>EL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>jH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>UH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>TL,"customColumnViewTypes")});RL.exports=kH(sL);var cL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(cL||{}),lL=(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))(lL||{}),UH={"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"},jH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},fL=(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))(fL||{}),uL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(uL||{}),pL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(pL||{}),dL=(e=>(e.extended="extended",e.condensed="condensed",e))(dL||{}),gL=(e=>(e.ascending="ascending",e.descending="descending",e))(gL||{}),mL=(e=>(e.standard="standard",e.carousel="carousel",e))(mL||{}),hL=(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))(hL||{}),yL=(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))(yL||{}),vL=(e=>(e.key="key",e.catgory="category",e))(vL||{}),TL=(e=>(e.XML="XML",e))(TL||{}),EL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(EL||{}),bL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(bL||{}),AL=(e=>(e.extension="extension",e))(AL||{}),SL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(SL||{}),PL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(PL||{}),xL=(e=>(e.visual="visual",e.compact="compact",e))(xL||{}),CL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(CL||{}),IL=(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))(IL||{}),OL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(OL||{}),NL=(e=>(e.XML="XML",e))(NL||{}),LL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(LL||{}),$H="sap.suite.ui.generic.template",BH="sap.suite.ui.generic.template.ObjectPage",HH="sap.suite.ui.generic.template.ListReport",GH="sap.suite.ui.generic.template.AnalyticalListPage",WH="sap.ui.viewExtensions",KH="sap.ui.controllerExtensions",XH="sap.suite.ui.generic.template.ObjectPage.view.Details",QH="sap.suite.ui.generic.template.ListReport.view.ListReport",qH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",FL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(FL||{})});var tF=Ye((uY,eF)=>{var PT=Object.defineProperty,zH=Object.getOwnPropertyDescriptor,YH=Object.getOwnPropertyNames,JH=Object.prototype.hasOwnProperty,ZH=o((e,t)=>{for(var n in t)PT(e,n,{get:t[n],enumerable:!0})},"w"),e5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of YH(t))!JH.call(e,r)&&r!==n&&PT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=zH(t,r))||i.enumerable});return e},"h"),t5=o(e=>e5(PT({},"__esModule",{value:!0}),e),"R"),DL={};ZH(DL,{ActionPlacement:o(()=>VL,"ActionPlacement"),Availability:o(()=>zL,"Availability"),CustomSectionViewTypesV4:o(()=>KL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>UL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>n5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>a5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>i5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>o5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>r5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>c5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>BL,"FilterFieldPlacement"),HorizontalAlign:o(()=>YL,"HorizontalAlign"),InitialLayoutType:o(()=>$L,"InitialLayoutType"),InitialLoadType:o(()=>kL,"InitialLoadType"),LayoutType:o(()=>jL,"LayoutType"),Placement:o(()=>qL,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>f5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>l5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>s5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>p5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>u5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>GL,"SectionLayoutType"),SectionPosition:o(()=>WL,"SectionPosition"),SectionPositionV4:o(()=>QL,"SectionPositionV4"),SelectType:o(()=>HL,"SelectType"),SelectionMode:o(()=>ML,"SelectionMode"),TableCreationModeType:o(()=>XL,"TableCreationModeType"),TableTypeV4:o(()=>wL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>ZL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>JL,"VariantManagementTypeObjectPage")});eF.exports=t5(DL);var VL=(e=>(e.After="After",e.Before="Before",e))(VL||{}),ML=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(ML||{}),wL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(wL||{}),kL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(kL||{}),UL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(UL||{}),jL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(jL||{}),$L=(e=>(e.Compact="Compact",e.Visual="Visual",e))($L||{}),BL=(e=>(e.After="After",e.Before="Before",e))(BL||{}),HL=(e=>(e.single="single",e.multi="multi",e))(HL||{}),GL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(GL||{}),WL=(e=>(e.After="After",e.Before="Before",e))(WL||{}),KL=(e=>(e.XML="XML",e))(KL||{}),XL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(XL||{}),n5="sap.fe.templates",i5="sap.fe.core.fpm",r5="sap.fe.templates.ObjectPage",o5="sap.fe.templates.ListReport",a5="sap.fe.templates.AnalyticalListPage",s5="XMLFragment",QL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(QL||{}),c5="sap.f.routing.Router",l5="sap.f",f5="sap.ui.controllerExtensions",u5="sap.fe.templates.ObjectPage.ObjectPageController",p5="sap.fe.templates.ListReport.ListReportController",qL=(e=>(e.After="After",e.Before="Before",e))(qL||{}),zL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(zL||{}),YL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(YL||{}),JL=(e=>(e.None="None",e.Control="Control",e))(JL||{}),ZL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ZL||{})});var le=Ye(vi=>{"use strict";var nF=vi&&vi.__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]}),d5=vi&&vi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),iF=vi&&vi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&nF(t,e,n)},rF=vi&&vi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&nF(t,e,n);return d5(t,e),t};Object.defineProperty(vi,"__esModule",{value:!0});vi.v4=vi.v2=void 0;iF(tL(),vi);iF(aL(),vi);vi.v2=rF(_L());vi.v4=rF(tF())});var BT=Ye((FY,vF)=>{"use strict";var R5=o(function(t){return _5(t)&&!D5(t)},"isMergeableObject");function _5(e){return!!e&&typeof e=="object"}o(_5,"isNonNullObject");function D5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||w5(e)}o(D5,"isSpecial");var V5=typeof Symbol=="function"&&Symbol.for,M5=V5?Symbol.for("react.element"):60103;function w5(e){return e.$$typeof===M5}o(w5,"isReactElement");function k5(e){return Array.isArray(e)?[]:{}}o(k5,"emptyTarget");function Zf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ol(k5(e),e,t):e}o(Zf,"cloneUnlessOtherwiseSpecified");function U5(e,t,n){return e.concat(t).map(function(i){return Zf(i,n)})}o(U5,"defaultArrayMerge");function j5(e,t){if(!t.customMerge)return ol;var n=t.customMerge(e);return typeof n=="function"?n:ol}o(j5,"getMergeFunction");function $5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o($5,"getEnumerableOwnPropertySymbols");function hF(e){return Object.keys(e).concat($5(e))}o(hF,"getKeys");function yF(e,t){try{return t in e}catch{return!1}}o(yF,"propertyIsOnObject");function B5(e,t){return yF(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(B5,"propertyIsUnsafe");function H5(e,t,n){var i={};return n.isMergeableObject(e)&&hF(e).forEach(function(r){i[r]=Zf(e[r],n)}),hF(t).forEach(function(r){B5(e,r)||(yF(e,r)&&n.isMergeableObject(t[r])?i[r]=j5(r,n)(e[r],t[r],n):i[r]=Zf(t[r],n))}),i}o(H5,"mergeObject");function ol(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||U5,n.isMergeableObject=n.isMergeableObject||R5,n.cloneUnlessOtherwiseSpecified=Zf;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):H5(e,t,n):Zf(t,n)}o(ol,"deepmerge");ol.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 ol(i,r,n)},{})},"deepmergeAll");var G5=ol;vF.exports=G5});var yg=Ye(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.mergeAnnotations=Tt.addGetByValue=Tt.createIndexedFind=Tt.lazy=Tt.Decimal=Tt.isComplexTypeDefinition=Tt.unalias=Tt.alias=Tt.substringBeforeLast=Tt.substringBeforeFirst=Tt.splitAtLast=Tt.splitAtFirst=Tt.defaultReferences=Tt.TermToTypes=Tt.EnumIsFlag=void 0;var W5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Tt,"EnumIsFlag",{enumerable:!0,get:o(function(){return W5.EnumIsFlag},"get")});var K5=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Tt,"TermToTypes",{enumerable:!0,get:o(function(){return K5.TermToTypes},"get")});var X5=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Tt,"defaultReferences",{enumerable:!0,get:o(function(){return X5.VocabularyReferences},"get")});function TF(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(TF,"splitAt");function EF(e,t){return t<0?e:e.substring(0,t)}o(EF,"substringAt");function hg(e,t){return TF(e,e.indexOf(t))}o(hg,"splitAtFirst");Tt.splitAtFirst=hg;function bF(e,t){return TF(e,e.lastIndexOf(t))}o(bF,"splitAtLast");Tt.splitAtLast=bF;function Q5(e,t){return EF(e,e.indexOf(t))}o(Q5,"substringBeforeFirst");Tt.substringBeforeFirst=Q5;function q5(e,t){return EF(e,e.lastIndexOf(t))}o(q5,"substringBeforeLast");Tt.substringBeforeLast=q5;function AF(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=bF(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=hg(t,"@");return`${a}@${AF(e,s)}`}else return t}o(AF,"alias");Tt.alias=AF;function HT(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=hg(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]=hg(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(HT,"unalias");Tt.unalias=HT;function z5(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(z5,"isComplexTypeDefinition");Tt.isComplexTypeDefinition=z5;function Y5(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(Y5,"Decimal");Tt.Decimal=Y5;function J5(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(J5,"lazy");Tt.lazy=J5;function SF(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(SF,"createIndexedFind");Tt.createIndexedFind=SF;function Z5(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:SF(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(Z5,"addGetByValue");Tt.addGetByValue=Z5;function eG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=HT(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=HT(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(eG,"mergeAnnotations");Tt.mergeAnnotations=eG});var wF=Ye(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.convert=void 0;var vg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Pe=yg(),eo=Symbol("Annotation Target");function ia(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ia,"appendObjectPath");function ur(e,t,n,i){var r,a,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,T)=>{if(T.includes("@")){let[A,E]=(0,Pe.splitAtFirst)(T,"@");m.push(A),m.push(`@${E}`)}else m.push(T);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[eo]!==void 0)t=t[eo];else if(t._type==="Property"){let m=(0,Pe.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,T)=>{var A,E,O,R,U;let W=o(j=>(m.messages.push({message:j}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=ia(m.objectPath,m.target),T.startsWith("@")&&T!=="@$ui5.overload"){let[j,ae]=e.splitTerm(T),Z=(A=m.target.annotations[j.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):W(`Annotation '${T.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let j;if(T==="$AnnotationPath"?j=m.target.value:T==="$Path"&&(j=m.target.path),j!==void 0){let ae=ur(e,m.target[eo],j);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=ia(m.objectPath,Z))}),m.target=ae.target,m.objectPath=ia(m.objectPath,m.target),m}}switch((E=m.target)===null||E===void 0?void 0:E._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(T===""||e.unalias(T)===Z.fullyQualifiedName)return m;let re=(R=(O=Z.entitySets.by_name(T))!==null&&O!==void 0?O:Z.singletons.by_name(T))!==null&&R!==void 0?R:Z.actionImports.by_name(T);if(re)return m.target=re,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(T===""||T==="$Type")return m.target=Z.entityType,m;if(T==="$")return m;if(T==="$NavigationPropertyBinding"){let xe=Z.navigationPropertyBinding;return m.target=xe,m}let re=ur(e,Z.entityType,T);return m.target=re.target,m.objectPath=re.objectPath.reduce(ia,m.objectPath),m}case"EntityType":{let Z=m.target;if(T===""||T==="$Type")return m;let re=Z.entityProperties.by_name(T);if(re)return m.target=re,m;let xe=Z.navigationProperties.by_name(T);if(xe)return m.target=xe,m;let _=(0,Pe.substringBeforeFirst)(e.unalias(T),"("),ut=Z.actions[_];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=ur(e,m.target.action,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ia,m.objectPath),m}case"Action":{let Z=m.target;if(T===""||T==="@$ui5.overload"||T==="0")return m;if(T==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let re=(U=Z.parameters[T])!==null&&U!==void 0?U:Z.parameters.find(xe=>xe.name===T);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let xe=re.properties.by_name(T);if(xe)return m.target=xe,m;let _=re.navigationProperties.by_name(T);if(_)return m.target=_,m}}break;case"ActionParameter":let j=m.target.typeReference;if(j!==void 0){let Z=ur(e,j,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ia,m.objectPath),m}break;case"NavigationProperty":let ae=ur(e,m.target.targetType,T);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(ia,m.objectPath),m;default:if(T==="")return m;if(m.target[T])return m.target=m.target[T],m.objectPath=ia(m.objectPath,m.target),m}return W(`Element '${T}' 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=OF(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var DB=Object.create;var tl=Object.defineProperty;var CO=Object.getOwnPropertyDescriptor;var VB=Object.getOwnPropertyNames;var MB=Object.getPrototypeOf,wB=Object.prototype.hasOwnProperty;var o=(e,t)=>tl(e,"name",{value:t,configurable:!0});var ze=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ye=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ws=(e,t)=>{for(var n in t)tl(e,n,{get:t[n],enumerable:!0})},ag=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of VB(t))!wB.call(e,r)&&r!==n&&tl(e,r,{get:()=>t[r],enumerable:!(i=CO(t,r))||i.enumerable});return e},Ks=(e,t,n)=>(ag(e,t,"default"),n&&ag(n,t,"default")),te=(e,t,n)=>(n=e!=null?DB(MB(e)):{},ag(t||!e||!e.__esModule?tl(n,"default",{value:e,enumerable:!0}):n,e)),sg=e=>ag(tl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?CO(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&tl(t,n,r),r};var tL=Ye((aY,eL)=>{var TT=Object.defineProperty,kB=Object.getOwnPropertyDescriptor,UB=Object.getOwnPropertyNames,jB=Object.prototype.hasOwnProperty,bT=o((e,t)=>{for(var n in t)TT(e,n,{get:t[n],enumerable:!0})},"C"),$B=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of UB(t))!jB.call(e,r)&&r!==n&&TT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=kB(t,r))||i.enumerable});return e},"Je"),BB=o(e=>$B(TT({},"__esModule",{value:!0}),e),"$e"),IO={};bT(IO,{ALPViewType:o(()=>DO,"ALPViewType"),ActionTitlePrefix:o(()=>KB,"ActionTitlePrefix"),ActionType:o(()=>wO,"ActionType"),ArtifactType:o(()=>MO,"ArtifactType"),BindingPropertyRegexAsString:o(()=>QB,"BindingPropertyRegexAsString"),ChangeIndicator:o(()=>BO,"ChangeIndicator"),ChartColor:o(()=>rN,"ChartColor"),ColorPaletteDefinitionType:o(()=>nN,"ColorPaletteDefinitionType"),ControlType:o(()=>kO,"ControlType"),CustomExtensionType:o(()=>sN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>iH,"DATESETTINGSPATH"),DataSourceType:o(()=>eN,"DataSourceType"),DefinitionName:o(()=>WO,"DefinitionName"),DirName:o(()=>jO,"DirName"),DraftDiscardEnabledSettings:o(()=>zO,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>_O,"ExportArtifacts"),FIORI_FCL_ROOT_ID:o(()=>sH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>aH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>rH,"FRAGMENTNAMEPART"),FacetBase:o(()=>HO,"FacetBase"),FacetTitlePrefix:o(()=>WB,"FacetTitlePrefix"),Features:o(()=>cN,"Features"),FileName:o(()=>$O,"FileName"),FioriElementsVersion:o(()=>OO,"FioriElementsVersion"),FlexChangeLayer:o(()=>FO,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>ZO,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>LO,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>oH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>oN,"LogSeverity"),LogSeverityLabel:o(()=>fH,"LogSeverityLabel"),MANIFESTPATH:o(()=>qB,"MANIFESTPATH"),MacrosPropertyType:o(()=>qO,"MacrosPropertyType"),ManifestSection:o(()=>tN,"ManifestSection"),OdataVersion:o(()=>NO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>GB,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>HB,"PageType"),PageTypeV2:o(()=>ET,"PageTypeV2"),PageTypeV4:o(()=>AT,"PageTypeV4"),PropertyName:o(()=>KO,"PropertyName"),QUICKVARPATH:o(()=>tH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>nH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>lH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>cH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>QO,"SchemaKeyName"),SchemaTag:o(()=>XO,"SchemaTag"),SchemaType:o(()=>RO,"SchemaType"),SectionType:o(()=>VO,"SectionType"),StatePreservationMode:o(()=>JO,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>YO,"TableColumnVerticalAlignment"),TemplateType:o(()=>aN,"TemplateType"),UIVOCABULARY:o(()=>JB,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>eH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>ZB,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>YB,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>zB,"VOCWITHSLASH"),ViewTemplateType:o(()=>GO,"ViewTemplateType"),ViewTypes:o(()=>iN,"ViewTypes"),Visualization:o(()=>UO,"Visualization"),defaultExportResult:o(()=>XB,"defaultExportResult"),v2:o(()=>lN,"v2"),v4:o(()=>DN,"v4")});eL.exports=BB(IO);var ET=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(ET||{}),AT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(AT||{}),HB={...ET,...AT},GB=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"]]),OO=(e=>(e.v2="v2",e.v4="v4",e))(OO||{}),NO=(e=>(e.v2="v2",e.v4="v4",e))(NO||{}),LO=(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))(LO||{}),FO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(FO||{}),RO=(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))(RO||{}),_O=(e=>(e.flex="flex",e.manifest="manifest",e))(_O||{}),DO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(DO||{}),VO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(VO||{}),MO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(MO||{}),wO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(wO||{}),kO=(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))(kO||{}),UO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(UO||{}),jO=(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))(jO||{}),$O=(e=>(e.App="app.json",e))($O||{}),WB="Facet ID: ",KB="Action ID: ",BO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(BO||{}),XB={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},HO=(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))(HO||{}),QB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",GO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(GO||{}),WO=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(WO||{}),KO=(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))(KO||{}),XO=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(XO||{}),QO=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(QO||{}),qB="webapp/manifest.json",zB="/@com.sap.vocabularies",YB="::@com.sap.vocabularies",JB="com.sap.vocabularies.UI.v1",ZB="com.sap.vocabularies.UI.v1.",eH="@com.sap.vocabularies.UI.v1.",tH="/quickVariantSelection",nH="/quickVariantSelectionX",iH="/filterSettings/dateSettings",rH=".fragment.",qO=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(qO||{}),zO=(e=>(e.restricted="restricted",e))(zO||{}),YO=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(YO||{}),JO=(e=>(e.persistence="persistence",e.discovery="discovery",e))(JO||{}),ZO=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(ZO||{}),eN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(eN||{}),tN=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(tN||{}),oH="sap.ui.generic.app/settings",nN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(nN||{}),aH="sap.fe.templates.RootContainer.view.Fcl",sH="appRootView",iN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(iN||{}),cH="sap.ui.core.mvc.View",lH="sap.ui.core.Fragment",rN=(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))(rN||{}),oN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(oN||{}),fH={error:"Error",warning:"Warning",info:"Information"},aN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(aN||{}),sN=(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))(sN||{}),cN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(cN||{}),lN={};bT(lN,{CardSettingsType:o(()=>pN,"CardSettingsType"),CardTemplateType:o(()=>uN,"CardTemplateType"),ChartCardType:o(()=>fN,"ChartCardType"),ChartType:o(()=>NN,"ChartType"),ContainerLayoutType:o(()=>_N,"ContainerLayoutType"),CreateMode:o(()=>RN,"CreateMode"),DateRangeType:o(()=>vN,"DateRangeType"),DefaultContentView:o(()=>CN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>TN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>IN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>FN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>dH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>hH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>mH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>gH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>bN,"FilterPathType"),IgnoredFieldsType:o(()=>xN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>yN,"LinkListFlavorType"),ListFlavorType:o(()=>gN,"ListFlavorType"),ListTypeType:o(()=>mN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>ON,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>dN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>vH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>yH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>EH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>bH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>TH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>LN,"SectionPosition"),SortOrderType:o(()=>hN,"SortOrderType"),Strategy:o(()=>PN,"Strategy"),TableColumnExtensionTypeV2:o(()=>SN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>AN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>pH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>uH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>EN,"customColumnViewTypes")});var fN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(fN||{}),uN=(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))(uN||{}),uH={"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"},pH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},pN=(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))(pN||{}),dN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(dN||{}),gN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(gN||{}),mN=(e=>(e.extended="extended",e.condensed="condensed",e))(mN||{}),hN=(e=>(e.ascending="ascending",e.descending="descending",e))(hN||{}),yN=(e=>(e.standard="standard",e.carousel="carousel",e))(yN||{}),vN=(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))(vN||{}),TN=(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))(TN||{}),bN=(e=>(e.key="key",e.catgory="category",e))(bN||{}),EN=(e=>(e.XML="XML",e))(EN||{}),AN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(AN||{}),SN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(SN||{}),PN=(e=>(e.extension="extension",e))(PN||{}),xN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(xN||{}),CN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(CN||{}),IN=(e=>(e.visual="visual",e.compact="compact",e))(IN||{}),ON=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(ON||{}),NN=(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))(NN||{}),LN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(LN||{}),FN=(e=>(e.XML="XML",e))(FN||{}),RN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(RN||{}),dH="sap.suite.ui.generic.template",gH="sap.suite.ui.generic.template.ObjectPage",mH="sap.suite.ui.generic.template.ListReport",hH="sap.suite.ui.generic.template.AnalyticalListPage",yH="sap.ui.viewExtensions",vH="sap.ui.controllerExtensions",TH="sap.suite.ui.generic.template.ObjectPage.view.Details",bH="sap.suite.ui.generic.template.ListReport.view.ListReport",EH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",_N=(e=>(e.fixed="fixed",e.resizable="resizable",e))(_N||{}),DN={};bT(DN,{ActionPlacement:o(()=>VN,"ActionPlacement"),Availability:o(()=>zN,"Availability"),CustomSectionViewTypesV4:o(()=>KN,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>UN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>AH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>CH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>SH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>xH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>PH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>OH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>BN,"FilterFieldPlacement"),HorizontalAlign:o(()=>YN,"HorizontalAlign"),InitialLayoutType:o(()=>$N,"InitialLayoutType"),InitialLoadType:o(()=>kN,"InitialLoadType"),LayoutType:o(()=>jN,"LayoutType"),Placement:o(()=>qN,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>LH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>NH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>IH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>RH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>FH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>GN,"SectionLayoutType"),SectionPosition:o(()=>WN,"SectionPosition"),SectionPositionV4:o(()=>QN,"SectionPositionV4"),SelectType:o(()=>HN,"SelectType"),SelectionMode:o(()=>MN,"SelectionMode"),TableCreationModeType:o(()=>XN,"TableCreationModeType"),TableTypeV4:o(()=>wN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>ZN,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>JN,"VariantManagementTypeObjectPage")});var VN=(e=>(e.After="After",e.Before="Before",e))(VN||{}),MN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(MN||{}),wN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(wN||{}),kN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(kN||{}),UN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(UN||{}),jN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(jN||{}),$N=(e=>(e.Compact="Compact",e.Visual="Visual",e))($N||{}),BN=(e=>(e.After="After",e.Before="Before",e))(BN||{}),HN=(e=>(e.single="single",e.multi="multi",e))(HN||{}),GN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(GN||{}),WN=(e=>(e.After="After",e.Before="Before",e))(WN||{}),KN=(e=>(e.XML="XML",e))(KN||{}),XN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(XN||{}),AH="sap.fe.templates",SH="sap.fe.core.fpm",PH="sap.fe.templates.ObjectPage",xH="sap.fe.templates.ListReport",CH="sap.fe.templates.AnalyticalListPage",IH="XMLFragment",QN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(QN||{}),OH="sap.f.routing.Router",NH="sap.f",LH="sap.ui.controllerExtensions",FH="sap.fe.templates.ObjectPage.ObjectPageController",RH="sap.fe.templates.ListReport.ListReportController",qN=(e=>(e.After="After",e.Before="Before",e))(qN||{}),zN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(zN||{}),YN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(YN||{}),JN=(e=>(e.None="None",e.Control="Control",e))(JN||{}),ZN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ZN||{})});var aL=Ye(wr=>{"use strict";Object.defineProperty(wr,"__esModule",{value:!0});wr.Features=wr.CustomExtensionType=wr.TemplateType=wr.LogSeverityLabel=wr.LogSeverity=void 0;var nL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(nL||(wr.LogSeverity=nL={}));wr.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var iL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(iL||(wr.TemplateType=iL={}));var rL;(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"})(rL||(wr.CustomExtensionType=rL={}));var oL;(function(e){e.BuildingBlocks="BuildingBlocks"})(oL||(wr.Features=oL={}))});var _L=Ye((lY,RL)=>{var ST=Object.defineProperty,_H=Object.getOwnPropertyDescriptor,DH=Object.getOwnPropertyNames,VH=Object.prototype.hasOwnProperty,MH=o((e,t)=>{for(var n in t)ST(e,n,{get:t[n],enumerable:!0})},"h"),wH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of DH(t))!VH.call(e,r)&&r!==n&&ST(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=_H(t,r))||i.enumerable});return e},"M"),kH=o(e=>wH(ST({},"__esModule",{value:!0}),e),"Q"),sL={};MH(sL,{CardSettingsType:o(()=>fL,"CardSettingsType"),CardTemplateType:o(()=>lL,"CardTemplateType"),ChartCardType:o(()=>cL,"ChartCardType"),ChartType:o(()=>IL,"ChartType"),ContainerLayoutType:o(()=>FL,"ContainerLayoutType"),CreateMode:o(()=>LL,"CreateMode"),DateRangeType:o(()=>hL,"DateRangeType"),DefaultContentView:o(()=>PL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>yL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>xL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>NL,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>$H,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>GH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>HH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>BH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>vL,"FilterPathType"),IgnoredFieldsType:o(()=>SL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>mL,"LinkListFlavorType"),ListFlavorType:o(()=>pL,"ListFlavorType"),ListTypeType:o(()=>dL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>CL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>uL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>KH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>WH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>qH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>QH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>XH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>OL,"SectionPosition"),SortOrderType:o(()=>gL,"SortOrderType"),Strategy:o(()=>AL,"Strategy"),TableColumnExtensionTypeV2:o(()=>EL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>bL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>jH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>UH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>TL,"customColumnViewTypes")});RL.exports=kH(sL);var cL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(cL||{}),lL=(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))(lL||{}),UH={"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"},jH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},fL=(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))(fL||{}),uL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(uL||{}),pL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(pL||{}),dL=(e=>(e.extended="extended",e.condensed="condensed",e))(dL||{}),gL=(e=>(e.ascending="ascending",e.descending="descending",e))(gL||{}),mL=(e=>(e.standard="standard",e.carousel="carousel",e))(mL||{}),hL=(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))(hL||{}),yL=(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))(yL||{}),vL=(e=>(e.key="key",e.catgory="category",e))(vL||{}),TL=(e=>(e.XML="XML",e))(TL||{}),bL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(bL||{}),EL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(EL||{}),AL=(e=>(e.extension="extension",e))(AL||{}),SL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(SL||{}),PL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(PL||{}),xL=(e=>(e.visual="visual",e.compact="compact",e))(xL||{}),CL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(CL||{}),IL=(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))(IL||{}),OL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(OL||{}),NL=(e=>(e.XML="XML",e))(NL||{}),LL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(LL||{}),$H="sap.suite.ui.generic.template",BH="sap.suite.ui.generic.template.ObjectPage",HH="sap.suite.ui.generic.template.ListReport",GH="sap.suite.ui.generic.template.AnalyticalListPage",WH="sap.ui.viewExtensions",KH="sap.ui.controllerExtensions",XH="sap.suite.ui.generic.template.ObjectPage.view.Details",QH="sap.suite.ui.generic.template.ListReport.view.ListReport",qH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",FL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(FL||{})});var tF=Ye((uY,eF)=>{var PT=Object.defineProperty,zH=Object.getOwnPropertyDescriptor,YH=Object.getOwnPropertyNames,JH=Object.prototype.hasOwnProperty,ZH=o((e,t)=>{for(var n in t)PT(e,n,{get:t[n],enumerable:!0})},"w"),e5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of YH(t))!JH.call(e,r)&&r!==n&&PT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=zH(t,r))||i.enumerable});return e},"h"),t5=o(e=>e5(PT({},"__esModule",{value:!0}),e),"R"),DL={};ZH(DL,{ActionPlacement:o(()=>VL,"ActionPlacement"),Availability:o(()=>zL,"Availability"),CustomSectionViewTypesV4:o(()=>KL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>UL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>n5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>a5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>i5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>o5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>r5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>c5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>BL,"FilterFieldPlacement"),HorizontalAlign:o(()=>YL,"HorizontalAlign"),InitialLayoutType:o(()=>$L,"InitialLayoutType"),InitialLoadType:o(()=>kL,"InitialLoadType"),LayoutType:o(()=>jL,"LayoutType"),Placement:o(()=>qL,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>f5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>l5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>s5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>p5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>u5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>GL,"SectionLayoutType"),SectionPosition:o(()=>WL,"SectionPosition"),SectionPositionV4:o(()=>QL,"SectionPositionV4"),SelectType:o(()=>HL,"SelectType"),SelectionMode:o(()=>ML,"SelectionMode"),TableCreationModeType:o(()=>XL,"TableCreationModeType"),TableTypeV4:o(()=>wL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>ZL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>JL,"VariantManagementTypeObjectPage")});eF.exports=t5(DL);var VL=(e=>(e.After="After",e.Before="Before",e))(VL||{}),ML=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(ML||{}),wL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(wL||{}),kL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(kL||{}),UL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(UL||{}),jL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(jL||{}),$L=(e=>(e.Compact="Compact",e.Visual="Visual",e))($L||{}),BL=(e=>(e.After="After",e.Before="Before",e))(BL||{}),HL=(e=>(e.single="single",e.multi="multi",e))(HL||{}),GL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(GL||{}),WL=(e=>(e.After="After",e.Before="Before",e))(WL||{}),KL=(e=>(e.XML="XML",e))(KL||{}),XL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(XL||{}),n5="sap.fe.templates",i5="sap.fe.core.fpm",r5="sap.fe.templates.ObjectPage",o5="sap.fe.templates.ListReport",a5="sap.fe.templates.AnalyticalListPage",s5="XMLFragment",QL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(QL||{}),c5="sap.f.routing.Router",l5="sap.f",f5="sap.ui.controllerExtensions",u5="sap.fe.templates.ObjectPage.ObjectPageController",p5="sap.fe.templates.ListReport.ListReportController",qL=(e=>(e.After="After",e.Before="Before",e))(qL||{}),zL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(zL||{}),YL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(YL||{}),JL=(e=>(e.None="None",e.Control="Control",e))(JL||{}),ZL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(ZL||{})});var le=Ye(bi=>{"use strict";var nF=bi&&bi.__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]}),d5=bi&&bi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),iF=bi&&bi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&nF(t,e,n)},rF=bi&&bi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&nF(t,e,n);return d5(t,e),t};Object.defineProperty(bi,"__esModule",{value:!0});bi.v4=bi.v2=void 0;iF(tL(),bi);iF(aL(),bi);bi.v2=rF(_L());bi.v4=rF(tF())});var BT=Ye((FY,vF)=>{"use strict";var R5=o(function(t){return _5(t)&&!D5(t)},"isMergeableObject");function _5(e){return!!e&&typeof e=="object"}o(_5,"isNonNullObject");function D5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||w5(e)}o(D5,"isSpecial");var V5=typeof Symbol=="function"&&Symbol.for,M5=V5?Symbol.for("react.element"):60103;function w5(e){return e.$$typeof===M5}o(w5,"isReactElement");function k5(e){return Array.isArray(e)?[]:{}}o(k5,"emptyTarget");function Zf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ol(k5(e),e,t):e}o(Zf,"cloneUnlessOtherwiseSpecified");function U5(e,t,n){return e.concat(t).map(function(i){return Zf(i,n)})}o(U5,"defaultArrayMerge");function j5(e,t){if(!t.customMerge)return ol;var n=t.customMerge(e);return typeof n=="function"?n:ol}o(j5,"getMergeFunction");function $5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o($5,"getEnumerableOwnPropertySymbols");function hF(e){return Object.keys(e).concat($5(e))}o(hF,"getKeys");function yF(e,t){try{return t in e}catch{return!1}}o(yF,"propertyIsOnObject");function B5(e,t){return yF(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(B5,"propertyIsUnsafe");function H5(e,t,n){var i={};return n.isMergeableObject(e)&&hF(e).forEach(function(r){i[r]=Zf(e[r],n)}),hF(t).forEach(function(r){B5(e,r)||(yF(e,r)&&n.isMergeableObject(t[r])?i[r]=j5(r,n)(e[r],t[r],n):i[r]=Zf(t[r],n))}),i}o(H5,"mergeObject");function ol(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||U5,n.isMergeableObject=n.isMergeableObject||R5,n.cloneUnlessOtherwiseSpecified=Zf;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):H5(e,t,n):Zf(t,n)}o(ol,"deepmerge");ol.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 ol(i,r,n)},{})},"deepmergeAll");var G5=ol;vF.exports=G5});var yg=Ye(Tt=>{"use strict";Object.defineProperty(Tt,"__esModule",{value:!0});Tt.mergeAnnotations=Tt.addGetByValue=Tt.createIndexedFind=Tt.lazy=Tt.Decimal=Tt.isComplexTypeDefinition=Tt.unalias=Tt.alias=Tt.substringBeforeLast=Tt.substringBeforeFirst=Tt.splitAtLast=Tt.splitAtFirst=Tt.defaultReferences=Tt.TermToTypes=Tt.EnumIsFlag=void 0;var W5=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(Tt,"EnumIsFlag",{enumerable:!0,get:o(function(){return W5.EnumIsFlag},"get")});var K5=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(Tt,"TermToTypes",{enumerable:!0,get:o(function(){return K5.TermToTypes},"get")});var X5=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(Tt,"defaultReferences",{enumerable:!0,get:o(function(){return X5.VocabularyReferences},"get")});function TF(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(TF,"splitAt");function bF(e,t){return t<0?e:e.substring(0,t)}o(bF,"substringAt");function hg(e,t){return TF(e,e.indexOf(t))}o(hg,"splitAtFirst");Tt.splitAtFirst=hg;function EF(e,t){return TF(e,e.lastIndexOf(t))}o(EF,"splitAtLast");Tt.splitAtLast=EF;function Q5(e,t){return bF(e,e.indexOf(t))}o(Q5,"substringBeforeFirst");Tt.substringBeforeFirst=Q5;function q5(e,t){return bF(e,e.lastIndexOf(t))}o(q5,"substringBeforeLast");Tt.substringBeforeLast=q5;function AF(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=EF(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=hg(t,"@");return`${a}@${AF(e,s)}`}else return t}o(AF,"alias");Tt.alias=AF;function HT(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=hg(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]=hg(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(HT,"unalias");Tt.unalias=HT;function z5(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(z5,"isComplexTypeDefinition");Tt.isComplexTypeDefinition=z5;function Y5(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(Y5,"Decimal");Tt.Decimal=Y5;function J5(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(J5,"lazy");Tt.lazy=J5;function SF(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(SF,"createIndexedFind");Tt.createIndexedFind=SF;function Z5(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:SF(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(Z5,"addGetByValue");Tt.addGetByValue=Z5;function eG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=HT(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=HT(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(eG,"mergeAnnotations");Tt.mergeAnnotations=eG});var wF=Ye(bg=>{"use strict";Object.defineProperty(bg,"__esModule",{value:!0});bg.convert=void 0;var vg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Pe=yg(),eo=Symbol("Annotation Target");function ia(e,t){return e[e.length-1]!==t&&e.push(t),e}o(ia,"appendObjectPath");function dr(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,T)=>{if(T.includes("@")){let[A,b]=(0,Pe.splitAtFirst)(T,"@");m.push(A),m.push(`@${b}`)}else m.push(T);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[eo]!==void 0)t=t[eo];else if(t._type==="Property"){let m=(0,Pe.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,T)=>{var A,b,O,R,U;let W=o(j=>(m.messages.push({message:j}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=ia(m.objectPath,m.target),T.startsWith("@")&&T!=="@$ui5.overload"){let[j,ae]=e.splitTerm(T),Z=(A=m.target.annotations[j.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):W(`Annotation '${T.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let j;if(T==="$AnnotationPath"?j=m.target.value:T==="$Path"&&(j=m.target.path),j!==void 0){let ae=dr(e,m.target[eo],j);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=ia(m.objectPath,Z))}),m.target=ae.target,m.objectPath=ia(m.objectPath,m.target),m}}switch((b=m.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let Z=m.target;if(T===""||e.unalias(T)===Z.fullyQualifiedName)return m;let re=(R=(O=Z.entitySets.by_name(T))!==null&&O!==void 0?O:Z.singletons.by_name(T))!==null&&R!==void 0?R:Z.actionImports.by_name(T);if(re)return m.target=re,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(T===""||T==="$Type")return m.target=Z.entityType,m;if(T==="$")return m;if(T==="$NavigationPropertyBinding"){let xe=Z.navigationPropertyBinding;return m.target=xe,m}let re=dr(e,Z.entityType,T);return m.target=re.target,m.objectPath=re.objectPath.reduce(ia,m.objectPath),m}case"EntityType":{let Z=m.target;if(T===""||T==="$Type")return m;let re=Z.entityProperties.by_name(T);if(re)return m.target=re,m;let xe=Z.navigationProperties.by_name(T);if(xe)return m.target=xe,m;let _=(0,Pe.substringBeforeFirst)(e.unalias(T),"("),ut=Z.actions[_];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=dr(e,m.target.action,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ia,m.objectPath),m}case"Action":{let Z=m.target;if(T===""||T==="@$ui5.overload"||T==="0")return m;if(T==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let re=(U=Z.parameters[T])!==null&&U!==void 0?U:Z.parameters.find(xe=>xe.name===T);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let xe=re.properties.by_name(T);if(xe)return m.target=xe,m;let _=re.navigationProperties.by_name(T);if(_)return m.target=_,m}}break;case"ActionParameter":let j=m.target.typeReference;if(j!==void 0){let Z=dr(e,j,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(ia,m.objectPath),m}break;case"NavigationProperty":let ae=dr(e,m.target.targetType,T);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(ia,m.objectPath),m;default:if(T==="")return m;if(m.target[T])return m.target=m.target[T],m.objectPath=ia(m.objectPath,m.target),m}return W(`Element '${T}' 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=OF(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(ur,"resolveTarget");function tG(e){return e.includes("@")}o(tG,"isAnnotationPath");function PF(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[eo]:i};return(0,Pe.lazy)(a,"$target",()=>ur(e,i,t.PropertyPath,r).target),a}o(PF,"mapPropertyPath");function xF(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[eo]:i};return(0,Pe.lazy)(a,"$target",()=>ur(e,i,a.value,r).target),a}o(xF,"mapAnnotationPath");function CF(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[eo]:i};return(0,Pe.lazy)(s,"$target",()=>ur(e,i,t.NavigationPropertyPath,r).target),s}o(CF,"mapNavigationPropertyPath");function nG(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[eo]:i};return(0,Pe.lazy)(a,"$target",()=>ur(e,i,t.Path,r).target),a}o(nG,"mapPath");function IF(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"Decimal":return(0,Pe.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,Pe.alias)(vg.VocabularyReferences,g)});return l[0]!==void 0&&Pe.EnumIsFlag[(0,Pe.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return PF(e,a,s,t,n);case"NavigationPropertyPath":return CF(e,a,s,t,n);case"AnnotationPath":return xF(e,a,s,t,n);case"Path":return tG(a.Path)?ur(e,t,a.Path,n).target:nG(e,a,s,t,n);case"Record":return KT(e,n,t,i,r,a.Record,s);case"Collection":return NF(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(IF,"parseValue");function OF(e,t,n,i){let r=Pe.TermToTypes[t];return i&&(t=`${(0,Pe.substringBeforeLast)(t,".")}.${i}`,r=Pe.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
13
+ <PropertyValue Path= `+p[1]+">");return g}o(dr,"resolveTarget");function tG(e){return e.includes("@")}o(tG,"isAnnotationPath");function PF(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[eo]:i};return(0,Pe.lazy)(a,"$target",()=>dr(e,i,t.PropertyPath,r).target),a}o(PF,"mapPropertyPath");function xF(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[eo]:i};return(0,Pe.lazy)(a,"$target",()=>dr(e,i,a.value,r).target),a}o(xF,"mapAnnotationPath");function CF(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[eo]:i};return(0,Pe.lazy)(s,"$target",()=>dr(e,i,t.NavigationPropertyPath,r).target),s}o(CF,"mapNavigationPropertyPath");function nG(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[eo]:i};return(0,Pe.lazy)(a,"$target",()=>dr(e,i,t.Path,r).target),a}o(nG,"mapPath");function IF(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"Decimal":return(0,Pe.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,Pe.alias)(vg.VocabularyReferences,g)});return l[0]!==void 0&&Pe.EnumIsFlag[(0,Pe.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return PF(e,a,s,t,n);case"NavigationPropertyPath":return CF(e,a,s,t,n);case"AnnotationPath":return xF(e,a,s,t,n);case"Path":return tG(a.Path)?dr(e,t,a.Path,n).target:nG(e,a,s,t,n);case"Record":return KT(e,n,t,i,r,a.Record,s);case"Collection":return NF(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(IF,"parseValue");function OF(e,t,n,i){let r=Pe.TermToTypes[t];return i&&(t=`${(0,Pe.substringBeforeLast)(t,".")}.${i}`,r=Pe.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(OF,"inferTypeFromTerm");function iG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(iG,"isDataFieldWithForAction");function rG(e,t,n,i,r){let a;return!r.type&&t?a=OF(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(rG,"parseRecordType");function KT(e,t,n,i,r,a,s){let l={$Type:rG(e,t,n,i,a),fullyQualifiedName:s,[eo]:n,__source:r};for(let u of a.propertyValues)(0,Pe.lazy)(l,u.name,()=>IF(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Pe.lazy)(l,"annotations",FF(e,a,l)),iG(l)&&(0,Pe.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(KT,"parseRecord");function oG(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(oG,"getOrInferCollectionType");function NF(e,t,n,i,r,a,s){switch(oG(a)){case"PropertyPath":return a.map((u,p)=>PF(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>ur(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>xF(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>CF(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>KT(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(NF,"parseCollection");function aG(e){return!!e.targetTypeName}o(aG,"isV4NavigationProperty");function sG(e,t,n){var i;let r;if(n.record)r=KT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=IF(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=NF(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[eo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,vg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Pe.lazy)(r,"annotations",FF(e,n,r))}catch{}return r}o(sG,"convertAnnotation");var XT=class XT{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,Pe.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,RF)}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,Pe.addGetByValue)(i,"name"),(0,Pe.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,Pe.alias)(vg.VocabularyReferences,t);return(0,Pe.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Pe.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(XT,"Converter");var GT=XT;function eu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(eu,"resolveEntityType");function LF(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Pe.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(LF,"resolveNavigationPropertyBindings");function ra(e,t){let n=t.annotations;return()=>Tg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ra,"resolveAnnotations");function FF(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[eo]=n[eo],a.fullyQualifiedName=`${i}@${a.term}`}),Tg(e,n,r??[])}}o(FF,"resolveAnnotationsOnAnnotation");function Tg(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,Pe.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>sG(u,t,p))),i},{})}o(Tg,"createAnnotationsObject");function RF(e,t){let n=t;return(0,Pe.lazy)(n,"annotations",ra(e,t)),(0,Pe.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,DF)),(0,Pe.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,_F)),(0,Pe.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,MF)),n}o(RF,"convertEntityContainer");function _F(e,t){let n=t;(0,Pe.lazy)(n,"entityType",eu(e,t.entityTypeName)),(0,Pe.lazy)(n,"annotations",ra(e,n));let i=t.navigationPropertyBinding;return(0,Pe.lazy)(n,"navigationPropertyBinding",LF(e,i)),n}o(_F,"convertSingleton");function DF(e,t){let n=t;(0,Pe.lazy)(n,"entityType",eu(e,t.entityTypeName)),(0,Pe.lazy)(n,"annotations",ra(e,n));let i=t.navigationPropertyBinding;return(0,Pe.lazy)(n,"navigationPropertyBinding",LF(e,i)),n}o(DF,"convertEntitySet");function cG(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Pe.lazy)(n,"annotations",ra(e,t)),(0,Pe.lazy)(n,"keys",e.convert(t.keys,WT)),(0,Pe.lazy)(n,"entityProperties",e.convert(t.entityProperties,WT)),(0,Pe.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,VF)),(0,Pe.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=ur(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(cG,"convertEntityType");function WT(e,t){let n=t;return(0,Pe.lazy)(n,"annotations",ra(e,t)),(0,Pe.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(WT,"convertProperty");function VF(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!aG(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,Pe.lazy)(a,"targetType",eu(e,t.targetTypeName)),(0,Pe.lazy)(a,"annotations",ra(e,t)),a}o(VF,"convertNavigationProperty");function MF(e,t){let n=t;return(0,Pe.lazy)(n,"annotations",ra(e,t)),(0,Pe.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(MF,"convertActionImport");function lG(e,t){let n=t;return n.sourceType&&(0,Pe.lazy)(n,"sourceEntityType",eu(e,t.sourceType)),n.returnType&&(0,Pe.lazy)(n,"returnEntityType",eu(e,t.returnType)),(0,Pe.lazy)(n,"parameters",e.convert(t.parameters,fG)),(0,Pe.lazy)(n,"annotations",()=>{let i=(0,Pe.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 Tg(e,t,a)}),n}o(lG,"convertAction");function fG(e,t){let n=t;return(0,Pe.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,Pe.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+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 Tg(e,t,a)}),n}o(fG,"convertActionParameter");function uG(e,t){let n=t;return(0,Pe.lazy)(n,"properties",e.convert(t.properties,WT)),(0,Pe.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,VF)),(0,Pe.lazy)(n,"annotations",ra(e,t)),n}o(uG,"convertComplexType");function pG(e,t){let n=t;return(0,Pe.lazy)(n,"annotations",ra(e,t)),n}o(pG,"convertTypeDefinition");function dG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:vg.VocabularyReferences,diagnostics:[]},n=new GT(e,t);return(0,Pe.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,RF)),(0,Pe.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,DF)),(0,Pe.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,_F)),(0,Pe.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,cG)),(0,Pe.lazy)(t,"actions",n.convert(n.rawSchema.actions,lG)),(0,Pe.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,uG)),(0,Pe.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,MF)),(0,Pe.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,pG)),t.resolvePath=o(function(r){let a=ur(n,void 0,r);return a.target&&ia(a.objectPath,a.target),a},"resolvePath"),t}o(dG,"convert");Eg.convert=dG});var $F=Ye(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.revertTermToGenericType=void 0;var gG=yg();function mG(e,t){var n,i,r,a,s,l;let u;if(Array.isArray(t))u={type:"Collection",Collection:t.map(p=>bg(e,p))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let p=t.valueOf().split(".");p.length>1&&e.find(g=>g.alias===p[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?u={type:"Int",Int:t.valueOf()}:!((a=t.isFloat)===null||a===void 0)&&a.call(t)?u={type:"Float",Float:t.valueOf()}:!((s=t.isDate)===null||s===void 0)&&s.call(t)?u={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:bg(e,t)});return u}o(mG,"revertObjectToRawType");function kF(e,t){let n;switch(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=mG(e,t);break}return n}o(kF,"revertValueToRawType");var hG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function UF(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=jF(e,t[i][r]);if(!a.term){let s=(0,gG.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(UF,"revertAnnotationsToRawType");function bg(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(hG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:kF(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],UF(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}}}o(bg,"revertCollectionItemToRawType");function jF(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=[],UF(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>bg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:bg(e,t)}:{...n,value:kF(e,t)}}o(jF,"revertTermToGenericType");Ag.revertTermToGenericType=jF});var BF=Ye(oa=>{"use strict";var yG=oa&&oa.__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]}),QT=oa&&oa.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&yG(t,e,n)};Object.defineProperty(oa,"__esModule",{value:!0});QT(wF(),oa);QT(yg(),oa);QT($F(),oa)});var ZT=Ye(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.MergedRawMetadata=ka.RawMetadataInstance=ka.ensureArray=void 0;function vG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(vG,"ensureArray");ka.ensureArray=vG;var YT=class YT{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(YT,"RawMetadataInstance");var qT=YT;ka.RawMetadataInstance=qT;var JT=class JT{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(JT,"MergedRawMetadata");var zT=JT;ka.MergedRawMetadata=zT});var HF=Ye(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.merge=void 0;var TG=ZT();function EG(...e){let t=new TG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(EG,"merge");Sg.merge=EG});var GF=Ye(Pg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var z=this;r(z),z.q=z.c="",z.bufferCheckPosition=e.MAX_BUFFER_LENGTH,z.opt=S||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!I,z.noscript=!!(I||z.opt.noscript),z.state=_.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(E)),z.opt.unquotedAttributeValues===void 0&&(z.opt.unquotedAttributeValues=!I),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),yt(z,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(S,"F"),S.prototype=I;var z=new S;return z}),Object.keys||(Object.keys=function(I){var S=[];for(var z in I)I.hasOwnProperty(z)&&S.push(z);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),z=0,V=0,Ve=t.length;V<Ve;V++){var Ft=I[t[V]].length;if(Ft>S)switch(t[V]){case"textNode":an(I);break;case"cdata":$e(I,"oncdata",I.cdata),I.cdata="";break;case"script":$e(I,"onscript",I.script),I.script="";break;default:en(I,"Max buffer length exceeded: "+t[V])}z=Math.max(z,Ft)}var qe=e.MAX_BUFFER_LENGTH-z;I.bufferCheckPosition=qe+I.position}o(i,"checkBufferLength");function r(I){for(var S=0,z=t.length;S<z;S++)I[t[S]]=""}o(r,"clearBuffers");function a(I){an(I),I.cdata!==""&&($e(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&($e(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Lt(this)},"end"),write:st,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(V){z.emit("error",V),z._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(z,"on"+V,{get:o(function(){return z._parser["on"+V]},"get"),set:o(function(Ve){if(!Ve)return z.removeAllListeners(V),z._parser["on"+V]=Ve,Ve;z.on(V,Ve)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var z=this;return!z._parser["on"+I]&&l.indexOf(I)!==-1&&(z._parser["on"+I]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),z.emit.apply(z,V)}),s.prototype.on.call(z,I,S)};var g="[CDATA[",m="DOCTYPE",T="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",E={xml:T,xmlns:A},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[:_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-]/,U=/[#:_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]/,W=/[#:_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 j(I){return I===" "||I===`
20
- `||I==="\r"||I===" "}o(j,"isWhitespace");function ae(I){return I==='"'||I==="'"}o(ae,"isQuote");function Z(I){return I===">"||j(I)}o(Z,"isAttribEnd");function re(I,S){return I.test(S)}o(re,"isMatch");function xe(I,S){return!re(I,S)}o(xe,"notMatch");var _=0;e.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var S=e.ENTITIES[I],z=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[I]=z});for(var ut in e.STATE)e.STATE[e.STATE[ut]]=ut;_=e.STATE;function yt(I,S,z){I[S]&&I[S](z)}o(yt,"emit");function $e(I,S,z){I.textNode&&an(I),yt(I,S,z)}o($e,"emitNode");function an(I){I.textNode=Wn(I.opt,I.textNode),I.textNode&&yt(I,"ontext",I.textNode),I.textNode=""}o(an,"closeText");function Wn(I,S){return I.trim&&(S=S.trim()),I.normalize&&(S=S.replace(/\s+/g," ")),S}o(Wn,"textopts");function en(I,S){return an(I),I.trackPosition&&(S+=`
19
+ </Annotations>`),r}o(OF,"inferTypeFromTerm");function iG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(iG,"isDataFieldWithForAction");function rG(e,t,n,i,r){let a;return!r.type&&t?a=OF(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(rG,"parseRecordType");function KT(e,t,n,i,r,a,s){let l={$Type:rG(e,t,n,i,a),fullyQualifiedName:s,[eo]:n,__source:r};for(let u of a.propertyValues)(0,Pe.lazy)(l,u.name,()=>IF(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Pe.lazy)(l,"annotations",FF(e,a,l)),iG(l)&&(0,Pe.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(KT,"parseRecord");function oG(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(oG,"getOrInferCollectionType");function NF(e,t,n,i,r,a,s){switch(oG(a)){case"PropertyPath":return a.map((u,p)=>PF(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>dr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>xF(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>CF(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>KT(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(NF,"parseCollection");function aG(e){return!!e.targetTypeName}o(aG,"isV4NavigationProperty");function sG(e,t,n){var i;let r;if(n.record)r=KT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=IF(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=NF(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[eo]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,vg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Pe.lazy)(r,"annotations",FF(e,n,r))}catch{}return r}o(sG,"convertAnnotation");var XT=class XT{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,Pe.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,RF)}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,Pe.addGetByValue)(i,"name"),(0,Pe.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,Pe.alias)(vg.VocabularyReferences,t);return(0,Pe.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Pe.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(XT,"Converter");var GT=XT;function eu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(eu,"resolveEntityType");function LF(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Pe.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(LF,"resolveNavigationPropertyBindings");function ra(e,t){let n=t.annotations;return()=>Tg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(ra,"resolveAnnotations");function FF(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[eo]=n[eo],a.fullyQualifiedName=`${i}@${a.term}`}),Tg(e,n,r??[])}}o(FF,"resolveAnnotationsOnAnnotation");function Tg(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,Pe.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>sG(u,t,p))),i},{})}o(Tg,"createAnnotationsObject");function RF(e,t){let n=t;return(0,Pe.lazy)(n,"annotations",ra(e,t)),(0,Pe.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,DF)),(0,Pe.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,_F)),(0,Pe.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,MF)),n}o(RF,"convertEntityContainer");function _F(e,t){let n=t;(0,Pe.lazy)(n,"entityType",eu(e,t.entityTypeName)),(0,Pe.lazy)(n,"annotations",ra(e,n));let i=t.navigationPropertyBinding;return(0,Pe.lazy)(n,"navigationPropertyBinding",LF(e,i)),n}o(_F,"convertSingleton");function DF(e,t){let n=t;(0,Pe.lazy)(n,"entityType",eu(e,t.entityTypeName)),(0,Pe.lazy)(n,"annotations",ra(e,n));let i=t.navigationPropertyBinding;return(0,Pe.lazy)(n,"navigationPropertyBinding",LF(e,i)),n}o(DF,"convertEntitySet");function cG(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Pe.lazy)(n,"annotations",ra(e,t)),(0,Pe.lazy)(n,"keys",e.convert(t.keys,WT)),(0,Pe.lazy)(n,"entityProperties",e.convert(t.entityProperties,WT)),(0,Pe.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,VF)),(0,Pe.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=dr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(cG,"convertEntityType");function WT(e,t){let n=t;return(0,Pe.lazy)(n,"annotations",ra(e,t)),(0,Pe.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(WT,"convertProperty");function VF(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!aG(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,Pe.lazy)(a,"targetType",eu(e,t.targetTypeName)),(0,Pe.lazy)(a,"annotations",ra(e,t)),a}o(VF,"convertNavigationProperty");function MF(e,t){let n=t;return(0,Pe.lazy)(n,"annotations",ra(e,t)),(0,Pe.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(MF,"convertActionImport");function lG(e,t){let n=t;return n.sourceType&&(0,Pe.lazy)(n,"sourceEntityType",eu(e,t.sourceType)),n.returnType&&(0,Pe.lazy)(n,"returnEntityType",eu(e,t.returnType)),(0,Pe.lazy)(n,"parameters",e.convert(t.parameters,fG)),(0,Pe.lazy)(n,"annotations",()=>{let i=(0,Pe.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 Tg(e,t,a)}),n}o(lG,"convertAction");function fG(e,t){let n=t;return(0,Pe.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,Pe.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.indexOf(")")+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 Tg(e,t,a)}),n}o(fG,"convertActionParameter");function uG(e,t){let n=t;return(0,Pe.lazy)(n,"properties",e.convert(t.properties,WT)),(0,Pe.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,VF)),(0,Pe.lazy)(n,"annotations",ra(e,t)),n}o(uG,"convertComplexType");function pG(e,t){let n=t;return(0,Pe.lazy)(n,"annotations",ra(e,t)),n}o(pG,"convertTypeDefinition");function dG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:vg.VocabularyReferences,diagnostics:[]},n=new GT(e,t);return(0,Pe.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,RF)),(0,Pe.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,DF)),(0,Pe.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,_F)),(0,Pe.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,cG)),(0,Pe.lazy)(t,"actions",n.convert(n.rawSchema.actions,lG)),(0,Pe.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,uG)),(0,Pe.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,MF)),(0,Pe.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,pG)),t.resolvePath=o(function(r){let a=dr(n,void 0,r);return a.target&&ia(a.objectPath,a.target),a},"resolvePath"),t}o(dG,"convert");bg.convert=dG});var $F=Ye(Ag=>{"use strict";Object.defineProperty(Ag,"__esModule",{value:!0});Ag.revertTermToGenericType=void 0;var gG=yg();function mG(e,t){var n,i,r,a,s,l;let u;if(Array.isArray(t))u={type:"Collection",Collection:t.map(p=>Eg(e,p))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))u={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isString)===null||i===void 0)&&i.call(t)){let p=t.valueOf().split(".");p.length>1&&e.find(g=>g.alias===p[0])?u={type:"EnumMember",EnumMember:t.valueOf()}:u={type:"String",String:t.valueOf()}}else!((r=t.isInt)===null||r===void 0)&&r.call(t)?u={type:"Int",Int:t.valueOf()}:!((a=t.isFloat)===null||a===void 0)&&a.call(t)?u={type:"Float",Float:t.valueOf()}:!((s=t.isDate)===null||s===void 0)&&s.call(t)?u={type:"Date",Date:t.valueOf()}:!((l=t.isBoolean)===null||l===void 0)&&l.call(t)?u={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?u={type:"Path",Path:t.path}:t.type==="AnnotationPath"?u={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?u={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?u={type:"Null"}:t.type==="PropertyPath"?u={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?u={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(u={type:"Record",Record:Eg(e,t)});return u}o(mG,"revertObjectToRawType");function kF(e,t){let n;switch(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=mG(e,t);break}return n}o(kF,"revertValueToRawType");var hG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function UF(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=jF(e,t[i][r]);if(!a.term){let s=(0,gG.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(UF,"revertAnnotationsToRawType");function Eg(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(hG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:kF(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],UF(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}}}o(Eg,"revertCollectionItemToRawType");function jF(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=[],UF(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Eg(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Eg(e,t)}:{...n,value:kF(e,t)}}o(jF,"revertTermToGenericType");Ag.revertTermToGenericType=jF});var BF=Ye(oa=>{"use strict";var yG=oa&&oa.__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]}),QT=oa&&oa.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&yG(t,e,n)};Object.defineProperty(oa,"__esModule",{value:!0});QT(wF(),oa);QT(yg(),oa);QT($F(),oa)});var ZT=Ye(ka=>{"use strict";Object.defineProperty(ka,"__esModule",{value:!0});ka.MergedRawMetadata=ka.RawMetadataInstance=ka.ensureArray=void 0;function vG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(vG,"ensureArray");ka.ensureArray=vG;var YT=class YT{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(YT,"RawMetadataInstance");var qT=YT;ka.RawMetadataInstance=qT;var JT=class JT{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(JT,"MergedRawMetadata");var zT=JT;ka.MergedRawMetadata=zT});var HF=Ye(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.merge=void 0;var TG=ZT();function bG(...e){let t=new TG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(bG,"merge");Sg.merge=bG});var GF=Ye(Pg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var J=this;r(J),J.q=J.c="",J.bufferCheckPosition=e.MAX_BUFFER_LENGTH,J.opt=S||{},J.opt.lowercase=J.opt.lowercase||J.opt.lowercasetags,J.looseCase=J.opt.lowercase?"toLowerCase":"toUpperCase",J.tags=[],J.closed=J.closedRoot=J.sawRoot=!1,J.tag=J.error=null,J.strict=!!I,J.noscript=!!(I||J.opt.noscript),J.state=_.BEGIN,J.strictEntities=J.opt.strictEntities,J.ENTITIES=J.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),J.attribList=[],J.opt.xmlns&&(J.ns=Object.create(b)),J.trackPosition=J.opt.position!==!1,J.trackPosition&&(J.position=J.line=J.column=0),yt(J,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(S,"F"),S.prototype=I;var J=new S;return J}),Object.keys||(Object.keys=function(I){var S=[];for(var J in I)I.hasOwnProperty(J)&&S.push(J);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),J=0,M=0,Ve=t.length;M<Ve;M++){var Ft=I[t[M]].length;if(Ft>S)switch(t[M]){case"textNode":on(I);break;case"cdata":$e(I,"oncdata",I.cdata),I.cdata="";break;case"script":$e(I,"onscript",I.script),I.script="";break;default:an(I,"Max buffer length exceeded: "+t[M])}J=Math.max(J,Ft)}var qe=e.MAX_BUFFER_LENGTH-J;I.bufferCheckPosition=qe+I.position}o(i,"checkBufferLength");function r(I){for(var S=0,J=t.length;S<J;S++)I[t[S]]=""}o(r,"clearBuffers");function a(I){on(I),I.cdata!==""&&($e(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&($e(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Lt(this)},"end"),write:st,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var J=this;this._parser.onend=function(){J.emit("end")},this._parser.onerror=function(M){J.emit("error",M),J._parser.error=null},this._decoder=null,l.forEach(function(M){Object.defineProperty(J,"on"+M,{get:o(function(){return J._parser["on"+M]},"get"),set:o(function(Ve){if(!Ve)return J.removeAllListeners(M),J._parser["on"+M]=Ve,Ve;J.on(M,Ve)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var J=this;return!J._parser["on"+I]&&l.indexOf(I)!==-1&&(J._parser["on"+I]=function(){var M=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);M.splice(0,0,I),J.emit.apply(J,M)}),s.prototype.on.call(J,I,S)};var g="[CDATA[",m="DOCTYPE",T="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",b={xml:T,xmlns:A},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,R=/[:_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-]/,U=/[#:_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]/,W=/[#:_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 j(I){return I===" "||I===`
20
+ `||I==="\r"||I===" "}o(j,"isWhitespace");function ae(I){return I==='"'||I==="'"}o(ae,"isQuote");function Z(I){return I===">"||j(I)}o(Z,"isAttribEnd");function re(I,S){return I.test(S)}o(re,"isMatch");function xe(I,S){return!re(I,S)}o(xe,"notMatch");var _=0;e.STATE={BEGIN:_++,BEGIN_WHITESPACE:_++,TEXT:_++,TEXT_ENTITY:_++,OPEN_WAKA:_++,SGML_DECL:_++,SGML_DECL_QUOTED:_++,DOCTYPE:_++,DOCTYPE_QUOTED:_++,DOCTYPE_DTD:_++,DOCTYPE_DTD_QUOTED:_++,COMMENT_STARTING:_++,COMMENT:_++,COMMENT_ENDING:_++,COMMENT_ENDED:_++,CDATA:_++,CDATA_ENDING:_++,CDATA_ENDING_2:_++,PROC_INST:_++,PROC_INST_BODY:_++,PROC_INST_ENDING:_++,OPEN_TAG:_++,OPEN_TAG_SLASH:_++,ATTRIB:_++,ATTRIB_NAME:_++,ATTRIB_NAME_SAW_WHITE:_++,ATTRIB_VALUE:_++,ATTRIB_VALUE_QUOTED:_++,ATTRIB_VALUE_CLOSED:_++,ATTRIB_VALUE_UNQUOTED:_++,ATTRIB_VALUE_ENTITY_Q:_++,ATTRIB_VALUE_ENTITY_U:_++,CLOSE_TAG:_++,CLOSE_TAG_SAW_WHITE:_++,SCRIPT:_++,SCRIPT_ENDING:_++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var S=e.ENTITIES[I],J=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[I]=J});for(var ut in e.STATE)e.STATE[e.STATE[ut]]=ut;_=e.STATE;function yt(I,S,J){I[S]&&I[S](J)}o(yt,"emit");function $e(I,S,J){I.textNode&&on(I),yt(I,S,J)}o($e,"emitNode");function on(I){I.textNode=Wn(I.opt,I.textNode),I.textNode&&yt(I,"ontext",I.textNode),I.textNode=""}o(on,"closeText");function Wn(I,S){return I.trim&&(S=S.trim()),I.normalize&&(S=S.replace(/\s+/g," ")),S}o(Wn,"textopts");function an(I,S){return on(I),I.trackPosition&&(S+=`
21
21
  Line: `+I.line+`
22
22
  Column: `+I.column+`
23
- Char: `+I.c),S=new Error(S),I.error=S,yt(I,"onerror",S),I}o(en,"error");function Lt(I){return I.sawRoot&&!I.closedRoot&&Re(I,"Unclosed root tag"),I.state!==_.BEGIN&&I.state!==_.BEGIN_WHITESPACE&&I.state!==_.TEXT&&en(I,"Unexpected end"),an(I),I.c="",I.closed=!0,yt(I,"onend"),n.call(I,I.strict,I.opt),I}o(Lt,"end");function Re(I,S){if(typeof I!="object"||!(I instanceof n))throw new Error("bad call to strictFail");I.strict&&en(I,S)}o(Re,"strictFail");function Oi(I){I.strict||(I.tagName=I.tagName[I.looseCase]());var S=I.tags[I.tags.length-1]||I,z=I.tag={name:I.tagName,attributes:{}};I.opt.xmlns&&(z.ns=S.ns),I.attribList.length=0,$e(I,"onopentagstart",z)}o(Oi,"newTag");function It(I,S){var z=I.indexOf(":"),V=z<0?["",I]:I.split(":"),Ve=V[0],Ft=V[1];return S&&I==="xmlns"&&(Ve="xmlns",Ft=""),{prefix:Ve,local:Ft}}o(It,"qname");function Mt(I){if(I.strict||(I.attribName=I.attribName[I.looseCase]()),I.attribList.indexOf(I.attribName)!==-1||I.tag.attributes.hasOwnProperty(I.attribName)){I.attribName=I.attribValue="";return}if(I.opt.xmlns){var S=It(I.attribName,!0),z=S.prefix,V=S.local;if(z==="xmlns")if(V==="xml"&&I.attribValue!==T)Re(I,"xml: prefix must be bound to "+T+`
24
- Actual: `+I.attribValue);else if(V==="xmlns"&&I.attribValue!==A)Re(I,"xmlns: prefix must be bound to "+A+`
25
- Actual: `+I.attribValue);else{var Ve=I.tag,Ft=I.tags[I.tags.length-1]||I;Ve.ns===Ft.ns&&(Ve.ns=Object.create(Ft.ns)),Ve.ns[V]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,$e(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(Mt,"attrib");function sn(I,S){if(I.opt.xmlns){var z=I.tag,V=It(I.tagName);z.prefix=V.prefix,z.local=V.local,z.uri=z.ns[V.prefix]||"",z.prefix&&!z.uri&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),z.uri=V.prefix);var Ve=I.tags[I.tags.length-1]||I;z.ns&&Ve.ns!==z.ns&&Object.keys(z.ns).forEach(function(Ht){$e(I,"onopennamespace",{prefix:Ht,uri:z.ns[Ht]})});for(var Ft=0,qe=I.attribList.length;Ft<qe;Ft++){var wt=I.attribList[Ft],vn=wt[0],cn=wt[1],Bt=It(vn,!0),ni=Bt.prefix,ir=Bt.local,dn=ni===""?"":z.ns[ni]||"",mi={name:vn,value:cn,prefix:ni,local:ir,uri:dn};ni&&ni!=="xmlns"&&!dn&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(ni)),mi.uri=ni),I.tag.attributes[vn]=mi,$e(I,"onattribute",mi)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),$e(I,"onopentag",I.tag),S||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=_.SCRIPT:I.state=_.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}o(sn,"openTag");function $i(I){if(!I.tagName){Re(I,"Weird empty close tag."),I.textNode+="</>",I.state=_.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=_.SCRIPT;return}$e(I,"onscript",I.script),I.script=""}var S=I.tags.length,z=I.tagName;I.strict||(z=z[I.looseCase]());for(var V=z;S--;){var Ve=I.tags[S];if(Ve.name!==V)Re(I,"Unexpected close tag");else break}if(S<0){Re(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=_.TEXT;return}I.tagName=z;for(var Ft=I.tags.length;Ft-- >S;){var qe=I.tag=I.tags.pop();I.tagName=I.tag.name,$e(I,"onclosetag",I.tagName);var wt={};for(var vn in qe.ns)wt[vn]=qe.ns[vn];var cn=I.tags[I.tags.length-1]||I;I.opt.xmlns&&qe.ns!==cn.ns&&Object.keys(qe.ns).forEach(function(Bt){var ni=qe.ns[Bt];$e(I,"onclosenamespace",{prefix:Bt,uri:ni})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=_.TEXT}o($i,"closeTag");function _e(I){var S=I.entity,z=S.toLowerCase(),V,Ve="";return I.ENTITIES[S]?I.ENTITIES[S]:I.ENTITIES[z]?I.ENTITIES[z]:(S=z,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),V=parseInt(S,16),Ve=V.toString(16)):(S=S.slice(1),V=parseInt(S,10),Ve=V.toString(10))),S=S.replace(/^0+/,""),isNaN(V)||Ve.toLowerCase()!==S?(Re(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(V))}o(_e,"parseEntity");function Kn(I,S){S==="<"?(I.state=_.OPEN_WAKA,I.startTagPosition=I.position):j(S)||(Re(I,"Non-whitespace before first tag."),I.textNode=S,I.state=_.TEXT)}o(Kn,"beginWhiteSpace");function Ir(I,S){var z="";return S<I.length&&(z=I.charAt(S)),z}o(Ir,"charAt");function st(I){var S=this;if(this.error)throw this.error;if(S.closed)return en(S,"Cannot write after close. Assign an onready handler.");if(I===null)return Lt(S);typeof I=="object"&&(I=I.toString());for(var z=0,V="";V=Ir(I,z++),S.c=V,!!V;)switch(S.trackPosition&&(S.position++,V===`
26
- `?(S.line++,S.column=0):S.column++),S.state){case _.BEGIN:if(S.state=_.BEGIN_WHITESPACE,V==="\uFEFF")continue;Kn(S,V);continue;case _.BEGIN_WHITESPACE:Kn(S,V);continue;case _.TEXT:if(S.sawRoot&&!S.closedRoot){for(var Ve=z-1;V&&V!=="<"&&V!=="&";)V=Ir(I,z++),V&&S.trackPosition&&(S.position++,V===`
27
- `?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(Ve,z-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=_.OPEN_WAKA,S.startTagPosition=S.position):(!j(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=_.TEXT_ENTITY:S.textNode+=V);continue;case _.SCRIPT:V==="<"?S.state=_.SCRIPT_ENDING:S.script+=V;continue;case _.SCRIPT_ENDING:V==="/"?S.state=_.CLOSE_TAG:(S.script+="<"+V,S.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(V==="!")S.state=_.SGML_DECL,S.sgmlDecl="";else if(!j(V))if(re(O,V))S.state=_.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=_.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=_.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Ft=S.position-S.startTagPosition;V=new Array(Ft).join(" ")+V}S.textNode+="<"+V,S.state=_.TEXT}continue;case _.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=_.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=_.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?($e(S,"onopencdata"),S.state=_.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=_.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?($e(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=_.TEXT):(ae(V)&&(S.state=_.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case _.SGML_DECL_QUOTED:V===S.q&&(S.state=_.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case _.DOCTYPE:V===">"?(S.state=_.TEXT,$e(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=_.DOCTYPE_DTD:ae(V)&&(S.state=_.DOCTYPE_QUOTED,S.q=V));continue;case _.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=_.DOCTYPE):V==="<"?(S.state=_.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=_.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case _.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=_.DOCTYPE_DTD,S.q="");continue;case _.COMMENT:V==="-"?S.state=_.COMMENT_ENDING:S.comment+=V;continue;case _.COMMENT_ENDING:V==="-"?(S.state=_.COMMENT_ENDED,S.comment=Wn(S.opt,S.comment),S.comment&&$e(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=_.COMMENT);continue;case _.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=_.COMMENT):S.doctype&&S.doctype!==!0?S.state=_.DOCTYPE_DTD:S.state=_.TEXT;continue;case _.CDATA:V==="]"?S.state=_.CDATA_ENDING:S.cdata+=V;continue;case _.CDATA_ENDING:V==="]"?S.state=_.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=_.CDATA);continue;case _.CDATA_ENDING_2:V===">"?(S.cdata&&$e(S,"oncdata",S.cdata),$e(S,"onclosecdata"),S.cdata="",S.state=_.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=_.CDATA);continue;case _.PROC_INST:V==="?"?S.state=_.PROC_INST_ENDING:j(V)?S.state=_.PROC_INST_BODY:S.procInstName+=V;continue;case _.PROC_INST_BODY:if(!S.procInstBody&&j(V))continue;V==="?"?S.state=_.PROC_INST_ENDING:S.procInstBody+=V;continue;case _.PROC_INST_ENDING:V===">"?($e(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=_.TEXT):(S.procInstBody+="?"+V,S.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:re(R,V)?S.tagName+=V:(Oi(S),V===">"?sn(S):V==="/"?S.state=_.OPEN_TAG_SLASH:(j(V)||Re(S,"Invalid character in tag name"),S.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:V===">"?(sn(S,!0),$i(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=_.ATTRIB);continue;case _.ATTRIB:if(j(V))continue;V===">"?sn(S):V==="/"?S.state=_.OPEN_TAG_SLASH:re(O,V)?(S.attribName=V,S.attribValue="",S.state=_.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case _.ATTRIB_NAME:V==="="?S.state=_.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),sn(S)):j(V)?S.state=_.ATTRIB_NAME_SAW_WHITE:re(R,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=_.ATTRIB_VALUE;else{if(j(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",$e(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?sn(S):re(O,V)?(S.attribName=V,S.state=_.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(j(V))continue;ae(V)?(S.q=V,S.state=_.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||en(S,"Unquoted attribute value"),S.state=_.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case _.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=_.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}Mt(S),S.q="",S.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:j(V)?S.state=_.ATTRIB:V===">"?sn(S):V==="/"?S.state=_.OPEN_TAG_SLASH:re(O,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=_.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=_.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}Mt(S),V===">"?sn(S):S.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(S.tagName)V===">"?$i(S):re(R,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=_.SCRIPT):(j(V)||Re(S,"Invalid tagname in closing tag"),S.state=_.CLOSE_TAG_SAW_WHITE);else{if(j(V))continue;xe(O,V)?S.script?(S.script+="</"+V,S.state=_.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case _.CLOSE_TAG_SAW_WHITE:if(j(V))continue;V===">"?$i(S):Re(S,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var qe,wt;switch(S.state){case _.TEXT_ENTITY:qe=_.TEXT,wt="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:qe=_.ATTRIB_VALUE_QUOTED,wt="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:qe=_.ATTRIB_VALUE_UNQUOTED,wt="attribValue";break}if(V===";"){var vn=_e(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(vn)?(S.entity="",S.state=qe,S.write(vn)):(S[wt]+=vn,S.entity="",S.state=qe)}else re(S.entity.length?W:U,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[wt]+="&"+S.entity+V,S.entity="",S.state=qe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}o(st,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,z=o(function(){var V=16384,Ve=[],Ft,qe,wt=-1,vn=arguments.length;if(!vn)return"";for(var cn="";++wt<vn;){var Bt=Number(arguments[wt]);if(!isFinite(Bt)||Bt<0||Bt>1114111||S(Bt)!==Bt)throw RangeError("Invalid code point: "+Bt);Bt<=65535?Ve.push(Bt):(Bt-=65536,Ft=(Bt>>10)+55296,qe=Bt%1024+56320,Ve.push(Ft,qe)),(wt+1===vn||Ve.length>V)&&(cn+=I.apply(null,Ve),Ve.length=0)}return cn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof Pg>"u"?Pg.sax={}:Pg)});var xg=Ye((XY,WF)=>{WF.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Cg=Ye((qY,KF)=>{var bG=xg().isArray;KF.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"&&!bG(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 tE=Ye((YY,eR)=>{var AG=GF(),SG={on:o(function(){},"on"),parse:o(function(){},"parse")},rt=Cg(),al=xg().isArray,H,eE=!0,Be;function PG(e){return H=rt.copyOptions(e),rt.ensureFlagExists("ignoreDeclaration",H),rt.ensureFlagExists("ignoreInstruction",H),rt.ensureFlagExists("ignoreAttributes",H),rt.ensureFlagExists("ignoreText",H),rt.ensureFlagExists("ignoreComment",H),rt.ensureFlagExists("ignoreCdata",H),rt.ensureFlagExists("ignoreDoctype",H),rt.ensureFlagExists("compact",H),rt.ensureFlagExists("alwaysChildren",H),rt.ensureFlagExists("addParent",H),rt.ensureFlagExists("trim",H),rt.ensureFlagExists("nativeType",H),rt.ensureFlagExists("nativeTypeAttributes",H),rt.ensureFlagExists("sanitize",H),rt.ensureFlagExists("instructionHasAttributes",H),rt.ensureFlagExists("captureSpacesBetweenElements",H),rt.ensureAlwaysArrayExists(H),rt.ensureKeyExists("declaration",H),rt.ensureKeyExists("instruction",H),rt.ensureKeyExists("attributes",H),rt.ensureKeyExists("text",H),rt.ensureKeyExists("comment",H),rt.ensureKeyExists("cdata",H),rt.ensureKeyExists("doctype",H),rt.ensureKeyExists("type",H),rt.ensureKeyExists("name",H),rt.ensureKeyExists("elements",H),rt.ensureKeyExists("parent",H),rt.checkFnExists("doctype",H),rt.checkFnExists("instruction",H),rt.checkFnExists("cdata",H),rt.checkFnExists("comment",H),rt.checkFnExists("text",H),rt.checkFnExists("instructionName",H),rt.checkFnExists("elementName",H),rt.checkFnExists("attributeName",H),rt.checkFnExists("attributeValue",H),rt.checkFnExists("attributes",H),H}o(PG,"validateOptions");function JF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(JF,"nativeType");function tu(e,t){var n;if(H.compact){if(!Be[H[e+"Key"]]&&(al(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&(Be[H[e+"Key"]]=[]),Be[H[e+"Key"]]&&!al(Be[H[e+"Key"]])&&(Be[H[e+"Key"]]=[Be[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,Be)),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,Be);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,Be)]=i}}al(Be[H[e+"Key"]])?Be[H[e+"Key"]].push(t):Be[H[e+"Key"]]=t}else{Be[H.elementsKey]||(Be[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,Be):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,Be))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,Be)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,Be)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=Be),Be[H.elementsKey].push(r)}}o(tu,"addField");function ZF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,Be)),(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]=JF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,Be)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],Be)]=n}}return e}o(ZF,"manipulateAttributes");function xG(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=ZF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;Be[H.declarationKey]={},Object.keys(t).length&&(Be[H.declarationKey][H.attributesKey]=t),H.addParent&&(Be[H.declarationKey][H.parentKey]=Be)}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,tu("instruction",r)}}o(xG,"onInstruction");function XF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=ZF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,Be)),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 Be)&&(al(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&(Be[e]=[]),Be[e]&&!al(Be[e])&&(Be[e]=[Be[e]]),al(Be[e])?Be[e].push(n):Be[e]=n}else Be[H.elementsKey]||(Be[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]=[]),Be[H.elementsKey].push(n);n[H.parentKey]=Be,Be=n}o(XF,"onStartElement");function QF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=JF(e)),H.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),tu("text",e))}o(QF,"onText");function qF(e){H.ignoreComment||(H.trim&&(e=e.trim()),tu("comment",e))}o(qF,"onComment");function zF(e){var t=Be[H.parentKey];H.addParent||delete Be[H.parentKey],Be=t}o(zF,"onEndElement");function CG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),tu("cdata",e))}o(CG,"onCdata");function IG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),tu("doctype",e))}o(IG,"onDoctype");function YF(e){e.note=e}o(YF,"onError");eR.exports=function(e,t){var n=eE?AG.parser(!0,{}):n=new SG.Parser("UTF-8"),i={};if(Be=i,H=PG(t),eE?(n.opt={strictEntities:!0},n.onopentag=XF,n.ontext=QF,n.oncomment=qF,n.onclosetag=zF,n.onerror=YF,n.oncdata=CG,n.ondoctype=IG,n.onprocessinginstruction=xG):(n.on("startElement",XF),n.on("text",QF),n.on("comment",qF),n.on("endElement",zF),n.on("error",YF)),eE)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 iR=Ye((ZY,nR)=>{var tR=Cg(),OG=tE();function NG(e){var t=tR.copyOptions(e);return tR.ensureSpacesExists(t),t}o(NG,"validateOptions");nR.exports=function(e,t){var n,i,r,a;return n=NG(t),i=OG(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 iE=Ye((tJ,pR)=>{var lt=Cg(),LG=xg().isArray,Ti,Ei;function FG(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(FG,"validateOptions");function xo(e,t,n){return(!n&&e.spaces?`
28
- `:"")+Array(t+1).join(e.spaces)}o(xo,"writeIndentation");function Ig(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ei,Ti));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,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,r,Ei,Ti):i,l.push(t.spaces&&t.indentAttributes?xo(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ei,Ti):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(xo(t,n,!1)),l.join("")}o(Ig,"writeAttributes");function rR(e,t,n){return Ti=e,Ei="xml",t.ignoreDeclaration?"":"<?xml"+Ig(e[t.attributesKey],t,n)+"?>"}o(rR,"writeDeclaration");function oR(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],Ei,Ti):i;if(typeof e[i]=="object")return Ti=e,Ei=r,"<?"+r+Ig(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ei,Ti)),"<?"+r+(a?" "+a:"")+"?>"}o(oR,"writeInstruction");function aR(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ei,Ti):e)+"-->"}o(aR,"writeComment");function sR(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ei,Ti):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(sR,"writeCdata");function cR(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ei,Ti):e)+">"}o(cR,"writeDoctype");function nE(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,Ei,Ti):e)}o(nE,"writeText");function RG(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(RG,"hasContent");function _G(e,t,n){Ti=e,Ei=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Ig(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(lR(e[t.elementsKey],t,n+1)),Ti=e,Ei=e.name),i.push(t.spaces&&RG(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(_G,"writeElement");function lR(e,t,n,i){return e.reduce(function(r,a){var s=xo(t,n,i&&!r);switch(a.type){case"element":return r+s+_G(a,t,n);case"comment":return r+s+aR(a[t.commentKey],t);case"doctype":return r+s+cR(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+sR(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+nE(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+oR(l,t,n)}},"")}o(lR,"writeElements");function fR(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(fR,"hasContentCompact");function DG(e,t,n,i,r){Ti=e,Ei=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(">"+nE(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Ig(e[n.attributesKey],n,i));var l=fR(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(uR(e,n,i+1,!1)),Ti=e,Ei=t,t&&s.push((r?xo(n,i,!1):"")+"</"+a+">"),s.join("")}o(DG,"writeElementCompact");function uR(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=LG(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(rR(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?xo(t,n,i):"")+oR(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?xo(t,n,i):"")+nE(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?xo(t,n,i):"")+sR(s[r],t));break;case t.doctypeKey:l.push(xo(t,n,i)+cR(s[r],t));break;case t.commentKey:l.push(xo(t,n,i)+aR(s[r],t));break;default:l.push(xo(t,n,i)+DG(s[r],a,t,n,fR(s[r],t)))}i=i&&!l.length}return l.join("")}o(uR,"writeElementsCompact");pR.exports=function(e,t){t=FG(t);var n=[];return Ti=e,Ei="_root_",t.compact?n.push(uR(e,t,0,!0)):(e[t.declarationKey]&&n.push(rR(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(lR(e[t.elementsKey],t,0,!n.length))),n.join("")}});var gR=Ye((iJ,dR)=>{var VG=iE();dR.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 VG(n,t)}});var Xs=Ye((rJ,mR)=>{var MG=tE(),wG=iR(),kG=iE(),UG=gR();mR.exports={xml2js:MG,xml2json:wG,js2xml:kG,json2xml:UG}});var bR=Ye(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.convertEntityTypeAnnotations=Xi.convertPropertyAnnotations=Xi.convertNavigationPropertyAnnotations=Xi.convertEntitySetAnnotations=Xi.convertGenericAnnotations=Xi.convertV2Annotations=void 0;function jG(e,t,n){let i=[];switch(t){case"EntitySet":yR(e,i);break;case"EntityType":ER(e,i);break;case"NavigationProperty":vR(e,n,i);break;case"Property":TR(e,n,i);break;case"Singleton":break;default:break}return hR(e,n,i),i}o(jG,"convertV2Annotations");Xi.convertV2Annotations=jG;function hR(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(hR,"convertGenericAnnotations");Xi.convertGenericAnnotations=hR;function yR(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(yR,"convertEntitySetAnnotations");Xi.convertEntitySetAnnotations=yR;function vR(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(vR,"convertNavigationPropertyAnnotations");Xi.convertNavigationPropertyAnnotations=vR;function TR(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(TR,"convertPropertyAnnotations");Xi.convertPropertyAnnotations=TR;function ER(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(ER,"convertEntityTypeAnnotations");Xi.convertEntityTypeAnnotations=ER});var IR=Ye(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.parse=void 0;var $G=Xs(),He=ZT(),nu=bR(),Lg=/^Collection\((.+)\)$/;function BG(e){return e.Type!==null&&e.Type!==void 0}o(BG,"isV4NavProperty");function HG(e){return e.map(t=>t._attributes.Name)}o(HG,"getEntityTypeKeys");function PR(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:sl(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":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,nu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Qs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(PR,"parseProperties");function GG(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(GG,"parseReferentialConstraint");function WG(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(WG,"parseV2ReferentialConstraint");function xR(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(BG(s)){let l=s.Type.match(Lg),u=l!==null,p=Co(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:GG((0,He.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,nu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Qs(`${n}/${s.Name}`,g))}return r},[])}o(xR,"parseNavigationProperties");function KG(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(KG,"parseAssociationSets");function XG(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:WG((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(XG,"parseAssociations");function QG(e,t,n){return e.reduce((i,r)=>{let a=r.Key?HG((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=PR((0,He.ensureArray)(r.Property),a,s,t),p=xR((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,nu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Qs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(QG,"parseEntityTypes");function qG(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=PR((0,He.ensureArray)(r.Property),[],a,t),l=xR((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(qG,"parseComplexTypes");function zG(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(zG,"parseTypeDefinitions");function YG(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Co(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,nu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(Qs(l.fullyQualifiedName,u)),l})}o(YG,"parseEntitySets");function JG(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Co(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,nu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(Qs(l.fullyQualifiedName,u)),l})}o(JG,"parseSingletons");function AR(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>sl(u._attributes.Type).type).join(","):s=a?sl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?sl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=sl(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?sl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Lg)!==null:!1}})}o(AR,"parseActions");function ZG(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Lg)!==null:!1}})}o(ZG,"parseV2FunctionImport");function SR(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:Co(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Co(r)}})}o(SR,"parseActionImports");function eW(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=Ng(s,p,n,!1):u&&(l.value=CR({[u]:a[u]},p,n)),i.Annotation){let g=Rg((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Qs(p,g))}}return l})}o(eW,"parsePropertyValues");function Fg(e,t,n){let i=Rg((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Co(e._attributes.Type):void 0,propertyValues:eW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Fg,"parseRecord");function aa(e,t){return e[t]!=null}o(aa,"isExpressionOfType");function Og(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(Og,"parseModelPath");function oE(e,t,n){if(aa(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Fg(r,t+"/"+a,n));return i.type="Record",i}else if(aa(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Og(r,"PropertyPath"));return i.type="PropertyPath",i}else if(aa(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Og(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(aa(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(aa(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Og(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(aa(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Og(r,"Path"));return i.type="Path",i}else if(aa(e,"If")){let i=(0,He.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(oE,"parseCollection");function En(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=>Ng({[i]:r},"",[],!0))):n.push(Ng({[i]:e[i]},"",[],!0))}),n}o(En,"parseChildren");function CR(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"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:oE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:En(e.Apply),$Function:En(e.Function)};case"And":return{type:"And",$And:En(e.And)};case"Or":return{type:"Or",$Or:En(e.Or)};case"Eq":return{type:"Eq",$Eq:En(e.Eq)};case"Gt":return{type:"Gt",$Gt:En(e.Gt)};case"Ge":return{type:"Ge",$Ge:En(e.Ge)};case"Lt":return{type:"Lt",$Lt:En(e.Lt)};case"Le":return{type:"Le",$Le:En(e.Le)};case"If":return{type:"If",$If:En(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(CR,"parseInlineExpression");function Ng(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:En(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"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:oE(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:En(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:En(e.And)};case"Ne":return{type:"Ne",$Ne:En(e.Ne)};case"Not":return{type:"Not",$Not:En(e.Not)[0]};case"Or":return{type:"Or",$Or:En(e.Or)};case"Eq":return{type:"Eq",$Eq:En(e.Eq)};case"If":return{type:"If",$If:En(e.If)};case"Gt":return{type:"Gt",$Gt:En(e.Gt)};case"Ge":return{type:"Ge",$Ge:En(e.Ge)};case"Lt":return{type:"Lt",$Lt:En(e.Lt)};case"Le":return{type:"Le",$Le:En(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Ng,"parseExpression");function tW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Co(i),qualifier:r},l=`${t}@${Co(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=CR(a,l,n)),e.Annotation){let p=Rg((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return aa(e,"Record")?s.record=Fg(e.Record,l,n):aa(e,"Collection")?s.collection=oE(e.Collection,l,n):u.length===1?s.value=Ng({[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(tW,"parseAnnotation");function Rg(e,t,n){return e.map(i=>tW(i,t,n))}o(Rg,"parseAnnotations");function Qs(e,t){return{target:e,annotations:t}}o(Qs,"createAnnotationList");function nW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Qs(Co(n._attributes.Target),Rg((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(nW,"parseAnnotationLists");function iW(e,t,n){let i=e._attributes.Namespace,r=[],a=QG((0,He.ensureArray)(e.EntityType),r,i),s=qG((0,He.ensureArray)(e.ComplexType),r,i),l=zG((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],A=[];if(e.EntityContainer)if(u=YG((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=JG((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=KG((0,He.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")T=T.concat(ZG((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(SR((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(SR((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(AR((0,He.ensureArray)(e.Action),i,!1)),T=T.concat(AR((0,He.ensureArray)(e.Function),i,!0)));let E=XG((0,He.ensureArray)(e.Association),i);nW((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:E,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:T,actionImports:A,entityTypes:a}}o(iW,"parseSchema");function rW(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(rW,"parseReferences");var rE={};function sl(e){let t=e.match(Lg),n=t?t[1]:e,i=Co(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(sl,"unaliasType");function Co(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=rE[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(Co,"unalias");function oW(e){let t=e.reduce((A,E)=>A.concat(E.associations),[]),n=e.reduce((A,E)=>A.concat(E.associationSets),[]),i=e.reduce((A,E)=>A.concat(E.entitySets),[]),r=e.reduce((A,E)=>A.concat(E.singletons),[]),a=e.reduce((A,E)=>A.concat(E.entityTypes),[]),s=e.reduce((A,E)=>A.concat(E.actions),[]),l=e.reduce((A,E)=>A.concat(E.actionImports),[]),u=e.reduce((A,E)=>A.concat(E.complexTypes),[]),p=e.reduce((A,E)=>A.concat(E.typeDefinitions),[]),g={};e.forEach(A=>{g=Object.assign(g,A.annotations)});let m,T;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,T=A.namespace)}),i.forEach(A=>{let E=a.find(O=>O.fullyQualifiedName===A.entityTypeName);E==null||E.navigationProperties.forEach(O=>{let R=O,U=n.find(W=>W.association===R.relationship);if(U){let W=U.associationEnd.find(j=>j.entitySet!==A.fullyQualifiedName);W&&(A.navigationPropertyBinding[O.name]=W.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(E=>{let O=E,R=t.find(U=>U.fullyQualifiedName===O.relationship);R&&R.referentialConstraints&&R.referentialConstraints.length>0&&(R.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=R.referentialConstraints:O.referentialConstraint=R.referentialConstraints.map(U=>({sourceTypeName:U.targetTypeName,sourceProperty:U.targetProperty,targetTypeName:U.sourceTypeName,targetProperty:U.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:T,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(oW,"mergeSchemas");function aW(e,t){rE=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{rE[n._attributes.Alias]=n._attributes.Namespace})}o(aW,"createAliasMap");function sW(e,t="serviceFile"){let n=(0,$G.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=rW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));aW(a,r);let s=r.map(u=>iW(u,i,t));return new He.RawMetadataInstance(t,i,oW(s),a)}o(sW,"parse");_g.parse=sW});var OR=Ye(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.parse=cl.merge=void 0;var cW=HF();Object.defineProperty(cl,"merge",{enumerable:!0,get:o(function(){return cW.merge},"get")});var lW=IR();Object.defineProperty(cl,"parse",{enumerable:!0,get:o(function(){return lW.parse},"get")})});var BR=Ye(()=>{var $R;(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 Vs(Object.create(null))}:u?function(){return Vs({__proto__:null})}:function(){return Vs({})},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),T=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Lf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ff(),E=typeof WeakMap=="function"?WeakMap:Rf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,R=Bi(),U=Nf(R);function W(k,B,Q,ce){if(_e(Q)){if(!Ft(k))throw new TypeError;if(!wt(B))throw new TypeError;return an(k,B)}else{if(!Ft(k))throw new TypeError;if(!st(B))throw new TypeError;if(!st(ce)&&!_e(ce)&&!Kn(ce))throw new TypeError;return Kn(ce)&&(ce=void 0),Q=Ve(Q),Wn(k,B,Q,ce)}}o(W,"decorate"),t("decorate",W);function j(k,B){function Q(ce,Fe){if(!st(ce))throw new TypeError;if(!_e(Fe)&&!vn(Fe))throw new TypeError;It(k,B,ce,Fe)}return o(Q,"decorator"),Q}o(j,"metadata"),t("metadata",j);function ae(k,B,Q,ce){if(!st(Q))throw new TypeError;return _e(ce)||(ce=Ve(ce)),It(k,B,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,B,Q){if(!st(B))throw new TypeError;return _e(Q)||(Q=Ve(Q)),en(k,B,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,B,Q){if(!st(B))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Lt(k,B,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function xe(k,B,Q){if(!st(B))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Re(k,B,Q)}o(xe,"getMetadata"),t("getMetadata",xe);function _(k,B,Q){if(!st(B))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Oi(k,B,Q)}o(_,"getOwnMetadata"),t("getOwnMetadata",_);function ut(k,B){if(!st(k))throw new TypeError;return _e(B)||(B=Ve(B)),Mt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!st(k))throw new TypeError;return _e(B)||(B=Ve(B)),sn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function $e(k,B,Q){if(!st(B))throw new TypeError;if(_e(Q)||(Q=Ve(Q)),!st(B))throw new TypeError;_e(Q)||(Q=Ve(Q));var ce=Or(B,Q,!1);return _e(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o($e,"deleteMetadata"),t("deleteMetadata",$e);function an(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Fe=ce(B);if(!_e(Fe)&&!Kn(Fe)){if(!wt(Fe))throw new TypeError;B=Fe}}return B}o(an,"DecorateConstructor");function Wn(k,B,Q,ce){for(var Fe=k.length-1;Fe>=0;--Fe){var gn=k[Fe],Cn=gn(B,Q,ce);if(!_e(Cn)&&!Kn(Cn)){if(!st(Cn))throw new TypeError;ce=Cn}}return ce}o(Wn,"DecorateProperty");function en(k,B,Q){var ce=Lt(k,B,Q);if(ce)return!0;var Fe=Ht(B);return Kn(Fe)?!1:en(k,Fe,Q)}o(en,"OrdinaryHasMetadata");function Lt(k,B,Q){var ce=Or(B,Q,!1);return _e(ce)?!1:z(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Lt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Lt(k,B,Q);if(ce)return Oi(k,B,Q);var Fe=Ht(B);if(!Kn(Fe))return Re(k,Fe,Q)}o(Re,"OrdinaryGetMetadata");function Oi(k,B,Q){var ce=Or(B,Q,!1);if(!_e(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Oi,"OrdinaryGetOwnMetadata");function It(k,B,Q,ce){var Fe=Or(Q,ce,!0);Fe.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(It,"OrdinaryDefineOwnMetadata");function Mt(k,B){var Q=sn(k,B),ce=Ht(k);if(ce===null)return Q;var Fe=Mt(ce,B);if(Fe.length<=0)return Q;if(Q.length<=0)return Fe;for(var gn=new A,Cn=[],nt=0,me=Q;nt<me.length;nt++){var Te=me[nt],Ce=gn.has(Te);Ce||(gn.add(Te),Cn.push(Te))}for(var Ne=0,ot=Fe;Ne<ot.length;Ne++){var Te=ot[Ne],Ce=gn.has(Te);Ce||(gn.add(Te),Cn.push(Te))}return Cn}o(Mt,"OrdinaryMetadataKeys");function sn(k,B){var Q=Or(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(sn,"OrdinaryOwnMetadataKeys");function $i(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($i,"Type");function _e(k){return k===void 0}o(_e,"IsUndefined");function Kn(k){return k===null}o(Kn,"IsNull");function Ir(k){return typeof k=="symbol"}o(Ir,"IsSymbol");function st(k){return typeof k=="object"?k!==null:typeof k=="function"}o(st,"IsObject");function I(k,B){switch($i(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(st(Fe))throw new TypeError;return Fe}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(qe(Q)){var ce=Q.call(k);if(!st(ce))return ce}var Fe=k.valueOf;if(qe(Fe)){var ce=Fe.call(k);if(!st(ce))return ce}}else{var Fe=k.valueOf;if(qe(Fe)){var ce=Fe.call(k);if(!st(ce))return ce}var gn=k.toString;if(qe(gn)){var ce=gn.call(k);if(!st(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function z(k){return!!k}o(z,"ToBoolean");function V(k){return""+k}o(V,"ToString");function Ve(k){var B=I(k,3);return Ir(B)?B:V(B)}o(Ve,"ToPropertyKey");function Ft(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Ft,"IsArray");function qe(k){return typeof k=="function"}o(qe,"IsCallable");function wt(k){return typeof k=="function"}o(wt,"IsConstructor");function vn(k){switch($i(k)){case 3:return!0;case 4:return!0;default:return!1}}o(vn,"IsPropertyKey");function cn(k,B){return k===B||k!==k&&B!==B}o(cn,"SameValueZero");function Bt(k,B){var Q=k[B];if(Q!=null){if(!qe(Q))throw new TypeError;return Q}}o(Bt,"GetMethod");function ni(k){var B=Bt(k,s);if(!qe(B))throw new TypeError;var Q=B.call(k);if(!st(Q))throw new TypeError;return Q}o(ni,"GetIterator");function ir(k){return k.value}o(ir,"IteratorValue");function dn(k){var B=k.next();return B.done?!1:B}o(dn,"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 Xo(){var k;!_e(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Ds(n.Reflect));var B,Q,ce,Fe=new E,gn={registerProvider:Cn,getProvider:me,setProvider:Ce};return gn;function Cn(Ne){if(!Object.isExtensible(gn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ne:break;case _e(B):B=Ne;break;case B===Ne:break;case _e(Q):Q=Ne;break;case Q===Ne:break;default:ce===void 0&&(ce=new A),ce.add(Ne);break}}function nt(Ne,ot){if(!_e(B)){if(B.isProviderFor(Ne,ot))return B;if(!_e(Q)){if(Q.isProviderFor(Ne,ot))return B;if(!_e(ce))for(var Gt=ni(ce);;){var ln=dn(Gt);if(!ln)return;var rr=ir(ln);if(rr.isProviderFor(Ne,ot))return mi(Gt),rr}}}if(!_e(k)&&k.isProviderFor(Ne,ot))return k}function me(Ne,ot){var Gt=Fe.get(Ne),ln;return _e(Gt)||(ln=Gt.get(ot)),_e(ln)&&(ln=nt(Ne,ot),_e(ln)||(_e(Gt)&&(Gt=new T,Fe.set(Ne,Gt)),Gt.set(ot,ln))),ln}function Te(Ne){if(_e(Ne))throw new TypeError;return B===Ne||Q===Ne||!_e(ce)&&ce.has(Ne)}function Ce(Ne,ot,Gt){if(!Te(Gt))throw new Error("Metadata provider not registered.");var ln=me(Ne,ot);if(ln!==Gt){if(!_e(ln))return!1;var rr=Fe.get(Ne);_e(rr)&&(rr=new T,Fe.set(Ne,rr)),rr.set(ot,Gt)}return!0}}o(Xo,"CreateMetadataRegistry");function Bi(){var k;return!_e(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),_e(k)&&(k=Xo()),!_e(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Bi,"GetOrCreateMetadataRegistry");function Nf(k){var B=new E,Q={isProviderFor:o(function(Te,Ce){var Ne=B.get(Te);return _e(Ne)?!1:Ne.has(Ce)},"isProviderFor"),OrdinaryDefineOwnMetadata:Cn,OrdinaryHasOwnMetadata:Fe,OrdinaryGetOwnMetadata:gn,OrdinaryOwnMetadataKeys:nt,OrdinaryDeleteMetadata:me};return R.registerProvider(Q),Q;function ce(Te,Ce,Ne){var ot=B.get(Te),Gt=!1;if(_e(ot)){if(!Ne)return;ot=new T,B.set(Te,ot),Gt=!0}var ln=ot.get(Ce);if(_e(ln)){if(!Ne)return;if(ln=new T,ot.set(Ce,ln),!k.setProvider(Te,Ce,Q))throw ot.delete(Ce),Gt&&B.delete(Te),new Error("Wrong provider for target.")}return ln}o(ce,"GetOrCreateMetadataMap");function Fe(Te,Ce,Ne){var ot=ce(Ce,Ne,!1);return _e(ot)?!1:z(ot.has(Te))}o(Fe,"OrdinaryHasOwnMetadata");function gn(Te,Ce,Ne){var ot=ce(Ce,Ne,!1);if(!_e(ot))return ot.get(Te)}o(gn,"OrdinaryGetOwnMetadata");function Cn(Te,Ce,Ne,ot){var Gt=ce(Ne,ot,!0);Gt.set(Te,Ce)}o(Cn,"OrdinaryDefineOwnMetadata");function nt(Te,Ce){var Ne=[],ot=ce(Te,Ce,!1);if(_e(ot))return Ne;for(var Gt=ot.keys(),ln=ni(Gt),rr=0;;){var yd=dn(ln);if(!yd)return Ne.length=rr,Ne;var sv=ir(yd);try{Ne[rr]=sv}catch(_f){try{mi(ln)}finally{throw _f}}rr++}}o(nt,"OrdinaryOwnMetadataKeys");function me(Te,Ce,Ne){var ot=ce(Ce,Ne,!1);if(_e(ot)||!ot.delete(Te))return!1;if(ot.size===0){var Gt=B.get(Ce);_e(Gt)||(Gt.delete(Ne),Gt.size===0&&B.delete(Gt))}return!0}o(me,"OrdinaryDeleteMetadata")}o(Nf,"CreateMetadataProvider");function Ds(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Fe=k.getOwnMetadataKeys,gn=k.deleteMetadata,Cn=new E,nt={isProviderFor:o(function(me,Te){var Ce=Cn.get(me);return!_e(Ce)&&Ce.has(Te)?!0:Fe(me,Te).length?(_e(Ce)&&(Ce=new A,Cn.set(me,Ce)),Ce.add(Te),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Fe,OrdinaryDeleteMetadata:gn};return nt}o(Ds,"CreateFallbackProvider");function Or(k,B,Q){var ce=R.getProvider(k,B);if(!_e(ce))return ce;if(Q){if(R.setProvider(k,B,U))return U;throw new Error("Illegal state.")}}o(Or,"GetMetadataProvider");function Lf(){var k={},B=[],Q=function(){function nt(me,Te,Ce){this._index=0,this._keys=me,this._values=Te,this._selector=Ce}return o(nt,"MapIterator"),nt.prototype["@@iterator"]=function(){return this},nt.prototype[s]=function(){return this},nt.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}},nt.prototype.throw=function(me){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),me},nt.prototype.return=function(me){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:me,done:!0}},nt}(),ce=function(){function nt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(nt,"Map"),Object.defineProperty(nt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),nt.prototype.has=function(me){return this._find(me,!1)>=0},nt.prototype.get=function(me){var Te=this._find(me,!1);return Te>=0?this._values[Te]:void 0},nt.prototype.set=function(me,Te){var Ce=this._find(me,!0);return this._values[Ce]=Te,this},nt.prototype.delete=function(me){var Te=this._find(me,!1);if(Te>=0){for(var Ce=this._keys.length,Ne=Te+1;Ne<Ce;Ne++)this._keys[Ne-1]=this._keys[Ne],this._values[Ne-1]=this._values[Ne];return this._keys.length--,this._values.length--,cn(me,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},nt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},nt.prototype.keys=function(){return new Q(this._keys,this._values,Fe)},nt.prototype.values=function(){return new Q(this._keys,this._values,gn)},nt.prototype.entries=function(){return new Q(this._keys,this._values,Cn)},nt.prototype["@@iterator"]=function(){return this.entries()},nt.prototype[s]=function(){return this.entries()},nt.prototype._find=function(me,Te){if(!cn(this._cacheKey,me)){this._cacheIndex=-1;for(var Ce=0;Ce<this._keys.length;Ce++)if(cn(this._keys[Ce],me)){this._cacheIndex=Ce;break}}return this._cacheIndex<0&&Te&&(this._cacheIndex=this._keys.length,this._keys.push(me),this._values.push(void 0)),this._cacheIndex},nt}();return ce;function Fe(nt,me){return nt}function gn(nt,me){return me}function Cn(nt,me){return[nt,me]}}o(Lf,"CreateMapPolyfill");function Ff(){var k=function(){function B(){this._map=new T}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(Ff,"CreateSetPolyfill");function Rf(){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 Ce=Fe(Te,!1);return Ce!==void 0?g.has(Ce,this._key):!1},me.prototype.get=function(Te){var Ce=Fe(Te,!1);return Ce!==void 0?g.get(Ce,this._key):void 0},me.prototype.set=function(Te,Ce){var Ne=Fe(Te,!0);return Ne[this._key]=Ce,this},me.prototype.delete=function(Te){var Ce=Fe(Te,!1);return Ce!==void 0?delete Ce[this._key]:!1},me.prototype.clear=function(){this._key=ce()},me}();function ce(){var me;do me="@@WeakMap@@"+nt();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 gn(me,Te){for(var Ce=0;Ce<Te;++Ce)me[Ce]=Math.random()*255|0;return me}function Cn(me){if(typeof Uint8Array=="function"){var Te=new Uint8Array(me);return typeof crypto<"u"?crypto.getRandomValues(Te):typeof msCrypto<"u"?msCrypto.getRandomValues(Te):gn(Te,me),Te}return gn(new Array(me),me)}function nt(){var me=Cn(k);me[6]=me[6]&79|64,me[8]=me[8]&191|128;for(var Te="",Ce=0;Ce<k;++Ce){var Ne=me[Ce];(Ce===4||Ce===6||Ce===8)&&(Te+="-"),Ne<16&&(Te+="0"),Te+=Ne.toString(16).toLowerCase()}return Te}}o(Rf,"CreateWeakMapPolyfill");function Vs(k){return k.__=void 0,delete k.__,k}o(Vs,"MakeDictionary")})})($R||($R={}))});var QR=Ye((CJ,XR)=>{var VW=0,KR="changeUtils: ";function MW(){return"id-"+new Date().valueOf()+"-"+VW++}o(MW,"uid");function wW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(wW,"appendComponentToReference");function kW(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return wW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(kW,"getFlexReference");function UW(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(UW,"getAppVersion");function jW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(jW,"getProjectId");function WR(e){return JSON.stringify({fileName:e.id||MW().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:KR+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(WR,"createString");XR.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(KR,""),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=kW(t),e.appVersion=UW(t),e.projectId=jW(t,e.reference),WR(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 WR(e)},"toString")}});var zR=Ye((OJ,qR)=>{qR.exports={change:QR()}});var j0=Ye(jr=>{"use strict";var b8=/[|\\{}()[\]^$+*?.]/g,A8=Object.prototype.hasOwnProperty,QE=o(function(e,t){return A8.apply(e,[t])},"hasOwn");jr.escapeRegExpChars=function(e){return e?String(e).replace(b8,"\\$&"):""};var S8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},P8=/[&<>'"]/g;function x8(e){return S8[e]||e}o(x8,"encode_char");var C8=`var _ENCODE_HTML_RULES = {
23
+ Char: `+I.c),S=new Error(S),I.error=S,yt(I,"onerror",S),I}o(an,"error");function Lt(I){return I.sawRoot&&!I.closedRoot&&Re(I,"Unclosed root tag"),I.state!==_.BEGIN&&I.state!==_.BEGIN_WHITESPACE&&I.state!==_.TEXT&&an(I,"Unexpected end"),on(I),I.c="",I.closed=!0,yt(I,"onend"),n.call(I,I.strict,I.opt),I}o(Lt,"end");function Re(I,S){if(typeof I!="object"||!(I instanceof n))throw new Error("bad call to strictFail");I.strict&&an(I,S)}o(Re,"strictFail");function Oi(I){I.strict||(I.tagName=I.tagName[I.looseCase]());var S=I.tags[I.tags.length-1]||I,J=I.tag={name:I.tagName,attributes:{}};I.opt.xmlns&&(J.ns=S.ns),I.attribList.length=0,$e(I,"onopentagstart",J)}o(Oi,"newTag");function It(I,S){var J=I.indexOf(":"),M=J<0?["",I]:I.split(":"),Ve=M[0],Ft=M[1];return S&&I==="xmlns"&&(Ve="xmlns",Ft=""),{prefix:Ve,local:Ft}}o(It,"qname");function Mt(I){if(I.strict||(I.attribName=I.attribName[I.looseCase]()),I.attribList.indexOf(I.attribName)!==-1||I.tag.attributes.hasOwnProperty(I.attribName)){I.attribName=I.attribValue="";return}if(I.opt.xmlns){var S=It(I.attribName,!0),J=S.prefix,M=S.local;if(J==="xmlns")if(M==="xml"&&I.attribValue!==T)Re(I,"xml: prefix must be bound to "+T+`
24
+ Actual: `+I.attribValue);else if(M==="xmlns"&&I.attribValue!==A)Re(I,"xmlns: prefix must be bound to "+A+`
25
+ Actual: `+I.attribValue);else{var Ve=I.tag,Ft=I.tags[I.tags.length-1]||I;Ve.ns===Ft.ns&&(Ve.ns=Object.create(Ft.ns)),Ve.ns[M]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,$e(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(Mt,"attrib");function sn(I,S){if(I.opt.xmlns){var J=I.tag,M=It(I.tagName);J.prefix=M.prefix,J.local=M.local,J.uri=J.ns[M.prefix]||"",J.prefix&&!J.uri&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),J.uri=M.prefix);var Ve=I.tags[I.tags.length-1]||I;J.ns&&Ve.ns!==J.ns&&Object.keys(J.ns).forEach(function(Ht){$e(I,"onopennamespace",{prefix:Ht,uri:J.ns[Ht]})});for(var Ft=0,qe=I.attribList.length;Ft<qe;Ft++){var wt=I.attribList[Ft],Rn=wt[0],cn=wt[1],Bt=It(Rn,!0),ni=Bt.prefix,or=Bt.local,gn=ni===""?"":J.ns[ni]||"",yi={name:Rn,value:cn,prefix:ni,local:or,uri:gn};ni&&ni!=="xmlns"&&!gn&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(ni)),yi.uri=ni),I.tag.attributes[Rn]=yi,$e(I,"onattribute",yi)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),$e(I,"onopentag",I.tag),S||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=_.SCRIPT:I.state=_.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}o(sn,"openTag");function Bi(I){if(!I.tagName){Re(I,"Weird empty close tag."),I.textNode+="</>",I.state=_.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=_.SCRIPT;return}$e(I,"onscript",I.script),I.script=""}var S=I.tags.length,J=I.tagName;I.strict||(J=J[I.looseCase]());for(var M=J;S--;){var Ve=I.tags[S];if(Ve.name!==M)Re(I,"Unexpected close tag");else break}if(S<0){Re(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=_.TEXT;return}I.tagName=J;for(var Ft=I.tags.length;Ft-- >S;){var qe=I.tag=I.tags.pop();I.tagName=I.tag.name,$e(I,"onclosetag",I.tagName);var wt={};for(var Rn in qe.ns)wt[Rn]=qe.ns[Rn];var cn=I.tags[I.tags.length-1]||I;I.opt.xmlns&&qe.ns!==cn.ns&&Object.keys(qe.ns).forEach(function(Bt){var ni=qe.ns[Bt];$e(I,"onclosenamespace",{prefix:Bt,uri:ni})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=_.TEXT}o(Bi,"closeTag");function _e(I){var S=I.entity,J=S.toLowerCase(),M,Ve="";return I.ENTITIES[S]?I.ENTITIES[S]:I.ENTITIES[J]?I.ENTITIES[J]:(S=J,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),M=parseInt(S,16),Ve=M.toString(16)):(S=S.slice(1),M=parseInt(S,10),Ve=M.toString(10))),S=S.replace(/^0+/,""),isNaN(M)||Ve.toLowerCase()!==S?(Re(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(M))}o(_e,"parseEntity");function Kn(I,S){S==="<"?(I.state=_.OPEN_WAKA,I.startTagPosition=I.position):j(S)||(Re(I,"Non-whitespace before first tag."),I.textNode=S,I.state=_.TEXT)}o(Kn,"beginWhiteSpace");function Ir(I,S){var J="";return S<I.length&&(J=I.charAt(S)),J}o(Ir,"charAt");function st(I){var S=this;if(this.error)throw this.error;if(S.closed)return an(S,"Cannot write after close. Assign an onready handler.");if(I===null)return Lt(S);typeof I=="object"&&(I=I.toString());for(var J=0,M="";M=Ir(I,J++),S.c=M,!!M;)switch(S.trackPosition&&(S.position++,M===`
26
+ `?(S.line++,S.column=0):S.column++),S.state){case _.BEGIN:if(S.state=_.BEGIN_WHITESPACE,M==="\uFEFF")continue;Kn(S,M);continue;case _.BEGIN_WHITESPACE:Kn(S,M);continue;case _.TEXT:if(S.sawRoot&&!S.closedRoot){for(var Ve=J-1;M&&M!=="<"&&M!=="&";)M=Ir(I,J++),M&&S.trackPosition&&(S.position++,M===`
27
+ `?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(Ve,J-1)}M==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=_.OPEN_WAKA,S.startTagPosition=S.position):(!j(M)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),M==="&"?S.state=_.TEXT_ENTITY:S.textNode+=M);continue;case _.SCRIPT:M==="<"?S.state=_.SCRIPT_ENDING:S.script+=M;continue;case _.SCRIPT_ENDING:M==="/"?S.state=_.CLOSE_TAG:(S.script+="<"+M,S.state=_.SCRIPT);continue;case _.OPEN_WAKA:if(M==="!")S.state=_.SGML_DECL,S.sgmlDecl="";else if(!j(M))if(re(O,M))S.state=_.OPEN_TAG,S.tagName=M;else if(M==="/")S.state=_.CLOSE_TAG,S.tagName="";else if(M==="?")S.state=_.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Ft=S.position-S.startTagPosition;M=new Array(Ft).join(" ")+M}S.textNode+="<"+M,S.state=_.TEXT}continue;case _.SGML_DECL:(S.sgmlDecl+M).toUpperCase()===g?($e(S,"onopencdata"),S.state=_.CDATA,S.sgmlDecl="",S.cdata=""):S.sgmlDecl+M==="--"?(S.state=_.COMMENT,S.comment="",S.sgmlDecl=""):(S.sgmlDecl+M).toUpperCase()===m?(S.state=_.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):M===">"?($e(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=_.TEXT):(ae(M)&&(S.state=_.SGML_DECL_QUOTED),S.sgmlDecl+=M);continue;case _.SGML_DECL_QUOTED:M===S.q&&(S.state=_.SGML_DECL,S.q=""),S.sgmlDecl+=M;continue;case _.DOCTYPE:M===">"?(S.state=_.TEXT,$e(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=M,M==="["?S.state=_.DOCTYPE_DTD:ae(M)&&(S.state=_.DOCTYPE_QUOTED,S.q=M));continue;case _.DOCTYPE_QUOTED:S.doctype+=M,M===S.q&&(S.q="",S.state=_.DOCTYPE);continue;case _.DOCTYPE_DTD:S.doctype+=M,M==="]"?S.state=_.DOCTYPE:ae(M)&&(S.state=_.DOCTYPE_DTD_QUOTED,S.q=M);continue;case _.DOCTYPE_DTD_QUOTED:S.doctype+=M,M===S.q&&(S.state=_.DOCTYPE_DTD,S.q="");continue;case _.COMMENT:M==="-"?S.state=_.COMMENT_ENDING:S.comment+=M;continue;case _.COMMENT_ENDING:M==="-"?(S.state=_.COMMENT_ENDED,S.comment=Wn(S.opt,S.comment),S.comment&&$e(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+M,S.state=_.COMMENT);continue;case _.COMMENT_ENDED:M!==">"?(Re(S,"Malformed comment"),S.comment+="--"+M,S.state=_.COMMENT):S.state=_.TEXT;continue;case _.CDATA:M==="]"?S.state=_.CDATA_ENDING:S.cdata+=M;continue;case _.CDATA_ENDING:M==="]"?S.state=_.CDATA_ENDING_2:(S.cdata+="]"+M,S.state=_.CDATA);continue;case _.CDATA_ENDING_2:M===">"?(S.cdata&&$e(S,"oncdata",S.cdata),$e(S,"onclosecdata"),S.cdata="",S.state=_.TEXT):M==="]"?S.cdata+="]":(S.cdata+="]]"+M,S.state=_.CDATA);continue;case _.PROC_INST:M==="?"?S.state=_.PROC_INST_ENDING:j(M)?S.state=_.PROC_INST_BODY:S.procInstName+=M;continue;case _.PROC_INST_BODY:if(!S.procInstBody&&j(M))continue;M==="?"?S.state=_.PROC_INST_ENDING:S.procInstBody+=M;continue;case _.PROC_INST_ENDING:M===">"?($e(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=_.TEXT):(S.procInstBody+="?"+M,S.state=_.PROC_INST_BODY);continue;case _.OPEN_TAG:re(R,M)?S.tagName+=M:(Oi(S),M===">"?sn(S):M==="/"?S.state=_.OPEN_TAG_SLASH:(j(M)||Re(S,"Invalid character in tag name"),S.state=_.ATTRIB));continue;case _.OPEN_TAG_SLASH:M===">"?(sn(S,!0),Bi(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=_.ATTRIB);continue;case _.ATTRIB:if(j(M))continue;M===">"?sn(S):M==="/"?S.state=_.OPEN_TAG_SLASH:re(O,M)?(S.attribName=M,S.attribValue="",S.state=_.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case _.ATTRIB_NAME:M==="="?S.state=_.ATTRIB_VALUE:M===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),sn(S)):j(M)?S.state=_.ATTRIB_NAME_SAW_WHITE:re(R,M)?S.attribName+=M:Re(S,"Invalid attribute name");continue;case _.ATTRIB_NAME_SAW_WHITE:if(M==="=")S.state=_.ATTRIB_VALUE;else{if(j(M))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",$e(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",M===">"?sn(S):re(O,M)?(S.attribName=M,S.state=_.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=_.ATTRIB)}continue;case _.ATTRIB_VALUE:if(j(M))continue;ae(M)?(S.q=M,S.state=_.ATTRIB_VALUE_QUOTED):(Re(S,"Unquoted attribute value"),S.state=_.ATTRIB_VALUE_UNQUOTED,S.attribValue=M);continue;case _.ATTRIB_VALUE_QUOTED:if(M!==S.q){M==="&"?S.state=_.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=M;continue}Mt(S),S.q="",S.state=_.ATTRIB_VALUE_CLOSED;continue;case _.ATTRIB_VALUE_CLOSED:j(M)?S.state=_.ATTRIB:M===">"?sn(S):M==="/"?S.state=_.OPEN_TAG_SLASH:re(O,M)?(Re(S,"No whitespace between attributes"),S.attribName=M,S.attribValue="",S.state=_.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case _.ATTRIB_VALUE_UNQUOTED:if(!Z(M)){M==="&"?S.state=_.ATTRIB_VALUE_ENTITY_U:S.attribValue+=M;continue}Mt(S),M===">"?sn(S):S.state=_.ATTRIB;continue;case _.CLOSE_TAG:if(S.tagName)M===">"?Bi(S):re(R,M)?S.tagName+=M:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=_.SCRIPT):(j(M)||Re(S,"Invalid tagname in closing tag"),S.state=_.CLOSE_TAG_SAW_WHITE);else{if(j(M))continue;xe(O,M)?S.script?(S.script+="</"+M,S.state=_.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=M}continue;case _.CLOSE_TAG_SAW_WHITE:if(j(M))continue;M===">"?Bi(S):Re(S,"Invalid characters in closing tag");continue;case _.TEXT_ENTITY:case _.ATTRIB_VALUE_ENTITY_Q:case _.ATTRIB_VALUE_ENTITY_U:var qe,wt;switch(S.state){case _.TEXT_ENTITY:qe=_.TEXT,wt="textNode";break;case _.ATTRIB_VALUE_ENTITY_Q:qe=_.ATTRIB_VALUE_QUOTED,wt="attribValue";break;case _.ATTRIB_VALUE_ENTITY_U:qe=_.ATTRIB_VALUE_UNQUOTED,wt="attribValue";break}if(M===";")if(S.opt.unparsedEntities){var Rn=_e(S);S.entity="",S.state=qe,S.write(Rn)}else S[wt]+=_e(S),S.entity="",S.state=qe;else re(S.entity.length?W:U,M)?S.entity+=M:(Re(S,"Invalid character in entity name"),S[wt]+="&"+S.entity+M,S.entity="",S.state=qe);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}o(st,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,J=o(function(){var M=16384,Ve=[],Ft,qe,wt=-1,Rn=arguments.length;if(!Rn)return"";for(var cn="";++wt<Rn;){var Bt=Number(arguments[wt]);if(!isFinite(Bt)||Bt<0||Bt>1114111||S(Bt)!==Bt)throw RangeError("Invalid code point: "+Bt);Bt<=65535?Ve.push(Bt):(Bt-=65536,Ft=(Bt>>10)+55296,qe=Bt%1024+56320,Ve.push(Ft,qe)),(wt+1===Rn||Ve.length>M)&&(cn+=I.apply(null,Ve),Ve.length=0)}return cn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:J,configurable:!0,writable:!0}):String.fromCodePoint=J}()})(typeof Pg>"u"?Pg.sax={}:Pg)});var xg=Ye((XY,WF)=>{WF.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Cg=Ye((qY,KF)=>{var EG=xg().isArray;KF.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"&&!EG(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 tb=Ye((YY,eR)=>{var AG=GF(),SG={on:o(function(){},"on"),parse:o(function(){},"parse")},rt=Cg(),al=xg().isArray,H,eb=!0,Be;function PG(e){return H=rt.copyOptions(e),rt.ensureFlagExists("ignoreDeclaration",H),rt.ensureFlagExists("ignoreInstruction",H),rt.ensureFlagExists("ignoreAttributes",H),rt.ensureFlagExists("ignoreText",H),rt.ensureFlagExists("ignoreComment",H),rt.ensureFlagExists("ignoreCdata",H),rt.ensureFlagExists("ignoreDoctype",H),rt.ensureFlagExists("compact",H),rt.ensureFlagExists("alwaysChildren",H),rt.ensureFlagExists("addParent",H),rt.ensureFlagExists("trim",H),rt.ensureFlagExists("nativeType",H),rt.ensureFlagExists("nativeTypeAttributes",H),rt.ensureFlagExists("sanitize",H),rt.ensureFlagExists("instructionHasAttributes",H),rt.ensureFlagExists("captureSpacesBetweenElements",H),rt.ensureAlwaysArrayExists(H),rt.ensureKeyExists("declaration",H),rt.ensureKeyExists("instruction",H),rt.ensureKeyExists("attributes",H),rt.ensureKeyExists("text",H),rt.ensureKeyExists("comment",H),rt.ensureKeyExists("cdata",H),rt.ensureKeyExists("doctype",H),rt.ensureKeyExists("type",H),rt.ensureKeyExists("name",H),rt.ensureKeyExists("elements",H),rt.ensureKeyExists("parent",H),rt.checkFnExists("doctype",H),rt.checkFnExists("instruction",H),rt.checkFnExists("cdata",H),rt.checkFnExists("comment",H),rt.checkFnExists("text",H),rt.checkFnExists("instructionName",H),rt.checkFnExists("elementName",H),rt.checkFnExists("attributeName",H),rt.checkFnExists("attributeValue",H),rt.checkFnExists("attributes",H),H}o(PG,"validateOptions");function JF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(JF,"nativeType");function tu(e,t){var n;if(H.compact){if(!Be[H[e+"Key"]]&&(al(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&(Be[H[e+"Key"]]=[]),Be[H[e+"Key"]]&&!al(Be[H[e+"Key"]])&&(Be[H[e+"Key"]]=[Be[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,Be)),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,Be);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,Be)]=i}}al(Be[H[e+"Key"]])?Be[H[e+"Key"]].push(t):Be[H[e+"Key"]]=t}else{Be[H.elementsKey]||(Be[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,Be):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,Be))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,Be)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,Be)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=Be),Be[H.elementsKey].push(r)}}o(tu,"addField");function ZF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,Be)),(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]=JF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,Be)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],Be)]=n}}return e}o(ZF,"manipulateAttributes");function xG(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=ZF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;Be[H.declarationKey]={},Object.keys(t).length&&(Be[H.declarationKey][H.attributesKey]=t),H.addParent&&(Be[H.declarationKey][H.parentKey]=Be)}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,tu("instruction",r)}}o(xG,"onInstruction");function XF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=ZF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,Be)),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 Be)&&(al(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&(Be[e]=[]),Be[e]&&!al(Be[e])&&(Be[e]=[Be[e]]),al(Be[e])?Be[e].push(n):Be[e]=n}else Be[H.elementsKey]||(Be[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]=[]),Be[H.elementsKey].push(n);n[H.parentKey]=Be,Be=n}o(XF,"onStartElement");function QF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=JF(e)),H.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),tu("text",e))}o(QF,"onText");function qF(e){H.ignoreComment||(H.trim&&(e=e.trim()),tu("comment",e))}o(qF,"onComment");function zF(e){var t=Be[H.parentKey];H.addParent||delete Be[H.parentKey],Be=t}o(zF,"onEndElement");function CG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),tu("cdata",e))}o(CG,"onCdata");function IG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),tu("doctype",e))}o(IG,"onDoctype");function YF(e){e.note=e}o(YF,"onError");eR.exports=function(e,t){var n=eb?AG.parser(!0,{}):n=new SG.Parser("UTF-8"),i={};if(Be=i,H=PG(t),eb?(n.opt={strictEntities:!0},n.onopentag=XF,n.ontext=QF,n.oncomment=qF,n.onclosetag=zF,n.onerror=YF,n.oncdata=CG,n.ondoctype=IG,n.onprocessinginstruction=xG):(n.on("startElement",XF),n.on("text",QF),n.on("comment",qF),n.on("endElement",zF),n.on("error",YF)),eb)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 iR=Ye((ZY,nR)=>{var tR=Cg(),OG=tb();function NG(e){var t=tR.copyOptions(e);return tR.ensureSpacesExists(t),t}o(NG,"validateOptions");nR.exports=function(e,t){var n,i,r,a;return n=NG(t),i=OG(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 ib=Ye((tJ,pR)=>{var lt=Cg(),LG=xg().isArray,Ei,Ai;function FG(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(FG,"validateOptions");function xo(e,t,n){return(!n&&e.spaces?`
28
+ `:"")+Array(t+1).join(e.spaces)}o(xo,"writeIndentation");function Ig(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ai,Ei));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,"&quot;"),a="attributeNameFn"in t?t.attributeNameFn(i,r,Ai,Ei):i,l.push(t.spaces&&t.indentAttributes?xo(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ai,Ei):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(xo(t,n,!1)),l.join("")}o(Ig,"writeAttributes");function rR(e,t,n){return Ei=e,Ai="xml",t.ignoreDeclaration?"":"<?xml"+Ig(e[t.attributesKey],t,n)+"?>"}o(rR,"writeDeclaration");function oR(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],Ai,Ei):i;if(typeof e[i]=="object")return Ei=e,Ai=r,"<?"+r+Ig(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ai,Ei)),"<?"+r+(a?" "+a:"")+"?>"}o(oR,"writeInstruction");function aR(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ai,Ei):e)+"-->"}o(aR,"writeComment");function sR(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ai,Ei):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(sR,"writeCdata");function cR(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ai,Ei):e)+">"}o(cR,"writeDoctype");function nb(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&amp;/g,"&"),e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),"textFn"in t?t.textFn(e,Ai,Ei):e)}o(nb,"writeText");function RG(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(RG,"hasContent");function _G(e,t,n){Ei=e,Ai=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(Ig(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(lR(e[t.elementsKey],t,n+1)),Ei=e,Ai=e.name),i.push(t.spaces&&RG(e,t)?`
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(_G,"writeElement");function lR(e,t,n,i){return e.reduce(function(r,a){var s=xo(t,n,i&&!r);switch(a.type){case"element":return r+s+_G(a,t,n);case"comment":return r+s+aR(a[t.commentKey],t);case"doctype":return r+s+cR(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+sR(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+nb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+oR(l,t,n)}},"")}o(lR,"writeElements");function fR(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(fR,"hasContentCompact");function DG(e,t,n,i,r){Ei=e,Ai=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(">"+nb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Ig(e[n.attributesKey],n,i));var l=fR(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(uR(e,n,i+1,!1)),Ei=e,Ai=t,t&&s.push((r?xo(n,i,!1):"")+"</"+a+">"),s.join("")}o(DG,"writeElementCompact");function uR(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=LG(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(rR(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?xo(t,n,i):"")+oR(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?xo(t,n,i):"")+nb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?xo(t,n,i):"")+sR(s[r],t));break;case t.doctypeKey:l.push(xo(t,n,i)+cR(s[r],t));break;case t.commentKey:l.push(xo(t,n,i)+aR(s[r],t));break;default:l.push(xo(t,n,i)+DG(s[r],a,t,n,fR(s[r],t)))}i=i&&!l.length}return l.join("")}o(uR,"writeElementsCompact");pR.exports=function(e,t){t=FG(t);var n=[];return Ei=e,Ai="_root_",t.compact?n.push(uR(e,t,0,!0)):(e[t.declarationKey]&&n.push(rR(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(lR(e[t.elementsKey],t,0,!n.length))),n.join("")}});var gR=Ye((iJ,dR)=>{var VG=ib();dR.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 VG(n,t)}});var Xs=Ye((rJ,mR)=>{var MG=tb(),wG=iR(),kG=ib(),UG=gR();mR.exports={xml2js:MG,xml2json:wG,js2xml:kG,json2xml:UG}});var ER=Ye(Qi=>{"use strict";Object.defineProperty(Qi,"__esModule",{value:!0});Qi.convertEntityTypeAnnotations=Qi.convertPropertyAnnotations=Qi.convertNavigationPropertyAnnotations=Qi.convertEntitySetAnnotations=Qi.convertGenericAnnotations=Qi.convertV2Annotations=void 0;function jG(e,t,n){let i=[];switch(t){case"EntitySet":yR(e,i);break;case"EntityType":bR(e,i);break;case"NavigationProperty":vR(e,n,i);break;case"Property":TR(e,n,i);break;case"Singleton":break;default:break}return hR(e,n,i),i}o(jG,"convertV2Annotations");Qi.convertV2Annotations=jG;function hR(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(hR,"convertGenericAnnotations");Qi.convertGenericAnnotations=hR;function yR(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(yR,"convertEntitySetAnnotations");Qi.convertEntitySetAnnotations=yR;function vR(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(vR,"convertNavigationPropertyAnnotations");Qi.convertNavigationPropertyAnnotations=vR;function TR(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(TR,"convertPropertyAnnotations");Qi.convertPropertyAnnotations=TR;function bR(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(bR,"convertEntityTypeAnnotations");Qi.convertEntityTypeAnnotations=bR});var IR=Ye(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.parse=void 0;var $G=Xs(),He=ZT(),nu=ER(),Lg=/^Collection\((.+)\)$/;function BG(e){return e.Type!==null&&e.Type!==void 0}o(BG,"isV4NavProperty");function HG(e){return e.map(t=>t._attributes.Name)}o(HG,"getEntityTypeKeys");function PR(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:sl(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":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,nu.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Qs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(PR,"parseProperties");function GG(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(GG,"parseReferentialConstraint");function WG(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(WG,"parseV2ReferentialConstraint");function xR(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(BG(s)){let l=s.Type.match(Lg),u=l!==null,p=Co(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:GG((0,He.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,nu.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Qs(`${n}/${s.Name}`,g))}return r},[])}o(xR,"parseNavigationProperties");function KG(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(KG,"parseAssociationSets");function XG(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:WG((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(XG,"parseAssociations");function QG(e,t,n){return e.reduce((i,r)=>{let a=r.Key?HG((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=PR((0,He.ensureArray)(r.Property),a,s,t),p=xR((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,nu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Qs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(QG,"parseEntityTypes");function qG(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=PR((0,He.ensureArray)(r.Property),[],a,t),l=xR((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(qG,"parseComplexTypes");function zG(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(zG,"parseTypeDefinitions");function YG(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Co(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,nu.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(Qs(l.fullyQualifiedName,u)),l})}o(YG,"parseEntitySets");function JG(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Co(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,nu.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(Qs(l.fullyQualifiedName,u)),l})}o(JG,"parseSingletons");function AR(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>sl(u._attributes.Type).type).join(","):s=a?sl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?sl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=sl(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?sl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Lg)!==null:!1}})}o(AR,"parseActions");function ZG(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Lg)!==null:!1}})}o(ZG,"parseV2FunctionImport");function SR(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:Co(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Co(r)}})}o(SR,"parseActionImports");function eW(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=Ng(s,p,n,!1):u&&(l.value=CR({[u]:a[u]},p,n)),i.Annotation){let g=Rg((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Qs(p,g))}}return l})}o(eW,"parsePropertyValues");function Fg(e,t,n){let i=Rg((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Co(e._attributes.Type):void 0,propertyValues:eW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Fg,"parseRecord");function aa(e,t){return e[t]!=null}o(aa,"isExpressionOfType");function Og(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(Og,"parseModelPath");function ob(e,t,n){if(aa(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Fg(r,t+"/"+a,n));return i.type="Record",i}else if(aa(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Og(r,"PropertyPath"));return i.type="PropertyPath",i}else if(aa(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Og(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(aa(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(aa(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Og(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(aa(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Og(r,"Path"));return i.type="Path",i}else if(aa(e,"If")){let i=(0,He.ensureArray)(e.If).map(r=>r._text);return i.type="String",i}else{if(Object.keys(e).length===0)return[];console.error(`Cannot parse ${JSON.stringify(e)}, collection type is not supported`)}return[]}o(ob,"parseCollection");function Tn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Ng({[i]:r},"",[],!0))):n.push(Ng({[i]:e[i]},"",[],!0))}),n}o(Tn,"parseChildren");function CR(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"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:ob(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Tn(e.Apply),$Function:Tn(e.Function)};case"And":return{type:"And",$And:Tn(e.And)};case"Or":return{type:"Or",$Or:Tn(e.Or)};case"Eq":return{type:"Eq",$Eq:Tn(e.Eq)};case"Gt":return{type:"Gt",$Gt:Tn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Tn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Tn(e.Lt)};case"Le":return{type:"Le",$Le:Tn(e.Le)};case"If":return{type:"If",$If:Tn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(CR,"parseInlineExpression");function Ng(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:Tn(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"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:ob(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:Tn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:Tn(e.And)};case"Ne":return{type:"Ne",$Ne:Tn(e.Ne)};case"Not":return{type:"Not",$Not:Tn(e.Not)[0]};case"Or":return{type:"Or",$Or:Tn(e.Or)};case"Eq":return{type:"Eq",$Eq:Tn(e.Eq)};case"If":return{type:"If",$If:Tn(e.If)};case"Gt":return{type:"Gt",$Gt:Tn(e.Gt)};case"Ge":return{type:"Ge",$Ge:Tn(e.Ge)};case"Lt":return{type:"Lt",$Lt:Tn(e.Lt)};case"Le":return{type:"Le",$Le:Tn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Ng,"parseExpression");function tW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Co(i),qualifier:r},l=`${t}@${Co(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=CR(a,l,n)),e.Annotation){let p=Rg((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return aa(e,"Record")?s.record=Fg(e.Record,l,n):aa(e,"Collection")?s.collection=ob(e.Collection,l,n):u.length===1?s.value=Ng({[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(tW,"parseAnnotation");function Rg(e,t,n){return e.map(i=>tW(i,t,n))}o(Rg,"parseAnnotations");function Qs(e,t){return{target:e,annotations:t}}o(Qs,"createAnnotationList");function nW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Qs(Co(n._attributes.Target),Rg((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(nW,"parseAnnotationLists");function iW(e,t,n){let i=e._attributes.Namespace,r=[],a=QG((0,He.ensureArray)(e.EntityType),r,i),s=qG((0,He.ensureArray)(e.ComplexType),r,i),l=zG((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],A=[];if(e.EntityContainer)if(u=YG((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=JG((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=KG((0,He.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")T=T.concat(ZG((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(SR((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(SR((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(AR((0,He.ensureArray)(e.Action),i,!1)),T=T.concat(AR((0,He.ensureArray)(e.Function),i,!0)));let b=XG((0,He.ensureArray)(e.Association),i);nW((0,He.ensureArray)(e.Annotations),r);let O={};return O[n]=r,{associations:b,associationSets:g,annotations:O,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:T,actionImports:A,entityTypes:a}}o(iW,"parseSchema");function rW(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(rW,"parseReferences");var rb={};function sl(e){let t=e.match(Lg),n=t?t[1]:e,i=Co(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(sl,"unaliasType");function Co(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=rb[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(Co,"unalias");function oW(e){let t=e.reduce((A,b)=>A.concat(b.associations),[]),n=e.reduce((A,b)=>A.concat(b.associationSets),[]),i=e.reduce((A,b)=>A.concat(b.entitySets),[]),r=e.reduce((A,b)=>A.concat(b.singletons),[]),a=e.reduce((A,b)=>A.concat(b.entityTypes),[]),s=e.reduce((A,b)=>A.concat(b.actions),[]),l=e.reduce((A,b)=>A.concat(b.actionImports),[]),u=e.reduce((A,b)=>A.concat(b.complexTypes),[]),p=e.reduce((A,b)=>A.concat(b.typeDefinitions),[]),g={};e.forEach(A=>{g=Object.assign(g,A.annotations)});let m,T;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,T=A.namespace)}),i.forEach(A=>{let b=a.find(O=>O.fullyQualifiedName===A.entityTypeName);b==null||b.navigationProperties.forEach(O=>{let R=O,U=n.find(W=>W.association===R.relationship);if(U){let W=U.associationEnd.find(j=>j.entitySet!==A.fullyQualifiedName);W&&(A.navigationPropertyBinding[O.name]=W.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(b=>{let O=b,R=t.find(U=>U.fullyQualifiedName===O.relationship);R&&R.referentialConstraints&&R.referentialConstraints.length>0&&(R.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=R.referentialConstraints:O.referentialConstraint=R.referentialConstraints.map(U=>({sourceTypeName:U.targetTypeName,sourceProperty:U.targetProperty,targetTypeName:U.sourceTypeName,targetProperty:U.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:T,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(oW,"mergeSchemas");function aW(e,t){rb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{rb[n._attributes.Alias]=n._attributes.Namespace})}o(aW,"createAliasMap");function sW(e,t="serviceFile"){let n=(0,$G.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=rW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));aW(a,r);let s=r.map(u=>iW(u,i,t));return new He.RawMetadataInstance(t,i,oW(s),a)}o(sW,"parse");_g.parse=sW});var OR=Ye(cl=>{"use strict";Object.defineProperty(cl,"__esModule",{value:!0});cl.parse=cl.merge=void 0;var cW=HF();Object.defineProperty(cl,"merge",{enumerable:!0,get:o(function(){return cW.merge},"get")});var lW=IR();Object.defineProperty(cl,"parse",{enumerable:!0,get:o(function(){return lW.parse},"get")})});var BR=Ye(()=>{var $R;(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 Vs(Object.create(null))}:u?function(){return Vs({__proto__:null})}:function(){return Vs({})},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),T=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Lf(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ff(),b=typeof WeakMap=="function"?WeakMap:Rf(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,R=Hi(),U=Nf(R);function W(k,B,Q,ce){if(_e(Q)){if(!Ft(k))throw new TypeError;if(!wt(B))throw new TypeError;return on(k,B)}else{if(!Ft(k))throw new TypeError;if(!st(B))throw new TypeError;if(!st(ce)&&!_e(ce)&&!Kn(ce))throw new TypeError;return Kn(ce)&&(ce=void 0),Q=Ve(Q),Wn(k,B,Q,ce)}}o(W,"decorate"),t("decorate",W);function j(k,B){function Q(ce,Fe){if(!st(ce))throw new TypeError;if(!_e(Fe)&&!Rn(Fe))throw new TypeError;It(k,B,ce,Fe)}return o(Q,"decorator"),Q}o(j,"metadata"),t("metadata",j);function ae(k,B,Q,ce){if(!st(Q))throw new TypeError;return _e(ce)||(ce=Ve(ce)),It(k,B,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,B,Q){if(!st(B))throw new TypeError;return _e(Q)||(Q=Ve(Q)),an(k,B,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,B,Q){if(!st(B))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Lt(k,B,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function xe(k,B,Q){if(!st(B))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Re(k,B,Q)}o(xe,"getMetadata"),t("getMetadata",xe);function _(k,B,Q){if(!st(B))throw new TypeError;return _e(Q)||(Q=Ve(Q)),Oi(k,B,Q)}o(_,"getOwnMetadata"),t("getOwnMetadata",_);function ut(k,B){if(!st(k))throw new TypeError;return _e(B)||(B=Ve(B)),Mt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!st(k))throw new TypeError;return _e(B)||(B=Ve(B)),sn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function $e(k,B,Q){if(!st(B))throw new TypeError;if(_e(Q)||(Q=Ve(Q)),!st(B))throw new TypeError;_e(Q)||(Q=Ve(Q));var ce=Or(B,Q,!1);return _e(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o($e,"deleteMetadata"),t("deleteMetadata",$e);function on(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Fe=ce(B);if(!_e(Fe)&&!Kn(Fe)){if(!wt(Fe))throw new TypeError;B=Fe}}return B}o(on,"DecorateConstructor");function Wn(k,B,Q,ce){for(var Fe=k.length-1;Fe>=0;--Fe){var mn=k[Fe],xn=mn(B,Q,ce);if(!_e(xn)&&!Kn(xn)){if(!st(xn))throw new TypeError;ce=xn}}return ce}o(Wn,"DecorateProperty");function an(k,B,Q){var ce=Lt(k,B,Q);if(ce)return!0;var Fe=Ht(B);return Kn(Fe)?!1:an(k,Fe,Q)}o(an,"OrdinaryHasMetadata");function Lt(k,B,Q){var ce=Or(B,Q,!1);return _e(ce)?!1:J(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Lt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Lt(k,B,Q);if(ce)return Oi(k,B,Q);var Fe=Ht(B);if(!Kn(Fe))return Re(k,Fe,Q)}o(Re,"OrdinaryGetMetadata");function Oi(k,B,Q){var ce=Or(B,Q,!1);if(!_e(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Oi,"OrdinaryGetOwnMetadata");function It(k,B,Q,ce){var Fe=Or(Q,ce,!0);Fe.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(It,"OrdinaryDefineOwnMetadata");function Mt(k,B){var Q=sn(k,B),ce=Ht(k);if(ce===null)return Q;var Fe=Mt(ce,B);if(Fe.length<=0)return Q;if(Q.length<=0)return Fe;for(var mn=new A,xn=[],nt=0,he=Q;nt<he.length;nt++){var be=he[nt],Ce=mn.has(be);Ce||(mn.add(be),xn.push(be))}for(var Ne=0,ot=Fe;Ne<ot.length;Ne++){var be=ot[Ne],Ce=mn.has(be);Ce||(mn.add(be),xn.push(be))}return xn}o(Mt,"OrdinaryMetadataKeys");function sn(k,B){var Q=Or(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(sn,"OrdinaryOwnMetadataKeys");function Bi(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(Bi,"Type");function _e(k){return k===void 0}o(_e,"IsUndefined");function Kn(k){return k===null}o(Kn,"IsNull");function Ir(k){return typeof k=="symbol"}o(Ir,"IsSymbol");function st(k){return typeof k=="object"?k!==null:typeof k=="function"}o(st,"IsObject");function I(k,B){switch(Bi(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(st(Fe))throw new TypeError;return Fe}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(qe(Q)){var ce=Q.call(k);if(!st(ce))return ce}var Fe=k.valueOf;if(qe(Fe)){var ce=Fe.call(k);if(!st(ce))return ce}}else{var Fe=k.valueOf;if(qe(Fe)){var ce=Fe.call(k);if(!st(ce))return ce}var mn=k.toString;if(qe(mn)){var ce=mn.call(k);if(!st(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function J(k){return!!k}o(J,"ToBoolean");function M(k){return""+k}o(M,"ToString");function Ve(k){var B=I(k,3);return Ir(B)?B:M(B)}o(Ve,"ToPropertyKey");function Ft(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Ft,"IsArray");function qe(k){return typeof k=="function"}o(qe,"IsCallable");function wt(k){return typeof k=="function"}o(wt,"IsConstructor");function Rn(k){switch(Bi(k)){case 3:return!0;case 4:return!0;default:return!1}}o(Rn,"IsPropertyKey");function cn(k,B){return k===B||k!==k&&B!==B}o(cn,"SameValueZero");function Bt(k,B){var Q=k[B];if(Q!=null){if(!qe(Q))throw new TypeError;return Q}}o(Bt,"GetMethod");function ni(k){var B=Bt(k,s);if(!qe(B))throw new TypeError;var Q=B.call(k);if(!st(Q))throw new TypeError;return Q}o(ni,"GetIterator");function or(k){return k.value}o(or,"IteratorValue");function gn(k){var B=k.next();return B.done?!1:B}o(gn,"IteratorStep");function yi(k){var B=k.return;B&&B.call(k)}o(yi,"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 Xo(){var k;!_e(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Ds(n.Reflect));var B,Q,ce,Fe=new b,mn={registerProvider:xn,getProvider:he,setProvider:Ce};return mn;function xn(Ne){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ne:break;case _e(B):B=Ne;break;case B===Ne:break;case _e(Q):Q=Ne;break;case Q===Ne:break;default:ce===void 0&&(ce=new A),ce.add(Ne);break}}function nt(Ne,ot){if(!_e(B)){if(B.isProviderFor(Ne,ot))return B;if(!_e(Q)){if(Q.isProviderFor(Ne,ot))return B;if(!_e(ce))for(var Gt=ni(ce);;){var ln=gn(Gt);if(!ln)return;var ar=or(ln);if(ar.isProviderFor(Ne,ot))return yi(Gt),ar}}}if(!_e(k)&&k.isProviderFor(Ne,ot))return k}function he(Ne,ot){var Gt=Fe.get(Ne),ln;return _e(Gt)||(ln=Gt.get(ot)),_e(ln)&&(ln=nt(Ne,ot),_e(ln)||(_e(Gt)&&(Gt=new T,Fe.set(Ne,Gt)),Gt.set(ot,ln))),ln}function be(Ne){if(_e(Ne))throw new TypeError;return B===Ne||Q===Ne||!_e(ce)&&ce.has(Ne)}function Ce(Ne,ot,Gt){if(!be(Gt))throw new Error("Metadata provider not registered.");var ln=he(Ne,ot);if(ln!==Gt){if(!_e(ln))return!1;var ar=Fe.get(Ne);_e(ar)&&(ar=new T,Fe.set(Ne,ar)),ar.set(ot,Gt)}return!0}}o(Xo,"CreateMetadataRegistry");function Hi(){var k;return!_e(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),_e(k)&&(k=Xo()),!_e(O)&&st(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Hi,"GetOrCreateMetadataRegistry");function Nf(k){var B=new b,Q={isProviderFor:o(function(be,Ce){var Ne=B.get(be);return _e(Ne)?!1:Ne.has(Ce)},"isProviderFor"),OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Fe,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:nt,OrdinaryDeleteMetadata:he};return R.registerProvider(Q),Q;function ce(be,Ce,Ne){var ot=B.get(be),Gt=!1;if(_e(ot)){if(!Ne)return;ot=new T,B.set(be,ot),Gt=!0}var ln=ot.get(Ce);if(_e(ln)){if(!Ne)return;if(ln=new T,ot.set(Ce,ln),!k.setProvider(be,Ce,Q))throw ot.delete(Ce),Gt&&B.delete(be),new Error("Wrong provider for target.")}return ln}o(ce,"GetOrCreateMetadataMap");function Fe(be,Ce,Ne){var ot=ce(Ce,Ne,!1);return _e(ot)?!1:J(ot.has(be))}o(Fe,"OrdinaryHasOwnMetadata");function mn(be,Ce,Ne){var ot=ce(Ce,Ne,!1);if(!_e(ot))return ot.get(be)}o(mn,"OrdinaryGetOwnMetadata");function xn(be,Ce,Ne,ot){var Gt=ce(Ne,ot,!0);Gt.set(be,Ce)}o(xn,"OrdinaryDefineOwnMetadata");function nt(be,Ce){var Ne=[],ot=ce(be,Ce,!1);if(_e(ot))return Ne;for(var Gt=ot.keys(),ln=ni(Gt),ar=0;;){var yd=gn(ln);if(!yd)return Ne.length=ar,Ne;var sv=or(yd);try{Ne[ar]=sv}catch(_f){try{yi(ln)}finally{throw _f}}ar++}}o(nt,"OrdinaryOwnMetadataKeys");function he(be,Ce,Ne){var ot=ce(Ce,Ne,!1);if(_e(ot)||!ot.delete(be))return!1;if(ot.size===0){var Gt=B.get(Ce);_e(Gt)||(Gt.delete(Ne),Gt.size===0&&B.delete(Gt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(Nf,"CreateMetadataProvider");function Ds(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Fe=k.getOwnMetadataKeys,mn=k.deleteMetadata,xn=new b,nt={isProviderFor:o(function(he,be){var Ce=xn.get(he);return!_e(Ce)&&Ce.has(be)?!0:Fe(he,be).length?(_e(Ce)&&(Ce=new A,xn.set(he,Ce)),Ce.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Fe,OrdinaryDeleteMetadata:mn};return nt}o(Ds,"CreateFallbackProvider");function Or(k,B,Q){var ce=R.getProvider(k,B);if(!_e(ce))return ce;if(Q){if(R.setProvider(k,B,U))return U;throw new Error("Illegal state.")}}o(Or,"GetMetadataProvider");function Lf(){var k={},B=[],Q=function(){function nt(he,be,Ce){this._index=0,this._keys=he,this._values=be,this._selector=Ce}return o(nt,"MapIterator"),nt.prototype["@@iterator"]=function(){return this},nt.prototype[s]=function(){return this},nt.prototype.next=function(){var he=this._index;if(he>=0&&he<this._keys.length){var be=this._selector(this._keys[he],this._values[he]);return he+1>=this._keys.length?(this._index=-1,this._keys=B,this._values=B):this._index++,{value:be,done:!1}}return{value:void 0,done:!0}},nt.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},nt.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},nt}(),ce=function(){function nt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(nt,"Map"),Object.defineProperty(nt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),nt.prototype.has=function(he){return this._find(he,!1)>=0},nt.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},nt.prototype.set=function(he,be){var Ce=this._find(he,!0);return this._values[Ce]=be,this},nt.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var Ce=this._keys.length,Ne=be+1;Ne<Ce;Ne++)this._keys[Ne-1]=this._keys[Ne],this._values[Ne-1]=this._values[Ne];return this._keys.length--,this._values.length--,cn(he,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},nt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},nt.prototype.keys=function(){return new Q(this._keys,this._values,Fe)},nt.prototype.values=function(){return new Q(this._keys,this._values,mn)},nt.prototype.entries=function(){return new Q(this._keys,this._values,xn)},nt.prototype["@@iterator"]=function(){return this.entries()},nt.prototype[s]=function(){return this.entries()},nt.prototype._find=function(he,be){if(!cn(this._cacheKey,he)){this._cacheIndex=-1;for(var Ce=0;Ce<this._keys.length;Ce++)if(cn(this._keys[Ce],he)){this._cacheIndex=Ce;break}}return this._cacheIndex<0&&be&&(this._cacheIndex=this._keys.length,this._keys.push(he),this._values.push(void 0)),this._cacheIndex},nt}();return ce;function Fe(nt,he){return nt}function mn(nt,he){return he}function xn(nt,he){return[nt,he]}}o(Lf,"CreateMapPolyfill");function Ff(){var k=function(){function B(){this._map=new T}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(Ff,"CreateSetPolyfill");function Rf(){var k=16,B=g.create(),Q=ce();return function(){function he(){this._key=ce()}return o(he,"WeakMap"),he.prototype.has=function(be){var Ce=Fe(be,!1);return Ce!==void 0?g.has(Ce,this._key):!1},he.prototype.get=function(be){var Ce=Fe(be,!1);return Ce!==void 0?g.get(Ce,this._key):void 0},he.prototype.set=function(be,Ce){var Ne=Fe(be,!0);return Ne[this._key]=Ce,this},he.prototype.delete=function(be){var Ce=Fe(be,!1);return Ce!==void 0?delete Ce[this._key]:!1},he.prototype.clear=function(){this._key=ce()},he}();function ce(){var he;do he="@@WeakMap@@"+nt();while(g.has(B,he));return B[he]=!0,he}function Fe(he,be){if(!i.call(he,Q)){if(!be)return;Object.defineProperty(he,Q,{value:g.create()})}return he[Q]}function mn(he,be){for(var Ce=0;Ce<be;++Ce)he[Ce]=Math.random()*255|0;return he}function xn(he){if(typeof Uint8Array=="function"){var be=new Uint8Array(he);return typeof crypto<"u"?crypto.getRandomValues(be):typeof msCrypto<"u"?msCrypto.getRandomValues(be):mn(be,he),be}return mn(new Array(he),he)}function nt(){var he=xn(k);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",Ce=0;Ce<k;++Ce){var Ne=he[Ce];(Ce===4||Ce===6||Ce===8)&&(be+="-"),Ne<16&&(be+="0"),be+=Ne.toString(16).toLowerCase()}return be}}o(Rf,"CreateWeakMapPolyfill");function Vs(k){return k.__=void 0,delete k.__,k}o(Vs,"MakeDictionary")})})($R||($R={}))});var QR=Ye((CJ,XR)=>{var VW=0,KR="changeUtils: ";function MW(){return"id-"+new Date().valueOf()+"-"+VW++}o(MW,"uid");function wW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(wW,"appendComponentToReference");function kW(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return wW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(kW,"getFlexReference");function UW(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(UW,"getAppVersion");function jW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(jW,"getProjectId");function WR(e){return JSON.stringify({fileName:e.id||MW().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:KR+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(WR,"createString");XR.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(KR,""),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=kW(t),e.appVersion=UW(t),e.projectId=jW(t,e.reference),WR(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 WR(e)},"toString")}});var zR=Ye((OJ,qR)=>{qR.exports={change:QR()}});var j0=Ye(jr=>{"use strict";var E8=/[|\\{}()[\]^$+*?.]/g,A8=Object.prototype.hasOwnProperty,Qb=o(function(e,t){return A8.apply(e,[t])},"hasOwn");jr.escapeRegExpChars=function(e){return e?String(e).replace(E8,"\\$&"):""};var S8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},P8=/[&<>'"]/g;function x8(e){return S8[e]||e}o(x8,"encode_char");var C8=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -38,16 +38,16 @@ function encode_char(c) {
38
38
  return _ENCODE_HTML_RULES[c] || c;
39
39
  };
40
40
  `;jr.escapeXML=function(e){return e==null?"":String(e).replace(P8,x8)};function U0(){return Function.prototype.toString.call(this)+`;
41
- `+C8}o(U0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(jr.escapeXML,"toString",{value:U0}):jr.escapeXML.toString=U0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}jr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)QE(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};jr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!QE(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};jr.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};jr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};jr.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();jr.hasOwnOnlyObject=function(e){var t=jr.createNullProtoObjWherePossible();for(var n in e)QE(e,n)&&(t[n]=e[n]);return t}});var $0=Ye((YZ,I8)=>{I8.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 z0=Ye(Pt=>{"use strict";var zE=require("fs"),Au=require("path"),Nn=j0(),B0=!1,O8=$0().version,N8="<",L8=">",F8="%",Q0="locals",R8="ejs",_8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",q0=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],D8=q0.concat("cache"),H0=/^\uFEFF/,qE=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Nn.cache;Pt.fileLoader=zE.readFileSync;Pt.localsName=Q0;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Au.dirname,r=Au.extname,a=Au.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function G0(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),zE.existsSync(n)}))return n}o(G0,"resolvePaths");function V8(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=G0(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),zE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=G0(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(V8,"getIncludePath");function Su(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=W0(i).toString().replace(H0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=W0(i).toString().replace(H0,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(Su,"handleCache");function M8(e,t,n){var i;if(n){try{i=Su(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=Su(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(M8,"tryHandleCache");function W0(e){return Pt.fileLoader(e)}o(W0,"fileLoader");function w8(e,t){var n=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),t);if(n.filename=V8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Su(n,i.template)}return Su(n)}o(w8,"includeFile");function K0(e,t,n,i,r){var a=t.split(`
41
+ `+C8}o(U0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(jr.escapeXML,"toString",{value:U0}):jr.escapeXML.toString=U0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}jr.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Qb(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};jr.shallowCopyFromList=function(e,t,n){if(n=n||[],t=t||{},e!=null)for(var i=0;i<n.length;i++){var r=n[i];if(typeof t[r]<"u"){if(!Qb(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};jr.cache={_data:{},set:o(function(e,t){this._data[e]=t},"set"),get:o(function(e){return this._data[e]},"get"),remove:o(function(e){delete this._data[e]},"remove"),reset:o(function(){this._data={}},"reset")};jr.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};jr.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();jr.hasOwnOnlyObject=function(e){var t=jr.createNullProtoObjWherePossible();for(var n in e)Qb(e,n)&&(t[n]=e[n]);return t}});var $0=Ye((YZ,I8)=>{I8.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 z0=Ye(Pt=>{"use strict";var zb=require("fs"),Au=require("path"),On=j0(),B0=!1,O8=$0().version,N8="<",L8=">",F8="%",Q0="locals",R8="ejs",_8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",q0=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],D8=q0.concat("cache"),H0=/^\uFEFF/,qb=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=On.cache;Pt.fileLoader=zb.readFileSync;Pt.localsName=Q0;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Au.dirname,r=Au.extname,a=Au.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function G0(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),zb.existsSync(n)}))return n}o(G0,"resolvePaths");function V8(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=G0(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),zb.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=G0(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(V8,"getIncludePath");function Su(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=W0(i).toString().replace(H0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=W0(i).toString().replace(H0,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(Su,"handleCache");function M8(e,t,n){var i;if(n){try{i=Su(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=Su(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(M8,"tryHandleCache");function W0(e){return Pt.fileLoader(e)}o(W0,"fileLoader");function w8(e,t){var n=On.shallowCopy(On.createNullProtoObjWherePossible(),t);if(n.filename=V8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Su(n,i.template)}return Su(n)}o(w8,"includeFile");function K0(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 T=m+s+1;return(T==i?" >> ":" ")+T+"| "+g}).join(`
43
43
  `);throw e.path=u,e.message=(u||"ejs")+":"+i+`
44
44
  `+p+`
45
45
 
46
- `+e.message,e}o(K0,"rethrow");function X0(e){return e.replace(/;(\s*$)/,"$1")}o(X0,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(B0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),B0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||Nn.createNullProtoObjWherePossible(),r=n||Nn.createNullProtoObjWherePossible();return arguments.length==2&&Nn.shallowCopyFromList(r,i,q0),Su(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?Nn.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&&Nn.shallowCopy(i,a)),Nn.shallowCopyFromList(i,r,D8)),i.filename=t):r=Nn.createNullProtoObjWherePossible(),M8(i,r,n)};Pt.Template=Hn;Pt.clearCache=function(){Pt.cache.reset()};function Hn(e,t){var n=Nn.hasOwnOnlyObject(t),i=Nn.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||Nn.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Pt.openDelimiter||N8,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||L8,i.delimiter=n.delimiter||Pt.delimiter||F8,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||Q0,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}o(Hn,"Template");Hn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Hn.prototype={createRegex:o(function(){var e=_8,t=Nn.escapeRegExpChars(this.opts.delimiter),n=Nn.escapeRegExpChars(this.opts.openDelimiter),i=Nn.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 = "";
46
+ `+e.message,e}o(K0,"rethrow");function X0(e){return e.replace(/;(\s*$)/,"$1")}o(X0,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(B0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),B0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Hn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||On.createNullProtoObjWherePossible(),r=n||On.createNullProtoObjWherePossible();return arguments.length==2&&On.shallowCopyFromList(r,i,q0),Su(r,e)(i)};Pt.renderFile=function(){var e=Array.prototype.slice.call(arguments),t=e.shift(),n,i={filename:t},r,a;return typeof arguments[arguments.length-1]=="function"&&(n=e.pop()),e.length?(r=e.shift(),e.length?On.shallowCopy(i,e.pop()):(r.settings&&(r.settings.views&&(i.views=r.settings.views),r.settings["view cache"]&&(i.cache=!0),a=r.settings["view options"],a&&On.shallowCopy(i,a)),On.shallowCopyFromList(i,r,D8)),i.filename=t):r=On.createNullProtoObjWherePossible(),M8(i,r,n)};Pt.Template=Hn;Pt.clearCache=function(){Pt.cache.reset()};function Hn(e,t){var n=On.hasOwnOnlyObject(t),i=On.createNullProtoObjWherePossible();this.templateText=e,this.mode=null,this.truncate=!1,this.currentLine=1,this.source="",i.client=n.client||!1,i.escapeFunction=n.escape||n.escapeFunction||On.escapeXML,i.compileDebug=n.compileDebug!==!1,i.debug=!!n.debug,i.filename=n.filename,i.openDelimiter=n.openDelimiter||Pt.openDelimiter||N8,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||L8,i.delimiter=n.delimiter||Pt.delimiter||F8,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||Q0,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}o(Hn,"Template");Hn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Hn.prototype={createRegex:o(function(){var e=_8,t=On.escapeRegExpChars(this.opts.delimiter),n=On.escapeRegExpChars(this.opts.openDelimiter),i=On.escapeRegExpChars(this.opts.closeDelimiter);return e=e.replace(/%/g,t).replace(/</g,n).replace(/>/g,i),new RegExp(e)},"createRegex"),compile:o(function(){var e,t,n=this.opts,i="",r="",a=n.escapeFunction,s,l=n.filename?JSON.stringify(n.filename):"undefined";if(!this.source){if(this.generateSource(),i+=` var __output = "";
47
47
  function __append(s) { if (s !== undefined && s !== null) __output += s }
48
- `,n.outputFunctionName){if(!qE.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
- `}if(n.localsName&&!qE.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(!qE.test(g))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(u+=`,
48
+ `,n.outputFunctionName){if(!qb.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
+ `}if(n.localsName&&!qb.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(!qb.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+=` }
@@ -64,11 +64,11 @@ try {
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+`
67
- `);try{if(n.async)try{s=new Function("return (async function(){}).constructor;")()}catch(E){throw E instanceof SyntaxError?new Error("This environment does not support async/await"):E}else s=Function;t=new s(n.localsName+", escapeFn, include, rethrow",e)}catch(E){throw E instanceof SyntaxError&&(n.filename&&(E.message+=" in "+n.filename),E.message+=` while compiling ejs
67
+ `);try{if(n.async)try{s=new Function("return (async function(){}).constructor;")()}catch(b){throw b instanceof SyntaxError?new Error("This environment does not support async/await"):b}else s=Function;t=new s(n.localsName+", escapeFn, include, rethrow",e)}catch(b){throw b instanceof SyntaxError&&(n.filename&&(b.message+=" in "+n.filename),b.message+=` while compiling ejs
68
68
 
69
- `,E.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
- `,E.message+="https://github.com/RyanZim/EJS-Lint",n.async||(E.message+=`
71
- `,E.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),E}var m=n.client?t:o(function(O){var R=o(function(U,W){var j=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),O);return W&&(j=Nn.shallowCopy(j,W)),w8(U,n)(j)},"include");return t.apply(n.context,[O||Nn.createNullProtoObjWherePossible(),a,R,K0])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var T=n.filename,A=Au.basename(T,Au.extname(T));try{Object.defineProperty(m,"name",{value:A,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
69
+ `,b.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
+ `,b.message+="https://github.com/RyanZim/EJS-Lint",n.async||(b.message+=`
71
+ `,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(O){var R=o(function(U,W){var j=On.shallowCopy(On.createNullProtoObjWherePossible(),O);return W&&(j=On.shallowCopy(j,W)),w8(U,n)(j)},"include");return t.apply(n.context,[O||On.createNullProtoObjWherePossible(),a,R,K0])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var T=n.filename,A=Au.basename(T,Au.extname(T));try{Object.defineProperty(m,"name",{value:A,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
72
72
  `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,r=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var u;if(s.indexOf(r+i)===0&&s.indexOf(r+i+i)!==0&&(u=n[l+2],!(u==i+a||u=="-"+i+a||u=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:o(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:o(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
73
73
  `},"_addOutput"),scanLine:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=e.split(`
74
74
  `).length-1,e){case i+n:case i+n+"_":this.mode=Hn.modes.EVAL;break;case i+n+"=":this.mode=Hn.modes.ESCAPED;break;case i+n+"-":this.mode=Hn.modes.RAW;break;case i+n+"#":this.mode=Hn.modes.COMMENT;break;case i+n+n:this.mode=Hn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
@@ -79,15 +79,15 @@ try {
79
79
  `;break;case Hn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+X0(e)+`))
80
80
  `;break;case Hn.modes.RAW:this.source+=" ; __append("+X0(e)+`)
81
81
  `;break;case Hn.modes.COMMENT:break;case Hn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
82
- `)},"scanLine")};Pt.escapeXML=Nn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=O8;Pt.name=R8;typeof window<"u"&&(window.ejs=Pt)});var tp,DA=ze(()=>{tp="7.1.1"});function at(e){return e&&e.length===0}function Mi(e){return e==null?[]:Object.keys(e)}function Vn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function M1(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 ue(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function Ln(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Ln(i)):t.push(i)}return t}function Si(e){return at(e)?void 0:e[0]}function Dh(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(Vh(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 Br(e){return typeof e=="string"}function Pi(e){return e===void 0}function fo(e){return e instanceof Function}function Mn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function ps(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Hr(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 ya(e,t){return Hr(e,function(n){return!t(n)})}function hr(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 Oe(e,t){return Vh(e)?e.hasOwnProperty(t):!1}function Dt(e,t){return va(e,function(n){return n===t})!==void 0}function An(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function ds(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 w1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function un(e,t,n){for(var i=Array.isArray(e),r=i?e:Vn(e),a=i?[]:Mi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Ta(e){return ya(e,function(t){return t==null})}function np(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return un(e,function(i,r){var a=t(r);return Dt(n,a)?i:(n.push(a),i.concat(r))},[])}function lre(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 fi(e){return Array.isArray(e)}function uo(e){return e instanceof RegExp}function Vh(e){return e instanceof Object}function ui(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Ic(e,t){return ya(e,function(n){return Dt(t,n)})}function Mh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function k1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function fre(e,t){var n=An(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function ure(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 yr(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 s7(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];Oe(e,l)||(e[l]=r[l])}return e}function ip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s7.apply(null,[{}].concat(e))}function U1(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 VA(e,t){for(var n=ds(e),i=Mi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function wn(){}function MA(e){return e}function j1(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 rp(e){console&&console.error&&console.error("Error: "+e)}function wh(e){console&&console.warn&&console.warn("Warning: "+e)}function wA(){return typeof Map=="function"}function $1(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 kh(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function op(e){return e[e.length-1]}function Uh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var vt=ze(()=>{o(at,"isEmpty");o(Mi,"keys");o(Vn,"values");o(M1,"mapValues");o(ue,"map");o(Ln,"flatten");o(Si,"first");o(Dh,"last");o(ye,"forEach");o(Br,"isString");o(Pi,"isUndefined");o(fo,"isFunction");o(Mn,"drop");o(ps,"dropRight");o(Hr,"filter");o(ya,"reject");o(hr,"pick");o(Oe,"has");o(Dt,"contains");o(An,"cloneArr");o(ds,"cloneObj");o(va,"find");o(w1,"findAll");o(un,"reduce");o(Ta,"compact");o(np,"uniq");o(lre,"partial");o(fi,"isArray");o(uo,"isRegExp");o(Vh,"isObject");o(ui,"every");o(Ic,"difference");o(Mh,"some");o(k1,"indexOf");o(fre,"sortBy");o(ure,"zipObject");o(yr,"assign");o(s7,"assignNoOverwrite");o(ip,"defaults");o(U1,"groupBy");o(VA,"merge");o(wn,"NOOP");o(MA,"IDENTITY");o(j1,"packArray");o(rp,"PRINT_ERROR");o(wh,"PRINT_WARNING");o(wA,"isES2015MapSupported");o($1,"applyMixins");o(kh,"toFastProperties");o(op,"peek");o(Uh,"timer")});var $h=Ye((H1,jh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof jh=="object"&&jh.exports?jh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:H1,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(E){this.idx=E.idx,this.input=E.input,this.groupIdx=E.groupIdx},e.prototype.pattern=function(E){this.idx=0,this.input=E,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var R={type:"Flags",loc:{begin:this.idx,end:E.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(R,"global");break;case"i":s(R,"ignoreCase");break;case"m":s(R,"multiLine");break;case"u":s(R,"unicode");break;case"y":s(R,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:R,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var E=[],O=this.idx;for(E.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),E.push(this.alternative());return{type:"Disjunction",value:E,loc:this.loc(O)}},e.prototype.alternative=function(){for(var E=[],O=this.idx;this.isTerm();)E.push(this.term());return{type:"Alternative",value:E,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var E=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(E)};case"$":return{type:"EndAnchor",loc:this.loc(E)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(E)};case"B":return{type:"NonWordBoundary",loc:this.loc(E)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var R=this.disjunction();return this.consumeChar(")"),{type:O,value:R,loc:this.loc(E)}}u()},e.prototype.quantifier=function(E){var O,R=this.idx;switch(this.popChar()){case"*":O={atLeast:0,atMost:1/0};break;case"+":O={atLeast:1,atMost:1/0};break;case"?":O={atLeast:0,atMost:1};break;case"{":var U=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:U,atMost:U};break;case",":var W;this.isDigit()?(W=this.integerIncludingZero(),O={atLeast:U,atMost:W}):O={atLeast:U,atMost:1/0},this.consumeChar("}");break}if(E===!0&&O===void 0)return;l(O);break}if(!(E===!0&&O===void 0))return l(O),this.peekChar(0)==="?"?(this.consumeChar("?"),O.greedy=!1):O.greedy=!0,O.type="Quantifier",O.loc=this.loc(R),O},e.prototype.atom=function(){var E,O=this.idx;switch(this.peekChar()){case".":E=this.dotAll();break;case"\\":E=this.atomEscape();break;case"[":E=this.characterClass();break;case"(":E=this.group();break}return E===void 0&&this.isPatternCharacter()&&(E=this.patternCharacter()),l(E),E.loc=this.loc(O),this.isQuantifier()&&(E.quantifier=this.quantifier()),E},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
83
- `),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var E=this.positiveInteger();return{type:"GroupBackReference",value:E}},e.prototype.characterClassEscape=function(){var E,O=!1;switch(this.popChar()){case"d":E=g;break;case"D":E=g,O=!0;break;case"s":E=T;break;case"S":E=T,O=!0;break;case"w":E=m;break;case"W":E=m,O=!0;break}return l(E),{type:"Set",value:E,complement:O}},e.prototype.controlEscapeAtom=function(){var E;switch(this.popChar()){case"f":E=r("\f");break;case"n":E=r(`
84
- `);break;case"r":E=r("\r");break;case"t":E=r(" ");break;case"v":E=r("\v");break}return l(E),{type:"Character",value:E}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var E=this.popChar();if(/[a-zA-Z]/.test(E)===!1)throw Error("Invalid ");var O=E.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:O}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var E=this.popChar();return{type:"Character",value:r(E)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
85
- `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var E=this.popChar();return{type:"Character",value:r(E)}}},e.prototype.characterClass=function(){var E=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var R=this.classAtom(),U=R.type==="Character";if(U&&this.isRangeDash()){this.consumeChar("-");var W=this.classAtom(),j=W.type==="Character";if(j){if(W.value<R.value)throw Error("Range out of order in character class");E.push({from:R.value,to:W.value})}else a(R.value,E),E.push(r("-")),a(W.value,E)}else a(R.value,E)}return this.consumeChar("]"),{type:"Set",complement:O,value:E}},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 E=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),E=!1;break;default:this.groupIdx++;break}var O=this.disjunction();this.consumeChar(")");var R={type:"Group",capturing:E,value:O};return E&&(R.idx=this.groupIdx),R},e.prototype.positiveInteger=function(){var E=this.popChar();if(i.test(E)===!1)throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)E+=this.popChar();return parseInt(E,10)},e.prototype.integerIncludingZero=function(){var E=this.popChar();if(n.test(E)===!1)throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)E+=this.popChar();return parseInt(E,10)},e.prototype.patternCharacter=function(){var E=this.popChar();switch(E){case`
87
- `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(E)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(E){switch(E===void 0&&(E=0),this.peekChar(E)){case"]":case`
88
- `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var E=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(E)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
89
- `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(E){for(var O="",R=0;R<E;R++){var U=this.popChar();if(t.test(U)===!1)throw Error("Expecting a HexDecimal digits");O+=U}var W=parseInt(O,16);return{type:"Character",value:W}},e.prototype.peekChar=function(E){return E===void 0&&(E=0),this.input[this.idx+E]},e.prototype.popChar=function(){var E=this.peekChar(0);return this.consumeChar(),E},e.prototype.consumeChar=function(E){if(E!==void 0&&this.input[this.idx]!==E)throw Error("Expected: '"+E+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(E){return{begin:E,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(E){return E.charCodeAt(0)}o(r,"cc");function a(E,O){E.length!==void 0?E.forEach(function(R){O.push(R)}):O.push(E)}o(a,"insertToSet");function s(E,O){if(E[O]===!0)throw"duplicate flag "+O;E[O]=!0}o(s,"addFlag");function l(E){if(E===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}o(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var T=[r(" "),r("\f"),r(`
90
- `),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function A(){}return o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(E){for(var O in E){var R=E[O];E.hasOwnProperty(O)&&(R.type!==void 0?this.visit(R):Array.isArray(R)&&R.forEach(function(U){this.visit(U)},this))}},A.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},A.prototype.visitPattern=function(E){},A.prototype.visitFlags=function(E){},A.prototype.visitDisjunction=function(E){},A.prototype.visitAlternative=function(E){},A.prototype.visitStartAnchor=function(E){},A.prototype.visitEndAnchor=function(E){},A.prototype.visitWordBoundary=function(E){},A.prototype.visitNonWordBoundary=function(E){},A.prototype.visitLookahead=function(E){},A.prototype.visitNegativeLookahead=function(E){},A.prototype.visitCharacter=function(E){},A.prototype.visitSet=function(E){},A.prototype.visitGroup=function(E){},A.prototype.visitGroupBackReference=function(E){},A.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function Ul(e){var t=e.toString();if(Bh.hasOwnProperty(t))return Bh[t];var n=c7.pattern(t);return Bh[t]=n,n}function W1(){Bh={}}var G1,Bh,c7,Hh=ze(()=>{G1=te($h()),Bh={},c7=new G1.RegExpParser;o(Ul,"getRegExpAst");o(W1,"clearRegExpParserCache")});function Q1(e,t){t===void 0&&(t=!1);try{var n=Ul(e),i=kA(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===X1)t&&wh(""+ap+(" Unable to optimize: < "+e.toString()+` >
82
+ `)},"scanLine")};Pt.escapeXML=On.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=O8;Pt.name=R8;typeof window<"u"&&(window.ejs=Pt)});var tp,DA=ze(()=>{tp="7.1.1"});function at(e){return e&&e.length===0}function Mi(e){return e==null?[]:Object.keys(e)}function Vn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function M1(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 Nn(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(Nn(i)):t.push(i)}return t}function xi(e){return at(e)?void 0:e[0]}function Dh(e){var t=e&&e.length;return t?e[t-1]:void 0}function ve(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Vh(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 Br(e){return typeof e=="string"}function Ci(e){return e===void 0}function fo(e){return e instanceof Function}function Mn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function ps(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Hr(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 ya(e,t){return Hr(e,function(n){return!t(n)})}function vr(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 Oe(e,t){return Vh(e)?e.hasOwnProperty(t):!1}function Dt(e,t){return va(e,function(n){return n===t})!==void 0}function En(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function ds(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 w1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function un(e,t,n){for(var i=Array.isArray(e),r=i?e:Vn(e),a=i?[]:Mi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Ta(e){return ya(e,function(t){return t==null})}function np(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return un(e,function(i,r){var a=t(r);return Dt(n,a)?i:(n.push(a),i.concat(r))},[])}function lre(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 fi(e){return Array.isArray(e)}function uo(e){return e instanceof RegExp}function Vh(e){return e instanceof Object}function ui(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Ic(e,t){return ya(e,function(n){return Dt(t,n)})}function Mh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function k1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function fre(e,t){var n=En(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function ure(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 Tr(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 sX(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];Oe(e,l)||(e[l]=r[l])}return e}function ip(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return sX.apply(null,[{}].concat(e))}function U1(e,t){var n={};return ve(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function VA(e,t){for(var n=ds(e),i=Mi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function wn(){}function MA(e){return e}function j1(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 rp(e){console&&console.error&&console.error("Error: "+e)}function wh(e){console&&console.warn&&console.warn("Warning: "+e)}function wA(){return typeof Map=="function"}function $1(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 kh(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function op(e){return e[e.length-1]}function Uh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var vt=ze(()=>{o(at,"isEmpty");o(Mi,"keys");o(Vn,"values");o(M1,"mapValues");o(pe,"map");o(Nn,"flatten");o(xi,"first");o(Dh,"last");o(ve,"forEach");o(Br,"isString");o(Ci,"isUndefined");o(fo,"isFunction");o(Mn,"drop");o(ps,"dropRight");o(Hr,"filter");o(ya,"reject");o(vr,"pick");o(Oe,"has");o(Dt,"contains");o(En,"cloneArr");o(ds,"cloneObj");o(va,"find");o(w1,"findAll");o(un,"reduce");o(Ta,"compact");o(np,"uniq");o(lre,"partial");o(fi,"isArray");o(uo,"isRegExp");o(Vh,"isObject");o(ui,"every");o(Ic,"difference");o(Mh,"some");o(k1,"indexOf");o(fre,"sortBy");o(ure,"zipObject");o(Tr,"assign");o(sX,"assignNoOverwrite");o(ip,"defaults");o(U1,"groupBy");o(VA,"merge");o(wn,"NOOP");o(MA,"IDENTITY");o(j1,"packArray");o(rp,"PRINT_ERROR");o(wh,"PRINT_WARNING");o(wA,"isES2015MapSupported");o($1,"applyMixins");o(kh,"toFastProperties");o(op,"peek");o(Uh,"timer")});var $h=Ye((H1,jh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof jh=="object"&&jh.exports?jh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:H1,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var O=this.disjunction();this.consumeChar("/");for(var R={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(R,"global");break;case"i":s(R,"ignoreCase");break;case"m":s(R,"multiLine");break;case"u":s(R,"unicode");break;case"y":s(R,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:R,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],O=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(O)}},e.prototype.alternative=function(){for(var b=[],O=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(O)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var O;switch(this.popChar()){case"=":O="Lookahead";break;case"!":O="NegativeLookahead";break}l(O);var R=this.disjunction();return this.consumeChar(")"),{type:O,value:R,loc:this.loc(b)}}u()},e.prototype.quantifier=function(b){var O,R=this.idx;switch(this.popChar()){case"*":O={atLeast:0,atMost:1/0};break;case"+":O={atLeast:1,atMost:1/0};break;case"?":O={atLeast:0,atMost:1};break;case"{":var U=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:U,atMost:U};break;case",":var W;this.isDigit()?(W=this.integerIncludingZero(),O={atLeast:U,atMost:W}):O={atLeast:U,atMost:1/0},this.consumeChar("}");break}if(b===!0&&O===void 0)return;l(O);break}if(!(b===!0&&O===void 0))return l(O),this.peekChar(0)==="?"?(this.consumeChar("?"),O.greedy=!1):O.greedy=!0,O.type="Quantifier",O.loc=this.loc(R),O},e.prototype.atom=function(){var b,O=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(O),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
83
+ `),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var b=this.positiveInteger();return{type:"GroupBackReference",value:b}},e.prototype.characterClassEscape=function(){var b,O=!1;switch(this.popChar()){case"d":b=g;break;case"D":b=g,O=!0;break;case"s":b=T;break;case"S":b=T,O=!0;break;case"w":b=m;break;case"W":b=m,O=!0;break}return l(b),{type:"Set",value:b,complement:O}},e.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=r("\f");break;case"n":b=r(`
84
+ `);break;case"r":b=r("\r");break;case"t":b=r(" ");break;case"v":b=r("\v");break}return l(b),{type:"Character",value:b}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(/[a-zA-Z]/.test(b)===!1)throw Error("Invalid ");var O=b.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:O}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var b=this.popChar();return{type:"Character",value:r(b)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
85
+ `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],O=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),O=!0);this.isClassAtom();){var R=this.classAtom(),U=R.type==="Character";if(U&&this.isRangeDash()){this.consumeChar("-");var W=this.classAtom(),j=W.type==="Character";if(j){if(W.value<R.value)throw Error("Range out of order in character class");b.push({from:R.value,to:W.value})}else a(R.value,b),b.push(r("-")),a(W.value,b)}else a(R.value,b)}return this.consumeChar("]"),{type:"Set",complement:O,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 O=this.disjunction();this.consumeChar(")");var R={type:"Group",capturing:b,value:O};return b&&(R.idx=this.groupIdx),R},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
+ `: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
+ `: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 O="",R=0;R<b;R++){var U=this.popChar();if(t.test(U)===!1)throw Error("Expecting a HexDecimal digits");O+=U}var W=parseInt(O,16);return{type:"Character",value:W}},e.prototype.peekChar=function(b){return b===void 0&&(b=0),this.input[this.idx+b]},e.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},e.prototype.consumeChar=function(b){if(b!==void 0&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(b){return{begin:b,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(b){return b.charCodeAt(0)}o(r,"cc");function a(b,O){b.length!==void 0?b.forEach(function(R){O.push(R)}):O.push(b)}o(a,"insertToSet");function s(b,O){if(b[O]===!0)throw"duplicate flag "+O;b[O]=!0}o(s,"addFlag");function l(b){if(b===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}o(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var T=[r(" "),r("\f"),r(`
90
+ `),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function A(){}return o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(b){for(var O in b){var R=b[O];b.hasOwnProperty(O)&&(R.type!==void 0?this.visit(R):Array.isArray(R)&&R.forEach(function(U){this.visit(U)},this))}},A.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)},A.prototype.visitPattern=function(b){},A.prototype.visitFlags=function(b){},A.prototype.visitDisjunction=function(b){},A.prototype.visitAlternative=function(b){},A.prototype.visitStartAnchor=function(b){},A.prototype.visitEndAnchor=function(b){},A.prototype.visitWordBoundary=function(b){},A.prototype.visitNonWordBoundary=function(b){},A.prototype.visitLookahead=function(b){},A.prototype.visitNegativeLookahead=function(b){},A.prototype.visitCharacter=function(b){},A.prototype.visitSet=function(b){},A.prototype.visitGroup=function(b){},A.prototype.visitGroupBackReference=function(b){},A.prototype.visitQuantifier=function(b){},{RegExpParser:e,BaseRegExpVisitor:A,VERSION:"0.5.0"}})});function Ul(e){var t=e.toString();if(Bh.hasOwnProperty(t))return Bh[t];var n=cX.pattern(t);return Bh[t]=n,n}function W1(){Bh={}}var G1,Bh,cX,Hh=ze(()=>{G1=te($h()),Bh={},cX=new G1.RegExpParser;o(Ul,"getRegExpAst");o(W1,"clearRegExpParserCache")});function Q1(e,t){t===void 0&&(t=!1);try{var n=Ul(e),i=kA(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===X1)t&&wh(""+ap+(" 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,49 +95,49 @@ try {
95
95
  See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),rp(ap+`
96
96
  `+(" Failed parsing: < "+e.toString()+` >
97
97
  `)+(" Using the regexp-to-ast library version: "+Wh.VERSION+`
98
- `)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function kA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)kA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Gh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(X1);ye(s.value,function(p){if(typeof p=="number")Gh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Gh(m,t,n);else{for(var m=g.from;m<=g.to&&m<jl;m++)Gh(m,t,n);if(g.to>=jl)for(var T=g.from>=jl?g.from:jl,A=g.to,E=jo(T),O=jo(A),R=E;R<=O;R++)t[R]=R}}});break;case"Group":kA(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&UA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Gh(e,t,n){var i=jo(e);t[i]=i,n===!0&&f7(e,t)}function f7(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=jo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=jo(a.charCodeAt(0));t[r]=r}}}function K1(e,t){return va(e.value,function(n){if(typeof n=="number")return Dt(t,n);var i=n;return va(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function UA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?fi(e.value)?ui(e.value,UA):UA(e.value):!1}function Kh(e,t){if(t instanceof RegExp){var n=Ul(t),i=new u7(e);return i.visit(n),i.found}else return va(t,function(r){return Dt(e,r.charCodeAt(0))})!==void 0}var Wh,l7,X1,ap,u7,q1=ze(()=>{Wh=te($h());vt();Hh();jA();l7=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)}}(),X1="Complement Sets are not supported for first char optimization",ap=`Unable to use "first char" lexer optimizations:
99
- `;o(Q1,"getOptimizedStartCodesIndices");o(kA,"firstCharOptimizedIndices");o(Gh,"addOptimizedIdxToResult");o(f7,"handleIgnoreCase");o(K1,"findCode");o(UA,"isWholeOptional");u7=function(e){l7(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){Dt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?K1(n,this.targetCharCodes)===void 0&&(this.found=!0):K1(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Wh.BaseRegExpVisitor);o(Kh,"canMatchCharCode")});function Z1(e,t){t=ip(t,{useSticky:HA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
100
- `],tracer:o(function(W,j){return j()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){N7()});var i;n("Reject Lexer.NA",function(){i=ya(e,function(W){return W[$o]===wi.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=ue(i,function(W){var j=W[$o];if(uo(j)){var ae=j.source;return ae.length===1&&ae!=="^"&&ae!=="$"&&ae!=="."&&!j.ignoreCase?ae:ae.length===2&&ae[0]==="\\"&&!Dt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ae[1])?ae[1]:t.useSticky?Y1(j):z1(j)}else{if(fo(j))return r=!0,{exec:j};if(Oe(j,"exec"))return r=!0,j;if(typeof j=="string"){if(j.length===1)return j;var Z=j.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(Z);return t.useSticky?Y1(re):z1(re)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=ue(i,function(W){return W.tokenTypeIdx}),l=ue(i,function(W){var j=W.GROUP;if(j!==wi.SKIPPED){if(Br(j))return j;if(Pi(j))return!1;throw Error("non exhaustive match")}}),u=ue(i,function(W){var j=W.LONGER_ALT;if(j){var ae=k1(i,j);return ae}}),p=ue(i,function(W){return W.PUSH_MODE}),g=ue(i,function(W){return Oe(W,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var W=s_(t.lineTerminatorCharacters);m=ue(i,function(j){return!1}),t.positionTracking!=="onlyOffset"&&(m=ue(i,function(j){if(Oe(j,"LINE_BREAKS"))return j.LINE_BREAKS;if(a_(j,W)===!1)return Kh(W,j.PATTERN)}))});var T,A,E,O;n("Misc Mapping #2",function(){T=ue(i,r_),A=ue(a,I7),E=un(i,function(W,j){var ae=j.GROUP;return Br(ae)&&ae!==wi.SKIPPED&&(W[ae]=[]),W},{}),O=ue(a,function(W,j){return{pattern:a[j],longerAlt:u[j],canLineTerminator:m[j],isCustom:T[j],short:A[j],group:l[j],push:p[j],pop:g[j],tokenTypeIdx:s[j],tokenType:i[j]}})});var R=!0,U=[];return t.safeMode||n("First Char Optimization",function(){U=un(i,function(W,j,ae){if(typeof j.PATTERN=="string"){var Z=j.PATTERN.charCodeAt(0),re=jo(Z);$A(W,re,O[ae])}else if(fi(j.START_CHARS_HINT)){var xe;ye(j.START_CHARS_HINT,function(ut){var yt=typeof ut=="string"?ut.charCodeAt(0):ut,$e=jo(yt);xe!==$e&&(xe=$e,$A(W,$e,O[ae]))})}else if(uo(j.PATTERN))if(j.PATTERN.unicode)R=!1,t.ensureOptimizations&&rp(""+ap+(" Unable to analyze < "+j.PATTERN.toString()+` > pattern.
98
+ `)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function kA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)kA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Gh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(X1);ve(s.value,function(p){if(typeof p=="number")Gh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Gh(m,t,n);else{for(var m=g.from;m<=g.to&&m<jl;m++)Gh(m,t,n);if(g.to>=jl)for(var T=g.from>=jl?g.from:jl,A=g.to,b=jo(T),O=jo(A),R=b;R<=O;R++)t[R]=R}}});break;case"Group":kA(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&UA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Gh(e,t,n){var i=jo(e);t[i]=i,n===!0&&fX(e,t)}function fX(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=jo(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=jo(a.charCodeAt(0));t[r]=r}}}function K1(e,t){return va(e.value,function(n){if(typeof n=="number")return Dt(t,n);var i=n;return va(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function UA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?fi(e.value)?ui(e.value,UA):UA(e.value):!1}function Kh(e,t){if(t instanceof RegExp){var n=Ul(t),i=new uX(e);return i.visit(n),i.found}else return va(t,function(r){return Dt(e,r.charCodeAt(0))})!==void 0}var Wh,lX,X1,ap,uX,q1=ze(()=>{Wh=te($h());vt();Hh();jA();lX=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)}}(),X1="Complement Sets are not supported for first char optimization",ap=`Unable to use "first char" lexer optimizations:
99
+ `;o(Q1,"getOptimizedStartCodesIndices");o(kA,"firstCharOptimizedIndices");o(Gh,"addOptimizedIdxToResult");o(fX,"handleIgnoreCase");o(K1,"findCode");o(UA,"isWholeOptional");uX=function(e){lX(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){Dt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?K1(n,this.targetCharCodes)===void 0&&(this.found=!0):K1(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Wh.BaseRegExpVisitor);o(Kh,"canMatchCharCode")});function Z1(e,t){t=ip(t,{useSticky:HA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
100
+ `],tracer:o(function(W,j){return j()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){NX()});var i;n("Reject Lexer.NA",function(){i=ya(e,function(W){return W[$o]===wi.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(W){var j=W[$o];if(uo(j)){var ae=j.source;return ae.length===1&&ae!=="^"&&ae!=="$"&&ae!=="."&&!j.ignoreCase?ae:ae.length===2&&ae[0]==="\\"&&!Dt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ae[1])?ae[1]:t.useSticky?Y1(j):z1(j)}else{if(fo(j))return r=!0,{exec:j};if(Oe(j,"exec"))return r=!0,j;if(typeof j=="string"){if(j.length===1)return j;var Z=j.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(Z);return t.useSticky?Y1(re):z1(re)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=pe(i,function(W){return W.tokenTypeIdx}),l=pe(i,function(W){var j=W.GROUP;if(j!==wi.SKIPPED){if(Br(j))return j;if(Ci(j))return!1;throw Error("non exhaustive match")}}),u=pe(i,function(W){var j=W.LONGER_ALT;if(j){var ae=k1(i,j);return ae}}),p=pe(i,function(W){return W.PUSH_MODE}),g=pe(i,function(W){return Oe(W,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var W=s_(t.lineTerminatorCharacters);m=pe(i,function(j){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function(j){if(Oe(j,"LINE_BREAKS"))return j.LINE_BREAKS;if(a_(j,W)===!1)return Kh(W,j.PATTERN)}))});var T,A,b,O;n("Misc Mapping #2",function(){T=pe(i,r_),A=pe(a,IX),b=un(i,function(W,j){var ae=j.GROUP;return Br(ae)&&ae!==wi.SKIPPED&&(W[ae]=[]),W},{}),O=pe(a,function(W,j){return{pattern:a[j],longerAlt:u[j],canLineTerminator:m[j],isCustom:T[j],short:A[j],group:l[j],push:p[j],pop:g[j],tokenTypeIdx:s[j],tokenType:i[j]}})});var R=!0,U=[];return t.safeMode||n("First Char Optimization",function(){U=un(i,function(W,j,ae){if(typeof j.PATTERN=="string"){var Z=j.PATTERN.charCodeAt(0),re=jo(Z);$A(W,re,O[ae])}else if(fi(j.START_CHARS_HINT)){var xe;ve(j.START_CHARS_HINT,function(ut){var yt=typeof ut=="string"?ut.charCodeAt(0):ut,$e=jo(yt);xe!==$e&&(xe=$e,$A(W,$e,O[ae]))})}else if(uo(j.PATTERN))if(j.PATTERN.unicode)R=!1,t.ensureOptimizations&&rp(""+ap+(" Unable to analyze < "+j.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 _=Q1(j.PATTERN,t.ensureOptimizations);at(_)&&(R=!1),ye(_,function(ut){$A(W,ut,O[ae])})}else t.ensureOptimizations&&rp(""+ap+(" TokenType: <"+j.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
103
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var _=Q1(j.PATTERN,t.ensureOptimizations);at(_)&&(R=!1),ve(_,function(ut){$A(W,ut,O[ae])})}else t.ensureOptimizations&&rp(""+ap+(" TokenType: <"+j.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`),R=!1;return W},[])}),n("ArrayPacking",function(){U=j1(U)}),{emptyGroups:E,patternIdxToConfig:O,charCodeToPatternIdxToConfig:U,hasCustom:r,canBeOptimized:R}}function e_(e,t){var n=[],i=d7(e);n=n.concat(i.errors);var r=g7(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(p7(a)),n=n.concat(A7(a)),n=n.concat(S7(a,t)),n=n.concat(P7(a)),n}function p7(e){var t=[],n=Hr(e,function(i){return uo(i[$o])});return t=t.concat(h7(n)),t=t.concat(T7(n)),t=t.concat(E7(n)),t=t.concat(b7(n)),t=t.concat(y7(n)),t}function d7(e){var t=Hr(e,function(r){return!Oe(r,$o)}),n=ue(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:pn.MISSING_PATTERN,tokenTypes:[r]}}),i=Ic(e,t);return{errors:n,valid:i}}function g7(e){var t=Hr(e,function(r){var a=r[$o];return!uo(a)&&!fo(a)&&!Oe(a,"exec")&&!Br(a)}),n=ue(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:pn.INVALID_PATTERN,tokenTypes:[r]}}),i=Ic(e,t);return{errors:n,valid:i}}function h7(e){var t=function(r){J1(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}(BA.BaseRegExpVisitor),n=Hr(e,function(r){var a=r[$o];try{var s=Ul(a),l=new t;return l.visit(s),l.found}catch{return m7.test(a.source)}}),i=ue(n,function(r){return{message:`Unexpected RegExp Anchor Error:
105
+ For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),R=!1;return W},[])}),n("ArrayPacking",function(){U=j1(U)}),{emptyGroups:b,patternIdxToConfig:O,charCodeToPatternIdxToConfig:U,hasCustom:r,canBeOptimized:R}}function e_(e,t){var n=[],i=dX(e);n=n.concat(i.errors);var r=gX(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(pX(a)),n=n.concat(AX(a)),n=n.concat(SX(a,t)),n=n.concat(PX(a)),n}function pX(e){var t=[],n=Hr(e,function(i){return uo(i[$o])});return t=t.concat(hX(n)),t=t.concat(TX(n)),t=t.concat(bX(n)),t=t.concat(EX(n)),t=t.concat(yX(n)),t}function dX(e){var t=Hr(e,function(r){return!Oe(r,$o)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:pn.MISSING_PATTERN,tokenTypes:[r]}}),i=Ic(e,t);return{errors:n,valid:i}}function gX(e){var t=Hr(e,function(r){var a=r[$o];return!uo(a)&&!fo(a)&&!Oe(a,"exec")&&!Br(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:pn.INVALID_PATTERN,tokenTypes:[r]}}),i=Ic(e,t);return{errors:n,valid:i}}function hX(e){var t=function(r){J1(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}(BA.BaseRegExpVisitor),n=Hr(e,function(r){var a=r[$o];try{var s=Ul(a),l=new t;return l.visit(s),l.found}catch{return mX.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:pn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function y7(e){var t=Hr(e,function(i){var r=i[$o];return r.test("")}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:pn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function T7(e){var t=function(r){J1(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}(BA.BaseRegExpVisitor),n=Hr(e,function(r){var a=r[$o];try{var s=Ul(a),l=new t;return l.visit(s),l.found}catch{return v7.test(a.source)}}),i=ue(n,function(r){return{message:`Unexpected RegExp Anchor Error:
107
+ See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:pn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function yX(e){var t=Hr(e,function(i){var r=i[$o];return r.test("")}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:pn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function TX(e){var t=function(r){J1(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}(BA.BaseRegExpVisitor),n=Hr(e,function(r){var a=r[$o];try{var s=Ul(a),l=new t;return l.visit(s),l.found}catch{return vX.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:pn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function E7(e){var t=Hr(e,function(i){var r=i[$o];return r instanceof RegExp&&(r.multiline||r.global)}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:pn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function b7(e){var t=[],n=ue(e,function(a){return un(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Dt(t,l)&&l.PATTERN!==wi.NA&&(t.push(l),s.push(l)),s},[])});n=Ta(n);var i=Hr(n,function(a){return a.length>1}),r=ue(i,function(a){var s=ue(a,function(u){return u.name}),l=Si(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:pn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function A7(e){var t=Hr(e,function(i){if(!Oe(i,"GROUP"))return!1;var r=i.GROUP;return r!==wi.SKIPPED&&r!==wi.NA&&!Br(r)}),n=ue(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:pn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function S7(e,t){var n=Hr(e,function(r){return r.PUSH_MODE!==void 0&&!Dt(t,r.PUSH_MODE)}),i=ue(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:pn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function P7(e){var t=[],n=un(e,function(i,r,a){var s=r.PATTERN;return s===wi.NA||(Br(s)?i.push({str:s,idx:a,tokenType:r}):uo(s)&&C7(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&&x7(s,i.PATTERN)){var p="Token: ->"+u.name+`<- can never be matched.
109
+ See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:pn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function bX(e){var t=Hr(e,function(i){var r=i[$o];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:pn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function EX(e){var t=[],n=pe(e,function(a){return un(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Dt(t,l)&&l.PATTERN!==wi.NA&&(t.push(l),s.push(l)),s},[])});n=Ta(n);var i=Hr(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:pn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function AX(e){var t=Hr(e,function(i){if(!Oe(i,"GROUP"))return!1;var r=i.GROUP;return r!==wi.SKIPPED&&r!==wi.NA&&!Br(r)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:pn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function SX(e,t){var n=Hr(e,function(r){return r.PUSH_MODE!==void 0&&!Dt(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:pn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function PX(e){var t=[],n=un(e,function(i,r,a){var s=r.PATTERN;return s===wi.NA||(Br(s)?i.push({str:s,idx:a,tokenType:r}):uo(s)&&CX(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return ve(e,function(i,r){ve(n,function(a){var s=a.str,l=a.idx,u=a.tokenType;if(r<l&&xX(s,i.PATTERN)){var p="Token: ->"+u.name+`<- can never be matched.
110
110
  `+("Because it appears AFTER the Token Type ->"+i.name+"<-")+`in the lexer's definition.
111
- See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:pn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function x7(e,t){if(uo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(fo(t))return t(e,0,[],{});if(Oe(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function C7(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return va(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function z1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function Y1(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function t_(e,t,n){var i=[];return Oe(e,gs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+gs+`> property in its definition
111
+ See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:pn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function xX(e,t){if(uo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(fo(t))return t(e,0,[],{});if(Oe(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function CX(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return va(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function z1(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function Y1(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function t_(e,t,n){var i=[];return Oe(e,gs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+gs+`> property in its definition
112
112
  `,type:pn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Oe(e,Xh)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Xh+`> property in its definition
113
113
  `,type:pn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Oe(e,Xh)&&Oe(e,gs)&&!Oe(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+gs+": <"+e.defaultMode+`>which does not exist
114
- `,type:pn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Oe(e,Xh)&&ye(e.modes,function(r,a){ye(r,function(s,l){Pi(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+a+"> at index: <"+l+`>
115
- `),type:pn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function n_(e,t,n){var i=[],r=!1,a=Ta(Ln(M1(e.modes,function(u){return u}))),s=ya(a,function(u){return u[$o]===wi.NA}),l=s_(n);return t&&ye(s,function(u){var p=a_(u,l);if(p!==!1){var g=O7(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Oe(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Kh(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
114
+ `,type:pn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Oe(e,Xh)&&ve(e.modes,function(r,a){ve(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:pn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function n_(e,t,n){var i=[],r=!1,a=Ta(Nn(M1(e.modes,function(u){return u}))),s=ya(a,function(u){return u[$o]===wi.NA}),l=s_(n);return t&&ve(s,function(u){var p=a_(u,l);if(p!==!1){var g=OX(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Oe(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Kh(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
116
116
  This Lexer has been defined to track line and column information,
117
117
  But none of the Token Types can be identified as matching a line terminator.
118
118
  See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
119
- for details.`,type:pn.NO_LINE_BREAKS_FLAGS}),i}function i_(e){var t={},n=Mi(e);return ye(n,function(i){var r=e[i];if(fi(r))t[i]=[];else throw Error("non exhaustive match")}),t}function r_(e){var t=e.PATTERN;if(uo(t))return!1;if(fo(t))return!0;if(Oe(t,"exec"))return!0;if(Br(t))return!1;throw Error("non exhaustive match")}function I7(e){return Br(e)&&e.length===1?e.charCodeAt(0):!1}function a_(e,t){if(Oe(e,"LINE_BREAKS"))return!1;if(uo(e.PATTERN)){try{Kh(t,e.PATTERN)}catch(n){return{issue:pn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Br(e.PATTERN))return!1;if(r_(e))return{issue:pn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function O7(e,t){if(t.issue===pn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
119
+ for details.`,type:pn.NO_LINE_BREAKS_FLAGS}),i}function i_(e){var t={},n=Mi(e);return ve(n,function(i){var r=e[i];if(fi(r))t[i]=[];else throw Error("non exhaustive match")}),t}function r_(e){var t=e.PATTERN;if(uo(t))return!1;if(fo(t))return!0;if(Oe(t,"exec"))return!0;if(Br(t))return!1;throw Error("non exhaustive match")}function IX(e){return Br(e)&&e.length===1?e.charCodeAt(0):!1}function a_(e,t){if(Oe(e,"LINE_BREAKS"))return!1;if(uo(e.PATTERN)){try{Kh(t,e.PATTERN)}catch(n){return{issue:pn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Br(e.PATTERN))return!1;if(r_(e))return{issue:pn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function OX(e,t){if(t.issue===pn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
120
120
  `+(" The problem is in the <"+e.name+`> Token Type
121
121
  `)+(" Root cause: "+t.errMsg+`.
122
122
  `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===pn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
123
123
  `+(" The problem is in the <"+e.name+`> Token Type
124
- `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function s_(e){var t=ue(e,function(n){return Br(n)&&n.length>0?n.charCodeAt(0):n});return t}function $A(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function jo(e){return e<jl?e:Qh[e]}function N7(){if(at(Qh)){Qh=new Array(65536);for(var e=0;e<65536;e++)Qh[e]=e>255?255+~~(e/255):e}}var BA,J1,$o,gs,Xh,HA,m7,v7,o_,jl,Qh,jA=ze(()=>{BA=te($h());sp();vt();q1();Hh();J1=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="PATTERN",gs="defaultMode",Xh="modes",HA=typeof new RegExp("(?:)").sticky=="boolean";o(Z1,"analyzeTokenTypes");o(e_,"validatePatterns");o(p7,"validateRegExpPattern");o(d7,"findMissingPatterns");o(g7,"findInvalidPatterns");m7=/[^\\][\$]/;o(h7,"findEndOfInputAnchor");o(y7,"findEmptyMatchRegExps");v7=/[^\\[][\^]|^\^/;o(T7,"findStartOfInputAnchor");o(E7,"findUnsupportedFlags");o(b7,"findDuplicatePatterns");o(A7,"findInvalidGroupType");o(S7,"findModesThatDoNotExist");o(P7,"findUnreachablePatterns");o(x7,"testTokenType");o(C7,"noMetaChar");o(z1,"addStartOfInput");o(Y1,"addStickyFlag");o(t_,"performRuntimeChecks");o(n_,"performWarningRuntimeChecks");o(i_,"cloneEmptyGroups");o(r_,"isCustomPattern");o(I7,"isShortPattern");o_={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(a_,"checkLineBreaksIssues");o(O7,"buildLineBreakIssueMessage");o(s_,"getCharCodes");o($A,"addToMapOfArrays");jl=256;o(jo,"charCodeToOptimizedIndex");Qh=[];o(N7,"initCharCodeToOptimizedIndexMap")});function Oc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function $l(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Ea(e){var t=L7(e);F7(t),_7(t),R7(t),ye(t,function(n){n.isParent=n.categoryMatches.length>0})}function L7(e){for(var t=An(e),n=e,i=!0;i;){n=Ta(Ln(ue(n,function(a){return a.CATEGORIES})));var r=Ic(n,t);t=t.concat(r),at(r)?i=!1:n=r}return t}function F7(e){ye(e,function(t){GA(t)||(f_[c_]=t,t.tokenTypeIdx=c_++),l_(t)&&!fi(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),l_(t)||(t.CATEGORIES=[]),D7(t)||(t.categoryMatches=[]),V7(t)||(t.categoryMatchesMap={})})}function R7(e){ye(e,function(t){t.categoryMatches=[],ye(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(f_[i].tokenTypeIdx)})})}function _7(e){ye(e,function(t){u_([],t)})}function u_(e,t){ye(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ye(t.CATEGORIES,function(n){var i=e.concat(t);Dt(i,n)||u_(i,n)})}function GA(e){return Oe(e,"tokenTypeIdx")}function l_(e){return Oe(e,"CATEGORIES")}function D7(e){return Oe(e,"categoryMatches")}function V7(e){return Oe(e,"categoryMatchesMap")}function p_(e){return Oe(e,"tokenTypeIdx")}var c_,f_,Bl=ze(()=>{vt();o(Oc,"tokenStructuredMatcher");o($l,"tokenStructuredMatcherNoCategories");c_=1,f_={};o(Ea,"augmentTokenTypes");o(L7,"expandCategories");o(F7,"assignTokenDefaultProps");o(R7,"assignCategoriesTokensProp");o(_7,"assignCategoriesMapProp");o(u_,"singleAssignCategoriesToksMap");o(GA,"hasShortKeyProperty");o(l_,"hasCategoriesProperty");o(D7,"hasExtendingTokensTypesProperty");o(V7,"hasExtendingTokensTypesMapProperty");o(p_,"isTokenType")});var qh,WA=ze(()=>{qh={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var pn,cp,wi,sp=ze(()=>{jA();vt();Bl();WA();Hh();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(pn||(pn={}));cp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
124
+ `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function s_(e){var t=pe(e,function(n){return Br(n)&&n.length>0?n.charCodeAt(0):n});return t}function $A(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function jo(e){return e<jl?e:Qh[e]}function NX(){if(at(Qh)){Qh=new Array(65536);for(var e=0;e<65536;e++)Qh[e]=e>255?255+~~(e/255):e}}var BA,J1,$o,gs,Xh,HA,mX,vX,o_,jl,Qh,jA=ze(()=>{BA=te($h());sp();vt();q1();Hh();J1=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="PATTERN",gs="defaultMode",Xh="modes",HA=typeof new RegExp("(?:)").sticky=="boolean";o(Z1,"analyzeTokenTypes");o(e_,"validatePatterns");o(pX,"validateRegExpPattern");o(dX,"findMissingPatterns");o(gX,"findInvalidPatterns");mX=/[^\\][\$]/;o(hX,"findEndOfInputAnchor");o(yX,"findEmptyMatchRegExps");vX=/[^\\[][\^]|^\^/;o(TX,"findStartOfInputAnchor");o(bX,"findUnsupportedFlags");o(EX,"findDuplicatePatterns");o(AX,"findInvalidGroupType");o(SX,"findModesThatDoNotExist");o(PX,"findUnreachablePatterns");o(xX,"testTokenType");o(CX,"noMetaChar");o(z1,"addStartOfInput");o(Y1,"addStickyFlag");o(t_,"performRuntimeChecks");o(n_,"performWarningRuntimeChecks");o(i_,"cloneEmptyGroups");o(r_,"isCustomPattern");o(IX,"isShortPattern");o_={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(a_,"checkLineBreaksIssues");o(OX,"buildLineBreakIssueMessage");o(s_,"getCharCodes");o($A,"addToMapOfArrays");jl=256;o(jo,"charCodeToOptimizedIndex");Qh=[];o(NX,"initCharCodeToOptimizedIndexMap")});function Oc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function $l(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function ba(e){var t=LX(e);FX(t),_X(t),RX(t),ve(t,function(n){n.isParent=n.categoryMatches.length>0})}function LX(e){for(var t=En(e),n=e,i=!0;i;){n=Ta(Nn(pe(n,function(a){return a.CATEGORIES})));var r=Ic(n,t);t=t.concat(r),at(r)?i=!1:n=r}return t}function FX(e){ve(e,function(t){GA(t)||(f_[c_]=t,t.tokenTypeIdx=c_++),l_(t)&&!fi(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),l_(t)||(t.CATEGORIES=[]),DX(t)||(t.categoryMatches=[]),VX(t)||(t.categoryMatchesMap={})})}function RX(e){ve(e,function(t){t.categoryMatches=[],ve(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(f_[i].tokenTypeIdx)})})}function _X(e){ve(e,function(t){u_([],t)})}function u_(e,t){ve(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ve(t.CATEGORIES,function(n){var i=e.concat(t);Dt(i,n)||u_(i,n)})}function GA(e){return Oe(e,"tokenTypeIdx")}function l_(e){return Oe(e,"CATEGORIES")}function DX(e){return Oe(e,"categoryMatches")}function VX(e){return Oe(e,"categoryMatchesMap")}function p_(e){return Oe(e,"tokenTypeIdx")}var c_,f_,Bl=ze(()=>{vt();o(Oc,"tokenStructuredMatcher");o($l,"tokenStructuredMatcherNoCategories");c_=1,f_={};o(ba,"augmentTokenTypes");o(LX,"expandCategories");o(FX,"assignTokenDefaultProps");o(RX,"assignCategoriesTokensProp");o(_X,"assignCategoriesMapProp");o(u_,"singleAssignCategoriesToksMap");o(GA,"hasShortKeyProperty");o(l_,"hasCategoriesProperty");o(DX,"hasExtendingTokensTypesProperty");o(VX,"hasExtendingTokensTypesMapProperty");o(p_,"isTokenType")});var qh,WA=ze(()=>{qh={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var pn,cp,wi,sp=ze(()=>{jA();vt();Bl();WA();Hh();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(pn||(pn={}));cp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
125
125
  `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:qh,traceInitPerf:!1,skipValidations:!1};Object.freeze(cp);wi=function(){function e(t,n){var i=this;if(n===void 0&&(n=cp),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
126
126
  a boolean 2nd argument is no longer supported`);this.config=VA(cp,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===cp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=o_;else if(i.config.lineTerminatorCharacters===cp.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),fi(t)?(a={modes:{}},a.modes[gs]=An(t),a[gs]=gs):(s=!1,a=ds(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(t_(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(n_(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ye(a.modes,function(g,m){a.modes[m]=ya(g,function(T){return Pi(T)})});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(e_(g,l))}),at(i.lexerDefinitionErrors)){Ea(g);var T;i.TRACE_INIT("analyzeTokenTypes",function(){T=Z1(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=T.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=T.charCodeToPatternIdxToConfig,i.emptyGroups=VA(i.emptyGroups,T.emptyGroups),i.hasCustom=T.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=T.canBeOptimized}})}),i.defaultMode=a.defaultMode,!at(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=ue(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
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),fi(t)?(a={modes:{}},a.modes[gs]=En(t),a[gs]=gs):(s=!1,a=ds(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(t_(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(n_(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ve(a.modes,function(g,m){a.modes[m]=ya(g,function(T){return Ci(T)})});var l=Mi(a.modes);if(ve(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(e_(g,l))}),at(i.lexerDefinitionErrors)){ba(g);var T;i.TRACE_INIT("analyzeTokenTypes",function(){T=Z1(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=T.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=T.charCodeToPatternIdxToConfig,i.emptyGroups=VA(i.emptyGroups,T.emptyGroups),i.hasCustom=T.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=T.canBeOptimized}})}),i.defaultMode=a.defaultMode,!at(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){wh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(HA?(i.chopInput=MA,i.match=i.matchWithTest):(i.updateLastIndex=wn,i.match=i.matchWithExec),s&&(i.handleModes=wn),i.trackStartLines===!1&&(i.computeNewColumn=MA),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=wn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=un(i.canModeBeOptimized,function(m,T,A){return T===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!at(g))throw Error("Lexer Modes: < "+g.join(", ")+` > cannot be optimized.
129
+ `+p)}ve(i.lexerDefinitionWarning,function(g){wh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(HA?(i.chopInput=MA,i.match=i.matchWithTest):(i.updateLastIndex=wn,i.match=i.matchWithExec),s&&(i.handleModes=wn),i.trackStartLines===!1&&(i.computeNewColumn=MA),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=wn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=un(i.canModeBeOptimized,function(m,T,A){return T===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!at(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(){W1()}),i.TRACE_INIT("toFastProperties",function(){kh(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!at(this.lexerDefinitionErrors)){var i=ue(this.lexerDefinitionErrors,function(s){return s.message}),r=i.join(`-----------------------
131
+ Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){W1()}),i.TRACE_INIT("toFastProperties",function(){kh(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!at(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,T,A,E,O,R,U,W,j=t,ae=j.length,Z=0,re=0,xe=this.hasCustom?0:Math.floor(t.length/10),_=new Array(xe),ut=[],yt=this.trackStartLines?1:void 0,$e=this.trackStartLines?1:void 0,an=i_(this.emptyGroups),Wn=this.trackStartLines,en=this.config.lineTerminatorsPattern,Lt=0,Re=[],Oi=[],It=[],Mt=[];Object.freeze(Mt);var sn=void 0;function $i(){return Re}o($i,"getPossiblePatternsSlow");function _e(Ht){var Xo=jo(Ht),Bi=Oi[Xo];return Bi===void 0?Mt:Bi}o(_e,"getPossiblePatternsOptimized");var Kn=o(function(Ht){if(It.length===1&&Ht.tokenType.PUSH_MODE===void 0){var Xo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Ht);ut.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:Xo})}else{It.pop();var Bi=Dh(It);Re=i.patternIdxToConfig[Bi],Oi=i.charCodeToPatternIdxToConfig[Bi],Lt=Re.length;var Nf=i.canModeBeOptimized[Bi]&&i.config.safeMode===!1;Oi&&Nf?sn=_e:sn=$i}},"pop_mode");function Ir(Ht){It.push(Ht),Oi=this.charCodeToPatternIdxToConfig[Ht],Re=this.patternIdxToConfig[Ht],Lt=Re.length,Lt=Re.length;var Xo=this.canModeBeOptimized[Ht]&&this.config.safeMode===!1;Oi&&Xo?sn=_e:sn=$i}o(Ir,"push_mode"),Ir.call(this,n);for(var st;Z<ae;){u=null;var I=j.charCodeAt(Z),S=sn(I),z=S.length;for(r=0;r<z;r++){st=S[r];var V=st.pattern;p=null;var Ve=st.short;if(Ve!==!1?I===Ve&&(u=V):st.isCustom===!0?(W=V.exec(j,Z,_,an),W!==null?(u=W[0],W.payload!==void 0&&(p=W.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=st.longerAlt,l!==void 0){var Ft=Re[l],qe=Ft.pattern;g=null,Ft.isCustom===!0?(W=qe.exec(j,Z,_,an),W!==null?(s=W[0],W.payload!==void 0&&(g=W.payload)):s=null):(this.updateLastIndex(qe,Z),s=this.match(qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,st=Ft)}break}}if(u!==null){if(m=u.length,T=st.group,T!==void 0&&(A=st.tokenTypeIdx,E=this.createTokenInstance(u,Z,A,st.tokenType,yt,$e,m),this.handlePayload(E,p),T===!1?re=this.addToken(_,re,E):an[T].push(E)),t=this.chopInput(t,m),Z=Z+m,$e=this.computeNewColumn($e,m),Wn===!0&&st.canLineTerminator===!0){var wt=0,vn=void 0,cn=void 0;en.lastIndex=0;do vn=en.test(u),vn===!0&&(cn=en.lastIndex-1,wt++);while(vn===!0);wt!==0&&(yt=yt+wt,$e=m-cn,this.updateTokenEndLineColumnLocation(E,T,cn,wt,yt,$e,m))}this.handleModes(st,Kn,Ir,E)}else{for(var Bt=Z,ni=yt,ir=$e,dn=!1;!dn&&Z<ae;)for(R=j.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Lt;a++){var mi=Re[a],V=mi.pattern,Ve=mi.short;if(Ve!==!1?j.charCodeAt(Z)===Ve&&(dn=!0):mi.isCustom===!0?dn=V.exec(j,Z,_,an)!==null:(this.updateLastIndex(V,Z),dn=V.exec(t)!==null),dn===!0)break}O=Z-Bt,U=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(j,Bt,O,ni,ir),ut.push({offset:Bt,line:ni,column:ir,length:O,message:U})}}return this.hasCustom||(_.length=re),{tokens:_,groups:an,errors:ut}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Uh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function Bo(e){return KA(e)?e.LABEL:e.name}function b_(e){return e.name}function KA(e){return Br(e.LABEL)&&e.LABEL!==""}function lp(e){return w7(e)}function w7(e){var t=e.pattern,n={};if(n.name=e.name,Pi(t)||(n.PATTERN=t),Oe(e,M7))throw`The parent property is no longer supported.
134
- See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Oe(e,d_)&&(n.CATEGORIES=e[d_]),Ea([n]),Oe(e,g_)&&(n.LABEL=e[g_]),Oe(e,m_)&&(n.GROUP=e[m_]),Oe(e,y_)&&(n.POP_MODE=e[y_]),Oe(e,h_)&&(n.PUSH_MODE=e[h_]),Oe(e,v_)&&(n.LONGER_ALT=e[v_]),Oe(e,T_)&&(n.LINE_BREAKS=e[T_]),Oe(e,E_)&&(n.START_CHARS_HINT=e[E_]),n}function ms(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 A_(e,t){return Oc(e,t)}var M7,d_,g_,m_,h_,y_,v_,T_,E_,Gr,hs=ze(()=>{vt();sp();Bl();o(Bo,"tokenLabel");o(b_,"tokenName");o(KA,"hasTokenLabel");M7="parent",d_="categories",g_="label",m_="group",h_="push_mode",y_="pop_mode",v_="longer_alt",T_="line_breaks",E_="start_chars_hint";o(lp,"createToken");o(w7,"createTokenInternal");Gr=lp({name:"EOF",pattern:wi.NA});Ea([Gr]);o(ms,"createTokenInstance");o(A_,"tokenMatcher")});function zh(e){return ue(e,Hl)}function Hl(e){function t(r){return ue(r,Hl)}if(o(t,"convertDefinition"),e instanceof rn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Jt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof on)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Rn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Hl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Hl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Nt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Bo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=uo(i)?i.source:i),n}else{if(e instanceof vr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var ba,po,rn,vr,Jt,on,Fn,Rn,Nt,Sn,Pn,ht,ki=ze(()=>{vt();hs();ba=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)}}(),po=function(){function e(t){this._definition=t}return o(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:o(function(){return this._definition},"get"),set:o(function(t){this._definition=t},"set"),enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),ye(this.definition,function(n){n.accept(t)})},e}(),rn=function(e){ba(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,yr(i,hr(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}(po),vr=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(po),Jt=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(po),on=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(po),Fn=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(po),Rn=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(po),Nt=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(po),Sn=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,yr(i,hr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(po),Pn=function(e){ba(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,yr(i,hr(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}(po),ht=function(){function e(t){this.idx=1,yr(this,hr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(zh,"serializeGrammar");o(Hl,"serializeProduction")});function S_(e,t,n){var i=[new on({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Nc,Yh=ze(()=>{vt();ki();Nc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ye(t.definition,function(r,a){var s=Mn(t.definition,a+1);if(r instanceof rn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Jt)i.walkFlat(r,s,n);else if(r instanceof on)i.walkOption(r,s,n);else if(r instanceof Fn)i.walkAtLeastOne(r,s,n);else if(r instanceof Rn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Sn)i.walkManySep(r,s,n);else if(r instanceof Nt)i.walkMany(r,s,n);else if(r instanceof Pn)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=S_(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=S_(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ye(t.definition,function(s){var l=new Jt({definition:[s]});r.walk(l,a)})},e}();o(S_,"restForRepetitionWithSeparator")});var Wr,Gl=ze(()=>{ki();Wr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case rn:return this.visitNonTerminal(n);case Jt:return this.visitAlternative(n);case on:return this.visitOption(n);case Fn:return this.visitRepetitionMandatory(n);case Rn:return this.visitRepetitionMandatoryWithSeparator(n);case Sn:return this.visitRepetitionWithSeparator(n);case Nt:return this.visitRepetition(n);case Pn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case vr: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 P_(e){return e instanceof Jt||e instanceof on||e instanceof Nt||e instanceof Fn||e instanceof Rn||e instanceof Sn||e instanceof ht||e instanceof vr}function Wl(e,t){t===void 0&&(t=[]);var n=e instanceof on||e instanceof Nt||e instanceof Sn;return n?!0:e instanceof Pn?Mh(e.definition,function(i){return Wl(i,t)}):e instanceof rn&&Dt(t,e)?!1:e instanceof po?(e instanceof rn&&t.push(e),ui(e.definition,function(i){return Wl(i,t)})):!1}function x_(e){return e instanceof Pn}function Tr(e){if(e instanceof rn)return"SUBRULE";if(e instanceof on)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof Fn)return"AT_LEAST_ONE";if(e instanceof Rn)return"AT_LEAST_ONE_SEP";if(e instanceof Sn)return"MANY_SEP";if(e instanceof Nt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function C_(e){Jh.reset(),e.accept(Jh);var t=Jh.dslMethods;return Jh.reset(),t}var k7,XA,Jh,Kl=ze(()=>{vt();ki();Gl();k7=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(P_,"isSequenceProd");o(Wl,"isOptionalProd");o(x_,"isBranchingProd");o(Tr,"getProductionDslName");XA=function(e){k7(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";Oe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Oe(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}(Wr),Jh=new XA;o(C_,"collectMethods")});function Lc(e){if(e instanceof rn)return Lc(e.referencedRule);if(e instanceof ht)return $7(e);if(P_(e))return U7(e);if(x_(e))return j7(e);throw Error("non exhaustive match")}function U7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Wl(a),t=t.concat(Lc(a)),i=i+1,r=n.length>i;return np(t)}function j7(e){var t=ue(e.definition,function(n){return Lc(n)});return np(Ln(t))}function $7(e){return[e.terminalType]}var QA=ze(()=>{vt();ki();Kl();o(Lc,"first");o(U7,"firstForSequence");o(j7,"firstForBranching");o($7,"firstForTerminal")});var Zh,qA=ze(()=>{Zh="_~IN~_"});function I_(e){var t={};return ye(e,function(n){var i=new H7(n).startWalking();yr(t,i)}),t}function G7(e,t){return e.name+t+Zh}var B7,H7,O_=ze(()=>{Yh();QA();vt();qA();ki();B7=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)}}(),H7=function(e){B7(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=G7(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Jt({definition:s}),u=Lc(l);this.follows[a]=u},t}(Nc);o(I_,"computeAllProdsFollows");o(G7,"buildBetweenProdsFollowPrefix")});var fp,ey,ys,up=ze(()=>{hs();vt();vt();ki();Kl();fp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=KA(t),s=a?"--> "+Bo(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=Si(n).image,u=`
135
- but found: '`+l+"'";if(r)return s+r+u;var p=un(t,function(A,E){return A.concat(E)},[]),g=ue(p,function(A){return"["+ue(A,function(E){return Bo(E)}).join(", ")+"]"}),m=ue(g,function(A,E){return" "+(E+1)+". "+A}),T=`one of these possible Token sequences:
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,T,A,b,O,R,U,W,j=t,ae=j.length,Z=0,re=0,xe=this.hasCustom?0:Math.floor(t.length/10),_=new Array(xe),ut=[],yt=this.trackStartLines?1:void 0,$e=this.trackStartLines?1:void 0,on=i_(this.emptyGroups),Wn=this.trackStartLines,an=this.config.lineTerminatorsPattern,Lt=0,Re=[],Oi=[],It=[],Mt=[];Object.freeze(Mt);var sn=void 0;function Bi(){return Re}o(Bi,"getPossiblePatternsSlow");function _e(Ht){var Xo=jo(Ht),Hi=Oi[Xo];return Hi===void 0?Mt:Hi}o(_e,"getPossiblePatternsOptimized");var Kn=o(function(Ht){if(It.length===1&&Ht.tokenType.PUSH_MODE===void 0){var Xo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Ht);ut.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:Xo})}else{It.pop();var Hi=Dh(It);Re=i.patternIdxToConfig[Hi],Oi=i.charCodeToPatternIdxToConfig[Hi],Lt=Re.length;var Nf=i.canModeBeOptimized[Hi]&&i.config.safeMode===!1;Oi&&Nf?sn=_e:sn=Bi}},"pop_mode");function Ir(Ht){It.push(Ht),Oi=this.charCodeToPatternIdxToConfig[Ht],Re=this.patternIdxToConfig[Ht],Lt=Re.length,Lt=Re.length;var Xo=this.canModeBeOptimized[Ht]&&this.config.safeMode===!1;Oi&&Xo?sn=_e:sn=Bi}o(Ir,"push_mode"),Ir.call(this,n);for(var st;Z<ae;){u=null;var I=j.charCodeAt(Z),S=sn(I),J=S.length;for(r=0;r<J;r++){st=S[r];var M=st.pattern;p=null;var Ve=st.short;if(Ve!==!1?I===Ve&&(u=M):st.isCustom===!0?(W=M.exec(j,Z,_,on),W!==null?(u=W[0],W.payload!==void 0&&(p=W.payload)):u=null):(this.updateLastIndex(M,Z),u=this.match(M,t,Z)),u!==null){if(l=st.longerAlt,l!==void 0){var Ft=Re[l],qe=Ft.pattern;g=null,Ft.isCustom===!0?(W=qe.exec(j,Z,_,on),W!==null?(s=W[0],W.payload!==void 0&&(g=W.payload)):s=null):(this.updateLastIndex(qe,Z),s=this.match(qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,st=Ft)}break}}if(u!==null){if(m=u.length,T=st.group,T!==void 0&&(A=st.tokenTypeIdx,b=this.createTokenInstance(u,Z,A,st.tokenType,yt,$e,m),this.handlePayload(b,p),T===!1?re=this.addToken(_,re,b):on[T].push(b)),t=this.chopInput(t,m),Z=Z+m,$e=this.computeNewColumn($e,m),Wn===!0&&st.canLineTerminator===!0){var wt=0,Rn=void 0,cn=void 0;an.lastIndex=0;do Rn=an.test(u),Rn===!0&&(cn=an.lastIndex-1,wt++);while(Rn===!0);wt!==0&&(yt=yt+wt,$e=m-cn,this.updateTokenEndLineColumnLocation(b,T,cn,wt,yt,$e,m))}this.handleModes(st,Kn,Ir,b)}else{for(var Bt=Z,ni=yt,or=$e,gn=!1;!gn&&Z<ae;)for(R=j.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Lt;a++){var yi=Re[a],M=yi.pattern,Ve=yi.short;if(Ve!==!1?j.charCodeAt(Z)===Ve&&(gn=!0):yi.isCustom===!0?gn=M.exec(j,Z,_,on)!==null:(this.updateLastIndex(M,Z),gn=M.exec(t)!==null),gn===!0)break}O=Z-Bt,U=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(j,Bt,O,ni,or),ut.push({offset:Bt,line:ni,column:or,length:O,message:U})}}return this.hasCustom||(_.length=re),{tokens:_,groups:on,errors:ut}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Uh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function Bo(e){return KA(e)?e.LABEL:e.name}function E_(e){return e.name}function KA(e){return Br(e.LABEL)&&e.LABEL!==""}function lp(e){return wX(e)}function wX(e){var t=e.pattern,n={};if(n.name=e.name,Ci(t)||(n.PATTERN=t),Oe(e,MX))throw`The parent property is no longer supported.
134
+ See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Oe(e,d_)&&(n.CATEGORIES=e[d_]),ba([n]),Oe(e,g_)&&(n.LABEL=e[g_]),Oe(e,m_)&&(n.GROUP=e[m_]),Oe(e,y_)&&(n.POP_MODE=e[y_]),Oe(e,h_)&&(n.PUSH_MODE=e[h_]),Oe(e,v_)&&(n.LONGER_ALT=e[v_]),Oe(e,T_)&&(n.LINE_BREAKS=e[T_]),Oe(e,b_)&&(n.START_CHARS_HINT=e[b_]),n}function ms(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 A_(e,t){return Oc(e,t)}var MX,d_,g_,m_,h_,y_,v_,T_,b_,Gr,hs=ze(()=>{vt();sp();Bl();o(Bo,"tokenLabel");o(E_,"tokenName");o(KA,"hasTokenLabel");MX="parent",d_="categories",g_="label",m_="group",h_="push_mode",y_="pop_mode",v_="longer_alt",T_="line_breaks",b_="start_chars_hint";o(lp,"createToken");o(wX,"createTokenInternal");Gr=lp({name:"EOF",pattern:wi.NA});ba([Gr]);o(ms,"createTokenInstance");o(A_,"tokenMatcher")});function zh(e){return pe(e,Hl)}function Hl(e){function t(r){return pe(r,Hl)}if(o(t,"convertDefinition"),e instanceof nn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Jt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof rn)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Ln)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Hl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof An)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Hl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Nt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Sn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Bo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=uo(i)?i.source:i),n}else{if(e instanceof br)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ea,po,nn,br,Jt,rn,Ln,Fn,Nt,An,Sn,ht,ki=ze(()=>{vt();hs();Ea=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)}}(),po=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),ve(this.definition,function(n){n.accept(t)})},e}(),nn=function(e){Ea(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,Tr(i,vr(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}(po),br=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",Tr(i,vr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(po),Jt=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,Tr(i,vr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(po),rn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Tr(i,vr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(po),Ln=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Tr(i,vr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(po),Fn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Tr(i,vr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(po),Nt=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Tr(i,vr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(po),An=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,Tr(i,vr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(po),Sn=function(e){Ea(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,Tr(i,vr(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}(po),ht=function(){function e(t){this.idx=1,Tr(this,vr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(zh,"serializeGrammar");o(Hl,"serializeProduction")});function S_(e,t,n){var i=[new rn({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Nc,Yh=ze(()=>{vt();ki();Nc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),ve(t.definition,function(r,a){var s=Mn(t.definition,a+1);if(r instanceof nn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Jt)i.walkFlat(r,s,n);else if(r instanceof rn)i.walkOption(r,s,n);else if(r instanceof Ln)i.walkAtLeastOne(r,s,n);else if(r instanceof Fn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof An)i.walkManySep(r,s,n);else if(r instanceof Nt)i.walkMany(r,s,n);else if(r instanceof Sn)i.walkOr(r,s,n);else throw Error("non exhaustive match")})},e.prototype.walkTerminal=function(t,n,i){},e.prototype.walkProdRef=function(t,n,i){},e.prototype.walkFlat=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkOption=function(t,n,i){var r=n.concat(i);this.walk(t,r)},e.prototype.walkAtLeastOne=function(t,n,i){var r=[new rn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=S_(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new rn({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=S_(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ve(t.definition,function(s){var l=new Jt({definition:[s]});r.walk(l,a)})},e}();o(S_,"restForRepetitionWithSeparator")});var Wr,Gl=ze(()=>{ki();Wr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case nn:return this.visitNonTerminal(n);case Jt:return this.visitAlternative(n);case rn:return this.visitOption(n);case Ln:return this.visitRepetitionMandatory(n);case Fn:return this.visitRepetitionMandatoryWithSeparator(n);case An:return this.visitRepetitionWithSeparator(n);case Nt:return this.visitRepetition(n);case Sn:return this.visitAlternation(n);case ht:return this.visitTerminal(n);case br: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 P_(e){return e instanceof Jt||e instanceof rn||e instanceof Nt||e instanceof Ln||e instanceof Fn||e instanceof An||e instanceof ht||e instanceof br}function Wl(e,t){t===void 0&&(t=[]);var n=e instanceof rn||e instanceof Nt||e instanceof An;return n?!0:e instanceof Sn?Mh(e.definition,function(i){return Wl(i,t)}):e instanceof nn&&Dt(t,e)?!1:e instanceof po?(e instanceof nn&&t.push(e),ui(e.definition,function(i){return Wl(i,t)})):!1}function x_(e){return e instanceof Sn}function Er(e){if(e instanceof nn)return"SUBRULE";if(e instanceof rn)return"OPTION";if(e instanceof Sn)return"OR";if(e instanceof Ln)return"AT_LEAST_ONE";if(e instanceof Fn)return"AT_LEAST_ONE_SEP";if(e instanceof An)return"MANY_SEP";if(e instanceof Nt)return"MANY";if(e instanceof ht)return"CONSUME";throw Error("non exhaustive match")}function C_(e){Jh.reset(),e.accept(Jh);var t=Jh.dslMethods;return Jh.reset(),t}var kX,XA,Jh,Kl=ze(()=>{vt();ki();Gl();kX=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(P_,"isSequenceProd");o(Wl,"isOptionalProd");o(x_,"isBranchingProd");o(Er,"getProductionDslName");XA=function(e){kX(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";Oe(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Oe(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}(Wr),Jh=new XA;o(C_,"collectMethods")});function Lc(e){if(e instanceof nn)return Lc(e.referencedRule);if(e instanceof ht)return $X(e);if(P_(e))return UX(e);if(x_(e))return jX(e);throw Error("non exhaustive match")}function UX(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Wl(a),t=t.concat(Lc(a)),i=i+1,r=n.length>i;return np(t)}function jX(e){var t=pe(e.definition,function(n){return Lc(n)});return np(Nn(t))}function $X(e){return[e.terminalType]}var QA=ze(()=>{vt();ki();Kl();o(Lc,"first");o(UX,"firstForSequence");o(jX,"firstForBranching");o($X,"firstForTerminal")});var Zh,qA=ze(()=>{Zh="_~IN~_"});function I_(e){var t={};return ve(e,function(n){var i=new HX(n).startWalking();Tr(t,i)}),t}function GX(e,t){return e.name+t+Zh}var BX,HX,O_=ze(()=>{Yh();QA();vt();qA();ki();BX=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)}}(),HX=function(e){BX(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=GX(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Jt({definition:s}),u=Lc(l);this.follows[a]=u},t}(Nc);o(I_,"computeAllProdsFollows");o(GX,"buildBetweenProdsFollowPrefix")});var fp,ey,ys,up=ze(()=>{hs();vt();vt();ki();Kl();fp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=KA(t),s=a?"--> "+Bo(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
+ but found: '`+l+"'";if(r)return s+r+u;var p=un(t,function(A,b){return A.concat(b)},[]),g=pe(p,function(A){return"["+pe(A,function(b){return Bo(b)}).join(", ")+"]"}),m=pe(g,function(A,b){return" "+(b+1)+". "+A}),T=`one of these possible Token sequences:
136
136
  `+m.join(`
137
- `);return s+T+u},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=Si(n).image,l=`
138
- but found: '`+s+"'";if(i)return a+i+l;var u=ue(t,function(g){return"["+ue(g,function(m){return Bo(m)}).join(",")+"]"}),p=`expecting at least one iteration which starts with one of these possible Token sequences::
137
+ `);return s+T+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=`
138
+ but found: '`+s+"'";if(i)return a+i+l;var u=pe(t,function(g){return"["+pe(g,function(m){return Bo(m)}).join(",")+"]"}),p=`expecting at least one iteration which starts with one of these possible Token sequences::
139
139
  `+("<"+u.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(fp);ey={buildRuleNotFoundError:o(function(e,t){var n="Invalid grammar, reference to a rule which is not defined: ->"+t.nonTerminalName+`<-
140
- inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},ys={buildDuplicateFoundError:o(function(e,t){function n(g){return g instanceof ht?g.terminalType.name:g instanceof rn?g.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=Si(t),a=r.idx,s=Tr(r),l=n(r),u=a>0,p="->"+s+(u?a:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
140
+ inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},ys={buildDuplicateFoundError:o(function(e,t){function n(g){return g instanceof ht?g.terminalType.name:g instanceof nn?g.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=xi(t),a=r.idx,s=Er(r),l=n(r),u=a>0,p="->"+s+(u?a:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
141
141
  appears more than once (`+t.length+" times) in the top level rule: ->"+i+`<-.
142
142
  For further details see: https://sap.github.io/chevrotain/docs/FAQ.html#NUMERICAL_SUFFIXES
143
143
  `;return p=p.replace(/[ \t]+/g," "),p=p.replace(/\s\s+/g,`
@@ -145,49 +145,49 @@ inside top level rule: ->`+e.name+"<-";return n},"buildRuleNotFoundError")},ys={
145
145
  `+("The grammar has both a Terminal(Token) and a Non-Terminal(Rule) named: <"+e.name+`>.
146
146
  `)+`To resolve this make sure each Terminal and Non-Terminal names are unique
147
147
  This is easy to accomplish by using the convention that Terminal names start with an uppercase letter
148
- and Non-Terminal names start with a lower case letter.`;return t},"buildNamespaceConflictError"),buildAlternationPrefixAmbiguityError:o(function(e){var t=ue(e.prefixPath,function(r){return Bo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+`> due to common lookahead prefix
148
+ and Non-Terminal names start with a lower case letter.`;return t},"buildNamespaceConflictError"),buildAlternationPrefixAmbiguityError:o(function(e){var t=pe(e.prefixPath,function(r){return Bo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous alternatives: <"+e.ambiguityIndices.join(" ,")+`> due to common lookahead prefix
149
149
  `+("in <OR"+n+"> inside <"+e.topLevelRule.name+`> Rule,
150
150
  `)+("<"+t+`> may appears as a prefix path in all these alternatives.
151
151
  `)+`See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#COMMON_PREFIX
152
- For Further details.`;return i},"buildAlternationPrefixAmbiguityError"),buildAlternationAmbiguityError:o(function(e){var t=ue(e.prefixPath,function(r){return Bo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+">"+(" inside <"+e.topLevelRule.name+`> Rule,
152
+ For Further details.`;return i},"buildAlternationPrefixAmbiguityError"),buildAlternationAmbiguityError:o(function(e){var t=pe(e.prefixPath,function(r){return Bo(r)}).join(", "),n=e.alternation.idx===0?"":e.alternation.idx,i="Ambiguous Alternatives Detected: <"+e.ambiguityIndices.join(" ,")+"> in <OR"+n+">"+(" inside <"+e.topLevelRule.name+`> Rule,
153
153
  `)+("<"+t+`> may appears as a prefix path in all these alternatives.
154
154
  `);return i=i+`See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#AMBIGUOUS_ALTERNATIVES
155
- For Further details.`,i},"buildAlternationAmbiguityError"),buildEmptyRepetitionError:o(function(e){var t=Tr(e.repetition);e.repetition.idx!==0&&(t+=e.repetition.idx);var n="The repetition <"+t+"> within Rule <"+e.topLevelRule.name+`> can never consume any tokens.
155
+ For Further details.`,i},"buildAlternationAmbiguityError"),buildEmptyRepetitionError:o(function(e){var t=Er(e.repetition);e.repetition.idx!==0&&(t+=e.repetition.idx);var n="The repetition <"+t+"> within Rule <"+e.topLevelRule.name+`> can never consume any tokens.
156
156
  This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),buildTokenNameError:o(function(e){return"deprecated"},"buildTokenNameError"),buildEmptyAlternationError:o(function(e){var t="Ambiguous empty alternative: <"+(e.emptyChoiceIdx+1)+">"+(" in <OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+`> Rule.
157
157
  `)+"Only the last alternative may be an empty alternative.";return t},"buildEmptyAlternationError"),buildTooManyAlternativesError:o(function(e){var t=`An Alternation cannot have more than 256 alternatives:
158
158
  `+("<OR"+e.alternation.idx+"> inside <"+e.topLevelRule.name+`> Rule.
159
- has `+(e.alternation.definition.length+1)+" alternatives.");return t},"buildTooManyAlternativesError"),buildLeftRecursionError:o(function(e){var t=e.topLevelRule.name,n=ue(e.leftRecursionPath,function(a){return a.name}),i=t+" --> "+n.concat([t]).join(" --> "),r=`Left Recursion found in grammar.
159
+ has `+(e.alternation.definition.length+1)+" alternatives.");return t},"buildTooManyAlternativesError"),buildLeftRecursionError:o(function(e){var t=e.topLevelRule.name,n=pe(e.leftRecursionPath,function(a){return a.name}),i=t+" --> "+n.concat([t]).join(" --> "),r=`Left Recursion found in grammar.
160
160
  `+("rule: <"+t+`> can be invoked from itself (directly or indirectly)
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 vr?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 N_(e,t){var n=new K7(e,t);return n.resolveRefs(),n.errors}var W7,K7,L_=ze(()=>{Er();vt();Gl();W7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(N_,"resolveGrammar");K7=function(e){W7(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return o(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;ye(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Wr)});function ny(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(Mn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=ny(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Fn){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Rn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Sn){var u=l.definition.concat([new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Pn)return ye(l.definition,function(p){at(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:Mn(e,r)}),i}function iy(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:[]});!at(m);){var T=m.pop();if(T===s){l&&Dh(m).idx<=p&&m.pop();continue}var A=T.def,E=T.idx,O=T.ruleStack,R=T.occurrenceStack;if(!at(A)){var U=A[0];if(U===r){var W={idx:E,def:Mn(A),ruleStack:ps(O),occurrenceStack:ps(R)};m.push(W)}else if(U instanceof ht)if(E<u-1){var j=E+1,ae=t[j];if(n(ae,U.terminalType)){var W={idx:j,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(W)}}else if(E===u-1)g.push({nextTokenType:U.terminalType,nextTokenOccurrence:U.idx,ruleStack:O,occurrenceStack:R}),l=!0;else throw Error("non exhaustive match");else if(U instanceof rn){var Z=An(O);Z.push(U.nonTerminalName);var re=An(R);re.push(U.idx);var W={idx:E,def:U.definition.concat(a,Mn(A)),ruleStack:Z,occurrenceStack:re};m.push(W)}else if(U instanceof on){var xe={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(xe),m.push(s);var _={idx:E,def:U.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R};m.push(_)}else if(U instanceof Fn){var ut=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([ut],Mn(A)),W={idx:E,def:yt,ruleStack:O,occurrenceStack:R};m.push(W)}else if(U instanceof Rn){var $e=new ht({terminalType:U.separator}),ut=new Nt({definition:[$e].concat(U.definition),idx:U.idx}),yt=U.definition.concat([ut],Mn(A)),W={idx:E,def:yt,ruleStack:O,occurrenceStack:R};m.push(W)}else if(U instanceof Sn){var xe={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(xe),m.push(s);var $e=new ht({terminalType:U.separator}),an=new Nt({definition:[$e].concat(U.definition),idx:U.idx}),yt=U.definition.concat([an],Mn(A)),_={idx:E,def:yt,ruleStack:O,occurrenceStack:R};m.push(_)}else if(U instanceof Nt){var xe={idx:E,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(xe),m.push(s);var an=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([an],Mn(A)),_={idx:E,def:yt,ruleStack:O,occurrenceStack:R};m.push(_)}else if(U instanceof Pn)for(var Wn=U.definition.length-1;Wn>=0;Wn--){var en=U.definition[Wn],Lt={idx:E,def:en.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R};m.push(Lt),m.push(s)}else if(U instanceof Jt)m.push({idx:E,def:U.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R});else if(U instanceof vr)m.push(Q7(U,E,O,R));else throw Error("non exhaustive match")}}return g}function Q7(e,t,n,i){var r=An(n);r.push(e.name);var a=An(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Fc,X7,F_,ty,R_,zA,__,YA,pp=ze(()=>{Yh();vt();QA();ki();Fc=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)}}(),X7=function(e){Fc(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=An(this.path.ruleStack).reverse(),this.occurrenceStack=An(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(){at(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Nc),F_=function(e){Fc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Lc(s),this.found=!0}},t}(X7),ty=function(e){Fc(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}(Nc),R_=function(e){Fc(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=Si(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}(ty),zA=function(e){Fc(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=Si(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}(ty),__=function(e){Fc(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=Si(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}(ty),YA=function(e){Fc(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=Si(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}(ty);o(ny,"possiblePathsFrom");o(iy,"nextPossibleTokensAfter");o(Q7,"expandTopLevelRule")});function M_(e){if(e instanceof on)return Vt.OPTION;if(e instanceof Nt)return Vt.REPETITION;if(e instanceof Fn)return Vt.REPETITION_MANDATORY;if(e instanceof Rn)return Vt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return Vt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return Vt.ALTERNATION;throw Error("non exhaustive match")}function w_(e,t,n,i,r,a){var s=dp(e,t,n),l=G_(s)?$l:Oc;return a(s,i,l,r)}function k_(e,t,n,i,r,a){var s=gp(e,t,r,n),l=G_(s)?$l:Oc;return a(s[0],l,i)}function U_(e,t,n,i){var r=e.length,a=ui(e,function(u){return ui(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ue(u,function(j){return j.GATE}),g=0;g<r;g++){var m=e[g],T=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var E=0;E<T;E++){for(var O=m[E],R=O.length,U=0;U<R;U++){var W=this.LA(U+1);if(n(W,O[U])===!1)continue e}return g}}};if(a&&!i){var s=ue(e,function(u){return Ln(u)}),l=un(s,function(u,p,g){return ye(p,function(m){Oe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ye(m.categoryMatches,function(T){Oe(u,T)||(u[T]=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 T=p[m],A=T.length,E=0;E<A;E++){var O=this.LA(E+1);if(n(O,T[E])===!1)continue e}return u}}}}function j_(e,t,n){var i=ui(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&at(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ye(g.categoryMatches,function(T){p[T]=!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,T=0;T<m;T++){var A=this.LA(T+1);if(t(A,g[T])===!1)continue e}return!0}return!1}}function D_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function JA(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 z7(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 B_(e,t){for(var n=ue(e,function(g){return ny([g],1)}),i=D_(n.length),r=ue(n,function(g){var m={};return ye(g,function(T){var A=JA(T.partialPath);ye(A,function(E){m[E]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=D_(l.length);for(var u=o(function(g){for(var m=l[g],T=0;T<m.length;T++){var A=m[T].partialPath,E=m[T].suffixDef,O=JA(A),R=z7(r,O,g);if(R||at(E)||A.length===t){var U=i[g];if(ry(U,A)===!1){U.push(A);for(var W=0;W<O.length;W++){var j=O[W];r[g][j]=!0}}}else{var ae=ny(E,s+1,A);a[g]=a[g].concat(ae),ye(ae,function(Z){var re=JA(Z.partialPath);ye(re,function(xe){r[g][xe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function dp(e,t,n,i){var r=new $_(e,Vt.ALTERNATION,i);return t.accept(r),B_(r.result,n)}function gp(e,t,n,i){var r=new $_(e,n);t.accept(r);var a=r.result,s=new q7(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return B_([u,p],i)}function ry(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 H_(e,t){return e.length<t.length&&ui(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function G_(e){return ui(e,function(t){return ui(t,function(n){return ui(n,function(i){return at(i.categoryMatches)})})})}var V_,Vt,q7,$_,mp=ze(()=>{vt();pp();Yh();Bl();ki();Gl();V_=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"})(Vt||(Vt={}));o(M_,"getProdType");o(w_,"buildLookaheadFuncForOr");o(k_,"buildLookaheadFuncForOptionalProd");o(U_,"buildAlternativesLookAheadFunc");o(j_,"buildSingleAlternativeLookaheadFunction");q7=function(e){V_(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,Vt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Nc),$_=function(e){V_(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,Vt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Vt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Vt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Vt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Vt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Vt.ALTERNATION)},t}(Wr);o(D_,"initializeArrayOfArrays");o(JA,"pathToHashKeys");o(z7,"isUniquePrefixHash");o(B_,"lookAheadSequenceFromAlternatives");o(dp,"getLookaheadPathsForOr");o(gp,"getLookaheadPathsForOptionalProd");o(ry,"containsPath");o(H_,"isStrictPrefixOfPath");o(G_,"areTokenCategoriesNotUsed")});function W_(e,t,n,i,r){var a=ue(e,function(A){return Y7(A,i)}),s=ue(e,function(A){return Q_(A,A,i)}),l=[],u=[],p=[];ui(s,at)&&(l=ue(e,function(A){return t9(A,i)}),u=ue(e,function(A){return n9(A,t,i)}),p=o9(e,t,i));var g=c9(e,n,i),m=ue(e,function(A){return r9(A,i)}),T=ue(e,function(A){return e9(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,T))}function Y7(e,t){var n=new Z7;e.accept(n);var i=n.allProductions,r=U1(i,J7),a=hr(r,function(l){return l.length>1}),s=ue(Vn(a),function(l){var u=Si(l),p=t.buildDuplicateFoundError(e,l),g=Tr(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},T=K_(u);return T&&(m.parameter=T),m});return s}function J7(e){return Tr(e)+"_#_"+e.idx+"_#_"+K_(e)}function K_(e){return e instanceof ht?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function e9(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function X_(e,t,n){var i=[],r;return Dt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function Q_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=oy(t.definition);if(at(a))return[];var s=e.name,l=Dt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Ic(a,i.concat([e])),p=ue(u,function(g){var m=An(i);return m.push(g),Q_(e,g,n,m)});return r.concat(Ln(p))}function oy(e){var t=[];if(at(e))return t;var n=Si(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Fn||n instanceof Rn||n instanceof Sn||n instanceof Nt)t=t.concat(oy(n.definition));else if(n instanceof Pn)t=Ln(ue(n.definition,function(s){return oy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Wl(n),r=e.length>1;if(i&&r){var a=Mn(e);return t.concat(oy(a))}else return t}function t9(e,t){var n=new eS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=ps(s.definition),u=ue(l,function(p,g){var m=iy([p],[],null,1);return at(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Ta(u))},[]);return r}function n9(e,t,n){var i=new eS;e.accept(i);var r=i.alternations;r=ya(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=dp(u,e,p,l),m=a9(g,l,e,n),T=s9(g,l,e,n);return s.concat(m,T)},[]);return a}function r9(e,t){var n=new eS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function o9(e,t,n){var i=[];return ye(e,function(r){var a=new i9;r.accept(a);var s=a.allProductions;ye(s,function(l){var u=M_(l),p=l.maxLookahead||t,g=l.idx,m=gp(g,r,u,p),T=m[0];if(at(Ln(T))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function a9(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ye(u,function(g){var m=[p];ye(e,function(T,A){p!==A&&ry(T,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!ry(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=ue(a,function(l){var u=ue(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function s9(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=ue(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ye(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=w1(a,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&H_(T.path,p)}),m=ue(g,function(T){var A=[T.idx+1,u+1],E=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:T.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:A}});r=r.concat(m)}}),r}function c9(e,t,n){var i=[],r=ue(t,function(a){return a.name});return ye(e,function(a){var s=a.name;if(Dt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var ZA,Z7,eS,i9,tS=ze(()=>{vt();vt();Er();Kl();mp();pp();ki();Gl();ZA=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(W_,"validateGrammar");o(Y7,"validateDuplicateProductions");o(J7,"identifyProductionForDuplicates");o(K_,"getExtraProductionArgument");Z7=function(e){ZA(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}(Wr);o(e9,"validateRuleDoesNotAlreadyExist");o(X_,"validateRuleIsOverridden");o(Q_,"validateNoLeftRecursion");o(oy,"getFirstNoneTerminal");eS=function(e){ZA(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}(Wr);o(t9,"validateEmptyOrAlternative");o(n9,"validateAmbiguousAlternationAlternatives");i9=function(e){ZA(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}(Wr);o(r9,"validateTooManyAlts");o(o9,"validateSomeNonEmptyLookaheadPath");o(a9,"checkAlternativesAmbiguities");o(s9,"checkPrefixAlternativesAmbiguities");o(c9,"checkTerminalAndNoneTerminalsNameSpace")});function ay(e){e=ip(e,{errMsgProvider:ey});var t={};return ye(e.rules,function(n){t[n.name]=n}),N_(t,e.errMsgProvider)}function sy(e){return e=ip(e,{errMsgProvider:ys}),W_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function q_(e){ye(e.rules,function(t){var n=new XA;t.accept(n),ye(n.dslMethods,function(i){ye(i,function(r,a){r.idx=a+1})})})}var nS=ze(()=>{vt();L_();tS();up();Kl();o(ay,"resolveGrammar");o(sy,"validateGrammar");o(q_,"assignOccurrenceIndices")});function Aa(e){return Dt(eD,e.name)}var hp,z_,Y_,J_,Z_,eD,cy,Xl,ly,fy,uy,Ql=ze(()=>{vt();hp=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)}}(),z_="MismatchedTokenException",Y_="NoViableAltException",J_="EarlyExitException",Z_="NotAllInputParsedException",eD=[z_,Y_,J_,Z_];Object.freeze(eD);o(Aa,"isRecognitionException");cy=function(e){hp(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),Xl=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=z_,a}return o(t,"MismatchedTokenException"),t}(cy),ly=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Y_,a}return o(t,"NoViableAltException"),t}(cy),fy=function(e){hp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=Z_,r}return o(t,"NotAllInputParsedException"),t}(cy),uy=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=J_,a}return o(t,"EarlyExitException"),t}(cy)});function tD(e){this.name=rS,this.message=e}function l9(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 T=u.token,A=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&T===void 0&&(T=Gr,A=1),this.shouldInRepetitionRecoveryBeTried(T,A,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var iS,rS,nD,oS=ze(()=>{hs();vt();Ql();qA();Er();iS={},rS="InRuleRecoveryException";o(tD,"InRuleRecoveryException");tD.prototype=Error.prototype;nD=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Oe(t,"recoveryEnabled")?t.recoveryEnabled:Zi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=l9)},e.prototype.getTokenToInsert=function(t){var n=ms(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),T=o(function(){var A=a.LA(0),E=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new Xl(E,g,a.LA(0));O.resyncedTokens=ps(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){T();return}else if(i.call(this)){T(),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 tD("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)||at(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 Dt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Dt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return iS;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return ue(n,function(r,a){return a===0?iS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ue(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===iS)return[Gr];var n=t.ruleName+t.idxInCallingRule+Zh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Gr)||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 ps(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=An(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ue(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(l9,"attemptInRepetitionRecovery")});function gy(e,t,n){return n|t|e}var iD,Ho,f9,py,dy,yp,vp,Tp,ql,hae,my=ze(()=>{iD=4,Ho=8,f9=8,py=1<<Ho,dy=2<<Ho,yp=3<<Ho,vp=4<<Ho,Tp=5<<Ho,ql=6<<Ho;o(gy,"getKeyForAutomaticLookahead");hae=32-f9});var rD,oD=ze(()=>{mp();vt();Er();my();Kl();rD=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Oe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Zi.dynamicTokensEnabled,this.maxLookahead=Oe(t,"maxLookahead")?t.maxLookahead:Zi.maxLookahead,this.lookAheadFuncsCache=wA()?new Map:[],wA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ye(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=C_(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ye(a,function(m){var T=m.idx===0?"":m.idx;n.TRACE_INIT(""+Tr(m)+T,function(){var A=w_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=gy(n.fullRuleNameToShort[i.name],py,m.idx);n.setLaFuncCache(E,A)})}),ye(s,function(m){n.computeLookaheadFunc(i,m.idx,yp,Vt.REPETITION,m.maxLookahead,Tr(m))}),ye(l,function(m){n.computeLookaheadFunc(i,m.idx,dy,Vt.OPTION,m.maxLookahead,Tr(m))}),ye(u,function(m){n.computeLookaheadFunc(i,m.idx,vp,Vt.REPETITION_MANDATORY,m.maxLookahead,Tr(m))}),ye(p,function(m){n.computeLookaheadFunc(i,m.idx,ql,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Tr(m))}),ye(g,function(m){n.computeLookaheadFunc(i,m.idx,Tp,Vt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Tr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=k_(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=gy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return j_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return U_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return gy(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 aS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function sS(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 aD(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function sD(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var cD=ze(()=>{o(aS,"setNodeLocationOnlyOffset");o(sS,"setNodeLocationFull");o(aD,"addTerminalToCst");o(sD,"addNoneTerminalToCst")});function fD(e){return Ep(e.constructor)}function Ep(e){var t=e.name;return t||"anonymous"}function cS(e,t){var n=Object.getOwnPropertyDescriptor(e,lD);return Pi(n)||n.configurable?(Object.defineProperty(e,lD,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var lD,lS=ze(()=>{vt();o(fD,"classNameFromInstance");lD="name";o(Ep,"functionName");o(cS,"defineNameProp")});function u9(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 uD(e,t){var n=o(function(){},"derivedConstructor");cS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(fi(r)&&(r=r[0]),!Pi(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=p9(this,t);if(!at(r)){var a=ue(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Ep(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 br?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 N_(e,t){var n=new KX(e,t);return n.resolveRefs(),n.errors}var WX,KX,L_=ze(()=>{Ar();vt();Gl();WX=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(N_,"resolveGrammar");KX=function(e){WX(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;ve(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Wr)});function ny(e,t,n){n===void 0&&(n=[]),n=En(n);var i=[],r=0;function a(p){return p.concat(Mn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=ny(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof nn)return s(l.definition);if(l instanceof rn)i=s(l.definition);else if(l instanceof Ln){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new Jt({definition:l.definition}),new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof An){var u=l.definition.concat([new Nt({definition:[new ht({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Nt){var u=l.definition.concat([new Nt({definition:l.definition})]);i=s(u)}else{if(l instanceof Sn)return ve(l.definition,function(p){at(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:Mn(e,r)}),i}function iy(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:[]});!at(m);){var T=m.pop();if(T===s){l&&Dh(m).idx<=p&&m.pop();continue}var A=T.def,b=T.idx,O=T.ruleStack,R=T.occurrenceStack;if(!at(A)){var U=A[0];if(U===r){var W={idx:b,def:Mn(A),ruleStack:ps(O),occurrenceStack:ps(R)};m.push(W)}else if(U instanceof ht)if(b<u-1){var j=b+1,ae=t[j];if(n(ae,U.terminalType)){var W={idx:j,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(W)}}else if(b===u-1)g.push({nextTokenType:U.terminalType,nextTokenOccurrence:U.idx,ruleStack:O,occurrenceStack:R}),l=!0;else throw Error("non exhaustive match");else if(U instanceof nn){var Z=En(O);Z.push(U.nonTerminalName);var re=En(R);re.push(U.idx);var W={idx:b,def:U.definition.concat(a,Mn(A)),ruleStack:Z,occurrenceStack:re};m.push(W)}else if(U instanceof rn){var xe={idx:b,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(xe),m.push(s);var _={idx:b,def:U.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R};m.push(_)}else if(U instanceof Ln){var ut=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([ut],Mn(A)),W={idx:b,def:yt,ruleStack:O,occurrenceStack:R};m.push(W)}else if(U instanceof Fn){var $e=new ht({terminalType:U.separator}),ut=new Nt({definition:[$e].concat(U.definition),idx:U.idx}),yt=U.definition.concat([ut],Mn(A)),W={idx:b,def:yt,ruleStack:O,occurrenceStack:R};m.push(W)}else if(U instanceof An){var xe={idx:b,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(xe),m.push(s);var $e=new ht({terminalType:U.separator}),on=new Nt({definition:[$e].concat(U.definition),idx:U.idx}),yt=U.definition.concat([on],Mn(A)),_={idx:b,def:yt,ruleStack:O,occurrenceStack:R};m.push(_)}else if(U instanceof Nt){var xe={idx:b,def:Mn(A),ruleStack:O,occurrenceStack:R};m.push(xe),m.push(s);var on=new Nt({definition:U.definition,idx:U.idx}),yt=U.definition.concat([on],Mn(A)),_={idx:b,def:yt,ruleStack:O,occurrenceStack:R};m.push(_)}else if(U instanceof Sn)for(var Wn=U.definition.length-1;Wn>=0;Wn--){var an=U.definition[Wn],Lt={idx:b,def:an.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R};m.push(Lt),m.push(s)}else if(U instanceof Jt)m.push({idx:b,def:U.definition.concat(Mn(A)),ruleStack:O,occurrenceStack:R});else if(U instanceof br)m.push(QX(U,b,O,R));else throw Error("non exhaustive match")}}return g}function QX(e,t,n,i){var r=En(n);r.push(e.name);var a=En(i);return a.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:a}}var Fc,XX,F_,ty,R_,zA,__,YA,pp=ze(()=>{Yh();vt();QA();ki();Fc=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)}}(),XX=function(e){Fc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=En(this.path.ruleStack).reverse(),this.occurrenceStack=En(this.path.occurrenceStack).reverse(),this.ruleStack.pop(),this.occurrenceStack.pop(),this.updateExpectedNext(),this.walk(this.topProd),this.possibleTokTypes},t.prototype.walk=function(n,i){i===void 0&&(i=[]),this.found||e.prototype.walk.call(this,n,i)},t.prototype.walkProdRef=function(n,i,r){if(n.referencedRule.name===this.nextProductionName&&n.idx===this.nextProductionOccurrence){var a=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,a)}},t.prototype.updateExpectedNext=function(){at(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Nc),F_=function(e){Fc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Lc(s),this.found=!0}},t}(XX),ty=function(e){Fc(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}(Nc),R_=function(e){Fc(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}(ty),zA=function(e){Fc(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}(ty),__=function(e){Fc(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}(ty),YA=function(e){Fc(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}(ty);o(ny,"possiblePathsFrom");o(iy,"nextPossibleTokensAfter");o(QX,"expandTopLevelRule")});function M_(e){if(e instanceof rn)return Vt.OPTION;if(e instanceof Nt)return Vt.REPETITION;if(e instanceof Ln)return Vt.REPETITION_MANDATORY;if(e instanceof Fn)return Vt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof An)return Vt.REPETITION_WITH_SEPARATOR;if(e instanceof Sn)return Vt.ALTERNATION;throw Error("non exhaustive match")}function w_(e,t,n,i,r,a){var s=dp(e,t,n),l=G_(s)?$l:Oc;return a(s,i,l,r)}function k_(e,t,n,i,r,a){var s=gp(e,t,r,n),l=G_(s)?$l:Oc;return a(s[0],l,i)}function U_(e,t,n,i){var r=e.length,a=ui(e,function(u){return ui(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function(j){return j.GATE}),g=0;g<r;g++){var m=e[g],T=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var b=0;b<T;b++){for(var O=m[b],R=O.length,U=0;U<R;U++){var W=this.LA(U+1);if(n(W,O[U])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Nn(u)}),l=un(s,function(u,p,g){return ve(p,function(m){Oe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ve(m.categoryMatches,function(T){Oe(u,T)||(u[T]=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 T=p[m],A=T.length,b=0;b<A;b++){var O=this.LA(b+1);if(n(O,T[b])===!1)continue e}return u}}}}function j_(e,t,n){var i=ui(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Nn(e);if(a.length===1&&at(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,ve(g.categoryMatches,function(T){p[T]=!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,T=0;T<m;T++){var A=this.LA(T+1);if(t(A,g[T])===!1)continue e}return!0}return!1}}function D_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function JA(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 zX(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 B_(e,t){for(var n=pe(e,function(g){return ny([g],1)}),i=D_(n.length),r=pe(n,function(g){var m={};return ve(g,function(T){var A=JA(T.partialPath);ve(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=D_(l.length);for(var u=o(function(g){for(var m=l[g],T=0;T<m.length;T++){var A=m[T].partialPath,b=m[T].suffixDef,O=JA(A),R=zX(r,O,g);if(R||at(b)||A.length===t){var U=i[g];if(ry(U,A)===!1){U.push(A);for(var W=0;W<O.length;W++){var j=O[W];r[g][j]=!0}}}else{var ae=ny(b,s+1,A);a[g]=a[g].concat(ae),ve(ae,function(Z){var re=JA(Z.partialPath);ve(re,function(xe){r[g][xe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function dp(e,t,n,i){var r=new $_(e,Vt.ALTERNATION,i);return t.accept(r),B_(r.result,n)}function gp(e,t,n,i){var r=new $_(e,n);t.accept(r);var a=r.result,s=new qX(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return B_([u,p],i)}function ry(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 H_(e,t){return e.length<t.length&&ui(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function G_(e){return ui(e,function(t){return ui(t,function(n){return ui(n,function(i){return at(i.categoryMatches)})})})}var V_,Vt,qX,$_,mp=ze(()=>{vt();pp();Yh();Bl();ki();Gl();V_=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"})(Vt||(Vt={}));o(M_,"getProdType");o(w_,"buildLookaheadFuncForOr");o(k_,"buildLookaheadFuncForOptionalProd");o(U_,"buildAlternativesLookAheadFunc");o(j_,"buildSingleAlternativeLookaheadFunction");qX=function(e){V_(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,Vt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Vt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Nc),$_=function(e){V_(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,Vt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Vt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Vt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Vt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Vt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Vt.ALTERNATION)},t}(Wr);o(D_,"initializeArrayOfArrays");o(JA,"pathToHashKeys");o(zX,"isUniquePrefixHash");o(B_,"lookAheadSequenceFromAlternatives");o(dp,"getLookaheadPathsForOr");o(gp,"getLookaheadPathsForOptionalProd");o(ry,"containsPath");o(H_,"isStrictPrefixOfPath");o(G_,"areTokenCategoriesNotUsed")});function W_(e,t,n,i,r){var a=pe(e,function(A){return YX(A,i)}),s=pe(e,function(A){return Q_(A,A,i)}),l=[],u=[],p=[];ui(s,at)&&(l=pe(e,function(A){return t9(A,i)}),u=pe(e,function(A){return n9(A,t,i)}),p=o9(e,t,i));var g=c9(e,n,i),m=pe(e,function(A){return r9(A,i)}),T=pe(e,function(A){return e9(A,e,r,i)});return Nn(a.concat(p,s,l,u,g,m,T))}function YX(e,t){var n=new ZX;e.accept(n);var i=n.allProductions,r=U1(i,JX),a=vr(r,function(l){return l.length>1}),s=pe(Vn(a),function(l){var u=xi(l),p=t.buildDuplicateFoundError(e,l),g=Er(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},T=K_(u);return T&&(m.parameter=T),m});return s}function JX(e){return Er(e)+"_#_"+e.idx+"_#_"+K_(e)}function K_(e){return e instanceof ht?e.terminalType.name:e instanceof nn?e.nonTerminalName:""}function e9(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function X_(e,t,n){var i=[],r;return Dt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function Q_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=oy(t.definition);if(at(a))return[];var s=e.name,l=Dt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Ic(a,i.concat([e])),p=pe(u,function(g){var m=En(i);return m.push(g),Q_(e,g,n,m)});return r.concat(Nn(p))}function oy(e){var t=[];if(at(e))return t;var n=xi(e);if(n instanceof nn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof rn||n instanceof Ln||n instanceof Fn||n instanceof An||n instanceof Nt)t=t.concat(oy(n.definition));else if(n instanceof Sn)t=Nn(pe(n.definition,function(s){return oy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Wl(n),r=e.length>1;if(i&&r){var a=Mn(e);return t.concat(oy(a))}else return t}function t9(e,t){var n=new eS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=ps(s.definition),u=pe(l,function(p,g){var m=iy([p],[],null,1);return at(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Ta(u))},[]);return r}function n9(e,t,n){var i=new eS;e.accept(i);var r=i.alternations;r=ya(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=dp(u,e,p,l),m=a9(g,l,e,n),T=s9(g,l,e,n);return s.concat(m,T)},[]);return a}function r9(e,t){var n=new eS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function o9(e,t,n){var i=[];return ve(e,function(r){var a=new i9;r.accept(a);var s=a.allProductions;ve(s,function(l){var u=M_(l),p=l.maxLookahead||t,g=l.idx,m=gp(g,r,u,p),T=m[0];if(at(Nn(T))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function a9(e,t,n,i){var r=[],a=un(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||ve(u,function(g){var m=[p];ve(e,function(T,A){p!==A&&ry(T,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!ry(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=pe(a,function(l){var u=pe(l.alts,function(g){return g+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function s9(e,t,n,i){var r=[],a=un(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return ve(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=w1(a,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&H_(T.path,p)}),m=pe(g,function(T){var A=[T.idx+1,u+1],b=t.idx===0?"":t.idx,O=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:T.path});return{message:O,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function c9(e,t,n){var i=[],r=pe(t,function(a){return a.name});return ve(e,function(a){var s=a.name;if(Dt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var ZA,ZX,eS,i9,tS=ze(()=>{vt();vt();Ar();Kl();mp();pp();ki();Gl();ZA=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(W_,"validateGrammar");o(YX,"validateDuplicateProductions");o(JX,"identifyProductionForDuplicates");o(K_,"getExtraProductionArgument");ZX=function(e){ZA(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}(Wr);o(e9,"validateRuleDoesNotAlreadyExist");o(X_,"validateRuleIsOverridden");o(Q_,"validateNoLeftRecursion");o(oy,"getFirstNoneTerminal");eS=function(e){ZA(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}(Wr);o(t9,"validateEmptyOrAlternative");o(n9,"validateAmbiguousAlternationAlternatives");i9=function(e){ZA(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}(Wr);o(r9,"validateTooManyAlts");o(o9,"validateSomeNonEmptyLookaheadPath");o(a9,"checkAlternativesAmbiguities");o(s9,"checkPrefixAlternativesAmbiguities");o(c9,"checkTerminalAndNoneTerminalsNameSpace")});function ay(e){e=ip(e,{errMsgProvider:ey});var t={};return ve(e.rules,function(n){t[n.name]=n}),N_(t,e.errMsgProvider)}function sy(e){return e=ip(e,{errMsgProvider:ys}),W_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function q_(e){ve(e.rules,function(t){var n=new XA;t.accept(n),ve(n.dslMethods,function(i){ve(i,function(r,a){r.idx=a+1})})})}var nS=ze(()=>{vt();L_();tS();up();Kl();o(ay,"resolveGrammar");o(sy,"validateGrammar");o(q_,"assignOccurrenceIndices")});function Aa(e){return Dt(eD,e.name)}var hp,z_,Y_,J_,Z_,eD,cy,Xl,ly,fy,uy,Ql=ze(()=>{vt();hp=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)}}(),z_="MismatchedTokenException",Y_="NoViableAltException",J_="EarlyExitException",Z_="NotAllInputParsedException",eD=[z_,Y_,J_,Z_];Object.freeze(eD);o(Aa,"isRecognitionException");cy=function(e){hp(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),Xl=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=z_,a}return o(t,"MismatchedTokenException"),t}(cy),ly=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=Y_,a}return o(t,"NoViableAltException"),t}(cy),fy=function(e){hp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=Z_,r}return o(t,"NotAllInputParsedException"),t}(cy),uy=function(e){hp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=J_,a}return o(t,"EarlyExitException"),t}(cy)});function tD(e){this.name=rS,this.message=e}function l9(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 T=u.token,A=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&T===void 0&&(T=Gr,A=1),this.shouldInRepetitionRecoveryBeTried(T,A,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var iS,rS,nD,oS=ze(()=>{hs();vt();Ql();qA();Ar();iS={},rS="InRuleRecoveryException";o(tD,"InRuleRecoveryException");tD.prototype=Error.prototype;nD=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Oe(t,"recoveryEnabled")?t.recoveryEnabled:er.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=l9)},e.prototype.getTokenToInsert=function(t){var n=ms(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),T=o(function(){var A=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),O=new Xl(b,g,a.LA(0));O.resyncedTokens=ps(u),a.SAVE_ERROR(O)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){T();return}else if(i.call(this)){T(),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 tD("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)||at(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 Dt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Dt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return iS;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?iS:{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 Nn(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===iS)return[Gr];var n=t.ruleName+t.idxInCallingRule+Zh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Gr)||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 ps(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,a,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=En(this.RULE_OCCURRENCE_STACK),a={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return a},e.prototype.getHumanReadableRuleStack=function(){var t=this;return pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(l9,"attemptInRepetitionRecovery")});function gy(e,t,n){return n|t|e}var iD,Ho,f9,py,dy,yp,vp,Tp,ql,hae,my=ze(()=>{iD=4,Ho=8,f9=8,py=1<<Ho,dy=2<<Ho,yp=3<<Ho,vp=4<<Ho,Tp=5<<Ho,ql=6<<Ho;o(gy,"getKeyForAutomaticLookahead");hae=32-f9});var rD,oD=ze(()=>{mp();vt();Ar();my();Kl();rD=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Oe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:er.dynamicTokensEnabled,this.maxLookahead=Oe(t,"maxLookahead")?t.maxLookahead:er.maxLookahead,this.lookAheadFuncsCache=wA()?new Map:[],wA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;ve(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=C_(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;ve(a,function(m){var T=m.idx===0?"":m.idx;n.TRACE_INIT(""+Er(m)+T,function(){var A=w_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=gy(n.fullRuleNameToShort[i.name],py,m.idx);n.setLaFuncCache(b,A)})}),ve(s,function(m){n.computeLookaheadFunc(i,m.idx,yp,Vt.REPETITION,m.maxLookahead,Er(m))}),ve(l,function(m){n.computeLookaheadFunc(i,m.idx,dy,Vt.OPTION,m.maxLookahead,Er(m))}),ve(u,function(m){n.computeLookaheadFunc(i,m.idx,vp,Vt.REPETITION_MANDATORY,m.maxLookahead,Er(m))}),ve(p,function(m){n.computeLookaheadFunc(i,m.idx,ql,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Er(m))}),ve(g,function(m){n.computeLookaheadFunc(i,m.idx,Tp,Vt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Er(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=k_(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=gy(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return j_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return U_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return gy(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 aS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function sS(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 aD(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function sD(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var cD=ze(()=>{o(aS,"setNodeLocationOnlyOffset");o(sS,"setNodeLocationFull");o(aD,"addTerminalToCst");o(sD,"addNoneTerminalToCst")});function fD(e){return bp(e.constructor)}function bp(e){var t=e.name;return t||"anonymous"}function cS(e,t){var n=Object.getOwnPropertyDescriptor(e,lD);return Ci(n)||n.configurable?(Object.defineProperty(e,lD,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var lD,lS=ze(()=>{vt();o(fD,"classNameFromInstance");lD="name";o(bp,"functionName");o(cS,"defineNameProp")});function u9(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 uD(e,t){var n=o(function(){},"derivedConstructor");cS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(fi(r)&&(r=r[0]),!Ci(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=p9(this,t);if(!at(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+bp(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 pD(e,t,n){var i=o(function(){},"derivedConstructor");cS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ye(t,function(a){r[a]=u9}),i.prototype=r,i.prototype.constructor=i,i}function p9(e,t){var n=d9(e,t),i=m9(e,t);return n.concat(i)}function d9(e,t){var n=ue(t,function(i){if(!fo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+Ep(e.constructor)+" CST Visitor.",type:hy.MISSING_METHOD,methodName:i}});return Ta(n)}function m9(e,t){var n=[];for(var i in e)fo(e[i])&&!Dt(g9,i)&&!Dt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+Ep(e.constructor)+` CST Visitor
168
+ `)))}},"validateVisitor")};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function pD(e,t,n){var i=o(function(){},"derivedConstructor");cS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ve(t,function(a){r[a]=u9}),i.prototype=r,i.prototype.constructor=i,i}function p9(e,t){var n=d9(e,t),i=m9(e,t);return n.concat(i)}function d9(e,t){var n=pe(t,function(i){if(!fo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+bp(e.constructor)+" CST Visitor.",type:hy.MISSING_METHOD,methodName:i}});return Ta(n)}function m9(e,t){var n=[];for(var i in e)fo(e[i])&&!Dt(g9,i)&&!Dt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+bp(e.constructor)+` CST Visitor
169
169
  There is no Grammar Rule corresponding to this method's name.
170
- `,type:hy.REDUNDANT_METHOD,methodName:i});return n}var hy,g9,dD=ze(()=>{vt();lS();o(u9,"defaultVisit");o(uD,"createBaseSemanticVisitorConstructor");o(pD,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(hy||(hy={}));o(p9,"validateVisitor");o(d9,"validateMissingCstMethods");g9=["constructor","visit","validateVisitor"];o(m9,"validateRedundantMethods")});var gD,mD=ze(()=>{cD();vt();dD();Er();gD=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Oe(t,"nodeLocationTracking")?t.nodeLocationTracking:Zi.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=wn,this.cstFinallyStateUpdate=wn,this.cstPostTerminal=wn,this.cstPostNonTerminal=wn,this.cstPostRule=wn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=sS,this.setNodeLocationFromNode=sS,this.cstPostRule=wn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=aS,this.setNodeLocationFromNode=aS,this.cstPostRule=wn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=wn,this.setInitialNodeLocation=wn;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];aD(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];sD(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Pi(this.baseCstVisitorConstructor)){var t=uD(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Pi(this.baseCstVisitorWithDefaultsConstructor)){var t=pD(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 hD,yD=ze(()=>{Er();hD=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)):zl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?zl: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 vD,TD=ze(()=>{vt();Ql();Er();up();tS();ki();vD=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=Yl),Dt(this.definedRulesNames,t)){var r=ys.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Yl);var r=[];r=r.concat(X_(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(Aa(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return zh(Vn(this.gastProductionsCache))},e}()});var ED,bD=ze(()=>{vt();my();Ql();mp();pp();Er();oS();hs();Bl();lS();ED=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=fD(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=$l,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Oe(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
170
+ `,type:hy.REDUNDANT_METHOD,methodName:i});return n}var hy,g9,dD=ze(()=>{vt();lS();o(u9,"defaultVisit");o(uD,"createBaseSemanticVisitorConstructor");o(pD,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(hy||(hy={}));o(p9,"validateVisitor");o(d9,"validateMissingCstMethods");g9=["constructor","visit","validateVisitor"];o(m9,"validateRedundantMethods")});var gD,mD=ze(()=>{cD();vt();dD();Ar();gD=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Oe(t,"nodeLocationTracking")?t.nodeLocationTracking:er.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=wn,this.cstFinallyStateUpdate=wn,this.cstPostTerminal=wn,this.cstPostNonTerminal=wn,this.cstPostRule=wn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=sS,this.setNodeLocationFromNode=sS,this.cstPostRule=wn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=aS,this.setNodeLocationFromNode=aS,this.cstPostRule=wn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=wn,this.setNodeLocationFromNode=wn,this.cstPostRule=wn,this.setInitialNodeLocation=wn;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];aD(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];sD(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ci(this.baseCstVisitorConstructor)){var t=uD(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ci(this.baseCstVisitorWithDefaultsConstructor)){var t=pD(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 hD,yD=ze(()=>{Ar();hD=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)):zl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?zl: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 vD,TD=ze(()=>{vt();Ql();Ar();up();tS();ki();vD=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=Yl),Dt(this.definedRulesNames,t)){var r=ys.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Yl);var r=[];r=r.concat(X_(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(Aa(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return zh(Vn(this.gastProductionsCache))},e}()});var bD,ED=ze(()=>{vt();my();Ql();mp();pp();Ar();oS();hs();Bl();lS();bD=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=fD(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=$l,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Oe(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(fi(t)){if(at(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(fi(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(Oe(t,"modes")&&ui(Ln(Vn(t.modes)),p_)){var i=Ln(Vn(t.modes)),r=np(i);this.tokensMap=un(r,function(s,l){return s[l.name]=l,s},{})}else if(Vh(t))this.tokensMap=ds(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=Gr;var a=ui(Vn(t),function(s){return at(s.categoryMatches)});this.tokenMatcher=a?$l:Oc,Ea(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
- Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Oe(i,"resyncEnabled")?i.resyncEnabled:Yl.resyncEnabled,a=Oe(i,"recoveryValueFunc")?i.recoveryValueFunc:Yl.recoveryValueFunc,s=this.ruleShortNameIdx<<iD+Ho;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(T){return this.invokeRuleCatch(T,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(Aa(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(dy,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(vp,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,Vt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,vp,t,__)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ql,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,YA],u,ql,t,YA)}else throw this.raiseEarlyExitException(t,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(yp,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,yp,t,R_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tp,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,zA],u,Tp,t,zA)}},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,ql,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(py,n),r=fi(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 fy(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 Aa(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 Xl(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===rS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=An(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),Gr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var AD,SD=ze(()=>{Ql();vt();mp();Er();AD=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Oe(t,"errorMessageProvider")?t.errorMessageProvider:Zi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Aa(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:An(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 An(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=gp(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 uy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=dp(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 ly(p,this.LA(1),u))},e}()});var PD,xD=ze(()=>{pp();vt();PD=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Pi(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return iy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Si(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new F_(r,t).startWalking();return a},e}()});function bp(e,t,n,i){i===void 0&&(i=!1),yy(n);var r=op(this.recordingProdStack),a=fo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Oe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),vy}function y9(e,t){var n=this;yy(t);var i=op(this.recordingProdStack),r=fi(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Oe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Mh(a,function(u){return fo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ye(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),Oe(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Oe(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),vy}function OD(e){return e===0?"":""+e}function yy(e){if(e<0||e>ID){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
- `+("Idx value must be a none negative value smaller than "+(ID+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var vy,CD,ID,ND,LD,h9,FD,RD=ze(()=>{vt();ki();sp();Bl();hs();Er();my();vy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(vy);CD=!0,ID=Math.pow(2,Ho)-1,ND=lp({name:"RECORDING_PHASE_TOKEN",pattern:wi.NA});Ea([ND]);LD=ms(ND,`This IToken indicates the Parser is in Recording Phase
176
+ For Further details.`)}if(fi(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(Oe(t,"modes")&&ui(Nn(Vn(t.modes)),p_)){var i=Nn(Vn(t.modes)),r=np(i);this.tokensMap=un(r,function(s,l){return s[l.name]=l,s},{})}else if(Vh(t))this.tokensMap=ds(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=Gr;var a=ui(Vn(t),function(s){return at(s.categoryMatches)});this.tokenMatcher=a?$l:Oc,ba(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Oe(i,"resyncEnabled")?i.resyncEnabled:Yl.resyncEnabled,a=Oe(i,"recoveryValueFunc")?i.recoveryValueFunc:Yl.recoveryValueFunc,s=this.ruleShortNameIdx<<iD+Ho;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(T){return this.invokeRuleCatch(T,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(Aa(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(dy,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(vp,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,Vt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,vp,t,__)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(ql,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,YA],u,ql,t,YA)}else throw this.raiseEarlyExitException(t,Vt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(yp,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,yp,t,R_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tp,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,zA],u,Tp,t,zA)}},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,ql,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(py,n),r=fi(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 fy(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 Aa(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 Xl(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===rS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=En(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Gr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var AD,SD=ze(()=>{Ql();vt();mp();Ar();AD=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Oe(t,"errorMessageProvider")?t.errorMessageProvider:er.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Aa(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:En(this.RULE_OCCURRENCE_STACK)},this._errors.push(t),t;throw Error("Trying to save an Error which is not a RecognitionException")},Object.defineProperty(e.prototype,"errors",{get:o(function(){return En(this._errors)},"get"),set:o(function(t){this._errors=t},"set"),enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),a=this.getGAstProductions()[r],s=gp(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 uy(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=dp(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 ly(p,this.LA(1),u))},e}()});var PD,xD=ze(()=>{pp();vt();PD=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 iy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=xi(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new F_(r,t).startWalking();return a},e}()});function Ep(e,t,n,i){i===void 0&&(i=!1),yy(n);var r=op(this.recordingProdStack),a=fo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Oe(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),vy}function y9(e,t){var n=this;yy(t);var i=op(this.recordingProdStack),r=fi(e)===!1,a=r===!1?e:e.DEF,s=new Sn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Oe(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Mh(a,function(u){return fo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ve(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),Oe(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Oe(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),vy}function OD(e){return e===0?"":""+e}function yy(e){if(e<0||e>ID){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
+ `+("Idx value must be a none negative value smaller than "+(ID+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var vy,CD,ID,ND,LD,h9,FD,RD=ze(()=>{vt();ki();sp();Bl();hs();Ar();my();vy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(vy);CD=!0,ID=Math.pow(2,Ho)-1,ND=lp({name:"RECORDING_PHASE_TOKEN",pattern:wi.NA});ba([ND]);LD=ms(ND,`This IToken indicates the Parser is in Recording Phase
179
179
  See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(LD);h9={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:{}},FD=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 zl},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new vr({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+`
180
+ See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},FD=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 zl},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new br({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 bp.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){bp.call(this,Fn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){bp.call(this,Rn,n,t,CD)},e.prototype.manyInternalRecord=function(t,n){bp.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){bp.call(this,Sn,n,t,CD)},e.prototype.orInternalRecord=function(t,n){return y9.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(yy(n),!t||Oe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+OD(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
183
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=op(this.recordingProdStack),s=t.ruleName,l=new rn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?h9:vy},e.prototype.consumeInternalRecord=function(t,n,i){if(yy(n),!GA(t)){var r=new Error("<CONSUME"+OD(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
184
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=op(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),LD},e}();o(bp,"recordProd");o(y9,"recordOrProd");o(OD,"getIdxSuffix");o(yy,"assertMethodIdxIsValid")});var _D,DD=ze(()=>{vt();Er();_D=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Oe(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=Zi.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Uh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function MD(e){return e===void 0&&(e=void 0),function(){return e}}var VD,zl,Zi,Yl,Gn,fS,wD,kD,Er=ze(()=>{vt();O_();hs();up();nS();oS();oD();mD();yD();TD();bD();SD();xD();RD();DD();VD=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)}}(),zl=ms(Gr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(zl);Zi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:fp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Yl=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Gn||(Gn={}));o(MD,"EMPTY_ALT");fS=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),Oe(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
182
+ https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return Ep.call(this,rn,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Ep.call(this,Ln,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Ep.call(this,Fn,n,t,CD)},e.prototype.manyInternalRecord=function(t,n){Ep.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){Ep.call(this,An,n,t,CD)},e.prototype.orInternalRecord=function(t,n){return y9.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(yy(n),!t||Oe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+OD(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
183
+ inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=op(this.recordingProdStack),s=t.ruleName,l=new nn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?h9:vy},e.prototype.consumeInternalRecord=function(t,n,i){if(yy(n),!GA(t)){var r=new Error("<CONSUME"+OD(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
184
+ inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=op(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),LD},e}();o(Ep,"recordProd");o(y9,"recordOrProd");o(OD,"getIdxSuffix");o(yy,"assertMethodIdxIsValid")});var _D,DD=ze(()=>{vt();Ar();_D=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Oe(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=er.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Uh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function MD(e){return e===void 0&&(e=void 0),function(){return e}}var VD,zl,er,Yl,Gn,fS,wD,kD,Ar=ze(()=>{vt();O_();hs();up();nS();oS();oD();mD();yD();TD();ED();SD();xD();RD();DD();VD=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)}}(),zl=ms(Gr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(zl);er=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:fp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Yl=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Gn||(Gn={}));o(MD,"EMPTY_ALT");fS=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),Oe(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=Oe(n,"skipValidations")?n.skipValidations:Zi.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(){kh(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=ay({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(at(r)&&t.skipValidations===!1){var a=sy({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:ys,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),at(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=I_(Vn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!at(t.definitionErrors))throw n=ue(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
187
+ For further details.`);this.skipValidations=Oe(n,"skipValidations")?n.skipValidations:er.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(){kh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),ve(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=ay({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(at(r)&&t.skipValidations===!1){var a=sy({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:ys,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),at(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=I_(Vn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!at(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}();$1(fS,[nD,rD,gD,hD,ED,vD,AD,PD,FD,_D]);wD=function(e){VD(t,e);function t(n,i){i===void 0&&(i=Zi);var r=this,a=ds(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(fS),kD=function(e){VD(t,e);function t(n,i){i===void 0&&(i=Zi);var r=this,a=ds(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(fS)});function UD(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+tp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+tp+"/diagrams/diagrams.css":a,l=`
190
+ `))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();$1(fS,[nD,rD,gD,hD,bD,vD,AD,PD,FD,_D]);wD=function(e){VD(t,e);function t(n,i){i===void 0&&(i=er);var r=this,a=ds(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(fS),kD=function(e){VD(t,e);function t(n,i){i===void 0&&(i=er);var r=this,a=ds(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(fS)});function UD(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+tp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+tp+"/diagrams/diagrams.css":a,l=`
191
191
  <!-- This is a generated file -->
192
192
  <!DOCTYPE html>
193
193
  <meta charset="utf-8">
@@ -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 v9(e){var t=ue(e,function(n){return T9(n,1)});return t.join(`
264
- `)}function T9(e,t){var n=Ui(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=Ty(e.definition,t+1),n+=Ui(t+1,"})")+ei,n}function E9(e,t){var n=e.terminalType.name;return Ui(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function b9(e,t){return Ui(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function A9(e,t){var n=Ui(t,"$.OR"+e.idx+"([")+ei,i=ue(e.definition,function(r){return S9(r,t+1)});return n+=i.join(","+ei),n+=ei+Ui(t,"])"+ei),n}function S9(e,t){var n=Ui(t,"{")+ei;return n+=Ui(t+1,"ALT: function() {")+ei,n+=Ty(e.definition,t+1),n+=Ui(t+1,"}")+ei,n+=Ui(t,"}"),n}function P9(e,t){if(e instanceof rn)return b9(e,t);if(e instanceof on)return Ap("OPTION",e,t);if(e instanceof Fn)return Ap("AT_LEAST_ONE",e,t);if(e instanceof Rn)return Ap("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return Ap("MANY_SEP",e,t);if(e instanceof Nt)return Ap("MANY",e,t);if(e instanceof Pn)return A9(e,t);if(e instanceof ht)return E9(e,t);if(e instanceof Jt)return Ty(e.definition,t);throw Error("non exhaustive match")}function Ap(e,t,n){var i=Ui(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=Ui(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+$D(t.definition,n+2)+ei,i+=Ui(n,"}")+ei):i+=$D(t.definition,n+1),i+=Ui(n,")")+ei,i}function $D(e,t){var n="function() {"+ei;return n+=Ty(e,t),n+=Ui(t,"}")+ei,n}function Ty(e,t){var n="";return ye(e,function(i){n+=P9(i,t+1)}),n}function Ui(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,WD=ze(()=>{vt();ki();ei=`
265
- `;o(BD,"genUmdModule");o(HD,"genWrapperFunction");o(GD,"genClass");o(v9,"genAllRules");o(T9,"genRule");o(E9,"genTerminal");o(b9,"genNonTerminal");o(A9,"genAlternation");o(S9,"genSingleAlt");o(P9,"genProd");o(Ap,"genDSLRule");o($D,"genDefFunction");o(Ty,"genDefinition");o(Ui,"indent")});function KD(e){var t=HD({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(by(),sg(Ey)))}}function XD(e){return BD({name:e.name,rules:e.rules})}var QD=ze(()=>{WD();o(KD,"generateParserFactory");o(XD,"generateParserModule")});var Ey={};Ws(Ey,{Alternation:()=>Pn,Alternative:()=>Jt,CstParser:()=>wD,EMPTY_ALT:()=>MD,EOF:()=>Gr,EarlyExitException:()=>uy,EmbeddedActionsParser:()=>kD,GAstVisitor:()=>Wr,Lexer:()=>wi,LexerDefinitionErrorType:()=>pn,MismatchedTokenException:()=>Xl,NoViableAltException:()=>ly,NonTerminal:()=>rn,NotAllInputParsedException:()=>fy,Option:()=>on,Parser:()=>C9,ParserDefinitionErrorType:()=>Gn,Repetition:()=>Nt,RepetitionMandatory:()=>Fn,RepetitionMandatoryWithSeparator:()=>Rn,RepetitionWithSeparator:()=>Sn,Rule:()=>vr,Terminal:()=>ht,VERSION:()=>tp,assignOccurrenceIndices:()=>q_,clearCache:()=>x9,createSyntaxDiagramsCode:()=>UD,createToken:()=>lp,createTokenInstance:()=>ms,defaultGrammarResolverErrorProvider:()=>ey,defaultGrammarValidatorErrorProvider:()=>ys,defaultLexerErrorProvider:()=>qh,defaultParserErrorProvider:()=>fp,generateParserFactory:()=>KD,generateParserModule:()=>XD,isRecognitionException:()=>Aa,resolveGrammar:()=>ay,serializeGrammar:()=>zh,serializeProduction:()=>Hl,tokenLabel:()=>Bo,tokenMatcher:()=>A_,tokenName:()=>b_,validateGrammar:()=>sy});function x9(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
263
+ `;return t}function v9(e){var t=pe(e,function(n){return T9(n,1)});return t.join(`
264
+ `)}function T9(e,t){var n=Ui(t,'$.RULE("'+e.name+'", function() {')+ei;return n+=Ty(e.definition,t+1),n+=Ui(t+1,"})")+ei,n}function b9(e,t){var n=e.terminalType.name;return Ui(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ei)}function E9(e,t){return Ui(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ei)}function A9(e,t){var n=Ui(t,"$.OR"+e.idx+"([")+ei,i=pe(e.definition,function(r){return S9(r,t+1)});return n+=i.join(","+ei),n+=ei+Ui(t,"])"+ei),n}function S9(e,t){var n=Ui(t,"{")+ei;return n+=Ui(t+1,"ALT: function() {")+ei,n+=Ty(e.definition,t+1),n+=Ui(t+1,"}")+ei,n+=Ui(t,"}"),n}function P9(e,t){if(e instanceof nn)return E9(e,t);if(e instanceof rn)return Ap("OPTION",e,t);if(e instanceof Ln)return Ap("AT_LEAST_ONE",e,t);if(e instanceof Fn)return Ap("AT_LEAST_ONE_SEP",e,t);if(e instanceof An)return Ap("MANY_SEP",e,t);if(e instanceof Nt)return Ap("MANY",e,t);if(e instanceof Sn)return A9(e,t);if(e instanceof ht)return b9(e,t);if(e instanceof Jt)return Ty(e.definition,t);throw Error("non exhaustive match")}function Ap(e,t,n){var i=Ui(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ei,i+=Ui(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ei,i+="DEF: "+$D(t.definition,n+2)+ei,i+=Ui(n,"}")+ei):i+=$D(t.definition,n+1),i+=Ui(n,")")+ei,i}function $D(e,t){var n="function() {"+ei;return n+=Ty(e,t),n+=Ui(t,"}")+ei,n}function Ty(e,t){var n="";return ve(e,function(i){n+=P9(i,t+1)}),n}function Ui(e,t){var n=Array(e*4+1).join(" ");return n+t}var ei,WD=ze(()=>{vt();ki();ei=`
265
+ `;o(BD,"genUmdModule");o(HD,"genWrapperFunction");o(GD,"genClass");o(v9,"genAllRules");o(T9,"genRule");o(b9,"genTerminal");o(E9,"genNonTerminal");o(A9,"genAlternation");o(S9,"genSingleAlt");o(P9,"genProd");o(Ap,"genDSLRule");o($D,"genDefFunction");o(Ty,"genDefinition");o(Ui,"indent")});function KD(e){var t=HD({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Ey(),sg(by)))}}function XD(e){return BD({name:e.name,rules:e.rules})}var QD=ze(()=>{WD();o(KD,"generateParserFactory");o(XD,"generateParserModule")});var by={};Ws(by,{Alternation:()=>Sn,Alternative:()=>Jt,CstParser:()=>wD,EMPTY_ALT:()=>MD,EOF:()=>Gr,EarlyExitException:()=>uy,EmbeddedActionsParser:()=>kD,GAstVisitor:()=>Wr,Lexer:()=>wi,LexerDefinitionErrorType:()=>pn,MismatchedTokenException:()=>Xl,NoViableAltException:()=>ly,NonTerminal:()=>nn,NotAllInputParsedException:()=>fy,Option:()=>rn,Parser:()=>C9,ParserDefinitionErrorType:()=>Gn,Repetition:()=>Nt,RepetitionMandatory:()=>Ln,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>An,Rule:()=>br,Terminal:()=>ht,VERSION:()=>tp,assignOccurrenceIndices:()=>q_,clearCache:()=>x9,createSyntaxDiagramsCode:()=>UD,createToken:()=>lp,createTokenInstance:()=>ms,defaultGrammarResolverErrorProvider:()=>ey,defaultGrammarValidatorErrorProvider:()=>ys,defaultLexerErrorProvider:()=>qh,defaultParserErrorProvider:()=>fp,generateParserFactory:()=>KD,generateParserModule:()=>XD,isRecognitionException:()=>Aa,resolveGrammar:()=>ay,serializeGrammar:()=>zh,serializeProduction:()=>Hl,tokenLabel:()=>Bo,tokenMatcher:()=>A_,tokenName:()=>E_,validateGrammar:()=>sy});function x9(){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 C9,by=ze(()=>{DA();Er();sp();hs();up();Ql();WA();ki();ki();Gl();nS();jD();QD();o(x9,"clearCache");C9=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 dS=Ye((Ece,eV)=>{var{createToken:I9,Lexer:uS}=(by(),sg(Ey)),zD={},Jl=zD;function pS(e,t){zD[e]=typeof t=="string"?t:t.source}o(pS,"FRAGMENT");function Sp(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(Sp,"makePattern");var O9=[],YD={};function xn(e){let t=I9(e);return O9.push(t),YD[e.name]=t,t}o(xn,"createToken");pS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");pS("NameChar",Sp`${Jl.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);pS("Name",Sp`${Jl.NameStartChar}(${Jl.NameChar})*`);var qD=xn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),N9=xn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),L9=xn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),F9=xn({name:"DTD",pattern:/<!.*?>/,group:uS.SKIPPED}),R9=xn({name:"EntityRef",pattern:Sp`&${Jl.Name};`}),_9=xn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),D9=xn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),V9=xn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),JD=xn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),M9=xn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[JD]}),w9=xn({name:"PROCESSING_INSTRUCTION",pattern:Sp`<\\?${Jl.Name}.*\\?>`}),ZD=xn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),k9=xn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[ZD]}),U9=xn({name:"TEXT",pattern:/[^<&]+/}),j9=xn({name:"CLOSE",pattern:/>/,pop_mode:!0}),$9=xn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),B9=xn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),H9=xn({name:"SLASH",pattern:/\//}),G9=xn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),W9=xn({name:"EQUALS",pattern:/=/}),K9=xn({name:"Name",pattern:Sp`${Jl.Name}`}),X9=xn({name:"S",pattern:/[ \t\r\n]/,group:uS.SKIPPED}),Q9={defaultMode:"OUTSIDE",modes:{OUTSIDE:[qD,N9,L9,F9,R9,_9,D9,V9,JD,w9,ZD,U9],INSIDE:[qD,M9,k9,j9,$9,B9,H9,W9,G9,K9,X9]}},q9=new uS(Q9,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
- `],lineTerminatorsPattern:/\n|\r\n/g});eV.exports={xmlLexer:q9,tokensDictionary:YD}});var nV=Ye((Ace,tV)=>{var{CstParser:z9,tokenMatcher:Y9}=(by(),sg(Ey)),{tokensDictionary:Ct}=dS(),mS=class mS extends z9{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=>Y9(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(mS,"Parser");var gS=mS,J9=new gS;tV.exports={xmlParser:J9}});var hS=Ye((Pce,iV)=>{var{xmlLexer:Z9}=dS(),{xmlParser:Ay}=nV();iV.exports={parse:o(function(t){let n=Z9.tokenize(t);return Ay.input=n.tokens,{cst:Ay.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ay.errors}},"parse"),BaseXmlCstVisitor:Ay.getBaseCstVisitorConstructor()}});var xp=Ye((Zl,Pp)=>{(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,T=1,A=2,E=1,O=2,R=4,U=8,W=16,j=32,ae=64,Z=128,re=256,xe=512,_=30,ut="...",yt=800,$e=16,an=1,Wn=2,en=3,Lt=1/0,Re=9007199254740991,Oi=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,$i=Mt>>>1,_e=[["ary",Z],["bind",E],["bindKey",O],["curry",U],["curryRight",W],["flip",xe],["partial",j],["partialRight",ae],["rearg",re]],Kn="[object Arguments]",Ir="[object Array]",st="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",Ve="[object Function]",Ft="[object GeneratorFunction]",qe="[object Map]",wt="[object Number]",vn="[object Null]",cn="[object Object]",Bt="[object Promise]",ni="[object Proxy]",ir="[object RegExp]",dn="[object Set]",mi="[object String]",Ht="[object Symbol]",Xo="[object Undefined]",Bi="[object WeakMap]",Nf="[object WeakSet]",Ds="[object ArrayBuffer]",Or="[object DataView]",Lf="[object Float32Array]",Ff="[object Float64Array]",Rf="[object Int8Array]",Vs="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Fe="[object Uint32Array]",gn=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,me=/&(?:amp|lt|gt|quot|#39);/g,Te=/[&<>"']/g,Ce=RegExp(me.source),Ne=RegExp(Te.source),ot=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yd=/^\w*$/,sv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_f=/[\\^$.*+?()[\]{}|]/g,lw=RegExp(_f.source),cv=/^\s+/,fw=/\s/,uw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pw=/\{\n\/\* \[wrapped with (.+)\] \*/,dw=/,? & /,gw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mw=/[()=,{}\[\]\/\s]/,hw=/\\(\\)?/g,yw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eC=/\w*$/,vw=/^[-+]0x[0-9a-f]+$/i,Tw=/^0b[01]+$/i,Ew=/^\[object .+?Constructor\]$/,bw=/^0o[0-7]+$/i,Aw=/^(?:0|[1-9]\d*)$/,Sw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vd=/($^)/,Pw=/['\n\r\u2028\u2029\\]/g,Td="\\ud800-\\udfff",xw="\\u0300-\\u036f",Cw="\\ufe20-\\ufe2f",Iw="\\u20d0-\\u20ff",tC=xw+Cw+Iw,nC="\\u2700-\\u27bf",iC="a-z\\xdf-\\xf6\\xf8-\\xff",Ow="\\xac\\xb1\\xd7\\xf7",Nw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lw="\\u2000-\\u206f",Fw=" \\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",rC="A-Z\\xc0-\\xd6\\xd8-\\xde",oC="\\ufe0e\\ufe0f",aC=Ow+Nw+Lw+Fw,lv="['\u2019]",Rw="["+Td+"]",sC="["+aC+"]",Ed="["+tC+"]",cC="\\d+",_w="["+nC+"]",lC="["+iC+"]",fC="[^"+Td+aC+cC+nC+iC+rC+"]",fv="\\ud83c[\\udffb-\\udfff]",Dw="(?:"+Ed+"|"+fv+")",uC="[^"+Td+"]",uv="(?:\\ud83c[\\udde6-\\uddff]){2}",pv="[\\ud800-\\udbff][\\udc00-\\udfff]",Bc="["+rC+"]",pC="\\u200d",dC="(?:"+lC+"|"+fC+")",Vw="(?:"+Bc+"|"+fC+")",gC="(?:"+lv+"(?:d|ll|m|re|s|t|ve))?",mC="(?:"+lv+"(?:D|LL|M|RE|S|T|VE))?",hC=Dw+"?",yC="["+oC+"]?",Mw="(?:"+pC+"(?:"+[uC,uv,pv].join("|")+")"+yC+hC+")*",ww="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vC=yC+hC+Mw,Uw="(?:"+[_w,uv,pv].join("|")+")"+vC,jw="(?:"+[uC+Ed+"?",Ed,uv,pv,Rw].join("|")+")",$w=RegExp(lv,"g"),Bw=RegExp(Ed,"g"),dv=RegExp(fv+"(?="+fv+")|"+jw+vC,"g"),Hw=RegExp([Bc+"?"+lC+"+"+gC+"(?="+[sC,Bc,"$"].join("|")+")",Vw+"+"+mC+"(?="+[sC,Bc+dC,"$"].join("|")+")",Bc+"?"+dC+"+"+gC,Bc+"+"+mC,kw,ww,cC,Uw].join("|"),"g"),Gw=RegExp("["+pC+Td+tC+oC+"]"),Ww=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kw=["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"],Xw=-1,tn={};tn[Lf]=tn[Ff]=tn[Rf]=tn[Vs]=tn[k]=tn[B]=tn[Q]=tn[ce]=tn[Fe]=!0,tn[Kn]=tn[Ir]=tn[Ds]=tn[I]=tn[Or]=tn[S]=tn[V]=tn[Ve]=tn[qe]=tn[wt]=tn[cn]=tn[ir]=tn[dn]=tn[mi]=tn[Bi]=!1;var qt={};qt[Kn]=qt[Ir]=qt[Ds]=qt[Or]=qt[I]=qt[S]=qt[Lf]=qt[Ff]=qt[Rf]=qt[Vs]=qt[k]=qt[qe]=qt[wt]=qt[cn]=qt[ir]=qt[dn]=qt[mi]=qt[Ht]=qt[B]=qt[Q]=qt[ce]=qt[Fe]=!0,qt[V]=qt[Ve]=qt[Bi]=!1;var Qw={\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"},qw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zw={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Yw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jw=parseFloat,Zw=parseInt,TC=typeof global=="object"&&global&&global.Object===Object&&global,e2=typeof self=="object"&&self&&self.Object===Object&&self,Xn=TC||e2||Function("return this")(),gv=typeof Zl=="object"&&Zl&&!Zl.nodeType&&Zl,Ms=gv&&typeof Pp=="object"&&Pp&&!Pp.nodeType&&Pp,EC=Ms&&Ms.exports===gv,mv=EC&&TC.process,Nr=function(){try{var M=Ms&&Ms.require&&Ms.require("util").types;return M||mv&&mv.binding&&mv.binding("util")}catch{}}(),bC=Nr&&Nr.isArrayBuffer,AC=Nr&&Nr.isDate,SC=Nr&&Nr.isMap,PC=Nr&&Nr.isRegExp,xC=Nr&&Nr.isSet,CC=Nr&&Nr.isTypedArray;function or(M,X,G){switch(G.length){case 0:return M.call(X);case 1:return M.call(X,G[0]);case 2:return M.call(X,G[0],G[1]);case 3:return M.call(X,G[0],G[1],G[2])}return M.apply(X,G)}o(or,"apply");function t2(M,X,G,Ae){for(var We=-1,St=M==null?0:M.length;++We<St;){var Un=M[We];X(Ae,Un,G(Un),M)}return Ae}o(t2,"arrayAggregator");function Lr(M,X){for(var G=-1,Ae=M==null?0:M.length;++G<Ae&&X(M[G],G,M)!==!1;);return M}o(Lr,"arrayEach");function n2(M,X){for(var G=M==null?0:M.length;G--&&X(M[G],G,M)!==!1;);return M}o(n2,"arrayEachRight");function IC(M,X){for(var G=-1,Ae=M==null?0:M.length;++G<Ae;)if(!X(M[G],G,M))return!1;return!0}o(IC,"arrayEvery");function Oa(M,X){for(var G=-1,Ae=M==null?0:M.length,We=0,St=[];++G<Ae;){var Un=M[G];X(Un,G,M)&&(St[We++]=Un)}return St}o(Oa,"arrayFilter");function bd(M,X){var G=M==null?0:M.length;return!!G&&Hc(M,X,0)>-1}o(bd,"arrayIncludes");function hv(M,X,G){for(var Ae=-1,We=M==null?0:M.length;++Ae<We;)if(G(X,M[Ae]))return!0;return!1}o(hv,"arrayIncludesWith");function fn(M,X){for(var G=-1,Ae=M==null?0:M.length,We=Array(Ae);++G<Ae;)We[G]=X(M[G],G,M);return We}o(fn,"arrayMap");function Na(M,X){for(var G=-1,Ae=X.length,We=M.length;++G<Ae;)M[We+G]=X[G];return M}o(Na,"arrayPush");function yv(M,X,G,Ae){var We=-1,St=M==null?0:M.length;for(Ae&&St&&(G=M[++We]);++We<St;)G=X(G,M[We],We,M);return G}o(yv,"arrayReduce");function i2(M,X,G,Ae){var We=M==null?0:M.length;for(Ae&&We&&(G=M[--We]);We--;)G=X(G,M[We],We,M);return G}o(i2,"arrayReduceRight");function vv(M,X){for(var G=-1,Ae=M==null?0:M.length;++G<Ae;)if(X(M[G],G,M))return!0;return!1}o(vv,"arraySome");var r2=Tv("length");function o2(M){return M.split("")}o(o2,"asciiToArray");function a2(M){return M.match(gw)||[]}o(a2,"asciiWords");function OC(M,X,G){var Ae;return G(M,function(We,St,Un){if(X(We,St,Un))return Ae=St,!1}),Ae}o(OC,"baseFindKey");function Ad(M,X,G,Ae){for(var We=M.length,St=G+(Ae?1:-1);Ae?St--:++St<We;)if(X(M[St],St,M))return St;return-1}o(Ad,"baseFindIndex");function Hc(M,X,G){return X===X?T2(M,X,G):Ad(M,NC,G)}o(Hc,"baseIndexOf");function s2(M,X,G,Ae){for(var We=G-1,St=M.length;++We<St;)if(Ae(M[We],X))return We;return-1}o(s2,"baseIndexOfWith");function NC(M){return M!==M}o(NC,"baseIsNaN");function LC(M,X){var G=M==null?0:M.length;return G?bv(M,X)/G:It}o(LC,"baseMean");function Tv(M){return function(X){return X==null?e:X[M]}}o(Tv,"baseProperty");function Ev(M){return function(X){return M==null?e:M[X]}}o(Ev,"basePropertyOf");function FC(M,X,G,Ae,We){return We(M,function(St,Un,Wt){G=Ae?(Ae=!1,St):X(G,St,Un,Wt)}),G}o(FC,"baseReduce");function c2(M,X){var G=M.length;for(M.sort(X);G--;)M[G]=M[G].value;return M}o(c2,"baseSortBy");function bv(M,X){for(var G,Ae=-1,We=M.length;++Ae<We;){var St=X(M[Ae]);St!==e&&(G=G===e?St:G+St)}return G}o(bv,"baseSum");function Av(M,X){for(var G=-1,Ae=Array(M);++G<M;)Ae[G]=X(G);return Ae}o(Av,"baseTimes");function l2(M,X){return fn(X,function(G){return[G,M[G]]})}o(l2,"baseToPairs");function RC(M){return M&&M.slice(0,MC(M)+1).replace(cv,"")}o(RC,"baseTrim");function ar(M){return function(X){return M(X)}}o(ar,"baseUnary");function Sv(M,X){return fn(X,function(G){return M[G]})}o(Sv,"baseValues");function Df(M,X){return M.has(X)}o(Df,"cacheHas");function _C(M,X){for(var G=-1,Ae=M.length;++G<Ae&&Hc(X,M[G],0)>-1;);return G}o(_C,"charsStartIndex");function DC(M,X){for(var G=M.length;G--&&Hc(X,M[G],0)>-1;);return G}o(DC,"charsEndIndex");function f2(M,X){for(var G=M.length,Ae=0;G--;)M[G]===X&&++Ae;return Ae}o(f2,"countHolders");var u2=Ev(Qw),p2=Ev(qw);function d2(M){return"\\"+Yw[M]}o(d2,"escapeStringChar");function g2(M,X){return M==null?e:M[X]}o(g2,"getValue");function Gc(M){return Gw.test(M)}o(Gc,"hasUnicode");function m2(M){return Ww.test(M)}o(m2,"hasUnicodeWord");function h2(M){for(var X,G=[];!(X=M.next()).done;)G.push(X.value);return G}o(h2,"iteratorToArray");function Pv(M){var X=-1,G=Array(M.size);return M.forEach(function(Ae,We){G[++X]=[We,Ae]}),G}o(Pv,"mapToArray");function VC(M,X){return function(G){return M(X(G))}}o(VC,"overArg");function La(M,X){for(var G=-1,Ae=M.length,We=0,St=[];++G<Ae;){var Un=M[G];(Un===X||Un===u)&&(M[G]=u,St[We++]=G)}return St}o(La,"replaceHolders");function Sd(M){var X=-1,G=Array(M.size);return M.forEach(function(Ae){G[++X]=Ae}),G}o(Sd,"setToArray");function y2(M){var X=-1,G=Array(M.size);return M.forEach(function(Ae){G[++X]=[Ae,Ae]}),G}o(y2,"setToPairs");function T2(M,X,G){for(var Ae=G-1,We=M.length;++Ae<We;)if(M[Ae]===X)return Ae;return-1}o(T2,"strictIndexOf");function E2(M,X,G){for(var Ae=G+1;Ae--;)if(M[Ae]===X)return Ae;return Ae}o(E2,"strictLastIndexOf");function Wc(M){return Gc(M)?A2(M):r2(M)}o(Wc,"stringSize");function zr(M){return Gc(M)?S2(M):o2(M)}o(zr,"stringToArray");function MC(M){for(var X=M.length;X--&&fw.test(M.charAt(X)););return X}o(MC,"trimmedEndIndex");var b2=Ev(zw);function A2(M){for(var X=dv.lastIndex=0;dv.test(M);)++X;return X}o(A2,"unicodeSize");function S2(M){return M.match(dv)||[]}o(S2,"unicodeToArray");function P2(M){return M.match(Hw)||[]}o(P2,"unicodeWords");var x2=o(function M(X){X=X==null?Xn:Fa.defaults(Xn.Object(),X,Fa.pick(Xn,Kw));var G=X.Array,Ae=X.Date,We=X.Error,St=X.Function,Un=X.Math,Wt=X.Object,xv=X.RegExp,C2=X.String,Fr=X.TypeError,Pd=G.prototype,I2=St.prototype,Kc=Wt.prototype,xd=X["__core-js_shared__"],Cd=I2.toString,Rt=Kc.hasOwnProperty,O2=0,wC=function(){var c=/[^.]+$/.exec(xd&&xd.keys&&xd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Id=Kc.toString,N2=Cd.call(Wt),L2=Xn._,F2=xv("^"+Cd.call(Rt).replace(_f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Od=EC?X.Buffer:e,Ra=X.Symbol,Nd=X.Uint8Array,kC=Od?Od.allocUnsafe:e,Ld=VC(Wt.getPrototypeOf,Wt),UC=Wt.create,jC=Kc.propertyIsEnumerable,Fd=Pd.splice,$C=Ra?Ra.isConcatSpreadable:e,Vf=Ra?Ra.iterator:e,ws=Ra?Ra.toStringTag:e,Rd=function(){try{var c=Bs(Wt,"defineProperty");return c({},"",{}),c}catch{}}(),R2=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,_2=Ae&&Ae.now!==Xn.Date.now&&Ae.now,D2=X.setTimeout!==Xn.setTimeout&&X.setTimeout,_d=Un.ceil,Dd=Un.floor,Cv=Wt.getOwnPropertySymbols,V2=Od?Od.isBuffer:e,BC=X.isFinite,M2=Pd.join,w2=VC(Wt.keys,Wt),jn=Un.max,hi=Un.min,k2=Ae.now,U2=X.parseInt,HC=Un.random,j2=Pd.reverse,Iv=Bs(X,"DataView"),Mf=Bs(X,"Map"),Ov=Bs(X,"Promise"),Xc=Bs(X,"Set"),wf=Bs(X,"WeakMap"),kf=Bs(Wt,"create"),Vd=wf&&new wf,Qc={},$2=Hs(Iv),B2=Hs(Mf),H2=Hs(Ov),G2=Hs(Xc),W2=Hs(wf),Md=Ra?Ra.prototype:e,Uf=Md?Md.valueOf:e,GC=Md?Md.toString:e;function P(c){if(Tn(c)&&!Qe(c)&&!(c instanceof pt)){if(c instanceof Rr)return c;if(Rt.call(c,"__wrapped__"))return WI(c)}return new Rr(c)}o(P,"lodash");var qc=function(){function c(){}return o(c,"object"),function(f){if(!mn(f))return{};if(UC)return UC(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function wd(){}o(wd,"baseLodash");function Rr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Rr,"LodashWrapper"),P.templateSettings={escape:ot,evaluate:Gt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=wd.prototype,P.prototype.constructor=P,Rr.prototype=qc(wd.prototype),Rr.prototype.constructor=Rr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(pt,"LazyWrapper");function K2(){var c=new pt(this.__wrapped__);return c.__actions__=Hi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Hi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Hi(this.__views__),c}o(K2,"lazyClone");function X2(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(X2,"lazyReverse");function Q2(){var c=this.__wrapped__.value(),f=this.__dir__,d=Qe(c),v=f<0,b=d?c.length:0,C=aU(0,b,this.__views__),L=C.start,F=C.end,w=F-L,Y=v?F:L-1,J=this.__iteratees__,ee=J.length,ge=0,Le=hi(w,this.__takeCount__);if(!d||!v&&b==w&&Le==w)return gI(c,this.__actions__);var ke=[];e:for(;w--&&ge<Le;){Y+=f;for(var et=-1,Ue=c[Y];++et<ee;){var ct=J[et],gt=ct.iteratee,lr=ct.type,Fi=gt(Ue);if(lr==Wn)Ue=Fi;else if(!Fi){if(lr==an)continue e;break e}}ke[ge++]=Ue}return ke}o(Q2,"lazyValue"),pt.prototype=qc(wd.prototype),pt.prototype.constructor=pt;function ks(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ks,"Hash");function q2(){this.__data__=kf?kf(null):{},this.size=0}o(q2,"hashClear");function z2(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(z2,"hashDelete");function Y2(c){var f=this.__data__;if(kf){var d=f[c];return d===s?e:d}return Rt.call(f,c)?f[c]:e}o(Y2,"hashGet");function J2(c){var f=this.__data__;return kf?f[c]!==e:Rt.call(f,c)}o(J2,"hashHas");function Z2(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=kf&&f===e?s:f,this}o(Z2,"hashSet"),ks.prototype.clear=q2,ks.prototype.delete=z2,ks.prototype.get=Y2,ks.prototype.has=J2,ks.prototype.set=Z2;function Qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(Qo,"ListCache");function ek(){this.__data__=[],this.size=0}o(ek,"listCacheClear");function tk(c){var f=this.__data__,d=kd(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():Fd.call(f,d,1),--this.size,!0}o(tk,"listCacheDelete");function nk(c){var f=this.__data__,d=kd(f,c);return d<0?e:f[d][1]}o(nk,"listCacheGet");function ik(c){return kd(this.__data__,c)>-1}o(ik,"listCacheHas");function rk(c,f){var d=this.__data__,v=kd(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(rk,"listCacheSet"),Qo.prototype.clear=ek,Qo.prototype.delete=tk,Qo.prototype.get=nk,Qo.prototype.has=ik,Qo.prototype.set=rk;function qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(qo,"MapCache");function ok(){this.size=0,this.__data__={hash:new ks,map:new(Mf||Qo),string:new ks}}o(ok,"mapCacheClear");function ak(c){var f=zd(this,c).delete(c);return this.size-=f?1:0,f}o(ak,"mapCacheDelete");function sk(c){return zd(this,c).get(c)}o(sk,"mapCacheGet");function ck(c){return zd(this,c).has(c)}o(ck,"mapCacheHas");function lk(c,f){var d=zd(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(lk,"mapCacheSet"),qo.prototype.clear=ok,qo.prototype.delete=ak,qo.prototype.get=sk,qo.prototype.has=ck,qo.prototype.set=lk;function Us(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new qo;++f<d;)this.add(c[f])}o(Us,"SetCache");function fk(c){return this.__data__.set(c,s),this}o(fk,"setCacheAdd");function uk(c){return this.__data__.has(c)}o(uk,"setCacheHas"),Us.prototype.add=Us.prototype.push=fk,Us.prototype.has=uk;function Yr(c){var f=this.__data__=new Qo(c);this.size=f.size}o(Yr,"Stack");function pk(){this.__data__=new Qo,this.size=0}o(pk,"stackClear");function dk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(dk,"stackDelete");function gk(c){return this.__data__.get(c)}o(gk,"stackGet");function mk(c){return this.__data__.has(c)}o(mk,"stackHas");function hk(c,f){var d=this.__data__;if(d instanceof Qo){var v=d.__data__;if(!Mf||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new qo(v)}return d.set(c,f),this.size=d.size,this}o(hk,"stackSet"),Yr.prototype.clear=pk,Yr.prototype.delete=dk,Yr.prototype.get=gk,Yr.prototype.has=mk,Yr.prototype.set=hk;function WC(c,f){var d=Qe(c),v=!d&&Gs(c),b=!d&&!v&&wa(c),C=!d&&!v&&!b&&Zc(c),L=d||v||b||C,F=L?Av(c.length,C2):[],w=F.length;for(var Y in c)(f||Rt.call(c,Y))&&!(L&&(Y=="length"||b&&(Y=="offset"||Y=="parent")||C&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||Zo(Y,w)))&&F.push(Y);return F}o(WC,"arrayLikeKeys");function KC(c){var f=c.length;return f?c[Uv(0,f-1)]:e}o(KC,"arraySample");function yk(c,f){return Yd(Hi(c),js(f,0,c.length))}o(yk,"arraySampleSize");function vk(c){return Yd(Hi(c))}o(vk,"arrayShuffle");function Nv(c,f,d){(d!==e&&!Jr(c[f],d)||d===e&&!(f in c))&&zo(c,f,d)}o(Nv,"assignMergeValue");function jf(c,f,d){var v=c[f];(!(Rt.call(c,f)&&Jr(v,d))||d===e&&!(f in c))&&zo(c,f,d)}o(jf,"assignValue");function kd(c,f){for(var d=c.length;d--;)if(Jr(c[d][0],f))return d;return-1}o(kd,"assocIndexOf");function Tk(c,f,d,v){return _a(c,function(b,C,L){f(v,b,d(b),L)}),v}o(Tk,"baseAggregator");function XC(c,f){return c&&Ao(f,Qn(f),c)}o(XC,"baseAssign");function Ek(c,f){return c&&Ao(f,Wi(f),c)}o(Ek,"baseAssignIn");function zo(c,f,d){f=="__proto__"&&Rd?Rd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(zo,"baseAssignValue");function Lv(c,f){for(var d=-1,v=f.length,b=G(v),C=c==null;++d<v;)b[d]=C?e:fT(c,f[d]);return b}o(Lv,"baseAt");function js(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(js,"baseClamp");function _r(c,f,d,v,b,C){var L,F=f&p,w=f&g,Y=f&m;if(d&&(L=b?d(c,v,b,C):d(c)),L!==e)return L;if(!mn(c))return c;var J=Qe(c);if(J){if(L=cU(c),!F)return Hi(c,L)}else{var ee=yi(c),ge=ee==Ve||ee==Ft;if(wa(c))return yI(c,F);if(ee==cn||ee==Kn||ge&&!b){if(L=w||ge?{}:MI(c),!F)return w?Yk(c,Ek(L,c)):zk(c,XC(L,c))}else{if(!qt[ee])return b?c:{};L=lU(c,ee,F)}}C||(C=new Yr);var Le=C.get(c);if(Le)return Le;C.set(c,L),uO(c)?c.forEach(function(Ue){L.add(_r(Ue,f,d,Ue,c,C))}):lO(c)&&c.forEach(function(Ue,ct){L.set(ct,_r(Ue,f,d,ct,c,C))});var ke=Y?w?zv:qv:w?Wi:Qn,et=J?e:ke(c);return Lr(et||c,function(Ue,ct){et&&(ct=Ue,Ue=c[ct]),jf(L,ct,_r(Ue,f,d,ct,c,C))}),L}o(_r,"baseClone");function bk(c){var f=Qn(c);return function(d){return QC(d,c,f)}}o(bk,"baseConforms");function QC(c,f,d){var v=d.length;if(c==null)return!v;for(c=Wt(c);v--;){var b=d[v],C=f[b],L=c[b];if(L===e&&!(b in c)||!C(L))return!1}return!0}o(QC,"baseConformsTo");function qC(c,f,d){if(typeof c!="function")throw new Fr(r);return Xf(function(){c.apply(e,d)},f)}o(qC,"baseDelay");function $f(c,f,d,v){var b=-1,C=bd,L=!0,F=c.length,w=[],Y=f.length;if(!F)return w;d&&(f=fn(f,ar(d))),v?(C=hv,L=!1):f.length>=n&&(C=Df,L=!1,f=new Us(f));e:for(;++b<F;){var J=c[b],ee=d==null?J:d(J);if(J=v||J!==0?J:0,L&&ee===ee){for(var ge=Y;ge--;)if(f[ge]===ee)continue e;w.push(J)}else C(f,ee,v)||w.push(J)}return w}o($f,"baseDifference");var _a=AI(bo),zC=AI(Rv,!0);function Ak(c,f){var d=!0;return _a(c,function(v,b,C){return d=!!f(v,b,C),d}),d}o(Ak,"baseEvery");function Ud(c,f,d){for(var v=-1,b=c.length;++v<b;){var C=c[v],L=f(C);if(L!=null&&(F===e?L===L&&!cr(L):d(L,F)))var F=L,w=C}return w}o(Ud,"baseExtremum");function Sk(c,f,d,v){var b=c.length;for(d=Ze(d),d<0&&(d=-d>b?0:b+d),v=v===e||v>b?b:Ze(v),v<0&&(v+=b),v=d>v?0:dO(v);d<v;)c[d++]=f;return c}o(Sk,"baseFill");function YC(c,f){var d=[];return _a(c,function(v,b,C){f(v,b,C)&&d.push(v)}),d}o(YC,"baseFilter");function ii(c,f,d,v,b){var C=-1,L=c.length;for(d||(d=uU),b||(b=[]);++C<L;){var F=c[C];f>0&&d(F)?f>1?ii(F,f-1,d,v,b):Na(b,F):v||(b[b.length]=F)}return b}o(ii,"baseFlatten");var Fv=SI(),JC=SI(!0);function bo(c,f){return c&&Fv(c,f,Qn)}o(bo,"baseForOwn");function Rv(c,f){return c&&JC(c,f,Qn)}o(Rv,"baseForOwnRight");function jd(c,f){return Oa(f,function(d){return ea(c[d])})}o(jd,"baseFunctions");function $s(c,f){f=Va(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[So(f[d++])];return d&&d==v?c:e}o($s,"baseGet");function ZC(c,f,d){var v=f(c);return Qe(c)?v:Na(v,d(c))}o(ZC,"baseGetAllKeys");function Ni(c){return c==null?c===e?Xo:vn:ws&&ws in Wt(c)?oU(c):vU(c)}o(Ni,"baseGetTag");function _v(c,f){return c>f}o(_v,"baseGt");function Pk(c,f){return c!=null&&Rt.call(c,f)}o(Pk,"baseHas");function xk(c,f){return c!=null&&f in Wt(c)}o(xk,"baseHasIn");function Ck(c,f,d){return c>=hi(f,d)&&c<jn(f,d)}o(Ck,"baseInRange");function Dv(c,f,d){for(var v=d?hv:bd,b=c[0].length,C=c.length,L=C,F=G(C),w=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=fn(J,ar(f))),w=hi(J.length,w),F[L]=!d&&(f||b>=120&&J.length>=120)?new Us(L&&J):e}J=c[0];var ee=-1,ge=F[0];e:for(;++ee<b&&Y.length<w;){var Le=J[ee],ke=f?f(Le):Le;if(Le=d||Le!==0?Le:0,!(ge?Df(ge,ke):v(Y,ke,d))){for(L=C;--L;){var et=F[L];if(!(et?Df(et,ke):v(c[L],ke,d)))continue e}ge&&ge.push(ke),Y.push(Le)}}return Y}o(Dv,"baseIntersection");function Ik(c,f,d,v){return bo(c,function(b,C,L){f(v,d(b),C,L)}),v}o(Ik,"baseInverter");function Bf(c,f,d){f=Va(f,c),c=jI(c,f);var v=c==null?c:c[So(Vr(f))];return v==null?e:or(v,c,d)}o(Bf,"baseInvoke");function eI(c){return Tn(c)&&Ni(c)==Kn}o(eI,"baseIsArguments");function Ok(c){return Tn(c)&&Ni(c)==Ds}o(Ok,"baseIsArrayBuffer");function Nk(c){return Tn(c)&&Ni(c)==S}o(Nk,"baseIsDate");function Hf(c,f,d,v,b){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:Lk(c,f,d,v,Hf,b)}o(Hf,"baseIsEqual");function Lk(c,f,d,v,b,C){var L=Qe(c),F=Qe(f),w=L?Ir:yi(c),Y=F?Ir:yi(f);w=w==Kn?cn:w,Y=Y==Kn?cn:Y;var J=w==cn,ee=Y==cn,ge=w==Y;if(ge&&wa(c)){if(!wa(f))return!1;L=!0,J=!1}if(ge&&!J)return C||(C=new Yr),L||Zc(c)?_I(c,f,d,v,b,C):iU(c,f,w,d,v,b,C);if(!(d&T)){var Le=J&&Rt.call(c,"__wrapped__"),ke=ee&&Rt.call(f,"__wrapped__");if(Le||ke){var et=Le?c.value():c,Ue=ke?f.value():f;return C||(C=new Yr),b(et,Ue,d,v,C)}}return ge?(C||(C=new Yr),rU(c,f,d,v,b,C)):!1}o(Lk,"baseIsEqualDeep");function Fk(c){return Tn(c)&&yi(c)==qe}o(Fk,"baseIsMap");function Vv(c,f,d,v){var b=d.length,C=b,L=!v;if(c==null)return!C;for(c=Wt(c);b--;){var F=d[b];if(L&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++b<C;){F=d[b];var w=F[0],Y=c[w],J=F[1];if(L&&F[2]){if(Y===e&&!(w in c))return!1}else{var ee=new Yr;if(v)var ge=v(Y,J,w,c,f,ee);if(!(ge===e?Hf(J,Y,T|A,v,ee):ge))return!1}}return!0}o(Vv,"baseIsMatch");function tI(c){if(!mn(c)||dU(c))return!1;var f=ea(c)?F2:Ew;return f.test(Hs(c))}o(tI,"baseIsNative");function Rk(c){return Tn(c)&&Ni(c)==ir}o(Rk,"baseIsRegExp");function _k(c){return Tn(c)&&yi(c)==dn}o(_k,"baseIsSet");function Dk(c){return Tn(c)&&ig(c.length)&&!!tn[Ni(c)]}o(Dk,"baseIsTypedArray");function nI(c){return typeof c=="function"?c:c==null?Ki:typeof c=="object"?Qe(c)?oI(c[0],c[1]):rI(c):PO(c)}o(nI,"baseIteratee");function Mv(c){if(!Kf(c))return w2(c);var f=[];for(var d in Wt(c))Rt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Mv,"baseKeys");function Vk(c){if(!mn(c))return yU(c);var f=Kf(c),d=[];for(var v in c)v=="constructor"&&(f||!Rt.call(c,v))||d.push(v);return d}o(Vk,"baseKeysIn");function wv(c,f){return c<f}o(wv,"baseLt");function iI(c,f){var d=-1,v=Gi(c)?G(c.length):[];return _a(c,function(b,C,L){v[++d]=f(b,C,L)}),v}o(iI,"baseMap");function rI(c){var f=Jv(c);return f.length==1&&f[0][2]?kI(f[0][0],f[0][1]):function(d){return d===c||Vv(d,c,f)}}o(rI,"baseMatches");function oI(c,f){return eT(c)&&wI(f)?kI(So(c),f):function(d){var v=fT(d,c);return v===e&&v===f?uT(d,c):Hf(f,v,T|A)}}o(oI,"baseMatchesProperty");function $d(c,f,d,v,b){c!==f&&Fv(f,function(C,L){if(b||(b=new Yr),mn(C))Mk(c,f,L,d,$d,v,b);else{var F=v?v(nT(c,L),C,L+"",c,f,b):e;F===e&&(F=C),Nv(c,L,F)}},Wi)}o($d,"baseMerge");function Mk(c,f,d,v,b,C,L){var F=nT(c,d),w=nT(f,d),Y=L.get(w);if(Y){Nv(c,d,Y);return}var J=C?C(F,w,d+"",c,f,L):e,ee=J===e;if(ee){var ge=Qe(w),Le=!ge&&wa(w),ke=!ge&&!Le&&Zc(w);J=w,ge||Le||ke?Qe(F)?J=F:In(F)?J=Hi(F):Le?(ee=!1,J=yI(w,!0)):ke?(ee=!1,J=vI(w,!0)):J=[]:Qf(w)||Gs(w)?(J=F,Gs(F)?J=gO(F):(!mn(F)||ea(F))&&(J=MI(w))):ee=!1}ee&&(L.set(w,J),b(J,w,v,C,L),L.delete(w)),Nv(c,d,J)}o(Mk,"baseMergeDeep");function aI(c,f){var d=c.length;if(d)return f+=f<0?d:0,Zo(f,d)?c[f]:e}o(aI,"baseNth");function sI(c,f,d){f.length?f=fn(f,function(C){return Qe(C)?function(L){return $s(L,C.length===1?C[0]:C)}:C}):f=[Ki];var v=-1;f=fn(f,ar(Me()));var b=iI(c,function(C,L,F){var w=fn(f,function(Y){return Y(C)});return{criteria:w,index:++v,value:C}});return c2(b,function(C,L){return qk(C,L,d)})}o(sI,"baseOrderBy");function wk(c,f){return cI(c,f,function(d,v){return uT(c,v)})}o(wk,"basePick");function cI(c,f,d){for(var v=-1,b=f.length,C={};++v<b;){var L=f[v],F=$s(c,L);d(F,L)&&Gf(C,Va(L,c),F)}return C}o(cI,"basePickBy");function kk(c){return function(f){return $s(f,c)}}o(kk,"basePropertyDeep");function kv(c,f,d,v){var b=v?s2:Hc,C=-1,L=f.length,F=c;for(c===f&&(f=Hi(f)),d&&(F=fn(c,ar(d)));++C<L;)for(var w=0,Y=f[C],J=d?d(Y):Y;(w=b(F,J,w,v))>-1;)F!==c&&Fd.call(F,w,1),Fd.call(c,w,1);return c}o(kv,"basePullAll");function lI(c,f){for(var d=c?f.length:0,v=d-1;d--;){var b=f[d];if(d==v||b!==C){var C=b;Zo(b)?Fd.call(c,b,1):Bv(c,b)}}return c}o(lI,"basePullAt");function Uv(c,f){return c+Dd(HC()*(f-c+1))}o(Uv,"baseRandom");function Uk(c,f,d,v){for(var b=-1,C=jn(_d((f-c)/(d||1)),0),L=G(C);C--;)L[v?C:++b]=c,c+=d;return L}o(Uk,"baseRange");function jv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Dd(f/2),f&&(c+=c);while(f);return d}o(jv,"baseRepeat");function it(c,f){return iT(UI(c,f,Ki),c+"")}o(it,"baseRest");function jk(c){return KC(el(c))}o(jk,"baseSample");function $k(c,f){var d=el(c);return Yd(d,js(f,0,d.length))}o($k,"baseSampleSize");function Gf(c,f,d,v){if(!mn(c))return c;f=Va(f,c);for(var b=-1,C=f.length,L=C-1,F=c;F!=null&&++b<C;){var w=So(f[b]),Y=d;if(w==="__proto__"||w==="constructor"||w==="prototype")return c;if(b!=L){var J=F[w];Y=v?v(J,w,F):e,Y===e&&(Y=mn(J)?J:Zo(f[b+1])?[]:{})}jf(F,w,Y),F=F[w]}return c}o(Gf,"baseSet");var fI=Vd?function(c,f){return Vd.set(c,f),c}:Ki,Bk=Rd?function(c,f){return Rd(c,"toString",{configurable:!0,enumerable:!1,value:dT(f),writable:!0})}:Ki;function Hk(c){return Yd(el(c))}o(Hk,"baseShuffle");function Dr(c,f,d){var v=-1,b=c.length;f<0&&(f=-f>b?0:b+f),d=d>b?b:d,d<0&&(d+=b),b=f>d?0:d-f>>>0,f>>>=0;for(var C=G(b);++v<b;)C[v]=c[v+f];return C}o(Dr,"baseSlice");function Gk(c,f){var d;return _a(c,function(v,b,C){return d=f(v,b,C),!d}),!!d}o(Gk,"baseSome");function Bd(c,f,d){var v=0,b=c==null?v:c.length;if(typeof f=="number"&&f===f&&b<=$i){for(;v<b;){var C=v+b>>>1,L=c[C];L!==null&&!cr(L)&&(d?L<=f:L<f)?v=C+1:b=C}return b}return $v(c,f,Ki,d)}o(Bd,"baseSortedIndex");function $v(c,f,d,v){var b=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,F=f===null,w=cr(f),Y=f===e;b<C;){var J=Dd((b+C)/2),ee=d(c[J]),ge=ee!==e,Le=ee===null,ke=ee===ee,et=cr(ee);if(L)var Ue=v||ke;else Y?Ue=ke&&(v||ge):F?Ue=ke&&ge&&(v||!Le):w?Ue=ke&&ge&&!Le&&(v||!et):Le||et?Ue=!1:Ue=v?ee<=f:ee<f;Ue?b=J+1:C=J}return hi(C,sn)}o($v,"baseSortedIndexBy");function uI(c,f){for(var d=-1,v=c.length,b=0,C=[];++d<v;){var L=c[d],F=f?f(L):L;if(!d||!Jr(F,w)){var w=F;C[b++]=L===0?0:L}}return C}o(uI,"baseSortedUniq");function pI(c){return typeof c=="number"?c:cr(c)?It:+c}o(pI,"baseToNumber");function sr(c){if(typeof c=="string")return c;if(Qe(c))return fn(c,sr)+"";if(cr(c))return GC?GC.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(sr,"baseToString");function Da(c,f,d){var v=-1,b=bd,C=c.length,L=!0,F=[],w=F;if(d)L=!1,b=hv;else if(C>=n){var Y=f?null:tU(c);if(Y)return Sd(Y);L=!1,b=Df,w=new Us}else w=f?[]:F;e:for(;++v<C;){var J=c[v],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var ge=w.length;ge--;)if(w[ge]===ee)continue e;f&&w.push(ee),F.push(J)}else b(w,ee,d)||(w!==F&&w.push(ee),F.push(J))}return F}o(Da,"baseUniq");function Bv(c,f){return f=Va(f,c),c=jI(c,f),c==null||delete c[So(Vr(f))]}o(Bv,"baseUnset");function dI(c,f,d,v){return Gf(c,f,d($s(c,f)),v)}o(dI,"baseUpdate");function Hd(c,f,d,v){for(var b=c.length,C=v?b:-1;(v?C--:++C<b)&&f(c[C],C,c););return d?Dr(c,v?0:C,v?C+1:b):Dr(c,v?C+1:0,v?b:C)}o(Hd,"baseWhile");function gI(c,f){var d=c;return d instanceof pt&&(d=d.value()),yv(f,function(v,b){return b.func.apply(b.thisArg,Na([v],b.args))},d)}o(gI,"baseWrapperValue");function Hv(c,f,d){var v=c.length;if(v<2)return v?Da(c[0]):[];for(var b=-1,C=G(v);++b<v;)for(var L=c[b],F=-1;++F<v;)F!=b&&(C[b]=$f(C[b]||L,c[F],f,d));return Da(ii(C,1),f,d)}o(Hv,"baseXor");function mI(c,f,d){for(var v=-1,b=c.length,C=f.length,L={};++v<b;){var F=v<C?f[v]:e;d(L,c[v],F)}return L}o(mI,"baseZipObject");function Gv(c){return In(c)?c:[]}o(Gv,"castArrayLikeObject");function Wv(c){return typeof c=="function"?c:Ki}o(Wv,"castFunction");function Va(c,f){return Qe(c)?c:eT(c,f)?[c]:GI(Ot(c))}o(Va,"castPath");var Wk=it;function Ma(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:Dr(c,f,d)}o(Ma,"castSlice");var hI=R2||function(c){return Xn.clearTimeout(c)};function yI(c,f){if(f)return c.slice();var d=c.length,v=kC?kC(d):new c.constructor(d);return c.copy(v),v}o(yI,"cloneBuffer");function Kv(c){var f=new c.constructor(c.byteLength);return new Nd(f).set(new Nd(c)),f}o(Kv,"cloneArrayBuffer");function Kk(c,f){var d=f?Kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(Kk,"cloneDataView");function Xk(c){var f=new c.constructor(c.source,eC.exec(c));return f.lastIndex=c.lastIndex,f}o(Xk,"cloneRegExp");function Qk(c){return Uf?Wt(Uf.call(c)):{}}o(Qk,"cloneSymbol");function vI(c,f){var d=f?Kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(vI,"cloneTypedArray");function TI(c,f){if(c!==f){var d=c!==e,v=c===null,b=c===c,C=cr(c),L=f!==e,F=f===null,w=f===f,Y=cr(f);if(!F&&!Y&&!C&&c>f||C&&L&&w&&!F&&!Y||v&&L&&w||!d&&w||!b)return 1;if(!v&&!C&&!Y&&c<f||Y&&d&&b&&!v&&!C||F&&d&&b||!L&&b||!w)return-1}return 0}o(TI,"compareAscending");function qk(c,f,d){for(var v=-1,b=c.criteria,C=f.criteria,L=b.length,F=d.length;++v<L;){var w=TI(b[v],C[v]);if(w){if(v>=F)return w;var Y=d[v];return w*(Y=="desc"?-1:1)}}return c.index-f.index}o(qk,"compareMultiple");function EI(c,f,d,v){for(var b=-1,C=c.length,L=d.length,F=-1,w=f.length,Y=jn(C-L,0),J=G(w+Y),ee=!v;++F<w;)J[F]=f[F];for(;++b<L;)(ee||b<C)&&(J[d[b]]=c[b]);for(;Y--;)J[F++]=c[b++];return J}o(EI,"composeArgs");function bI(c,f,d,v){for(var b=-1,C=c.length,L=-1,F=d.length,w=-1,Y=f.length,J=jn(C-F,0),ee=G(J+Y),ge=!v;++b<J;)ee[b]=c[b];for(var Le=b;++w<Y;)ee[Le+w]=f[w];for(;++L<F;)(ge||b<C)&&(ee[Le+d[L]]=c[b++]);return ee}o(bI,"composeArgsRight");function Hi(c,f){var d=-1,v=c.length;for(f||(f=G(v));++d<v;)f[d]=c[d];return f}o(Hi,"copyArray");function Ao(c,f,d,v){var b=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var F=f[C],w=v?v(d[F],c[F],F,d,c):e;w===e&&(w=c[F]),b?zo(d,F,w):jf(d,F,w)}return d}o(Ao,"copyObject");function zk(c,f){return Ao(c,Zv(c),f)}o(zk,"copySymbols");function Yk(c,f){return Ao(c,DI(c),f)}o(Yk,"copySymbolsIn");function Gd(c,f){return function(d,v){var b=Qe(d)?t2:Tk,C=f?f():{};return b(d,c,Me(v,2),C)}}o(Gd,"createAggregator");function zc(c){return it(function(f,d){var v=-1,b=d.length,C=b>1?d[b-1]:e,L=b>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(b--,C):e,L&&Li(d[0],d[1],L)&&(C=b<3?e:C,b=1),f=Wt(f);++v<b;){var F=d[v];F&&c(f,F,v,C)}return f})}o(zc,"createAssigner");function AI(c,f){return function(d,v){if(d==null)return d;if(!Gi(d))return c(d,v);for(var b=d.length,C=f?b:-1,L=Wt(d);(f?C--:++C<b)&&v(L[C],C,L)!==!1;);return d}}o(AI,"createBaseEach");function SI(c){return function(f,d,v){for(var b=-1,C=Wt(f),L=v(f),F=L.length;F--;){var w=L[c?F:++b];if(d(C[w],w,C)===!1)break}return f}}o(SI,"createBaseFor");function Jk(c,f,d){var v=f&E,b=Wf(c);function C(){var L=this&&this!==Xn&&this instanceof C?b:c;return L.apply(v?d:this,arguments)}return o(C,"wrapper"),C}o(Jk,"createBind");function PI(c){return function(f){f=Ot(f);var d=Gc(f)?zr(f):e,v=d?d[0]:f.charAt(0),b=d?Ma(d,1).join(""):f.slice(1);return v[c]()+b}}o(PI,"createCaseFirst");function Yc(c){return function(f){return yv(AO(bO(f).replace($w,"")),c,"")}}o(Yc,"createCompounder");function Wf(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=qc(c.prototype),v=c.apply(d,f);return mn(v)?v:d}}o(Wf,"createCtor");function Zk(c,f,d){var v=Wf(c);function b(){for(var C=arguments.length,L=G(C),F=C,w=Jc(b);F--;)L[F]=arguments[F];var Y=C<3&&L[0]!==w&&L[C-1]!==w?[]:La(L,w);if(C-=Y.length,C<d)return NI(c,f,Wd,b.placeholder,e,L,Y,e,e,d-C);var J=this&&this!==Xn&&this instanceof b?v:c;return or(J,this,L)}return o(b,"wrapper"),b}o(Zk,"createCurry");function xI(c){return function(f,d,v){var b=Wt(f);if(!Gi(f)){var C=Me(d,3);f=Qn(f),d=o(function(F){return C(b[F],F,b)},"predicate")}var L=c(f,d,v);return L>-1?b[C?f[L]:L]:e}}o(xI,"createFind");function CI(c){return Jo(function(f){var d=f.length,v=d,b=Rr.prototype.thru;for(c&&f.reverse();v--;){var C=f[v];if(typeof C!="function")throw new Fr(r);if(b&&!L&&qd(C)=="wrapper")var L=new Rr([],!0)}for(v=L?v:d;++v<d;){C=f[v];var F=qd(C),w=F=="wrapper"?Yv(C):e;w&&tT(w[0])&&w[1]==(Z|U|j|re)&&!w[4].length&&w[9]==1?L=L[qd(w[0])].apply(L,w[3]):L=C.length==1&&tT(C)?L[F]():L.thru(C)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Qe(J))return L.plant(J).value();for(var ee=0,ge=d?f[ee].apply(this,Y):J;++ee<d;)ge=f[ee].call(this,ge);return ge}})}o(CI,"createFlow");function Wd(c,f,d,v,b,C,L,F,w,Y){var J=f&Z,ee=f&E,ge=f&O,Le=f&(U|W),ke=f&xe,et=ge?e:Wf(c);function Ue(){for(var ct=arguments.length,gt=G(ct),lr=ct;lr--;)gt[lr]=arguments[lr];if(Le)var Fi=Jc(Ue),fr=f2(gt,Fi);if(v&&(gt=EI(gt,v,b,Le)),C&&(gt=bI(gt,C,L,Le)),ct-=fr,Le&&ct<Y){var On=La(gt,Fi);return NI(c,f,Wd,Ue.placeholder,d,gt,On,F,w,Y-ct)}var Zr=ee?d:this,na=ge?Zr[c]:c;return ct=gt.length,F?gt=TU(gt,F):ke&&ct>1&&gt.reverse(),J&&w<ct&&(gt.length=w),this&&this!==Xn&&this instanceof Ue&&(na=et||Wf(na)),na.apply(Zr,gt)}return o(Ue,"wrapper"),Ue}o(Wd,"createHybrid");function II(c,f){return function(d,v){return Ik(d,c,f(v),{})}}o(II,"createInverter");function Kd(c,f){return function(d,v){var b;if(d===e&&v===e)return f;if(d!==e&&(b=d),v!==e){if(b===e)return v;typeof d=="string"||typeof v=="string"?(d=sr(d),v=sr(v)):(d=pI(d),v=pI(v)),b=c(d,v)}return b}}o(Kd,"createMathOperation");function Xv(c){return Jo(function(f){return f=fn(f,ar(Me())),it(function(d){var v=this;return c(f,function(b){return or(b,v,d)})})})}o(Xv,"createOver");function Xd(c,f){f=f===e?" ":sr(f);var d=f.length;if(d<2)return d?jv(f,c):f;var v=jv(f,_d(c/Wc(f)));return Gc(f)?Ma(zr(v),0,c).join(""):v.slice(0,c)}o(Xd,"createPadding");function eU(c,f,d,v){var b=f&E,C=Wf(c);function L(){for(var F=-1,w=arguments.length,Y=-1,J=v.length,ee=G(J+w),ge=this&&this!==Xn&&this instanceof L?C:c;++Y<J;)ee[Y]=v[Y];for(;w--;)ee[Y++]=arguments[++F];return or(ge,b?d:this,ee)}return o(L,"wrapper"),L}o(eU,"createPartial");function OI(c){return function(f,d,v){return v&&typeof v!="number"&&Li(f,d,v)&&(d=v=e),f=ta(f),d===e?(d=f,f=0):d=ta(d),v=v===e?f<d?1:-1:ta(v),Uk(f,d,v,c)}}o(OI,"createRange");function Qd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Mr(f),d=Mr(d)),c(f,d)}}o(Qd,"createRelationalOperation");function NI(c,f,d,v,b,C,L,F,w,Y){var J=f&U,ee=J?L:e,ge=J?e:L,Le=J?C:e,ke=J?e:C;f|=J?j:ae,f&=~(J?ae:j),f&R||(f&=~(E|O));var et=[c,f,b,Le,ee,ke,ge,F,w,Y],Ue=d.apply(e,et);return tT(c)&&$I(Ue,et),Ue.placeholder=v,BI(Ue,c,f)}o(NI,"createRecurry");function Qv(c){var f=Un[c];return function(d,v){if(d=Mr(d),v=v==null?0:hi(Ze(v),292),v&&BC(d)){var b=(Ot(d)+"e").split("e"),C=f(b[0]+"e"+(+b[1]+v));return b=(Ot(C)+"e").split("e"),+(b[0]+"e"+(+b[1]-v))}return f(d)}}o(Qv,"createRound");var tU=Xc&&1/Sd(new Xc([,-0]))[1]==Lt?function(c){return new Xc(c)}:hT;function LI(c){return function(f){var d=yi(f);return d==qe?Pv(f):d==dn?y2(f):l2(f,c(f))}}o(LI,"createToPairs");function Yo(c,f,d,v,b,C,L,F){var w=f&O;if(!w&&typeof c!="function")throw new Fr(r);var Y=v?v.length:0;if(Y||(f&=~(j|ae),v=b=e),L=L===e?L:jn(Ze(L),0),F=F===e?F:Ze(F),Y-=b?b.length:0,f&ae){var J=v,ee=b;v=b=e}var ge=w?e:Yv(c),Le=[c,f,d,v,b,J,ee,C,L,F];if(ge&&hU(Le,ge),c=Le[0],f=Le[1],d=Le[2],v=Le[3],b=Le[4],F=Le[9]=Le[9]===e?w?0:c.length:jn(Le[9]-Y,0),!F&&f&(U|W)&&(f&=~(U|W)),!f||f==E)var ke=Jk(c,f,d);else f==U||f==W?ke=Zk(c,f,F):(f==j||f==(E|j))&&!b.length?ke=eU(c,f,d,v):ke=Wd.apply(e,Le);var et=ge?fI:$I;return BI(et(ke,Le),c,f)}o(Yo,"createWrap");function FI(c,f,d,v){return c===e||Jr(c,Kc[d])&&!Rt.call(v,d)?f:c}o(FI,"customDefaultsAssignIn");function RI(c,f,d,v,b,C){return mn(c)&&mn(f)&&(C.set(f,c),$d(c,f,e,RI,C),C.delete(f)),c}o(RI,"customDefaultsMerge");function nU(c){return Qf(c)?e:c}o(nU,"customOmitClone");function _I(c,f,d,v,b,C){var L=d&T,F=c.length,w=f.length;if(F!=w&&!(L&&w>F))return!1;var Y=C.get(c),J=C.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,ge=!0,Le=d&A?new Us:e;for(C.set(c,f),C.set(f,c);++ee<F;){var ke=c[ee],et=f[ee];if(v)var Ue=L?v(et,ke,ee,f,c,C):v(ke,et,ee,c,f,C);if(Ue!==e){if(Ue)continue;ge=!1;break}if(Le){if(!vv(f,function(ct,gt){if(!Df(Le,gt)&&(ke===ct||b(ke,ct,d,v,C)))return Le.push(gt)})){ge=!1;break}}else if(!(ke===et||b(ke,et,d,v,C))){ge=!1;break}}return C.delete(c),C.delete(f),ge}o(_I,"equalArrays");function iU(c,f,d,v,b,C,L){switch(d){case Or:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ds:return!(c.byteLength!=f.byteLength||!C(new Nd(c),new Nd(f)));case I:case S:case wt:return Jr(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ir:case mi:return c==f+"";case qe:var F=Pv;case dn:var w=v&T;if(F||(F=Sd),c.size!=f.size&&!w)return!1;var Y=L.get(c);if(Y)return Y==f;v|=A,L.set(c,f);var J=_I(F(c),F(f),v,b,C,L);return L.delete(c),J;case Ht:if(Uf)return Uf.call(c)==Uf.call(f)}return!1}o(iU,"equalByTag");function rU(c,f,d,v,b,C){var L=d&T,F=qv(c),w=F.length,Y=qv(f),J=Y.length;if(w!=J&&!L)return!1;for(var ee=w;ee--;){var ge=F[ee];if(!(L?ge in f:Rt.call(f,ge)))return!1}var Le=C.get(c),ke=C.get(f);if(Le&&ke)return Le==f&&ke==c;var et=!0;C.set(c,f),C.set(f,c);for(var Ue=L;++ee<w;){ge=F[ee];var ct=c[ge],gt=f[ge];if(v)var lr=L?v(gt,ct,ge,f,c,C):v(ct,gt,ge,c,f,C);if(!(lr===e?ct===gt||b(ct,gt,d,v,C):lr)){et=!1;break}Ue||(Ue=ge=="constructor")}if(et&&!Ue){var Fi=c.constructor,fr=f.constructor;Fi!=fr&&"constructor"in c&&"constructor"in f&&!(typeof Fi=="function"&&Fi instanceof Fi&&typeof fr=="function"&&fr instanceof fr)&&(et=!1)}return C.delete(c),C.delete(f),et}o(rU,"equalObjects");function Jo(c){return iT(UI(c,e,QI),c+"")}o(Jo,"flatRest");function qv(c){return ZC(c,Qn,Zv)}o(qv,"getAllKeys");function zv(c){return ZC(c,Wi,DI)}o(zv,"getAllKeysIn");var Yv=Vd?function(c){return Vd.get(c)}:hT;function qd(c){for(var f=c.name+"",d=Qc[f],v=Rt.call(Qc,f)?d.length:0;v--;){var b=d[v],C=b.func;if(C==null||C==c)return b.name}return f}o(qd,"getFuncName");function Jc(c){var f=Rt.call(P,"placeholder")?P:c;return f.placeholder}o(Jc,"getHolder");function Me(){var c=P.iteratee||gT;return c=c===gT?nI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Me,"getIteratee");function zd(c,f){var d=c.__data__;return pU(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(zd,"getMapData");function Jv(c){for(var f=Qn(c),d=f.length;d--;){var v=f[d],b=c[v];f[d]=[v,b,wI(b)]}return f}o(Jv,"getMatchData");function Bs(c,f){var d=g2(c,f);return tI(d)?d:e}o(Bs,"getNative");function oU(c){var f=Rt.call(c,ws),d=c[ws];try{c[ws]=e;var v=!0}catch{}var b=Id.call(c);return v&&(f?c[ws]=d:delete c[ws]),b}o(oU,"getRawTag");var Zv=Cv?function(c){return c==null?[]:(c=Wt(c),Oa(Cv(c),function(f){return jC.call(c,f)}))}:yT,DI=Cv?function(c){for(var f=[];c;)Na(f,Zv(c)),c=Ld(c);return f}:yT,yi=Ni;(Iv&&yi(new Iv(new ArrayBuffer(1)))!=Or||Mf&&yi(new Mf)!=qe||Ov&&yi(Ov.resolve())!=Bt||Xc&&yi(new Xc)!=dn||wf&&yi(new wf)!=Bi)&&(yi=o(function(c){var f=Ni(c),d=f==cn?c.constructor:e,v=d?Hs(d):"";if(v)switch(v){case $2:return Or;case B2:return qe;case H2:return Bt;case G2:return dn;case W2:return Bi}return f},"getTag"));function aU(c,f,d){for(var v=-1,b=d.length;++v<b;){var C=d[v],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=jn(c,f-L);break}}return{start:c,end:f}}o(aU,"getView");function sU(c){var f=c.match(pw);return f?f[1].split(dw):[]}o(sU,"getWrapDetails");function VI(c,f,d){f=Va(f,c);for(var v=-1,b=f.length,C=!1;++v<b;){var L=So(f[v]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++v!=b?C:(b=c==null?0:c.length,!!b&&ig(b)&&Zo(L,b)&&(Qe(c)||Gs(c)))}o(VI,"hasPath");function cU(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Rt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(cU,"initCloneArray");function MI(c){return typeof c.constructor=="function"&&!Kf(c)?qc(Ld(c)):{}}o(MI,"initCloneObject");function lU(c,f,d){var v=c.constructor;switch(f){case Ds:return Kv(c);case I:case S:return new v(+c);case Or:return Kk(c,d);case Lf:case Ff:case Rf:case Vs:case k:case B:case Q:case ce:case Fe:return vI(c,d);case qe:return new v;case wt:case mi:return new v(c);case ir:return Xk(c);case dn:return new v;case Ht:return Qk(c)}}o(lU,"initCloneByTag");function fU(c,f){var d=f.length;if(!d)return c;var v=d-1;return f[v]=(d>1?"& ":"")+f[v],f=f.join(d>2?", ":" "),c.replace(uw,`{
267
+ Please avoid using it as it will be completely removed in the future`)}var C9,Ey=ze(()=>{DA();Ar();sp();hs();up();Ql();WA();ki();ki();Gl();nS();jD();QD();o(x9,"clearCache");C9=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 dS=Ye((bce,eV)=>{var{createToken:I9,Lexer:uS}=(Ey(),sg(by)),zD={},Jl=zD;function pS(e,t){zD[e]=typeof t=="string"?t:t.source}o(pS,"FRAGMENT");function Sp(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(Sp,"makePattern");var O9=[],YD={};function Pn(e){let t=I9(e);return O9.push(t),YD[e.name]=t,t}o(Pn,"createToken");pS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");pS("NameChar",Sp`${Jl.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);pS("Name",Sp`${Jl.NameStartChar}(${Jl.NameChar})*`);var qD=Pn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),N9=Pn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),L9=Pn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),F9=Pn({name:"DTD",pattern:/<!.*?>/,group:uS.SKIPPED}),R9=Pn({name:"EntityRef",pattern:Sp`&${Jl.Name};`}),_9=Pn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),D9=Pn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),V9=Pn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),JD=Pn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),M9=Pn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[JD]}),w9=Pn({name:"PROCESSING_INSTRUCTION",pattern:Sp`<\\?${Jl.Name}.*\\?>`}),ZD=Pn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),k9=Pn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[ZD]}),U9=Pn({name:"TEXT",pattern:/[^<&]+/}),j9=Pn({name:"CLOSE",pattern:/>/,pop_mode:!0}),$9=Pn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),B9=Pn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),H9=Pn({name:"SLASH",pattern:/\//}),G9=Pn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),W9=Pn({name:"EQUALS",pattern:/=/}),K9=Pn({name:"Name",pattern:Sp`${Jl.Name}`}),X9=Pn({name:"S",pattern:/[ \t\r\n]/,group:uS.SKIPPED}),Q9={defaultMode:"OUTSIDE",modes:{OUTSIDE:[qD,N9,L9,F9,R9,_9,D9,V9,JD,w9,ZD,U9],INSIDE:[qD,M9,k9,j9,$9,B9,H9,W9,G9,K9,X9]}},q9=new uS(Q9,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
+ `],lineTerminatorsPattern:/\n|\r\n/g});eV.exports={xmlLexer:q9,tokensDictionary:YD}});var nV=Ye((Ace,tV)=>{var{CstParser:z9,tokenMatcher:Y9}=(Ey(),sg(by)),{tokensDictionary:Ct}=dS(),mS=class mS extends z9{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=>Y9(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(mS,"Parser");var gS=mS,J9=new gS;tV.exports={xmlParser:J9}});var hS=Ye((Pce,iV)=>{var{xmlLexer:Z9}=dS(),{xmlParser:Ay}=nV();iV.exports={parse:o(function(t){let n=Z9.tokenize(t);return Ay.input=n.tokens,{cst:Ay.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ay.errors}},"parse"),BaseXmlCstVisitor:Ay.getBaseCstVisitorConstructor()}});var xp=Ye((Zl,Pp)=>{(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,T=1,A=2,b=1,O=2,R=4,U=8,W=16,j=32,ae=64,Z=128,re=256,xe=512,_=30,ut="...",yt=800,$e=16,on=1,Wn=2,an=3,Lt=1/0,Re=9007199254740991,Oi=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,Bi=Mt>>>1,_e=[["ary",Z],["bind",b],["bindKey",O],["curry",U],["curryRight",W],["flip",xe],["partial",j],["partialRight",ae],["rearg",re]],Kn="[object Arguments]",Ir="[object Array]",st="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",J="[object DOMException]",M="[object Error]",Ve="[object Function]",Ft="[object GeneratorFunction]",qe="[object Map]",wt="[object Number]",Rn="[object Null]",cn="[object Object]",Bt="[object Promise]",ni="[object Proxy]",or="[object RegExp]",gn="[object Set]",yi="[object String]",Ht="[object Symbol]",Xo="[object Undefined]",Hi="[object WeakMap]",Nf="[object WeakSet]",Ds="[object ArrayBuffer]",Or="[object DataView]",Lf="[object Float32Array]",Ff="[object Float64Array]",Rf="[object Int8Array]",Vs="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Fe="[object Uint32Array]",mn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,nt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,Ce=RegExp(he.source),Ne=RegExp(be.source),ot=/<%-([\s\S]+?)%>/g,Gt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,ar=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yd=/^\w*$/,sv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,_f=/[\\^$.*+?()[\]{}|]/g,lw=RegExp(_f.source),cv=/^\s+/,fw=/\s/,uw=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,pw=/\{\n\/\* \[wrapped with (.+)\] \*/,dw=/,? & /,gw=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,mw=/[()=,{}\[\]\/\s]/,hw=/\\(\\)?/g,yw=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,eC=/\w*$/,vw=/^[-+]0x[0-9a-f]+$/i,Tw=/^0b[01]+$/i,bw=/^\[object .+?Constructor\]$/,Ew=/^0o[0-7]+$/i,Aw=/^(?:0|[1-9]\d*)$/,Sw=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vd=/($^)/,Pw=/['\n\r\u2028\u2029\\]/g,Td="\\ud800-\\udfff",xw="\\u0300-\\u036f",Cw="\\ufe20-\\ufe2f",Iw="\\u20d0-\\u20ff",tC=xw+Cw+Iw,nC="\\u2700-\\u27bf",iC="a-z\\xdf-\\xf6\\xf8-\\xff",Ow="\\xac\\xb1\\xd7\\xf7",Nw="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Lw="\\u2000-\\u206f",Fw=" \\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",rC="A-Z\\xc0-\\xd6\\xd8-\\xde",oC="\\ufe0e\\ufe0f",aC=Ow+Nw+Lw+Fw,lv="['\u2019]",Rw="["+Td+"]",sC="["+aC+"]",bd="["+tC+"]",cC="\\d+",_w="["+nC+"]",lC="["+iC+"]",fC="[^"+Td+aC+cC+nC+iC+rC+"]",fv="\\ud83c[\\udffb-\\udfff]",Dw="(?:"+bd+"|"+fv+")",uC="[^"+Td+"]",uv="(?:\\ud83c[\\udde6-\\uddff]){2}",pv="[\\ud800-\\udbff][\\udc00-\\udfff]",Bc="["+rC+"]",pC="\\u200d",dC="(?:"+lC+"|"+fC+")",Vw="(?:"+Bc+"|"+fC+")",gC="(?:"+lv+"(?:d|ll|m|re|s|t|ve))?",mC="(?:"+lv+"(?:D|LL|M|RE|S|T|VE))?",hC=Dw+"?",yC="["+oC+"]?",Mw="(?:"+pC+"(?:"+[uC,uv,pv].join("|")+")"+yC+hC+")*",ww="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",kw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",vC=yC+hC+Mw,Uw="(?:"+[_w,uv,pv].join("|")+")"+vC,jw="(?:"+[uC+bd+"?",bd,uv,pv,Rw].join("|")+")",$w=RegExp(lv,"g"),Bw=RegExp(bd,"g"),dv=RegExp(fv+"(?="+fv+")|"+jw+vC,"g"),Hw=RegExp([Bc+"?"+lC+"+"+gC+"(?="+[sC,Bc,"$"].join("|")+")",Vw+"+"+mC+"(?="+[sC,Bc+dC,"$"].join("|")+")",Bc+"?"+dC+"+"+gC,Bc+"+"+mC,kw,ww,cC,Uw].join("|"),"g"),Gw=RegExp("["+pC+Td+tC+oC+"]"),Ww=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Kw=["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"],Xw=-1,en={};en[Lf]=en[Ff]=en[Rf]=en[Vs]=en[k]=en[B]=en[Q]=en[ce]=en[Fe]=!0,en[Kn]=en[Ir]=en[Ds]=en[I]=en[Or]=en[S]=en[M]=en[Ve]=en[qe]=en[wt]=en[cn]=en[or]=en[gn]=en[yi]=en[Hi]=!1;var qt={};qt[Kn]=qt[Ir]=qt[Ds]=qt[Or]=qt[I]=qt[S]=qt[Lf]=qt[Ff]=qt[Rf]=qt[Vs]=qt[k]=qt[qe]=qt[wt]=qt[cn]=qt[or]=qt[gn]=qt[yi]=qt[Ht]=qt[B]=qt[Q]=qt[ce]=qt[Fe]=!0,qt[M]=qt[Ve]=qt[Hi]=!1;var Qw={\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"},qw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zw={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Yw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Jw=parseFloat,Zw=parseInt,TC=typeof global=="object"&&global&&global.Object===Object&&global,e2=typeof self=="object"&&self&&self.Object===Object&&self,Xn=TC||e2||Function("return this")(),gv=typeof Zl=="object"&&Zl&&!Zl.nodeType&&Zl,Ms=gv&&typeof Pp=="object"&&Pp&&!Pp.nodeType&&Pp,bC=Ms&&Ms.exports===gv,mv=bC&&TC.process,Nr=function(){try{var V=Ms&&Ms.require&&Ms.require("util").types;return V||mv&&mv.binding&&mv.binding("util")}catch{}}(),EC=Nr&&Nr.isArrayBuffer,AC=Nr&&Nr.isDate,SC=Nr&&Nr.isMap,PC=Nr&&Nr.isRegExp,xC=Nr&&Nr.isSet,CC=Nr&&Nr.isTypedArray;function sr(V,X,G){switch(G.length){case 0:return V.call(X);case 1:return V.call(X,G[0]);case 2:return V.call(X,G[0],G[1]);case 3:return V.call(X,G[0],G[1],G[2])}return V.apply(X,G)}o(sr,"apply");function t2(V,X,G,Se){for(var We=-1,St=V==null?0:V.length;++We<St;){var Un=V[We];X(Se,Un,G(Un),V)}return Se}o(t2,"arrayAggregator");function Lr(V,X){for(var G=-1,Se=V==null?0:V.length;++G<Se&&X(V[G],G,V)!==!1;);return V}o(Lr,"arrayEach");function n2(V,X){for(var G=V==null?0:V.length;G--&&X(V[G],G,V)!==!1;);return V}o(n2,"arrayEachRight");function IC(V,X){for(var G=-1,Se=V==null?0:V.length;++G<Se;)if(!X(V[G],G,V))return!1;return!0}o(IC,"arrayEvery");function Oa(V,X){for(var G=-1,Se=V==null?0:V.length,We=0,St=[];++G<Se;){var Un=V[G];X(Un,G,V)&&(St[We++]=Un)}return St}o(Oa,"arrayFilter");function Ed(V,X){var G=V==null?0:V.length;return!!G&&Hc(V,X,0)>-1}o(Ed,"arrayIncludes");function hv(V,X,G){for(var Se=-1,We=V==null?0:V.length;++Se<We;)if(G(X,V[Se]))return!0;return!1}o(hv,"arrayIncludesWith");function fn(V,X){for(var G=-1,Se=V==null?0:V.length,We=Array(Se);++G<Se;)We[G]=X(V[G],G,V);return We}o(fn,"arrayMap");function Na(V,X){for(var G=-1,Se=X.length,We=V.length;++G<Se;)V[We+G]=X[G];return V}o(Na,"arrayPush");function yv(V,X,G,Se){var We=-1,St=V==null?0:V.length;for(Se&&St&&(G=V[++We]);++We<St;)G=X(G,V[We],We,V);return G}o(yv,"arrayReduce");function i2(V,X,G,Se){var We=V==null?0:V.length;for(Se&&We&&(G=V[--We]);We--;)G=X(G,V[We],We,V);return G}o(i2,"arrayReduceRight");function vv(V,X){for(var G=-1,Se=V==null?0:V.length;++G<Se;)if(X(V[G],G,V))return!0;return!1}o(vv,"arraySome");var r2=Tv("length");function o2(V){return V.split("")}o(o2,"asciiToArray");function a2(V){return V.match(gw)||[]}o(a2,"asciiWords");function OC(V,X,G){var Se;return G(V,function(We,St,Un){if(X(We,St,Un))return Se=St,!1}),Se}o(OC,"baseFindKey");function Ad(V,X,G,Se){for(var We=V.length,St=G+(Se?1:-1);Se?St--:++St<We;)if(X(V[St],St,V))return St;return-1}o(Ad,"baseFindIndex");function Hc(V,X,G){return X===X?T2(V,X,G):Ad(V,NC,G)}o(Hc,"baseIndexOf");function s2(V,X,G,Se){for(var We=G-1,St=V.length;++We<St;)if(Se(V[We],X))return We;return-1}o(s2,"baseIndexOfWith");function NC(V){return V!==V}o(NC,"baseIsNaN");function LC(V,X){var G=V==null?0:V.length;return G?Ev(V,X)/G:It}o(LC,"baseMean");function Tv(V){return function(X){return X==null?e:X[V]}}o(Tv,"baseProperty");function bv(V){return function(X){return V==null?e:V[X]}}o(bv,"basePropertyOf");function FC(V,X,G,Se,We){return We(V,function(St,Un,Wt){G=Se?(Se=!1,St):X(G,St,Un,Wt)}),G}o(FC,"baseReduce");function c2(V,X){var G=V.length;for(V.sort(X);G--;)V[G]=V[G].value;return V}o(c2,"baseSortBy");function Ev(V,X){for(var G,Se=-1,We=V.length;++Se<We;){var St=X(V[Se]);St!==e&&(G=G===e?St:G+St)}return G}o(Ev,"baseSum");function Av(V,X){for(var G=-1,Se=Array(V);++G<V;)Se[G]=X(G);return Se}o(Av,"baseTimes");function l2(V,X){return fn(X,function(G){return[G,V[G]]})}o(l2,"baseToPairs");function RC(V){return V&&V.slice(0,MC(V)+1).replace(cv,"")}o(RC,"baseTrim");function cr(V){return function(X){return V(X)}}o(cr,"baseUnary");function Sv(V,X){return fn(X,function(G){return V[G]})}o(Sv,"baseValues");function Df(V,X){return V.has(X)}o(Df,"cacheHas");function _C(V,X){for(var G=-1,Se=V.length;++G<Se&&Hc(X,V[G],0)>-1;);return G}o(_C,"charsStartIndex");function DC(V,X){for(var G=V.length;G--&&Hc(X,V[G],0)>-1;);return G}o(DC,"charsEndIndex");function f2(V,X){for(var G=V.length,Se=0;G--;)V[G]===X&&++Se;return Se}o(f2,"countHolders");var u2=bv(Qw),p2=bv(qw);function d2(V){return"\\"+Yw[V]}o(d2,"escapeStringChar");function g2(V,X){return V==null?e:V[X]}o(g2,"getValue");function Gc(V){return Gw.test(V)}o(Gc,"hasUnicode");function m2(V){return Ww.test(V)}o(m2,"hasUnicodeWord");function h2(V){for(var X,G=[];!(X=V.next()).done;)G.push(X.value);return G}o(h2,"iteratorToArray");function Pv(V){var X=-1,G=Array(V.size);return V.forEach(function(Se,We){G[++X]=[We,Se]}),G}o(Pv,"mapToArray");function VC(V,X){return function(G){return V(X(G))}}o(VC,"overArg");function La(V,X){for(var G=-1,Se=V.length,We=0,St=[];++G<Se;){var Un=V[G];(Un===X||Un===u)&&(V[G]=u,St[We++]=G)}return St}o(La,"replaceHolders");function Sd(V){var X=-1,G=Array(V.size);return V.forEach(function(Se){G[++X]=Se}),G}o(Sd,"setToArray");function y2(V){var X=-1,G=Array(V.size);return V.forEach(function(Se){G[++X]=[Se,Se]}),G}o(y2,"setToPairs");function T2(V,X,G){for(var Se=G-1,We=V.length;++Se<We;)if(V[Se]===X)return Se;return-1}o(T2,"strictIndexOf");function b2(V,X,G){for(var Se=G+1;Se--;)if(V[Se]===X)return Se;return Se}o(b2,"strictLastIndexOf");function Wc(V){return Gc(V)?A2(V):r2(V)}o(Wc,"stringSize");function zr(V){return Gc(V)?S2(V):o2(V)}o(zr,"stringToArray");function MC(V){for(var X=V.length;X--&&fw.test(V.charAt(X)););return X}o(MC,"trimmedEndIndex");var E2=bv(zw);function A2(V){for(var X=dv.lastIndex=0;dv.test(V);)++X;return X}o(A2,"unicodeSize");function S2(V){return V.match(dv)||[]}o(S2,"unicodeToArray");function P2(V){return V.match(Hw)||[]}o(P2,"unicodeWords");var x2=o(function V(X){X=X==null?Xn:Fa.defaults(Xn.Object(),X,Fa.pick(Xn,Kw));var G=X.Array,Se=X.Date,We=X.Error,St=X.Function,Un=X.Math,Wt=X.Object,xv=X.RegExp,C2=X.String,Fr=X.TypeError,Pd=G.prototype,I2=St.prototype,Kc=Wt.prototype,xd=X["__core-js_shared__"],Cd=I2.toString,Rt=Kc.hasOwnProperty,O2=0,wC=function(){var c=/[^.]+$/.exec(xd&&xd.keys&&xd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Id=Kc.toString,N2=Cd.call(Wt),L2=Xn._,F2=xv("^"+Cd.call(Rt).replace(_f,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Od=bC?X.Buffer:e,Ra=X.Symbol,Nd=X.Uint8Array,kC=Od?Od.allocUnsafe:e,Ld=VC(Wt.getPrototypeOf,Wt),UC=Wt.create,jC=Kc.propertyIsEnumerable,Fd=Pd.splice,$C=Ra?Ra.isConcatSpreadable:e,Vf=Ra?Ra.iterator:e,ws=Ra?Ra.toStringTag:e,Rd=function(){try{var c=Bs(Wt,"defineProperty");return c({},"",{}),c}catch{}}(),R2=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,_2=Se&&Se.now!==Xn.Date.now&&Se.now,D2=X.setTimeout!==Xn.setTimeout&&X.setTimeout,_d=Un.ceil,Dd=Un.floor,Cv=Wt.getOwnPropertySymbols,V2=Od?Od.isBuffer:e,BC=X.isFinite,M2=Pd.join,w2=VC(Wt.keys,Wt),jn=Un.max,vi=Un.min,k2=Se.now,U2=X.parseInt,HC=Un.random,j2=Pd.reverse,Iv=Bs(X,"DataView"),Mf=Bs(X,"Map"),Ov=Bs(X,"Promise"),Xc=Bs(X,"Set"),wf=Bs(X,"WeakMap"),kf=Bs(Wt,"create"),Vd=wf&&new wf,Qc={},$2=Hs(Iv),B2=Hs(Mf),H2=Hs(Ov),G2=Hs(Xc),W2=Hs(wf),Md=Ra?Ra.prototype:e,Uf=Md?Md.valueOf:e,GC=Md?Md.toString:e;function P(c){if(vn(c)&&!Qe(c)&&!(c instanceof pt)){if(c instanceof Rr)return c;if(Rt.call(c,"__wrapped__"))return WI(c)}return new Rr(c)}o(P,"lodash");var qc=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(UC)return UC(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function wd(){}o(wd,"baseLodash");function Rr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Rr,"LodashWrapper"),P.templateSettings={escape:ot,evaluate:Gt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=wd.prototype,P.prototype.constructor=P,Rr.prototype=qc(wd.prototype),Rr.prototype.constructor=Rr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(pt,"LazyWrapper");function K2(){var c=new pt(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(K2,"lazyClone");function X2(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(X2,"lazyReverse");function Q2(){var c=this.__wrapped__.value(),f=this.__dir__,d=Qe(c),v=f<0,E=d?c.length:0,C=aU(0,E,this.__views__),L=C.start,F=C.end,w=F-L,z=v?F:L-1,Y=this.__iteratees__,ee=Y.length,me=0,Le=vi(w,this.__takeCount__);if(!d||!v&&E==w&&Le==w)return gI(c,this.__actions__);var ke=[];e:for(;w--&&me<Le;){z+=f;for(var et=-1,Ue=c[z];++et<ee;){var ct=Y[et],gt=ct.iteratee,ur=ct.type,Fi=gt(Ue);if(ur==Wn)Ue=Fi;else if(!Fi){if(ur==on)continue e;break e}}ke[me++]=Ue}return ke}o(Q2,"lazyValue"),pt.prototype=qc(wd.prototype),pt.prototype.constructor=pt;function ks(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(ks,"Hash");function q2(){this.__data__=kf?kf(null):{},this.size=0}o(q2,"hashClear");function z2(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(z2,"hashDelete");function Y2(c){var f=this.__data__;if(kf){var d=f[c];return d===s?e:d}return Rt.call(f,c)?f[c]:e}o(Y2,"hashGet");function J2(c){var f=this.__data__;return kf?f[c]!==e:Rt.call(f,c)}o(J2,"hashHas");function Z2(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=kf&&f===e?s:f,this}o(Z2,"hashSet"),ks.prototype.clear=q2,ks.prototype.delete=z2,ks.prototype.get=Y2,ks.prototype.has=J2,ks.prototype.set=Z2;function Qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(Qo,"ListCache");function ek(){this.__data__=[],this.size=0}o(ek,"listCacheClear");function tk(c){var f=this.__data__,d=kd(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():Fd.call(f,d,1),--this.size,!0}o(tk,"listCacheDelete");function nk(c){var f=this.__data__,d=kd(f,c);return d<0?e:f[d][1]}o(nk,"listCacheGet");function ik(c){return kd(this.__data__,c)>-1}o(ik,"listCacheHas");function rk(c,f){var d=this.__data__,v=kd(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(rk,"listCacheSet"),Qo.prototype.clear=ek,Qo.prototype.delete=tk,Qo.prototype.get=nk,Qo.prototype.has=ik,Qo.prototype.set=rk;function qo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var v=c[f];this.set(v[0],v[1])}}o(qo,"MapCache");function ok(){this.size=0,this.__data__={hash:new ks,map:new(Mf||Qo),string:new ks}}o(ok,"mapCacheClear");function ak(c){var f=zd(this,c).delete(c);return this.size-=f?1:0,f}o(ak,"mapCacheDelete");function sk(c){return zd(this,c).get(c)}o(sk,"mapCacheGet");function ck(c){return zd(this,c).has(c)}o(ck,"mapCacheHas");function lk(c,f){var d=zd(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(lk,"mapCacheSet"),qo.prototype.clear=ok,qo.prototype.delete=ak,qo.prototype.get=sk,qo.prototype.has=ck,qo.prototype.set=lk;function Us(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new qo;++f<d;)this.add(c[f])}o(Us,"SetCache");function fk(c){return this.__data__.set(c,s),this}o(fk,"setCacheAdd");function uk(c){return this.__data__.has(c)}o(uk,"setCacheHas"),Us.prototype.add=Us.prototype.push=fk,Us.prototype.has=uk;function Yr(c){var f=this.__data__=new Qo(c);this.size=f.size}o(Yr,"Stack");function pk(){this.__data__=new Qo,this.size=0}o(pk,"stackClear");function dk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(dk,"stackDelete");function gk(c){return this.__data__.get(c)}o(gk,"stackGet");function mk(c){return this.__data__.has(c)}o(mk,"stackHas");function hk(c,f){var d=this.__data__;if(d instanceof Qo){var v=d.__data__;if(!Mf||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new qo(v)}return d.set(c,f),this.size=d.size,this}o(hk,"stackSet"),Yr.prototype.clear=pk,Yr.prototype.delete=dk,Yr.prototype.get=gk,Yr.prototype.has=mk,Yr.prototype.set=hk;function WC(c,f){var d=Qe(c),v=!d&&Gs(c),E=!d&&!v&&wa(c),C=!d&&!v&&!E&&Zc(c),L=d||v||E||C,F=L?Av(c.length,C2):[],w=F.length;for(var z in c)(f||Rt.call(c,z))&&!(L&&(z=="length"||E&&(z=="offset"||z=="parent")||C&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||Zo(z,w)))&&F.push(z);return F}o(WC,"arrayLikeKeys");function KC(c){var f=c.length;return f?c[Uv(0,f-1)]:e}o(KC,"arraySample");function yk(c,f){return Yd(Gi(c),js(f,0,c.length))}o(yk,"arraySampleSize");function vk(c){return Yd(Gi(c))}o(vk,"arrayShuffle");function Nv(c,f,d){(d!==e&&!Jr(c[f],d)||d===e&&!(f in c))&&zo(c,f,d)}o(Nv,"assignMergeValue");function jf(c,f,d){var v=c[f];(!(Rt.call(c,f)&&Jr(v,d))||d===e&&!(f in c))&&zo(c,f,d)}o(jf,"assignValue");function kd(c,f){for(var d=c.length;d--;)if(Jr(c[d][0],f))return d;return-1}o(kd,"assocIndexOf");function Tk(c,f,d,v){return _a(c,function(E,C,L){f(v,E,d(E),L)}),v}o(Tk,"baseAggregator");function XC(c,f){return c&&Ao(f,Qn(f),c)}o(XC,"baseAssign");function bk(c,f){return c&&Ao(f,Ki(f),c)}o(bk,"baseAssignIn");function zo(c,f,d){f=="__proto__"&&Rd?Rd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(zo,"baseAssignValue");function Lv(c,f){for(var d=-1,v=f.length,E=G(v),C=c==null;++d<v;)E[d]=C?e:fT(c,f[d]);return E}o(Lv,"baseAt");function js(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(js,"baseClamp");function _r(c,f,d,v,E,C){var L,F=f&p,w=f&g,z=f&m;if(d&&(L=E?d(c,v,E,C):d(c)),L!==e)return L;if(!hn(c))return c;var Y=Qe(c);if(Y){if(L=cU(c),!F)return Gi(c,L)}else{var ee=Ti(c),me=ee==Ve||ee==Ft;if(wa(c))return yI(c,F);if(ee==cn||ee==Kn||me&&!E){if(L=w||me?{}:MI(c),!F)return w?Yk(c,bk(L,c)):zk(c,XC(L,c))}else{if(!qt[ee])return E?c:{};L=lU(c,ee,F)}}C||(C=new Yr);var Le=C.get(c);if(Le)return Le;C.set(c,L),uO(c)?c.forEach(function(Ue){L.add(_r(Ue,f,d,Ue,c,C))}):lO(c)&&c.forEach(function(Ue,ct){L.set(ct,_r(Ue,f,d,ct,c,C))});var ke=z?w?zv:qv:w?Ki:Qn,et=Y?e:ke(c);return Lr(et||c,function(Ue,ct){et&&(ct=Ue,Ue=c[ct]),jf(L,ct,_r(Ue,f,d,ct,c,C))}),L}o(_r,"baseClone");function Ek(c){var f=Qn(c);return function(d){return QC(d,c,f)}}o(Ek,"baseConforms");function QC(c,f,d){var v=d.length;if(c==null)return!v;for(c=Wt(c);v--;){var E=d[v],C=f[E],L=c[E];if(L===e&&!(E in c)||!C(L))return!1}return!0}o(QC,"baseConformsTo");function qC(c,f,d){if(typeof c!="function")throw new Fr(r);return Xf(function(){c.apply(e,d)},f)}o(qC,"baseDelay");function $f(c,f,d,v){var E=-1,C=Ed,L=!0,F=c.length,w=[],z=f.length;if(!F)return w;d&&(f=fn(f,cr(d))),v?(C=hv,L=!1):f.length>=n&&(C=Df,L=!1,f=new Us(f));e:for(;++E<F;){var Y=c[E],ee=d==null?Y:d(Y);if(Y=v||Y!==0?Y:0,L&&ee===ee){for(var me=z;me--;)if(f[me]===ee)continue e;w.push(Y)}else C(f,ee,v)||w.push(Y)}return w}o($f,"baseDifference");var _a=AI(Eo),zC=AI(Rv,!0);function Ak(c,f){var d=!0;return _a(c,function(v,E,C){return d=!!f(v,E,C),d}),d}o(Ak,"baseEvery");function Ud(c,f,d){for(var v=-1,E=c.length;++v<E;){var C=c[v],L=f(C);if(L!=null&&(F===e?L===L&&!fr(L):d(L,F)))var F=L,w=C}return w}o(Ud,"baseExtremum");function Sk(c,f,d,v){var E=c.length;for(d=Ze(d),d<0&&(d=-d>E?0:E+d),v=v===e||v>E?E:Ze(v),v<0&&(v+=E),v=d>v?0:dO(v);d<v;)c[d++]=f;return c}o(Sk,"baseFill");function YC(c,f){var d=[];return _a(c,function(v,E,C){f(v,E,C)&&d.push(v)}),d}o(YC,"baseFilter");function ii(c,f,d,v,E){var C=-1,L=c.length;for(d||(d=uU),E||(E=[]);++C<L;){var F=c[C];f>0&&d(F)?f>1?ii(F,f-1,d,v,E):Na(E,F):v||(E[E.length]=F)}return E}o(ii,"baseFlatten");var Fv=SI(),JC=SI(!0);function Eo(c,f){return c&&Fv(c,f,Qn)}o(Eo,"baseForOwn");function Rv(c,f){return c&&JC(c,f,Qn)}o(Rv,"baseForOwnRight");function jd(c,f){return Oa(f,function(d){return ea(c[d])})}o(jd,"baseFunctions");function $s(c,f){f=Va(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[So(f[d++])];return d&&d==v?c:e}o($s,"baseGet");function ZC(c,f,d){var v=f(c);return Qe(c)?v:Na(v,d(c))}o(ZC,"baseGetAllKeys");function Ni(c){return c==null?c===e?Xo:Rn:ws&&ws in Wt(c)?oU(c):vU(c)}o(Ni,"baseGetTag");function _v(c,f){return c>f}o(_v,"baseGt");function Pk(c,f){return c!=null&&Rt.call(c,f)}o(Pk,"baseHas");function xk(c,f){return c!=null&&f in Wt(c)}o(xk,"baseHasIn");function Ck(c,f,d){return c>=vi(f,d)&&c<jn(f,d)}o(Ck,"baseInRange");function Dv(c,f,d){for(var v=d?hv:Ed,E=c[0].length,C=c.length,L=C,F=G(C),w=1/0,z=[];L--;){var Y=c[L];L&&f&&(Y=fn(Y,cr(f))),w=vi(Y.length,w),F[L]=!d&&(f||E>=120&&Y.length>=120)?new Us(L&&Y):e}Y=c[0];var ee=-1,me=F[0];e:for(;++ee<E&&z.length<w;){var Le=Y[ee],ke=f?f(Le):Le;if(Le=d||Le!==0?Le:0,!(me?Df(me,ke):v(z,ke,d))){for(L=C;--L;){var et=F[L];if(!(et?Df(et,ke):v(c[L],ke,d)))continue e}me&&me.push(ke),z.push(Le)}}return z}o(Dv,"baseIntersection");function Ik(c,f,d,v){return Eo(c,function(E,C,L){f(v,d(E),C,L)}),v}o(Ik,"baseInverter");function Bf(c,f,d){f=Va(f,c),c=jI(c,f);var v=c==null?c:c[So(Vr(f))];return v==null?e:sr(v,c,d)}o(Bf,"baseInvoke");function eI(c){return vn(c)&&Ni(c)==Kn}o(eI,"baseIsArguments");function Ok(c){return vn(c)&&Ni(c)==Ds}o(Ok,"baseIsArrayBuffer");function Nk(c){return vn(c)&&Ni(c)==S}o(Nk,"baseIsDate");function Hf(c,f,d,v,E){return c===f?!0:c==null||f==null||!vn(c)&&!vn(f)?c!==c&&f!==f:Lk(c,f,d,v,Hf,E)}o(Hf,"baseIsEqual");function Lk(c,f,d,v,E,C){var L=Qe(c),F=Qe(f),w=L?Ir:Ti(c),z=F?Ir:Ti(f);w=w==Kn?cn:w,z=z==Kn?cn:z;var Y=w==cn,ee=z==cn,me=w==z;if(me&&wa(c)){if(!wa(f))return!1;L=!0,Y=!1}if(me&&!Y)return C||(C=new Yr),L||Zc(c)?_I(c,f,d,v,E,C):iU(c,f,w,d,v,E,C);if(!(d&T)){var Le=Y&&Rt.call(c,"__wrapped__"),ke=ee&&Rt.call(f,"__wrapped__");if(Le||ke){var et=Le?c.value():c,Ue=ke?f.value():f;return C||(C=new Yr),E(et,Ue,d,v,C)}}return me?(C||(C=new Yr),rU(c,f,d,v,E,C)):!1}o(Lk,"baseIsEqualDeep");function Fk(c){return vn(c)&&Ti(c)==qe}o(Fk,"baseIsMap");function Vv(c,f,d,v){var E=d.length,C=E,L=!v;if(c==null)return!C;for(c=Wt(c);E--;){var F=d[E];if(L&&F[2]?F[1]!==c[F[0]]:!(F[0]in c))return!1}for(;++E<C;){F=d[E];var w=F[0],z=c[w],Y=F[1];if(L&&F[2]){if(z===e&&!(w in c))return!1}else{var ee=new Yr;if(v)var me=v(z,Y,w,c,f,ee);if(!(me===e?Hf(Y,z,T|A,v,ee):me))return!1}}return!0}o(Vv,"baseIsMatch");function tI(c){if(!hn(c)||dU(c))return!1;var f=ea(c)?F2:bw;return f.test(Hs(c))}o(tI,"baseIsNative");function Rk(c){return vn(c)&&Ni(c)==or}o(Rk,"baseIsRegExp");function _k(c){return vn(c)&&Ti(c)==gn}o(_k,"baseIsSet");function Dk(c){return vn(c)&&ig(c.length)&&!!en[Ni(c)]}o(Dk,"baseIsTypedArray");function nI(c){return typeof c=="function"?c:c==null?Xi:typeof c=="object"?Qe(c)?oI(c[0],c[1]):rI(c):PO(c)}o(nI,"baseIteratee");function Mv(c){if(!Kf(c))return w2(c);var f=[];for(var d in Wt(c))Rt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Mv,"baseKeys");function Vk(c){if(!hn(c))return yU(c);var f=Kf(c),d=[];for(var v in c)v=="constructor"&&(f||!Rt.call(c,v))||d.push(v);return d}o(Vk,"baseKeysIn");function wv(c,f){return c<f}o(wv,"baseLt");function iI(c,f){var d=-1,v=Wi(c)?G(c.length):[];return _a(c,function(E,C,L){v[++d]=f(E,C,L)}),v}o(iI,"baseMap");function rI(c){var f=Jv(c);return f.length==1&&f[0][2]?kI(f[0][0],f[0][1]):function(d){return d===c||Vv(d,c,f)}}o(rI,"baseMatches");function oI(c,f){return eT(c)&&wI(f)?kI(So(c),f):function(d){var v=fT(d,c);return v===e&&v===f?uT(d,c):Hf(f,v,T|A)}}o(oI,"baseMatchesProperty");function $d(c,f,d,v,E){c!==f&&Fv(f,function(C,L){if(E||(E=new Yr),hn(C))Mk(c,f,L,d,$d,v,E);else{var F=v?v(nT(c,L),C,L+"",c,f,E):e;F===e&&(F=C),Nv(c,L,F)}},Ki)}o($d,"baseMerge");function Mk(c,f,d,v,E,C,L){var F=nT(c,d),w=nT(f,d),z=L.get(w);if(z){Nv(c,d,z);return}var Y=C?C(F,w,d+"",c,f,L):e,ee=Y===e;if(ee){var me=Qe(w),Le=!me&&wa(w),ke=!me&&!Le&&Zc(w);Y=w,me||Le||ke?Qe(F)?Y=F:Cn(F)?Y=Gi(F):Le?(ee=!1,Y=yI(w,!0)):ke?(ee=!1,Y=vI(w,!0)):Y=[]:Qf(w)||Gs(w)?(Y=F,Gs(F)?Y=gO(F):(!hn(F)||ea(F))&&(Y=MI(w))):ee=!1}ee&&(L.set(w,Y),E(Y,w,v,C,L),L.delete(w)),Nv(c,d,Y)}o(Mk,"baseMergeDeep");function aI(c,f){var d=c.length;if(d)return f+=f<0?d:0,Zo(f,d)?c[f]:e}o(aI,"baseNth");function sI(c,f,d){f.length?f=fn(f,function(C){return Qe(C)?function(L){return $s(L,C.length===1?C[0]:C)}:C}):f=[Xi];var v=-1;f=fn(f,cr(Me()));var E=iI(c,function(C,L,F){var w=fn(f,function(z){return z(C)});return{criteria:w,index:++v,value:C}});return c2(E,function(C,L){return qk(C,L,d)})}o(sI,"baseOrderBy");function wk(c,f){return cI(c,f,function(d,v){return uT(c,v)})}o(wk,"basePick");function cI(c,f,d){for(var v=-1,E=f.length,C={};++v<E;){var L=f[v],F=$s(c,L);d(F,L)&&Gf(C,Va(L,c),F)}return C}o(cI,"basePickBy");function kk(c){return function(f){return $s(f,c)}}o(kk,"basePropertyDeep");function kv(c,f,d,v){var E=v?s2:Hc,C=-1,L=f.length,F=c;for(c===f&&(f=Gi(f)),d&&(F=fn(c,cr(d)));++C<L;)for(var w=0,z=f[C],Y=d?d(z):z;(w=E(F,Y,w,v))>-1;)F!==c&&Fd.call(F,w,1),Fd.call(c,w,1);return c}o(kv,"basePullAll");function lI(c,f){for(var d=c?f.length:0,v=d-1;d--;){var E=f[d];if(d==v||E!==C){var C=E;Zo(E)?Fd.call(c,E,1):Bv(c,E)}}return c}o(lI,"basePullAt");function Uv(c,f){return c+Dd(HC()*(f-c+1))}o(Uv,"baseRandom");function Uk(c,f,d,v){for(var E=-1,C=jn(_d((f-c)/(d||1)),0),L=G(C);C--;)L[v?C:++E]=c,c+=d;return L}o(Uk,"baseRange");function jv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Dd(f/2),f&&(c+=c);while(f);return d}o(jv,"baseRepeat");function it(c,f){return iT(UI(c,f,Xi),c+"")}o(it,"baseRest");function jk(c){return KC(el(c))}o(jk,"baseSample");function $k(c,f){var d=el(c);return Yd(d,js(f,0,d.length))}o($k,"baseSampleSize");function Gf(c,f,d,v){if(!hn(c))return c;f=Va(f,c);for(var E=-1,C=f.length,L=C-1,F=c;F!=null&&++E<C;){var w=So(f[E]),z=d;if(w==="__proto__"||w==="constructor"||w==="prototype")return c;if(E!=L){var Y=F[w];z=v?v(Y,w,F):e,z===e&&(z=hn(Y)?Y:Zo(f[E+1])?[]:{})}jf(F,w,z),F=F[w]}return c}o(Gf,"baseSet");var fI=Vd?function(c,f){return Vd.set(c,f),c}:Xi,Bk=Rd?function(c,f){return Rd(c,"toString",{configurable:!0,enumerable:!1,value:dT(f),writable:!0})}:Xi;function Hk(c){return Yd(el(c))}o(Hk,"baseShuffle");function Dr(c,f,d){var v=-1,E=c.length;f<0&&(f=-f>E?0:E+f),d=d>E?E:d,d<0&&(d+=E),E=f>d?0:d-f>>>0,f>>>=0;for(var C=G(E);++v<E;)C[v]=c[v+f];return C}o(Dr,"baseSlice");function Gk(c,f){var d;return _a(c,function(v,E,C){return d=f(v,E,C),!d}),!!d}o(Gk,"baseSome");function Bd(c,f,d){var v=0,E=c==null?v:c.length;if(typeof f=="number"&&f===f&&E<=Bi){for(;v<E;){var C=v+E>>>1,L=c[C];L!==null&&!fr(L)&&(d?L<=f:L<f)?v=C+1:E=C}return E}return $v(c,f,Xi,d)}o(Bd,"baseSortedIndex");function $v(c,f,d,v){var E=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,F=f===null,w=fr(f),z=f===e;E<C;){var Y=Dd((E+C)/2),ee=d(c[Y]),me=ee!==e,Le=ee===null,ke=ee===ee,et=fr(ee);if(L)var Ue=v||ke;else z?Ue=ke&&(v||me):F?Ue=ke&&me&&(v||!Le):w?Ue=ke&&me&&!Le&&(v||!et):Le||et?Ue=!1:Ue=v?ee<=f:ee<f;Ue?E=Y+1:C=Y}return vi(C,sn)}o($v,"baseSortedIndexBy");function uI(c,f){for(var d=-1,v=c.length,E=0,C=[];++d<v;){var L=c[d],F=f?f(L):L;if(!d||!Jr(F,w)){var w=F;C[E++]=L===0?0:L}}return C}o(uI,"baseSortedUniq");function pI(c){return typeof c=="number"?c:fr(c)?It:+c}o(pI,"baseToNumber");function lr(c){if(typeof c=="string")return c;if(Qe(c))return fn(c,lr)+"";if(fr(c))return GC?GC.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(lr,"baseToString");function Da(c,f,d){var v=-1,E=Ed,C=c.length,L=!0,F=[],w=F;if(d)L=!1,E=hv;else if(C>=n){var z=f?null:tU(c);if(z)return Sd(z);L=!1,E=Df,w=new Us}else w=f?[]:F;e:for(;++v<C;){var Y=c[v],ee=f?f(Y):Y;if(Y=d||Y!==0?Y:0,L&&ee===ee){for(var me=w.length;me--;)if(w[me]===ee)continue e;f&&w.push(ee),F.push(Y)}else E(w,ee,d)||(w!==F&&w.push(ee),F.push(Y))}return F}o(Da,"baseUniq");function Bv(c,f){return f=Va(f,c),c=jI(c,f),c==null||delete c[So(Vr(f))]}o(Bv,"baseUnset");function dI(c,f,d,v){return Gf(c,f,d($s(c,f)),v)}o(dI,"baseUpdate");function Hd(c,f,d,v){for(var E=c.length,C=v?E:-1;(v?C--:++C<E)&&f(c[C],C,c););return d?Dr(c,v?0:C,v?C+1:E):Dr(c,v?C+1:0,v?E:C)}o(Hd,"baseWhile");function gI(c,f){var d=c;return d instanceof pt&&(d=d.value()),yv(f,function(v,E){return E.func.apply(E.thisArg,Na([v],E.args))},d)}o(gI,"baseWrapperValue");function Hv(c,f,d){var v=c.length;if(v<2)return v?Da(c[0]):[];for(var E=-1,C=G(v);++E<v;)for(var L=c[E],F=-1;++F<v;)F!=E&&(C[E]=$f(C[E]||L,c[F],f,d));return Da(ii(C,1),f,d)}o(Hv,"baseXor");function mI(c,f,d){for(var v=-1,E=c.length,C=f.length,L={};++v<E;){var F=v<C?f[v]:e;d(L,c[v],F)}return L}o(mI,"baseZipObject");function Gv(c){return Cn(c)?c:[]}o(Gv,"castArrayLikeObject");function Wv(c){return typeof c=="function"?c:Xi}o(Wv,"castFunction");function Va(c,f){return Qe(c)?c:eT(c,f)?[c]:GI(Ot(c))}o(Va,"castPath");var Wk=it;function Ma(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:Dr(c,f,d)}o(Ma,"castSlice");var hI=R2||function(c){return Xn.clearTimeout(c)};function yI(c,f){if(f)return c.slice();var d=c.length,v=kC?kC(d):new c.constructor(d);return c.copy(v),v}o(yI,"cloneBuffer");function Kv(c){var f=new c.constructor(c.byteLength);return new Nd(f).set(new Nd(c)),f}o(Kv,"cloneArrayBuffer");function Kk(c,f){var d=f?Kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(Kk,"cloneDataView");function Xk(c){var f=new c.constructor(c.source,eC.exec(c));return f.lastIndex=c.lastIndex,f}o(Xk,"cloneRegExp");function Qk(c){return Uf?Wt(Uf.call(c)):{}}o(Qk,"cloneSymbol");function vI(c,f){var d=f?Kv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(vI,"cloneTypedArray");function TI(c,f){if(c!==f){var d=c!==e,v=c===null,E=c===c,C=fr(c),L=f!==e,F=f===null,w=f===f,z=fr(f);if(!F&&!z&&!C&&c>f||C&&L&&w&&!F&&!z||v&&L&&w||!d&&w||!E)return 1;if(!v&&!C&&!z&&c<f||z&&d&&E&&!v&&!C||F&&d&&E||!L&&E||!w)return-1}return 0}o(TI,"compareAscending");function qk(c,f,d){for(var v=-1,E=c.criteria,C=f.criteria,L=E.length,F=d.length;++v<L;){var w=TI(E[v],C[v]);if(w){if(v>=F)return w;var z=d[v];return w*(z=="desc"?-1:1)}}return c.index-f.index}o(qk,"compareMultiple");function bI(c,f,d,v){for(var E=-1,C=c.length,L=d.length,F=-1,w=f.length,z=jn(C-L,0),Y=G(w+z),ee=!v;++F<w;)Y[F]=f[F];for(;++E<L;)(ee||E<C)&&(Y[d[E]]=c[E]);for(;z--;)Y[F++]=c[E++];return Y}o(bI,"composeArgs");function EI(c,f,d,v){for(var E=-1,C=c.length,L=-1,F=d.length,w=-1,z=f.length,Y=jn(C-F,0),ee=G(Y+z),me=!v;++E<Y;)ee[E]=c[E];for(var Le=E;++w<z;)ee[Le+w]=f[w];for(;++L<F;)(me||E<C)&&(ee[Le+d[L]]=c[E++]);return ee}o(EI,"composeArgsRight");function Gi(c,f){var d=-1,v=c.length;for(f||(f=G(v));++d<v;)f[d]=c[d];return f}o(Gi,"copyArray");function Ao(c,f,d,v){var E=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var F=f[C],w=v?v(d[F],c[F],F,d,c):e;w===e&&(w=c[F]),E?zo(d,F,w):jf(d,F,w)}return d}o(Ao,"copyObject");function zk(c,f){return Ao(c,Zv(c),f)}o(zk,"copySymbols");function Yk(c,f){return Ao(c,DI(c),f)}o(Yk,"copySymbolsIn");function Gd(c,f){return function(d,v){var E=Qe(d)?t2:Tk,C=f?f():{};return E(d,c,Me(v,2),C)}}o(Gd,"createAggregator");function zc(c){return it(function(f,d){var v=-1,E=d.length,C=E>1?d[E-1]:e,L=E>2?d[2]:e;for(C=c.length>3&&typeof C=="function"?(E--,C):e,L&&Li(d[0],d[1],L)&&(C=E<3?e:C,E=1),f=Wt(f);++v<E;){var F=d[v];F&&c(f,F,v,C)}return f})}o(zc,"createAssigner");function AI(c,f){return function(d,v){if(d==null)return d;if(!Wi(d))return c(d,v);for(var E=d.length,C=f?E:-1,L=Wt(d);(f?C--:++C<E)&&v(L[C],C,L)!==!1;);return d}}o(AI,"createBaseEach");function SI(c){return function(f,d,v){for(var E=-1,C=Wt(f),L=v(f),F=L.length;F--;){var w=L[c?F:++E];if(d(C[w],w,C)===!1)break}return f}}o(SI,"createBaseFor");function Jk(c,f,d){var v=f&b,E=Wf(c);function C(){var L=this&&this!==Xn&&this instanceof C?E:c;return L.apply(v?d:this,arguments)}return o(C,"wrapper"),C}o(Jk,"createBind");function PI(c){return function(f){f=Ot(f);var d=Gc(f)?zr(f):e,v=d?d[0]:f.charAt(0),E=d?Ma(d,1).join(""):f.slice(1);return v[c]()+E}}o(PI,"createCaseFirst");function Yc(c){return function(f){return yv(AO(EO(f).replace($w,"")),c,"")}}o(Yc,"createCompounder");function Wf(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=qc(c.prototype),v=c.apply(d,f);return hn(v)?v:d}}o(Wf,"createCtor");function Zk(c,f,d){var v=Wf(c);function E(){for(var C=arguments.length,L=G(C),F=C,w=Jc(E);F--;)L[F]=arguments[F];var z=C<3&&L[0]!==w&&L[C-1]!==w?[]:La(L,w);if(C-=z.length,C<d)return NI(c,f,Wd,E.placeholder,e,L,z,e,e,d-C);var Y=this&&this!==Xn&&this instanceof E?v:c;return sr(Y,this,L)}return o(E,"wrapper"),E}o(Zk,"createCurry");function xI(c){return function(f,d,v){var E=Wt(f);if(!Wi(f)){var C=Me(d,3);f=Qn(f),d=o(function(F){return C(E[F],F,E)},"predicate")}var L=c(f,d,v);return L>-1?E[C?f[L]:L]:e}}o(xI,"createFind");function CI(c){return Jo(function(f){var d=f.length,v=d,E=Rr.prototype.thru;for(c&&f.reverse();v--;){var C=f[v];if(typeof C!="function")throw new Fr(r);if(E&&!L&&qd(C)=="wrapper")var L=new Rr([],!0)}for(v=L?v:d;++v<d;){C=f[v];var F=qd(C),w=F=="wrapper"?Yv(C):e;w&&tT(w[0])&&w[1]==(Z|U|j|re)&&!w[4].length&&w[9]==1?L=L[qd(w[0])].apply(L,w[3]):L=C.length==1&&tT(C)?L[F]():L.thru(C)}return function(){var z=arguments,Y=z[0];if(L&&z.length==1&&Qe(Y))return L.plant(Y).value();for(var ee=0,me=d?f[ee].apply(this,z):Y;++ee<d;)me=f[ee].call(this,me);return me}})}o(CI,"createFlow");function Wd(c,f,d,v,E,C,L,F,w,z){var Y=f&Z,ee=f&b,me=f&O,Le=f&(U|W),ke=f&xe,et=me?e:Wf(c);function Ue(){for(var ct=arguments.length,gt=G(ct),ur=ct;ur--;)gt[ur]=arguments[ur];if(Le)var Fi=Jc(Ue),pr=f2(gt,Fi);if(v&&(gt=bI(gt,v,E,Le)),C&&(gt=EI(gt,C,L,Le)),ct-=pr,Le&&ct<z){var In=La(gt,Fi);return NI(c,f,Wd,Ue.placeholder,d,gt,In,F,w,z-ct)}var Zr=ee?d:this,na=me?Zr[c]:c;return ct=gt.length,F?gt=TU(gt,F):ke&&ct>1&&gt.reverse(),Y&&w<ct&&(gt.length=w),this&&this!==Xn&&this instanceof Ue&&(na=et||Wf(na)),na.apply(Zr,gt)}return o(Ue,"wrapper"),Ue}o(Wd,"createHybrid");function II(c,f){return function(d,v){return Ik(d,c,f(v),{})}}o(II,"createInverter");function Kd(c,f){return function(d,v){var E;if(d===e&&v===e)return f;if(d!==e&&(E=d),v!==e){if(E===e)return v;typeof d=="string"||typeof v=="string"?(d=lr(d),v=lr(v)):(d=pI(d),v=pI(v)),E=c(d,v)}return E}}o(Kd,"createMathOperation");function Xv(c){return Jo(function(f){return f=fn(f,cr(Me())),it(function(d){var v=this;return c(f,function(E){return sr(E,v,d)})})})}o(Xv,"createOver");function Xd(c,f){f=f===e?" ":lr(f);var d=f.length;if(d<2)return d?jv(f,c):f;var v=jv(f,_d(c/Wc(f)));return Gc(f)?Ma(zr(v),0,c).join(""):v.slice(0,c)}o(Xd,"createPadding");function eU(c,f,d,v){var E=f&b,C=Wf(c);function L(){for(var F=-1,w=arguments.length,z=-1,Y=v.length,ee=G(Y+w),me=this&&this!==Xn&&this instanceof L?C:c;++z<Y;)ee[z]=v[z];for(;w--;)ee[z++]=arguments[++F];return sr(me,E?d:this,ee)}return o(L,"wrapper"),L}o(eU,"createPartial");function OI(c){return function(f,d,v){return v&&typeof v!="number"&&Li(f,d,v)&&(d=v=e),f=ta(f),d===e?(d=f,f=0):d=ta(d),v=v===e?f<d?1:-1:ta(v),Uk(f,d,v,c)}}o(OI,"createRange");function Qd(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Mr(f),d=Mr(d)),c(f,d)}}o(Qd,"createRelationalOperation");function NI(c,f,d,v,E,C,L,F,w,z){var Y=f&U,ee=Y?L:e,me=Y?e:L,Le=Y?C:e,ke=Y?e:C;f|=Y?j:ae,f&=~(Y?ae:j),f&R||(f&=~(b|O));var et=[c,f,E,Le,ee,ke,me,F,w,z],Ue=d.apply(e,et);return tT(c)&&$I(Ue,et),Ue.placeholder=v,BI(Ue,c,f)}o(NI,"createRecurry");function Qv(c){var f=Un[c];return function(d,v){if(d=Mr(d),v=v==null?0:vi(Ze(v),292),v&&BC(d)){var E=(Ot(d)+"e").split("e"),C=f(E[0]+"e"+(+E[1]+v));return E=(Ot(C)+"e").split("e"),+(E[0]+"e"+(+E[1]-v))}return f(d)}}o(Qv,"createRound");var tU=Xc&&1/Sd(new Xc([,-0]))[1]==Lt?function(c){return new Xc(c)}:hT;function LI(c){return function(f){var d=Ti(f);return d==qe?Pv(f):d==gn?y2(f):l2(f,c(f))}}o(LI,"createToPairs");function Yo(c,f,d,v,E,C,L,F){var w=f&O;if(!w&&typeof c!="function")throw new Fr(r);var z=v?v.length:0;if(z||(f&=~(j|ae),v=E=e),L=L===e?L:jn(Ze(L),0),F=F===e?F:Ze(F),z-=E?E.length:0,f&ae){var Y=v,ee=E;v=E=e}var me=w?e:Yv(c),Le=[c,f,d,v,E,Y,ee,C,L,F];if(me&&hU(Le,me),c=Le[0],f=Le[1],d=Le[2],v=Le[3],E=Le[4],F=Le[9]=Le[9]===e?w?0:c.length:jn(Le[9]-z,0),!F&&f&(U|W)&&(f&=~(U|W)),!f||f==b)var ke=Jk(c,f,d);else f==U||f==W?ke=Zk(c,f,F):(f==j||f==(b|j))&&!E.length?ke=eU(c,f,d,v):ke=Wd.apply(e,Le);var et=me?fI:$I;return BI(et(ke,Le),c,f)}o(Yo,"createWrap");function FI(c,f,d,v){return c===e||Jr(c,Kc[d])&&!Rt.call(v,d)?f:c}o(FI,"customDefaultsAssignIn");function RI(c,f,d,v,E,C){return hn(c)&&hn(f)&&(C.set(f,c),$d(c,f,e,RI,C),C.delete(f)),c}o(RI,"customDefaultsMerge");function nU(c){return Qf(c)?e:c}o(nU,"customOmitClone");function _I(c,f,d,v,E,C){var L=d&T,F=c.length,w=f.length;if(F!=w&&!(L&&w>F))return!1;var z=C.get(c),Y=C.get(f);if(z&&Y)return z==f&&Y==c;var ee=-1,me=!0,Le=d&A?new Us:e;for(C.set(c,f),C.set(f,c);++ee<F;){var ke=c[ee],et=f[ee];if(v)var Ue=L?v(et,ke,ee,f,c,C):v(ke,et,ee,c,f,C);if(Ue!==e){if(Ue)continue;me=!1;break}if(Le){if(!vv(f,function(ct,gt){if(!Df(Le,gt)&&(ke===ct||E(ke,ct,d,v,C)))return Le.push(gt)})){me=!1;break}}else if(!(ke===et||E(ke,et,d,v,C))){me=!1;break}}return C.delete(c),C.delete(f),me}o(_I,"equalArrays");function iU(c,f,d,v,E,C,L){switch(d){case Or:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ds:return!(c.byteLength!=f.byteLength||!C(new Nd(c),new Nd(f)));case I:case S:case wt:return Jr(+c,+f);case M:return c.name==f.name&&c.message==f.message;case or:case yi:return c==f+"";case qe:var F=Pv;case gn:var w=v&T;if(F||(F=Sd),c.size!=f.size&&!w)return!1;var z=L.get(c);if(z)return z==f;v|=A,L.set(c,f);var Y=_I(F(c),F(f),v,E,C,L);return L.delete(c),Y;case Ht:if(Uf)return Uf.call(c)==Uf.call(f)}return!1}o(iU,"equalByTag");function rU(c,f,d,v,E,C){var L=d&T,F=qv(c),w=F.length,z=qv(f),Y=z.length;if(w!=Y&&!L)return!1;for(var ee=w;ee--;){var me=F[ee];if(!(L?me in f:Rt.call(f,me)))return!1}var Le=C.get(c),ke=C.get(f);if(Le&&ke)return Le==f&&ke==c;var et=!0;C.set(c,f),C.set(f,c);for(var Ue=L;++ee<w;){me=F[ee];var ct=c[me],gt=f[me];if(v)var ur=L?v(gt,ct,me,f,c,C):v(ct,gt,me,c,f,C);if(!(ur===e?ct===gt||E(ct,gt,d,v,C):ur)){et=!1;break}Ue||(Ue=me=="constructor")}if(et&&!Ue){var Fi=c.constructor,pr=f.constructor;Fi!=pr&&"constructor"in c&&"constructor"in f&&!(typeof Fi=="function"&&Fi instanceof Fi&&typeof pr=="function"&&pr instanceof pr)&&(et=!1)}return C.delete(c),C.delete(f),et}o(rU,"equalObjects");function Jo(c){return iT(UI(c,e,QI),c+"")}o(Jo,"flatRest");function qv(c){return ZC(c,Qn,Zv)}o(qv,"getAllKeys");function zv(c){return ZC(c,Ki,DI)}o(zv,"getAllKeysIn");var Yv=Vd?function(c){return Vd.get(c)}:hT;function qd(c){for(var f=c.name+"",d=Qc[f],v=Rt.call(Qc,f)?d.length:0;v--;){var E=d[v],C=E.func;if(C==null||C==c)return E.name}return f}o(qd,"getFuncName");function Jc(c){var f=Rt.call(P,"placeholder")?P:c;return f.placeholder}o(Jc,"getHolder");function Me(){var c=P.iteratee||gT;return c=c===gT?nI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Me,"getIteratee");function zd(c,f){var d=c.__data__;return pU(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(zd,"getMapData");function Jv(c){for(var f=Qn(c),d=f.length;d--;){var v=f[d],E=c[v];f[d]=[v,E,wI(E)]}return f}o(Jv,"getMatchData");function Bs(c,f){var d=g2(c,f);return tI(d)?d:e}o(Bs,"getNative");function oU(c){var f=Rt.call(c,ws),d=c[ws];try{c[ws]=e;var v=!0}catch{}var E=Id.call(c);return v&&(f?c[ws]=d:delete c[ws]),E}o(oU,"getRawTag");var Zv=Cv?function(c){return c==null?[]:(c=Wt(c),Oa(Cv(c),function(f){return jC.call(c,f)}))}:yT,DI=Cv?function(c){for(var f=[];c;)Na(f,Zv(c)),c=Ld(c);return f}:yT,Ti=Ni;(Iv&&Ti(new Iv(new ArrayBuffer(1)))!=Or||Mf&&Ti(new Mf)!=qe||Ov&&Ti(Ov.resolve())!=Bt||Xc&&Ti(new Xc)!=gn||wf&&Ti(new wf)!=Hi)&&(Ti=o(function(c){var f=Ni(c),d=f==cn?c.constructor:e,v=d?Hs(d):"";if(v)switch(v){case $2:return Or;case B2:return qe;case H2:return Bt;case G2:return gn;case W2:return Hi}return f},"getTag"));function aU(c,f,d){for(var v=-1,E=d.length;++v<E;){var C=d[v],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=vi(f,c+L);break;case"takeRight":c=jn(c,f-L);break}}return{start:c,end:f}}o(aU,"getView");function sU(c){var f=c.match(pw);return f?f[1].split(dw):[]}o(sU,"getWrapDetails");function VI(c,f,d){f=Va(f,c);for(var v=-1,E=f.length,C=!1;++v<E;){var L=So(f[v]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++v!=E?C:(E=c==null?0:c.length,!!E&&ig(E)&&Zo(L,E)&&(Qe(c)||Gs(c)))}o(VI,"hasPath");function cU(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Rt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(cU,"initCloneArray");function MI(c){return typeof c.constructor=="function"&&!Kf(c)?qc(Ld(c)):{}}o(MI,"initCloneObject");function lU(c,f,d){var v=c.constructor;switch(f){case Ds:return Kv(c);case I:case S:return new v(+c);case Or:return Kk(c,d);case Lf:case Ff:case Rf:case Vs:case k:case B:case Q:case ce:case Fe:return vI(c,d);case qe:return new v;case wt:case yi:return new v(c);case or:return Xk(c);case gn:return new v;case Ht:return Qk(c)}}o(lU,"initCloneByTag");function fU(c,f){var d=f.length;if(!d)return c;var v=d-1;return f[v]=(d>1?"& ":"")+f[v],f=f.join(d>2?", ":" "),c.replace(uw,`{
270
270
  /* [wrapped with `+f+`] */
271
- `)}o(fU,"insertWrapDetails");function uU(c){return Qe(c)||Gs(c)||!!($C&&c&&c[$C])}o(uU,"isFlattenable");function Zo(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&Aw.test(c))&&c>-1&&c%1==0&&c<f}o(Zo,"isIndex");function Li(c,f,d){if(!mn(d))return!1;var v=typeof f;return(v=="number"?Gi(d)&&Zo(f,d.length):v=="string"&&f in d)?Jr(d[f],c):!1}o(Li,"isIterateeCall");function eT(c,f){if(Qe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||cr(c)?!0:yd.test(c)||!rr.test(c)||f!=null&&c in Wt(f)}o(eT,"isKey");function pU(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(pU,"isKeyable");function tT(c){var f=qd(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var v=Yv(d);return!!v&&c===v[0]}o(tT,"isLaziable");function dU(c){return!!wC&&wC in c}o(dU,"isMasked");var gU=xd?ea:vT;function Kf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Kc;return c===d}o(Kf,"isPrototype");function wI(c){return c===c&&!mn(c)}o(wI,"isStrictComparable");function kI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Wt(d))}}o(kI,"matchesStrictComparable");function mU(c){var f=tg(c,function(v){return d.size===l&&d.clear(),v}),d=f.cache;return f}o(mU,"memoizeCapped");function hU(c,f){var d=c[1],v=f[1],b=d|v,C=b<(E|O|Z),L=v==Z&&d==U||v==Z&&d==re&&c[7].length<=f[8]||v==(Z|re)&&f[7].length<=f[8]&&d==U;if(!(C||L))return c;v&E&&(c[2]=f[2],b|=d&E?0:R);var F=f[3];if(F){var w=c[3];c[3]=w?EI(w,F,f[4]):F,c[4]=w?La(c[3],u):f[4]}return F=f[5],F&&(w=c[5],c[5]=w?bI(w,F,f[6]):F,c[6]=w?La(c[5],u):f[6]),F=f[7],F&&(c[7]=F),v&Z&&(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]=b,c}o(hU,"mergeData");function yU(c){var f=[];if(c!=null)for(var d in Wt(c))f.push(d);return f}o(yU,"nativeKeysIn");function vU(c){return Id.call(c)}o(vU,"objectToString");function UI(c,f,d){return f=jn(f===e?c.length-1:f,0),function(){for(var v=arguments,b=-1,C=jn(v.length-f,0),L=G(C);++b<C;)L[b]=v[f+b];b=-1;for(var F=G(f+1);++b<f;)F[b]=v[b];return F[f]=d(L),or(c,this,F)}}o(UI,"overRest");function jI(c,f){return f.length<2?c:$s(c,Dr(f,0,-1))}o(jI,"parent");function TU(c,f){for(var d=c.length,v=hi(f.length,d),b=Hi(c);v--;){var C=f[v];c[v]=Zo(C,d)?b[C]:e}return c}o(TU,"reorder");function nT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(nT,"safeGet");var $I=HI(fI),Xf=D2||function(c,f){return Xn.setTimeout(c,f)},iT=HI(Bk);function BI(c,f,d){var v=f+"";return iT(c,fU(v,EU(sU(v),d)))}o(BI,"setWrapToString");function HI(c){var f=0,d=0;return function(){var v=k2(),b=$e-(v-d);if(d=v,b>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(HI,"shortOut");function Yd(c,f){var d=-1,v=c.length,b=v-1;for(f=f===e?v:f;++d<f;){var C=Uv(d,b),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(Yd,"shuffleSelf");var GI=mU(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(sv,function(d,v,b,C){f.push(b?C.replace(hw,"$1"):v||d)}),f});function So(c){if(typeof c=="string"||cr(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(So,"toKey");function Hs(c){if(c!=null){try{return Cd.call(c)}catch{}try{return c+""}catch{}}return""}o(Hs,"toSource");function EU(c,f){return Lr(_e,function(d){var v="_."+d[0];f&d[1]&&!bd(c,v)&&c.push(v)}),c.sort()}o(EU,"updateWrapDetails");function WI(c){if(c instanceof pt)return c.clone();var f=new Rr(c.__wrapped__,c.__chain__);return f.__actions__=Hi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(WI,"wrapperClone");function bU(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=jn(Ze(f),0);var v=c==null?0:c.length;if(!v||f<1)return[];for(var b=0,C=0,L=G(_d(v/f));b<v;)L[C++]=Dr(c,b,b+=f);return L}o(bU,"chunk");function AU(c){for(var f=-1,d=c==null?0:c.length,v=0,b=[];++f<d;){var C=c[f];C&&(b[v++]=C)}return b}o(AU,"compact");function SU(){var c=arguments.length;if(!c)return[];for(var f=G(c-1),d=arguments[0],v=c;v--;)f[v-1]=arguments[v];return Na(Qe(d)?Hi(d):[d],ii(f,1))}o(SU,"concat");var PU=it(function(c,f){return In(c)?$f(c,ii(f,1,In,!0)):[]}),xU=it(function(c,f){var d=Vr(f);return In(d)&&(d=e),In(c)?$f(c,ii(f,1,In,!0),Me(d,2)):[]}),CU=it(function(c,f){var d=Vr(f);return In(d)&&(d=e),In(c)?$f(c,ii(f,1,In,!0),e,d):[]});function IU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),Dr(c,f<0?0:f,v)):[]}o(IU,"drop");function OU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),f=v-f,Dr(c,0,f<0?0:f)):[]}o(OU,"dropRight");function NU(c,f){return c&&c.length?Hd(c,Me(f,3),!0,!0):[]}o(NU,"dropRightWhile");function LU(c,f){return c&&c.length?Hd(c,Me(f,3),!0):[]}o(LU,"dropWhile");function FU(c,f,d,v){var b=c==null?0:c.length;return b?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,v=b),Sk(c,f,d,v)):[]}o(FU,"fill");function KI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=d==null?0:Ze(d);return b<0&&(b=jn(v+b,0)),Ad(c,Me(f,3),b)}o(KI,"findIndex");function XI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=v-1;return d!==e&&(b=Ze(d),b=d<0?jn(v+b,0):hi(b,v-1)),Ad(c,Me(f,3),b,!0)}o(XI,"findLastIndex");function QI(c){var f=c==null?0:c.length;return f?ii(c,1):[]}o(QI,"flatten");function RU(c){var f=c==null?0:c.length;return f?ii(c,Lt):[]}o(RU,"flattenDeep");function _U(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ze(f),ii(c,f)):[]}o(_U,"flattenDepth");function DU(c){for(var f=-1,d=c==null?0:c.length,v={};++f<d;){var b=c[f];v[b[0]]=b[1]}return v}o(DU,"fromPairs");function qI(c){return c&&c.length?c[0]:e}o(qI,"head");function VU(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=d==null?0:Ze(d);return b<0&&(b=jn(v+b,0)),Hc(c,f,b)}o(VU,"indexOf");function MU(c){var f=c==null?0:c.length;return f?Dr(c,0,-1):[]}o(MU,"initial");var wU=it(function(c){var f=fn(c,Gv);return f.length&&f[0]===c[0]?Dv(f):[]}),kU=it(function(c){var f=Vr(c),d=fn(c,Gv);return f===Vr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Dv(d,Me(f,2)):[]}),UU=it(function(c){var f=Vr(c),d=fn(c,Gv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Dv(d,e,f):[]});function jU(c,f){return c==null?"":M2.call(c,f)}o(jU,"join");function Vr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(Vr,"last");function $U(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var b=v;return d!==e&&(b=Ze(d),b=b<0?jn(v+b,0):hi(b,v-1)),f===f?E2(c,f,b):Ad(c,NC,b,!0)}o($U,"lastIndexOf");function BU(c,f){return c&&c.length?aI(c,Ze(f)):e}o(BU,"nth");var HU=it(zI);function zI(c,f){return c&&c.length&&f&&f.length?kv(c,f):c}o(zI,"pullAll");function GU(c,f,d){return c&&c.length&&f&&f.length?kv(c,f,Me(d,2)):c}o(GU,"pullAllBy");function WU(c,f,d){return c&&c.length&&f&&f.length?kv(c,f,e,d):c}o(WU,"pullAllWith");var KU=Jo(function(c,f){var d=c==null?0:c.length,v=Lv(c,f);return lI(c,fn(f,function(b){return Zo(b,d)?+b:b}).sort(TI)),v});function XU(c,f){var d=[];if(!(c&&c.length))return d;var v=-1,b=[],C=c.length;for(f=Me(f,3);++v<C;){var L=c[v];f(L,v,c)&&(d.push(L),b.push(v))}return lI(c,b),d}o(XU,"remove");function rT(c){return c==null?c:j2.call(c)}o(rT,"reverse");function QU(c,f,d){var v=c==null?0:c.length;return v?(d&&typeof d!="number"&&Li(c,f,d)?(f=0,d=v):(f=f==null?0:Ze(f),d=d===e?v:Ze(d)),Dr(c,f,d)):[]}o(QU,"slice");function qU(c,f){return Bd(c,f)}o(qU,"sortedIndex");function zU(c,f,d){return $v(c,f,Me(d,2))}o(zU,"sortedIndexBy");function YU(c,f){var d=c==null?0:c.length;if(d){var v=Bd(c,f);if(v<d&&Jr(c[v],f))return v}return-1}o(YU,"sortedIndexOf");function JU(c,f){return Bd(c,f,!0)}o(JU,"sortedLastIndex");function ZU(c,f,d){return $v(c,f,Me(d,2),!0)}o(ZU,"sortedLastIndexBy");function ej(c,f){var d=c==null?0:c.length;if(d){var v=Bd(c,f,!0)-1;if(Jr(c[v],f))return v}return-1}o(ej,"sortedLastIndexOf");function tj(c){return c&&c.length?uI(c):[]}o(tj,"sortedUniq");function nj(c,f){return c&&c.length?uI(c,Me(f,2)):[]}o(nj,"sortedUniqBy");function ij(c){var f=c==null?0:c.length;return f?Dr(c,1,f):[]}o(ij,"tail");function rj(c,f,d){return c&&c.length?(f=d||f===e?1:Ze(f),Dr(c,0,f<0?0:f)):[]}o(rj,"take");function oj(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),f=v-f,Dr(c,f<0?0:f,v)):[]}o(oj,"takeRight");function aj(c,f){return c&&c.length?Hd(c,Me(f,3),!1,!0):[]}o(aj,"takeRightWhile");function sj(c,f){return c&&c.length?Hd(c,Me(f,3)):[]}o(sj,"takeWhile");var cj=it(function(c){return Da(ii(c,1,In,!0))}),lj=it(function(c){var f=Vr(c);return In(f)&&(f=e),Da(ii(c,1,In,!0),Me(f,2))}),fj=it(function(c){var f=Vr(c);return f=typeof f=="function"?f:e,Da(ii(c,1,In,!0),e,f)});function uj(c){return c&&c.length?Da(c):[]}o(uj,"uniq");function pj(c,f){return c&&c.length?Da(c,Me(f,2)):[]}o(pj,"uniqBy");function dj(c,f){return f=typeof f=="function"?f:e,c&&c.length?Da(c,e,f):[]}o(dj,"uniqWith");function oT(c){if(!(c&&c.length))return[];var f=0;return c=Oa(c,function(d){if(In(d))return f=jn(d.length,f),!0}),Av(f,function(d){return fn(c,Tv(d))})}o(oT,"unzip");function YI(c,f){if(!(c&&c.length))return[];var d=oT(c);return f==null?d:fn(d,function(v){return or(f,e,v)})}o(YI,"unzipWith");var gj=it(function(c,f){return In(c)?$f(c,f):[]}),mj=it(function(c){return Hv(Oa(c,In))}),hj=it(function(c){var f=Vr(c);return In(f)&&(f=e),Hv(Oa(c,In),Me(f,2))}),yj=it(function(c){var f=Vr(c);return f=typeof f=="function"?f:e,Hv(Oa(c,In),e,f)}),vj=it(oT);function Tj(c,f){return mI(c||[],f||[],jf)}o(Tj,"zipObject");function Ej(c,f){return mI(c||[],f||[],Gf)}o(Ej,"zipObjectDeep");var bj=it(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,YI(c,d)});function JI(c){var f=P(c);return f.__chain__=!0,f}o(JI,"chain");function Aj(c,f){return f(c),c}o(Aj,"tap");function Jd(c,f){return f(c)}o(Jd,"thru");var Sj=Jo(function(c){var f=c.length,d=f?c[0]:0,v=this.__wrapped__,b=o(function(C){return Lv(C,c)},"interceptor");return f>1||this.__actions__.length||!(v instanceof pt)||!Zo(d)?this.thru(b):(v=v.slice(d,+d+(f?1:0)),v.__actions__.push({func:Jd,args:[b],thisArg:e}),new Rr(v,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function Pj(){return JI(this)}o(Pj,"wrapperChain");function xj(){return new Rr(this.value(),this.__chain__)}o(xj,"wrapperCommit");function Cj(){this.__values__===e&&(this.__values__=pO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(Cj,"wrapperNext");function Ij(){return this}o(Ij,"wrapperToIterator");function Oj(c){for(var f,d=this;d instanceof wd;){var v=WI(d);v.__index__=0,v.__values__=e,f?b.__wrapped__=v:f=v;var b=v;d=d.__wrapped__}return b.__wrapped__=c,f}o(Oj,"wrapperPlant");function Nj(){var c=this.__wrapped__;if(c instanceof pt){var f=c;return this.__actions__.length&&(f=new pt(this)),f=f.reverse(),f.__actions__.push({func:Jd,args:[rT],thisArg:e}),new Rr(f,this.__chain__)}return this.thru(rT)}o(Nj,"wrapperReverse");function Lj(){return gI(this.__wrapped__,this.__actions__)}o(Lj,"wrapperValue");var Fj=Gd(function(c,f,d){Rt.call(c,d)?++c[d]:zo(c,d,1)});function Rj(c,f,d){var v=Qe(c)?IC:Ak;return d&&Li(c,f,d)&&(f=e),v(c,Me(f,3))}o(Rj,"every");function _j(c,f){var d=Qe(c)?Oa:YC;return d(c,Me(f,3))}o(_j,"filter");var Dj=xI(KI),Vj=xI(XI);function Mj(c,f){return ii(Zd(c,f),1)}o(Mj,"flatMap");function wj(c,f){return ii(Zd(c,f),Lt)}o(wj,"flatMapDeep");function kj(c,f,d){return d=d===e?1:Ze(d),ii(Zd(c,f),d)}o(kj,"flatMapDepth");function ZI(c,f){var d=Qe(c)?Lr:_a;return d(c,Me(f,3))}o(ZI,"forEach");function eO(c,f){var d=Qe(c)?n2:zC;return d(c,Me(f,3))}o(eO,"forEachRight");var Uj=Gd(function(c,f,d){Rt.call(c,d)?c[d].push(f):zo(c,d,[f])});function jj(c,f,d,v){c=Gi(c)?c:el(c),d=d&&!v?Ze(d):0;var b=c.length;return d<0&&(d=jn(b+d,0)),rg(c)?d<=b&&c.indexOf(f,d)>-1:!!b&&Hc(c,f,d)>-1}o(jj,"includes");var $j=it(function(c,f,d){var v=-1,b=typeof f=="function",C=Gi(c)?G(c.length):[];return _a(c,function(L){C[++v]=b?or(f,L,d):Bf(L,f,d)}),C}),Bj=Gd(function(c,f,d){zo(c,d,f)});function Zd(c,f){var d=Qe(c)?fn:iI;return d(c,Me(f,3))}o(Zd,"map");function Hj(c,f,d,v){return c==null?[]:(Qe(f)||(f=f==null?[]:[f]),d=v?e:d,Qe(d)||(d=d==null?[]:[d]),sI(c,f,d))}o(Hj,"orderBy");var Gj=Gd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Wj(c,f,d){var v=Qe(c)?yv:FC,b=arguments.length<3;return v(c,Me(f,4),d,b,_a)}o(Wj,"reduce");function Kj(c,f,d){var v=Qe(c)?i2:FC,b=arguments.length<3;return v(c,Me(f,4),d,b,zC)}o(Kj,"reduceRight");function Xj(c,f){var d=Qe(c)?Oa:YC;return d(c,ng(Me(f,3)))}o(Xj,"reject");function Qj(c){var f=Qe(c)?KC:jk;return f(c)}o(Qj,"sample");function qj(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Ze(f);var v=Qe(c)?yk:$k;return v(c,f)}o(qj,"sampleSize");function zj(c){var f=Qe(c)?vk:Hk;return f(c)}o(zj,"shuffle");function Yj(c){if(c==null)return 0;if(Gi(c))return rg(c)?Wc(c):c.length;var f=yi(c);return f==qe||f==dn?c.size:Mv(c).length}o(Yj,"size");function Jj(c,f,d){var v=Qe(c)?vv:Gk;return d&&Li(c,f,d)&&(f=e),v(c,Me(f,3))}o(Jj,"some");var Zj=it(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]]),sI(c,ii(f,1),[])}),eg=_2||function(){return Xn.Date.now()};function e$(c,f){if(typeof f!="function")throw new Fr(r);return c=Ze(c),function(){if(--c<1)return f.apply(this,arguments)}}o(e$,"after");function tO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,Yo(c,Z,e,e,e,e,f)}o(tO,"ary");function nO(c,f){var d;if(typeof f!="function")throw new Fr(r);return c=Ze(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(nO,"before");var aT=it(function(c,f,d){var v=E;if(d.length){var b=La(d,Jc(aT));v|=j}return Yo(c,v,f,d,b)}),iO=it(function(c,f,d){var v=E|O;if(d.length){var b=La(d,Jc(iO));v|=j}return Yo(f,v,c,d,b)});function rO(c,f,d){f=d?e:f;var v=Yo(c,U,e,e,e,e,e,f);return v.placeholder=rO.placeholder,v}o(rO,"curry");function oO(c,f,d){f=d?e:f;var v=Yo(c,W,e,e,e,e,e,f);return v.placeholder=oO.placeholder,v}o(oO,"curryRight");function aO(c,f,d){var v,b,C,L,F,w,Y=0,J=!1,ee=!1,ge=!0;if(typeof c!="function")throw new Fr(r);f=Mr(f)||0,mn(d)&&(J=!!d.leading,ee="maxWait"in d,C=ee?jn(Mr(d.maxWait)||0,f):C,ge="trailing"in d?!!d.trailing:ge);function Le(On){var Zr=v,na=b;return v=b=e,Y=On,L=c.apply(na,Zr),L}o(Le,"invokeFunc");function ke(On){return Y=On,F=Xf(ct,f),J?Le(On):L}o(ke,"leadingEdge");function et(On){var Zr=On-w,na=On-Y,xO=f-Zr;return ee?hi(xO,C-na):xO}o(et,"remainingWait");function Ue(On){var Zr=On-w,na=On-Y;return w===e||Zr>=f||Zr<0||ee&&na>=C}o(Ue,"shouldInvoke");function ct(){var On=eg();if(Ue(On))return gt(On);F=Xf(ct,et(On))}o(ct,"timerExpired");function gt(On){return F=e,ge&&v?Le(On):(v=b=e,L)}o(gt,"trailingEdge");function lr(){F!==e&&hI(F),Y=0,v=w=b=F=e}o(lr,"cancel");function Fi(){return F===e?L:gt(eg())}o(Fi,"flush");function fr(){var On=eg(),Zr=Ue(On);if(v=arguments,b=this,w=On,Zr){if(F===e)return ke(w);if(ee)return hI(F),F=Xf(ct,f),Le(w)}return F===e&&(F=Xf(ct,f)),L}return o(fr,"debounced"),fr.cancel=lr,fr.flush=Fi,fr}o(aO,"debounce");var t$=it(function(c,f){return qC(c,1,f)}),n$=it(function(c,f,d){return qC(c,Mr(f)||0,d)});function i$(c){return Yo(c,xe)}o(i$,"flip");function tg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Fr(r);var d=o(function(){var v=arguments,b=f?f.apply(this,v):v[0],C=d.cache;if(C.has(b))return C.get(b);var L=c.apply(this,v);return d.cache=C.set(b,L)||C,L},"memoized");return d.cache=new(tg.Cache||qo),d}o(tg,"memoize"),tg.Cache=qo;function ng(c){if(typeof c!="function")throw new Fr(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(ng,"negate");function r$(c){return nO(2,c)}o(r$,"once");var o$=Wk(function(c,f){f=f.length==1&&Qe(f[0])?fn(f[0],ar(Me())):fn(ii(f,1),ar(Me()));var d=f.length;return it(function(v){for(var b=-1,C=hi(v.length,d);++b<C;)v[b]=f[b].call(this,v[b]);return or(c,this,v)})}),sT=it(function(c,f){var d=La(f,Jc(sT));return Yo(c,j,e,f,d)}),sO=it(function(c,f){var d=La(f,Jc(sO));return Yo(c,ae,e,f,d)}),a$=Jo(function(c,f){return Yo(c,re,e,e,e,f)});function s$(c,f){if(typeof c!="function")throw new Fr(r);return f=f===e?f:Ze(f),it(c,f)}o(s$,"rest");function c$(c,f){if(typeof c!="function")throw new Fr(r);return f=f==null?0:jn(Ze(f),0),it(function(d){var v=d[f],b=Ma(d,0,f);return v&&Na(b,v),or(c,this,b)})}o(c$,"spread");function l$(c,f,d){var v=!0,b=!0;if(typeof c!="function")throw new Fr(r);return mn(d)&&(v="leading"in d?!!d.leading:v,b="trailing"in d?!!d.trailing:b),aO(c,f,{leading:v,maxWait:f,trailing:b})}o(l$,"throttle");function f$(c){return tO(c,1)}o(f$,"unary");function u$(c,f){return sT(Wv(f),c)}o(u$,"wrap");function p$(){if(!arguments.length)return[];var c=arguments[0];return Qe(c)?c:[c]}o(p$,"castArray");function d$(c){return _r(c,m)}o(d$,"clone");function g$(c,f){return f=typeof f=="function"?f:e,_r(c,m,f)}o(g$,"cloneWith");function m$(c){return _r(c,p|m)}o(m$,"cloneDeep");function h$(c,f){return f=typeof f=="function"?f:e,_r(c,p|m,f)}o(h$,"cloneDeepWith");function y$(c,f){return f==null||QC(c,f,Qn(f))}o(y$,"conformsTo");function Jr(c,f){return c===f||c!==c&&f!==f}o(Jr,"eq");var v$=Qd(_v),T$=Qd(function(c,f){return c>=f}),Gs=eI(function(){return arguments}())?eI:function(c){return Tn(c)&&Rt.call(c,"callee")&&!jC.call(c,"callee")},Qe=G.isArray,E$=bC?ar(bC):Ok;function Gi(c){return c!=null&&ig(c.length)&&!ea(c)}o(Gi,"isArrayLike");function In(c){return Tn(c)&&Gi(c)}o(In,"isArrayLikeObject");function b$(c){return c===!0||c===!1||Tn(c)&&Ni(c)==I}o(b$,"isBoolean");var wa=V2||vT,A$=AC?ar(AC):Nk;function S$(c){return Tn(c)&&c.nodeType===1&&!Qf(c)}o(S$,"isElement");function P$(c){if(c==null)return!0;if(Gi(c)&&(Qe(c)||typeof c=="string"||typeof c.splice=="function"||wa(c)||Zc(c)||Gs(c)))return!c.length;var f=yi(c);if(f==qe||f==dn)return!c.size;if(Kf(c))return!Mv(c).length;for(var d in c)if(Rt.call(c,d))return!1;return!0}o(P$,"isEmpty");function x$(c,f){return Hf(c,f)}o(x$,"isEqual");function C$(c,f,d){d=typeof d=="function"?d:e;var v=d?d(c,f):e;return v===e?Hf(c,f,e,d):!!v}o(C$,"isEqualWith");function cT(c){if(!Tn(c))return!1;var f=Ni(c);return f==V||f==z||typeof c.message=="string"&&typeof c.name=="string"&&!Qf(c)}o(cT,"isError");function I$(c){return typeof c=="number"&&BC(c)}o(I$,"isFinite");function ea(c){if(!mn(c))return!1;var f=Ni(c);return f==Ve||f==Ft||f==st||f==ni}o(ea,"isFunction");function cO(c){return typeof c=="number"&&c==Ze(c)}o(cO,"isInteger");function ig(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(ig,"isLength");function mn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(mn,"isObject");function Tn(c){return c!=null&&typeof c=="object"}o(Tn,"isObjectLike");var lO=SC?ar(SC):Fk;function O$(c,f){return c===f||Vv(c,f,Jv(f))}o(O$,"isMatch");function N$(c,f,d){return d=typeof d=="function"?d:e,Vv(c,f,Jv(f),d)}o(N$,"isMatchWith");function L$(c){return fO(c)&&c!=+c}o(L$,"isNaN");function F$(c){if(gU(c))throw new We(i);return tI(c)}o(F$,"isNative");function R$(c){return c===null}o(R$,"isNull");function _$(c){return c==null}o(_$,"isNil");function fO(c){return typeof c=="number"||Tn(c)&&Ni(c)==wt}o(fO,"isNumber");function Qf(c){if(!Tn(c)||Ni(c)!=cn)return!1;var f=Ld(c);if(f===null)return!0;var d=Rt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Cd.call(d)==N2}o(Qf,"isPlainObject");var lT=PC?ar(PC):Rk;function D$(c){return cO(c)&&c>=-Re&&c<=Re}o(D$,"isSafeInteger");var uO=xC?ar(xC):_k;function rg(c){return typeof c=="string"||!Qe(c)&&Tn(c)&&Ni(c)==mi}o(rg,"isString");function cr(c){return typeof c=="symbol"||Tn(c)&&Ni(c)==Ht}o(cr,"isSymbol");var Zc=CC?ar(CC):Dk;function V$(c){return c===e}o(V$,"isUndefined");function M$(c){return Tn(c)&&yi(c)==Bi}o(M$,"isWeakMap");function w$(c){return Tn(c)&&Ni(c)==Nf}o(w$,"isWeakSet");var k$=Qd(wv),U$=Qd(function(c,f){return c<=f});function pO(c){if(!c)return[];if(Gi(c))return rg(c)?zr(c):Hi(c);if(Vf&&c[Vf])return h2(c[Vf]());var f=yi(c),d=f==qe?Pv:f==dn?Sd:el;return d(c)}o(pO,"toArray");function ta(c){if(!c)return c===0?c:0;if(c=Mr(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Oi}return c===c?c:0}o(ta,"toFinite");function Ze(c){var f=ta(c),d=f%1;return f===f?d?f-d:f:0}o(Ze,"toInteger");function dO(c){return c?js(Ze(c),0,Mt):0}o(dO,"toLength");function Mr(c){if(typeof c=="number")return c;if(cr(c))return It;if(mn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=mn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=RC(c);var d=Tw.test(c);return d||bw.test(c)?Zw(c.slice(2),d?2:8):vw.test(c)?It:+c}o(Mr,"toNumber");function gO(c){return Ao(c,Wi(c))}o(gO,"toPlainObject");function j$(c){return c?js(Ze(c),-Re,Re):c===0?c:0}o(j$,"toSafeInteger");function Ot(c){return c==null?"":sr(c)}o(Ot,"toString");var $$=zc(function(c,f){if(Kf(f)||Gi(f)){Ao(f,Qn(f),c);return}for(var d in f)Rt.call(f,d)&&jf(c,d,f[d])}),mO=zc(function(c,f){Ao(f,Wi(f),c)}),og=zc(function(c,f,d,v){Ao(f,Wi(f),c,v)}),B$=zc(function(c,f,d,v){Ao(f,Qn(f),c,v)}),H$=Jo(Lv);function G$(c,f){var d=qc(c);return f==null?d:XC(d,f)}o(G$,"create");var W$=it(function(c,f){c=Wt(c);var d=-1,v=f.length,b=v>2?f[2]:e;for(b&&Li(f[0],f[1],b)&&(v=1);++d<v;)for(var C=f[d],L=Wi(C),F=-1,w=L.length;++F<w;){var Y=L[F],J=c[Y];(J===e||Jr(J,Kc[Y])&&!Rt.call(c,Y))&&(c[Y]=C[Y])}return c}),K$=it(function(c){return c.push(e,RI),or(hO,e,c)});function X$(c,f){return OC(c,Me(f,3),bo)}o(X$,"findKey");function Q$(c,f){return OC(c,Me(f,3),Rv)}o(Q$,"findLastKey");function q$(c,f){return c==null?c:Fv(c,Me(f,3),Wi)}o(q$,"forIn");function z$(c,f){return c==null?c:JC(c,Me(f,3),Wi)}o(z$,"forInRight");function Y$(c,f){return c&&bo(c,Me(f,3))}o(Y$,"forOwn");function J$(c,f){return c&&Rv(c,Me(f,3))}o(J$,"forOwnRight");function Z$(c){return c==null?[]:jd(c,Qn(c))}o(Z$,"functions");function e4(c){return c==null?[]:jd(c,Wi(c))}o(e4,"functionsIn");function fT(c,f,d){var v=c==null?e:$s(c,f);return v===e?d:v}o(fT,"get");function t4(c,f){return c!=null&&VI(c,f,Pk)}o(t4,"has");function uT(c,f){return c!=null&&VI(c,f,xk)}o(uT,"hasIn");var n4=II(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),c[f]=d},dT(Ki)),i4=II(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),Rt.call(c,f)?c[f].push(d):c[f]=[d]},Me),r4=it(Bf);function Qn(c){return Gi(c)?WC(c):Mv(c)}o(Qn,"keys");function Wi(c){return Gi(c)?WC(c,!0):Vk(c)}o(Wi,"keysIn");function o4(c,f){var d={};return f=Me(f,3),bo(c,function(v,b,C){zo(d,f(v,b,C),v)}),d}o(o4,"mapKeys");function a4(c,f){var d={};return f=Me(f,3),bo(c,function(v,b,C){zo(d,b,f(v,b,C))}),d}o(a4,"mapValues");var s4=zc(function(c,f,d){$d(c,f,d)}),hO=zc(function(c,f,d,v){$d(c,f,d,v)}),c4=Jo(function(c,f){var d={};if(c==null)return d;var v=!1;f=fn(f,function(C){return C=Va(C,c),v||(v=C.length>1),C}),Ao(c,zv(c),d),v&&(d=_r(d,p|g|m,nU));for(var b=f.length;b--;)Bv(d,f[b]);return d});function l4(c,f){return yO(c,ng(Me(f)))}o(l4,"omitBy");var f4=Jo(function(c,f){return c==null?{}:wk(c,f)});function yO(c,f){if(c==null)return{};var d=fn(zv(c),function(v){return[v]});return f=Me(f),cI(c,d,function(v,b){return f(v,b[0])})}o(yO,"pickBy");function u4(c,f,d){f=Va(f,c);var v=-1,b=f.length;for(b||(b=1,c=e);++v<b;){var C=c==null?e:c[So(f[v])];C===e&&(v=b,C=d),c=ea(C)?C.call(c):C}return c}o(u4,"result");function p4(c,f,d){return c==null?c:Gf(c,f,d)}o(p4,"set");function d4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:Gf(c,f,d,v)}o(d4,"setWith");var vO=LI(Qn),TO=LI(Wi);function g4(c,f,d){var v=Qe(c),b=v||wa(c)||Zc(c);if(f=Me(f,4),d==null){var C=c&&c.constructor;b?d=v?new C:[]:mn(c)?d=ea(C)?qc(Ld(c)):{}:d={}}return(b?Lr:bo)(c,function(L,F,w){return f(d,L,F,w)}),d}o(g4,"transform");function m4(c,f){return c==null?!0:Bv(c,f)}o(m4,"unset");function h4(c,f,d){return c==null?c:dI(c,f,Wv(d))}o(h4,"update");function y4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:dI(c,f,Wv(d),v)}o(y4,"updateWith");function el(c){return c==null?[]:Sv(c,Qn(c))}o(el,"values");function T4(c){return c==null?[]:Sv(c,Wi(c))}o(T4,"valuesIn");function E4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Mr(d),d=d===d?d:0),f!==e&&(f=Mr(f),f=f===f?f:0),js(Mr(c),f,d)}o(E4,"clamp");function b4(c,f,d){return f=ta(f),d===e?(d=f,f=0):d=ta(d),c=Mr(c),Ck(c,f,d)}o(b4,"inRange");function A4(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=ta(c),f===e?(f=c,c=0):f=ta(f)),c>f){var v=c;c=f,f=v}if(d||c%1||f%1){var b=HC();return hi(c+b*(f-c+Jw("1e-"+((b+"").length-1))),f)}return Uv(c,f)}o(A4,"random");var S4=Yc(function(c,f,d){return f=f.toLowerCase(),c+(d?EO(f):f)});function EO(c){return pT(Ot(c).toLowerCase())}o(EO,"capitalize");function bO(c){return c=Ot(c),c&&c.replace(Sw,u2).replace(Bw,"")}o(bO,"deburr");function P4(c,f,d){c=Ot(c),f=sr(f);var v=c.length;d=d===e?v:js(Ze(d),0,v);var b=d;return d-=f.length,d>=0&&c.slice(d,b)==f}o(P4,"endsWith");function x4(c){return c=Ot(c),c&&Ne.test(c)?c.replace(Te,p2):c}o(x4,"escape");function C4(c){return c=Ot(c),c&&lw.test(c)?c.replace(_f,"\\$&"):c}o(C4,"escapeRegExp");var I4=Yc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),O4=Yc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),N4=PI("toLowerCase");function L4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;if(!f||v>=f)return c;var b=(f-v)/2;return Xd(Dd(b),d)+c+Xd(_d(b),d)}o(L4,"pad");function F4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;return f&&v<f?c+Xd(f-v,d):c}o(F4,"padEnd");function R4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;return f&&v<f?Xd(f-v,d)+c:c}o(R4,"padStart");function _4(c,f,d){return d||f==null?f=0:f&&(f=+f),U2(Ot(c).replace(cv,""),f||0)}o(_4,"parseInt");function D4(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Ze(f),jv(Ot(c),f)}o(D4,"repeat");function V4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(V4,"replace");var M4=Yc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function w4(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!lT(f))&&(f=sr(f),!f&&Gc(c))?Ma(zr(c),0,d):c.split(f,d)):[]}o(w4,"split");var k4=Yc(function(c,f,d){return c+(d?" ":"")+pT(f)});function U4(c,f,d){return c=Ot(c),d=d==null?0:js(Ze(d),0,c.length),f=sr(f),c.slice(d,d+f.length)==f}o(U4,"startsWith");function j4(c,f,d){var v=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=Ot(c),f=og({},f,v,FI);var b=og({},f.imports,v.imports,FI),C=Qn(b),L=Sv(b,C),F,w,Y=0,J=f.interpolate||vd,ee="__p += '",ge=xv((f.escape||vd).source+"|"+J.source+"|"+(J===ln?yw:vd).source+"|"+(f.evaluate||vd).source+"|$","g"),Le="//# sourceURL="+(Rt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xw+"]")+`
272
- `;c.replace(ge,function(Ue,ct,gt,lr,Fi,fr){return gt||(gt=lr),ee+=c.slice(Y,fr).replace(Pw,d2),ct&&(F=!0,ee+=`' +
271
+ `)}o(fU,"insertWrapDetails");function uU(c){return Qe(c)||Gs(c)||!!($C&&c&&c[$C])}o(uU,"isFlattenable");function Zo(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&Aw.test(c))&&c>-1&&c%1==0&&c<f}o(Zo,"isIndex");function Li(c,f,d){if(!hn(d))return!1;var v=typeof f;return(v=="number"?Wi(d)&&Zo(f,d.length):v=="string"&&f in d)?Jr(d[f],c):!1}o(Li,"isIterateeCall");function eT(c,f){if(Qe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||fr(c)?!0:yd.test(c)||!ar.test(c)||f!=null&&c in Wt(f)}o(eT,"isKey");function pU(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(pU,"isKeyable");function tT(c){var f=qd(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var v=Yv(d);return!!v&&c===v[0]}o(tT,"isLaziable");function dU(c){return!!wC&&wC in c}o(dU,"isMasked");var gU=xd?ea:vT;function Kf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Kc;return c===d}o(Kf,"isPrototype");function wI(c){return c===c&&!hn(c)}o(wI,"isStrictComparable");function kI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Wt(d))}}o(kI,"matchesStrictComparable");function mU(c){var f=tg(c,function(v){return d.size===l&&d.clear(),v}),d=f.cache;return f}o(mU,"memoizeCapped");function hU(c,f){var d=c[1],v=f[1],E=d|v,C=E<(b|O|Z),L=v==Z&&d==U||v==Z&&d==re&&c[7].length<=f[8]||v==(Z|re)&&f[7].length<=f[8]&&d==U;if(!(C||L))return c;v&b&&(c[2]=f[2],E|=d&b?0:R);var F=f[3];if(F){var w=c[3];c[3]=w?bI(w,F,f[4]):F,c[4]=w?La(c[3],u):f[4]}return F=f[5],F&&(w=c[5],c[5]=w?EI(w,F,f[6]):F,c[6]=w?La(c[5],u):f[6]),F=f[7],F&&(c[7]=F),v&Z&&(c[8]=c[8]==null?f[8]:vi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o(hU,"mergeData");function yU(c){var f=[];if(c!=null)for(var d in Wt(c))f.push(d);return f}o(yU,"nativeKeysIn");function vU(c){return Id.call(c)}o(vU,"objectToString");function UI(c,f,d){return f=jn(f===e?c.length-1:f,0),function(){for(var v=arguments,E=-1,C=jn(v.length-f,0),L=G(C);++E<C;)L[E]=v[f+E];E=-1;for(var F=G(f+1);++E<f;)F[E]=v[E];return F[f]=d(L),sr(c,this,F)}}o(UI,"overRest");function jI(c,f){return f.length<2?c:$s(c,Dr(f,0,-1))}o(jI,"parent");function TU(c,f){for(var d=c.length,v=vi(f.length,d),E=Gi(c);v--;){var C=f[v];c[v]=Zo(C,d)?E[C]:e}return c}o(TU,"reorder");function nT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(nT,"safeGet");var $I=HI(fI),Xf=D2||function(c,f){return Xn.setTimeout(c,f)},iT=HI(Bk);function BI(c,f,d){var v=f+"";return iT(c,fU(v,bU(sU(v),d)))}o(BI,"setWrapToString");function HI(c){var f=0,d=0;return function(){var v=k2(),E=$e-(v-d);if(d=v,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(HI,"shortOut");function Yd(c,f){var d=-1,v=c.length,E=v-1;for(f=f===e?v:f;++d<f;){var C=Uv(d,E),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(Yd,"shuffleSelf");var GI=mU(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(sv,function(d,v,E,C){f.push(E?C.replace(hw,"$1"):v||d)}),f});function So(c){if(typeof c=="string"||fr(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(So,"toKey");function Hs(c){if(c!=null){try{return Cd.call(c)}catch{}try{return c+""}catch{}}return""}o(Hs,"toSource");function bU(c,f){return Lr(_e,function(d){var v="_."+d[0];f&d[1]&&!Ed(c,v)&&c.push(v)}),c.sort()}o(bU,"updateWrapDetails");function WI(c){if(c instanceof pt)return c.clone();var f=new Rr(c.__wrapped__,c.__chain__);return f.__actions__=Gi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(WI,"wrapperClone");function EU(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=jn(Ze(f),0);var v=c==null?0:c.length;if(!v||f<1)return[];for(var E=0,C=0,L=G(_d(v/f));E<v;)L[C++]=Dr(c,E,E+=f);return L}o(EU,"chunk");function AU(c){for(var f=-1,d=c==null?0:c.length,v=0,E=[];++f<d;){var C=c[f];C&&(E[v++]=C)}return E}o(AU,"compact");function SU(){var c=arguments.length;if(!c)return[];for(var f=G(c-1),d=arguments[0],v=c;v--;)f[v-1]=arguments[v];return Na(Qe(d)?Gi(d):[d],ii(f,1))}o(SU,"concat");var PU=it(function(c,f){return Cn(c)?$f(c,ii(f,1,Cn,!0)):[]}),xU=it(function(c,f){var d=Vr(f);return Cn(d)&&(d=e),Cn(c)?$f(c,ii(f,1,Cn,!0),Me(d,2)):[]}),CU=it(function(c,f){var d=Vr(f);return Cn(d)&&(d=e),Cn(c)?$f(c,ii(f,1,Cn,!0),e,d):[]});function IU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),Dr(c,f<0?0:f,v)):[]}o(IU,"drop");function OU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),f=v-f,Dr(c,0,f<0?0:f)):[]}o(OU,"dropRight");function NU(c,f){return c&&c.length?Hd(c,Me(f,3),!0,!0):[]}o(NU,"dropRightWhile");function LU(c,f){return c&&c.length?Hd(c,Me(f,3),!0):[]}o(LU,"dropWhile");function FU(c,f,d,v){var E=c==null?0:c.length;return E?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,v=E),Sk(c,f,d,v)):[]}o(FU,"fill");function KI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=d==null?0:Ze(d);return E<0&&(E=jn(v+E,0)),Ad(c,Me(f,3),E)}o(KI,"findIndex");function XI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=v-1;return d!==e&&(E=Ze(d),E=d<0?jn(v+E,0):vi(E,v-1)),Ad(c,Me(f,3),E,!0)}o(XI,"findLastIndex");function QI(c){var f=c==null?0:c.length;return f?ii(c,1):[]}o(QI,"flatten");function RU(c){var f=c==null?0:c.length;return f?ii(c,Lt):[]}o(RU,"flattenDeep");function _U(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Ze(f),ii(c,f)):[]}o(_U,"flattenDepth");function DU(c){for(var f=-1,d=c==null?0:c.length,v={};++f<d;){var E=c[f];v[E[0]]=E[1]}return v}o(DU,"fromPairs");function qI(c){return c&&c.length?c[0]:e}o(qI,"head");function VU(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=d==null?0:Ze(d);return E<0&&(E=jn(v+E,0)),Hc(c,f,E)}o(VU,"indexOf");function MU(c){var f=c==null?0:c.length;return f?Dr(c,0,-1):[]}o(MU,"initial");var wU=it(function(c){var f=fn(c,Gv);return f.length&&f[0]===c[0]?Dv(f):[]}),kU=it(function(c){var f=Vr(c),d=fn(c,Gv);return f===Vr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Dv(d,Me(f,2)):[]}),UU=it(function(c){var f=Vr(c),d=fn(c,Gv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Dv(d,e,f):[]});function jU(c,f){return c==null?"":M2.call(c,f)}o(jU,"join");function Vr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(Vr,"last");function $U(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=v;return d!==e&&(E=Ze(d),E=E<0?jn(v+E,0):vi(E,v-1)),f===f?b2(c,f,E):Ad(c,NC,E,!0)}o($U,"lastIndexOf");function BU(c,f){return c&&c.length?aI(c,Ze(f)):e}o(BU,"nth");var HU=it(zI);function zI(c,f){return c&&c.length&&f&&f.length?kv(c,f):c}o(zI,"pullAll");function GU(c,f,d){return c&&c.length&&f&&f.length?kv(c,f,Me(d,2)):c}o(GU,"pullAllBy");function WU(c,f,d){return c&&c.length&&f&&f.length?kv(c,f,e,d):c}o(WU,"pullAllWith");var KU=Jo(function(c,f){var d=c==null?0:c.length,v=Lv(c,f);return lI(c,fn(f,function(E){return Zo(E,d)?+E:E}).sort(TI)),v});function XU(c,f){var d=[];if(!(c&&c.length))return d;var v=-1,E=[],C=c.length;for(f=Me(f,3);++v<C;){var L=c[v];f(L,v,c)&&(d.push(L),E.push(v))}return lI(c,E),d}o(XU,"remove");function rT(c){return c==null?c:j2.call(c)}o(rT,"reverse");function QU(c,f,d){var v=c==null?0:c.length;return v?(d&&typeof d!="number"&&Li(c,f,d)?(f=0,d=v):(f=f==null?0:Ze(f),d=d===e?v:Ze(d)),Dr(c,f,d)):[]}o(QU,"slice");function qU(c,f){return Bd(c,f)}o(qU,"sortedIndex");function zU(c,f,d){return $v(c,f,Me(d,2))}o(zU,"sortedIndexBy");function YU(c,f){var d=c==null?0:c.length;if(d){var v=Bd(c,f);if(v<d&&Jr(c[v],f))return v}return-1}o(YU,"sortedIndexOf");function JU(c,f){return Bd(c,f,!0)}o(JU,"sortedLastIndex");function ZU(c,f,d){return $v(c,f,Me(d,2),!0)}o(ZU,"sortedLastIndexBy");function ej(c,f){var d=c==null?0:c.length;if(d){var v=Bd(c,f,!0)-1;if(Jr(c[v],f))return v}return-1}o(ej,"sortedLastIndexOf");function tj(c){return c&&c.length?uI(c):[]}o(tj,"sortedUniq");function nj(c,f){return c&&c.length?uI(c,Me(f,2)):[]}o(nj,"sortedUniqBy");function ij(c){var f=c==null?0:c.length;return f?Dr(c,1,f):[]}o(ij,"tail");function rj(c,f,d){return c&&c.length?(f=d||f===e?1:Ze(f),Dr(c,0,f<0?0:f)):[]}o(rj,"take");function oj(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Ze(f),f=v-f,Dr(c,f<0?0:f,v)):[]}o(oj,"takeRight");function aj(c,f){return c&&c.length?Hd(c,Me(f,3),!1,!0):[]}o(aj,"takeRightWhile");function sj(c,f){return c&&c.length?Hd(c,Me(f,3)):[]}o(sj,"takeWhile");var cj=it(function(c){return Da(ii(c,1,Cn,!0))}),lj=it(function(c){var f=Vr(c);return Cn(f)&&(f=e),Da(ii(c,1,Cn,!0),Me(f,2))}),fj=it(function(c){var f=Vr(c);return f=typeof f=="function"?f:e,Da(ii(c,1,Cn,!0),e,f)});function uj(c){return c&&c.length?Da(c):[]}o(uj,"uniq");function pj(c,f){return c&&c.length?Da(c,Me(f,2)):[]}o(pj,"uniqBy");function dj(c,f){return f=typeof f=="function"?f:e,c&&c.length?Da(c,e,f):[]}o(dj,"uniqWith");function oT(c){if(!(c&&c.length))return[];var f=0;return c=Oa(c,function(d){if(Cn(d))return f=jn(d.length,f),!0}),Av(f,function(d){return fn(c,Tv(d))})}o(oT,"unzip");function YI(c,f){if(!(c&&c.length))return[];var d=oT(c);return f==null?d:fn(d,function(v){return sr(f,e,v)})}o(YI,"unzipWith");var gj=it(function(c,f){return Cn(c)?$f(c,f):[]}),mj=it(function(c){return Hv(Oa(c,Cn))}),hj=it(function(c){var f=Vr(c);return Cn(f)&&(f=e),Hv(Oa(c,Cn),Me(f,2))}),yj=it(function(c){var f=Vr(c);return f=typeof f=="function"?f:e,Hv(Oa(c,Cn),e,f)}),vj=it(oT);function Tj(c,f){return mI(c||[],f||[],jf)}o(Tj,"zipObject");function bj(c,f){return mI(c||[],f||[],Gf)}o(bj,"zipObjectDeep");var Ej=it(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,YI(c,d)});function JI(c){var f=P(c);return f.__chain__=!0,f}o(JI,"chain");function Aj(c,f){return f(c),c}o(Aj,"tap");function Jd(c,f){return f(c)}o(Jd,"thru");var Sj=Jo(function(c){var f=c.length,d=f?c[0]:0,v=this.__wrapped__,E=o(function(C){return Lv(C,c)},"interceptor");return f>1||this.__actions__.length||!(v instanceof pt)||!Zo(d)?this.thru(E):(v=v.slice(d,+d+(f?1:0)),v.__actions__.push({func:Jd,args:[E],thisArg:e}),new Rr(v,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function Pj(){return JI(this)}o(Pj,"wrapperChain");function xj(){return new Rr(this.value(),this.__chain__)}o(xj,"wrapperCommit");function Cj(){this.__values__===e&&(this.__values__=pO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(Cj,"wrapperNext");function Ij(){return this}o(Ij,"wrapperToIterator");function Oj(c){for(var f,d=this;d instanceof wd;){var v=WI(d);v.__index__=0,v.__values__=e,f?E.__wrapped__=v:f=v;var E=v;d=d.__wrapped__}return E.__wrapped__=c,f}o(Oj,"wrapperPlant");function Nj(){var c=this.__wrapped__;if(c instanceof pt){var f=c;return this.__actions__.length&&(f=new pt(this)),f=f.reverse(),f.__actions__.push({func:Jd,args:[rT],thisArg:e}),new Rr(f,this.__chain__)}return this.thru(rT)}o(Nj,"wrapperReverse");function Lj(){return gI(this.__wrapped__,this.__actions__)}o(Lj,"wrapperValue");var Fj=Gd(function(c,f,d){Rt.call(c,d)?++c[d]:zo(c,d,1)});function Rj(c,f,d){var v=Qe(c)?IC:Ak;return d&&Li(c,f,d)&&(f=e),v(c,Me(f,3))}o(Rj,"every");function _j(c,f){var d=Qe(c)?Oa:YC;return d(c,Me(f,3))}o(_j,"filter");var Dj=xI(KI),Vj=xI(XI);function Mj(c,f){return ii(Zd(c,f),1)}o(Mj,"flatMap");function wj(c,f){return ii(Zd(c,f),Lt)}o(wj,"flatMapDeep");function kj(c,f,d){return d=d===e?1:Ze(d),ii(Zd(c,f),d)}o(kj,"flatMapDepth");function ZI(c,f){var d=Qe(c)?Lr:_a;return d(c,Me(f,3))}o(ZI,"forEach");function eO(c,f){var d=Qe(c)?n2:zC;return d(c,Me(f,3))}o(eO,"forEachRight");var Uj=Gd(function(c,f,d){Rt.call(c,d)?c[d].push(f):zo(c,d,[f])});function jj(c,f,d,v){c=Wi(c)?c:el(c),d=d&&!v?Ze(d):0;var E=c.length;return d<0&&(d=jn(E+d,0)),rg(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&Hc(c,f,d)>-1}o(jj,"includes");var $j=it(function(c,f,d){var v=-1,E=typeof f=="function",C=Wi(c)?G(c.length):[];return _a(c,function(L){C[++v]=E?sr(f,L,d):Bf(L,f,d)}),C}),Bj=Gd(function(c,f,d){zo(c,d,f)});function Zd(c,f){var d=Qe(c)?fn:iI;return d(c,Me(f,3))}o(Zd,"map");function Hj(c,f,d,v){return c==null?[]:(Qe(f)||(f=f==null?[]:[f]),d=v?e:d,Qe(d)||(d=d==null?[]:[d]),sI(c,f,d))}o(Hj,"orderBy");var Gj=Gd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function Wj(c,f,d){var v=Qe(c)?yv:FC,E=arguments.length<3;return v(c,Me(f,4),d,E,_a)}o(Wj,"reduce");function Kj(c,f,d){var v=Qe(c)?i2:FC,E=arguments.length<3;return v(c,Me(f,4),d,E,zC)}o(Kj,"reduceRight");function Xj(c,f){var d=Qe(c)?Oa:YC;return d(c,ng(Me(f,3)))}o(Xj,"reject");function Qj(c){var f=Qe(c)?KC:jk;return f(c)}o(Qj,"sample");function qj(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Ze(f);var v=Qe(c)?yk:$k;return v(c,f)}o(qj,"sampleSize");function zj(c){var f=Qe(c)?vk:Hk;return f(c)}o(zj,"shuffle");function Yj(c){if(c==null)return 0;if(Wi(c))return rg(c)?Wc(c):c.length;var f=Ti(c);return f==qe||f==gn?c.size:Mv(c).length}o(Yj,"size");function Jj(c,f,d){var v=Qe(c)?vv:Gk;return d&&Li(c,f,d)&&(f=e),v(c,Me(f,3))}o(Jj,"some");var Zj=it(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]]),sI(c,ii(f,1),[])}),eg=_2||function(){return Xn.Date.now()};function e$(c,f){if(typeof f!="function")throw new Fr(r);return c=Ze(c),function(){if(--c<1)return f.apply(this,arguments)}}o(e$,"after");function tO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,Yo(c,Z,e,e,e,e,f)}o(tO,"ary");function nO(c,f){var d;if(typeof f!="function")throw new Fr(r);return c=Ze(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(nO,"before");var aT=it(function(c,f,d){var v=b;if(d.length){var E=La(d,Jc(aT));v|=j}return Yo(c,v,f,d,E)}),iO=it(function(c,f,d){var v=b|O;if(d.length){var E=La(d,Jc(iO));v|=j}return Yo(f,v,c,d,E)});function rO(c,f,d){f=d?e:f;var v=Yo(c,U,e,e,e,e,e,f);return v.placeholder=rO.placeholder,v}o(rO,"curry");function oO(c,f,d){f=d?e:f;var v=Yo(c,W,e,e,e,e,e,f);return v.placeholder=oO.placeholder,v}o(oO,"curryRight");function aO(c,f,d){var v,E,C,L,F,w,z=0,Y=!1,ee=!1,me=!0;if(typeof c!="function")throw new Fr(r);f=Mr(f)||0,hn(d)&&(Y=!!d.leading,ee="maxWait"in d,C=ee?jn(Mr(d.maxWait)||0,f):C,me="trailing"in d?!!d.trailing:me);function Le(In){var Zr=v,na=E;return v=E=e,z=In,L=c.apply(na,Zr),L}o(Le,"invokeFunc");function ke(In){return z=In,F=Xf(ct,f),Y?Le(In):L}o(ke,"leadingEdge");function et(In){var Zr=In-w,na=In-z,xO=f-Zr;return ee?vi(xO,C-na):xO}o(et,"remainingWait");function Ue(In){var Zr=In-w,na=In-z;return w===e||Zr>=f||Zr<0||ee&&na>=C}o(Ue,"shouldInvoke");function ct(){var In=eg();if(Ue(In))return gt(In);F=Xf(ct,et(In))}o(ct,"timerExpired");function gt(In){return F=e,me&&v?Le(In):(v=E=e,L)}o(gt,"trailingEdge");function ur(){F!==e&&hI(F),z=0,v=w=E=F=e}o(ur,"cancel");function Fi(){return F===e?L:gt(eg())}o(Fi,"flush");function pr(){var In=eg(),Zr=Ue(In);if(v=arguments,E=this,w=In,Zr){if(F===e)return ke(w);if(ee)return hI(F),F=Xf(ct,f),Le(w)}return F===e&&(F=Xf(ct,f)),L}return o(pr,"debounced"),pr.cancel=ur,pr.flush=Fi,pr}o(aO,"debounce");var t$=it(function(c,f){return qC(c,1,f)}),n$=it(function(c,f,d){return qC(c,Mr(f)||0,d)});function i$(c){return Yo(c,xe)}o(i$,"flip");function tg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Fr(r);var d=o(function(){var v=arguments,E=f?f.apply(this,v):v[0],C=d.cache;if(C.has(E))return C.get(E);var L=c.apply(this,v);return d.cache=C.set(E,L)||C,L},"memoized");return d.cache=new(tg.Cache||qo),d}o(tg,"memoize"),tg.Cache=qo;function ng(c){if(typeof c!="function")throw new Fr(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(ng,"negate");function r$(c){return nO(2,c)}o(r$,"once");var o$=Wk(function(c,f){f=f.length==1&&Qe(f[0])?fn(f[0],cr(Me())):fn(ii(f,1),cr(Me()));var d=f.length;return it(function(v){for(var E=-1,C=vi(v.length,d);++E<C;)v[E]=f[E].call(this,v[E]);return sr(c,this,v)})}),sT=it(function(c,f){var d=La(f,Jc(sT));return Yo(c,j,e,f,d)}),sO=it(function(c,f){var d=La(f,Jc(sO));return Yo(c,ae,e,f,d)}),a$=Jo(function(c,f){return Yo(c,re,e,e,e,f)});function s$(c,f){if(typeof c!="function")throw new Fr(r);return f=f===e?f:Ze(f),it(c,f)}o(s$,"rest");function c$(c,f){if(typeof c!="function")throw new Fr(r);return f=f==null?0:jn(Ze(f),0),it(function(d){var v=d[f],E=Ma(d,0,f);return v&&Na(E,v),sr(c,this,E)})}o(c$,"spread");function l$(c,f,d){var v=!0,E=!0;if(typeof c!="function")throw new Fr(r);return hn(d)&&(v="leading"in d?!!d.leading:v,E="trailing"in d?!!d.trailing:E),aO(c,f,{leading:v,maxWait:f,trailing:E})}o(l$,"throttle");function f$(c){return tO(c,1)}o(f$,"unary");function u$(c,f){return sT(Wv(f),c)}o(u$,"wrap");function p$(){if(!arguments.length)return[];var c=arguments[0];return Qe(c)?c:[c]}o(p$,"castArray");function d$(c){return _r(c,m)}o(d$,"clone");function g$(c,f){return f=typeof f=="function"?f:e,_r(c,m,f)}o(g$,"cloneWith");function m$(c){return _r(c,p|m)}o(m$,"cloneDeep");function h$(c,f){return f=typeof f=="function"?f:e,_r(c,p|m,f)}o(h$,"cloneDeepWith");function y$(c,f){return f==null||QC(c,f,Qn(f))}o(y$,"conformsTo");function Jr(c,f){return c===f||c!==c&&f!==f}o(Jr,"eq");var v$=Qd(_v),T$=Qd(function(c,f){return c>=f}),Gs=eI(function(){return arguments}())?eI:function(c){return vn(c)&&Rt.call(c,"callee")&&!jC.call(c,"callee")},Qe=G.isArray,b$=EC?cr(EC):Ok;function Wi(c){return c!=null&&ig(c.length)&&!ea(c)}o(Wi,"isArrayLike");function Cn(c){return vn(c)&&Wi(c)}o(Cn,"isArrayLikeObject");function E$(c){return c===!0||c===!1||vn(c)&&Ni(c)==I}o(E$,"isBoolean");var wa=V2||vT,A$=AC?cr(AC):Nk;function S$(c){return vn(c)&&c.nodeType===1&&!Qf(c)}o(S$,"isElement");function P$(c){if(c==null)return!0;if(Wi(c)&&(Qe(c)||typeof c=="string"||typeof c.splice=="function"||wa(c)||Zc(c)||Gs(c)))return!c.length;var f=Ti(c);if(f==qe||f==gn)return!c.size;if(Kf(c))return!Mv(c).length;for(var d in c)if(Rt.call(c,d))return!1;return!0}o(P$,"isEmpty");function x$(c,f){return Hf(c,f)}o(x$,"isEqual");function C$(c,f,d){d=typeof d=="function"?d:e;var v=d?d(c,f):e;return v===e?Hf(c,f,e,d):!!v}o(C$,"isEqualWith");function cT(c){if(!vn(c))return!1;var f=Ni(c);return f==M||f==J||typeof c.message=="string"&&typeof c.name=="string"&&!Qf(c)}o(cT,"isError");function I$(c){return typeof c=="number"&&BC(c)}o(I$,"isFinite");function ea(c){if(!hn(c))return!1;var f=Ni(c);return f==Ve||f==Ft||f==st||f==ni}o(ea,"isFunction");function cO(c){return typeof c=="number"&&c==Ze(c)}o(cO,"isInteger");function ig(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(ig,"isLength");function hn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(hn,"isObject");function vn(c){return c!=null&&typeof c=="object"}o(vn,"isObjectLike");var lO=SC?cr(SC):Fk;function O$(c,f){return c===f||Vv(c,f,Jv(f))}o(O$,"isMatch");function N$(c,f,d){return d=typeof d=="function"?d:e,Vv(c,f,Jv(f),d)}o(N$,"isMatchWith");function L$(c){return fO(c)&&c!=+c}o(L$,"isNaN");function F$(c){if(gU(c))throw new We(i);return tI(c)}o(F$,"isNative");function R$(c){return c===null}o(R$,"isNull");function _$(c){return c==null}o(_$,"isNil");function fO(c){return typeof c=="number"||vn(c)&&Ni(c)==wt}o(fO,"isNumber");function Qf(c){if(!vn(c)||Ni(c)!=cn)return!1;var f=Ld(c);if(f===null)return!0;var d=Rt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Cd.call(d)==N2}o(Qf,"isPlainObject");var lT=PC?cr(PC):Rk;function D$(c){return cO(c)&&c>=-Re&&c<=Re}o(D$,"isSafeInteger");var uO=xC?cr(xC):_k;function rg(c){return typeof c=="string"||!Qe(c)&&vn(c)&&Ni(c)==yi}o(rg,"isString");function fr(c){return typeof c=="symbol"||vn(c)&&Ni(c)==Ht}o(fr,"isSymbol");var Zc=CC?cr(CC):Dk;function V$(c){return c===e}o(V$,"isUndefined");function M$(c){return vn(c)&&Ti(c)==Hi}o(M$,"isWeakMap");function w$(c){return vn(c)&&Ni(c)==Nf}o(w$,"isWeakSet");var k$=Qd(wv),U$=Qd(function(c,f){return c<=f});function pO(c){if(!c)return[];if(Wi(c))return rg(c)?zr(c):Gi(c);if(Vf&&c[Vf])return h2(c[Vf]());var f=Ti(c),d=f==qe?Pv:f==gn?Sd:el;return d(c)}o(pO,"toArray");function ta(c){if(!c)return c===0?c:0;if(c=Mr(c),c===Lt||c===-Lt){var f=c<0?-1:1;return f*Oi}return c===c?c:0}o(ta,"toFinite");function Ze(c){var f=ta(c),d=f%1;return f===f?d?f-d:f:0}o(Ze,"toInteger");function dO(c){return c?js(Ze(c),0,Mt):0}o(dO,"toLength");function Mr(c){if(typeof c=="number")return c;if(fr(c))return It;if(hn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=hn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=RC(c);var d=Tw.test(c);return d||Ew.test(c)?Zw(c.slice(2),d?2:8):vw.test(c)?It:+c}o(Mr,"toNumber");function gO(c){return Ao(c,Ki(c))}o(gO,"toPlainObject");function j$(c){return c?js(Ze(c),-Re,Re):c===0?c:0}o(j$,"toSafeInteger");function Ot(c){return c==null?"":lr(c)}o(Ot,"toString");var $$=zc(function(c,f){if(Kf(f)||Wi(f)){Ao(f,Qn(f),c);return}for(var d in f)Rt.call(f,d)&&jf(c,d,f[d])}),mO=zc(function(c,f){Ao(f,Ki(f),c)}),og=zc(function(c,f,d,v){Ao(f,Ki(f),c,v)}),B$=zc(function(c,f,d,v){Ao(f,Qn(f),c,v)}),H$=Jo(Lv);function G$(c,f){var d=qc(c);return f==null?d:XC(d,f)}o(G$,"create");var W$=it(function(c,f){c=Wt(c);var d=-1,v=f.length,E=v>2?f[2]:e;for(E&&Li(f[0],f[1],E)&&(v=1);++d<v;)for(var C=f[d],L=Ki(C),F=-1,w=L.length;++F<w;){var z=L[F],Y=c[z];(Y===e||Jr(Y,Kc[z])&&!Rt.call(c,z))&&(c[z]=C[z])}return c}),K$=it(function(c){return c.push(e,RI),sr(hO,e,c)});function X$(c,f){return OC(c,Me(f,3),Eo)}o(X$,"findKey");function Q$(c,f){return OC(c,Me(f,3),Rv)}o(Q$,"findLastKey");function q$(c,f){return c==null?c:Fv(c,Me(f,3),Ki)}o(q$,"forIn");function z$(c,f){return c==null?c:JC(c,Me(f,3),Ki)}o(z$,"forInRight");function Y$(c,f){return c&&Eo(c,Me(f,3))}o(Y$,"forOwn");function J$(c,f){return c&&Rv(c,Me(f,3))}o(J$,"forOwnRight");function Z$(c){return c==null?[]:jd(c,Qn(c))}o(Z$,"functions");function e4(c){return c==null?[]:jd(c,Ki(c))}o(e4,"functionsIn");function fT(c,f,d){var v=c==null?e:$s(c,f);return v===e?d:v}o(fT,"get");function t4(c,f){return c!=null&&VI(c,f,Pk)}o(t4,"has");function uT(c,f){return c!=null&&VI(c,f,xk)}o(uT,"hasIn");var n4=II(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),c[f]=d},dT(Xi)),i4=II(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Id.call(f)),Rt.call(c,f)?c[f].push(d):c[f]=[d]},Me),r4=it(Bf);function Qn(c){return Wi(c)?WC(c):Mv(c)}o(Qn,"keys");function Ki(c){return Wi(c)?WC(c,!0):Vk(c)}o(Ki,"keysIn");function o4(c,f){var d={};return f=Me(f,3),Eo(c,function(v,E,C){zo(d,f(v,E,C),v)}),d}o(o4,"mapKeys");function a4(c,f){var d={};return f=Me(f,3),Eo(c,function(v,E,C){zo(d,E,f(v,E,C))}),d}o(a4,"mapValues");var s4=zc(function(c,f,d){$d(c,f,d)}),hO=zc(function(c,f,d,v){$d(c,f,d,v)}),c4=Jo(function(c,f){var d={};if(c==null)return d;var v=!1;f=fn(f,function(C){return C=Va(C,c),v||(v=C.length>1),C}),Ao(c,zv(c),d),v&&(d=_r(d,p|g|m,nU));for(var E=f.length;E--;)Bv(d,f[E]);return d});function l4(c,f){return yO(c,ng(Me(f)))}o(l4,"omitBy");var f4=Jo(function(c,f){return c==null?{}:wk(c,f)});function yO(c,f){if(c==null)return{};var d=fn(zv(c),function(v){return[v]});return f=Me(f),cI(c,d,function(v,E){return f(v,E[0])})}o(yO,"pickBy");function u4(c,f,d){f=Va(f,c);var v=-1,E=f.length;for(E||(E=1,c=e);++v<E;){var C=c==null?e:c[So(f[v])];C===e&&(v=E,C=d),c=ea(C)?C.call(c):C}return c}o(u4,"result");function p4(c,f,d){return c==null?c:Gf(c,f,d)}o(p4,"set");function d4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:Gf(c,f,d,v)}o(d4,"setWith");var vO=LI(Qn),TO=LI(Ki);function g4(c,f,d){var v=Qe(c),E=v||wa(c)||Zc(c);if(f=Me(f,4),d==null){var C=c&&c.constructor;E?d=v?new C:[]:hn(c)?d=ea(C)?qc(Ld(c)):{}:d={}}return(E?Lr:Eo)(c,function(L,F,w){return f(d,L,F,w)}),d}o(g4,"transform");function m4(c,f){return c==null?!0:Bv(c,f)}o(m4,"unset");function h4(c,f,d){return c==null?c:dI(c,f,Wv(d))}o(h4,"update");function y4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:dI(c,f,Wv(d),v)}o(y4,"updateWith");function el(c){return c==null?[]:Sv(c,Qn(c))}o(el,"values");function T4(c){return c==null?[]:Sv(c,Ki(c))}o(T4,"valuesIn");function b4(c,f,d){return d===e&&(d=f,f=e),d!==e&&(d=Mr(d),d=d===d?d:0),f!==e&&(f=Mr(f),f=f===f?f:0),js(Mr(c),f,d)}o(b4,"clamp");function E4(c,f,d){return f=ta(f),d===e?(d=f,f=0):d=ta(d),c=Mr(c),Ck(c,f,d)}o(E4,"inRange");function A4(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=ta(c),f===e?(f=c,c=0):f=ta(f)),c>f){var v=c;c=f,f=v}if(d||c%1||f%1){var E=HC();return vi(c+E*(f-c+Jw("1e-"+((E+"").length-1))),f)}return Uv(c,f)}o(A4,"random");var S4=Yc(function(c,f,d){return f=f.toLowerCase(),c+(d?bO(f):f)});function bO(c){return pT(Ot(c).toLowerCase())}o(bO,"capitalize");function EO(c){return c=Ot(c),c&&c.replace(Sw,u2).replace(Bw,"")}o(EO,"deburr");function P4(c,f,d){c=Ot(c),f=lr(f);var v=c.length;d=d===e?v:js(Ze(d),0,v);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(P4,"endsWith");function x4(c){return c=Ot(c),c&&Ne.test(c)?c.replace(be,p2):c}o(x4,"escape");function C4(c){return c=Ot(c),c&&lw.test(c)?c.replace(_f,"\\$&"):c}o(C4,"escapeRegExp");var I4=Yc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),O4=Yc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),N4=PI("toLowerCase");function L4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;if(!f||v>=f)return c;var E=(f-v)/2;return Xd(Dd(E),d)+c+Xd(_d(E),d)}o(L4,"pad");function F4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;return f&&v<f?c+Xd(f-v,d):c}o(F4,"padEnd");function R4(c,f,d){c=Ot(c),f=Ze(f);var v=f?Wc(c):0;return f&&v<f?Xd(f-v,d)+c:c}o(R4,"padStart");function _4(c,f,d){return d||f==null?f=0:f&&(f=+f),U2(Ot(c).replace(cv,""),f||0)}o(_4,"parseInt");function D4(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Ze(f),jv(Ot(c),f)}o(D4,"repeat");function V4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(V4,"replace");var M4=Yc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function w4(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!lT(f))&&(f=lr(f),!f&&Gc(c))?Ma(zr(c),0,d):c.split(f,d)):[]}o(w4,"split");var k4=Yc(function(c,f,d){return c+(d?" ":"")+pT(f)});function U4(c,f,d){return c=Ot(c),d=d==null?0:js(Ze(d),0,c.length),f=lr(f),c.slice(d,d+f.length)==f}o(U4,"startsWith");function j4(c,f,d){var v=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=Ot(c),f=og({},f,v,FI);var E=og({},f.imports,v.imports,FI),C=Qn(E),L=Sv(E,C),F,w,z=0,Y=f.interpolate||vd,ee="__p += '",me=xv((f.escape||vd).source+"|"+Y.source+"|"+(Y===ln?yw:vd).source+"|"+(f.evaluate||vd).source+"|$","g"),Le="//# sourceURL="+(Rt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Xw+"]")+`
272
+ `;c.replace(me,function(Ue,ct,gt,ur,Fi,pr){return gt||(gt=ur),ee+=c.slice(z,pr).replace(Pw,d2),ct&&(F=!0,ee+=`' +
273
273
  __e(`+ct+`) +
274
274
  '`),Fi&&(w=!0,ee+=`';
275
275
  `+Fi+`;
276
276
  __p += '`),gt&&(ee+=`' +
277
277
  ((__t = (`+gt+`)) == null ? '' : __t) +
278
- '`),Y=fr+Ue.length,Ue}),ee+=`';
278
+ '`),z=pr+Ue.length,Ue}),ee+=`';
279
279
  `;var ke=Rt.call(f,"variable")&&f.variable;if(!ke)ee=`with (obj) {
280
280
  `+ee+`
281
281
  }
282
- `;else if(mw.test(ke))throw new We(a);ee=(w?ee.replace(gn,""):ee).replace(Cn,"$1").replace(nt,"$1;"),ee="function("+(ke||"obj")+`) {
282
+ `;else if(mw.test(ke))throw new We(a);ee=(w?ee.replace(mn,""):ee).replace(xn,"$1").replace(nt,"$1;"),ee="function("+(ke||"obj")+`) {
283
283
  `+(ke?"":`obj || (obj = {});
284
284
  `)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(w?`, __j = Array.prototype.join;
285
285
  function print() { __p += __j.call(arguments, '') }
286
286
  `:`;
287
287
  `)+ee+`return __p
288
- }`;var et=SO(function(){return St(C,Le+"return "+ee).apply(e,L)});if(et.source=ee,cT(et))throw et;return et}o(j4,"template");function $4(c){return Ot(c).toLowerCase()}o($4,"toLower");function B4(c){return Ot(c).toUpperCase()}o(B4,"toUpper");function H4(c,f,d){if(c=Ot(c),c&&(d||f===e))return RC(c);if(!c||!(f=sr(f)))return c;var v=zr(c),b=zr(f),C=_C(v,b),L=DC(v,b)+1;return Ma(v,C,L).join("")}o(H4,"trim");function G4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,MC(c)+1);if(!c||!(f=sr(f)))return c;var v=zr(c),b=DC(v,zr(f))+1;return Ma(v,0,b).join("")}o(G4,"trimEnd");function W4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(cv,"");if(!c||!(f=sr(f)))return c;var v=zr(c),b=_C(v,zr(f));return Ma(v,b).join("")}o(W4,"trimStart");function K4(c,f){var d=_,v=ut;if(mn(f)){var b="separator"in f?f.separator:b;d="length"in f?Ze(f.length):d,v="omission"in f?sr(f.omission):v}c=Ot(c);var C=c.length;if(Gc(c)){var L=zr(c);C=L.length}if(d>=C)return c;var F=d-Wc(v);if(F<1)return v;var w=L?Ma(L,0,F).join(""):c.slice(0,F);if(b===e)return w+v;if(L&&(F+=w.length-F),lT(b)){if(c.slice(F).search(b)){var Y,J=w;for(b.global||(b=xv(b.source,Ot(eC.exec(b))+"g")),b.lastIndex=0;Y=b.exec(J);)var ee=Y.index;w=w.slice(0,ee===e?F:ee)}}else if(c.indexOf(sr(b),F)!=F){var ge=w.lastIndexOf(b);ge>-1&&(w=w.slice(0,ge))}return w+v}o(K4,"truncate");function X4(c){return c=Ot(c),c&&Ce.test(c)?c.replace(me,b2):c}o(X4,"unescape");var Q4=Yc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),pT=PI("toUpperCase");function AO(c,f,d){return c=Ot(c),f=d?e:f,f===e?m2(c)?P2(c):a2(c):c.match(f)||[]}o(AO,"words");var SO=it(function(c,f){try{return or(c,e,f)}catch(d){return cT(d)?d:new We(d)}}),q4=Jo(function(c,f){return Lr(f,function(d){d=So(d),zo(c,d,aT(c[d],c))}),c});function z4(c){var f=c==null?0:c.length,d=Me();return c=f?fn(c,function(v){if(typeof v[1]!="function")throw new Fr(r);return[d(v[0]),v[1]]}):[],it(function(v){for(var b=-1;++b<f;){var C=c[b];if(or(C[0],this,v))return or(C[1],this,v)}})}o(z4,"cond");function Y4(c){return bk(_r(c,p))}o(Y4,"conforms");function dT(c){return function(){return c}}o(dT,"constant");function J4(c,f){return c==null||c!==c?f:c}o(J4,"defaultTo");var Z4=CI(),eB=CI(!0);function Ki(c){return c}o(Ki,"identity");function gT(c){return nI(typeof c=="function"?c:_r(c,p))}o(gT,"iteratee");function tB(c){return rI(_r(c,p))}o(tB,"matches");function nB(c,f){return oI(c,_r(f,p))}o(nB,"matchesProperty");var iB=it(function(c,f){return function(d){return Bf(d,c,f)}}),rB=it(function(c,f){return function(d){return Bf(c,d,f)}});function mT(c,f,d){var v=Qn(f),b=jd(f,v);d==null&&!(mn(f)&&(b.length||!v.length))&&(d=f,f=c,c=this,b=jd(f,Qn(f)));var C=!(mn(d)&&"chain"in d)||!!d.chain,L=ea(c);return Lr(b,function(F){var w=f[F];c[F]=w,L&&(c.prototype[F]=function(){var Y=this.__chain__;if(C||Y){var J=c(this.__wrapped__),ee=J.__actions__=Hi(this.__actions__);return ee.push({func:w,args:arguments,thisArg:c}),J.__chain__=Y,J}return w.apply(c,Na([this.value()],arguments))})}),c}o(mT,"mixin");function oB(){return Xn._===this&&(Xn._=L2),this}o(oB,"noConflict");function hT(){}o(hT,"noop");function aB(c){return c=Ze(c),it(function(f){return aI(f,c)})}o(aB,"nthArg");var sB=Xv(fn),cB=Xv(IC),lB=Xv(vv);function PO(c){return eT(c)?Tv(So(c)):kk(c)}o(PO,"property");function fB(c){return function(f){return c==null?e:$s(c,f)}}o(fB,"propertyOf");var uB=OI(),pB=OI(!0);function yT(){return[]}o(yT,"stubArray");function vT(){return!1}o(vT,"stubFalse");function dB(){return{}}o(dB,"stubObject");function gB(){return""}o(gB,"stubString");function mB(){return!0}o(mB,"stubTrue");function hB(c,f){if(c=Ze(c),c<1||c>Re)return[];var d=Mt,v=hi(c,Mt);f=Me(f),c-=Mt;for(var b=Av(v,f);++d<c;)f(d);return b}o(hB,"times");function yB(c){return Qe(c)?fn(c,So):cr(c)?[c]:Hi(GI(Ot(c)))}o(yB,"toPath");function vB(c){var f=++O2;return Ot(c)+f}o(vB,"uniqueId");var TB=Kd(function(c,f){return c+f},0),EB=Qv("ceil"),bB=Kd(function(c,f){return c/f},1),AB=Qv("floor");function SB(c){return c&&c.length?Ud(c,Ki,_v):e}o(SB,"max");function PB(c,f){return c&&c.length?Ud(c,Me(f,2),_v):e}o(PB,"maxBy");function xB(c){return LC(c,Ki)}o(xB,"mean");function CB(c,f){return LC(c,Me(f,2))}o(CB,"meanBy");function IB(c){return c&&c.length?Ud(c,Ki,wv):e}o(IB,"min");function OB(c,f){return c&&c.length?Ud(c,Me(f,2),wv):e}o(OB,"minBy");var NB=Kd(function(c,f){return c*f},1),LB=Qv("round"),FB=Kd(function(c,f){return c-f},0);function RB(c){return c&&c.length?bv(c,Ki):0}o(RB,"sum");function _B(c,f){return c&&c.length?bv(c,Me(f,2)):0}return o(_B,"sumBy"),P.after=e$,P.ary=tO,P.assign=$$,P.assignIn=mO,P.assignInWith=og,P.assignWith=B$,P.at=H$,P.before=nO,P.bind=aT,P.bindAll=q4,P.bindKey=iO,P.castArray=p$,P.chain=JI,P.chunk=bU,P.compact=AU,P.concat=SU,P.cond=z4,P.conforms=Y4,P.constant=dT,P.countBy=Fj,P.create=G$,P.curry=rO,P.curryRight=oO,P.debounce=aO,P.defaults=W$,P.defaultsDeep=K$,P.defer=t$,P.delay=n$,P.difference=PU,P.differenceBy=xU,P.differenceWith=CU,P.drop=IU,P.dropRight=OU,P.dropRightWhile=NU,P.dropWhile=LU,P.fill=FU,P.filter=_j,P.flatMap=Mj,P.flatMapDeep=wj,P.flatMapDepth=kj,P.flatten=QI,P.flattenDeep=RU,P.flattenDepth=_U,P.flip=i$,P.flow=Z4,P.flowRight=eB,P.fromPairs=DU,P.functions=Z$,P.functionsIn=e4,P.groupBy=Uj,P.initial=MU,P.intersection=wU,P.intersectionBy=kU,P.intersectionWith=UU,P.invert=n4,P.invertBy=i4,P.invokeMap=$j,P.iteratee=gT,P.keyBy=Bj,P.keys=Qn,P.keysIn=Wi,P.map=Zd,P.mapKeys=o4,P.mapValues=a4,P.matches=tB,P.matchesProperty=nB,P.memoize=tg,P.merge=s4,P.mergeWith=hO,P.method=iB,P.methodOf=rB,P.mixin=mT,P.negate=ng,P.nthArg=aB,P.omit=c4,P.omitBy=l4,P.once=r$,P.orderBy=Hj,P.over=sB,P.overArgs=o$,P.overEvery=cB,P.overSome=lB,P.partial=sT,P.partialRight=sO,P.partition=Gj,P.pick=f4,P.pickBy=yO,P.property=PO,P.propertyOf=fB,P.pull=HU,P.pullAll=zI,P.pullAllBy=GU,P.pullAllWith=WU,P.pullAt=KU,P.range=uB,P.rangeRight=pB,P.rearg=a$,P.reject=Xj,P.remove=XU,P.rest=s$,P.reverse=rT,P.sampleSize=qj,P.set=p4,P.setWith=d4,P.shuffle=zj,P.slice=QU,P.sortBy=Zj,P.sortedUniq=tj,P.sortedUniqBy=nj,P.split=w4,P.spread=c$,P.tail=ij,P.take=rj,P.takeRight=oj,P.takeRightWhile=aj,P.takeWhile=sj,P.tap=Aj,P.throttle=l$,P.thru=Jd,P.toArray=pO,P.toPairs=vO,P.toPairsIn=TO,P.toPath=yB,P.toPlainObject=gO,P.transform=g4,P.unary=f$,P.union=cj,P.unionBy=lj,P.unionWith=fj,P.uniq=uj,P.uniqBy=pj,P.uniqWith=dj,P.unset=m4,P.unzip=oT,P.unzipWith=YI,P.update=h4,P.updateWith=y4,P.values=el,P.valuesIn=T4,P.without=gj,P.words=AO,P.wrap=u$,P.xor=mj,P.xorBy=hj,P.xorWith=yj,P.zip=vj,P.zipObject=Tj,P.zipObjectDeep=Ej,P.zipWith=bj,P.entries=vO,P.entriesIn=TO,P.extend=mO,P.extendWith=og,mT(P,P),P.add=TB,P.attempt=SO,P.camelCase=S4,P.capitalize=EO,P.ceil=EB,P.clamp=E4,P.clone=d$,P.cloneDeep=m$,P.cloneDeepWith=h$,P.cloneWith=g$,P.conformsTo=y$,P.deburr=bO,P.defaultTo=J4,P.divide=bB,P.endsWith=P4,P.eq=Jr,P.escape=x4,P.escapeRegExp=C4,P.every=Rj,P.find=Dj,P.findIndex=KI,P.findKey=X$,P.findLast=Vj,P.findLastIndex=XI,P.findLastKey=Q$,P.floor=AB,P.forEach=ZI,P.forEachRight=eO,P.forIn=q$,P.forInRight=z$,P.forOwn=Y$,P.forOwnRight=J$,P.get=fT,P.gt=v$,P.gte=T$,P.has=t4,P.hasIn=uT,P.head=qI,P.identity=Ki,P.includes=jj,P.indexOf=VU,P.inRange=b4,P.invoke=r4,P.isArguments=Gs,P.isArray=Qe,P.isArrayBuffer=E$,P.isArrayLike=Gi,P.isArrayLikeObject=In,P.isBoolean=b$,P.isBuffer=wa,P.isDate=A$,P.isElement=S$,P.isEmpty=P$,P.isEqual=x$,P.isEqualWith=C$,P.isError=cT,P.isFinite=I$,P.isFunction=ea,P.isInteger=cO,P.isLength=ig,P.isMap=lO,P.isMatch=O$,P.isMatchWith=N$,P.isNaN=L$,P.isNative=F$,P.isNil=_$,P.isNull=R$,P.isNumber=fO,P.isObject=mn,P.isObjectLike=Tn,P.isPlainObject=Qf,P.isRegExp=lT,P.isSafeInteger=D$,P.isSet=uO,P.isString=rg,P.isSymbol=cr,P.isTypedArray=Zc,P.isUndefined=V$,P.isWeakMap=M$,P.isWeakSet=w$,P.join=jU,P.kebabCase=I4,P.last=Vr,P.lastIndexOf=$U,P.lowerCase=O4,P.lowerFirst=N4,P.lt=k$,P.lte=U$,P.max=SB,P.maxBy=PB,P.mean=xB,P.meanBy=CB,P.min=IB,P.minBy=OB,P.stubArray=yT,P.stubFalse=vT,P.stubObject=dB,P.stubString=gB,P.stubTrue=mB,P.multiply=NB,P.nth=BU,P.noConflict=oB,P.noop=hT,P.now=eg,P.pad=L4,P.padEnd=F4,P.padStart=R4,P.parseInt=_4,P.random=A4,P.reduce=Wj,P.reduceRight=Kj,P.repeat=D4,P.replace=V4,P.result=u4,P.round=LB,P.runInContext=M,P.sample=Qj,P.size=Yj,P.snakeCase=M4,P.some=Jj,P.sortedIndex=qU,P.sortedIndexBy=zU,P.sortedIndexOf=YU,P.sortedLastIndex=JU,P.sortedLastIndexBy=ZU,P.sortedLastIndexOf=ej,P.startCase=k4,P.startsWith=U4,P.subtract=FB,P.sum=RB,P.sumBy=_B,P.template=j4,P.times=hB,P.toFinite=ta,P.toInteger=Ze,P.toLength=dO,P.toLower=$4,P.toNumber=Mr,P.toSafeInteger=j$,P.toString=Ot,P.toUpper=B4,P.trim=H4,P.trimEnd=G4,P.trimStart=W4,P.truncate=K4,P.unescape=X4,P.uniqueId=vB,P.upperCase=Q4,P.upperFirst=pT,P.each=ZI,P.eachRight=eO,P.first=qI,mT(P,function(){var c={};return bo(P,function(f,d){Rt.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Lr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Lr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:jn(Ze(d),0);var v=this.__filtered__&&!f?new pt(this):this.clone();return v.__filtered__?v.__takeCount__=hi(d,v.__takeCount__):v.__views__.push({size:hi(d,Mt),type:c+(v.__dir__<0?"Right":"")}),v},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Lr(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==an||d==en;pt.prototype[c]=function(b){var C=this.clone();return C.__iteratees__.push({iteratee:Me(b,3),type:d}),C.__filtered__=C.__filtered__||v,C}}),Lr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Lr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");pt.prototype[c]=function(){return this.__filtered__?new pt(this):this[d](1)}}),pt.prototype.compact=function(){return this.filter(Ki)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=it(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return Bf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ng(Me(c)))},pt.prototype.slice=function(c,f){c=Ze(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Ze(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(Mt)},bo(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),v=/^(?:head|last)$/.test(f),b=P[v?"take"+(f=="last"?"Right":""):f],C=v||/^find/.test(f);b&&(P.prototype[f]=function(){var L=this.__wrapped__,F=v?[1]:arguments,w=L instanceof pt,Y=F[0],J=w||Qe(L),ee=o(function(ct){var gt=b.apply(P,Na([ct],F));return v&&ge?gt[0]:gt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(w=J=!1);var ge=this.__chain__,Le=!!this.__actions__.length,ke=C&&!ge,et=w&&!Le;if(!C&&J){L=et?L:new pt(this);var Ue=c.apply(L,F);return Ue.__actions__.push({func:Jd,args:[ee],thisArg:e}),new Rr(Ue,ge)}return ke&&et?c.apply(this,F):(Ue=this.thru(ee),ke?v?Ue.value()[0]:Ue.value():Ue)})}),Lr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Pd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",v=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var b=arguments;if(v&&!this.__chain__){var C=this.value();return f.apply(Qe(C)?C:[],b)}return this[d](function(L){return f.apply(Qe(L)?L:[],b)})}}),bo(pt.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Rt.call(Qc,v)||(Qc[v]=[]),Qc[v].push({name:f,func:d})}}),Qc[Wd(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=K2,pt.prototype.reverse=X2,pt.prototype.value=Q2,P.prototype.at=Sj,P.prototype.chain=Pj,P.prototype.commit=xj,P.prototype.next=Cj,P.prototype.plant=Oj,P.prototype.reverse=Nj,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=Lj,P.prototype.first=P.prototype.head,Vf&&(P.prototype[Vf]=Ij),P},"runInContext"),Fa=x2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Fa,define(function(){return Fa})):Ms?((Ms.exports=Fa)._=Fa,gv._=Fa):Xn._=Fa}).call(Zl)});var oV=Ye((Ice,rV)=>{var{findIndex:e6}=xp();function t6(e,t){let i=e6(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(t6,"findNextTextualToken");rV.exports={findNextTextualToken:t6}});var cV=Ye((Nce,sV)=>{var aV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function n6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(aV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(n6,"isXMLNamespaceKey");function i6(e){if(typeof e!="string")return;let t=e.match(aV);if(t!==null)return t.groups&&t.groups.prefix||""}o(i6,"getXMLNamespaceKeyPrefix");sV.exports={isXMLNamespaceKey:n6,getXMLNamespaceKeyPrefix:i6}});var fV=Ye((Fce,lV)=>{var{findNextTextualToken:r6}=oV(),{isXMLNamespaceKey:o6,getXMLNamespaceKeyPrefix:a6}=cV();lV.exports={findNextTextualToken:r6,isXMLNamespaceKey:o6,getXMLNamespaceKeyPrefix:a6}});var yS=Ye((Rce,pV)=>{var{reduce:s6,has:uV,isArray:c6}=xp();function l6(e){return s6(e,(n,i,r)=>(r==="parent"||(uV(i,"type")?n.push(i):c6(i)&&i.length>0&&uV(i[0],"type")&&(n=n.concat(i))),n),[])}o(l6,"getAstChildrenReflective");pV.exports={getAstChildrenReflective:l6}});var vS=Ye((Dce,dV)=>{dV.exports={DEFAULT_NS:"::DEFAULT"}});var bV=Ye((Vce,EV)=>{var{BaseXmlCstVisitor:f6}=hS(),{last:u6,forEach:yV,reduce:p6,map:Cp,pick:ES,sortBy:d6,isEmpty:g6,isArray:vV,assign:m6}=xp(),{findNextTextualToken:h6,isXMLNamespaceKey:y6,getXMLNamespaceKeyPrefix:v6}=fV(),{getAstChildrenReflective:T6}=yS(),{DEFAULT_NS:E6}=vS();function b6(e,t){gV.setState({tokenVector:t});let n=gV.visit(e);return n.rootElement!==Rc&&TV(n.rootElement),n}o(b6,"buildAst");var bS=class bS extends f6{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:Rc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&g6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Sy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Cp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Sy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Cp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Cp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Rc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Cp(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 P6(i,t),x6(i,t),C6(i,t,this.tokenVector),Sy(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Rc,value:Rc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Py(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=A6(a.image),r.syntax.value=Py(a)}return Sy(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Rc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=d6(r,["startOffset"]),s=Cp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(bS,"CstToAstVisitor");var TS=bS,gV=new TS;function Sy(e){let t=T6(e);yV(t,n=>n.parent=e)}o(Sy,"setChildrenParent");function TV(e,t=[]){let n=p6(e.attributes,(r,a)=>{if(a.key!==Rc&&y6({key:a.key,includeEmptyPrefix:!1})===!0){let s=v6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[E6]=l}}return r},{}),i=Object.create(null);e.namespaces=m6(i,t,n),yV(e.subElements,r=>TV(r,e.namespaces))}o(TV,"updateNamespaces");function Py(e){return ES(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Py,"toXMLToken");function mV(e){return ES(e,["startOffset","startLine","startColumn"])}o(mV,"startOfXMLToken");function hV(e){return ES(e,["endOffset","endLine","endColumn"])}o(hV,"endOfXMLToken");function Sa(e){return vV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Sa,"exists");function A6(e){return e.substring(1,e.length-1)}o(A6,"stripQuotes");function S6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(S6,"nsToParts");var Rc=null;function P6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Py(n);let i=S6(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=Py(t.END_NAME[0]))}o(P6,"handleElementOpenCloseNameRanges");function x6(e,t){if(Sa(t.OPEN)){let n;Sa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Sa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...mV(t.OPEN[0]),...hV(n)}),Sa(t.SLASH_OPEN)&&Sa(t.END)&&(e.syntax.closeBody={...mV(t.SLASH_OPEN[0]),...hV(t.END[0])})}}o(x6,"handleElementOpenCloseBodyRanges");function C6(e,t,n){if(Sa(t.Name)){let i=t.Name[0].endOffset+2;if(Sa(t.START_CLOSE)||Sa(t.SLASH_CLOSE)){let r=(Sa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=vV(t.attribute)?u6(t.attribute).location.endOffset:t.Name[0].endOffset,s=h6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(C6,"handleElementAttributeRanges");EV.exports={buildAst:b6}});var PV=Ye((wce,SV)=>{var{forEach:I6,isFunction:ef}=xp(),{getAstChildrenReflective:O6}=yS();function AV(e,t){switch(e.type){case"XMLDocument":{ef(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{ef(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{ef(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{ef(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{ef(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{ef(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=O6(e);I6(n,i=>{AV(i,t)})}o(AV,"accept");SV.exports={accept:AV}});var CV=Ye((Uce,xV)=>{var{buildAst:N6}=bV(),{accept:L6}=PV(),{DEFAULT_NS:F6}=vS();xV.exports={buildAst:N6,accept:L6,DEFAULT_NS:F6}});var Vi={};Ws(Vi,{deleteConfigEntityByPath:()=>qz,exportConfig:()=>Xz,exportConfigEntityByPath:()=>Qz,generateCustomExtension:()=>Xx,generateSchema:()=>Kz,getApiVersion:()=>Zz,getChanges:()=>cw,getGenericSchema:()=>rv,getPathToGenericSchema:()=>EM,getProject:()=>rY,importConfig:()=>zz,importProject:()=>Yz,importProjectSchema:()=>Jz,isDirectory:()=>tY,log:()=>se,prompts:()=>Wz,readDirectory:()=>Zx});module.exports=sg(Vi);var pe=te(le());var Vg=te(le()),K=te(le());var g5={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Yf=class Yf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||g5,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Yf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Yf(this.logger,t)}};o(Yf,"Logger");var IT=Yf,Po=new IT,DT=class DT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(DT,"EventEmitter");var rl=DT,qf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),oF=o(e=>e==null?"":""+e,"makeString"),m5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),h5=/###/g,aF=o(e=>e&&e.indexOf("###")>-1?e.replace(h5,"."):e,"cleanKey"),sF=o(e=>!e||typeof e=="string","canNotTraverseDeeper"),zf=o((e,t,n)=>{let i=typeof t!="string"?t:t.split("."),r=0;for(;r<i.length-1;){if(sF(e))return{};let a=aF(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return sF(e)?{}:{obj:e,k:aF(i[r])}},"getLastOfPath"),cF=o((e,t,n)=>{let{obj:i,k:r}=zf(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=zf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=zf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),y5=o((e,t,n,i)=>{let{obj:r,k:a}=zf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),lg=o((e,t)=>{let{obj:n,k:i}=zf(e,t);if(n)return n[i]},"getPath"),v5=o((e,t,n)=>{let i=lg(e,n);return i!==void 0?i:lg(t,n)},"getPathWithDefaults"),gF=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):gF(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),nl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),T5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},E5=o(e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>T5[t]):e,"escape"),VT=class VT{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(VT,"RegExpCache");var OT=VT,b5=[" ",",","?","!",";"],A5=new OT(20),S5=o((e,t,n)=>{t=t||"",n=n||"";let i=b5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=A5.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"),NT=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),fg=o(e=>e&&e.indexOf("_")>0?e.replace("_","-"):e,"getCleanedCode"),MT=class MT extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):typeof i=="string"&&a?l.push(...i.split(a)):l.push(i)));let u=lg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||typeof i!="string"?u:NT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),cF(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(typeof i[a]=="string"||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=lg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?gF(u,i,a):u={...u,...i},cF(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(MT,"ResourceStore");var ug=MT,mF={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},lF={},mg=class mg extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),m5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Po.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!S5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces: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 typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),T=m&&m.res,A=m&&m.usedKey||s,E=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(T),R=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,W=!this.i18nFormat||this.i18nFormat.handleAsObject;if(W&&T&&(typeof T!="string"&&typeof T!="boolean"&&typeof T!="number")&&R.indexOf(O)<0&&!(typeof U=="string"&&Array.isArray(T))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,T,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(T),Z=ae?[]:{},re=ae?E:A;for(let xe in T)if(Object.prototype.hasOwnProperty.call(T,xe)){let _=`${re}${a}${xe}`;Z[xe]=this.translate(_,{...n,joinArrays:!1,ns:l}),Z[xe]===_&&(Z[xe]=T[xe])}T=Z}}else if(W&&typeof U=="string"&&Array.isArray(T))T=T.join(U),T&&(T=this.extendTranslation(T,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&typeof n.count!="string",xe=mg.hasDefaultValue(n),_=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$e=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(T)&&xe&&(ae=!0,T=$e),this.isValidLookup(T)||(Z=!0,T=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:T,en=xe&&$e!==T&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?$e:T),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Oi=o((It,Mt,sn)=>{let $i=xe&&sn!==T?sn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,$i,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,$i,en,n),this.emit("missingKey",It,u,Mt,T)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Oi([It],s+sn,n[`defaultValue${sn}`]||$e)})}):Oi(Lt,s,$e))}T=this.extendTranslation(T,t,n,m,i),Z&&T===s&&this.options.appendNamespaceToMissingKey&&(T=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?T:void 0):T=this.options.parseMissingKeyHandler(T))}return r?(m.res=T,m.usedParams=this.getUsedParamsDetails(n),m):T}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let T=t.match(this.interpolator.nestingRegexp);g=T&&T.length}let m=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let T=t.match(this.interpolator.nestingRegexp),A=T&&T.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var T=arguments.length,A=new Array(T),E=0;E<T;E++)A[E]=arguments[E];return a&&a[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=mF.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return typeof t=="string"&&(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 T=n.count!==void 0&&typeof n.count!="string",A=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),E=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(R=>{this.isValidLookup(i)||(l=R,!lF[`${O[0]}-${R}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(lF[`${O[0]}-${R}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(U=>{if(this.isValidLookup(i))return;s=U;let W=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(W,g,U,R,n);else{let ae;T&&(ae=this.pluralResolver.getSuffix(U,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(W.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&W.push(g+ae.replace(re,this.options.pluralSeparator)),A&&W.push(g+Z)),E){let xe=`${g}${this.options.contextSeparator}${n.context}`;W.push(xe),T&&(W.push(xe+ae),n.ordinal&&ae.indexOf(re)===0&&W.push(xe+ae.replace(re,this.options.pluralSeparator)),A&&W.push(xe+Z))}}let j;for(;j=W.pop();)this.isValidLookup(i)||(a=j,i=this.getResource(U,R,j,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&typeof t.replace!="string",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(mg,"Translator");var pg=mg,xT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),wT=class wT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Po.create("languageUtils")}getScriptPartFromCode(t){if(t=fg(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=fg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=xT(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=xT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=xT(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return typeof t=="string"&&(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))):typeof t=="string"&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(wT,"LanguageUtil");var dg=wT,P5=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x5={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},C5=["v1","v2","v3"],I5=["v4"],fF={zero:0,one:1,two:2,few:3,many:4,other:5},O5=o(()=>{let e={};return P5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x5[t.fc]}})}),e},"createRules"),kT=class kT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Po.create("pluralResolver"),(!this.options.compatibilityJSON||I5.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=O5(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{let i=fg(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=new Intl.PluralRules(i,{type:r});return this.pluralRulesCache[a]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>fF[r]-fF[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!C5.includes(this.options.compatibilityJSON)}};o(kT,"PluralResolver");var LT=kT,uF=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=v5(e,t,n);return!a&&r&&typeof n=="string"&&(a=NT(e,n,i),a===void 0&&(a=NT(t,n,i))),a},"deepFindWithDefaults"),CT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),UT=class UT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Po.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:T,nestingPrefixEscaped:A,nestingSuffix:E,nestingSuffixEscaped:O,nestingOptionsSeparator:R,maxReplaces:U,alwaysFormat:W}=t.interpolation;this.escape=n!==void 0?n:E5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?nl(a):s||"{{",this.suffix=l?nl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=T?nl(T):A||nl("$t("),this.nestingSuffix=E?nl(E):O||nl(")"),this.nestingOptionsSeparator=R||",",this.maxReplaces=U||1e3,this.alwaysFormat=W!==void 0?W:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let U=uF(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(U,void 0,i,{...r,...n,interpolationkey:A}):U}let E=A.split(this.formatSeparator),O=E.shift().trim(),R=E.join(this.formatSeparator).trim();return this.format(uF(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),R,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>CT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?CT(this.escape(A)):CT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let E=a[1].trim();if(s=p(E),s===void 0)if(typeof g=="function"){let R=g(t,a,r);s=typeof R=="string"?R:""}else if(r&&Object.prototype.hasOwnProperty.call(r,E))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${E} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=oF(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),T=`{${m[1]}`;u=m[0],T=this.interpolate(T,s);let A=T.match(/'/g),E=T.match(/"/g);(A&&A.length%2===0&&!E||E.length%2!==0)&&(T=T.replace(/'/g,'"'));try{s=JSON.parse(T),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${T}`}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&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=oF(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(UT,"Interpolator");var FT=UT,N5=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"),il=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(fg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),jT=class jT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Po.create("formatter"),this.options=t,this.formats={number:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:il((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:il((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:il((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=il(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=N5(u);if(this.formats[p]){let m=l;try{let T=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=T.locale||T.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...T})}catch(T){this.logger.warn(T)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(jT,"Formatter");var RT=jT,L5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),$T=class $T extends rl{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Po.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let T=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?s[T]===void 0&&(s[T]=!0):(this.state[T]=1,g=!1,s[T]===void 0&&(s[T]=!0),a[T]===void 0&&(a[T]=!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=>{y5(u.loaded,[a],s),L5(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o($T,"Connector");var _T=$T,pF=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),dF=o(e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),cg=o(()=>{},"noop"),F5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Jf=class Jf extends rl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=dF(t),this.services={},this.logger=Po,this.modules={external:[]},F5(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=pF();this.options={...r,...this.options,...dF(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Po.init(a(this.modules.logger),this.options):Po.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=RT);let m=new dg(this.options);this.store=new ug(this.options.resources,this.options);let T=this.services;T.logger=Po,T.resourceStore=this.store,T.languageUtils=m,T.pluralResolver=new LT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(T.formatter=a(g),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new FT(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new _T(a(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),R=1;R<E;R++)O[R-1]=arguments[R];t.emit(A,...O)}),this.modules.languageDetector&&(T.languageDetector=a(this.modules.languageDetector),T.languageDetector.init&&T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=a(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new pg(this.services,this.options),this.translator.on("*",function(A){for(var E=arguments.length,O=new Array(E>1?E-1:0),R=1;R<E;R++)O[R-1]=arguments[R];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=cg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=qf(),p=o(()=>{let g=o((m,T)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(T),i(m,T)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cg,r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=qf();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=cg),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"&&mF.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=qf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let T=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(E=>`${u.keyPrefix}${T}${E}`):A=u.keyPrefix?`${u.keyPrefix}${T}${s}`:s,r.t(A,u)},"fixedT");return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=qf();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=qf();typeof t=="string"&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new dg(pF());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Jf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Jf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new ug(this.store.data,r),a.services.resourceStore=a.store),a.translator=new pg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Jf,"I18n");var gg=Jf,q=gg.createInstance();q.createInstance=gg.createInstance;var mY=q.createInstance,hY=q.dir,yY=q.init,vY=q.loadResources,TY=q.reloadResources,EY=q.use,bY=q.changeLanguage,AY=q.getFixedT,SY=q.t,PY=q.exists,xY=q.setDefaultNamespace,CY=q.hasLoadedNamespace,IY=q.loadNamespaces,OY=q.loadLanguages;var LR=te(BT()),FR=te(BF()),wg=te(OR()),Ke=require("@sap-ux/vocabularies-types/vocabularies/UI"),iu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Dg=te(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Dg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Dg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Dg.LogSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",fW=[K.v4.FE_TEMPLATE_V4_LIST_REPORT,K.v4.FE_TEMPLATE_V4_ALP,K.v4.FE_TEMPLATE_V4_OBJECT_PAGE,K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],uW=["sap.fe.core","sap.fe.templates"],ru=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),pr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Io(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,wg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:K.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,wg.merge)(...n);i=(0,FR.convert)(r)}return i}o(Io,"parseAndMergeAndConvert");var ll=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function sE(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(sE,"evaluateCommonLabel");function kg(e,t){let n=e.value;return e.$target&&(n=sE(e.$target.annotations,t,n)),n}o(kg,"getLabelForPropertyPath");function Mg(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=sE(i.annotations,t,n)),n}o(Mg,"getLabelForDataField");function pW(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return sE(a.annotations,t,s)}}}else return}o(pW,"getLabel");function NR(e,t,n){let i=Mg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(NR,"getTitleForDataField");function bi(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=pW(e.Label,t);switch(e.$Type){case Ke.UIAnnotationTypes.DataField:n=NR(e,t,g);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:i=Mg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Mg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case Ke.UIAnnotationTypes.DataFieldForAction:case Ke.UIAnnotationTypes.DataFieldWithAction:case Ke.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case Ke.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Mg(e,t),n=i||e.Value.path;break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=NR(r,t,g);break;default:break}return n}catch{return n}}o(bi,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function sa(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(sa,"getPageTypeV2");function cE(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}o(cE,"getPageTypeV4");function dW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(dW,"getTargetAnnotationName");function ri(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(ri,"findAlias");function gW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(gW,"getAnnotationFromMetaPath");function mW(e,t,n){var s,l;let i=e[e.length-1],r=gW(i),a=ri(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(mW,"determineTargetAnnotation");function hW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ke.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}o(hW,"adjustKey");function yW(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var m,T;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=hW(t,u,a);let g=mW(u,n,e);if(g){let A=r===K.FioriElementsVersion.v2?"::":"#";t=dW(g,a).replace("#",A),l=(T=g.fullyQualifiedName)==null?void 0:T.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(yW,"getKeyAndEntityTypeOfReferenceFacet");function RR(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var g,m,T;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=(T=e.fullyQualifiedName)==null?void 0:T.split("@")[0],p=t;if(e.$Type!==Ke.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ll(e.Target);if(!A){se(i,{severity:K.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:O,stopProcessing:R,namespace:U}=yW(n,l,p,A,r,a);if(R)return;l=E,p=O,u=U}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(RR,"getSectionFacet");function vW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(vW,"getDecodedPathElement");var lE=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),_R=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=vW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=lE(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Oo=o((e,t,n,i,r=!1)=>_R(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),DR=o((e,t,n,i,r)=>{_R(e,t,i,r,n)},"setManifestSectionByPathV4");function fE(e){let t,n,i;switch(e.$Type){case Ke.UIAnnotationTypes.DataField:t=ll(e.Value);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ll(e.Value);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Ke.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${dt(e.Action)}`);break;case Ke.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ll(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Ke.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${dt(e.Action)}`);break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:i=ll(e.Value),n=ll(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(fE,"getSchemaKeyOfLineItemRecord");function TW(e,t,n){return e.includes(Ke.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Ke.UIAnnotationTerms.Chart:e.includes(Ke.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Ke.UIAnnotationTerms.Identification:n&&e.includes(Ke.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Ke.UIAnnotationTerms.LineItem:e.includes(Ke.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Ke.UIAnnotationTerms.FieldGroup:e.includes(Ke.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Ke.UIAnnotationTerms.DataPoint:e.includes(Ke.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Ke.UIAnnotationTerms.PresentationVariant:e.includes(Ke.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?Ke.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(TW,"getUIAnnotationTerm");function EW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?iu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?iu.CommunicationAnnotationTerms.Address:void 0}o(EW,"getCommunicationAnnotationTerm");function bW(e,t,n){return TW(e,t,n)||EW(e,t)}o(bW,"getAnnotationTerm");function AW(e,t,n,i,r){var p,g,m,T,A,E,O,R,U,W;let a=ri(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(bW(s,a,i)){case Ke.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.LineItem:{if(!s.includes(Ke.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${Ke.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:K.FacetBase.SelectionPresentationVariant},n[s].target=(R=t==null?void 0:t.Target)==null?void 0:R.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case iu.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(U=t==null?void 0:t.Target)==null?void 0:U.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case iu.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(W=t==null?void 0:t.Target)==null?void 0:W.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(AW,"evaluateTargetAnnotation");function uE(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(uE,"getAnnotationPathUsingFullyQualifiedName");function pE(e,t,n,i,r,a=K.FioriElementsVersion.v2,s){var u;let l=RR(e,i,t,s,a,!1);if(l)switch(e.$Type){case Ke.UIAnnotationTypes.ReferenceFacet:{AW(l,e,r,i,t);break}case Ke.UIAnnotationTypes.CollectionFacet:{let p=uE(i,e.fullyQualifiedName),g=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===K.FioriElementsVersion.v4&&se(s,{severity:K.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{pE(m,t,n,i,g.facets,a,s)});break}}}o(pE,"addFacetToConfig");function Ug(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ri(K.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{pE(m,t,g,e,r,n,i)})}return r}o(Ug,"getObjectPageHeaderFacets");function jg(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ri(K.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{pE(g,t,p,e,r,n,i)})}return r}o(jg,"getObjectPageFacets");function dE(e){var t,n,i,r;if(e[K.ManifestSection.generic]&&Object.keys(e[K.ManifestSection.generic]).length>0||e[K.ManifestSection.ovp]&&Object.keys(e[K.ManifestSection.ovp]).length>0)return K.FioriElementsVersion.v2;{let a=(n=(t=e[K.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[K.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>fW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>uW.indexOf(l)>-1)?K.FioriElementsVersion.v4:void 0}}o(dE,"getFEVersionFromManifest");function SW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[K.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[K.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[K.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[K.ManifestSection.ui5].models[t].dataSource:void 0}o(SW,"getMainService");function VR(e){var i,r;let t=SW(e);if(!t)return Vg.OdataVersion.v2;let n=(i=e[K.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?Vg.OdataVersion.v4:Vg.OdataVersion.v2}o(VR,"getODataVersionFromManifest");function PW(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let a=e[K.ManifestSection.generic].pages;if(!a){se(t,{severity:K.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(sa((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(sa((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}o(PW,"determineV2Template");function ou(e){var i,r,a,s;let t,n=cE(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}o(ou,"determineV4PageTemplateType");function xW(e){let t;for(let n in e){let i=e[n];if(t=ou(i),t)break}return t}o(xW,"determineV4TemplateFromPages");function CW(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:K.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=xW(n);return i||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}o(CW,"determineV4Template");function gE(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=PW(e,n):t===K.FioriElementsVersion.v4&&(i=CW(e,n)),i}o(gE,"getTemplateTypeFromManifest");function Ua(e,t,n){e!=null&&e.ID?(t.title=K.FacetTitlePrefix+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Ua,"addSectionTitleAndDescription");function fl(e,t,n){var i,r;Ua(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(fl,"addTargetTitleAndSectionDescription");function No(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[K.SchemaTag.isViewNode]=!0,i[K.SchemaTag.annotationPath]=t.annotationPath,fl(t,i,n),i}o(No,"createDefaultSection");function MR(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let a=ri(K.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let T=RR(m,e,t,n,i,!0);return T&&g.push(T),g},s)),s}}o(MR,"getObjectPageFacetSection");var ja=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]){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(),ja(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),aE=o(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:aE(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:aE(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=aE(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function $g(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o($g,"generatePageId");function mE(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($)[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(mE,"findMatchingKeysByAdditionalProperties");function IW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[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=mE(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length)&&i.push(a)}}}o(IW,"fillArrayFromAnyOfReference");function OW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{IW(r,n,t,i)}),i.length===0))return;return i}o(OW,"fillArrayFromPropertyDefinition");function NW(e,t,n,i,r,a,s,l){var p,g,m,T;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Lo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(R=>{R!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[R].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,E,O,(T=u==null?void 0:u.targetDefinition)==null?void 0:T.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(NW,"determineNextDefinitionFromDefinitionArray");function Lo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Lo(e,t,n,i.items,r,a,s),l;let u=OW(i,n,e);if(u)return l=NW(u,e,t,n,r,a,s,i),l}o(Lo,"getNextTargetDefinition");var hE=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,LR.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Bg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Bg,"convertEnumToCSV");function Qi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(Qi,"convertActionKeyToStableId");function hn(e){return e==null?void 0:e.split($)[1]}o(hn,"getDefinitionKey");function wR(e){return`#/definitions/${e}`}o(wR,"getDefinitionsRef");function Hg(e){return e instanceof Error?e.message:String(e)}o(Hg,"getErrorMessage");function qs(e,t){return e==null?void 0:e.includes(t)}o(qs,"isFeatureSupported");function Fo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Fo,"updatePropertyIndices");function Gg(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Gg,"getJSONPropertyByPath");function kR(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(kR,"removeNamespaces");function ul(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ul,"replaceNamespaces");var Eo=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=te(le());var qi=te(le());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Wg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=qi.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 LW(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(LW,"escapeId");var UR=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(UR||{}),jR=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(jR||{});function FW(e,t,n){let i;return e=e.map(function(r){if(r===qi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===qi.PropertyName.sections)return i=t[a+1],t[a+1]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(FW,"mapBreadcrumbs");var yE=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=FW(t,s,r)),s[0]===qi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,qi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,qi.VOCWITHSLASH):t[0]===qi.PropertyName.table&&(a=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,qi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,qi.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),u,p=l.indexOf(":::");return l.startsWith("DataField")&&p>-1?u=`${e}template:::TableColumn:::${l.substring(0,p)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(p+3)}`:u=`${e}${t.join("::")}-${l}`,LW(u)},"buildColumnControlId"),zi=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function RW(e){let t=qi.BindingPropertyRegexAsString;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(RW,"determinePattern");var vE=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($)[1]]:a,u=a.description?a.description:l.description,p=RW(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"),zn=o((e,t,n)=>{vE(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(UR);vE(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),oi=o((e,t,n)=>{let i=Object.values(jR);vE(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function zs(){}o(zs,"doNotDelete");var SJ=te(BR());var HR=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(HR,e),"syncRule");function Yn(e,t){let n;return e&&(n=Reflect.getMetadata(HR,e,t)),n}o(Yn,"getReflectMetadata");var kr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),GR=Symbol("childId"),kt=o(e=>Reflect.metadata(GR,e),"childId"),Kg=o((e,t)=>Reflect.getMetadata(GR,e,t),"getChildId"),Xg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),_W=Symbol("descriptionSrcURL"),Se=o(e=>Reflect.metadata(_W,e),"descriptionSrcURL");var DW=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(DW,e),"validity");function Qg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Qg,"getTextForDeprecated");var JR=te(zR()),ZR=te(le());var e0=JR.default.change,YR={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function t0(e,t){let n="";try{for(let i in YR)e[i]===void 0&&(e[i]=YR[i]);n=e0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(t0,"createChangeString");function $a(e){try{return e0.parse(e)}catch{return!1}}o($a,"parseChangeString");function n0(e,t,n,i,r){let a=n.layer?n.layer===ZR.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(n0,"fillFlexChangeContent");function Ee(e,t){return t0(e,t)}o(Ee,"exportToFlexChange");var Ys=te(le());function pl(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(pl,"importProperty");function qg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Ys.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(qg,"checkDeprecatedProperties");function TE(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return TE(n,t)}else return e.title?e.title.startsWith(Ys.FacetTitlePrefix)?e.title.split(Ys.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(TE,"getSectionTitle");function zg(e){let t=e.split(`${Ys.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(zg,"getTargetFromCustomColumnRef");function Ro(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Ro,"removeEmptyStructure");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var ca=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Yg,"replaceSpecialChars");var Js=o(function(e){return Yg(kR(e))},"prepareId");function $W(e){let t="";for(let n of e.$Apply)n.$Path&&(t&&(t+="::"),t+=n.$Path);return t}o($W,"evaluateConcat");function Zs(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 $W(e);if(e&&typeof e=="string")return Yg(e.replace(/ /g,"_"))}o(Zs,"getStableIdPartFromValue");var i0=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"),la=o(function(e){let t="";if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=i0(e),t;if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Js(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Zs(e.Value)+"::"),t+=e.Action,Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataField)return t="DataField::",t+=Zs(e.Value),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Zs(e.Value)+"::",t+=i0(e),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Zs(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Zs(e.Value),Js(t)},"getStableIdPartFromDataField");var de=te(le());var De=te(le());var Yi=require("@sap-ux/vocabularies-types/vocabularies/UI"),s0=require("path"),c0=te(Xs());var Jg="ResponsiveTableWithMultiSelect<LineItems>",Zg="ResponsiveTableWithInlineDelete<LineItems>",BW="TreeTable<LineItems>",HW="AnalyticalTable<LineItems>",GW="GridTable<LineItems>",EE=[Jg,Zg,BW,HW,GW],r0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],o0="template::",em="template:::ObjectPageAction:::";function WW(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${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(WW,"addCustomColumnDefinition");function KW(e,t){let n;return e==="TableColumnActionIntentBased"?n=fE(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Yi.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(KW,"getActionId");function bE(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=KW(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=bi(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ec(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(bE,"handleActionRecord");function XW(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Yi.UIAnnotationTypes.DataFieldForAction||t.$Type===Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Yi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(XW,"getColumnActionType");function QW(e,t){let n=[];if(!(e.$Type!==Yi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Yi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Yi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Yi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),XW(t,e,n),n}o(QW,"getActionType");function l0(e,t,n){let i=fE(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:bi(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,sm(r.properties[i],e.lineItemRecord),cm(e.lineItemRecord,r.properties,i)}}o(l0,"generateGenericColumn");function qW(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{bE(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&bE(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{bE(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":l0(i,t,r)}}o(qW,"handleAnyAction");function au(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(au,"retrieveNameWithoutVocabularyFromVisualization");function dl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=am(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},T=QW(g,r);T?T.forEach(A=>{qW(A,t,s,m,p,l,r)}):l0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(dl,"addLineItemsType");function zW(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(zW,"addListReportLeadingProperties");function YW(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 T=[];for(let A in a){let E=(m=a[A])==null?void 0:m.key;E!==void 0&&!T.includes(E)&&T.push(E)}fa(T,r)}}o(YW,"addTabkeyEnum");function tm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,c0.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("\\"+s0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),fa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(tm,"addFragmentEnum");function gl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){WW(e,a,s),zW(e,t,s),YW(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;tm(e,r,u,"fragmentName",s),tm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),tm(e,r,u,"cellsFragmentName",s),tm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(gl,"addTableColumnExtensions");function f0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(f0,"removeElementsFromEnum");function nm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=pr(n==null?void 0:n.fullyQualifiedName,Yi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=to(s);s.type==="PropertyPath"&&(l=kg(s,n)),i.properties[s.value]={$ref:$+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=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(nm,"addSelectionFields");function u0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(u0,"addEntityPropertiesToEnum");function im(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(im,"isDraftEnabled");function p0(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(p0,"isEntityDeletable");function d0(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(d0,"isEntityUpdatable");function ml(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($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(ml,"addStandardHeaderActions");function g0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(g0,"addStandardFooterActionsOP");function rm(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(rm,"getUIAnnotationForEntitySet");function om(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(om,"hasPropertyTypeError");function JW(e,t,n,i){if(e===de.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithNavigationPath:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===de.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(JW,"copyFieldProperties");function ZW(e,t,n,i){let r=e===de.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===de.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(ZW,"determineFieldDefinitionName");function e8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][de.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][de.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(e8,"addKeysTagForDataField");function t8(e,t,n){if(e.$Type===Ut.UIAnnotationTypes.DataField||e.$Type===Ut.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ut.UIAnnotationTypes.DataFieldWithNavigationPath)e8(e,t,n);else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][de.SchemaTag.keys]=[{name:"Target",value:ul(e.Target.value)}],t.definitions[n][de.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][de.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][de.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][de.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][de.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(t8,"addKeysTagToField");function n8(e){var t,n;return e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ut.UIAnnotationTypes.ConnectedFieldsType}o(n8,"isConnectedField");function i8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Ut.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let T=p[m];if(typeof T=="object"&&"$Type"in T){let A=u.findIndex(E=>E===m);A===-1&&(A=g,g++),AE(e,t,T,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(i8,"addConnectedFields");function m0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(m0,"getFieldsSchemaContainer");function AE(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var E;let g=la(n),m=s===de.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,T=ZW(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===Ut.UIAnnotationTypes.DataFieldForAction||n.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===de.SectionType.Section){let O=m0(t,`${e}${de.DefinitionName.Actions}<${i}>`,u.actions),R=O[m]={$ref:`${$}${T}`};R[de.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=m0(t,`${e}${de.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${$}${T}`,propertyIndex:parseInt(r)},n8(n)&&(A=i8(e,t,n,a,s))}t.definitions[T]={type:"object",properties:A,description:bi(n,a.entityType),additionalProperties:!1},t8(n,t,T),t.definitions[T][de.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[T][de.SchemaTag.annotationType]=n.$Type,t.definitions[T][de.SchemaTag.isViewNode]=!0,sm(t.definitions[T],n),JW(s,t,n,T),n.$Type===Ut.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[T].$ref=`${$}${de.DefinitionName.FormAction}`,delete t.definitions[T].properties)}}o(AE,"addField");function r8(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(r8,"determineTargetIdOfForm");function o8(e,t,n,i,r,a){if(e.base===de.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&AE(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];AE(t,n,l,i,s,e,r)}}o(o8,"addFieldsToFormDefinition");function a8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][de.SchemaTag.keys]=[{name:de.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][de.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][de.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][de.SchemaTag.annotationPath]=pr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(a8,"addTagsToFormDefinition");function lm(e,t,n,i,r,a){if(!t.target)return;let s=r8(t),l=dt(`${e}${de.DefinitionName.Form}<${s}>`),u=dt(`${e}${de.DefinitionName.Fields}<${s}>`),p=dt(`${e}${de.DefinitionName.Actions}<${s}>`),g=!(t.base===de.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===de.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][de.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},a8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][de.SchemaTag.isViewNode]=!0,o8(t,e,i,s,r,g),s}o(lm,"handleForm");function fm(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(fm,"replaceAlias");function um(e,t){let n=fm(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(um,"getActionNameAndId");function h0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===de.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:h0(a.pages,t)}}o(h0,"isFirstObjectPage");function pm(e,t,n,i,r){var g,m;e.definitions[de.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${de.DefinitionName.ObjectPageFooter}`},e.definitions[de.DefinitionName.ObjectPageFooter].properties[de.PropertyName.actions]={$ref:`${$}${de.DefinitionName.FooterActions}`};let a=e.definitions[de.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[de.SchemaTag.isViewNode]=!0;let s=ri(de.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(g=u==null?void 0:u.annotations)==null?void 0:g[s])==null?void 0:m.Identification);if(p){let T=p.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`);a[de.SchemaTag.annotationPath]=`/${T}`,i(u,e,a,p)}else u&&(a[de.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`);n===de.FioriElementsVersion.v2&&h0(r,t)&&!im(l)&&g0(e,a),delete e.definitions[de.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${de.DefinitionName.ObjectPageFooter}<${de.DefinitionName.ObjectPageFooterActions}>`]}o(pm,"addFooterActions");function dm(e,t,n,i,r,a=!1){var m,T;let s=de.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[de.DefinitionName.ObjectPageHeader].properties[de.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[de.SchemaTag.isViewNode]=!0;let p=ri(de.UIVOCABULARY,n.serviceAVT),g=p&&((T=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:T.Identification);g?u[de.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`):t&&(u[de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&ml(e,!0,l)}o(dm,"addHeaderActions");function gm(e,t){e.properties.header={$ref:`${$}${de.DefinitionName.ObjectPageHeader}`},e.definitions[de.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${de.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[de.DefinitionName.ObjectPageHeader][de.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.HeaderInfo}`)}o(gm,"addCommonHeaderSchema");function y0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(y0,"determineEntitySetOfEntityType");var dr=require("@sap-ux/vocabularies-types/vocabularies/UI");var tt=te(le());function fa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(fa,"addEnumToSchema");function su(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)}}fa(r,n)}o(su,"addEnumForValidAnnotations");function Ba(e,t,n){let i=t.definitions[n].properties[tt.SchemaTag.annotationPath],r=[dr.UIAnnotationTerms.SelectionVariant,dr.UIAnnotationTerms.SelectionPresentationVariant];su(e,r,i)}o(Ba,"addEnumForSingleTabVariant");function v0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[dr.UIAnnotationTerms.SelectionVariant,dr.UIAnnotationTerms.SelectionPresentationVariant];su(n.entityType,r,i)}o(v0,"addEnumForMultiTabVariant");function T0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),fa(r,i)}o(T0,"addEnumForVariantEntitySet");function E0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[dr.UIAnnotationTerms.FieldGroup];su(e,r,i)}o(E0,"addEnumFieldGroupAnnotationPath");function b0(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[tt.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:`${$}${tt.DefinitionName.RelatedFacetKeys}`},l]}}}}o(b0,"addDefinitionForRelatedFacetKeys");function hl(e){return e.replace("#","::")}o(hl,"getFacetKeyInSchema");function A0(e,t){return`${e}<${hl(t)}>`}o(A0,"getFacetDefinitionKey");function Et(e,t,n,i=!0,r){let a=t;if(i&&(a=A0(r||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}o(Et,"parseSchemaDefinition");function mm(e,t,n){let i;return t===tt.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${dr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,Et(n,t,e,!0)),i}o(mm,"getCustomExtensionDefinitionName");function am(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][tt.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=mm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?tt.DefinitionName.ObjectPageToolBar:tt.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=`${tt.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.Actions:tt.DefinitionName.ObjectPageToolBarActions,T;try{if(T=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),T.properties={},T.additionalProperties=!1,s){let O=mm(t,r,s);T.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,E;if(r===tt.DefinitionName.LineItems&&t.properties.footer){E=`${tt.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${E}`;try{t.definitions[E]=JSON.parse(JSON.stringify(t.definitions[tt.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:tt.DefinitionName.GenericFooter}))}let O=`${tt.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[E].properties.actions.$ref=$+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[tt.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=pr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][tt.SchemaTag.annotationPath]=l,A&&(t.definitions[E][tt.SchemaTag.annotationPath]=l))),{actions:T,footerActions:A,lineItemPath:l}}o(am,"addCommonLineItemDefinitions");function S0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(S0,"getDataTypeFromAnnotation");function tc(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=S0(e.$Type)),t}o(tc,"determineDataTypeOfTarget");function to(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=tc((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=S0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(to,"determineDataType");function sm(e,t){let n=to(t);n&&(e[tt.SchemaTag.dataType]=n)}o(sm,"addDataTypeToDefinition");function $n(e,t){return`${$}${A0(e,t)}`}o($n,"getFacetDefinitionLink");function Ha(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Ha,"addDefinitionRef");function hm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${tt.UIVOCABULARY}`);t=`/${n}/@${tt.UIVOCABULARY}${i}`}return t}o(hm,"getFacetAnnotationPath");function cu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:$n(a?u:l,t)};let p=Et(a?u:l,t,i,!0,a?u:void 0);Ua(e,p,t),p[tt.SchemaTag.annotationPath]=e.annotationPath,p[tt.SchemaTag.isViewNode]=!0}o(cu,"handleAddressContact");function SE(e,t,n){typeof e=="object"&&(e[t]=n)}o(SE,"updateSchemaProperty");function yl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${tt.DefinitionName.Fields4Dialog}${n}`];SE(r.properties.fields.items,"enum",i)}o(yl,"addFieldsType");function s8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(s8,"findFirstSchemaDefinitionKey");function ym(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=hn(t.$ref),m=(p=e.definitions)==null?void 0:p[g];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,a=m.keys))}let l=n,u=s8(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(ym,"getEnumEntry");function Ga(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=ym(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];SE(l,"oneOf",r)}else SE(a,"oneOf",r)}o(Ga,"addDescriptiveEnumDefinition");function ec(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(ec,"getActionKey");function cm(e,t,n){var i,r,a;try{if(e.Value)t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.value,value:Zs(e.Value)}];else if(e.$Type===dr.UIAnnotationTypes.DataFieldWithAction||e.$Type===dr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ec(e.Action,!0);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.action,value:s}],l&&(t[n][tt.SchemaTag.target]=l)}else if(e.$Type===dr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=ec(e.Target.value,!1);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.target,value:ul(s)}],t[n][tt.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===dr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===dr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=ec(s,!0);t[n][tt.SchemaTag.keys]=[{name:"SemanticObject",value:e[tt.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][tt.SchemaTag.target]=u)}}catch{return}}o(cm,"addKeyToDefinition");var vl=te(le());var P0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var C0="1.120.19";var I0={name:"@sap/ux-specification",version:C0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",iXiaSoftV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",iXiaSoftV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=iXiaSoft",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.28.3","@sap-ux/vocabularies-types":"0.11.1"},devDependencies:{"@sap-ux/annotation-converter":"0.9.2","@sap-ux/edmx-parser":"0.8.0","@sap/ux-specification-types":"1.120.19","@sapui5/types":"1.120.19","@types/d3":"7.4.3","@types/jquery":"3.5.30","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.7.7",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.14.0",jquery:"3.7.1",jsdom:"24.1.3","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.6.3","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var Wa=class Wa{constructor(){Wa.distTagsOfSpec.length===0&&(Wa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Wa.distTagsOfSpec=[]}getSpecVersion(){return C0}getDistTagsOfVersion(){let t=[],n=P0,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;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));Wa.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:vl.LogSeverity.Warning,message:a,location:{path:vl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:vl.LogSeverity.Info,message:i,location:{path:vl.MANIFESTPATH}}),!1}else return!0}};o(Wa,"DistTagEvaluator"),Wa.distTagsOfSpec=[];var lu=Wa;var fe=te(le());var Dn=te(le());var Ai=te(le());function f8(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}o(f8,"getCustomPageName");function O0(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)||Ai.ViewTypes.XML}o(O0,"getViewType");function u8(e,t){return O0(e,t).toLowerCase()}o(u8,"getViewTypeExtension");function p8(e,t,n){var p,g;let i=o(m=>{var T;return(T=m.split(`${t.id}.`)[1])==null?void 0:T.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=(g=e.view)==null?void 0:g.name;s!=null&&s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(p8,"getViewPath");function d8(e,t){let n=e.entitySet||f8(e),{viewPath:i,fileName:r}=p8(e,t,[n]),a=u8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(d8,"getCustomPagePath");var PE=class PE{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(Ai.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)===Ai.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Ai.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[Ai.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=O0(t,this.app)===Ai.ViewTypes.XML&&!!t.config;if(t.pageType===Ai.PageTypeV4.CustomPage||t.pageType===Ai.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(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=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=_t(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Ai.PageTypeV4.CustomPage||t.pageType===Ai.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=d8(t,this.app);n.$filePath=i}};o(PE,"AppProvider");var Ka=PE;var Ge=te(le());var nc=te(le());function vm(e,t,n){if(t.controlType.endsWith(nc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===nc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[nc.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",nc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}o(vm,"addFlexForTable");var Tl=te(le());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),N0=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"),L0=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 xE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(xE,"getNewPageTemplate");function g8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(g8,"findPageInManifest");function m8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=xE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:xE(e[t].pageType)}),!Array.isArray(n.pages))){let i=g8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=xE(e[t].pageType)),CE(t,e,i)}}o(m8,"transformPageFromAssociation");function h8(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)===Tl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Tl.PageTypeV2.ListReport||n.pageType===Tl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(h8,"deletePage");function CE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Tl.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)m8(t,r,n);Array.isArray(n.pages)||h8(n,t,i)}}o(CE,"transformPageToNewManifestV2");var m1=te(Xs());var mA={};Ws(mA,{ALPAnalyticalTable:()=>gb,ALPGridTable:()=>db,ALPResponsiveTable:()=>pb,Action:()=>vb,AnalyticalCard:()=>Pl,AnalyticalCardSettings:()=>Am,AnalyticalCardSettingsv4:()=>RE,AnalyticalListPageFilterBar:()=>$E,AnalyticalTable:()=>ub,BaseCustomSection:()=>$u,ChartSettings:()=>Mb,ChartSettingsType:()=>OE,CommonCardSettings:()=>Ya,CommonFilterBar:()=>bu,CommonHeaderFacetSettings:()=>uc,CommonTableSettings:()=>ts,CommonTableSettingsForSections:()=>hc,CreateWithFilters:()=>rb,CustomCard:()=>LE,DataLoadSettings:()=>ab,DateRange:()=>wE,DefaultDateRange:()=>kE,DefaultSpanObject:()=>NE,FRAGMENT_DEFINITION:()=>Do,Field:()=>ME,FieldForAction:()=>KE,Fields4Dialog:()=>sb,Fields4DialogOP:()=>lA,FooterAction:()=>Eb,FormAction:()=>WE,GlobalChartSettings:()=>sA,GlobalTableSettings:()=>dA,GridTable:()=>mb,HeaderActionStandard:()=>xb,HeaderSections:()=>Gb,KPISettings:()=>wb,LinkListCardSettings:()=>DE,LinklistCard:()=>vu,ListCard:()=>Sl,ListCardSettings:()=>FE,ListReportFilterBar:()=>BE,MultiEdit:()=>ob,ObjectPageAnalyticalTable:()=>fA,ObjectPageChart:()=>aA,ObjectPageCustomSectionFragment:()=>Bu,ObjectPageCustomSectionView:()=>Hu,ObjectPageFooterAction:()=>Kb,ObjectPageFooterActionStandard:()=>Ib,ObjectPageGridTable:()=>uA,ObjectPageHeader:()=>kb,ObjectPageHeaderAction:()=>Ub,ObjectPageHeaderActionStandard:()=>Cb,ObjectPageHeaderSectionAddress:()=>Hb,ObjectPageHeaderSectionChart:()=>$b,ObjectPageHeaderSectionDataPoint:()=>Bb,ObjectPageHeaderSectionForm:()=>jb,ObjectPageLayout:()=>Qb,ObjectPageResponsiveTable:()=>yc,ObjectPageSectionAddressV2:()=>Zb,ObjectPageSectionChartV2:()=>Yb,ObjectPageSectionContactV2:()=>eA,ObjectPageSectionFormV2:()=>zb,ObjectPageSectionTableV2:()=>Jb,ObjectPageSectionV2:()=>qb,ObjectPageSubSectionChartV2:()=>iA,ObjectPageSubSectionContactV2:()=>rA,ObjectPageSubSectionFormV2:()=>nA,ObjectPageSubSectionTableV2:()=>oA,ObjectPageSubSectionV2:()=>tA,ObjectPageToolBarAction:()=>gA,ObjectPageTreeTable:()=>pA,QuickVariantSelection:()=>cb,QuickVariantSelectionOP:()=>cA,QuickVariantSelectionX:()=>lb,ResponsiveTable:()=>ac,SAP_UI_TABLE:()=>Nm,SaveAndEditOP:()=>Pb,SelectionFieldDateSettings:()=>UE,SelectionFields:()=>jE,Share:()=>bb,ShareOP:()=>Ab,StackCard:()=>yu,StackCardSettings:()=>_E,TableALP:()=>Nl,TableCard:()=>xl,TableCardSettings:()=>VE,TableColumn:()=>Lb,TableColumnAction:()=>zm,TableColumnActionIntentBased:()=>Fb,TableCustomColumn:()=>Rb,ToolBar:()=>Db,ToolBarAction:()=>Tb,TreeTable:()=>fb,UpAndDownNavigationOP:()=>Sb,buildIntentBasedActionId:()=>Ob,deleteColumnFromFragment:()=>Rm,deleteType:()=>Fl,exportColorPalette:()=>D0,exportCreateParametersFields:()=>jm,exportCustomColumnsToFragment:()=>nb,exportDateSettingsField:()=>k0,exportDefaultSpan:()=>V0,exportType:()=>Ll,getChartSectionControlId:()=>f1,getContactSubSectionControlId:()=>p1,getCustomColumnPath:()=>_m,getFormSectionControlId:()=>l1,getRootCustomColumnFromFragmentJSON:()=>Pu,getSectionControlId:()=>gc,getSmartChartControlId:()=>_u,getSmartTableControlId:()=>oc,getSubSectionControlId:()=>u1,getTableSectionControlId:()=>c1,importCreateParameters:()=>Um,importDateSettings:()=>HE});var Jn=te(le());var je=o(e=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Ur=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),F0=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),R0=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var bn=o(()=>Jn.ManifestSection.ovp,"getOVPsettingPath"),Ie=o(e=>{let t=[Jn.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in Jn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ic=o((e,t)=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),bm=o(e=>{let t=[Jn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ri=o(e=>{let t=[];return t.push(bm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Qa=o(e=>Ri(e)+"/tableSettings","getGlobalTableSettingsPathV2"),io=o((e,t,n)=>{let i=[];i.push(bm(e));let r=n.replace(Jn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),gr=o((e,t,n)=>io(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),_0=o((e,t,n)=>io(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),IE=o(()=>`sap.ui5/extends/extensions/${Jn.v2.SAPUI5_VIEW_EXTENSION}/${Jn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ua=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${IE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Em=class Em{};o(Em,"ApplicationV2"),h([kt("settings")],Em.prototype,"settings",2);var Tm=Em,no=class no{};o(no,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"description",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],no.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],no.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],no.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),Se("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],no.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],no.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],no.prototype,"statePreservationMode",2);var Xa=no;var fu=te(le());function y8(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(y8,"importColorPalette");function D0(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(D0,"exportColorPalette");function V0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(V0,"exportDefaultSpan");var Sm=class Sm{};o(Sm,"ChartSettingsType"),h([y({manifest:{path:o(()=>bn()+"/chartSettings","path")}})],Sm.prototype,"showDataLabel",2);var OE=Sm,qa=class qa{};o(qa,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"cols",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"rows",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"minimumSubTitleRow",2);var NE=qa,Kt=class Kt{};o(Kt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"title",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"category",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ie(t),"path"),export:V0}})],Kt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"customParams",2);var Ya=Kt,El=class El{};o(El,"CustomCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],El.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],El.prototype,"template",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],El.prototype,"settings",2);var LE=El,za=class za extends Ya{};o(za,"ListCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"listType",2);var FE=za,uu=class uu{};o(uu,"ListCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],uu.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],uu.prototype,"template",2);var Sl=uu,ro=class ro extends Ya{};o(ro,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ie(t),"path"),import:y8,export:D0}})],ro.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"bEnableStableColors",2);var Am=ro,Pm=class Pm extends Am{};o(Pm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Pm.prototype,"measureAggregate",2);var RE=Pm,pu=class pu{};o(pu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],pu.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],pu.prototype,"template",2);var Pl=pu,bl=class bl extends Ya{};o(bl,"StackCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],bl.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],bl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],bl.prototype,"objectStreamCardsSettings",2);var _E=bl,du=class du{};o(du,"StackCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],du.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],du.prototype,"template",2);var yu=du,Al=class Al extends Ya{};o(Al,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Al.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Al.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Al.prototype,"staticContent",2);var DE=Al,gu=class gu{};o(gu,"LinklistCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],gu.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],gu.prototype,"template",2);var vu=gu,mu=class mu extends Ya{};o(mu,"TableCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],mu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],mu.prototype,"enableAddToInsights",2);var VE=mu,hu=class hu{};o(hu,"TableCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],hu.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],hu.prototype,"template",2);var xl=hu;var M0=te(le());var v8=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),xm=class xm{};o(xm,"Field"),h([y({flex:{controlId:v8,controlType:o(()=>M0.ControlType.GroupElement,"controlType"),createFlexChange:Ee},generate:mt})],xm.prototype,"visible",2);var ME=xm;var rc=te(le());function HE(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(HE,"importDateSettings");function T8(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(T8,"importDateSettingsField");function k0(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(k0,"exportDateSettingsField");var Cl=class Cl{};o(Cl,"DateRange"),h([y({manifest:{path:o(t=>je(t)+rc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Cl.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+rc.DATESETTINGSPATH,"path"),import:HE,export:Bg}}),x({since:"1.77.0"})],Cl.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+rc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Cl.prototype,"exclude",2);var wE=Cl,Cm={controlId:zt,controlType:o(()=>rc.ControlType.SmartFilterBar,"controlType"),createFlexChange:Ee},Tu={path:o((e,t,n)=>`${je(e)}${rc.DATESETTINGSPATH}/fields/${n}`,"path")},w0={...Tu,import:T8,export:k0},Im=class Im{};o(Im,"DefaultDateRange"),h([y({manifest:Tu}),x({since:"1.90.0"})],Im.prototype,"operation",2);var kE=Im,Ja=class Ja{};o(Ja,"SelectionFieldDateSettings"),h([y({manifest:w0}),x({since:"1.77.0"})],Ja.prototype,"selectedValues",2),h([y({manifest:Tu}),x({since:"1.77.0"})],Ja.prototype,"exclude",2),h([y({manifest:Tu}),x({since:"1.77.0"})],Ja.prototype,"customDateRangeImplementation",2),h([y({manifest:w0}),x({since:"1.77.0"})],Ja.prototype,"filter",2),h([y({manifest:Tu}),x({since:"1.90.0"})],Ja.prototype,"defaultValue",2);var UE=Ja,GE=class GE{};o(GE,"SelectionFields");var jE=GE,oo=class oo{};o(oo,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],oo.prototype,"smartVariantManagement",2),h([y({flex:Cm}),x({since:"1.40.0"})],oo.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],oo.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],oo.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:HE}}),x({since:"1.77.0"})],oo.prototype,"dateSettings",2),h([y({flex:Cm}),x({since:"1.28.0"})],oo.prototype,"showClearOnFB",2),h([y({flex:Cm}),x({since:"1.38.0"})],oo.prototype,"showFilterConfiguration",2),h([y({flex:Cm}),x({since:"1.28.0"})],oo.prototype,"showRestoreOnFB",2);var bu=oo,Eu=class Eu extends bu{};o(Eu,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],Eu.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Eu.prototype,"filterDefaultsFromSelectionVariant",2);var $E=Eu,Om=class Om extends bu{};o(Om,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),Se("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],Om.prototype,"annotationPath",2);var BE=Om;var XE=te(le());var E8=o((e,t,n,i,r)=>{if(i()===XE.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),_o={controlId:E8,controlType:o(()=>XE.ControlType.Button,"controlType"),createFlexChange:Ee},Za=class Za{};o(Za,"FormAction"),h([y({flex:_o,generate:mt})],Za.prototype,"visible",2),h([y({flex:_o})],Za.prototype,"tooltip",2),h([y({flex:_o})],Za.prototype,"icon",2),h([y({flex:_o})],Za.prototype,"activeIcon",2),h([y({flex:_o})],Za.prototype,"type",2);var WE=Za,es=class es{};o(es,"FieldForAction"),h([y({flex:_o,generate:mt})],es.prototype,"visible",2),h([y({flex:_o})],es.prototype,"tooltip",2),h([y({flex:_o})],es.prototype,"icon",2),h([y({flex:_o})],es.prototype,"activeIcon",2),h([y({flex:_o}),x({since:"1.73.0"})],es.prototype,"type",2);var KE=es;var bt=te(le()),ao=te(Xs());var YE=require("path"),k8=te(le()),Y0=te(z0()),J0=require("fs");var U8=(0,YE.join)(__dirname,"templates");var j8=o((e,t)=>{let n=(0,J0.readFileSync)(e,"utf8");return(0,Y0.render)(n,t)},"renderTemplate");var JE=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return j8((0,YE.join)(U8,t+".xml"),n)},"getSingleColumnContent"),ZE=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=JE(i,t);n=n+`
288
+ }`;var et=SO(function(){return St(C,Le+"return "+ee).apply(e,L)});if(et.source=ee,cT(et))throw et;return et}o(j4,"template");function $4(c){return Ot(c).toLowerCase()}o($4,"toLower");function B4(c){return Ot(c).toUpperCase()}o(B4,"toUpper");function H4(c,f,d){if(c=Ot(c),c&&(d||f===e))return RC(c);if(!c||!(f=lr(f)))return c;var v=zr(c),E=zr(f),C=_C(v,E),L=DC(v,E)+1;return Ma(v,C,L).join("")}o(H4,"trim");function G4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,MC(c)+1);if(!c||!(f=lr(f)))return c;var v=zr(c),E=DC(v,zr(f))+1;return Ma(v,0,E).join("")}o(G4,"trimEnd");function W4(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(cv,"");if(!c||!(f=lr(f)))return c;var v=zr(c),E=_C(v,zr(f));return Ma(v,E).join("")}o(W4,"trimStart");function K4(c,f){var d=_,v=ut;if(hn(f)){var E="separator"in f?f.separator:E;d="length"in f?Ze(f.length):d,v="omission"in f?lr(f.omission):v}c=Ot(c);var C=c.length;if(Gc(c)){var L=zr(c);C=L.length}if(d>=C)return c;var F=d-Wc(v);if(F<1)return v;var w=L?Ma(L,0,F).join(""):c.slice(0,F);if(E===e)return w+v;if(L&&(F+=w.length-F),lT(E)){if(c.slice(F).search(E)){var z,Y=w;for(E.global||(E=xv(E.source,Ot(eC.exec(E))+"g")),E.lastIndex=0;z=E.exec(Y);)var ee=z.index;w=w.slice(0,ee===e?F:ee)}}else if(c.indexOf(lr(E),F)!=F){var me=w.lastIndexOf(E);me>-1&&(w=w.slice(0,me))}return w+v}o(K4,"truncate");function X4(c){return c=Ot(c),c&&Ce.test(c)?c.replace(he,E2):c}o(X4,"unescape");var Q4=Yc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),pT=PI("toUpperCase");function AO(c,f,d){return c=Ot(c),f=d?e:f,f===e?m2(c)?P2(c):a2(c):c.match(f)||[]}o(AO,"words");var SO=it(function(c,f){try{return sr(c,e,f)}catch(d){return cT(d)?d:new We(d)}}),q4=Jo(function(c,f){return Lr(f,function(d){d=So(d),zo(c,d,aT(c[d],c))}),c});function z4(c){var f=c==null?0:c.length,d=Me();return c=f?fn(c,function(v){if(typeof v[1]!="function")throw new Fr(r);return[d(v[0]),v[1]]}):[],it(function(v){for(var E=-1;++E<f;){var C=c[E];if(sr(C[0],this,v))return sr(C[1],this,v)}})}o(z4,"cond");function Y4(c){return Ek(_r(c,p))}o(Y4,"conforms");function dT(c){return function(){return c}}o(dT,"constant");function J4(c,f){return c==null||c!==c?f:c}o(J4,"defaultTo");var Z4=CI(),eB=CI(!0);function Xi(c){return c}o(Xi,"identity");function gT(c){return nI(typeof c=="function"?c:_r(c,p))}o(gT,"iteratee");function tB(c){return rI(_r(c,p))}o(tB,"matches");function nB(c,f){return oI(c,_r(f,p))}o(nB,"matchesProperty");var iB=it(function(c,f){return function(d){return Bf(d,c,f)}}),rB=it(function(c,f){return function(d){return Bf(c,d,f)}});function mT(c,f,d){var v=Qn(f),E=jd(f,v);d==null&&!(hn(f)&&(E.length||!v.length))&&(d=f,f=c,c=this,E=jd(f,Qn(f)));var C=!(hn(d)&&"chain"in d)||!!d.chain,L=ea(c);return Lr(E,function(F){var w=f[F];c[F]=w,L&&(c.prototype[F]=function(){var z=this.__chain__;if(C||z){var Y=c(this.__wrapped__),ee=Y.__actions__=Gi(this.__actions__);return ee.push({func:w,args:arguments,thisArg:c}),Y.__chain__=z,Y}return w.apply(c,Na([this.value()],arguments))})}),c}o(mT,"mixin");function oB(){return Xn._===this&&(Xn._=L2),this}o(oB,"noConflict");function hT(){}o(hT,"noop");function aB(c){return c=Ze(c),it(function(f){return aI(f,c)})}o(aB,"nthArg");var sB=Xv(fn),cB=Xv(IC),lB=Xv(vv);function PO(c){return eT(c)?Tv(So(c)):kk(c)}o(PO,"property");function fB(c){return function(f){return c==null?e:$s(c,f)}}o(fB,"propertyOf");var uB=OI(),pB=OI(!0);function yT(){return[]}o(yT,"stubArray");function vT(){return!1}o(vT,"stubFalse");function dB(){return{}}o(dB,"stubObject");function gB(){return""}o(gB,"stubString");function mB(){return!0}o(mB,"stubTrue");function hB(c,f){if(c=Ze(c),c<1||c>Re)return[];var d=Mt,v=vi(c,Mt);f=Me(f),c-=Mt;for(var E=Av(v,f);++d<c;)f(d);return E}o(hB,"times");function yB(c){return Qe(c)?fn(c,So):fr(c)?[c]:Gi(GI(Ot(c)))}o(yB,"toPath");function vB(c){var f=++O2;return Ot(c)+f}o(vB,"uniqueId");var TB=Kd(function(c,f){return c+f},0),bB=Qv("ceil"),EB=Kd(function(c,f){return c/f},1),AB=Qv("floor");function SB(c){return c&&c.length?Ud(c,Xi,_v):e}o(SB,"max");function PB(c,f){return c&&c.length?Ud(c,Me(f,2),_v):e}o(PB,"maxBy");function xB(c){return LC(c,Xi)}o(xB,"mean");function CB(c,f){return LC(c,Me(f,2))}o(CB,"meanBy");function IB(c){return c&&c.length?Ud(c,Xi,wv):e}o(IB,"min");function OB(c,f){return c&&c.length?Ud(c,Me(f,2),wv):e}o(OB,"minBy");var NB=Kd(function(c,f){return c*f},1),LB=Qv("round"),FB=Kd(function(c,f){return c-f},0);function RB(c){return c&&c.length?Ev(c,Xi):0}o(RB,"sum");function _B(c,f){return c&&c.length?Ev(c,Me(f,2)):0}return o(_B,"sumBy"),P.after=e$,P.ary=tO,P.assign=$$,P.assignIn=mO,P.assignInWith=og,P.assignWith=B$,P.at=H$,P.before=nO,P.bind=aT,P.bindAll=q4,P.bindKey=iO,P.castArray=p$,P.chain=JI,P.chunk=EU,P.compact=AU,P.concat=SU,P.cond=z4,P.conforms=Y4,P.constant=dT,P.countBy=Fj,P.create=G$,P.curry=rO,P.curryRight=oO,P.debounce=aO,P.defaults=W$,P.defaultsDeep=K$,P.defer=t$,P.delay=n$,P.difference=PU,P.differenceBy=xU,P.differenceWith=CU,P.drop=IU,P.dropRight=OU,P.dropRightWhile=NU,P.dropWhile=LU,P.fill=FU,P.filter=_j,P.flatMap=Mj,P.flatMapDeep=wj,P.flatMapDepth=kj,P.flatten=QI,P.flattenDeep=RU,P.flattenDepth=_U,P.flip=i$,P.flow=Z4,P.flowRight=eB,P.fromPairs=DU,P.functions=Z$,P.functionsIn=e4,P.groupBy=Uj,P.initial=MU,P.intersection=wU,P.intersectionBy=kU,P.intersectionWith=UU,P.invert=n4,P.invertBy=i4,P.invokeMap=$j,P.iteratee=gT,P.keyBy=Bj,P.keys=Qn,P.keysIn=Ki,P.map=Zd,P.mapKeys=o4,P.mapValues=a4,P.matches=tB,P.matchesProperty=nB,P.memoize=tg,P.merge=s4,P.mergeWith=hO,P.method=iB,P.methodOf=rB,P.mixin=mT,P.negate=ng,P.nthArg=aB,P.omit=c4,P.omitBy=l4,P.once=r$,P.orderBy=Hj,P.over=sB,P.overArgs=o$,P.overEvery=cB,P.overSome=lB,P.partial=sT,P.partialRight=sO,P.partition=Gj,P.pick=f4,P.pickBy=yO,P.property=PO,P.propertyOf=fB,P.pull=HU,P.pullAll=zI,P.pullAllBy=GU,P.pullAllWith=WU,P.pullAt=KU,P.range=uB,P.rangeRight=pB,P.rearg=a$,P.reject=Xj,P.remove=XU,P.rest=s$,P.reverse=rT,P.sampleSize=qj,P.set=p4,P.setWith=d4,P.shuffle=zj,P.slice=QU,P.sortBy=Zj,P.sortedUniq=tj,P.sortedUniqBy=nj,P.split=w4,P.spread=c$,P.tail=ij,P.take=rj,P.takeRight=oj,P.takeRightWhile=aj,P.takeWhile=sj,P.tap=Aj,P.throttle=l$,P.thru=Jd,P.toArray=pO,P.toPairs=vO,P.toPairsIn=TO,P.toPath=yB,P.toPlainObject=gO,P.transform=g4,P.unary=f$,P.union=cj,P.unionBy=lj,P.unionWith=fj,P.uniq=uj,P.uniqBy=pj,P.uniqWith=dj,P.unset=m4,P.unzip=oT,P.unzipWith=YI,P.update=h4,P.updateWith=y4,P.values=el,P.valuesIn=T4,P.without=gj,P.words=AO,P.wrap=u$,P.xor=mj,P.xorBy=hj,P.xorWith=yj,P.zip=vj,P.zipObject=Tj,P.zipObjectDeep=bj,P.zipWith=Ej,P.entries=vO,P.entriesIn=TO,P.extend=mO,P.extendWith=og,mT(P,P),P.add=TB,P.attempt=SO,P.camelCase=S4,P.capitalize=bO,P.ceil=bB,P.clamp=b4,P.clone=d$,P.cloneDeep=m$,P.cloneDeepWith=h$,P.cloneWith=g$,P.conformsTo=y$,P.deburr=EO,P.defaultTo=J4,P.divide=EB,P.endsWith=P4,P.eq=Jr,P.escape=x4,P.escapeRegExp=C4,P.every=Rj,P.find=Dj,P.findIndex=KI,P.findKey=X$,P.findLast=Vj,P.findLastIndex=XI,P.findLastKey=Q$,P.floor=AB,P.forEach=ZI,P.forEachRight=eO,P.forIn=q$,P.forInRight=z$,P.forOwn=Y$,P.forOwnRight=J$,P.get=fT,P.gt=v$,P.gte=T$,P.has=t4,P.hasIn=uT,P.head=qI,P.identity=Xi,P.includes=jj,P.indexOf=VU,P.inRange=E4,P.invoke=r4,P.isArguments=Gs,P.isArray=Qe,P.isArrayBuffer=b$,P.isArrayLike=Wi,P.isArrayLikeObject=Cn,P.isBoolean=E$,P.isBuffer=wa,P.isDate=A$,P.isElement=S$,P.isEmpty=P$,P.isEqual=x$,P.isEqualWith=C$,P.isError=cT,P.isFinite=I$,P.isFunction=ea,P.isInteger=cO,P.isLength=ig,P.isMap=lO,P.isMatch=O$,P.isMatchWith=N$,P.isNaN=L$,P.isNative=F$,P.isNil=_$,P.isNull=R$,P.isNumber=fO,P.isObject=hn,P.isObjectLike=vn,P.isPlainObject=Qf,P.isRegExp=lT,P.isSafeInteger=D$,P.isSet=uO,P.isString=rg,P.isSymbol=fr,P.isTypedArray=Zc,P.isUndefined=V$,P.isWeakMap=M$,P.isWeakSet=w$,P.join=jU,P.kebabCase=I4,P.last=Vr,P.lastIndexOf=$U,P.lowerCase=O4,P.lowerFirst=N4,P.lt=k$,P.lte=U$,P.max=SB,P.maxBy=PB,P.mean=xB,P.meanBy=CB,P.min=IB,P.minBy=OB,P.stubArray=yT,P.stubFalse=vT,P.stubObject=dB,P.stubString=gB,P.stubTrue=mB,P.multiply=NB,P.nth=BU,P.noConflict=oB,P.noop=hT,P.now=eg,P.pad=L4,P.padEnd=F4,P.padStart=R4,P.parseInt=_4,P.random=A4,P.reduce=Wj,P.reduceRight=Kj,P.repeat=D4,P.replace=V4,P.result=u4,P.round=LB,P.runInContext=V,P.sample=Qj,P.size=Yj,P.snakeCase=M4,P.some=Jj,P.sortedIndex=qU,P.sortedIndexBy=zU,P.sortedIndexOf=YU,P.sortedLastIndex=JU,P.sortedLastIndexBy=ZU,P.sortedLastIndexOf=ej,P.startCase=k4,P.startsWith=U4,P.subtract=FB,P.sum=RB,P.sumBy=_B,P.template=j4,P.times=hB,P.toFinite=ta,P.toInteger=Ze,P.toLength=dO,P.toLower=$4,P.toNumber=Mr,P.toSafeInteger=j$,P.toString=Ot,P.toUpper=B4,P.trim=H4,P.trimEnd=G4,P.trimStart=W4,P.truncate=K4,P.unescape=X4,P.uniqueId=vB,P.upperCase=Q4,P.upperFirst=pT,P.each=ZI,P.eachRight=eO,P.first=qI,mT(P,function(){var c={};return Eo(P,function(f,d){Rt.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Lr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Lr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:jn(Ze(d),0);var v=this.__filtered__&&!f?new pt(this):this.clone();return v.__filtered__?v.__takeCount__=vi(d,v.__takeCount__):v.__views__.push({size:vi(d,Mt),type:c+(v.__dir__<0?"Right":"")}),v},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Lr(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==on||d==an;pt.prototype[c]=function(E){var C=this.clone();return C.__iteratees__.push({iteratee:Me(E,3),type:d}),C.__filtered__=C.__filtered__||v,C}}),Lr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Lr(["initial","tail"],function(c,f){var d="drop"+(f?"":"Right");pt.prototype[c]=function(){return this.__filtered__?new pt(this):this[d](1)}}),pt.prototype.compact=function(){return this.filter(Xi)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=it(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return Bf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ng(Me(c)))},pt.prototype.slice=function(c,f){c=Ze(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Ze(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(Mt)},Eo(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),v=/^(?:head|last)$/.test(f),E=P[v?"take"+(f=="last"?"Right":""):f],C=v||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,F=v?[1]:arguments,w=L instanceof pt,z=F[0],Y=w||Qe(L),ee=o(function(ct){var gt=E.apply(P,Na([ct],F));return v&&me?gt[0]:gt},"interceptor");Y&&d&&typeof z=="function"&&z.length!=1&&(w=Y=!1);var me=this.__chain__,Le=!!this.__actions__.length,ke=C&&!me,et=w&&!Le;if(!C&&Y){L=et?L:new pt(this);var Ue=c.apply(L,F);return Ue.__actions__.push({func:Jd,args:[ee],thisArg:e}),new Rr(Ue,me)}return ke&&et?c.apply(this,F):(Ue=this.thru(ee),ke?v?Ue.value()[0]:Ue.value():Ue)})}),Lr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Pd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",v=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(v&&!this.__chain__){var C=this.value();return f.apply(Qe(C)?C:[],E)}return this[d](function(L){return f.apply(Qe(L)?L:[],E)})}}),Eo(pt.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Rt.call(Qc,v)||(Qc[v]=[]),Qc[v].push({name:f,func:d})}}),Qc[Wd(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=K2,pt.prototype.reverse=X2,pt.prototype.value=Q2,P.prototype.at=Sj,P.prototype.chain=Pj,P.prototype.commit=xj,P.prototype.next=Cj,P.prototype.plant=Oj,P.prototype.reverse=Nj,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=Lj,P.prototype.first=P.prototype.head,Vf&&(P.prototype[Vf]=Ij),P},"runInContext"),Fa=x2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Fa,define(function(){return Fa})):Ms?((Ms.exports=Fa)._=Fa,gv._=Fa):Xn._=Fa}).call(Zl)});var oV=Ye((Ice,rV)=>{var{findIndex:e6}=xp();function t6(e,t){let i=e6(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(t6,"findNextTextualToken");rV.exports={findNextTextualToken:t6}});var cV=Ye((Nce,sV)=>{var aV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function n6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(aV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(n6,"isXMLNamespaceKey");function i6(e){if(typeof e!="string")return;let t=e.match(aV);if(t!==null)return t.groups&&t.groups.prefix||""}o(i6,"getXMLNamespaceKeyPrefix");sV.exports={isXMLNamespaceKey:n6,getXMLNamespaceKeyPrefix:i6}});var fV=Ye((Fce,lV)=>{var{findNextTextualToken:r6}=oV(),{isXMLNamespaceKey:o6,getXMLNamespaceKeyPrefix:a6}=cV();lV.exports={findNextTextualToken:r6,isXMLNamespaceKey:o6,getXMLNamespaceKeyPrefix:a6}});var yS=Ye((Rce,pV)=>{var{reduce:s6,has:uV,isArray:c6}=xp();function l6(e){return s6(e,(n,i,r)=>(r==="parent"||(uV(i,"type")?n.push(i):c6(i)&&i.length>0&&uV(i[0],"type")&&(n=n.concat(i))),n),[])}o(l6,"getAstChildrenReflective");pV.exports={getAstChildrenReflective:l6}});var vS=Ye((Dce,dV)=>{dV.exports={DEFAULT_NS:"::DEFAULT"}});var EV=Ye((Vce,bV)=>{var{BaseXmlCstVisitor:f6}=hS(),{last:u6,forEach:yV,reduce:p6,map:Cp,pick:bS,sortBy:d6,isEmpty:g6,isArray:vV,assign:m6}=xp(),{findNextTextualToken:h6,isXMLNamespaceKey:y6,getXMLNamespaceKeyPrefix:v6}=fV(),{getAstChildrenReflective:T6}=yS(),{DEFAULT_NS:b6}=vS();function E6(e,t){gV.setState({tokenVector:t});let n=gV.visit(e);return n.rootElement!==Rc&&TV(n.rootElement),n}o(E6,"buildAst");var ES=class ES extends f6{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:Rc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&g6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Sy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Cp(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Sy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Cp(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Cp(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Rc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Cp(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 P6(i,t),x6(i,t),C6(i,t,this.tokenVector),Sy(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Rc,value:Rc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Py(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=A6(a.image),r.syntax.value=Py(a)}return Sy(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Rc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=d6(r,["startOffset"]),s=Cp(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(ES,"CstToAstVisitor");var TS=ES,gV=new TS;function Sy(e){let t=T6(e);yV(t,n=>n.parent=e)}o(Sy,"setChildrenParent");function TV(e,t=[]){let n=p6(e.attributes,(r,a)=>{if(a.key!==Rc&&y6({key:a.key,includeEmptyPrefix:!1})===!0){let s=v6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[b6]=l}}return r},{}),i=Object.create(null);e.namespaces=m6(i,t,n),yV(e.subElements,r=>TV(r,e.namespaces))}o(TV,"updateNamespaces");function Py(e){return bS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Py,"toXMLToken");function mV(e){return bS(e,["startOffset","startLine","startColumn"])}o(mV,"startOfXMLToken");function hV(e){return bS(e,["endOffset","endLine","endColumn"])}o(hV,"endOfXMLToken");function Sa(e){return vV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Sa,"exists");function A6(e){return e.substring(1,e.length-1)}o(A6,"stripQuotes");function S6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(S6,"nsToParts");var Rc=null;function P6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Py(n);let i=S6(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=Py(t.END_NAME[0]))}o(P6,"handleElementOpenCloseNameRanges");function x6(e,t){if(Sa(t.OPEN)){let n;Sa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Sa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...mV(t.OPEN[0]),...hV(n)}),Sa(t.SLASH_OPEN)&&Sa(t.END)&&(e.syntax.closeBody={...mV(t.SLASH_OPEN[0]),...hV(t.END[0])})}}o(x6,"handleElementOpenCloseBodyRanges");function C6(e,t,n){if(Sa(t.Name)){let i=t.Name[0].endOffset+2;if(Sa(t.START_CLOSE)||Sa(t.SLASH_CLOSE)){let r=(Sa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=vV(t.attribute)?u6(t.attribute).location.endOffset:t.Name[0].endOffset,s=h6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(C6,"handleElementAttributeRanges");bV.exports={buildAst:E6}});var PV=Ye((wce,SV)=>{var{forEach:I6,isFunction:ef}=xp(),{getAstChildrenReflective:O6}=yS();function AV(e,t){switch(e.type){case"XMLDocument":{ef(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{ef(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{ef(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{ef(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{ef(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{ef(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=O6(e);I6(n,i=>{AV(i,t)})}o(AV,"accept");SV.exports={accept:AV}});var CV=Ye((Uce,xV)=>{var{buildAst:N6}=EV(),{accept:L6}=PV(),{DEFAULT_NS:F6}=vS();xV.exports={buildAst:N6,accept:L6,DEFAULT_NS:F6}});var Vi={};Ws(Vi,{deleteConfigEntityByPath:()=>qz,exportConfig:()=>Xz,exportConfigEntityByPath:()=>Qz,generateCustomExtension:()=>Xx,generateSchema:()=>Kz,getApiVersion:()=>Zz,getChanges:()=>cw,getGenericSchema:()=>rv,getPathToGenericSchema:()=>bM,getProject:()=>rY,importConfig:()=>zz,importProject:()=>Yz,importProjectSchema:()=>Jz,isDirectory:()=>tY,log:()=>se,prompts:()=>Wz,readDirectory:()=>Zx});module.exports=sg(Vi);var de=te(le());var Vg=te(le()),K=te(le());var g5={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Yf=class Yf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||g5,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Yf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Yf(this.logger,t)}};o(Yf,"Logger");var IT=Yf,Po=new IT,DT=class DT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(DT,"EventEmitter");var rl=DT,qf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),oF=o(e=>e==null?"":""+e,"makeString"),m5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),h5=/###/g,aF=o(e=>e&&e.indexOf("###")>-1?e.replace(h5,"."):e,"cleanKey"),sF=o(e=>!e||typeof e=="string","canNotTraverseDeeper"),zf=o((e,t,n)=>{let i=typeof t!="string"?t:t.split("."),r=0;for(;r<i.length-1;){if(sF(e))return{};let a=aF(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return sF(e)?{}:{obj:e,k:aF(i[r])}},"getLastOfPath"),cF=o((e,t,n)=>{let{obj:i,k:r}=zf(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=zf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=zf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),y5=o((e,t,n,i)=>{let{obj:r,k:a}=zf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),lg=o((e,t)=>{let{obj:n,k:i}=zf(e,t);if(n)return n[i]},"getPath"),v5=o((e,t,n)=>{let i=lg(e,n);return i!==void 0?i:lg(t,n)},"getPathWithDefaults"),gF=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):gF(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),nl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),T5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},b5=o(e=>typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>T5[t]):e,"escape"),VT=class VT{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(VT,"RegExpCache");var OT=VT,E5=[" ",",","?","!",";"],A5=new OT(20),S5=o((e,t,n)=>{t=t||"",n=n||"";let i=E5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=A5.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"),NT=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),fg=o(e=>e&&e.indexOf("_")>0?e.replace("_","-"):e,"getCleanedCode"),MT=class MT extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):typeof i=="string"&&a?l.push(...i.split(a)):l.push(i)));let u=lg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||typeof i!="string"?u:NT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),cF(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(typeof i[a]=="string"||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=lg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?gF(u,i,a):u={...u,...i},cF(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(MT,"ResourceStore");var ug=MT,mF={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},lF={},mg=class mg extends rl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),m5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Po.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!S5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces: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 typeof a=="string"&&(a=[a]),{key:t,namespaces:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),T=m&&m.res,A=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,O=Object.prototype.toString.apply(T),R=["[object Number]","[object Function]","[object RegExp]"],U=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,W=!this.i18nFormat||this.i18nFormat.handleAsObject;if(W&&T&&(typeof T!="string"&&typeof T!="boolean"&&typeof T!="number")&&R.indexOf(O)<0&&!(typeof U=="string"&&Array.isArray(T))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,T,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(T),Z=ae?[]:{},re=ae?b:A;for(let xe in T)if(Object.prototype.hasOwnProperty.call(T,xe)){let _=`${re}${a}${xe}`;Z[xe]=this.translate(_,{...n,joinArrays:!1,ns:l}),Z[xe]===_&&(Z[xe]=T[xe])}T=Z}}else if(W&&typeof U=="string"&&Array.isArray(T))T=T.join(U),T&&(T=this.extendTranslation(T,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&typeof n.count!="string",xe=mg.hasDefaultValue(n),_=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),$e=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${_}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(T)&&xe&&(ae=!0,T=$e),this.isValidLookup(T)||(Z=!0,T=s);let Wn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:T,an=xe&&$e!==T&&this.options.updateMissing;if(Z||ae||an){if(this.logger.log(an?"updateKey":"missingKey",p,u,s,an?$e:T),a){let It=this.resolve(s,{...n,keySeparator:!1});It&&It.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let Lt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let It=0;It<Re.length;It++)Lt.push(Re[It]);else this.options.saveMissingTo==="all"?Lt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Lt.push(n.lng||this.language);let Oi=o((It,Mt,sn)=>{let Bi=xe&&sn!==T?sn:Wn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,Bi,an,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,Bi,an,n),this.emit("missingKey",It,u,Mt,T)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Lt.forEach(It=>{let Mt=this.pluralResolver.getSuffixes(It,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&Mt.indexOf(`${this.options.pluralSeparator}zero`)<0&&Mt.push(`${this.options.pluralSeparator}zero`),Mt.forEach(sn=>{Oi([It],s+sn,n[`defaultValue${sn}`]||$e)})}):Oi(Lt,s,$e))}T=this.extendTranslation(T,t,n,m,i),Z&&T===s&&this.options.appendNamespaceToMissingKey&&(T=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?T=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?T:void 0):T=this.options.parseMissingKeyHandler(T))}return r?(m.res=T,m.usedParams=this.getUsedParamsDetails(n),m):T}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=typeof t=="string"&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let T=t.match(this.interpolator.nestingRegexp);g=T&&T.length}let m=i.replace&&typeof i.replace!="string"?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let T=t.match(this.interpolator.nestingRegexp),A=T&&T.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var T=arguments.length,A=new Array(T),b=0;b<T;b++)A[b]=arguments[b];return a&&a[0]===A[0]&&!i.context?(s.logger.warn(`It seems you are nesting recursively key: ${A[0]} in key: ${n[0]}`),null):s.translate(...A,n)},i)),i.interpolation&&this.interpolator.reset()}let l=i.postProcess||this.options.postProcess,u=typeof l=="string"?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=mF.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return typeof t=="string"&&(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 T=n.count!==void 0&&typeof n.count!="string",A=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(R=>{this.isValidLookup(i)||(l=R,!lF[`${O[0]}-${R}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(lF[`${O[0]}-${R}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(U=>{if(this.isValidLookup(i))return;s=U;let W=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(W,g,U,R,n);else{let ae;T&&(ae=this.pluralResolver.getSuffix(U,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(W.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&W.push(g+ae.replace(re,this.options.pluralSeparator)),A&&W.push(g+Z)),b){let xe=`${g}${this.options.contextSeparator}${n.context}`;W.push(xe),T&&(W.push(xe+ae),n.ordinal&&ae.indexOf(re)===0&&W.push(xe+ae.replace(re,this.options.pluralSeparator)),A&&W.push(xe+Z))}}let j;for(;j=W.pop();)this.isValidLookup(i)||(a=j,i=this.getResource(U,R,j,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&typeof t.replace!="string",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(mg,"Translator");var pg=mg,xT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),wT=class wT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Po.create("languageUtils")}getScriptPartFromCode(t){if(t=fg(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=fg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=xT(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=xT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=xT(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return typeof t=="string"&&(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))):typeof t=="string"&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(wT,"LanguageUtil");var dg=wT,P5=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],x5={1:e=>+(e>1),2:e=>+(e!=1),3:e=>0,4:e=>e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,5:e=>e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5,6:e=>e==1?0:e>=2&&e<=4?1:2,7:e=>e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2,8:e=>e==1?0:e==2?1:e!=8&&e!=11?2:3,9:e=>+(e>=2),10:e=>e==1?0:e==2?1:e<7?2:e<11?3:4,11:e=>e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3,12:e=>+(e%10!=1||e%100==11),13:e=>+(e!==0),14:e=>e==1?0:e==2?1:e==3?2:3,15:e=>e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2,16:e=>e%10==1&&e%100!=11?0:e!==0?1:2,17:e=>e==1||e%10==1&&e%100!=11?0:1,18:e=>e==0?0:e==1?1:2,19:e=>e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3,20:e=>e==1?0:e==0||e%100>0&&e%100<20?1:2,21:e=>e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0,22:e=>e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3},C5=["v1","v2","v3"],I5=["v4"],fF={zero:0,one:1,two:2,few:3,many:4,other:5},O5=o(()=>{let e={};return P5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:x5[t.fc]}})}),e},"createRules"),kT=class kT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Po.create("pluralResolver"),(!this.options.compatibilityJSON||I5.includes(this.options.compatibilityJSON))&&(typeof Intl>"u"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=O5(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{let i=fg(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=new Intl.PluralRules(i,{type:r});return this.pluralRulesCache[a]=s,s}catch{return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>fF[r]-fF[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!C5.includes(this.options.compatibilityJSON)}};o(kT,"PluralResolver");var LT=kT,uF=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=v5(e,t,n);return!a&&r&&typeof n=="string"&&(a=NT(e,n,i),a===void 0&&(a=NT(t,n,i))),a},"deepFindWithDefaults"),CT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),UT=class UT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Po.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:T,nestingPrefixEscaped:A,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:R,maxReplaces:U,alwaysFormat:W}=t.interpolation;this.escape=n!==void 0?n:b5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?nl(a):s||"{{",this.suffix=l?nl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=T?nl(T):A||nl("$t("),this.nestingSuffix=b?nl(b):O||nl(")"),this.nestingOptionsSeparator=R||",",this.maxReplaces=U||1e3,this.alwaysFormat=W!==void 0?W:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let U=uF(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(U,void 0,i,{...r,...n,interpolationkey:A}):U}let b=A.split(this.formatSeparator),O=b.shift().trim(),R=b.join(this.formatSeparator).trim();return this.format(uF(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),R,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>CT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?CT(this.escape(A)):CT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let R=g(t,a,r);s=typeof R=="string"?R:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else typeof s!="string"&&!this.useRawValueToEscape&&(s=oF(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),T=`{${m[1]}`;u=m[0],T=this.interpolate(T,s);let A=T.match(/'/g),b=T.match(/"/g);(A&&A.length%2===0&&!b||b.length%2!==0)&&(T=T.replace(/'/g,'"'));try{s=JSON.parse(T),p&&(s={...p,...s})}catch(O){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,O),`${u}${g}${T}`}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&&typeof s.replace!="string"?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&typeof a!="string")return a;typeof a!="string"&&(a=oF(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(UT,"Interpolator");var FT=UT,N5=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"),il=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(fg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),jT=class jT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Po.create("formatter"),this.options=t,this.formats={number:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:il((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:il((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:il((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:il((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let i=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=il(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=N5(u);if(this.formats[p]){let m=l;try{let T=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=T.locale||T.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...T})}catch(T){this.logger.warn(T)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(jT,"Formatter");var RT=jT,L5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),$T=class $T extends rl{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=Po.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let T=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[T]=2:this.state[T]<0||(this.state[T]===1?s[T]===void 0&&(s[T]=!0):(this.state[T]=1,g=!1,s[T]===void 0&&(s[T]=!0),a[T]===void 0&&(a[T]=!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=>{y5(u.loaded,[a],s),L5(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o($T,"Connector");var _T=$T,pF=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),dF=o(e=>(typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),cg=o(()=>{},"noop"),F5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),Jf=class Jf extends rl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=dF(t),this.services={},this.logger=Po,this.modules={external:[]},F5(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=pF();this.options={...r,...this.options,...dF(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?Po.init(a(this.modules.logger),this.options):Po.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=RT);let m=new dg(this.options);this.store=new ug(this.options.resources,this.options);let T=this.services;T.logger=Po,T.resourceStore=this.store,T.languageUtils=m,T.pluralResolver=new LT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(T.formatter=a(g),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new FT(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new _T(a(this.modules.backend),T.resourceStore,T,this.options),T.backendConnector.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),R=1;R<b;R++)O[R-1]=arguments[R];t.emit(A,...O)}),this.modules.languageDetector&&(T.languageDetector=a(this.modules.languageDetector),T.languageDetector.init&&T.languageDetector.init(T,this.options.detection,this.options)),this.modules.i18nFormat&&(T.i18nFormat=a(this.modules.i18nFormat),T.i18nFormat.init&&T.i18nFormat.init(this)),this.translator=new pg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),R=1;R<b;R++)O[R-1]=arguments[R];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=cg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=qf(),p=o(()=>{let g=o((m,T)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(T),i(m,T)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cg,r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=qf();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=cg),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"&&mF.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=qf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=typeof u=="string"?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let T=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(b=>`${u.keyPrefix}${T}${b}`):A=u.keyPrefix?`${u.keyPrefix}${T}${s}`:s,r.t(A,u)},"fixedT");return typeof t=="string"?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=qf();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=qf();typeof t=="string"&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new dg(pF());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new Jf(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:cg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new Jf(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new ug(this.store.data,r),a.services.resourceStore=a.store),a.translator=new pg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(Jf,"I18n");var gg=Jf,q=gg.createInstance();q.createInstance=gg.createInstance;var mY=q.createInstance,hY=q.dir,yY=q.init,vY=q.loadResources,TY=q.reloadResources,bY=q.use,EY=q.changeLanguage,AY=q.getFixedT,SY=q.t,PY=q.exists,xY=q.setDefaultNamespace,CY=q.hasLoadedNamespace,IY=q.loadNamespaces,OY=q.loadLanguages;var LR=te(BT()),FR=te(BF()),wg=te(OR()),Ke=require("@sap-ux/vocabularies-types/vocabularies/UI"),iu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Dg=te(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Dg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Dg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Dg.LogSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",fW=[K.v4.FE_TEMPLATE_V4_LIST_REPORT,K.v4.FE_TEMPLATE_V4_ALP,K.v4.FE_TEMPLATE_V4_OBJECT_PAGE,K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],uW=["sap.fe.core","sap.fe.templates"],ru=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),gr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Io(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,wg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:K.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,wg.merge)(...n);i=(0,FR.convert)(r)}return i}o(Io,"parseAndMergeAndConvert");var ll=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function sb(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(sb,"evaluateCommonLabel");function kg(e,t){let n=e.value;return e.$target&&(n=sb(e.$target.annotations,t,n)),n}o(kg,"getLabelForPropertyPath");function Mg(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=sb(i.annotations,t,n)),n}o(Mg,"getLabelForDataField");function pW(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return sb(a.annotations,t,s)}}}else return}o(pW,"getLabel");function NR(e,t,n){let i=Mg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(NR,"getTitleForDataField");function Si(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=pW(e.Label,t);switch(e.$Type){case Ke.UIAnnotationTypes.DataField:n=NR(e,t,g);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:i=Mg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Mg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case Ke.UIAnnotationTypes.DataFieldForAction:case Ke.UIAnnotationTypes.DataFieldWithAction:case Ke.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,a=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,g?n=typeof g=="string"?g:a:n=a;break;case Ke.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Mg(e,t),n=i||e.Value.path;break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=NR(r,t,g);break;default:break}return n}catch{return n}}o(Si,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function sa(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(sa,"getPageTypeV2");function cb(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}o(cb,"getPageTypeV4");function dW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(dW,"getTargetAnnotationName");function ri(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(ri,"findAlias");function gW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(gW,"getAnnotationFromMetaPath");function mW(e,t,n){var s,l;let i=e[e.length-1],r=gW(i),a=ri(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(mW,"determineTargetAnnotation");function hW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ke.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}o(hW,"adjustKey");function yW(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var m,T;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=hW(t,u,a);let g=mW(u,n,e);if(g){let A=r===K.FioriElementsVersion.v2?"::":"#";t=dW(g,a).replace("#",A),l=(T=g.fullyQualifiedName)==null?void 0:T.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(yW,"getKeyAndEntityTypeOfReferenceFacet");function RR(e,t,n,i,r=K.FioriElementsVersion.v2,a=!1){var g,m,T;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=(T=e.fullyQualifiedName)==null?void 0:T.split("@")[0],p=t;if(e.$Type!==Ke.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=ll(e.Target);if(!A){se(i,{severity:K.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:R,namespace:U}=yW(n,l,p,A,r,a);if(R)return;l=b,p=O,u=U}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(RR,"getSectionFacet");function vW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(vW,"getDecodedPathElement");var lb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),_R=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=vW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=lb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Oo=o((e,t,n,i,r=!1)=>_R(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),DR=o((e,t,n,i,r)=>{_R(e,t,i,r,n)},"setManifestSectionByPathV4");function fb(e){let t,n,i;switch(e.$Type){case Ke.UIAnnotationTypes.DataField:t=ll(e.Value);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ll(e.Value);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Ke.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${dt(e.Action)}`);break;case Ke.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=ll(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Ke.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${dt(e.Action)}`);break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:i=ll(e.Value),n=ll(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(fb,"getSchemaKeyOfLineItemRecord");function TW(e,t,n){return e.includes(Ke.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Ke.UIAnnotationTerms.Chart:e.includes(Ke.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Ke.UIAnnotationTerms.Identification:n&&e.includes(Ke.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Ke.UIAnnotationTerms.LineItem:e.includes(Ke.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Ke.UIAnnotationTerms.FieldGroup:e.includes(Ke.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Ke.UIAnnotationTerms.DataPoint:e.includes(Ke.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Ke.UIAnnotationTerms.PresentationVariant:e.includes(Ke.UIAnnotationTerms.SelectionPresentationVariant)||e.includes(t+".SelectionPresentationVariant")?Ke.UIAnnotationTerms.SelectionPresentationVariant:void 0}o(TW,"getUIAnnotationTerm");function bW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?iu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?iu.CommunicationAnnotationTerms.Address:void 0}o(bW,"getCommunicationAnnotationTerm");function EW(e,t,n){return TW(e,t,n)||bW(e,t)}o(EW,"getAnnotationTerm");function AW(e,t,n,i,r){var p,g,m,T,A,b,O,R,U,W;let a=ri(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(EW(s,a,i)){case Ke.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(g=t==null?void 0:t.Target)==null?void 0:g.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.LineItem:{if(!s.includes(Ke.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let j=s.split("::");j[j.length-1]=`@${Ke.UIAnnotationTerms.LineItem}`,s=j.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(A=t==null?void 0:t.Target)==null?void 0:A.$target.Title,n[s].target=(b=t==null?void 0:t.Target)==null?void 0:b.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(O=t==null?void 0:t.Target)==null?void 0:O.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:K.FacetBase.SelectionPresentationVariant},n[s].target=(R=t==null?void 0:t.Target)==null?void 0:R.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case iu.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(U=t==null?void 0:t.Target)==null?void 0:U.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case iu.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(W=t==null?void 0:t.Target)==null?void 0:W.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(AW,"evaluateTargetAnnotation");function ub(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(ub,"getAnnotationPathUsingFullyQualifiedName");function pb(e,t,n,i,r,a=K.FioriElementsVersion.v2,s){var u;let l=RR(e,i,t,s,a,!1);if(l)switch(e.$Type){case Ke.UIAnnotationTypes.ReferenceFacet:{AW(l,e,r,i,t);break}case Ke.UIAnnotationTypes.CollectionFacet:{let p=ub(i,e.fullyQualifiedName),g=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===K.FioriElementsVersion.v4&&se(s,{severity:K.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{pb(m,t,n,i,g.facets,a,s)});break}}}o(pb,"addFacetToConfig");function Ug(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ri(K.UIVOCABULARY,t),s=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),g=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{pb(m,t,g,e,r,n,i)})}return r}o(Ug,"getObjectPageHeaderFacets");function jg(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ri(K.UIVOCABULARY,t),s=a&&((l=e==null?void 0:e.annotations[a])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(g=>{pb(g,t,p,e,r,n,i)})}return r}o(jg,"getObjectPageFacets");function db(e){var t,n,i,r;if(e[K.ManifestSection.generic]&&Object.keys(e[K.ManifestSection.generic]).length>0||e[K.ManifestSection.ovp]&&Object.keys(e[K.ManifestSection.ovp]).length>0)return K.FioriElementsVersion.v2;{let a=(n=(t=e[K.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[K.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>fW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>uW.indexOf(l)>-1)?K.FioriElementsVersion.v4:void 0}}o(db,"getFEVersionFromManifest");function SW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[K.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[K.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[K.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[K.ManifestSection.ui5].models[t].dataSource:void 0}o(SW,"getMainService");function VR(e){var i,r;let t=SW(e);if(!t)return Vg.OdataVersion.v2;let n=(i=e[K.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?Vg.OdataVersion.v4:Vg.OdataVersion.v2}o(VR,"getODataVersionFromManifest");function PW(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let a=e[K.ManifestSection.generic].pages;if(!a){se(t,{severity:K.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(sa((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(sa((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}o(PW,"determineV2Template");function ou(e){var i,r,a,s;let t,n=cb(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(a=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:a.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}o(ou,"determineV4PageTemplateType");function xW(e){let t;for(let n in e){let i=e[n];if(t=ou(i),t)break}return t}o(xW,"determineV4TemplateFromPages");function CW(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:K.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=xW(n);return i||se(t,{severity:K.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}o(CW,"determineV4Template");function gb(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=PW(e,n):t===K.FioriElementsVersion.v4&&(i=CW(e,n)),i}o(gb,"getTemplateTypeFromManifest");function Ua(e,t,n){e!=null&&e.ID?(t.title=K.FacetTitlePrefix+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Ua,"addSectionTitleAndDescription");function fl(e,t,n){var i,r;Ua(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(fl,"addTargetTitleAndSectionDescription");function No(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[K.SchemaTag.isViewNode]=!0,i[K.SchemaTag.annotationPath]=t.annotationPath,fl(t,i,n),i}o(No,"createDefaultSection");function MR(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let a=ri(K.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let T=RR(m,e,t,n,i,!0);return T&&g.push(T),g},s)),s}}o(MR,"getObjectPageFacetSection");var ja=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]){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(),ja(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),ab=o(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:ab(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:ab(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=ab(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function $g(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let a=n&&n.split(".");return a&&a[a.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}o($g,"generatePageId");function mb(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($)[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(mb,"findMatchingKeysByAdditionalProperties");function IW(e,t,n,i){let r=e.$ref;if(!r)return;let a=r.split($)[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=mb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length)&&i.push(a)}}}o(IW,"fillArrayFromAnyOfReference");function OW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{IW(r,n,t,i)}),i.length===0))return;return i}o(OW,"fillArrayFromPropertyDefinition");function NW(e,t,n,i,r,a,s,l){var p,g,m,T;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Lo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(R=>{R!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[R].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let b=A==null?void 0:A.split("<")[0],O=i||{};u.configObject=a.createInstance(s,b,O,(T=u==null?void 0:u.targetDefinition)==null?void 0:T.controlProperty)}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(NW,"determineNextDefinitionFromDefinitionArray");function Lo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Lo(e,t,n,i.items,r,a,s),l;let u=OW(i,n,e);if(u)return l=NW(u,e,t,n,r,a,s,i),l}o(Lo,"getNextTargetDefinition");var hb=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,LR.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Bg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Bg,"convertEnumToCSV");function qi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(qi,"convertActionKeyToStableId");function yn(e){return e==null?void 0:e.split($)[1]}o(yn,"getDefinitionKey");function wR(e){return`#/definitions/${e}`}o(wR,"getDefinitionsRef");function Hg(e){return e instanceof Error?e.message:String(e)}o(Hg,"getErrorMessage");function qs(e,t){return e==null?void 0:e.includes(t)}o(qs,"isFeatureSupported");function Fo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Fo,"updatePropertyIndices");function Gg(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Gg,"getJSONPropertyByPath");function kR(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(kR,"removeNamespaces");function ul(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ul,"replaceNamespaces");var bo=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=te(le());var zi=te(le());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Wg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),qn=o((e,t)=>{let n,i=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 LW(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(LW,"escapeId");var UR=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(UR||{}),jR=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(jR||{});function FW(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]=qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(FW,"mapBreadcrumbs");var yb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=FW(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 l=s[s.length-1].replace(/::com.sap.vocabularies/g,zi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,zi.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),u,p=l.indexOf(":::");return l.startsWith("DataField")&&p>-1?u=`${e}template:::TableColumn:::${l.substring(0,p)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${l.substring(p+3)}`:u=`${e}${t.join("::")}-${l}`,LW(u)},"buildColumnControlId"),Yi=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 RW(e){let t=zi.BindingPropertyRegexAsString;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(RW,"determinePattern");var vb=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($)[1]]:a,u=a.description?a.description:l.description,p=RW(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"),zn=o((e,t,n)=>{vb(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(UR);vb(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),oi=o((e,t,n)=>{let i=Object.values(jR);vb(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function zs(){}o(zs,"doNotDelete");var SJ=te(BR());var HR=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(HR,e),"syncRule");function Yn(e,t){let n;return e&&(n=Reflect.getMetadata(HR,e,t)),n}o(Yn,"getReflectMetadata");var kr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),GR=Symbol("childId"),kt=o(e=>Reflect.metadata(GR,e),"childId"),Kg=o((e,t)=>Reflect.getMetadata(GR,e,t),"getChildId"),Xg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),_W=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(_W,e),"descriptionSrcURL");var DW=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(DW,e),"validity");function Qg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Qg,"getTextForDeprecated");var JR=te(zR()),ZR=te(le());var e0=JR.default.change,YR={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function t0(e,t){let n="";try{for(let i in YR)e[i]===void 0&&(e[i]=YR[i]);n=e0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(t0,"createChangeString");function $a(e){try{return e0.parse(e)}catch{return!1}}o($a,"parseChangeString");function n0(e,t,n,i,r){let a=n.layer?n.layer===ZR.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(n0,"fillFlexChangeContent");function Ee(e,t){return t0(e,t)}o(Ee,"exportToFlexChange");var Ys=te(le());function pl(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(pl,"importProperty");function qg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Ys.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(qg,"checkDeprecatedProperties");function Tb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return Tb(n,t)}else return e.title?e.title.startsWith(Ys.FacetTitlePrefix)?e.title.split(Ys.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(Tb,"getSectionTitle");function zg(e){let t=e.split(`${Ys.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(zg,"getTargetFromCustomColumnRef");function Ro(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(Ro,"removeEmptyStructure");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var ca=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yg(e){if(typeof e=="string"){for(e=e.replace(/^\/|^@|^#|^\*/,"").replace(/\/$|@$|#$|\*$/,"").replace(/[/@()#*]/g,"::");e.indexOf("::::")>-1;)e=e.replace("::::","::");return e.slice(-2)==="::"&&(e=e.slice(0,-2)),e}}o(Yg,"replaceSpecialChars");var Js=o(function(e){return Yg(kR(e))},"prepareId");function $W(e){let t="";for(let n of e.$Apply)n.$Path&&(t&&(t+="::"),t+=n.$Path);return t}o($W,"evaluateConcat");function Zs(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 $W(e);if(e&&typeof e=="string")return Yg(e.replace(/ /g,"_"))}o(Zs,"getStableIdPartFromValue");var i0=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"),la=o(function(e){let t="";if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=i0(e),t;if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=Js(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=Zs(e.Value)+"::"),t+=e.Action,Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataField)return t="DataField::",t+=Zs(e.Value),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=Zs(e.Value)+"::",t+=i0(e),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=Zs(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),Js(t);if(e.$Type&&e.$Type===ca.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=Zs(e.Value),Js(t)},"getStableIdPartFromDataField");var ge=te(le());var De=te(le());var Ji=require("@sap-ux/vocabularies-types/vocabularies/UI"),s0=require("path"),c0=te(Xs());var Jg="ResponsiveTableWithMultiSelect<LineItems>",Zg="ResponsiveTableWithInlineDelete<LineItems>",BW="TreeTable<LineItems>",HW="AnalyticalTable<LineItems>",GW="GridTable<LineItems>",bb=[Jg,Zg,BW,HW,GW],r0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],o0="template::",em="template:::ObjectPageAction:::";function WW(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${$}${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(WW,"addCustomColumnDefinition");function KW(e,t){let n;return e==="TableColumnActionIntentBased"?n=fb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Ji.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(KW,"getActionId");function Eb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=KW(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=Si(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ec(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(Eb,"handleActionRecord");function XW(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Ji.UIAnnotationTypes.DataFieldForAction||t.$Type===Ji.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Ji.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Ji.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(XW,"getColumnActionType");function QW(e,t){let n=[];if(!(e.$Type!==Ji.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Ji.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Ji.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Ji.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Ji.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Ji.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),XW(t,e,n),n}o(QW,"getActionType");function l0(e,t,n){let i=fb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:Si(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,sm(r.properties[i],e.lineItemRecord),cm(e.lineItemRecord,r.properties,i)}}o(l0,"generateGenericColumn");function qW(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Eb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&Eb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Eb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":l0(i,t,r)}}o(qW,"handleAnyAction");function au(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(au,"retrieveNameWithoutVocabularyFromVisualization");function dl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=am(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},T=QW(g,r);T?T.forEach(A=>{qW(A,t,s,m,p,l,r)}):l0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(dl,"addLineItemsType");function zW(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(zW,"addListReportLeadingProperties");function YW(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 T=[];for(let A in a){let b=(m=a[A])==null?void 0:m.key;b!==void 0&&!T.includes(b)&&T.push(b)}fa(T,r)}}o(YW,"addTabkeyEnum");function tm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,c0.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("\\"+s0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),fa(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(tm,"addFragmentEnum");function gl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){WW(e,a,s),zW(e,t,s),YW(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;tm(e,r,u,"fragmentName",s),tm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),tm(e,r,u,"cellsFragmentName",s),tm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(gl,"addTableColumnExtensions");function f0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(f0,"removeElementsFromEnum");function nm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=gr(n==null?void 0:n.fullyQualifiedName,Ji.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=to(s);s.type==="PropertyPath"&&(l=kg(s,n)),i.properties[s.value]={$ref:$+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=`${$}SelectionFieldDateSettings`:e.definitions[u].properties={},a++})}o(nm,"addSelectionFields");function u0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(u0,"addEntityPropertiesToEnum");function im(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(im,"isDraftEnabled");function p0(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(p0,"isEntityDeletable");function d0(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(d0,"isEntityUpdatable");function ml(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($)[1],g=`${r}<${p}>`;a.properties[l]={$ref:`${$}${g}`},e.definitions[g]=e.definitions[p],e.definitions[p][De.SchemaTag.actionType]=De.ActionType.Standard})}o(ml,"addStandardHeaderActions");function g0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[1],a=`${De.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${$}${a}`},e.definitions[a]=e.definitions[r],e.definitions[r][De.SchemaTag.actionType]=De.ActionType.Standard}}o(g0,"addStandardFooterActionsOP");function rm(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(rm,"getUIAnnotationForEntitySet");function om(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(om,"hasPropertyTypeError");function JW(e,t,n,i){if(e===ge.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithNavigationPath:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ge.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case Ut.UIAnnotationTypes.DataField:case Ut.UIAnnotationTypes.DataFieldForAnnotation:case Ut.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(JW,"copyFieldProperties");function ZW(e,t,n,i){let r=e===ge.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===ge.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}o(ZW,"determineFieldDefinitionName");function e8(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][ge.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][ge.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][ge.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][ge.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(e8,"addKeysTagForDataField");function t8(e,t,n){if(e.$Type===Ut.UIAnnotationTypes.DataField||e.$Type===Ut.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ut.UIAnnotationTypes.DataFieldWithNavigationPath)e8(e,t,n);else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ge.SchemaTag.keys]=[{name:"Target",value:ul(e.Target.value)}],t.definitions[n][ge.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][ge.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][ge.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][ge.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][ge.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][ge.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}o(t8,"addKeysTagToField");function n8(e){var t,n;return e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ut.UIAnnotationTypes.ConnectedFieldsType}o(n8,"isConnectedField");function i8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Ut.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let T=p[m];if(typeof T=="object"&&"$Type"in T){let A=u.findIndex(b=>b===m);A===-1&&(A=g,g++),Ab(e,t,T,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(i8,"addConnectedFields");function m0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(m0,"getFieldsSchemaContainer");function Ab(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=la(n),m=s===ge.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,T=ZW(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===Ut.UIAnnotationTypes.DataFieldForAction||n.$Type===Ut.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===ge.SectionType.Section){let O=m0(t,`${e}${ge.DefinitionName.Actions}<${i}>`,u.actions),R=O[m]={$ref:`${$}${T}`};R[ge.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=m0(t,`${e}${ge.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${$}${T}`,propertyIndex:parseInt(r)},n8(n)&&(A=i8(e,t,n,a,s))}t.definitions[T]={type:"object",properties:A,description:Si(n,a.entityType),additionalProperties:!1},t8(n,t,T),t.definitions[T][ge.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[T][ge.SchemaTag.annotationType]=n.$Type,t.definitions[T][ge.SchemaTag.isViewNode]=!0,sm(t.definitions[T],n),JW(s,t,n,T),n.$Type===Ut.UIAnnotationTypes.DataFieldForAction&&((b=t.definitions)!=null&&b.FormAction)&&(t.definitions[T].$ref=`${$}${ge.DefinitionName.FormAction}`,delete t.definitions[T].properties)}}o(Ab,"addField");function r8(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(r8,"determineTargetIdOfForm");function o8(e,t,n,i,r,a){if(e.base===ge.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&Ab(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];Ab(t,n,l,i,s,e,r)}}o(o8,"addFieldsToFormDefinition");function a8(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][ge.SchemaTag.keys]=[{name:ge.SchemaKeyName.target,value:a.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][ge.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][ge.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][ge.SchemaTag.annotationPath]=gr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(a8,"addTagsToFormDefinition");function lm(e,t,n,i,r,a){if(!t.target)return;let s=r8(t),l=dt(`${e}${ge.DefinitionName.Form}<${s}>`),u=dt(`${e}${ge.DefinitionName.Fields}<${s}>`),p=dt(`${e}${ge.DefinitionName.Actions}<${s}>`),g=!(t.base===ge.FacetBase.Identification&&a.indexOf("#")<0);return n.properties.form={$ref:`${$}${l}`},e===ge.SectionType.Section&&g?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${$}${p}`},fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][ge.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${$}${u}`}},description:"Form",additionalProperties:!1},a8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ge.SchemaTag.isViewNode]=!0,o8(t,e,i,s,r,g),s}o(lm,"handleForm");function fm(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(fm,"replaceAlias");function um(e,t){let n=fm(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(um,"getActionNameAndId");function h0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ge.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:h0(a.pages,t)}}o(h0,"isFirstObjectPage");function pm(e,t,n,i,r){var g,m;e.definitions[ge.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${ge.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${$}${ge.DefinitionName.ObjectPageFooter}`},e.definitions[ge.DefinitionName.ObjectPageFooter].properties[ge.PropertyName.actions]={$ref:`${$}${ge.DefinitionName.FooterActions}`};let a=e.definitions[ge.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};a[ge.SchemaTag.isViewNode]=!0;let s=ri(ge.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 T=p.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`);a[ge.SchemaTag.annotationPath]=`/${T}`,i(u,e,a,p)}else u&&(a[ge.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`);n===ge.FioriElementsVersion.v2&&h0(r,t)&&!im(l)&&g0(e,a),delete e.definitions[ge.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ge.DefinitionName.ObjectPageFooter}<${ge.DefinitionName.ObjectPageFooterActions}>`]}o(pm,"addFooterActions");function dm(e,t,n,i,r,a=!1){var m,T;let s=ge.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[ge.DefinitionName.ObjectPageHeader].properties[ge.PropertyName.actions]={$ref:`${$}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[ge.SchemaTag.isViewNode]=!0;let p=ri(ge.UIVOCABULARY,n.serviceAVT),g=p&&((T=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:T.Identification);g?u[ge.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${Ut.UIAnnotationTerms.Identification}`,`/@${Ut.UIAnnotationTerms.Identification}`):t&&(u[ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&ml(e,!0,l)}o(dm,"addHeaderActions");function gm(e,t){e.properties.header={$ref:`${$}${ge.DefinitionName.ObjectPageHeader}`},e.definitions[ge.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${ge.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[ge.DefinitionName.ObjectPageHeader][ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${Ut.UIAnnotationTerms.HeaderInfo}`)}o(gm,"addCommonHeaderSchema");function y0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(y0,"determineEntitySetOfEntityType");var mr=require("@sap-ux/vocabularies-types/vocabularies/UI");var tt=te(le());function fa(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(fa,"addEnumToSchema");function su(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)}}fa(r,n)}o(su,"addEnumForValidAnnotations");function Ba(e,t,n){let i=t.definitions[n].properties[tt.SchemaTag.annotationPath],r=[mr.UIAnnotationTerms.SelectionVariant,mr.UIAnnotationTerms.SelectionPresentationVariant];su(e,r,i)}o(Ba,"addEnumForSingleTabVariant");function v0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[mr.UIAnnotationTerms.SelectionVariant,mr.UIAnnotationTerms.SelectionPresentationVariant];su(n.entityType,r,i)}o(v0,"addEnumForMultiTabVariant");function T0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),fa(r,i)}o(T0,"addEnumForVariantEntitySet");function b0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[mr.UIAnnotationTerms.FieldGroup];su(e,r,i)}o(b0,"addEnumFieldGroupAnnotationPath");function E0(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[tt.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:`${$}${tt.DefinitionName.RelatedFacetKeys}`},l]}}}}o(E0,"addDefinitionForRelatedFacetKeys");function hl(e){return e.replace("#","::")}o(hl,"getFacetKeyInSchema");function A0(e,t){return`${e}<${hl(t)}>`}o(A0,"getFacetDefinitionKey");function bt(e,t,n,i=!0,r){let a=t;if(i&&(a=A0(r||e,t)),e&&e!==a)try{let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[a]=s}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[a]}o(bt,"parseSchemaDefinition");function mm(e,t,n){let i;return t===tt.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${mr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,bt(n,t,e,!0)),i}o(mm,"getCustomExtensionDefinitionName");function am(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][tt.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=mm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?tt.DefinitionName.ObjectPageToolBar:tt.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=`${tt.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.Actions:tt.DefinitionName.ObjectPageToolBarActions,T;try{if(T=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),T.properties={},T.additionalProperties=!1,s){let O=mm(t,r,s);T.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,b;if(r===tt.DefinitionName.LineItems&&t.properties.footer){b=`${tt.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[tt.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:tt.DefinitionName.GenericFooter}))}let O=`${tt.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[b].properties.actions.$ref=$+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[tt.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=gr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][tt.SchemaTag.annotationPath]=l,A&&(t.definitions[b][tt.SchemaTag.annotationPath]=l))),{actions:T,footerActions:A,lineItemPath:l}}o(am,"addCommonLineItemDefinitions");function S0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(S0,"getDataTypeFromAnnotation");function tc(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=S0(e.$Type)),t}o(tc,"determineDataTypeOfTarget");function to(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=tc((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=S0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(to,"determineDataType");function sm(e,t){let n=to(t);n&&(e[tt.SchemaTag.dataType]=n)}o(sm,"addDataTypeToDefinition");function $n(e,t){return`${$}${A0(e,t)}`}o($n,"getFacetDefinitionLink");function Ha(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Ha,"addDefinitionRef");function hm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${tt.UIVOCABULARY}`);t=`/${n}/@${tt.UIVOCABULARY}${i}`}return t}o(hm,"getFacetAnnotationPath");function cu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:$n(a?u:l,t)};let p=bt(a?u:l,t,i,!0,a?u:void 0);Ua(e,p,t),p[tt.SchemaTag.annotationPath]=e.annotationPath,p[tt.SchemaTag.isViewNode]=!0}o(cu,"handleAddressContact");function Sb(e,t,n){typeof e=="object"&&(e[t]=n)}o(Sb,"updateSchemaProperty");function yl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${tt.DefinitionName.Fields4Dialog}${n}`];Sb(r.properties.fields.items,"enum",i)}o(yl,"addFieldsType");function s8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(s8,"findFirstSchemaDefinitionKey");function ym(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=yn(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=s8(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(ym,"getEnumEntry");function Ga(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=ym(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];Sb(l,"oneOf",r)}else Sb(a,"oneOf",r)}o(Ga,"addDescriptiveEnumDefinition");function ec(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(ec,"getActionKey");function cm(e,t,n){var i,r,a;try{if(e.Value)t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.value,value:Zs(e.Value)}];else if(e.$Type===mr.UIAnnotationTypes.DataFieldWithAction||e.$Type===mr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ec(e.Action,!0);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.action,value:s}],l&&(t[n][tt.SchemaTag.target]=l)}else if(e.$Type===mr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=ec(e.Target.value,!1);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.target,value:ul(s)}],t[n][tt.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===mr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===mr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=ec(s,!0);t[n][tt.SchemaTag.keys]=[{name:"SemanticObject",value:e[tt.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][tt.SchemaTag.target]=u)}}catch{return}}o(cm,"addKeyToDefinition");var vl=te(le());var P0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107","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.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 C0="1.124.1";var I0={name:"@sap/ux-specification",version:C0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",iXiaSoftV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=iXiaSoft",iXiaSoftV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=iXiaSoft",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.28.3","@sap-ux/vocabularies-types":"0.11.1"},devDependencies:{"@sap-ux/annotation-converter":"0.9.2","@sap-ux/edmx-parser":"0.8.0","@sap/ux-specification-types":"1.124.1","@sapui5/types":"1.127.0","@types/d3":"7.4.3","@types/jquery":"3.5.30","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.7.7",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.14.0",jquery:"3.7.1",jsdom:"24.1.3","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.6.3","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var Wa=class Wa{constructor(){Wa.distTagsOfSpec.length===0&&(Wa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Wa.distTagsOfSpec=[]}getSpecVersion(){return C0}getDistTagsOfVersion(){let t=[],n=P0,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;let i=[];typeof t=="string"?i.push(t):Array.isArray(t)&&(i=t);let r=!1;if(i.forEach(a=>{if(!this.checkVersionName(a,n))return;let s=a==="latest"?"latest":a.substring(0,a.lastIndexOf("."));Wa.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:vl.LogSeverity.Warning,message:a,location:{path:vl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:vl.LogSeverity.Info,message:i,location:{path:vl.MANIFESTPATH}}),!1}else return!0}};o(Wa,"DistTagEvaluator"),Wa.distTagsOfSpec=[];var lu=Wa;var ue=te(le());var Dn=te(le());var Pi=te(le());function f8(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}o(f8,"getCustomPageName");function O0(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)||Pi.ViewTypes.XML}o(O0,"getViewType");function u8(e,t){return O0(e,t).toLowerCase()}o(u8,"getViewTypeExtension");function p8(e,t,n){var p,g;let i=o(m=>{var T;return(T=m.split(`${t.id}.`)[1])==null?void 0:T.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=(g=e.view)==null?void 0:g.name;s!=null&&s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(p8,"getViewPath");function d8(e,t){let n=e.entitySet||f8(e),{viewPath:i,fileName:r}=p8(e,t,[n]),a=u8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(d8,"getCustomPagePath");var Pb=class Pb{constructor(t,n,i,r){this.unhandledControllers=[];let a=_t(Pi.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)===Pi.OdataVersion.v4?s:i.entitySet,u=this.getPageConfigFile(i,l);u&&(t[`${Pi.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[Pi.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var a;let i,r=O0(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=_t(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=_t(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=_t(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=d8(t,this.app);n.$filePath=i}};o(Pb,"AppProvider");var Ka=Pb;var Ge=te(le());var nc=te(le());function vm(e,t,n){if(t.controlType.endsWith(nc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===nc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[nc.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",nc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}o(vm,"addFlexForTable");var Tl=te(le());var Bn=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),N0=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"),L0=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 xb(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(xb,"getNewPageTemplate");function g8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(g8,"findPageInManifest");function m8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=xb(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:xb(e[t].pageType)}),!Array.isArray(n.pages))){let i=g8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=xb(e[t].pageType)),Cb(t,e,i)}}o(m8,"transformPageFromAssociation");function h8(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)===Tl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Tl.PageTypeV2.ListReport||n.pageType===Tl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(h8,"deletePage");function Cb(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Tl.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)m8(t,r,n);Array.isArray(n.pages)||h8(n,t,i)}}o(Cb,"transformPageToNewManifestV2");var m1=te(Xs());var mA={};Ws(mA,{ALPAnalyticalTable:()=>gE,ALPGridTable:()=>dE,ALPResponsiveTable:()=>pE,Action:()=>vE,AnalyticalCard:()=>Pl,AnalyticalCardSettings:()=>Am,AnalyticalCardSettingsv4:()=>Rb,AnalyticalListPageFilterBar:()=>$b,AnalyticalTable:()=>uE,BaseCustomSection:()=>$u,ChartSettings:()=>ME,ChartSettingsType:()=>Ob,CommonCardSettings:()=>Ya,CommonFilterBar:()=>Eu,CommonHeaderFacetSettings:()=>uc,CommonTableSettings:()=>ts,CommonTableSettingsForSections:()=>hc,CreateWithFilters:()=>rE,CustomCard:()=>Lb,DataLoadSettings:()=>aE,DateRange:()=>wb,DefaultDateRange:()=>kb,DefaultSpanObject:()=>Nb,FRAGMENT_DEFINITION:()=>Do,Field:()=>Mb,FieldForAction:()=>Kb,Fields4Dialog:()=>sE,Fields4DialogOP:()=>lA,FooterAction:()=>bE,FormAction:()=>Wb,GlobalChartSettings:()=>sA,GlobalTableSettings:()=>dA,GridTable:()=>mE,HeaderActionStandard:()=>xE,HeaderSections:()=>GE,KPISettings:()=>wE,LinkListCardSettings:()=>Db,LinklistCard:()=>vu,ListCard:()=>Sl,ListCardSettings:()=>Fb,ListReportFilterBar:()=>Bb,MultiEdit:()=>oE,ObjectPageAnalyticalTable:()=>fA,ObjectPageChart:()=>aA,ObjectPageCustomSectionFragment:()=>Bu,ObjectPageCustomSectionView:()=>Hu,ObjectPageFooterAction:()=>KE,ObjectPageFooterActionStandard:()=>IE,ObjectPageGridTable:()=>uA,ObjectPageHeader:()=>kE,ObjectPageHeaderAction:()=>UE,ObjectPageHeaderActionStandard:()=>CE,ObjectPageHeaderSectionAddress:()=>HE,ObjectPageHeaderSectionChart:()=>$E,ObjectPageHeaderSectionDataPoint:()=>BE,ObjectPageHeaderSectionForm:()=>jE,ObjectPageLayout:()=>QE,ObjectPageResponsiveTable:()=>yc,ObjectPageSectionAddressV2:()=>ZE,ObjectPageSectionChartV2:()=>YE,ObjectPageSectionContactV2:()=>eA,ObjectPageSectionFormV2:()=>zE,ObjectPageSectionTableV2:()=>JE,ObjectPageSectionV2:()=>qE,ObjectPageSubSectionChartV2:()=>iA,ObjectPageSubSectionContactV2:()=>rA,ObjectPageSubSectionFormV2:()=>nA,ObjectPageSubSectionTableV2:()=>oA,ObjectPageSubSectionV2:()=>tA,ObjectPageToolBarAction:()=>gA,ObjectPageTreeTable:()=>pA,QuickVariantSelection:()=>cE,QuickVariantSelectionOP:()=>cA,QuickVariantSelectionX:()=>lE,ResponsiveTable:()=>ac,SAP_UI_TABLE:()=>Nm,SaveAndEditOP:()=>PE,SelectionFieldDateSettings:()=>Ub,SelectionFields:()=>jb,Share:()=>EE,ShareOP:()=>AE,StackCard:()=>yu,StackCardSettings:()=>_b,TableALP:()=>Nl,TableCard:()=>xl,TableCardSettings:()=>Vb,TableColumn:()=>LE,TableColumnAction:()=>zm,TableColumnActionIntentBased:()=>FE,TableCustomColumn:()=>RE,ToolBar:()=>DE,ToolBarAction:()=>TE,TreeTable:()=>fE,UpAndDownNavigationOP:()=>SE,buildIntentBasedActionId:()=>OE,deleteColumnFromFragment:()=>Rm,deleteType:()=>Fl,exportColorPalette:()=>D0,exportCreateParametersFields:()=>jm,exportCustomColumnsToFragment:()=>nE,exportDateSettingsField:()=>k0,exportDefaultSpan:()=>V0,exportType:()=>Ll,getChartSectionControlId:()=>f1,getContactSubSectionControlId:()=>p1,getCustomColumnPath:()=>_m,getFormSectionControlId:()=>l1,getRootCustomColumnFromFragmentJSON:()=>Pu,getSectionControlId:()=>gc,getSmartChartControlId:()=>_u,getSmartTableControlId:()=>oc,getSubSectionControlId:()=>u1,getTableSectionControlId:()=>c1,importCreateParameters:()=>Um,importDateSettings:()=>Hb});var Jn=te(le());var je=o(e=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),Ur=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),F0=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),R0=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var bn=o(()=>Jn.ManifestSection.ovp,"getOVPsettingPath"),Ie=o(e=>{let t=[Jn.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in Jn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ic=o((e,t)=>`${Jn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Em=o(e=>{let t=[Jn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ri=o(e=>{let t=[];return t.push(Em(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Qa=o(e=>Ri(e)+"/tableSettings","getGlobalTableSettingsPathV2"),io=o((e,t,n)=>{let i=[];i.push(Em(e));let r=n.replace(Jn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),hr=o((e,t,n)=>io(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),_0=o((e,t,n)=>io(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Ib=o(()=>`sap.ui5/extends/extensions/${Jn.v2.SAPUI5_VIEW_EXTENSION}/${Jn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ua=o((e,t,n,...i)=>{let r="|",a=n.split(r),s=e[e.length-1].split(r),l="";a.length===4?l=[a[2],a[3]].join(r):a.length===3&&(l=a[2]);let u=[a[0],s[s.length-1],l].join(r);return i.unshift(u),`${Ib()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),bm=class bm{};o(bm,"ApplicationV2"),h([kt("settings")],bm.prototype,"settings",2);var Tm=bm,no=class no{};o(no,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],no.prototype,"description",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],no.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],no.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],no.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],no.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],no.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Jn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],no.prototype,"statePreservationMode",2);var Xa=no;var fu=te(le());function y8(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(y8,"importColorPalette");function D0(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(D0,"exportColorPalette");function V0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(V0,"exportDefaultSpan");var Sm=class Sm{};o(Sm,"ChartSettingsType"),h([y({manifest:{path:o(()=>bn()+"/chartSettings","path")}})],Sm.prototype,"showDataLabel",2);var Ob=Sm,qa=class qa{};o(qa,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"cols",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"rows",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],qa.prototype,"minimumSubTitleRow",2);var Nb=qa,Kt=class Kt{};o(Kt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"title",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"category",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ie(t),"path"),export:V0}})],Kt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Kt.prototype,"customParams",2);var Ya=Kt,bl=class bl{};o(bl,"CustomCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],bl.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],bl.prototype,"template",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],bl.prototype,"settings",2);var Lb=bl,za=class za extends Ya{};o(za,"ListCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],za.prototype,"listType",2);var Fb=za,uu=class uu{};o(uu,"ListCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],uu.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],uu.prototype,"template",2);var Sl=uu,ro=class ro extends Ya{};o(ro,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ie(t),"path"),import:y8,export:D0}})],ro.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],ro.prototype,"bEnableStableColors",2);var Am=ro,Pm=class Pm extends Am{};o(Pm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Pm.prototype,"measureAggregate",2);var Rb=Pm,pu=class pu{};o(pu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],pu.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],pu.prototype,"template",2);var Pl=pu,El=class El extends Ya{};o(El,"StackCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],El.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],El.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],El.prototype,"objectStreamCardsSettings",2);var _b=El,du=class du{};o(du,"StackCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],du.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],du.prototype,"template",2);var yu=du,Al=class Al extends Ya{};o(Al,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Al.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Al.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],Al.prototype,"staticContent",2);var Db=Al,gu=class gu{};o(gu,"LinklistCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],gu.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],gu.prototype,"template",2);var vu=gu,mu=class mu extends Ya{};o(mu,"TableCardSettings"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],mu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],mu.prototype,"enableAddToInsights",2);var Vb=mu,hu=class hu{};o(hu,"TableCard"),h([y({manifest:{path:o(t=>Ie(t),"path")}})],hu.prototype,"model",2),h([y({manifest:{path:o(t=>Ie(t),"path")}})],hu.prototype,"template",2);var xl=hu;var M0=te(le());var v8=o((e,t,n,i,r)=>{let a=qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),xm=class xm{};o(xm,"Field"),h([y({flex:{controlId:v8,controlType:o(()=>M0.ControlType.GroupElement,"controlType"),createFlexChange:Ee},generate:mt})],xm.prototype,"visible",2);var Mb=xm;var rc=te(le());function Hb(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(Hb,"importDateSettings");function T8(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(T8,"importDateSettingsField");function k0(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(k0,"exportDateSettingsField");var Cl=class Cl{};o(Cl,"DateRange"),h([y({manifest:{path:o(t=>je(t)+rc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Cl.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+rc.DATESETTINGSPATH,"path"),import:Hb,export:Bg}}),x({since:"1.77.0"})],Cl.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+rc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Cl.prototype,"exclude",2);var wb=Cl,Cm={controlId:zt,controlType:o(()=>rc.ControlType.SmartFilterBar,"controlType"),createFlexChange:Ee},Tu={path:o((e,t,n)=>`${je(e)}${rc.DATESETTINGSPATH}/fields/${n}`,"path")},w0={...Tu,import:T8,export:k0},Im=class Im{};o(Im,"DefaultDateRange"),h([y({manifest:Tu}),x({since:"1.90.0"})],Im.prototype,"operation",2);var kb=Im,Ja=class Ja{};o(Ja,"SelectionFieldDateSettings"),h([y({manifest:w0}),x({since:"1.77.0"})],Ja.prototype,"selectedValues",2),h([y({manifest:Tu}),x({since:"1.77.0"})],Ja.prototype,"exclude",2),h([y({manifest:Tu}),x({since:"1.77.0"})],Ja.prototype,"customDateRangeImplementation",2),h([y({manifest:w0}),x({since:"1.77.0"})],Ja.prototype,"filter",2),h([y({manifest:Tu}),x({since:"1.90.0"})],Ja.prototype,"defaultValue",2);var Ub=Ja,Gb=class Gb{};o(Gb,"SelectionFields");var jb=Gb,oo=class oo{};o(oo,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],oo.prototype,"smartVariantManagement",2),h([y({flex:Cm}),x({since:"1.40.0"})],oo.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],oo.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],oo.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:Hb}}),x({since:"1.77.0"})],oo.prototype,"dateSettings",2),h([y({flex:Cm}),x({since:"1.28.0"})],oo.prototype,"showClearOnFB",2),h([y({flex:Cm}),x({since:"1.38.0"})],oo.prototype,"showFilterConfiguration",2),h([y({flex:Cm}),x({since:"1.28.0"})],oo.prototype,"showRestoreOnFB",2);var Eu=oo,bu=class bu extends Eu{};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 $b=bu,Om=class Om extends Eu{};o(Om,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],Om.prototype,"annotationPath",2);var Bb=Om;var Xb=te(le());var b8=o((e,t,n,i,r)=>{if(i()===Xb.ControlType.Button){let a=n[n.length-1],s=qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),_o={controlId:b8,controlType:o(()=>Xb.ControlType.Button,"controlType"),createFlexChange:Ee},Za=class Za{};o(Za,"FormAction"),h([y({flex:_o,generate:mt})],Za.prototype,"visible",2),h([y({flex:_o})],Za.prototype,"tooltip",2),h([y({flex:_o})],Za.prototype,"icon",2),h([y({flex:_o})],Za.prototype,"activeIcon",2),h([y({flex:_o})],Za.prototype,"type",2);var Wb=Za,es=class es{};o(es,"FieldForAction"),h([y({flex:_o,generate:mt})],es.prototype,"visible",2),h([y({flex:_o})],es.prototype,"tooltip",2),h([y({flex:_o})],es.prototype,"icon",2),h([y({flex:_o})],es.prototype,"activeIcon",2),h([y({flex:_o}),x({since:"1.73.0"})],es.prototype,"type",2);var Kb=es;var Et=te(le()),ao=te(Xs());var Yb=require("path"),k8=te(le()),Y0=te(z0()),J0=require("fs");var U8=(0,Yb.join)(__dirname,"templates");var j8=o((e,t)=>{let n=(0,J0.readFileSync)(e,"utf8");return(0,Y0.render)(n,t)},"renderTemplate");var Jb=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return j8((0,Yb.join)(U8,t+".xml"),n)},"getSingleColumnContent"),Zb=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=Jb(i,t);n=n+`
289
289
  `+r}return n+`
290
- </core:FragmentDefinition>`},"getColumnFragmentContent"),eb=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
290
+ </core:FragmentDefinition>`},"getColumnFragmentContent"),eE=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 Lm=require("path");var Do="core:FragmentDefinition",Nm="sap.ui.table",tb=new Map([[bt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[bt.ViewTemplateType.TreeTableColumnsExtension,{namespace:Nm,name:"Column"}],[bt.ViewTemplateType.GridTableColumnsExtension,{namespace:Nm,name:"Column"}],[bt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Nm,name:"AnalyticalColumn"}]]),$8=new Map([[bt.v2.FE_TEMPLATE_V2_LIST_REPORT,bt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[bt.v2.FE_TEMPLATE_V2_ALP,bt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[bt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),e1={type:"element",name:"Text",attributes:{text:"Placeholder"}},B8=JSON.stringify(e1);function H8(e,t){let n=t?e[Do]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let a=i.get(n[r]);i.set(n[r],a?[...a,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}o(H8,"getFragmentNamespaces");function Z0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(Z0,"getTagName");function Fm(e,t,n=e){let i=H8(n,!!(t||n!==e));if(t){let r=tb.get(t);return Z0(r,i.get(r.namespace))}else{let r=tb.keys();for(let a of r){let s=tb.get(a),l=i?Z0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Fm,"getTagNameFromFragmentJSON");function Pu(e,t=e){let n=Fm(e,void 0,t);return e[n]}o(Pu,"getRootCustomColumnFromFragmentJSON");function G8(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(G8,"addP13nData");function t1(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=G8(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(t1,"handleFragmentColumn");function W8(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+bt.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(Lm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,ao.xml2json)(u.fileContent,{compact:!0})),m=Fm(g[Do]);m&&(delete g[Do][m],u.fileContent=(0,ao.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}));break}}}o(W8,"deleteColumnsFromFragment");function n1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===B8&&(e.splice(n,1),t-=1,t===0));n++);}o(n1,"deleteNumberOfCells");function K8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+bt.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,ao.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&n1(l.elements[0].elements,u.length),s.fileContent=(0,ao.json2xml)(JSON.stringify(l),{spaces:4});break}}o(K8,"deleteCellsFromFragment");function Rm(e,t,n,i){if(i){W8(e,i,t,n);let r=t.replace(bt.ViewTemplateType.ResponsiveTableColumnsExtension,bt.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&K8(a,i,n)}}o(Rm,"deleteColumnFromFragment");function X8(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(e1)}o(X8,"addNewColumnsInFragment");function Q8(e,t){let n=JSON.parse((0,ao.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)X8(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;n1(a,r)}e.fileContent=(0,ao.json2xml)(JSON.stringify(n),{spaces:4})}}o(Q8,"updateNonEmptyCellsFragment");function q8(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Lm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=bt.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=eb(n):Q8(r,n);break}}return i}o(q8,"updateCellsFragment");function z8(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(r,{severity:bt.LogSeverity.Error,message:q.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}t.manifestChangeIndicator=bt.ChangeIndicator.Updated,u.fragmentName=m.fragmentName,u.className=m.className,a=((g=m.fragmentName)==null?void 0:g.replace(i,"<root>/webapp").replace(/[.]/g,Lm.sep))+bt.FRAGMENTNAMEPART+p}if(e.indexOf(bt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=bt.ChangeIndicator.Updated;let m=e.replace(bt.ViewTemplateType.ResponsiveTableColumnsExtension,bt.ViewTemplateType.ResponsiveTableCellsExtension),T=Bn(l,m),A=n.reduce((E,O)=>O.cellsFragmentName?O:E);A&&A.cellsFragmentName?(T.fragmentName=s=A.cellsFragmentName,T.className=n[0].className,T.type=p.toUpperCase()):L0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(z8,"exportCustomColumnsToManifest");function Y8(e,t,n,i,r){let a=JE(e,t);if(a){let s=JSON.parse((0,ao.xml2json)(a,{compact:!0})),l=Pu(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(Y8,"insertNewColumnInFragment");function J8(e,t){let n=[];for(let i=0;i<e.length;i++)t1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(J8,"processCustomColumnInArray");function Z8(e,t,n){if(e){if(Array.isArray(e))J8(e,t);else if(!t1(e,t)){let r=Fm(n[Do]);r&&(delete n[Do][r],e=void 0)}}return e}o(Z8,"maintainExistingColumnInFragment");function eK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=Y8(a,i,n,r,s)}return n}o(eK,"insertNewColumnsInFragment");function tK(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=bt.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=ZE(i,r);else{let u=JSON.parse((0,ao.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Pu(u[Do]),l=Z8(l,i,u),l=eK(i,n,l,r,u);let g=Fm(u,r);u[Do][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ao.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(tK,"updateColumnsInFragment");function nb(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=z8(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),T=l.fragmentName,A=T.substr(i.length+1),E=A.split(".");T=E[E.length-1]+bt.FRAGMENTNAMEPART+g;let R=p==null?void 0:p.split("."),U=R?R[R.length-1]:null,W=U?U+bt.FRAGMENTNAMEPART+g:null,j=tK(s,T,A,m,r),ae=!1;if(p?ae=q8(s,W,n):ae=!0,!j){let Z={fileContent:ZE(m,r),dataSourceUri:u,changeIndicator:bt.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:eb(n),dataSourceUri:u.replace(T,W),changeIndicator:bt.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(nb,"exportCustomColumnsToFragment");var _m=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=$8.get((u=e.component)==null?void 0:u.name);if(!i){let T=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;T||(T="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(T="AnalyticalTable"),i=T+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var si=te(le());var ib="/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+si.PropertyName.table:zt(e,t),"getSmartTableControlId");function Um(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(Um,"importCreateParameters");function jm(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(jm,"exportCreateParametersFields");function nK(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}o(nK,"exportVariants");function iK(e,t){t.variants&&(Object.keys(t.variants).length>0?nK(e,t):delete e.variants)}o(iK,"exportQuickVariantSelectionX");function rK(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(rK,"importMultiEdit");var Dm=class Dm{};o(Dm,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Dm.prototype,"strategy",2);var rb=Dm,Il=class Il{};o(Il,"MultiEdit"),h([y({manifest:{path:o(t=>Ur(t)+ib,"path")}})],Il.prototype,"enabled",2),h([y({manifest:{path:o(t=>Ur(t)+ib,"path")}})],Il.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ur(t)+ib,"path"),export:Bg}})],Il.prototype,"ignoredFields",2);var ob=Il;function Iu(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(Iu,"importType");function Ll(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Ll,"exportType");function Fl(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(Fl,"deleteType");var Vm=class Vm{};o(Vm,"DataLoadSettings"),h([y({manifest:{path:o(t=>R0(t),"path")}}),x({since:"1.75.2"})],Vm.prototype,"loadDataOnAppLaunch",2);var ab=Vm,Mm=class Mm{};o(Mm,"Fields4Dialog"),h([y({manifest:{path:o(t=>Ur(t)+"/createWithParameterDialog","path"),export:jm}}),x({since:"1.77.0"})],Mm.prototype,"fields",2);var sb=Mm,xu=class xu{};o(xu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],xu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],xu.prototype,"variants",2);var cb=xu,Ol=class Ol{};o(Ol,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Ol.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Ol.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATHX,"path"),export:iK}}),x({since:"1.48.0"})],Ol.prototype,"variants",2);var lb=Ol,ai=class ai{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(ai,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>Ur(t),"path"),import:Um}}),x({since:"1.77.0"})],ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:zt,controlType:o(()=>si.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.38.0"})],ai.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.26.0"})],ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.50.0"})],ai.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],ai.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],ai.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.38.0"})],ai.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.120.0"})],ai.prototype,"copy",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.70.0"})],ai.prototype,"selectAll",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.70.0"})],ai.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],ai.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],ai.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.56.0"}),Se("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],ai.prototype,"enableTableFilterInPageVariant",2),h([kt("toolBar")],ai.prototype,"toolBar",2);var ts=ai,Vo=class Vo extends ts{};o(Vo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"})],Vo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Vo.prototype,"createWithFilters",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType"),createFlexChange:Ee},generate:zn}),x({since:"1.52.0"})],Vo.prototype,"popinLayout",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType"),createFlexChange:Ee}})],Vo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.77.0"})],Vo.prototype,"inlineDelete",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType"),createFlexChange:Ee}}),x({since:"1.16.0"})],Vo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>Ur(t),"path"),import:rK}}),x({since:"1.98.0"})],Vo.prototype,"multiEdit",2);var ac=Vo,wm=class wm extends ts{};o(wm,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"})],wm.prototype,"type",2);var fb=wm,so=class so extends ts{};o(so,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"})],so.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],so.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")}})],so.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],so.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],so.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],so.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],so.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],so.prototype,"createWithFilters",2);var ub=so,Mo=class Mo extends ts{};o(Mo,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"})],Mo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Mo.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")}})],Mo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Mo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Mo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Mo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],Mo.prototype,"allFiltersAsInParameters",2);var Nl=Mo,km=class km extends Nl{};o(km,"ALPResponsiveTable"),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType"),createFlexChange:Ee}}),x({since:"1.16.0"})],km.prototype,"growingThreshold",2);var pb=km,hb=class hb extends Nl{};o(hb,"ALPGridTable");var db=hb,yb=class yb extends Nl{};o(yb,"ALPAnalyticalTable");var gb=yb,Cu=class Cu extends ts{};o(Cu,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"})],Cu.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Cu.prototype,"createWithFilters",2);var mb=Cu;var Ou=te(le());var oK=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${Qi(i).replace(":2f","::")}`},"getActionButtonId"),aK=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}template::${i}`},"getStandardActionButtonId"),sK=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}${em}${i}`},"getStandardFooterActionOPButtonId"),Ob=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=zi(n);return`${e}action::${i}::${Qi(r)}`},"buildIntentBasedActionId"),cK=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${Qi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ns={controlId:oK,controlType:o(()=>Ou.ControlType.Button,"controlType"),createFlexChange:Ee},Nu={controlId:aK,controlType:o(()=>Ou.ControlType.Button,"controlType"),createFlexChange:Ee},i1={controlId:sK,controlType:o(()=>Ou.ControlType.Button,"controlType"),createFlexChange:Ee},$m={controlId:cK,controlType:o(()=>Ou.ControlType.Button,"controlType"),createFlexChange:Ee},sc=class sc{};o(sc,"Action"),h([y({flex:ns})],sc.prototype,"tooltip",2),h([y({flex:ns})],sc.prototype,"icon",2),h([y({flex:ns})],sc.prototype,"activeIcon",2),h([y({flex:ns})],sc.prototype,"type",2);var vb=sc,cc=class cc{};o(cc,"ToolBarAction"),h([y({flex:ns})],cc.prototype,"tooltip",2),h([y({flex:ns})],cc.prototype,"icon",2),h([y({flex:ns})],cc.prototype,"activeIcon",2),h([y({flex:ns})],cc.prototype,"type",2);var Tb=cc,lc=class lc{};o(lc,"FooterAction"),h([y({flex:$m})],lc.prototype,"tooltip",2),h([y({flex:$m})],lc.prototype,"icon",2),h([y({flex:$m})],lc.prototype,"activeIcon",2),h([y({flex:$m})],lc.prototype,"type",2);var Eb=lc,Bm=class Bm{};o(Bm,"Share"),h([y({flex:Nu})],Bm.prototype,"visible",2);var bb=Bm,Hm=class Hm{};o(Hm,"ShareOP"),h([y({flex:Nu})],Hm.prototype,"visible",2);var Ab=Hm,Gm=class Gm{};o(Gm,"UpAndDownNavigationOP"),h([y({flex:Nu})],Gm.prototype,"visible",2);var Sb=Gm,Wm=class Wm{};o(Wm,"SaveAndEditOP"),h([y({flex:i1,generate:mt})],Wm.prototype,"visible",2);var Pb=Wm,Km=class Km{};o(Km,"HeaderActionStandard"),h([y({flex:Nu})],Km.prototype,"visible",2);var xb=Km,Xm=class Xm{};o(Xm,"ObjectPageHeaderActionStandard"),h([y({flex:Nu})],Xm.prototype,"visible",2);var Cb=Xm,Qm=class Qm{};o(Qm,"ObjectPageFooterActionStandard"),h([y({flex:i1})],Qm.prototype,"visible",2);var Ib=Qm;var Ru=te(le());var lK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=zi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),fK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=zi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),uK=o((e,t,n)=>{let{actionId:i}=zi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),Nb={controlId:lK,controlType:o(()=>Ru.ControlType.TableColumn,"controlType"),createFlexChange:Ee},Lu={controlId:uK,controlType:o(()=>Ru.ControlType.Button,"controlType"),createFlexChange:Ee},r1={...Nb,controlId:fK},qm={...Lu,controlId:Ob},Fu=class Fu{};o(Fu,"TableColumn"),h([y({flex:{controlId:yE,controlType:o(()=>Ru.ControlType.TableColumn,"controlType"),createFlexChange:Ee}})],Fu.prototype,"width",2),h([y({flex:{controlId:yE,controlType:o(()=>Ru.ControlType.TableColumn,"controlType"),createFlexChange:Ee},generate:zn})],Fu.prototype,"hAlign",2);var Lb=Fu,pa=class pa{};o(pa,"TableColumnAction"),h([y({flex:Nb})],pa.prototype,"width",2),h([y({flex:Nb,generate:zn})],pa.prototype,"hAlign",2),h([y({flex:Lu})],pa.prototype,"tooltip",2),h([y({flex:Lu})],pa.prototype,"icon",2),h([y({flex:Lu})],pa.prototype,"activeIcon",2),h([y({flex:Lu})],pa.prototype,"type",2);var zm=pa,da=class da extends zm{};o(da,"TableColumnActionIntentBased"),h([y({flex:r1})],da.prototype,"width",2),h([y({flex:r1,generate:zn})],da.prototype,"hAlign",2),h([y({flex:qm})],da.prototype,"tooltip",2),h([y({flex:qm})],da.prototype,"icon",2),h([y({flex:qm})],da.prototype,"activeIcon",2),h([y({flex:qm})],da.prototype,"type",2);var Fb=da,_b=class _b{};o(_b,"TableCustomColumn");var Rb=_b;var Vb=class Vb{};o(Vb,"ToolBar");var Db=Vb;var fc=te(le());var _u=o(e=>e+fc.PropertyName.chart,"getSmartChartControlId"),is=class is{};o(is,"ChartSettings"),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),createFlexChange:Ee}})],is.prototype,"showLegendButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),createFlexChange:Ee}})],is.prototype,"showDownloadButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),createFlexChange:Ee}})],is.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.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"),createFlexChange:Ee}})],is.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>F0(t),"path")}}),x({since:"1.81.0"})],is.prototype,"showDataLabel",2);var Mb=is;var ga=class ga{};o(ga,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"groupId",2);var wb=ga;var o1=te(le());var pK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",zt(e,n)},"getAvatarControlId"),rs=class rs{};o(rs,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.46.0"})],rs.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.46.0"})],rs.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"})],rs.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"}),Se("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],rs.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:pK,controlType:o(()=>o1.ControlType.Avatar,"controlType"),createFlexChange:Ee},generate:mt})],rs.prototype,"displayShape",2);var kb=rs;var Ym=te(le());var dK=o((e,t,n,i)=>{if(i()===Ym.ControlType.Button||i()===Ym.ControlType.HeaderAction){let r=n[2];return`${e}action::${Qi(r)}`}return zt(e,t)},"getActionButtonId"),Du={controlId:dK,controlType:o(()=>Ym.ControlType.HeaderAction,"controlType"),createFlexChange:Ee},os=class os{};o(os,"ObjectPageHeaderAction"),h([y({flex:Du,generate:mt})],os.prototype,"visible",2),h([y({flex:Du})],os.prototype,"tooltip",2),h([y({flex:Du})],os.prototype,"icon",2),h([y({flex:Du})],os.prototype,"activeIcon",2),h([y({flex:Du})],os.prototype,"type",2);var Ub=os;var Vu=te(le());var ih="header::headerEditable::",gK=o((e,t,n,i,r)=>`${e}${ih}${r}`,"getDataPointHeaderSectionId"),mK=o((e,t,n,i,r)=>`${e}${ih}${r}::ContactAddress`,"getAddressHeaderSectionId"),hK=o((e,t,n,i,r)=>`${e}${ih}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),a1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Vu.FacetTitlePrefix)?r.split(Vu.FacetTitlePrefix)[1]:a;return`${e}${ih}${s}::Form`},"getFormHeaderSectionId"),Mu={controlType:o(()=>Vu.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:Ee},Jm=class Jm{};o(Jm,"CommonHeaderFacetSettings"),h([y({flex:{...Mu,controlId:a1},generate:mt})],Jm.prototype,"visible",2);var uc=Jm,Zm=class Zm extends uc{};o(Zm,"ObjectPageHeaderSectionForm"),h([y({flex:{...Mu,controlId:a1}})],Zm.prototype,"visible",2);var jb=Zm,eh=class eh extends uc{};o(eh,"ObjectPageHeaderSectionChart"),h([y({flex:{...Mu,controlId:hK}})],eh.prototype,"visible",2);var $b=eh,th=class th extends uc{};o(th,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...Mu,controlId:gK}})],th.prototype,"visible",2);var Bb=th,nh=class nh extends uc{};o(nh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...Mu,controlId:mK}})],nh.prototype,"visible",2);var Hb=nh,Wb=class Wb{};o(Wb,"HeaderSections");var Gb=Wb;var Xb=te(le());var yK=o((e,t,n,i)=>{if(i()===Xb.ControlType.Button){let{actionId:r}=zi(n);return`${e}action::${Qi(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),wu={controlId:yK,controlType:o(()=>Xb.ControlType.Button,"controlType"),createFlexChange:Ee},as=class as{};o(as,"ObjectPageFooterAction"),h([y({flex:wu,generate:mt})],as.prototype,"visible",2),h([y({flex:wu})],as.prototype,"tooltip",2),h([y({flex:wu})],as.prototype,"icon",2),h([y({flex:wu})],as.prototype,"activeIcon",2),h([y({flex:wu})],as.prototype,"type",2);var Kb=as;var ku=te(le());var rh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),pc=class pc{};o(pc,"ObjectPageLayout"),h([y({flex:{controlId:rh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType"),createFlexChange:Ee},generate:mt})],pc.prototype,"showHeaderContent",2),h([y({flex:{controlId:rh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType"),createFlexChange:Ee}})],pc.prototype,"showAnchorBar",2),h([y({flex:{controlId:rh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType"),createFlexChange:Ee}})],pc.prototype,"useIconTabBar",2),h([y({flex:{controlId:rh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType"),createFlexChange:Ee}}),x({since:"1.34.0"})],pc.prototype,"alwaysShowContentHeader",2);var Qb=pc;var s1=te(le());var dc=class dc{};o(dc,"BaseCustomSection"),h([y({manifest:{path:ua,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],dc.prototype,"relatedFacet",2),h([y({manifest:{path:ua,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],dc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>ua(t,{},i,s1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],dc.prototype,"title",2),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],dc.prototype,"className",2);var $u=dc,Uu=class Uu extends $u{};o(Uu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],Uu.prototype,"fragmentName",2),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],Uu.prototype,"type",2);var Bu=Uu,ju=class ju extends $u{};o(ju,"ObjectPageCustomSectionView"),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],ju.prototype,"viewName",2),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],ju.prototype,"type",2);var Hu=ju;var Ji=te(le());var c1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),Ji.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),l1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),f1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),gc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),u1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),p1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),oh=class oh{};o(oh,"ObjectPageSectionV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],oh.prototype,"visible",2);var qb=oh,ah=class ah{};o(ah,"ObjectPageSectionFormV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],ah.prototype,"visible",2);var zb=ah,sh=class sh{};o(sh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],sh.prototype,"visible",2);var Yb=sh,ch=class ch{};o(ch,"ObjectPageSectionTableV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],ch.prototype,"visible",2);var Jb=ch,lh=class lh{};o(lh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],lh.prototype,"visible",2);var Zb=lh,fh=class fh{};o(fh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:gc,controlType:o(()=>Ji.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],fh.prototype,"visible",2);var eA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:u1,controlType:o(()=>Ji.ControlType.SubSection,"controlType"),createFlexChange:Ee},generate:mt})],uh.prototype,"visible",2);var tA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:l1,controlType:o(()=>Ji.ControlType.Group,"controlType"),createFlexChange:Ee},generate:mt})],ph.prototype,"visible",2);var nA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:f1,controlType:o(()=>Ji.ControlType.SmartChart,"controlType"),createFlexChange:Ee},generate:mt})],dh.prototype,"visible",2);var iA=dh,gh=class gh{};o(gh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:p1,controlType:o(()=>Ji.ControlType.SubSection,"controlType"),createFlexChange:Ee},generate:mt})],gh.prototype,"visible",2);var rA=gh,mh=class mh{};o(mh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:c1,controlType:o(()=>Ji.ControlType.SmartTable,"controlType"),createFlexChange:Ee},generate:mt})],mh.prototype,"visible",2);var oA=mh;var hh=class hh{};o(hh,"ObjectPageChart"),h([y({manifest:{path:_0}}),x({since:"1.78.0"})],hh.prototype,"variantManagement",2);var aA=hh,yh=class yh{};o(yh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Ri(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],yh.prototype,"variantManagement",2);var sA=yh;var mr=te(le());var mc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=mr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),zt(e,a)},"getSmartTableControlId"),Gu=class Gu{};o(Gu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>io(t,n,i)+mr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Gu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>io(t,n,i)+mr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Gu.prototype,"variants",2);var cA=Gu,vh=class vh{};o(vh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>gr(t,n,i)+"/createWithParameterDialog","path"),export:jm}}),x({since:"1.77.0"})],vh.prototype,"fields",2);var lA=vh,ci=class ci{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(ci,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:gr,import:Um}}),x({since:"1.77.0"})],ci.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.28.0"})],ci.prototype,"editable",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.95.0"}),Se("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],ci.prototype,"showPasteButton",2),h([y({manifest:{path:gr}}),x({since:"1.54.0"})],ci.prototype,"multiSelect",2),h([y({manifest:{path:gr}}),x({since:"1.70.0"})],ci.prototype,"selectAll",2),h([y({manifest:{path:gr}}),x({since:"1.70.0"})],ci.prototype,"selectionLimit",2),h([y({manifest:{path:io}}),x({since:"1.63.0"})],ci.prototype,"quickVariantSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.26.0"})],ci.prototype,"useExportToExcel",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.50.0"})],ci.prototype,"exportType",2),h([y({manifest:{path:io}}),x({since:"1.48.5"}),Se("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],ci.prototype,"createMode",2),h([y({manifest:{path:io}}),x({since:"1.61.0"})],ci.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:gr}}),x({since:"1.78.0"})],ci.prototype,"variantManagement",2),h([y({manifest:{path:gr}}),x({since:"1.120.0"})],ci.prototype,"copy",2),h([kt("toolBar")],ci.prototype,"toolBar",2);var hc=ci,ss=class ss extends hc{};o(ss,"ObjectPageResponsiveTable"),h([y({manifest:{path:gr}})],ss.prototype,"type",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.Table,"controlType"),createFlexChange:Ee}})],ss.prototype,"includeItemInSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.Table,"controlType"),createFlexChange:Ee},generate:mt}),x({since:"1.52.0"})],ss.prototype,"popinLayout",2),h([y({manifest:{path:gr}}),x({since:"1.77.0"})],ss.prototype,"inlineDelete",2),h([y({flex:{controlId:mc,controlType:o(()=>mr.ControlType.Table,"controlType"),createFlexChange:Ee}}),x({since:"1.16.0"})],ss.prototype,"growingThreshold",2);var yc=ss,Wu=class Wu extends hc{};o(Wu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:gr}})],Wu.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var fA=Wu,Ku=class Ku extends hc{};o(Ku,"ObjectPageGridTable"),h([y({manifest:{path:gr}})],Ku.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Ku.prototype,"condensedTableLayout",2);var uA=Ku,Xu=class Xu extends hc{};o(Xu,"ObjectPageTreeTable"),h([y({manifest:{path:gr}})],Xu.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Xu.prototype,"condensedTableLayout",2);var pA=Xu,wo=class wo{};o(wo,"GlobalTableSettings"),h([y({manifest:{path:Qa}}),x({since:"1.70.0"})],wo.prototype,"selectAll",2),h([y({manifest:{path:Qa}}),x({since:"1.78.0"})],wo.prototype,"variantManagement",2),h([y({manifest:{path:Qa}}),x({since:"1.120.0"})],wo.prototype,"copy",2),h([y({manifest:{path:Qa}})],wo.prototype,"type",2),h([y({manifest:{path:Qa}}),x({since:"1.54.0"})],wo.prototype,"multiSelect",2),h([y({manifest:{path:Qa}}),x({since:"1.67.0"})],wo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Qa}}),x({since:"1.77.0"})],wo.prototype,"inlineDelete",2);var dA=wo;var d1=te(le());var vK=o((e,t,n,i,r)=>{let{actionId:a}=zi(n),s=qn(n[1],r);return`${e}${s}::action::${Qi(a).replace(":2f","::")}`},"getActionButtonId"),Qu={controlId:vK,controlType:o(()=>d1.ControlType.Button,"controlType"),createFlexChange:Ee},cs=class cs{};o(cs,"ObjectPageToolBarAction"),h([y({flex:Qu,generate:mt})],cs.prototype,"visible",2),h([y({flex:Qu})],cs.prototype,"tooltip",2),h([y({flex:Qu})],cs.prototype,"icon",2),h([y({flex:Qu})],cs.prototype,"activeIcon",2),h([y({flex:Qu})],cs.prototype,"type",2);var gA=cs;function ls(e){return e.replace("/","::")}o(ls,"convertActionKey");function hA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(hA,"convertSelector");function TK(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(TK,"addSmartFilterBarFlex");function EK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=Qi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(T=>T.startsWith("sSemanticObject")),g=u.find(T=>T.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let T=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(T,r),i.set(r,A)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(EK,"filterActions");function bK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(bK,"addColumnActionConfigPart");function AK(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(AK,"getActionId");function SK(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=EK(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"&&bK(s,e,m);let T=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&T&&(T[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(SK,"addActionFlex");function PK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Yn(e[Ge.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[Ge.PropertyName.chart],t):e[Ge.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(PK,"addSmartChartFlex");function xK(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===Ge.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(Ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Ge.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTableWithMultiSelect":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===Ge.ControlType.TableColumn)&&vm(e.table,i,n)}o(xK,"addAdditionalFlexChanges");function Th(e,t,n,i){var r,a;try{let s=$a(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(Ge.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(Ge.PageTypeV2.AnalyticalListPage))switch(s.controlId=hA(s.controlId),s.controlType){case Ge.ControlType.SmartFilterBar:{TK(e,l,s,n);break}case Ge.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case Ge.ControlType.Button:{let u=AK(s);u&&SK(e,l,s,n,u);break}case Ge.ControlType.SmartChart:{PK(e,l,s,n);break}default:{xK(e,s,n);break}}}catch(s){se(i,{severity:Ge.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Th,"addFlex");function CK(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(CK,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=Yn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Bn(t,g),pl(p,s,u,e),qg(l,s,g,r)}CK(u,e)}}o(_n,"transferSettingsOfObject");function Eh(e,t){var r,a,s,l,u,p,g,m,T;let n=e[Ge.ManifestSection.generic].pages[t],i=Ge.v2.TableTypeV2.ResponsiveTable;return(r=e[Ge.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[Ge.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[Ge.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):((T=n.component)==null?void 0:T.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=Ge.v2.TableTypeV2.AnalyticalTable),i}o(Eh,"determineTableType");function g1(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 T={...(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&&(T.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(T)}}o(g1,"evaluateFragmentColumn");function IK(e,t,n,i){let r;if(e===Ge.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===Ge.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(IK,"determineCellsFragmentName");function OK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,m1.xml2json)(e[0].fileContent,{compact:!0}))[Do],g=Pu(p);if(g)if((l=t[Ge.PropertyName.table])!=null&&l.columns||(t[Ge.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)g1(m,n,i,r,t,a,s);else g1(g,n,i,r,t,a,s)}}o(OK,"analyzeFilteredFragments");function NK(e,t,n,i,r){for(let a of Object.keys(e)){let s=a.split("|"),[l,u]=s,p=s[2],g=Ge.ViewTemplateType[l];if(g&&"|"+u===t){let m=e[a].type?e[a].type.toLowerCase():"xml",T=e[a].fragmentName;if(!T)continue;let A=IK(g,e,u,p),E=T.split(".");T=E[E.length-1]+Ge.FRAGMENTNAMEPART+m;let O=r.filter(R=>R.dataSourceUri.endsWith(T));OK(O,i,e,a,p,g,A)}}}o(NK,"processViewExtensions");function Rl(e,t,n,i,r,a){if(!r)return;let s="|"+(a&&a.target?a.target:n.entitySet);if(t[Ge.ManifestSection.ui5]&&t[Ge.ManifestSection.ui5].extends&&t[Ge.ManifestSection.ui5].extends.extensions&&t[Ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=Ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t[Ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!u)return;NK(u,s,a,e,r)}}o(Rl,"addFragments");function bh(e,t,n){if(e.header={actions:{}},n[Ge.DefinitionName.HeaderActionsStandard]){let i=n[Ge.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(Ge.PageTypeV2.ListReport,r,{})}}o(bh,"importHeaderActions");var Xt=te(le());var y1=te(le());var yA={};Ws(yA,{ANNOERR:()=>qK,ANNOTATIONFILE:()=>zK,COMPONENTNOTDEFINED:()=>YK,CONTEXTPATHCOULDNOTBERESOLVED:()=>WK,ENTITYSETNOTFOUND:()=>GK,FLEXERROR:()=>s3,INCONSISTENTSCHEMA:()=>h3,INVALIDANCHOR:()=>c3,INVALIDEXTENSION:()=>l3,INVALIDTARGETDEFINITION:()=>u3,MACROS_ANNOTATION_ERROR:()=>g3,NOALP:()=>XK,NOANNOTATIONFORPATH:()=>BK,NOBASEPATH:()=>RK,NOCHARTS:()=>t3,NOENTITYSET:()=>wK,NOENTITYTYPE4SET:()=>kK,NOFE:()=>DK,NOFRAGMENT:()=>f3,NOGENERICSCHEMA:()=>VK,NOID4SECTION:()=>p3,NOLINEITEMANDCHARTS:()=>n3,NOLINEITEMFORPATH:()=>HK,NOLINEITEMS:()=>e3,NOLR:()=>KK,NOPAGEFORENTITYSET:()=>MK,NOPAGES:()=>_K,NOPRESENTATIONVARIANT:()=>UK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>jK,NOPRESENTATIONVARIANTFORSPV:()=>$K,NOROUTING:()=>JK,NOROUTINGID:()=>a3,NOTARGET:()=>o3,NOTARGETS:()=>r3,NOTEMPLATE:()=>QK,NOUIANNOTATIONS:()=>ZK,NOVISUALIZATIONS:()=>i3,TYPEERROR:()=>m3,UNKNOWNMINUI5VERSION:()=>FK,WRONGMINUI5VERSION:()=>LK,XMLPARSEFAILURE:()=>d3,default:()=>y3});var LK="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",FK="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",RK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",_K="No pages found in manifest for app with id '{{- appId}}'",DK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",VK="No generic schema found while generating page schema for {{- pageType}}",MK="No page found in manifest for entitySet '{{- entitySet}}'",wK="No entitySet defined for page '{{- pageName}}'",kK="No entityType could be found for the given entity set '{{- entitySetName}}'",UK="No PresentationVariant defined for '{{- key}}'",jK="No PresentationVariant found for default SelectionPresentationVariant",$K="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",BK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",HK="No line item annotation found for path '{{- annotationPath}}'",GK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",WK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",KK="No page found in manifest for list report",XK="No page found in manifest for analytical list page",QK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",qK="Error while parsing annotation files",zK="Annotation file: '{{- file}}'",YK="Component name is not defined for page '{{- pageName}}'",JK="Incomplete manifest definition: no routing defined",ZK="No UI Annotation defined for entity type '{{- entityType }}'",e3="UI.LineItem annotation has not been defined",t3="UI.Chart annotation has not been defined",n3="Neither UI.LineItem nor UI.Chart annotation has been defined",i3="Empty Collection for Visualizations",r3="Incomplete manifest definition: no targets defined",o3="Invalid reference: annotation target '{{- target}}' not found",a3="No page found in manifest for routingId '{{- routingId}}'",s3="Error while parsing flex change",c3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",l3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",f3="fragmentName is undefined for columnKey '{{- columnKey}}'",u3="Invalid routing target definition in manifest: '{{- target}}'",p3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",d3="Parsing of XML file failed with error - {{- error}}",g3="Error during resolving annotation for '{{- control}}'",m3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",h3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",y3={WRONGMINUI5VERSION:LK,UNKNOWNMINUI5VERSION:FK,NOBASEPATH:RK,NOPAGES:_K,NOFE:DK,NOGENERICSCHEMA:VK,NOPAGEFORENTITYSET:MK,NOENTITYSET:wK,NOENTITYTYPE4SET:kK,NOPRESENTATIONVARIANT:UK,NOPRESENTATIONVARIANTFORDEFAULTSPV:jK,NOPRESENTATIONVARIANTFORSPV:$K,NOANNOTATIONFORPATH:BK,NOLINEITEMFORPATH:HK,ENTITYSETNOTFOUND:GK,CONTEXTPATHCOULDNOTBERESOLVED:WK,NOLR:KK,NOALP:XK,NOTEMPLATE:QK,ANNOERR:qK,ANNOTATIONFILE:zK,COMPONENTNOTDEFINED:YK,NOROUTING:JK,NOUIANNOTATIONS:ZK,NOLINEITEMS:e3,NOCHARTS:t3,NOLINEITEMANDCHARTS:n3,NOVISUALIZATIONS:i3,NOTARGETS:r3,NOTARGET:o3,NOROUTINGID:a3,FLEXERROR:s3,INVALIDANCHOR:c3,INVALIDEXTENSION:l3,NOFRAGMENT:f3,INVALIDTARGETDEFINITION:u3,NOID4SECTION:p3,XMLPARSEFAILURE:d3,MACROS_ANNOTATION_ERROR:g3,TYPEERROR:m3,INCONSISTENTSCHEMA:h3};function h1(e){e.addResourceBundle(e.language,"translation",yA)}o(h1,"initI18n");function nn(e="en"){q.init({resources:{en:{translation:y1.default}},lng:e,fallbackLng:"en",joinArrays:`
292
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Lm=require("path");var Do="core:FragmentDefinition",Nm="sap.ui.table",tE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Nm,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Nm,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Nm,name:"AnalyticalColumn"}]]),$8=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]]),e1={type:"element",name:"Text",attributes:{text:"Placeholder"}},B8=JSON.stringify(e1);function H8(e,t){let n=t?e[Do]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let a=i.get(n[r]);i.set(n[r],a?[...a,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}o(H8,"getFragmentNamespaces");function Z0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(Z0,"getTagName");function Fm(e,t,n=e){let i=H8(n,!!(t||n!==e));if(t){let r=tE.get(t);return Z0(r,i.get(r.namespace))}else{let r=tE.keys();for(let a of r){let s=tE.get(a),l=i?Z0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Fm,"getTagNameFromFragmentJSON");function Pu(e,t=e){let n=Fm(e,void 0,t);return e[n]}o(Pu,"getRootCustomColumnFromFragmentJSON");function G8(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(G8,"addP13nData");function t1(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=G8(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(t1,"handleFragmentColumn");function W8(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(Lm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,ao.xml2json)(u.fileContent,{compact:!0})),m=Fm(g[Do]);m&&(delete g[Do][m],u.fileContent=(0,ao.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}));break}}}o(W8,"deleteColumnsFromFragment");function n1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===B8&&(e.splice(n,1),t-=1,t===0));n++);}o(n1,"deleteNumberOfCells");function K8(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,ao.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&n1(l.elements[0].elements,u.length),s.fileContent=(0,ao.json2xml)(JSON.stringify(l),{spaces:4});break}}o(K8,"deleteCellsFromFragment");function Rm(e,t,n,i){if(i){W8(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&K8(a,i,n)}}o(Rm,"deleteColumnFromFragment");function X8(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(e1)}o(X8,"addNewColumnsInFragment");function Q8(e,t){let n=JSON.parse((0,ao.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)X8(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;n1(a,r)}e.fileContent=(0,ao.json2xml)(JSON.stringify(n),{spaces:4})}}o(Q8,"updateNonEmptyCellsFragment");function q8(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Lm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=eE(n):Q8(r,n);break}}return i}o(q8,"updateCellsFragment");function z8(e,t,n,i,r){var g;let a,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(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,Lm.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),T=Bn(l,m),A=n.reduce((b,O)=>O.cellsFragmentName?O:b);A&&A.cellsFragmentName?(T.fragmentName=s=A.cellsFragmentName,T.className=n[0].className,T.type=p.toUpperCase()):L0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(z8,"exportCustomColumnsToManifest");function Y8(e,t,n,i,r){let a=Jb(e,t);if(a){let s=JSON.parse((0,ao.xml2json)(a,{compact:!0})),l=Pu(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(Y8,"insertNewColumnInFragment");function J8(e,t){let n=[];for(let i=0;i<e.length;i++)t1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(J8,"processCustomColumnInArray");function Z8(e,t,n){if(e){if(Array.isArray(e))J8(e,t);else if(!t1(e,t)){let r=Fm(n[Do]);r&&(delete n[Do][r],e=void 0)}}return e}o(Z8,"maintainExistingColumnInFragment");function eK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=Y8(a,i,n,r,s)}return n}o(eK,"insertNewColumnsInFragment");function tK(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=Zb(i,r);else{let u=JSON.parse((0,ao.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Pu(u[Do]),l=Z8(l,i,u),l=eK(i,n,l,r,u);let g=Fm(u,r);u[Do][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ao.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(tK,"updateColumnsInFragment");function nE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=z8(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),T=l.fragmentName,A=T.substr(i.length+1),b=A.split(".");T=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let R=p==null?void 0:p.split("."),U=R?R[R.length-1]:null,W=U?U+Et.FRAGMENTNAMEPART+g:null,j=tK(s,T,A,m,r),ae=!1;if(p?ae=q8(s,W,n):ae=!0,!j){let Z={fileContent:Zb(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:eE(n),dataSourceUri:u.replace(T,W),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(nE,"exportCustomColumnsToFragment");var _m=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=$8.get((u=e.component)==null?void 0:u.name);if(!i){let T=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;T||(T="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(T="AnalyticalTable"),i=T+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var si=te(le());var iE="/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+si.PropertyName.table:zt(e,t),"getSmartTableControlId");function Um(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(Um,"importCreateParameters");function jm(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(jm,"exportCreateParametersFields");function nK(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let a in i)r.indexOf(a)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[a]=i[a],delete i[a]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}o(nK,"exportVariants");function iK(e,t){t.variants&&(Object.keys(t.variants).length>0?nK(e,t):delete e.variants)}o(iK,"exportQuickVariantSelectionX");function rK(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(rK,"importMultiEdit");var Dm=class Dm{};o(Dm,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Dm.prototype,"strategy",2);var rE=Dm,Il=class Il{};o(Il,"MultiEdit"),h([y({manifest:{path:o(t=>Ur(t)+iE,"path")}})],Il.prototype,"enabled",2),h([y({manifest:{path:o(t=>Ur(t)+iE,"path")}})],Il.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ur(t)+iE,"path"),export:Bg}})],Il.prototype,"ignoredFields",2);var oE=Il;function Iu(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(Iu,"importType");function Ll(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Ll,"exportType");function Fl(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(Fl,"deleteType");var Vm=class Vm{};o(Vm,"DataLoadSettings"),h([y({manifest:{path:o(t=>R0(t),"path")}}),x({since:"1.75.2"})],Vm.prototype,"loadDataOnAppLaunch",2);var aE=Vm,Mm=class Mm{};o(Mm,"Fields4Dialog"),h([y({manifest:{path:o(t=>Ur(t)+"/createWithParameterDialog","path"),export:jm}}),x({since:"1.77.0"})],Mm.prototype,"fields",2);var sE=Mm,xu=class xu{};o(xu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],xu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],xu.prototype,"variants",2);var cE=xu,Ol=class Ol{};o(Ol,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Ol.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Ol.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+si.QUICKVARPATHX,"path"),export:iK}}),x({since:"1.48.0"})],Ol.prototype,"variants",2);var lE=Ol,ai=class ai{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(ai,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>Ur(t),"path"),import:Um}}),x({since:"1.77.0"})],ai.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:zt,controlType:o(()=>si.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.38.0"})],ai.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.26.0"})],ai.prototype,"useExportToExcel",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.50.0"})],ai.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],ai.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],ai.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.38.0"})],ai.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.120.0"})],ai.prototype,"copy",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.70.0"})],ai.prototype,"selectAll",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.70.0"})],ai.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],ai.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],ai.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],ai.prototype,"enableTableFilterInPageVariant",2),h([kt("toolBar")],ai.prototype,"toolBar",2);var ts=ai,Vo=class Vo extends ts{};o(Vo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Vo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Vo.prototype,"createWithFilters",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType"),createFlexChange:Ee},generate:zn}),x({since:"1.52.0"})],Vo.prototype,"popinLayout",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType"),createFlexChange:Ee}})],Vo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>Ur(t),"path")}}),x({since:"1.77.0"})],Vo.prototype,"inlineDelete",2),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType"),createFlexChange:Ee}}),x({since:"1.16.0"})],Vo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>Ur(t),"path"),import:rK}}),x({since:"1.98.0"})],Vo.prototype,"multiEdit",2);var ac=Vo,wm=class wm extends ts{};o(wm,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],wm.prototype,"type",2);var fE=wm,so=class so extends ts{};o(so,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],so.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],so.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")}})],so.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],so.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],so.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],so.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],so.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],so.prototype,"createWithFilters",2);var uE=so,Mo=class Mo extends ts{};o(Mo,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Mo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Mo.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")}})],Mo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Mo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Mo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],Mo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],Mo.prototype,"allFiltersAsInParameters",2);var Nl=Mo,km=class km extends Nl{};o(km,"ALPResponsiveTable"),h([y({flex:{controlId:oc,controlType:o(()=>si.ControlType.Table,"controlType"),createFlexChange:Ee}}),x({since:"1.16.0"})],km.prototype,"growingThreshold",2);var pE=km,hE=class hE extends Nl{};o(hE,"ALPGridTable");var dE=hE,yE=class yE extends Nl{};o(yE,"ALPAnalyticalTable");var gE=yE,Cu=class Cu extends ts{};o(Cu,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Iu,export:Ll,delete:Fl}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Cu.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Cu.prototype,"createWithFilters",2);var mE=Cu;var Ou=te(le());var oK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}action::${qi(i).replace(":2f","::")}`},"getActionButtonId"),aK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}template::${i}`},"getStandardActionButtonId"),sK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}${em}${i}`},"getStandardFooterActionOPButtonId"),OE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Yi(n);return`${e}action::${i}::${qi(r)}`},"buildIntentBasedActionId"),cK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}action::${qi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ns={controlId:oK,controlType:o(()=>Ou.ControlType.Button,"controlType"),createFlexChange:Ee},Nu={controlId:aK,controlType:o(()=>Ou.ControlType.Button,"controlType"),createFlexChange:Ee},i1={controlId:sK,controlType:o(()=>Ou.ControlType.Button,"controlType"),createFlexChange:Ee},$m={controlId:cK,controlType:o(()=>Ou.ControlType.Button,"controlType"),createFlexChange:Ee},sc=class sc{};o(sc,"Action"),h([y({flex:ns})],sc.prototype,"tooltip",2),h([y({flex:ns})],sc.prototype,"icon",2),h([y({flex:ns})],sc.prototype,"activeIcon",2),h([y({flex:ns})],sc.prototype,"type",2);var vE=sc,cc=class cc{};o(cc,"ToolBarAction"),h([y({flex:ns})],cc.prototype,"tooltip",2),h([y({flex:ns})],cc.prototype,"icon",2),h([y({flex:ns})],cc.prototype,"activeIcon",2),h([y({flex:ns})],cc.prototype,"type",2);var TE=cc,lc=class lc{};o(lc,"FooterAction"),h([y({flex:$m})],lc.prototype,"tooltip",2),h([y({flex:$m})],lc.prototype,"icon",2),h([y({flex:$m})],lc.prototype,"activeIcon",2),h([y({flex:$m})],lc.prototype,"type",2);var bE=lc,Bm=class Bm{};o(Bm,"Share"),h([y({flex:Nu})],Bm.prototype,"visible",2);var EE=Bm,Hm=class Hm{};o(Hm,"ShareOP"),h([y({flex:Nu})],Hm.prototype,"visible",2);var AE=Hm,Gm=class Gm{};o(Gm,"UpAndDownNavigationOP"),h([y({flex:Nu})],Gm.prototype,"visible",2);var SE=Gm,Wm=class Wm{};o(Wm,"SaveAndEditOP"),h([y({flex:i1,generate:mt})],Wm.prototype,"visible",2);var PE=Wm,Km=class Km{};o(Km,"HeaderActionStandard"),h([y({flex:Nu})],Km.prototype,"visible",2);var xE=Km,Xm=class Xm{};o(Xm,"ObjectPageHeaderActionStandard"),h([y({flex:Nu})],Xm.prototype,"visible",2);var CE=Xm,Qm=class Qm{};o(Qm,"ObjectPageFooterActionStandard"),h([y({flex:i1})],Qm.prototype,"visible",2);var IE=Qm;var Ru=te(le());var lK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Yi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),fK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Yi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),uK=o((e,t,n)=>{let{actionId:i}=Yi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),NE={controlId:lK,controlType:o(()=>Ru.ControlType.TableColumn,"controlType"),createFlexChange:Ee},Lu={controlId:uK,controlType:o(()=>Ru.ControlType.Button,"controlType"),createFlexChange:Ee},r1={...NE,controlId:fK},qm={...Lu,controlId:OE},Fu=class Fu{};o(Fu,"TableColumn"),h([y({flex:{controlId:yb,controlType:o(()=>Ru.ControlType.TableColumn,"controlType"),createFlexChange:Ee}})],Fu.prototype,"width",2),h([y({flex:{controlId:yb,controlType:o(()=>Ru.ControlType.TableColumn,"controlType"),createFlexChange:Ee},generate:zn})],Fu.prototype,"hAlign",2);var LE=Fu,pa=class pa{};o(pa,"TableColumnAction"),h([y({flex:NE})],pa.prototype,"width",2),h([y({flex:NE,generate:zn})],pa.prototype,"hAlign",2),h([y({flex:Lu})],pa.prototype,"tooltip",2),h([y({flex:Lu})],pa.prototype,"icon",2),h([y({flex:Lu})],pa.prototype,"activeIcon",2),h([y({flex:Lu})],pa.prototype,"type",2);var zm=pa,da=class da extends zm{};o(da,"TableColumnActionIntentBased"),h([y({flex:r1})],da.prototype,"width",2),h([y({flex:r1,generate:zn})],da.prototype,"hAlign",2),h([y({flex:qm})],da.prototype,"tooltip",2),h([y({flex:qm})],da.prototype,"icon",2),h([y({flex:qm})],da.prototype,"activeIcon",2),h([y({flex:qm})],da.prototype,"type",2);var FE=da,_E=class _E{};o(_E,"TableCustomColumn");var RE=_E;var VE=class VE{};o(VE,"ToolBar");var DE=VE;var fc=te(le());var _u=o(e=>e+fc.PropertyName.chart,"getSmartChartControlId"),is=class is{};o(is,"ChartSettings"),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),createFlexChange:Ee}})],is.prototype,"showLegendButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),createFlexChange:Ee}})],is.prototype,"showDownloadButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.ControlType.SmartChart,"controlType"),createFlexChange:Ee}})],is.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:_u,controlType:o(()=>fc.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"),createFlexChange:Ee}})],is.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>F0(t),"path")}}),x({since:"1.81.0"})],is.prototype,"showDataLabel",2);var ME=is;var ga=class ga{};o(ga,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>ic(t,i),"path")}})],ga.prototype,"groupId",2);var wE=ga;var o1=te(le());var pK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",zt(e,n)},"getAvatarControlId"),rs=class rs{};o(rs,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.46.0"})],rs.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.46.0"})],rs.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"})],rs.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],rs.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:pK,controlType:o(()=>o1.ControlType.Avatar,"controlType"),createFlexChange:Ee},generate:mt})],rs.prototype,"displayShape",2);var kE=rs;var Ym=te(le());var dK=o((e,t,n,i)=>{if(i()===Ym.ControlType.Button||i()===Ym.ControlType.HeaderAction){let r=n[2];return`${e}action::${qi(r)}`}return zt(e,t)},"getActionButtonId"),Du={controlId:dK,controlType:o(()=>Ym.ControlType.HeaderAction,"controlType"),createFlexChange:Ee},os=class os{};o(os,"ObjectPageHeaderAction"),h([y({flex:Du,generate:mt})],os.prototype,"visible",2),h([y({flex:Du})],os.prototype,"tooltip",2),h([y({flex:Du})],os.prototype,"icon",2),h([y({flex:Du})],os.prototype,"activeIcon",2),h([y({flex:Du})],os.prototype,"type",2);var UE=os;var Vu=te(le());var ih="header::headerEditable::",gK=o((e,t,n,i,r)=>`${e}${ih}${r}`,"getDataPointHeaderSectionId"),mK=o((e,t,n,i,r)=>`${e}${ih}${r}::ContactAddress`,"getAddressHeaderSectionId"),hK=o((e,t,n,i,r)=>`${e}${ih}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),a1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(Vu.FacetTitlePrefix)?r.split(Vu.FacetTitlePrefix)[1]:a;return`${e}${ih}${s}::Form`},"getFormHeaderSectionId"),Mu={controlType:o(()=>Vu.ControlType.ObjectPageHeaderSection,"controlType"),createFlexChange:Ee},Jm=class Jm{};o(Jm,"CommonHeaderFacetSettings"),h([y({flex:{...Mu,controlId:a1},generate:mt})],Jm.prototype,"visible",2);var uc=Jm,Zm=class Zm extends uc{};o(Zm,"ObjectPageHeaderSectionForm"),h([y({flex:{...Mu,controlId:a1}})],Zm.prototype,"visible",2);var jE=Zm,eh=class eh extends uc{};o(eh,"ObjectPageHeaderSectionChart"),h([y({flex:{...Mu,controlId:hK}})],eh.prototype,"visible",2);var $E=eh,th=class th extends uc{};o(th,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...Mu,controlId:gK}})],th.prototype,"visible",2);var BE=th,nh=class nh extends uc{};o(nh,"ObjectPageHeaderSectionAddress"),h([y({flex:{...Mu,controlId:mK}})],nh.prototype,"visible",2);var HE=nh,WE=class WE{};o(WE,"HeaderSections");var GE=WE;var XE=te(le());var yK=o((e,t,n,i)=>{if(i()===XE.ControlType.Button){let{actionId:r}=Yi(n);return`${e}action::${qi(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),wu={controlId:yK,controlType:o(()=>XE.ControlType.Button,"controlType"),createFlexChange:Ee},as=class as{};o(as,"ObjectPageFooterAction"),h([y({flex:wu,generate:mt})],as.prototype,"visible",2),h([y({flex:wu})],as.prototype,"tooltip",2),h([y({flex:wu})],as.prototype,"icon",2),h([y({flex:wu})],as.prototype,"activeIcon",2),h([y({flex:wu})],as.prototype,"type",2);var KE=as;var ku=te(le());var rh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),pc=class pc{};o(pc,"ObjectPageLayout"),h([y({flex:{controlId:rh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType"),createFlexChange:Ee},generate:mt})],pc.prototype,"showHeaderContent",2),h([y({flex:{controlId:rh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType"),createFlexChange:Ee}})],pc.prototype,"showAnchorBar",2),h([y({flex:{controlId:rh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType"),createFlexChange:Ee}})],pc.prototype,"useIconTabBar",2),h([y({flex:{controlId:rh,controlType:o(()=>ku.ControlType.ObjectPageLayout,"controlType"),createFlexChange:Ee}}),x({since:"1.34.0"})],pc.prototype,"alwaysShowContentHeader",2);var QE=pc;var s1=te(le());var dc=class dc{};o(dc,"BaseCustomSection"),h([y({manifest:{path:ua,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],dc.prototype,"relatedFacet",2),h([y({manifest:{path:ua,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],dc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>ua(t,{},i,s1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],dc.prototype,"title",2),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],dc.prototype,"className",2);var $u=dc,Uu=class Uu extends $u{};o(Uu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],Uu.prototype,"fragmentName",2),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],Uu.prototype,"type",2);var Bu=Uu,ju=class ju extends $u{};o(ju,"ObjectPageCustomSectionView"),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],ju.prototype,"viewName",2),h([y({manifest:{path:ua}}),x({since:"1.52.0"})],ju.prototype,"type",2);var Hu=ju;var Zi=te(le());var c1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),Zi.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),l1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),f1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),gc=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),u1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),p1=o((e,t,n,i,r)=>{let s=[qn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),oh=class oh{};o(oh,"ObjectPageSectionV2"),h([y({flex:{controlId:gc,controlType:o(()=>Zi.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],oh.prototype,"visible",2);var qE=oh,ah=class ah{};o(ah,"ObjectPageSectionFormV2"),h([y({flex:{controlId:gc,controlType:o(()=>Zi.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],ah.prototype,"visible",2);var zE=ah,sh=class sh{};o(sh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:gc,controlType:o(()=>Zi.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],sh.prototype,"visible",2);var YE=sh,ch=class ch{};o(ch,"ObjectPageSectionTableV2"),h([y({flex:{controlId:gc,controlType:o(()=>Zi.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],ch.prototype,"visible",2);var JE=ch,lh=class lh{};o(lh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:gc,controlType:o(()=>Zi.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],lh.prototype,"visible",2);var ZE=lh,fh=class fh{};o(fh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:gc,controlType:o(()=>Zi.ControlType.Section,"controlType"),createFlexChange:Ee},generate:mt})],fh.prototype,"visible",2);var eA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:u1,controlType:o(()=>Zi.ControlType.SubSection,"controlType"),createFlexChange:Ee},generate:mt})],uh.prototype,"visible",2);var tA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:l1,controlType:o(()=>Zi.ControlType.Group,"controlType"),createFlexChange:Ee},generate:mt})],ph.prototype,"visible",2);var nA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:f1,controlType:o(()=>Zi.ControlType.SmartChart,"controlType"),createFlexChange:Ee},generate:mt})],dh.prototype,"visible",2);var iA=dh,gh=class gh{};o(gh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:p1,controlType:o(()=>Zi.ControlType.SubSection,"controlType"),createFlexChange:Ee},generate:mt})],gh.prototype,"visible",2);var rA=gh,mh=class mh{};o(mh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:c1,controlType:o(()=>Zi.ControlType.SmartTable,"controlType"),createFlexChange:Ee},generate:mt})],mh.prototype,"visible",2);var oA=mh;var hh=class hh{};o(hh,"ObjectPageChart"),h([y({manifest:{path:_0}}),x({since:"1.78.0"})],hh.prototype,"variantManagement",2);var aA=hh,yh=class yh{};o(yh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Ri(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],yh.prototype,"variantManagement",2);var sA=yh;var yr=te(le());var mc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=yr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=qn(a[0],r),zt(e,a)},"getSmartTableControlId"),Gu=class Gu{};o(Gu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>io(t,n,i)+yr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Gu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>io(t,n,i)+yr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Gu.prototype,"variants",2);var cA=Gu,vh=class vh{};o(vh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>hr(t,n,i)+"/createWithParameterDialog","path"),export:jm}}),x({since:"1.77.0"})],vh.prototype,"fields",2);var lA=vh,ci=class ci{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(ci,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:hr,import:Um}}),x({since:"1.77.0"})],ci.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:mc,controlType:o(()=>yr.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.28.0"})],ci.prototype,"editable",2),h([y({flex:{controlId:mc,controlType:o(()=>yr.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],ci.prototype,"showPasteButton",2),h([y({manifest:{path:hr}}),x({since:"1.54.0"})],ci.prototype,"multiSelect",2),h([y({manifest:{path:hr}}),x({since:"1.70.0"})],ci.prototype,"selectAll",2),h([y({manifest:{path:hr}}),x({since:"1.70.0"})],ci.prototype,"selectionLimit",2),h([y({manifest:{path:io}}),x({since:"1.63.0"})],ci.prototype,"quickVariantSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>yr.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.26.0"})],ci.prototype,"useExportToExcel",2),h([y({flex:{controlId:mc,controlType:o(()=>yr.ControlType.SmartTable,"controlType"),createFlexChange:Ee}}),x({since:"1.50.0"})],ci.prototype,"exportType",2),h([y({manifest:{path:io}}),x({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],ci.prototype,"createMode",2),h([y({manifest:{path:io}}),x({since:"1.61.0"})],ci.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:hr}}),x({since:"1.78.0"})],ci.prototype,"variantManagement",2),h([y({manifest:{path:hr}}),x({since:"1.120.0"})],ci.prototype,"copy",2),h([kt("toolBar")],ci.prototype,"toolBar",2);var hc=ci,ss=class ss extends hc{};o(ss,"ObjectPageResponsiveTable"),h([y({manifest:{path:hr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ss.prototype,"type",2),h([y({flex:{controlId:mc,controlType:o(()=>yr.ControlType.Table,"controlType"),createFlexChange:Ee}})],ss.prototype,"includeItemInSelection",2),h([y({flex:{controlId:mc,controlType:o(()=>yr.ControlType.Table,"controlType"),createFlexChange:Ee},generate:mt}),x({since:"1.52.0"})],ss.prototype,"popinLayout",2),h([y({manifest:{path:hr}}),x({since:"1.77.0"})],ss.prototype,"inlineDelete",2),h([y({flex:{controlId:mc,controlType:o(()=>yr.ControlType.Table,"controlType"),createFlexChange:Ee}}),x({since:"1.16.0"})],ss.prototype,"growingThreshold",2);var yc=ss,Wu=class Wu extends hc{};o(Wu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:hr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Wu.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var fA=Wu,Ku=class Ku extends hc{};o(Ku,"ObjectPageGridTable"),h([y({manifest:{path:hr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ku.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Ku.prototype,"condensedTableLayout",2);var uA=Ku,Xu=class Xu extends hc{};o(Xu,"ObjectPageTreeTable"),h([y({manifest:{path:hr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Xu.prototype,"type",2),h([y({manifest:{path:io}}),x({since:"1.67.0"})],Xu.prototype,"condensedTableLayout",2);var pA=Xu,wo=class wo{};o(wo,"GlobalTableSettings"),h([y({manifest:{path:Qa}}),x({since:"1.70.0"})],wo.prototype,"selectAll",2),h([y({manifest:{path:Qa}}),x({since:"1.78.0"})],wo.prototype,"variantManagement",2),h([y({manifest:{path:Qa}}),x({since:"1.120.0"})],wo.prototype,"copy",2),h([y({manifest:{path:Qa}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],wo.prototype,"type",2),h([y({manifest:{path:Qa}}),x({since:"1.54.0"})],wo.prototype,"multiSelect",2),h([y({manifest:{path:Qa}}),x({since:"1.67.0"})],wo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Qa}}),x({since:"1.77.0"})],wo.prototype,"inlineDelete",2);var dA=wo;var d1=te(le());var vK=o((e,t,n,i,r)=>{let{actionId:a}=Yi(n),s=qn(n[1],r);return`${e}${s}::action::${qi(a).replace(":2f","::")}`},"getActionButtonId"),Qu={controlId:vK,controlType:o(()=>d1.ControlType.Button,"controlType"),createFlexChange:Ee},cs=class cs{};o(cs,"ObjectPageToolBarAction"),h([y({flex:Qu,generate:mt})],cs.prototype,"visible",2),h([y({flex:Qu})],cs.prototype,"tooltip",2),h([y({flex:Qu})],cs.prototype,"icon",2),h([y({flex:Qu})],cs.prototype,"activeIcon",2),h([y({flex:Qu})],cs.prototype,"type",2);var gA=cs;function ls(e){return e.replace("/","::")}o(ls,"convertActionKey");function hA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(hA,"convertSelector");function TK(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(TK,"addSmartFilterBarFlex");function bK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=qi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(T=>T.startsWith("sSemanticObject")),g=u.find(T=>T.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let T=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(T,r),i.set(r,A)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(bK,"filterActions");function EK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(EK,"addColumnActionConfigPart");function AK(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(AK,"getActionId");function SK(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=bK(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"&&EK(s,e,m);let T=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&T&&(T[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(SK,"addActionFlex");function PK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=Yn(e[Ge.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[Ge.PropertyName.chart],t):e[Ge.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(PK,"addSmartChartFlex");function xK(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===Ge.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(Ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Ge.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTableWithMultiSelect":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===Ge.ControlType.TableColumn)&&vm(e.table,i,n)}o(xK,"addAdditionalFlexChanges");function Th(e,t,n,i){var r,a;try{let s=$a(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(Ge.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(Ge.PageTypeV2.AnalyticalListPage))switch(s.controlId=hA(s.controlId),s.controlType){case Ge.ControlType.SmartFilterBar:{TK(e,l,s,n);break}case Ge.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case Ge.ControlType.Button:{let u=AK(s);u&&SK(e,l,s,n,u);break}case Ge.ControlType.SmartChart:{PK(e,l,s,n);break}default:{xK(e,s,n);break}}}catch(s){se(i,{severity:Ge.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Th,"addFlex");function CK(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(CK,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=Yn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=Bn(t,g),pl(p,s,u,e),qg(l,s,g,r)}CK(u,e)}}o(_n,"transferSettingsOfObject");function bh(e,t){var r,a,s,l,u,p,g,m,T;let n=e[Ge.ManifestSection.generic].pages[t],i=Ge.v2.TableTypeV2.ResponsiveTable;return(r=e[Ge.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[Ge.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[Ge.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):((T=n.component)==null?void 0:T.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=Ge.v2.TableTypeV2.AnalyticalTable),i}o(bh,"determineTableType");function g1(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 T={...(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&&(T.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(T)}}o(g1,"evaluateFragmentColumn");function IK(e,t,n,i){let r;if(e===Ge.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===Ge.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(IK,"determineCellsFragmentName");function OK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,m1.xml2json)(e[0].fileContent,{compact:!0}))[Do],g=Pu(p);if(g)if((l=t[Ge.PropertyName.table])!=null&&l.columns||(t[Ge.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)g1(m,n,i,r,t,a,s);else g1(g,n,i,r,t,a,s)}}o(OK,"analyzeFilteredFragments");function NK(e,t,n,i,r){for(let a of Object.keys(e)){let s=a.split("|"),[l,u]=s,p=s[2],g=Ge.ViewTemplateType[l];if(g&&"|"+u===t){let m=e[a].type?e[a].type.toLowerCase():"xml",T=e[a].fragmentName;if(!T)continue;let A=IK(g,e,u,p),b=T.split(".");T=b[b.length-1]+Ge.FRAGMENTNAMEPART+m;let O=r.filter(R=>R.dataSourceUri.endsWith(T));OK(O,i,e,a,p,g,A)}}}o(NK,"processViewExtensions");function Rl(e,t,n,i,r,a){if(!r)return;let s="|"+(a&&a.target?a.target:n.entitySet);if(t[Ge.ManifestSection.ui5]&&t[Ge.ManifestSection.ui5].extends&&t[Ge.ManifestSection.ui5].extends.extensions&&t[Ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=Ge.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t[Ge.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!u)return;NK(u,s,a,e,r)}}o(Rl,"addFragments");function Eh(e,t,n){if(e.header={actions:{}},n[Ge.DefinitionName.HeaderActionsStandard]){let i=n[Ge.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(Ge.PageTypeV2.ListReport,r,{})}}o(Eh,"importHeaderActions");var Xt=te(le());var y1=te(le());var yA={};Ws(yA,{ANNOERR:()=>qK,ANNOTATIONFILE:()=>zK,COMPONENTNOTDEFINED:()=>YK,CONTEXTPATHCOULDNOTBERESOLVED:()=>WK,ENTITYSETNOTFOUND:()=>GK,FLEXERROR:()=>s3,INCONSISTENTSCHEMA:()=>h3,INVALIDANCHOR:()=>c3,INVALIDEXTENSION:()=>l3,INVALIDTARGETDEFINITION:()=>u3,MACROS_ANNOTATION_ERROR:()=>g3,NOALP:()=>XK,NOANNOTATIONFORPATH:()=>BK,NOBASEPATH:()=>RK,NOCHARTS:()=>t3,NOENTITYSET:()=>wK,NOENTITYTYPE4SET:()=>kK,NOFE:()=>DK,NOFRAGMENT:()=>f3,NOGENERICSCHEMA:()=>VK,NOID4SECTION:()=>p3,NOLINEITEMANDCHARTS:()=>n3,NOLINEITEMFORPATH:()=>HK,NOLINEITEMS:()=>e3,NOLR:()=>KK,NOPAGEFORENTITYSET:()=>MK,NOPAGES:()=>_K,NOPRESENTATIONVARIANT:()=>UK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>jK,NOPRESENTATIONVARIANTFORSPV:()=>$K,NOROUTING:()=>JK,NOROUTINGID:()=>a3,NOTARGET:()=>o3,NOTARGETS:()=>r3,NOTEMPLATE:()=>QK,NOUIANNOTATIONS:()=>ZK,NOVISUALIZATIONS:()=>i3,TYPEERROR:()=>m3,UNKNOWNMINUI5VERSION:()=>FK,WRONGMINUI5VERSION:()=>LK,XMLPARSEFAILURE:()=>d3,default:()=>y3});var LK="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",FK="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",RK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",_K="No pages found in manifest for app with id '{{- appId}}'",DK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",VK="No generic schema found while generating page schema for {{- pageType}}",MK="No page found in manifest for entitySet '{{- entitySet}}'",wK="No entitySet defined for page '{{- pageName}}'",kK="No entityType could be found for the given entity set '{{- entitySetName}}'",UK="No PresentationVariant defined for '{{- key}}'",jK="No PresentationVariant found for default SelectionPresentationVariant",$K="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",BK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",HK="No line item annotation found for path '{{- annotationPath}}'",GK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",WK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",KK="No page found in manifest for list report",XK="No page found in manifest for analytical list page",QK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",qK="Error while parsing annotation files",zK="Annotation file: '{{- file}}'",YK="Component name is not defined for page '{{- pageName}}'",JK="Incomplete manifest definition: no routing defined",ZK="No UI Annotation defined for entity type '{{- entityType }}'",e3="UI.LineItem annotation has not been defined",t3="UI.Chart annotation has not been defined",n3="Neither UI.LineItem nor UI.Chart annotation has been defined",i3="Empty Collection for Visualizations",r3="Incomplete manifest definition: no targets defined",o3="Invalid reference: annotation target '{{- target}}' not found",a3="No page found in manifest for routingId '{{- routingId}}'",s3="Error while parsing flex change",c3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",l3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",f3="fragmentName is undefined for columnKey '{{- columnKey}}'",u3="Invalid routing target definition in manifest: '{{- target}}'",p3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",d3="Parsing of XML file failed with error - {{- error}}",g3="Error during resolving annotation for '{{- control}}'",m3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",h3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",y3={WRONGMINUI5VERSION:LK,UNKNOWNMINUI5VERSION:FK,NOBASEPATH:RK,NOPAGES:_K,NOFE:DK,NOGENERICSCHEMA:VK,NOPAGEFORENTITYSET:MK,NOENTITYSET:wK,NOENTITYTYPE4SET:kK,NOPRESENTATIONVARIANT:UK,NOPRESENTATIONVARIANTFORDEFAULTSPV:jK,NOPRESENTATIONVARIANTFORSPV:$K,NOANNOTATIONFORPATH:BK,NOLINEITEMFORPATH:HK,ENTITYSETNOTFOUND:GK,CONTEXTPATHCOULDNOTBERESOLVED:WK,NOLR:KK,NOALP:XK,NOTEMPLATE:QK,ANNOERR:qK,ANNOTATIONFILE:zK,COMPONENTNOTDEFINED:YK,NOROUTING:JK,NOUIANNOTATIONS:ZK,NOLINEITEMS:e3,NOCHARTS:t3,NOLINEITEMANDCHARTS:n3,NOVISUALIZATIONS:i3,NOTARGETS:r3,NOTARGET:o3,NOROUTINGID:a3,FLEXERROR:s3,INVALIDANCHOR:c3,INVALIDEXTENSION:l3,NOFRAGMENT:f3,INVALIDTARGETDEFINITION:u3,NOID4SECTION:p3,XMLPARSEFAILURE:d3,MACROS_ANNOTATION_ERROR:g3,TYPEERROR:m3,INCONSISTENTSCHEMA:h3};function h1(e){e.addResourceBundle(e.language,"translation",yA)}o(h1,"initI18n");function tn(e="en"){q.init({resources:{en:{translation:y1.default}},lng:e,fallbackLng:"en",joinArrays:`
293
293
 
294
- `}),h1(q)}o(nn,"initI18n");var jt=te(le());function vc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(sa((r=s.component)==null?void 0:r.name)===jt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=vc(s.pages,t,n),i))return n.unshift(a),i}}o(vc,"findObjectPageV2");function _l(e,t){var n;for(let i in e){let r=e[i];if(sa((n=r.component)==null?void 0:n.name)===jt.PageTypeV2.ListReport)return t.push(i),r}}o(_l,"findListReportPageV2");function Dl(e){if(!e.manifest[jt.ManifestSection.generic]){se(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){se(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(Dl,"getV2Pages");function Vl(e,t,n){var i;if(!e){se(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;se(t,{severity:jt.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}}o(Vl,"checkV2Page");function Ml(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),sa((i=a.component)==null?void 0:i.name)===jt.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:jt.LogSeverity.Error,message:q.t("NOALP"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}o(Ml,"findAnalyticalListPage");function vA(e,t){let n=e.split("|");return jt.v2.SectionPosition[n[0]]&&n[1]===t}o(vA,"isAssociatedCustomSection");function v1(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${jt.v2.SAPUI5_VIEW_EXTENSION}/${jt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)vA(r,t)&&(i[r]=n[r]);return i}o(v1,"findCustomSectionExtensions");function v3(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(v3,"removeEmptySettingsOfFooter");function T3(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(T3,"removeEmptySettingsOfFilterBar");function E3(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(E3,"removeEmptySettingsOfToolBar");function Ah(e){E3(e),T3(e),v3(e)}o(Ah,"removeEmptySettings");var EA={};Ws(EA,{AnalyticalListPage:()=>$r,ListReport:()=>co,ObjectPage:()=>li,OverviewPage:()=>Yt,exportFilterSettings:()=>b1,importDateSettingsOVP:()=>T1,importFilterSettings:()=>E1});var Sh=te(le());var $r=class{};o($r,"AnalyticalListPage"),h([y({flex:{controlId:Wg,controlType:o(()=>Sh.ControlType.DynamicPage,"controlType"),createFlexChange:Ee}})],$r.prototype,"fitContent",2),h([kt("table")],$r.prototype,"table",2),h([kt("template::SmartFilterBar")],$r.prototype,"filterBar",2),h([kt("analyticalListPageChart")],$r.prototype,"chart",2),h([kt("analyticalListFooter")],$r.prototype,"footer",2),$r=h([kr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Sh.v2.FE_TEMPLATE_V2_ALP})],$r);var qu=te(le());var co=class{};o(co,"ListReport"),h([y({flex:{controlId:Wg,controlType:o(()=>qu.ControlType.DynamicPage,"controlType"),createFlexChange:Ee}})],co.prototype,"fitContent",2),h([kt("listReportFilter")],co.prototype,"filterBar",2),h([kt("listReport")],co.prototype,"table",2),h([kt("listReportFooter")],co.prototype,"footer",2),co=h([kr({id:qu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:qu.v2.FE_TEMPLATE_V2_LIST_REPORT})],co);var TA=te(le());var li=class{};o(li,"ObjectPage"),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.0"})],li.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.1"})],li.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"})],li.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.0"})],li.prototype,"navToListOnSave",2),h([kt("header")],li.prototype,"header",2),h([kt("sections")],li.prototype,"sections",2),h([kt("layout")],li.prototype,"layout",2),h([y({manifest:{path:o(t=>bm(t),"path")}}),x({since:"1.77.0"})],li.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Ri(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],li.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Ri(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:zs}}),x({since:"1.71.0"})],li.prototype,"globalTableSettings",2),li=h([kr({id:TA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:TA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],li);function b3(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(b3,"importDateSettingsFieldsOVP");function T1(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&&b3(e,t),t}o(T1,"importDateSettingsOVP");function E1(e){let t={};return t.dateSettings=T1(e.filterSettings),t}o(E1,"importFilterSettings");function A3(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(A3,"exportFilterFields");function b1(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&&A3(t,n,e))}o(b1,"exportFilterSettings");var Yt=class{};o(Yt,"OverviewPage"),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>bn(),"path"),import:E1,export:b1}}),x({since:"1.80.0"})],Yt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"resizableLayout",2),Yt=h([kr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Yt);var bA=class bA{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(bA,"MetadataFactory");var wl=bA;var Zn=te(le());var S3={},P3={Table:ac,ResponsiveTableWithMultiSelect:ac,ResponsiveTableWithInlineDelete:ac},x3={[Zn.v2.CardSettingsType.listCardSettings]:Sl,[Zn.v2.CardSettingsType.listCardSettingsv4]:Sl,[Zn.v2.CardSettingsType.analyticalCardSettings]:Pl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:Pl,[Zn.v2.CardSettingsType.stackCardSettings]:yu,[Zn.v2.CardSettingsType.linkListCardSettings]:vu,[Zn.v2.CardSettingsType.tableCardSettings]:xl,[Zn.v2.CardSettingsType.tableCardSettingsv4]:xl},C3={[Zn.SAPUI5_VIEW_CLASS]:Hu,[Zn.SAPUI5_FRAGMENT_CLASS]:Bu,Table:yc,ObjectPageResponsiveTableWithMultiSelect:yc,ObjectPageResponsiveTableWithInlineDelete:yc},I3={[Zn.PageTypeV2.AnalyticalListPage]:S3,[Zn.PageTypeV2.ListReport]:P3,[Zn.PageTypeV2.ObjectPage]:C3,[Zn.PageTypeV2.OverviewPage]:x3},AA=class AA extends wl{constructor(){super(mA,EA,I3)}};o(AA,"MetadataInstanceFactoryV2");var _i=AA;function O3(e,t,n,i,r){if(e.filterBar=t.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[Xt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Xt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(O3,"importFilterBar");function N3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Jg]&&t[Zg]&&(a=JSON.parse(JSON.stringify(t[Jg])),a.properties={...a.properties,...t[Zg].properties}),_n(n.table,i.manifest,a,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Xt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(N3,"importTable");function L3(e,t,n,i){let r=e.jsonSchema.definitions,a=Eh(e.manifest,i);if(t.table=n.createInstance(Xt.PageTypeV2.ListReport,a,t.table),bh(t,n,r),N3(a,r,t,e,i),t.table.toolBar=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[Xt.DefinitionName.ToolBarLR],i,e.logger),r[Xt.DefinitionName.ActionsLR])for(let l in r[Xt.DefinitionName.ActionsLR].properties){let u=ls(l);t.table.toolBar.actions[u]=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[Xt.DefinitionName.Action],i,e.logger)}O3(t,n,e,r,i),t.footer={actions:{}};let s=r[Xt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=ls(l);t.footer.actions[u]=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[Xt.DefinitionName.Action],i,e.logger)}}o(L3,"addSettings");function Ph(e){if(nn(),!Dl(e))return;let n=new _i,i=n.createPageInstance(Xt.PageTypeV2.ListReport),r=[],a=_l(e.manifest[Xt.ManifestSection.generic].pages,r);if(Vl(a,e.logger,a==null?void 0:a.entitySet),!!a)return L3(e,i,n,r[0]),e.flex.forEach(s=>{$a(s)&&Th(i,s,e.jsonSchema,e.logger)}),Rl(i,e.manifest,a,Xt.PageTypeV2.ListReport,e.fragments),Ah(i),i}o(Ph,"createListReportConfig");var xt=te(le());function F3(e,t,n,i){var u,p;let r=Eh(e.manifest,i),a=e.jsonSchema.definitions;if(bh(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),_n(t.table,e.manifest,a[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let g in a[xt.DefinitionName.ActionsLR].properties){let m=ls(g);t.table.toolBar.actions[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),_n(t.table.toolBar.actions[m],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(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 g=a[xt.DefinitionName.SelectionFields].properties;for(let m in g){let T=m;t.filterBar.selectionFields[T]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[T],e.manifest,a.SelectionFieldDateSettings,i,e.logger,T)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let s=a[xt.DefinitionName.FooterActionsLR];if(s)for(let g in s.properties){let m=ls(g);t.footer.actions[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),_n(t.footer.actions[m],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[xt.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:p.keyPerformanceIndicators;l&&Object.keys(l).forEach(g=>{t.keyPerformanceIndicators[g]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[g],e.manifest,a.KPISettings,i,e.logger,g)})}o(F3,"addSettings");function xh(e){if(nn(),!Dl(e))return;let n=new _i,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=Ml(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(Vl(a,e.logger,a==null?void 0:a.entitySet),!!a)return F3(e,i,n,r[0]),e.flex.forEach(s=>{$a(s)&&Th(i,s,e.jsonSchema)}),Rl(i,e.manifest,a,xt.PageTypeV2.AnalyticalListPage,e.fragments),Ah(i),i}o(xh,"createAnalyticalListPageConfig");var be=te(le());var zu=require("@sap-ux/vocabularies-types/vocabularies/UI");var _3=[be.ControlType.Avatar,be.ControlType.ObjectPageLayout,be.ControlType.DynamicPage];function D3(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(`${zu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${be.ActionTitlePrefix}${t}`;else if(e[0].indexOf(zu.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(D3,"getSingleSelectorIdPart");function V3(e){let t,n=e.split(":::");if(n.length===1)t=D3(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(`::${zu.UIAnnotationTerms.LineItem}`,`/@${zu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(V3,"getFacetID");function M3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=$a(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(be.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let T=m[1].replace(/:3a:3a/g,"::");r.exec(T)!==null&&(T=T.split("template:::TableColumn:::")[1]);let A=V3(T);T=hA(T).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${T}::${g.content.property}`]={controlId:T,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:be.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(M3,"prepareFlexChanges");var w3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");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($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function k3(e,t,n,i,r,a){let s;r?s=[r.replace(/@/g,"")]:s=[a.replace(/@/g,""),a==null?void 0:a.replace(/::@com.sap.vocabularies/g,be.VOCWITHSLASH)];for(let l in e){let u=e[l],p=u.propertyId===t,g=t==="columns"&&u.controlType===be.ControlType.TableColumn;(p||g)&&s.indexOf(u==null?void 0:u.facetId)>-1&&vm(n,u,i.jsonSchema)}}o(k3,"importFlexChangesOfTable");function U3(e,t){return e.facetId==="template"&&t}o(U3,"isStandardActionFlexChange");var A1=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 j3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===be.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(be.ActionTitlePrefix))&&!r&&s,m=r&&A1(u,r.split("::"))&&s,T=e.title&&A1(u,e.title.split("::"),!0),A=!t.facetId&&_3.includes(t.controlType),E=U3(t,l);return p||g||m||T||A||E}o(j3,"matchSelector");function $3(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[be.SchemaTag.controlType]))continue;j3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o($3,"importFlexChanges");function B3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:be.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(B3,"checkDeprecatedProperties");function H3(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return B3(p,a,n,u),p}o(H3,"importManifestSetting");function Di(e,t,n,i,r,a){var l,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let p in n.properties||n){let g=Yn(t,p);if(p==="columns"||g!=null&&g.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))k3(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);$3(n,t,i.flexChanges,p,m,a)}else g!=null&&g.manifest&&H3(g,i.pageKeys,e,t,p,s,r)}}o(Di,"transferSettingsAndFlexChanges");function P1(e,t,n,i){let r=Qi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${o0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${em}${r}`;break}}return r.replace(/@/g,"")}o(P1,"getActionId");function G3(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=P1(s,a,"","");e.actions[a]=i.factory.createInstance(be.PageTypeV2.ObjectPage,l,{}),Di(n,e[be.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(G3,"fillStandardActions");function Ch(e,t,n,i,r,a){var l;n[be.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=ls(p),m=P1(s,g,r,a);m&&(n[be.PropertyName.actions][g]=i.factory.createInstance(be.PageTypeV2.ObjectPage,s),Di(e,n[be.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[be.PropertyName.actions])!=null&&l[g]&&Object.keys(n[be.PropertyName.actions][g]).length===0&&delete n[be.PropertyName.actions][g]}}G3(n,t,e,i),Object.keys(n[be.PropertyName.actions]).length===0&&delete n[be.PropertyName.actions]}o(Ch,"fillActions");function W3(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(be.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(be.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Di(e,i[t.id].form.fields[l],e.jsonSchema.definitions[be.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(W3,"fillFields");function K3(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(K3,"prepareTableSchema");function X3(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(be.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][be.PropertyName.table]=g;let m=e.jsonSchema.definitions,T=K3(p,t,m);Di(e,i[t.id],t.schema,r,{title:t.title}),Di(e,i[t.id][be.PropertyName.table],T,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let E=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");Ch(e,A.properties,i[t.id][be.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][be.PropertyName.table].toolBar).length===0&&delete i[t.id][be.PropertyName.table].toolBar}}o(X3,"fillTableInConfig");function Q3(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,a=r?zg(r.$ref):void 0;if(a){let s={key:t.replace("@",""),target:a};Rl(n[t],e.manifest,i,be.PageTypeV2.ObjectPage,e.fragments,s)}}o(Q3,"fillCustomColumnsInConfig");function q3(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(be.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][be.PropertyName.chart]=r.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Di(e,i[t.id],t.schema,r,{title:t.title}),Di(e,i[t.id][be.PropertyName.chart],e.jsonSchema.definitions[be.DefinitionName.ObjectPageChart],r,t))}o(q3,"fillChartSection");function z3(e,t,n,i){n[t.id]=i.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Di(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(z3,"fillHeaderSection");function Y3(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Di(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&&Ch(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&W3(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(Y3,"fillFormSection");function S1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(be.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Di(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,SA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(S1,"fillSubSection");function SA(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:w3(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}>`],X3(e,p,n,i,r),Q3(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],q3(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],Y3(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}>`],S1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],z3(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],S1(e,p,n,i,r))}}o(SA,"fillSectionsInConfig");function J3(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(be.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Di(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(J3,"fillCustomSectionsInConfig");function Z3(e,t){var g,m;let n=t.factory.createPageInstance(be.PageTypeV2.ObjectPage);Di(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(be.PageTypeV2.ObjectPage,be.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Di(e,n.globalTableSettings,i[be.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(be.PageTypeV2.ObjectPage,be.DefinitionName.ObjectPageHeader);let r=i[be.DefinitionName.ObjectPageHeader]?i[be.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Di(e,n.header,r,t);let a=i[be.DefinitionName.ObjectPageHeaderActions];a&&Ch(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[be.DefinitionName.FooterActions];s&&Ch(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(be.PageTypeV2.ObjectPage,"ObjectPageLayout"),Di(e,n.layout,i[be.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[be.DefinitionName.HeaderSections];if(l){let T=(g=t.v2Page.component)==null?void 0:g.settings;SA(e,l.properties,T,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[be.DefinitionName.Sections];if(u){let T=(m=t.v2Page.component)==null?void 0:m.settings;SA(e,u.properties,T,n.sections,t)}let p=v1(e.manifest,e.entitySet);return J3(p,n,t,i,e),n}o(Z3,"fillConfig");function Ih(e){nn();let t=Dl(e);if(!t)return;let n=e.entitySet,i=[],r=vc(t,e.entitySet,i);if(Vl(r,e.logger,n),!r)return;let a=M3(e.flex,n),s=new _i;return Z3(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Ih,"createObjectPageConfigV2");function Nh(e,t){var n,i;return(n=e.component)!=null&&n.name?$g(sa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Nh,"generateId");function eX(e,t,n,i){e.navigation={};let r=x1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Nh(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(eX,"getPageConfigsAndNavigations");function x1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Nh(a,r);if(!s)continue;let l={pageType:sa((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===Dn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ph(p)}else if(l.pageType===Dn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=xh(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Ih(p)}a.pages&&eX(l,a,t,n)}return n}o(x1,"getPagesAndConfigs");var PA=class PA extends Ka{constructor(t){nn();let n;t.manifest[Dn.ManifestSection.generic]?n=t.manifest[Dn.ManifestSection.generic].pages:se(t.logger,{severity:Dn.LogSeverity.Error,message:q.t("NOFE"),location:{path:Dn.MANIFESTPATH,range:[Dn.ManifestSection.generic]}}),n||se(t.logger,{severity:Dn.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Dn.MANIFESTPATH,range:[Dn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Nh(n[i],i),a=new Xa,s=_t(Dn.SchemaType.Application),l=t.appSchemas[s.filename];_n(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,x1(n,t),a)}};o(PA,"V2AppProvider");var Oh=PA;function Yu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:Dn.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Dn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Nh(l,s);i[u]=l}if(t===Dn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Yu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Yu,"getPages");var Ec=te(le());var ko=te(le());var CA=te(BT());var Qt=te(le());var tX=["colorPalette","tabs"];function nX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(nX,"createCard");function C1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),C1(e,n.join("|"))}return t}o(C1,"findAvailableId");function Ju(e,t,n,i,r,a,s){i!=null&&i.properties&&xA(e,t,n,i.properties,r,a,s)}o(Ju,"transferManifestEntriesOVP");function Tc(e,t,n,i){return e.createInstance(Qt.PageTypeV2.OverviewPage,i,n,t)}o(Tc,"assignReflectMetadataRules");function iX(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($),r=e.appSchema.definitions[i[1]];t=Tc(e.factory,i[1],t,"CustomCard"),Ju(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(iX,"processAnyOfDefinitionsOfOVP");function rX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!tX.includes(i)?t[i]=(0,CA.default)(t[i]||{},r||{},{arrayMerge:hE}):t[i]=r}o(rX,"checkSyncRuleForExport");function oX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in Qt.v2.CardSettingsType||n==="settings")l.settings=(0,CA.default)(l.settings||{},r||{},{arrayMerge:hE});else if(r!==void 0){let u=e.manifest.export;rX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(oX,"transferToManifest");function aX(e,t,n,i){Object.keys(e).forEach(r=>{let a=e[r].template,s;Object.values(Qt.v2.CardTemplateType).includes(a)?s=Object.keys(t.definitions).filter(l=>{var p;let u=(p=t.definitions[l].properties)==null?void 0:p.template;if(u!=null&&u.enum)return u.enum.indexOf(e[r].template)>-1;if(u!=null&&u.const)return u.const===e[r].template}):s=["CustomCard"],e[r]=Tc(n,s[0],e[r],"CustomCard"),nX(r,i.manifest[Qt.ManifestSection.ovp]),Ju(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[Qt.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[Qt.ManifestSection.ovp].cards[r]})}o(aX,"transferCards");function sX(e,t,n){if(t==="cards")aX(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Lo(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,Qt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split($);e.currentObject=Tc(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ju(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],xA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],xA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}o(sX,"exportOfObject");function xA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!ru(a,s))continue;let u=e[l],p=Yn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=iX(g)):u&&typeof u=="object"&&i[l]&&sX(g,l,r),p!=null&&p.manifest&&oX(p,a,l,t,u,e)}}o(xA,"processProperties");function cX(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=n0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=n.flex.createFlexChange(p,g);e.exportResults.flexChanges.find(A=>{let E=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let R=JSON.parse(m);return R={content:R.content,selector:R.selector},JSON.stringify(O)===JSON.stringify(R)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}o(cX,"evaluateFlexRule");function lX(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=Qt.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=Qt.ChangeIndicator.Updated}}o(lX,"exportConfigValueToManifest");function fX(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)lX(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=Qt.ChangeIndicator.Updated,ja(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(fX,"evaluateManifestRule");function uX(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(Qt.FacetTitlePrefix)?r.split(Qt.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(uX,"getManifestPathOfSections");function pX(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(pX,"getManifestPathOfTable");function dX(e,t,n,i,r){let a;return t[0]===Qt.PropertyName.sections?a=uX(t,a,n,e,r):t[0]===Qt.PropertyName.table?a=pX(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(dX,"getManifestPath");function gX(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)cX(e,i,t,r,a,n,s);else if(t.manifest){let u=dX(e,i,t,n,a);fX(e,u,t,s,n)}}o(gX,"evaluateExportRule");function mX(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Rm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Qt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Qt.ViewTemplateType.ResponsiveTableColumnsExtension,Qt.ViewTemplateType.ResponsiveTableCellsExtension);Rm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(mX,"deleteObsoleteColumn");function hX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=N0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Qt.ChangeIndicator.Updated,mX(r,e,n))}o(hX,"deleteObsoleteColumnsFromFragment");function yX(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}=_m(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(yX,"clusterConfigColumnsByPath");function I1(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 Qt.v2.TableColumnExtensionTypeV2){let{path:u}=_m(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};hX(p)}if(t){let l=yX(t,n,e.v2Page,s,r);for(let u in l)nb(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(I1,"transferColumnExtensions");function vX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=C1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var E;return(E=A.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split($),T=e.appSchema.definitions[m[m.length-1]];fs(e,t[p],i,[...r,s[p]],T)}let u=Bn(e.exportResults.manifest,IE());for(let p in u)vA(p,l)&&!s.includes(p)&&delete u[p]}o(vX,"transferManifestExtensions");function TX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Qt.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(TX,"getSectionId");function EX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Lo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);fs(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(EX,"transferIndexTable");function bX(e,t,n,i,r,a){let s,l=zg(e.$ref);l&&(s={target:l,key:TX(t,n)}),I1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(bX,"transferCustomColumns");function AX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Lo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&fs(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(AX,"handleAnyOfDefinitions");function SX(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")vX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){bX(l,t,s,e,n,a);return}else a?fs(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&AX(l,e,s,n==null?void 0:n[r],r,i,t)}o(SX,"transferComplexProperty");function fs(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&&!ru(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Kg(t,l),p=u?[...n,u]:n,g=Yn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=Lo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(gX(e,g,t,[...i],p,a,l),EX(s,e,a,l,p,i),s===void 0||typeof s=="object")SX(e,i,t,p,l,T,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){I1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(fs,"transferManifestEntriesAndFlexChange");function O1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Tc(r,i,n[i],s),a.push(i),IA(r,n[i],e,l.properties,a)}o(O1,"transferSettingsOfRef");function PX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);O1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${ko.v2.cardTemplateSettingsMap[e.template]}`.split($);O1(i,l,e,t,r,a)}}o(PX,"processPropertiesOfObject");function xX(e,t,n,i,r,a){let s=Yn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{pl(s,u,t,e)}catch(p){se(i.logger,{severity:ko.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&PX(e,t,r,i,a,n)}o(xX,"processOvpProperty");function IA(e,t,n,i,r){for(let a in i)xX(t,a,r,n,i,e)}o(IA,"processOvpProperties");function CX(e,t,n){IA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[ko.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[ko.ManifestSection.ovp].cards[i].template,a=ko.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Tc(n,a,{},"CustomCard"),e.cards=Tc(n,a,e.cards,"CustomCard"),IA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,[i])})}o(CX,"addSettings");function Lh(e){let t=new _i,n=t.createPageInstance(ko.PageTypeV2.OverviewPage);return e.jsonSchema&&CX(n,e,t),n}o(Lh,"createOverviewPageConfig");var OA=class OA extends Ka{constructor(t){let n={},i=t.manifest[Ec.ManifestSection.ovp],r=new Xa,a=_t(Ec.SchemaType.Application);_n(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Ec.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Ec.PageTypeV2.OverviewPage,config:Lh(l),entitySet:i.globalFilterEntitySet},p=$g(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(OA,"V2OvpProvider");var Fh=OA;var Uo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ne=te(le()),N1=require("path");function IX(){return([e,t],[n,i])=>t[ne.SchemaTag.propertyIndex]-i[ne.SchemaTag.propertyIndex]}o(IX,"sortByPropertyIndex");function Zu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(IX())}o(Zu,"sortPropertiesRecords");function OX(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(OX,"getExtensionText");function NA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ne.v4.Placement.After)===ne.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(NA,"addExtensionToSortedArray");function NX(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(NX,"addRemainingTargetByBefore");function L1(e,t,n,i){let r=t.includes(ne.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=OX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:ne.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(L1,"getExtensionDetails");function LA(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=L1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let T=n.findIndex(A=>A[0]===g.position.anchor);T>-1?(NA(g,n,T,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:Vi.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&NX(e,p,g,n,m)}else r&&(NA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?LA(e,t,n,i):s>0&&LA(e,t,n,i,!0)}o(LA,"adjustCustomExtReferringToCustomExt");function LX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ne.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ne.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(LX,"getExtensionAnchor");function FX(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(FX,"getLocalExtensionsToSkip");function RX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ne.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 T=t[m[0]];if(g(T))break;p++}return p},"findNextIndex"),s=0;return i===ne.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)!==ne.v4.Placement.Before))}),s>-1?s:0}o(RX,"getExtensionIndexByMergedApproach");function _X(e,t,n,i,r=!1){return r?RX(e,t,n):n.findIndex(a=>a[0]===i)}o(_X,"getExtensionIndex");function DX(e,t,n,i,r){se(e,{severity:Vi.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:ne.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(DX,"handleInvalidExtension");function ma(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=FX(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=L1(g,n,p,ne.ActionType.Custom);if(typeof g!="object"){DX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let T=LX(g,s);if(T){let A=_X(g,e,t,T,a);A>-1&&(NA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&LA(l,n,t,r),t}o(ma,"addExtensionToArray");function bc(e,t,n,i=ne.DefinitionName.CustomColumn,r,a){var T,A,E,O;let s=r||ne.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Zu(l),p=a?a.replace(/::/g,"/"):`@${Uo.UIAnnotationTerms.LineItem}`,g=(O=(E=(A=(T=t.options)==null?void 0:T.settings)==null?void 0:A.controlConfiguration)==null?void 0:E[p])==null?void 0:O.columns;g&&(u=ma(g,u,i,void 0,n));for(let R=0;R<u.length;R++)u[R][1][ne.SchemaTag.propertyIndex]=R;let m={};u.forEach(([R,U])=>m[R]=U),e.definitions[s].properties=m}o(bc,"addCustomColumnDefinition");function VX(e){let t;return e.lineItemId.startsWith(ne.DefinitionName.LineItemsOfView)?t=ne.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ne.DefinitionName.LineItems)?t=ne.DefinitionName.ToolBarAction:t=ne.DefinitionName.ObjectPageToolBarAction,t}o(VX,"determineActionDefinitionName");function MX(e,t,n){e[ne.SchemaTag.keys]=[],t[ne.SchemaKeyName.semanticObject]&&e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.semanticObject,value:t[ne.SchemaKeyName.semanticObject]});let{key:i,ns:r}=ec(n,!0);e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.action,value:i}),r&&(e[ne.SchemaTag.target]=r)}o(MX,"addTargetAndKeysOfAction");function wX(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=VX(e),l=bi(i,e.entityType),u=i.$Type.split(`${ne.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Yg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=$n(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[ne.SchemaTag.propertyIndex]=r,m[ne.SchemaTag.dataType]=to(i),MX(m,i,p),m[ne.SchemaTag.annotationType]=i.$Type,a){let T=Et(s,dt(g),e.appSchema);T[ne.SchemaTag.annotationPath]=`${n}/${r}`}else m[ne.SchemaTag.annotationPath]=`${n}/${r}`}o(wX,"addActionRecordToSchema");function kX(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ri(ne.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=la(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:bi(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[ne.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[ne.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[ne.SchemaTag.propertyIndex]=i,m[ne.SchemaTag.dataType]=to(s),g[l]=m,cm(s,g,l)}}o(kX,"addLineItemRecordToSchema");function FA(e,t,n,i,r=ne.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Uo.UIAnnotationTypes.DataFieldForAction||s.$Type===Uo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))wX(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Uo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;kX(e,l,u,a,i)}a++})}o(FA,"appendLineItemsToSchema");function Ac(e,t=ne.DefinitionName.TableColumn,n=ne.DefinitionName.CustomColumn,i=ne.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=am(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);FA(e,r,a,void 0,t)}o(Ac,"addLineItemsTypeToSchema");function Sc(e,t,n,i=ne.DefinitionName.Position,r){var p,g,m,T,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let E in a)E!=="custom"&&s.push(E);let l=t!==ne.DefinitionName.LineItems?r:`@${Uo.UIAnnotationTerms.LineItem}`,u=(A=(T=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:T[l])==null?void 0:A.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;fa(s,E)}}o(Sc,"addFragmentEnumForAnchor");function lo(e,t,n=ne.DefinitionName.CustomActionPosition){Ga(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(lo,"addEnumForActionAnchor");function Rh(e,t,n,i){var a,s,l,u;let r;for(let p in e)if((i&&((s=(a=e[p].options)==null?void 0:a.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===ne.v4.FE_TEMPLATE_V4_ALP&&e[p].name===ne.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}o(Rh,"findPageV4");function F1(e,t){let n,i=e.properties[ne.PropertyName.table];return t.templateType===ne.TemplateType.AnalyticalListPageV4?(n=ne.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${ne.DefinitionName.ALPTableView}`,delete e.definitions[ne.DefinitionName.Table],delete e.definitions[ne.DefinitionName.LRChartView],delete e.definitions[ne.DefinitionName.LRTableView],delete e.definitions[ne.DefinitionName.MultiTableModeV4]):t.templateType===ne.TemplateType.ListReportObjectPageV4&&(n=ne.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${ne.DefinitionName.Table}`,e.definitions[n].properties[ne.PropertyName.annotationPath][ne.SchemaTag.hidden]=!0,delete e.definitions[ne.DefinitionName.ALPTableView],e.properties[ne.PropertyName.defaultPath][ne.SchemaTag.hidden]=!0),n}o(F1,"alignSchemaWithTemplateType");function ha(e,t,n,i=ne.DefinitionName.CustomTableAction,r="",a=""){var g,m,T,A,E,O,R,U,W,j;let s=e.definitions[r];if(!s)return;let l=Zu(s),u;a?i.indexOf(ne.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ne.DefinitionName.CustomFormActionOP?u=`@${Uo.UIAnnotationTerms.FieldGroup}`:u=`@${Uo.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ne.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(E=(A=(T=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:A.sections)==null?void 0:E[u])==null?void 0:O.actions:p=(j=(W=(U=(R=t.options)==null?void 0:R.settings)==null?void 0:U.controlConfiguration)==null?void 0:W[u])==null?void 0:j.actions,p&&(l=ma(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][ne.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(ha,"addCustomActionDefinition");function _h(e,t,n,i=ne.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,T,A,E,O,R;let a=e.definitions[r];if(!a)return;let s=Zu(a),l;[ne.DefinitionName.CustomHeaderAction,ne.DefinitionName.CustomHeaderActionOP].includes(i)?l=(T=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:T.actions:l=(R=(O=(E=(A=t.options)==null?void 0:A.settings)==null?void 0:E.content)==null?void 0:O.footer)==null?void 0:R.actions,l&&(s=ma(l,s,i,"press",n));let u={};if(s){for(let U=0;U<s.length;U++)s[U][1][ne.SchemaTag.propertyIndex]=U;s.forEach(([U,W])=>u[U]=W)}e.definitions[r].properties=u}o(_h,"addHeaderFooterCustomActionDefinition");function Pc(e,t,n){let i=Gg(e,[ne.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:Vi.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}let r=Gg(i,[t]);if(!r){se(n,{severity:Vi.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}return r}o(Pc,"getManifestPage");function xc(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,N1.join)(...p,g),T=e.find(A=>A.dataSourceUri.endsWith(m));if(T){let A=(s=t.options)==null?void 0:s.settings;return{file:T,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(xc,"getPageCustomExtensionFile");function us(e,t,n,i){let r=Pc(n,t,i),a=Gg(r,["options","settings","viewName"]);return r&&typeof a=="string"?xc(e,r,n,"view",a):void 0}o(us,"getPageCustomViewFile");function R1(e,t,n,i,r,a,s){var g,m,T,A,E,O,R,U,W,j,ae,Z;let l=Zu(t),u=new Map;if(l=l.map(re=>{let xe=ym(e,re[1],re[0],{keyProperties:[ne.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(xe.const,re[0]),[xe.const,re[1]]}),a){let re=(E=(A=(T=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:A.sections)==null?void 0:E[a];re&&"subSections"in re&&(l=ma(re.subSections,l,i,"template",s,r))}else if(i.includes(ne.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(U=(R=(O=n.options)==null?void 0:O.settings)==null?void 0:R.content)==null?void 0:U.header;re&&"facets"in re&&(l=ma(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(j=(W=n.options)==null?void 0:W.settings)==null?void 0:j.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=ma(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][ne.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,xe])=>{re=u.get(re)||re,p[re]=xe}),t.properties=p}o(R1,"addCustomSectionDefinition");function _1(e,t,n){var l,u,p;let i=Zu(t),r=new Map;i=i.map(g=>{let m=ym(e,g[1],g[0],{keyProperties:[ne.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Uo.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ma(a.filterFields,i,ne.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ne.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(_1,"addCustomFilterFieldDefinition");var D=te(le()),Cc=require("@sap-ux/vocabularies-types/vocabularies/UI");var UX=["header","filterBar","chart","table"],RA="@UI.LineItem";function _A(e,t,n,i,r){i||(i=t.definitions[D.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[D.SchemaTag.annotationPath]=pr(e.fullyQualifiedName,Cc.UIAnnotationTerms.SelectionFields,r));let a=0;return n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+dt(s.value);s.type==="PropertyPath"&&(l=kg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][D.SchemaTag.propertyIndex]=a;let p=to(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][D.SchemaTag.isViewNode]=!0,t.definitions[u][D.SchemaTag.keys]=[{name:D.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][D.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][D.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][D.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][D.SchemaTag.annotationPath]=`${i[D.SchemaTag.annotationPath]}/${a}`,a++}),i}o(_A,"addSelectionFields");function jX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Cc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(jX,"getVisualFilters");function $X(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($X,"getPropertiesIndex");function BX(e,t,n,i){var s,l,u,p,g,m;let r=$X(i,e),a=t.definitions[D.DefinitionName.VisualFilters];a.properties={};for(let T in n){let A=n[T];if(!A.template){let E=a.properties[T]={$ref:$n(D.DefinitionName.VisualFilter,T)},O=r.indexOf(T);O!==-1&&(E[D.SchemaTag.propertyIndex]=O);let R=Et(D.DefinitionName.VisualFilter,T,t);(s=A.visualFilter)!=null&&s.valueList&&(R[D.SchemaTag.annotationPath]=`${T}/@${A.visualFilter.valueList}`);let U=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(W=>W.name===T))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();R.description=U||T,R[D.SchemaTag.keys]=[{name:D.SchemaKeyName.value,value:T}]}}}o(BX,"addVisualFilters");function HX(e,t,n){t.additionalProperties={$ref:`#/definitions/${D.DefinitionName.CustomFilterField}`},_1(e,t,n);let i=e.definitions[D.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Ga(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[D.SchemaKeyName.value,D.SchemaKeyName.key],descriptionAsFallback:!0})}o(HX,"applyCustomFilterFields");function GX(e,t,n,i){var l,u;let r=jX(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[D.DefinitionName.SelectionFields][D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.SelectionFields].properties={},s=t.definitions[D.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},BX(e,t,r,a);else{let p=t.definitions[D.DefinitionName.FilterBar];p.properties.initialLayout[D.SchemaTag.hidden]=!0,p.properties.layout[D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.CompactFilters][D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.VisualFilters][D.SchemaTag.hidden]=!0}s=_A(e,t,a,s),HX(t,s,n)}o(GX,"addFilterBar");function D1(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(`${D.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=dt(`${D.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=bi(u,r),m=u.$Type.split(`${D.UIVOCABULARY}.`)[1],T=a.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};T[D.SchemaTag.propertyIndex]=l,T[D.SchemaTag.annotationType]=u.$Type,T[D.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[D.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][D.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(D1,"defineActions");function V1(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(D.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"?ul(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",D.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(V1,"findTheRightVisualization");function WX(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(WX,"analyzeChartAnnotation");function KX(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=V1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:D.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=RA,l=`/${t}/`+s.replace("UI",D.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(KX,"analyzeSPVforView");function kl(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${D.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(D.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=V1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return KX(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=RA,m=`/${s}/@${Cc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=RA;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:T}=WX(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:T}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(kl,"analyzeViewAnnotation");function XX(e,t,n,i){let r=e.definitions[D.DefinitionName.ALPChartView];if(e.definitions[D.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[D.DefinitionName.ALPChart][D.SchemaTag.isViewNode],n&&(e.definitions[D.DefinitionName.ALPChart][D.SchemaTag.annotationPath]=n),e.definitions[D.DefinitionName.ALPChart].properties.annotationPath[D.SchemaTag.hidden]=!0,r.properties.annotationPath[D.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${D.DefinitionName.ALPChart}`,t){let a=t.split(D.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[D.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[D.SchemaTag.artifactType]=D.ArtifactType.Manifest,r[D.SchemaTag.key]="primary",r[D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:"primary"}]}o(XX,"addALPChartView");function QX(e,t,n,i,r,a){var U,W,j,ae,Z,re,xe,_;let s=(U=n.entityType)==null?void 0:U.annotations.UI,l=(ae=(j=(W=t==null?void 0:t[0])==null?void 0:W.primary)==null?void 0:j[0])==null?void 0:ae[D.SchemaTag.annotationPath],{targetAnnotation:u}=kl(l,s,n.serviceAVT,"primary",void 0,n.logger);XX(e,l,u,s);let p="Actions<ALPChart>";e.definitions[D.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,D1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=kl((xe=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:xe[D.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),T=e.definitions[a];g||i?(T.properties.toolBar.$ref=`${$}${D.DefinitionName.ToolBarLR}`,T.properties.columns={$ref:$+D.DefinitionName.LineItems},T.properties.annotationPath[D.SchemaTag.hidden]=!0):T.properties={};let A=e.definitions[D.DefinitionName.ALPTableView];e.definitions[D.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[D.DefinitionName.ALPTable][D.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${$}${D.DefinitionName.ALPTable}`):i||(A.properties={}),A[D.SchemaTag.artifactType]=D.ArtifactType.Manifest;let E,O;if(g&&g.indexOf(D.FacetBase.LineItem)>-1?(E=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(D.UIVOCABULARYDOT)[1]):i&&(E=O=i.split(D.UIVOCABULARYDOT)[1]),E){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(_=n.entityType)==null?void 0:_.annotations.UI[E],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:D.DefinitionName.LineItems};Ac(ut,D.DefinitionName.ViewTableColumn),m&&(e.definitions[D.DefinitionName.ALPTable][D.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[D.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[D.SchemaTag.key]="secondary",A[D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:"secondary"}]}bc(e,r,n.logger);let R=`${D.DefinitionName.Actions}<${dt(D.DefinitionName.LineItems)}>`;ha(e,r,n.logger,void 0,R),lo(e,R,D.DefinitionName.CustomActionPosition)}o(QX,"addALPViews");function qX(e,t){let n=`${D.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[D.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][D.SchemaTag.isViewNode],e.appSchema.definitions[n][D.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${D.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[D.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${D.DefinitionName.Actions}<${e.viewKey}>`;return D1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[D.PropertyName.actions].$ref=`${$}${r}`,n}o(qX,"addViewChartDefinitions");function zX(e,t,n,i,r,a){let s=qX(e,t);n.definitions[s].properties.annotationPath[D.SchemaTag.hidden]=!0,n.definitions[s].properties.index[D.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[D.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(zX,"addViewChart");function YX(e,t,n,i,r){var m;let a=`${D.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${D.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=Et(D.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[D.SchemaTag.isViewNode],l[D.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Ha(l.properties.toolBar,D.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},Ha(l.properties.columns,s),l.properties.annotationPath[D.SchemaTag.hidden]=!0,l.properties.index[D.SchemaTag.hidden]=!0,l.properties.entitySet[D.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(D.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};Ac(g,D.DefinitionName.ViewTableColumn,D.DefinitionName.ViewCustomColumn,D.DefinitionName.ViewCustomAction)}o(YX,"addViewLineItems");function JX(e,t,n,i){e.properties[t][D.SchemaTag.isViewNode]=!0,e.properties[t][D.SchemaTag.annotationPath]=n?`/${n}/@${i[D.SchemaTag.annotationPath]}`:void 0,e.properties[t][D.SchemaTag.artifactType]=D.ArtifactType.Manifest,e.properties[t][D.SchemaTag.key]=t,e.properties[t][D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:t}]}o(JX,"addTagsToView");function ZX(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(ZX,"getTargetEntityType");function e7(e,t,n,i){let r=`${D.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Cc.UIAnnotationTerms.LineItem}${n.split(D.Visualization.LineItem)[1]}`,l=Et(D.DefinitionName.ViewCustomColumn,r,e.appSchema);Ha(l.properties.position,D.DefinitionName.ViewPosition,r),Et(D.DefinitionName.ViewPosition,r,e.appSchema),bc(e.appSchema,i,t.logger,`${D.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Sc(e.appSchema,r,i,`${D.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${D.DefinitionName.Actions}<${r}>`,p=`${D.DefinitionName.ViewCustomAction}<${r}>`;ha(e.appSchema,i,t.logger,p,u,s),Et(D.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${D.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,lo(e.appSchema,u,g)}o(e7,"addViewCustomExtensions");function t7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(D.Visualization.LineItem))>-1)YX(n,t,e,n.targetAnnotation,i),e7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)zX(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:`${$}${D.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${D.DefinitionName.LRTableView}`}}}o(t7,"addLRViewParts");function n7(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[D.SchemaTag.key])continue;let p,g=ZX(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:T,targetAnnotation:A,namespace:E,title:O}=kl(u==null?void 0:u[D.SchemaTag.annotationPath],m,n.serviceAVT,u[D.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(W=>W.targetTypeName===E))==null?void 0:l.name);let R=dt(u[D.SchemaTag.key]),U={viewKey:R,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};t7(T,s,U,n,i,m,u),JX(s,R,E,u)}}o(n7,"addLRViews");function i7(e,t,n,i,r,a){var g,m,T,A,E,O,R,U,W,j,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=kl(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,D.Visualization.LineItem,t.logger);if(l){let xe=l.split(".")[1],_=`${D.DefinitionName.LineItems}OfSPV::${dt(xe)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[D.SchemaTag.isViewNode],Ha(ut.properties.toolBar,D.DefinitionName.ToolBar,_),ut[D.SchemaTag.annotationPath]=u,ut.properties.columns={},Ha(ut.properties.columns,_),delete s.properties,Ha(s,`${a}SPV`),s[D.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[xe];yt||se(t.logger,{severity:D.LogSeverity.Error,message:q.t("NOTARGET",{target:xe})});let $e={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_};Ac($e);let an=(T=xe.split("#"))==null?void 0:T[1],Wn=an?`@${Cc.UIAnnotationTerms.LineItem}#${an}`:`@${Cc.UIAnnotationTerms.LineItem}`;bc(e,i,t.logger,void 0,_,Wn),Sc(e,_,i,void 0,Wn);let en=`${D.DefinitionName.Actions}<${_}>`,Lt=mm(e,_,D.DefinitionName.CustomTableAction);ha(e,i,t.logger,hn(Lt),en,Wn),lo(e,en,D.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${D.DefinitionName.ToolBarLR}`,Ha(s.properties.columns,D.DefinitionName.LineItems);let xe=(O=(E=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:E[r])==null?void 0:O.LineItem;!xe&&!((W=(U=(R=i.options)==null?void 0:R.settings)==null?void 0:U.views)!=null&&W.paths)&&se(t.logger,{severity:D.LogSeverity.Error,message:q.t("NOLINEITEMS")});let _={isObjectPage:!1,appSchema:e,lineItemAnnotation:xe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D.DefinitionName.LineItems};Ac(_),bc(e,i,t.logger),Sc(e,D.DefinitionName.LineItems,i),xe&&!((Z=(ae=(j=i.options)==null?void 0:j.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[D.SchemaTag.annotationPath]=pr((re=t.entityType)==null?void 0:re.fullyQualifiedName,xe.term,xe.qualifier));let ut=`${D.DefinitionName.Actions}<${dt(D.DefinitionName.LineItems)}>`;ha(e,i,t.logger,void 0,ut),lo(e,ut,D.DefinitionName.CustomActionPosition)}}o(i7,"adaptTableDefinition");function r7(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===D.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===D.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(r7,"getDefaultAnnotationPath");function o7(e,t,n,i){var u,p,g,m,T;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=r7(t,n.entityType,n.templateType),l=F1(e,n);GX(a,e,t,i),n.templateType===D.TemplateType.ListReportObjectPageV4?(i7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],n7(e,r,n,t,l)):(T=(m=t.options)==null?void 0:m.settings)!=null&&T.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[D.PropertyName.chart][D.SchemaTag.hidden]=!0):n.templateType===D.TemplateType.AnalyticalListPageV4&&(QX(e,r,n,s,t,l),Sc(e,D.DefinitionName.LineItems,t))}o(o7,"addTableAndViews");function a7(e,t,n){let i=D.DefinitionName.HeaderActions,r=e.definitions[i];r[D.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=D.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[D.SchemaTag.isViewNode]=!0,s.description="Custom Action",_h(e,t,n,a,i);let l=D.DefinitionName.CustomHeaderActionPosition;Et(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,lo(e,i,l)}o(a7,"addHeaderActions");function ep(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ri(D.UIVOCABULARY,e.serviceAVT);if(r.properties[D.PropertyName.defaultTemplateAnnotationPath][D.SchemaTag.hidden]=!0,Ba(a,r,D.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[D.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:D.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:D.MANIFESTPATH,range:[D.ManifestSection.generic]}}),r;let u=Rh(l,n,e.entitySet,i);if(!u)return r;a7(r,u,e.logger),o7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Fo(r,UX),r}o(ep,"generateListReportSchemaV4");var br=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=te(le());var IV=te(Xs()),OV=te(CV()),NV=te(hS());var LV=te(le()),FV=te(le());function R6(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(R6,"findElementByXMLPath");function RV(e,t){return e[t]?!1:(e[t]={},!0)}o(RV,"ensureObjectExists");function _6(e,t){let n={},i=hn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(_6,"getPropertiesFromRef");function D6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=RV(l,i),m=l[i];return _c({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(D6,"traverseDefaultAggregation");function V6(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(V6,"isDefaultAggregationAppliable");function _c(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=_6(s,n.$ref));for(let T in u){let A=u[T],E=typeof A=="object";if(E&&(p==null?void 0:p.defaultAggregation)===T&&V6(u,p)&&(l=D6(e,t,p)||l,E=!1),!!E)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,R=O.slice(r.length),U=R6(i,R);l=RV(a,T)||l;let W=a[T];l=_c({fullSchema:e.fullSchema,schema:A,element:U,contextPath:O,config:W,parent:e},t)||l}else l=t(e,A,a,T)||l}return l}o(_c,"traverseSchema");function tf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,NV.parse)(e.fileContent),s=(0,OV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,IV.xml2js)(e.fileContent)}catch(r){se(n,{severity:FV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(r)}),location:{path:e.dataSourceUri}})}return i}o(tf,"parseXML");function nf(e){return`${LV.DefinitionName.CustomExtensionFragment}<${e}>`}o(nf,"getCustomExtensionFragmentDefinitionKey");function xy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(xy,"getRootElement");var IS=te(le()),OS=te(le());var Ip=te(le());function vs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(vs,"getAttribute");function _V(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(_V,"getNodeByName");function M6(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(M6,"resolveMetaPath");function AS(e){var E;let{node:t,serviceAVT:n,connectionContext:i}=e,r=vs(t,"contextPath")||i.contextPath,a=vs(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=M6(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((E=p==null?void 0:p.target)==null?void 0:E._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,T=a.split("#");T.length&&(m=T[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(AS,"getEntityTypeResolution");function DV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(DV,"applyAnnotationPath");function w6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=kl(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=uE(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(w6,"getTableLineItemAnnotationData");var VV={"sap.fe.macros.Chart":o(e=>{let t=AS(e);DV(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=AS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ri(Ip.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);_A(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=AS(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=ri(Ip.UIVOCABULARY,n);if(DV(t,r),t.annotationPath){let u=w6(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:Ip.DefinitionName.LineItems};FA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var MV=te(le());var k6=new Map([["filterFields","SelectionField::"]]),U6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Op={anchor:"anchor",placement:"placement",key:"key"};function j6(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[hn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Op.anchor in r&&Op.placement in r}return!1}o(j6,"isCustomExtensionSchema");function wV(e){let t=k6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=U6.get(e),t&&(n.prefix=t)),n}o(wV,"getAnnotationPrefix");function $6(e,t,n,i){let r=t.properties[n],a=wV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=vs(l,Op.key)||n,p=vs(l,Op.anchor),g=vs(l,Op.placement)||MV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,T={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:T}}o($6,"getExtensionData");function B6(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}=$6(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ma(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(B6,"updatePropertyIndices");function H6(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=vs(e.subElements[s],"key")||r}return r}o(H6,"getCorrectedAnchorEnumKey");function G6(e,t,n,i){var a,s;let r=wV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Ga(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=H6(e,m.const,r,t.properties[m.const]))}}o(G6,"applyEnumsForAnchors");function kV(e,t,n,i){j6(t,n)&&(i=i||e.name,B6(e,t,i),G6(e,t,n,i))}o(kV,"handleExtensions");var UV=te(require("crypto"));var Iy=new Uint8Array(256),Cy=Iy.length;function SS(){return Cy>Iy.length-16&&(UV.default.randomFillSync(Iy),Cy=0),Iy.slice(Cy,Cy+=16)}o(SS,"rng");var pi=[];for(let e=0;e<256;++e)pi.push((e+256).toString(16).slice(1));function jV(e,t=0){return pi[e[t+0]]+pi[e[t+1]]+pi[e[t+2]]+pi[e[t+3]]+"-"+pi[e[t+4]]+pi[e[t+5]]+"-"+pi[e[t+6]]+pi[e[t+7]]+"-"+pi[e[t+8]]+pi[e[t+9]]+"-"+pi[e[t+10]]+pi[e[t+11]]+pi[e[t+12]]+pi[e[t+13]]+pi[e[t+14]]+pi[e[t+15]]}o(jV,"unsafeStringify");var $V=te(require("crypto")),PS={randomUUID:$V.default.randomUUID};function W6(e,t,n){if(PS.randomUUID&&!t&&!e)return PS.randomUUID();e=e||{};let i=e.random||(e.rng||SS)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=i[r];return t}return jV(i)}o(W6,"v4");var xS=W6;var CS="sap.fe.macros",K6=["id","key","title","text","label","header"];function BV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(BV,"getElementName");function X6(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(X6,"isElementWithNamespace");function Q6(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(Q6,"getDependencies");function q6(e,t){let n="",i=e.attributes||[];for(let r of K6){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(q6,"getViewNodeDescription");function z6(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(z6,"findAvailableName");function HV(e,t){if(e.properties={},e.$ref){let n=hn(e.$ref),i=t.definitions[n];typeof i=="object"&&i.properties&&(e.type=i.type,e.isViewNode=i.isViewNode,e.properties=JSON.parse(JSON.stringify(i.properties))),delete e.$ref}}o(HV,"prepareSchemaProperties");function Y6(e,t,n){t.properties||HV(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(Y6,"handleAttributes");function J6(e){e.type===OS.MacrosPropertyType.Control&&(e.internalId=xS())}o(J6,"applyIdForMacros");function Z6(e,t,n){var i,r;try{(r=(i=VV)[e])==null||r.call(i,t)}catch{se(n,{severity:IS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(Z6,"callAnnotationHandler");function eQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===OS.MacrosPropertyType.Control&&(e.controlName=n)}o(eQ,"updateMetadataByReference");function tQ(e,t,n,i){var T,A,E,O,R;let r=n.schema;t.properties||HV(t,r);let a=t.properties[i],s=(T=a==null?void 0:a.metadata)==null?void 0:T.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(E=a==null?void 0:a.metadata)==null?void 0:E.path)!=null&&O.length?z6(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(hn(a.$ref)):g=[`${CS}.${i}`,`${CS}.table.${i}`,`${CS}.filterBar.${i}`];let m=!1;for(let U of g){let W=(R=r.definitions)==null?void 0:R[U];if(typeof W!="object")continue;eQ(u,W,U);let j=q6(e,i),ae={$ref:wR(U),description:j,propertyIndex:n.index,metadata:u};Y6(e,ae,r),t.properties[p]=ae,m=!0,Z6(U,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(J6(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let U={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=U}return p}o(tQ,"addControlToSchema");function GV(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($)[1];a&&t.indexOf(a)===-1&&t.push(a)}GV(r,t)}}o(GV,"populateUsedDefinitionKeys");function nQ(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(nQ,"isElementAddableToSchema");function iQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!_V(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(iQ,"getDefaultAggregation");function rQ(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,WV(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:BV(s),index:a}]},i)}}o(rQ,"handleSubElementsOfXMLNode");function WV(e,t,n,i){var g,m,T;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[hn(t.$ref)]:t;if(X6(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(T=t.metadata)==null?void 0:T.defaultAggregation;A&&nQ(e,t.properties[A])&&(t=t.properties[A]);let E=e.name.split(":"),O=tQ(e,t,n,E[E.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),GV(t,i));let p=iQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),rQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)kV(A.node,A.schema,n.schema,A.name)}o(WV,"handleXMLNode");function oQ(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(oQ,"getMacrosPrefixes");function Dc(e,t,n,i){let r=tf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:IS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=Q6(l),p=oQ(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let T=l.subElements[m],A=!g[T.name];g[T.name]=!0,WV(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:BV(T),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(Dc,"generateMacrosSchemaDefinition");function KV(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&&KV(i.subSections,t)}}o(KV,"populateTemplates");function XV(e,t,n,i){var s,l,u;let r=Pc(n.manifest,i),a=[];KV(((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=nf(p);e.definitions[m]=g;let T=xc(n.fragments,r,n.manifest,"fragment",p);if(T){g.metadata.filePath=T.relativeFilePath;let{properties:A={},definitions:E={}}=Dc(t,T,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in E)e.definitions[O]||(e.definitions[O]=E[O])}}return t}o(XV,"resolveFragments");var aQ=["header","layout","sections","footer"],sQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],NS="Custom Action";function LS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=um(t.item,e),p=la(t.item),g=t.item.fullyQualifiedName.replace(`@${br.UIAnnotationTerms.Identification}`,`/@${br.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,T=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:bi(t.item,r)};T[N.SchemaTag.isViewNode]=!0,T[N.SchemaTag.dataType]=to(t.item),T[N.SchemaTag.propertyIndex]=s,T[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&T[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),T[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),T[N.SchemaTag.actionType]=n,T[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${$}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(LS,"addSingleHeaderActionV4");function QV(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(QV,"addStandardHeaderAction");function qV(e,t,n,i,r,a){let s=la(e.item),l=bi(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${br.UIAnnotationTerms.Identification}`,`/@${br.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}o(qV,"addSingleFooterAction");function cQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===br.UIAnnotationTypes.DataFieldForAction||i.$Type===br.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(sQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(cQ,"groupByCriticality");function lQ(e,t,n,i,r){for(let a=0;a<e.length;a++)LS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(lQ,"addCriticalActions");function fQ(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&&(LS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(fQ,"addCopyAction");function uQ(e,t,n,i,r,a){for(let s of e)LS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(uQ,"addUncriticalActions");function pQ(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(pQ,"addRelatedAppsButton");function zV(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(zV,"setAnnotationPathFromEntitySetOrEntityType");function dQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?cQ(n):{};if(lQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=p0(r.entitySet),g=d0(r.entitySet);if(im(r.entitySet)&&g){let m=QV("Edit",t,i,s.length);zV(m,r.entitySet,e,"UpdateHidden")}if(p){let m=QV("Delete",t,i,s.length+1);zV(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;fQ(l,r.serviceAVT,t,e,i,u),uQ(l,r.serviceAVT,t,e,i,u),ZV(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),pQ(i)}o(dQ,"addHeaderActionCallBackV4");function gQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===br.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];qV(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];qV(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(gQ,"addFooterActionCallBackV4");function mQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${br.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;bc(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;Et(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,Sc(e,n,t,g,i.replace(/::/g,"/"))}o(mQ,"addCustomColumnsOP");function hQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${br.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=NS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;ha(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;Et(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,lo(e,p,m)}o(hQ,"addTableCustomActionsOP");function ZV(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=NS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;_h(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;Et(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,lo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(ZV,"addHeaderFooterCustomActionsOP");function yQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=NS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;ha(e,t,r,l,u,i),Et(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,lo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(yQ,"addFormCustomActionsOP");function vQ(e,t,n,i,r,a,s){let l=hl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=Et(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${$}${l}`},g.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=$n(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=Et(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=$n(N.DefinitionName.AnnotationPathAsObject,t),Et(N.DefinitionName.AnnotationPathAsObject,t,n),Ba(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let T={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Ac(T,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),mQ(n,a,l,t,s),hQ(n,a,l,t,s),g}o(vQ,"handleLineItem");function eM(e,t,n,i,r,a,s){s&&(s.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,t)});let l=Et(N.DefinitionName.ObjectPageSectionTableV4,t,n);Ua(e,l,hl(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=$n(N.DefinitionName.ObjectPageTable,t);let u=vQ(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(eM,"handleSectionTable");function TQ(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:$n(l,n)};let u=Et(l,n,r);e.ID||(u.properties={}),Ua(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=lm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=hl(n);Et(N.DefinitionName.CustomFormActionOP,p,r),yQ(r,t,p,g,s)}}o(TQ,"handleFormIdentification");function YV(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=Et(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);fl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=tc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(YV,"handleHeaderFacet");function EQ(e,t,n,i){let r=Et(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=bi(s,i),u=s.$Type.split(N.UIVOCABULARYDOT)[1],p=s.Action.replace("/","::"),g=r.properties[`${u}::${s.Action}`]={$ref:$n(N.DefinitionName.ObjectPageToolBarAction,p),description:l};g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationType]=s.$Type;let m=Et(N.DefinitionName.ObjectPageToolBarAction,dt(p),n);m[N.SchemaTag.annotationPath]=hm(s),m[N.SchemaTag.dataType]=to(s),m.properties={},a++})}return r}o(EQ,"handleChartActions");function bQ(e,t,n,i){let r=Et(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=hm(e),r[N.SchemaTag.dataType]=tc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t);let a=Et(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=$n(N.DefinitionName.ObjectPageToolBarActions,t);let s=EQ(e,t,n,i);return{chart:r,chartActions:s}}o(bQ,"handleChart");function tM(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,t)});let a=Et(N.DefinitionName.ObjectPageSectionChart,t,n);fl(e,a,t),a[N.SchemaTag.annotationPath]=hm(e),a.properties.chart.$ref=$n(N.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=bQ(e.target||e,t,n,r);return{sectionChart:a,chart:s,chartActions:l}}o(tM,"handleSectionChart");function JV(e,t,n,i,r,a){var m;let s,l,u;if(!(e!=null&&e.target)){se(r.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=e.target.PresentationVariant?e.target.PresentationVariant.Visualizations:e.target.Visualizations,g=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(p!=null&&p[0])if(p[0].$target)s=p[0].$target,l="@"+fm(`${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,r.serviceAVT),u=s;else{s=p[0],l="@"+fm(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let A=r.entityType.navigationProperties.find(O=>O.name===g).targetType,E=l==null?void 0:l.split(N.UIVOCABULARYDOT)[1];u=E&&((m=A==null?void 0:A.annotations)==null?void 0:m.UI[E])}if(s){let T=l.split(N.UIVOCABULARYDOT)[1],A=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0],E=g?`${g}::${l}`:l;if(T.startsWith(N.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,E)};let{sectionChart:O,chart:R}=tM(s,E,n,void 0,e.entityType);O[N.SchemaTag.annotationPath]=e.annotationPath,fl(e,O,t),R[N.SchemaTag.annotationPath]=`/${A}/${l}`,R[N.SchemaTag.target]=A}else if(T.startsWith(N.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,E)};let{sectionTable:O,table:R}=eM(e,E,n,{target:u,entityType:e.entityType},r,a);O[N.SchemaTag.annotationPath]=e.annotationPath,fl(e,O,t),delete O[N.SchemaTag.isViewNode],R[N.SchemaTag.annotationPath]=`/${A}/${l}`,R[N.SchemaTag.target]=A}}}o(JV,"handleSectionPresentationVariant");function AQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(AQ,"containsCollectionFacet");function SQ(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};qs(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(SQ,"createCustomSubSectionReference");function PQ(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=Et(n,p,e),m=Et(N.DefinitionName.ObjectPageCustomSectionActions,p,e),T=Et(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${$}${A}`};let E=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${E}`},Et(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;T.properties.position.$ref=`${$}${O}`,T[N.SchemaTag.isViewNode]=!0,ha(e,t,i,E,A,p),lo(e,A,O)}}o(PQ,"applyCustomActionsToCustomSections");function FS(e,t,n,i,r,a,s){var m,T,A,E,O;let l=!1,u;a&&s?(l=!AQ(a),u=SQ(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},R1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Ga(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let R=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];R.properties={},PQ(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let R=(O=(E=(A=(T=(m=i.options)==null?void 0:m.settings)==null?void 0:T.content)==null?void 0:A.body)==null?void 0:E.sections)==null?void 0:O[s],U=R&&"subSections"in R?R.subSections:{};for(let W=g.oneOf.length-1;W>=0;W--){let j=g.oneOf[W];U[j.const]||(j.hidden=!0)}}}o(FS,"applyCustomSections");function xQ(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=No(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let T in e.facets)RS(a,e.facets,T,g,n,r,s,m);u&&FS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(xQ,"handleCollection");function RS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${hl(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:{JV(u,n,r,i,e,s);break}case N.FacetBase.SelectionPresentationVariant:{JV(u,n,r,i,e,s);break}case N.FacetBase.CollectionFacet:{xQ(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];eM(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{TQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{YV(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?YV(u,n,i,r,p):a===N.SectionType.Section&&tM(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{cu(u,n,i,r,a);break}default:i.properties[n]=No(r,u,n)}}o(RS,"addSection");function CQ(e,t,n){let i=jg(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)RS(e,i,a,r,t,N.SectionType.Section,n);FS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(CQ,"addSections");function IQ(e,t,n,i){let r=Ug(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)RS(e,r,s,a,t,N.SectionType.HeaderSection,i);FS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(IQ,"addHeaderSections");function OQ(e,t,n){let i=e.entityType;gm(t,i),dm(t,i,e,dQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${br.UIAnnotationTerms.HeaderFacets}`),IQ(e,t,i,n)}o(OQ,"addHeader");function Np(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Rh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(OQ(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${br.UIAnnotationTerms.Facets}`),qs(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{XV(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}CQ(e,r,l),pm(r,e,N.FioriElementsVersion.v4,gQ),ZV(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Fo(r,aQ),r}o(Np,"generateObjectPageSchemaV4");function _S(e,t){return JSON.parse(JSON.stringify(t))}o(_S,"generateFreestyleSchemaV4");var Kr=te(le());function DS(e,t,n,i,r,a,s,l,u){let p=Io(n,r),{entitySet:g,entityType:m}=Vc(p,s,t,r),T={templateType:Kr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Np(T,e,s,l)}o(DS,"generateObjectPageInterfaceV4");function Oy(e,t,n,i,r,a,s){nn();let l=Io(i,r),{entitySet:u,entityType:p}=Vc(l,s,n,r),g={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Kr.TemplateType.ListReportObjectPageV4?Kr.v4.FE_TEMPLATE_V4_LIST_REPORT:Kr.v4.FE_TEMPLATE_V4_ALP;return ep(g,t,m,s)}o(Oy,"generateListReportInterfaceV4");function VS(e,t,n,i,r,a){let s=Io(n,a),l={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return _S(l,t)}o(VS,"generateFreestyleInterfaceV4");function MS(e,t,n,i,r,a,s){let l={};if(qs(a,Kr.Features.BuildingBlocks)){let u=Io(r,s),p=us(i||[],t,n,s);l=p!=null&&p.file.fileContent?Dc(e,p,u,s):{}}return l}o(MS,"generateFPMCustomPageInterfaceV4");var wc=require("@sap-ux/vocabularies-types/vocabularies/UI"),aM=te(le());var Mc=te(le());var rM=new Map([[Mc.PageTypeV2.ListReport,Mc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Mc.PageTypeV2.ObjectPage,Mc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),nM=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"),iM=o(e=>{var t;for(let[n,i]of rM)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"),NQ=o((e,t)=>{let n="";for(let[r,a]of rM)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),oM={manifest:{path:o(()=>`sap.ui5/extends/extensions/${Mc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=iM(n);i&&(t[i]={},nM(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=NQ(s,i);e[l]||(e[l]={}),nM(r[s],e[l])}for(let s in e){let l=iM(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Fy=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Ry=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),LQ=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),Xr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),_y=o((e,t,n)=>Xr(e)+`/@${wc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Dy=o(e=>Xr(e)+`/@${wc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ts=o((e,t,n,i)=>Xr(e)+`/@${wc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),wS=o((e,t,n,i)=>Dy(e)+`/filterFields/${i}`,"getFilterFieldPath"),er=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),xi=o((e,t,n,i,r)=>r?er(e,t,n,i,r):Xr(e)+`/@${wc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Vy=o((e,t,n,i,r)=>xi(e,t,n,i,r)+aM.QUICKVARPATH,"getQuickVariantPath"),tr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),di=o((e,t,n,i,r)=>r?tr(e,t,n,i,r):Xr(e)+`/@${wc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Qr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Ar=o((e,t,n,i,r)=>r?Qr(e,t,n,i,r):Xr(e)+`/@${wc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),ji=o((e,t,n,i)=>Xr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>Xr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>Ry(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),My=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),mo=o((e,t,n,i)=>LQ(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),yn=o((e,t,n)=>Xr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),of=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Es=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Sr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),af=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Ly=class Ly{};o(Ly,"ApplicationV4"),h([kt("settings")],Ly.prototype,"settings",2);var Ny=Ly,go=class go{};o(go,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],go.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],go.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],go.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],go.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],go.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],go.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],go.prototype,"path",2),h([y(oM)],go.prototype,"controllerExtensions",2);var rf=go;var he=te(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Yn(e,g);if(m!=null&&m.manifest){let T=m.manifest.path([i],t,p,...r);l=Oo(t,T,a,p,!0),l&&Object.keys(l).length>0&&(pl(m,l,g,e,a,r),qg(u,l,T,s))}}}o(At,"importSettingsOfObject");var xx={};Ws(xx,{ALPChart:()=>$P,ALPTable:()=>mf,ActionAfterExecutionConfiguration:()=>sx,ActionAfterExecutionConfigurationFooter:()=>rP,ActionAfterExecutionConfigurationForm:()=>cP,ActionAfterExecutionConfigurationOP:()=>Qp,ActionAfterExecutionConfigurationObjectPageHeader:()=>vP,ActionAfterExecutionConfigurationToolBarLR:()=>vx,Actions:()=>gx,AdditionalSemanticObject:()=>ox,CommonHeaderFacetSettings:()=>Ns,CommonViewSettings:()=>gf,CustomActionPosition:()=>bx,CustomActionPositionOP:()=>ix,CustomFilterField:()=>$S,CustomFilterFieldPosition:()=>jS,CustomFooterActionOP:()=>sP,CustomFooterActionPositionOP:()=>aP,CustomFormActionOP:()=>gP,CustomHeaderAction:()=>KS,CustomHeaderActionOP:()=>bP,CustomHeaderActionPosition:()=>_p,CustomHeaderActionPositionOP:()=>EP,CustomSectionActionOP:()=>ZS,CustomSectionActionPositionOP:()=>JS,CustomTableAction:()=>Ax,CustomTableActionOP:()=>rx,FilterBar:()=>kS,FlexSettings:()=>SP,FooterActionV4:()=>oP,FormAction:()=>lP,Header:()=>HS,HeaderActions:()=>BS,HeaderSections:()=>NP,LRChartView:()=>BP,LRTableView:()=>HP,MultiTableModeV4:()=>WP,ObjectPageCustomHeaderSectionFlexSettings:()=>XS,ObjectPageCustomHeaderSectionFragment:()=>QS,ObjectPageCustomSectionActions:()=>qS,ObjectPageCustomSectionFragment:()=>cf,ObjectPageCustomSubSectionFragment:()=>zS,ObjectPageFooter:()=>tP,ObjectPageFooterActions:()=>eP,ObjectPageForm:()=>uP,ObjectPageFormActions:()=>fP,ObjectPageHeader:()=>hP,ObjectPageHeaderAction:()=>TP,ObjectPageHeaderActions:()=>mP,ObjectPageHeaderSectionAddress:()=>OP,ObjectPageHeaderSectionChart:()=>xP,ObjectPageHeaderSectionContact:()=>IP,ObjectPageHeaderSectionDataPoint:()=>CP,ObjectPageHeaderSectionForm:()=>PP,ObjectPageLayout:()=>MP,ObjectPageTable:()=>Wp,ObjectPageTableColumn:()=>Ef,ObjectPageTableColumnAction:()=>JP,ObjectPageToolBarAction:()=>nx,PersonalizationType:()=>kP,PersonalizationTypeOP:()=>zP,Position:()=>fx,PositionOP:()=>ZP,QuickVariantSelectionV4:()=>jP,QuickVariantSelectionV4OP:()=>YP,RelatedApps:()=>ax,Table:()=>KP,TableColumn:()=>zy,TableColumnAction:()=>cx,TableCreationModeOP:()=>qP,TableCustomColumn:()=>px,TableCustomColumnOP:()=>ex,TableSettings:()=>Hy,TableViewExtension:()=>GP,TableViewSettings:()=>Bp,ToolBar:()=>mx,ToolBarAction:()=>Tx,ViewCustomActionPosition:()=>Sx,ViewPersonalizationType:()=>UP,ViewPosition:()=>ux,ViewTableColumn:()=>Yy,ViewTableColumnAction:()=>lx,ViewTableCustomAction:()=>Px,ViewTableCustomColumn:()=>dx,ViewToolBarAction:()=>Ex,VisualFilter:()=>US,checkViewOrder:()=>XP,deleteCreationModeProperty:()=>Gp,deletePersonalizationProperty:()=>vo,exportCreationModeProperty:()=>Hp,exportPersonalization:()=>Xy,exportPersonalizationProperty:()=>yo});function FQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(FQ,"exportVisualFilterValueList");var sf=class sf{};o(sf,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.99.0"}),Se("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],sf.prototype,"hideFilterBar",2),h([y({manifest:{path:Dy}}),x({since:"1.93.0"}),Se("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],sf.prototype,"initialLayout",2),h([y({manifest:{path:Dy}}),x({since:"1.93.0"}),Se("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],sf.prototype,"layout",2);var kS=sf,Lp=class Lp{};o(Lp,"VisualFilter"),h([y({manifest:{path:wS}}),x({since:"1.93.0"}),Se("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lp.prototype,"availability",2),h([y({manifest:{path:wS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:FQ,key:"visualFilter"}}),x({since:"1.93.0"})],Lp.prototype,"visualFilterValueList",2);var US=Lp,Fp=class Fp{};o(Fp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ts(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Fp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ts(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Fp.prototype,"placement",2);var jS=Fp,bs=class bs{};o(bs,"CustomFilterField"),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],bs.prototype,"label",2),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],bs.prototype,"property",2),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],bs.prototype,"template",2),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],bs.prototype,"required",2),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],bs.prototype,"position",2);var $S=bs;var GS=class GS{};o(GS,"HeaderActions");var BS=GS,WS=class WS{};o(WS,"Header");var HS=WS;var Rp=class Rp{};o(Rp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Rp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Rp.prototype,"placement",2);var _p=Rp,As=class As{};o(As,"CustomHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],As.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],As.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],As.prototype,"press",2),h([y({manifest:{path:gi},generate:zn}),x({since:"1.84.0"})],As.prototype,"visible",2),h([y({manifest:{path:gi},generate:zn}),x({since:"1.84.0"})],As.prototype,"enabled",2);var KS=As;var wy=class wy{};o(wy,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Sr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],wy.prototype,"designtime",2);var XS=wy,nr=class nr{};o(nr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Sr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],nr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Sr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],nr.prototype,"relativePosition",2),h([y({manifest:{path:Sr},generate:oi}),x({since:"1.84.0"})],nr.prototype,"visible",2),h([y({manifest:{path:Sr}}),x({since:"1.77.0"})],nr.prototype,"title",2),h([y({manifest:{path:Sr}}),x({since:"1.77.0"})],nr.prototype,"subTitle",2),h([y({manifest:{path:Sr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],nr.prototype,"fragmentName",2),h([y({manifest:{path:Sr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],nr.prototype,"templateEdit",2),h([y({manifest:{path:Sr}}),x({since:"1.81.0"})],nr.prototype,"stashed",2),h([y({manifest:{path:Sr}}),x({since:"1.81.0"})],nr.prototype,"flexSettings",2),h([y({manifest:{path:Sr}}),x({since:"1.81.0"})],nr.prototype,"requestGroupId",2),h([y({manifest:{path:Sr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],nr.prototype,"controls",2);var QS=nr;var YS=class YS{};o(YS,"ObjectPageCustomSectionActions");var qS=YS,Ss=class Ss{};o(Ss,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>of(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],Ss.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>of(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],Ss.prototype,"relativePosition",2),h([y({manifest:{path:of}}),x({since:"1.77.0"})],Ss.prototype,"title",2),h([y({manifest:{path:of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Ss.prototype,"fragmentName",2),h([y({manifest:{path:of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Ss.prototype,"controls",2);var cf=Ss,Ps=class Ps extends cf{};o(Ps,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${af.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Ps.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${af.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Ps.prototype,"relativePosition",2),h([y({manifest:{path:af}}),x({since:"1.77.0"})],Ps.prototype,"title",2),h([y({manifest:{path:af,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Ps.prototype,"fragmentName",2),h([y({manifest:{path:af,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Ps.prototype,"controls",2);var zS=Ps;var Dp=class Dp{};o(Dp,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Dp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Es(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Dp.prototype,"placement",2);var JS=Dp,xs=class xs{};o(xs,"CustomSectionActionOP"),h([y({manifest:{path:Es}}),x({since:"1.84.0"})],xs.prototype,"text",2),h([y({manifest:{path:Es}}),x({since:"1.84.0"})],xs.prototype,"position",2),h([y({manifest:{path:Es}}),x({since:"1.84.0"})],xs.prototype,"press",2),h([y({manifest:{path:Es},generate:oi}),x({since:"1.84.0"})],xs.prototype,"visible",2),h([y({manifest:{path:Es},generate:oi}),x({since:"1.84.0"})],xs.prototype,"enabled",2);var ZS=xs;var nP=class nP{};o(nP,"ObjectPageFooterActions");var eP=nP,iP=class iP{};o(iP,"ObjectPageFooter");var tP=iP;var Vp=class Vp{};o(Vp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}}),Se("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Vp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}})],Vp.prototype,"enableAutoScroll",2);var rP=Vp,ky=class ky{};o(ky,"FooterActionV4"),h([y({manifest:{path:mo}}),x({since:"1.84.0"})],ky.prototype,"afterExecution",2);var oP=ky,Mp=class Mp{};o(Mp,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Mp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Mp.prototype,"placement",2);var aP=Mp,Cs=class Cs{};o(Cs,"CustomFooterActionOP"),h([y({manifest:{path:mo}}),x({since:"1.84.0"})],Cs.prototype,"text",2),h([y({manifest:{path:mo}}),x({since:"1.84.0"})],Cs.prototype,"position",2),h([y({manifest:{path:mo}}),x({since:"1.84.0"})],Cs.prototype,"press",2),h([y({manifest:{path:mo},generate:oi}),x({since:"1.84.0"})],Cs.prototype,"visible",2),h([y({manifest:{path:mo},generate:oi}),x({since:"1.84.0"})],Cs.prototype,"enabled",2);var sP=Cs;var wp=class wp{};o(wp,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),Se("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],wp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],wp.prototype,"enableAutoScroll",2);var cP=wp,Uy=class Uy{};o(Uy,"FormAction"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Uy.prototype,"afterExecution",2);var lP=Uy,pP=class pP{};o(pP,"ObjectPageFormActions");var fP=pP,dP=class dP{};o(dP,"ObjectPageForm");var uP=dP;var Is=class Is{};o(Is,"CustomFormActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Is.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Is.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Is.prototype,"press",2),h([y({manifest:{path:kn},generate:oi}),x({since:"1.84.0"})],Is.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),x({since:"1.84.0"})],Is.prototype,"enabled",2);var gP=Is;var yP=class yP{};o(yP,"ObjectPageHeaderActions");var mP=yP,lf=class lf{};o(lf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],lf.prototype,"editableHeaderContent",2),h([y({manifest:{path:Ry}}),x({since:"1.84.0"})],lf.prototype,"visible",2),h([y({manifest:{path:Ry}}),x({since:"1.84.0"})],lf.prototype,"anchorBarVisible",2);var hP=lf;var kp=class kp{};o(kp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),Se("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],kp.prototype,"enableAutoScroll",2);var vP=kp,jy=class jy{};o(jy,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],jy.prototype,"afterExecution",2);var TP=jy,AP=class AP extends _p{};o(AP,"CustomHeaderActionPositionOP");var EP=AP,Os=class Os{};o(Os,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Os.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Os.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Os.prototype,"press",2),h([y({manifest:{path:gi},generate:oi}),x({since:"1.84.0"})],Os.prototype,"visible",2),h([y({manifest:{path:gi},generate:oi}),x({since:"1.84.0"})],Os.prototype,"enabled",2);var bP=Os;var $y=class $y{};o($y,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>_y(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),Se("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],$y.prototype,"designtime",2);var SP=$y,Up=class Up{};o(Up,"CommonHeaderFacetSettings"),h([y({manifest:{path:_y}}),x({since:"1.81.0"})],Up.prototype,"stashed",2),h([y({manifest:{path:_y}}),x({since:"1.81.0"})],Up.prototype,"flexSettings",2);var Ns=Up,LP=class LP extends Ns{};o(LP,"ObjectPageHeaderSectionForm");var PP=LP,FP=class FP extends Ns{};o(FP,"ObjectPageHeaderSectionChart");var xP=FP,RP=class RP extends Ns{};o(RP,"ObjectPageHeaderSectionDataPoint");var CP=RP,_P=class _P extends Ns{};o(_P,"ObjectPageHeaderSectionContact");var IP=_P,DP=class DP extends Ns{};o(DP,"ObjectPageHeaderSectionAddress");var OP=DP,VP=class VP{};o(VP,"HeaderSections");var NP=VP;var By=class By{};o(By,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],By.prototype,"sectionLayout",2);var MP=By;var Qy=te(le());var wP=te(le());var RQ=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 ho(e,t,n,i,r,a){let s=Fy(e),l=RQ(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[wP.SchemaTag.key]===(a==null?void 0:a.key)||g[wP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(ho,"getSettingsPathForLRViewsPath");function _Q(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(_Q,"fillNewlyOrderedViews");function XP(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=_Q(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(XP,"checkViewOrder");function Xy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(Xy,"exportPersonalization");function yo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(yo,"exportPersonalizationProperty");function vo(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(vo,"deletePersonalizationProperty");function QP(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(QP,"deleteView");function Hp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Hp,"exportCreationModeProperty");function Gp(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(Gp,"deleteCreationModeProperty");function sM(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(sM,"importPersonalization");function cM(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(cM,"determineIndexOfView");var ff=class ff{};o(ff,"PersonalizationType"),h([y({manifest:{path:xi,export:yo,delete:vo}})],ff.prototype,"column",2),h([y({manifest:{path:xi,export:yo,delete:vo}})],ff.prototype,"sort",2),h([y({manifest:{path:xi,export:yo,delete:vo}})],ff.prototype,"filter",2);var kP=ff,uf=class uf{};o(uf,"ViewPersonalizationType"),h([y({manifest:{path:er,export:yo,delete:vo}})],uf.prototype,"column",2),h([y({manifest:{path:er,export:yo,delete:vo}})],uf.prototype,"sort",2),h([y({manifest:{path:xi,export:yo,delete:vo}})],uf.prototype,"filter",2);var UP=uf,pf=class pf{};o(pf,"QuickVariantSelectionV4"),h([y({manifest:{path:Vy}})],pf.prototype,"paths",2),h([y({manifest:{path:Vy}})],pf.prototype,"hideTableTitle",2),h([y({manifest:{path:Vy}})],pf.prototype,"showCounts",2);var jP=pf,Pr=class Pr{};o(Pr,"TableSettings"),h([y({manifest:{path:xi}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Pr.prototype,"type",2),h([y({manifest:{path:xi,import:sM,export:Xy}}),x({since:"1.86.0"})],Pr.prototype,"personalization",2),h([y({manifest:{path:xi}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],Pr.prototype,"selectionMode",2),h([y({manifest:{path:xi}}),x({since:"1.84.0"})],Pr.prototype,"selectAll",2),h([y({manifest:{path:xi}}),x({since:"1.84.0"})],Pr.prototype,"selectionLimit",2),h([y({manifest:{path:xi}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Pr.prototype,"enableExport",2),h([y({manifest:{path:xi}}),x({since:"1.84.0"})],Pr.prototype,"quickVariantSelection",2),h([y({manifest:{path:xi}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Pr.prototype,"condensedTableLayout",2),h([y({manifest:{path:xi}}),x({since:"1.117.0"}),Se("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Pr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:xi}}),x({since:"1.120.0"}),Se("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Pr.prototype,"widthIncludingColumnHeader",2);var Hy=Pr,Gy=class Gy{};o(Gy,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:QP}})],Gy.prototype,"annotationPath",2);var $P=Gy,kc=class kc{};o(kc,"CommonViewSettings"),h([y({manifest:{path:ho,delete:zs}})],kc.prototype,"key",2),h([y({manifest:{path:Fy,import:cM,export:o((t,n)=>{XP(t,n)},"export"),delete:QP}})],kc.prototype,"index",2),h([y({manifest:{path:ho,delete:zs}})],kc.prototype,"annotationPath",2),h([y({manifest:{path:ho}})],kc.prototype,"entitySet",2);var gf=kc,xr=class xr extends gf{};o(xr,"TableViewSettings"),h([y({manifest:{path:er}}),x({since:"1.84.0"})],xr.prototype,"type",2),h([y({manifest:{path:er,import:sM}}),x({since:"1.86.0"})],xr.prototype,"personalization",2),h([y({manifest:{path:er}}),x({since:"1.84.0"})],xr.prototype,"selectionMode",2),h([y({manifest:{path:er}}),x({since:"1.84.0"})],xr.prototype,"selectAll",2),h([y({manifest:{path:er}}),x({since:"1.84.0"})],xr.prototype,"selectionLimit",2),h([y({manifest:{path:er}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],xr.prototype,"enableExport",2),h([y({manifest:{path:er}}),x({since:"1.84.0"})],xr.prototype,"quickVariantSelection",2),h([y({manifest:{path:er}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],xr.prototype,"condensedTableLayout",2),h([y({manifest:{path:er}}),x({since:"1.120.0"}),Se("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],xr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:er}}),x({since:"1.117.0"}),Se("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],xr.prototype,"hierarchyQualifier",2);var Bp=xr;function DQ(e){return Bp}o(DQ,"getTableViewSettings");var jp=class jp extends Bp{};o(jp,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],jp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jp.prototype,"initialLoad",2);var mf=jp,Wy=class Wy extends gf{};o(Wy,"LRChartView"),h([y({manifest:{path:ho},generate:zn})],Wy.prototype,"visible",2);var BP=Wy,df=class df extends DQ(gf){};o(df,"LRTableView"),h([y({manifest:{path:ho}})],df.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:ho}})],df.prototype,"entitySet",2),h([y({manifest:{path:ho},generate:zn})],df.prototype,"visible",2);var HP=df,Ls=class Ls{};o(Ls,"TableViewExtension"),h([y({manifest:{path:ho}})],Ls.prototype,"key",2),h([y({manifest:{path:Fy,import:cM,export:o((t,n)=>{XP(t,n)},"export"),delete:QP}})],Ls.prototype,"index",2),h([y({manifest:{path:ho}})],Ls.prototype,"label",2),h([y({manifest:{path:ho}})],Ls.prototype,"template",2),h([y({manifest:{path:ho},generate:zn})],Ls.prototype,"visible",2);var GP=Ls,Ky=class Ky{};o(Ky,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],Ky.prototype,"showCounts",2);var WP=Ky,$p=class $p extends Hy{};o($p,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],$p.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],$p.prototype,"initialLoad",2);var KP=$p;var hf=class hf{};o(hf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"inlineCreationRowsHiddenInEditMode",2);var qP=hf,yf=class yf{};o(yf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"filter",2);var zP=yf,vf=class vf{};o(vf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>yn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"showCounts",2);var YP=vf,Ci=class Ci{};o(Ci,"ObjectPageTable"),h([y({manifest:{path:yn}}),x({since:"1.84.0"})],Ci.prototype,"type",2),h([y({manifest:{path:yn,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"})],Ci.prototype,"creationMode",2),h([y({manifest:{path:yn,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:Xy}}),x({since:"1.86.0"})],Ci.prototype,"personalization",2),h([y({manifest:{path:yn}}),x({since:"1.84.0"})],Ci.prototype,"selectionMode",2),h([y({manifest:{path:yn}}),x({since:"1.84.0"})],Ci.prototype,"selectAll",2),h([y({manifest:{path:yn}}),x({since:"1.84.0"})],Ci.prototype,"selectionLimit",2),h([y({manifest:{path:yn}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],Ci.prototype,"enableExport",2),h([y({manifest:{path:yn}}),x({since:"1.84.0"})],Ci.prototype,"quickVariantSelection",2),h([y({manifest:{path:yn}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],Ci.prototype,"condensedTableLayout",2),h([y({manifest:{path:yn}}),x({since:"1.86.0"})],Ci.prototype,"enableFullScreen",2),h([y({manifest:{path:yn}}),x({since:"1.84.0"})],Ci.prototype,"enablePaste",2),h([y({manifest:{path:yn}}),x({since:"1.117.0"}),Se("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ci.prototype,"hierarchyQualifier",2),h([y({manifest:{path:yn}}),x({since:"1.120.0"}),Se("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Ci.prototype,"widthIncludingColumnHeader",2);var Wp=Ci;var Kp=class Kp{};o(Kp,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>ji(t,n,i,r)+"/afterExecution","path")}}),Se("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>ji(t,n,i,r)+"/afterExecution","path")}})],Kp.prototype,"enableAutoScroll",2);var Qp=Kp,Tf=class Tf{};o(Tf,"ObjectPageTableColumn"),h([y({manifest:{path:ji}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Tf.prototype,"width",2),h([y({manifest:{path:ji}}),x({since:"1.85.0"})],Tf.prototype,"availability",2),h([y({manifest:{path:ji}}),x({since:"1.120.0"}),Se("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Tf.prototype,"widthIncludingColumnHeader",2);var Ef=Tf,tx=class tx extends Ef{};o(tx,"ObjectPageTableColumnAction");var JP=tx,Xp=class Xp{};o(Xp,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>ji(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Xp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>ji(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Xp.prototype,"placement",2);var ZP=Xp,Go=class Go{};o(Go,"TableCustomColumnOP"),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],Go.prototype,"position",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],Go.prototype,"header",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Go.prototype,"width",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],Go.prototype,"template",2),h([y({manifest:{path:ji}}),x({since:"1.86.0"})],Go.prototype,"horizontalAlign",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],Go.prototype,"availability",2),h([y({manifest:{path:ji}}),x({since:"1.85.0"})],Go.prototype,"properties",2);var ex=Go;var qy=class qy{};o(qy,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],qy.prototype,"enableOnSelect",2);var nx=qy,qp=class qp{};o(qp,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],qp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],qp.prototype,"placement",2);var ix=qp,Pa=class Pa{};o(Pa,"CustomTableActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Pa.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Pa.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Pa.prototype,"press",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Pa.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:oi}),x({since:"1.84.0"})],Pa.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),x({since:"1.84.0"})],Pa.prototype,"enabled",2);var rx=Pa;var bf=class bf{};o(bf,"AdditionalSemanticObject"),h([y({manifest:{path:My}}),Se("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],bf.prototype,"allowedActions",2),h([y({manifest:{path:My}}),Se("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],bf.prototype,"unavailableActions",2),h([y({manifest:{path:My}}),Se("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],bf.prototype,"mapping",2);var ox=bf,zp=class zp{};o(zp,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],zp.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],zp.prototype,"additionalSemanticObjects",2);var ax=zp;var Yp=class Yp{};o(Yp,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}}),Se("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Yp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}})],Yp.prototype,"enableAutoScroll",2);var sx=Yp,Af=class Af{};o(Af,"TableColumn"),h([y({manifest:{path:di}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Af.prototype,"width",2),h([y({manifest:{path:di}}),x({since:"1.85.0"})],Af.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),Se("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Af.prototype,"widthIncludingColumnHeader",2);var zy=Af,Sf=class Sf{};o(Sf,"ViewTableColumn"),h([y({manifest:{path:tr}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Sf.prototype,"width",2),h([y({manifest:{path:tr}}),x({since:"1.85.0"})],Sf.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),Se("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Sf.prototype,"widthIncludingColumnHeader",2);var Yy=Sf,Jy=class Jy extends zy{};o(Jy,"TableColumnAction"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Jy.prototype,"afterExecution",2);var cx=Jy,Zy=class Zy extends Yy{};o(Zy,"ViewTableColumnAction"),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Zy.prototype,"afterExecution",2);var lx=Zy,Jp=class Jp{};o(Jp,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Jp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Jp.prototype,"placement",2);var fx=Jp,Zp=class Zp{};o(Zp,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>tr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Zp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>tr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Zp.prototype,"placement",2);var ux=Zp,Wo=class Wo{};o(Wo,"TableCustomColumn"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Wo.prototype,"position",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Wo.prototype,"header",2),h([y({manifest:{path:di}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wo.prototype,"width",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Wo.prototype,"template",2),h([y({manifest:{path:di}}),x({since:"1.86.0"})],Wo.prototype,"horizontalAlign",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Wo.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.85.0"})],Wo.prototype,"properties",2);var px=Wo,Ko=class Ko{};o(Ko,"ViewTableCustomColumn"),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Ko.prototype,"position",2),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Ko.prototype,"header",2),h([y({manifest:{path:tr}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ko.prototype,"width",2),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Ko.prototype,"template",2),h([y({manifest:{path:tr}}),x({since:"1.86.0"})],Ko.prototype,"horizontalAlign",2),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Ko.prototype,"availability",2),h([y({manifest:{path:tr}}),x({since:"1.85.0"})],Ko.prototype,"properties",2);var dx=Ko;var hx=class hx{};o(hx,"Actions");var gx=hx,yx=class yx{};o(yx,"ToolBar");var mx=yx;var ed=class ed{};o(ed,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/afterExecution","path")}}),Se("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ed.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/afterExecution","path")}})],ed.prototype,"enableAutoScroll",2);var vx=ed,td=class td{};o(td,"ToolBarAction"),h([y({manifest:{path:Ar}})],td.prototype,"enableOnSelect",2),h([y({manifest:{path:Ar}})],td.prototype,"afterExecution",2);var Tx=td,nd=class nd{};o(nd,"ViewToolBarAction"),h([y({manifest:{path:Qr}})],nd.prototype,"enableOnSelect",2),h([y({manifest:{path:Qr}})],nd.prototype,"afterExecution",2);var Ex=nd,id=class id{};o(id,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Ar(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"placement",2);var bx=id,xa=class xa{};o(xa,"CustomTableAction"),h([y({manifest:{path:Ar}}),x({since:"1.84.0"})],xa.prototype,"text",2),h([y({manifest:{path:Ar}}),x({since:"1.84.0"})],xa.prototype,"position",2),h([y({manifest:{path:Ar}}),x({since:"1.84.0"})],xa.prototype,"press",2),h([y({manifest:{path:Ar}}),x({since:"1.84.0"})],xa.prototype,"requiresSelection",2),h([y({manifest:{path:Ar},generate:zn}),x({since:"1.84.0"})],xa.prototype,"visible",2),h([y({manifest:{path:Ar},generate:zn}),x({since:"1.84.0"})],xa.prototype,"enabled",2);var Ax=xa,rd=class rd{};o(rd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Qr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Qr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"placement",2);var Sx=rd,Ca=class Ca{};o(Ca,"ViewTableCustomAction"),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],Ca.prototype,"text",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],Ca.prototype,"position",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],Ca.prototype,"press",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],Ca.prototype,"requiresSelection",2),h([y({manifest:{path:Qr},generate:zn}),x({since:"1.84.0"})],Ca.prototype,"visible",2),h([y({manifest:{path:Qr},generate:zn}),x({since:"1.84.0"})],Ca.prototype,"enabled",2);var Px=Ca;var Nx={};Ws(Nx,{FreestylePage:()=>Ix,ListReport:()=>Cr,ObjectPage:()=>To});function VQ(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(VQ,"deleteAllALPViews");function MQ(){}o(MQ,"doNotExport");function wQ(){}o(wQ,"doNotImport");var Cr=class{};o(Cr,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:wQ,export:MQ,delete:VQ}})],Cr.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Cr.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),Se("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Cr.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}})],Cr.prototype,"defaultTemplateAnnotationPath",2),h([kt("header")],Cr.prototype,"header",2),h([kt("fe::FilterBar")],Cr.prototype,"filterBar",2),Cr=h([kr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Cr);var Cx=te(le());var To=class{};o(To,"ObjectPage"),h([kt("header")],To.prototype,"header",2),h([kt("layout")],To.prototype,"layout",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),Se("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],To.prototype,"variantManagement",2),h([kt("sections")],To.prototype,"sections",2),To=h([kr({id:`${Cx.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Cx.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],To);var Ox=class Ox{};o(Ox,"FreestylePage");var Ix=Ox;var ev=te(le());var kQ={ALPTableView:mf},UQ={ALPTableView:mf},jQ={Table:Wp,TableColumn:Ef,ObjectPageCustomSectionView:cf,ActionAfterExecutionConfiguration:Qp},$Q={[ev.PageTypeV2.AnalyticalListPage]:kQ,[ev.PageTypeV2.ListReport]:UQ,[ev.PageTypeV2.ObjectPage]:jQ},Lx=class Lx extends wl{constructor(){super(xx,Nx,$Q)}};o(Lx,"MetadataInstanceFactoryV4");var Ia=Lx;var Fx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Rx(e,t,n,i,r,a,s){var g,m,T,A,E,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${Fx.UIAnnotationTerms.LineItem}`?a:he.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let R in p.properties){let W=l[u].properties[R].$ref.split($)[1].split("<")[0];e.columns[R]=n.createInstance(i,W);let j=s||a;At(e.columns[R],t.manifest,l[W],r,[R,j],j,t.logger),Ro(e.columns,R)}Ro(e,"columns")}else{let R=(O=(E=(A=(T=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:T[r])==null?void 0:A.options)==null?void 0:E.settings)==null?void 0:O.views;(!R||R.paths.length<1)&&se(t.logger,{severity:he.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(Rx,"transferColumns");function BQ(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[he.DefinitionName.VisualFilters];if(t.visualFilters={},typeof s=="object"){for(let l in s.properties){let u=s.properties[l];if(typeof u=="object"&&u.$ref){let p=hn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}Ro(t,"visualFilters")}}o(BQ,"importVisualFilters");function HQ(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[he.DefinitionName.LineItems,`${he.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${Fx.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${he.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let T=hn(m.$ref),A=T.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[T],r,[g,u]),Ro(t.toolBar.actions,g)}}}o(HQ,"importActions");function _x(e,t,n,i,r,a=he.DefinitionName.LineItems,s){let l=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.ToolBarLR],r,[]),HQ(e,u,n,i,r,a,s),Ro(u.toolBar,"actions"),Ro(u,"toolBar")}o(_x,"transferToolBar");function lM(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(lM,"determineTargetAnnotationOfView");function GQ(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,he.DefinitionName.ALPChart);let s=a[he.DefinitionName.ALPChart],l=s[he.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[he.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,he.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[he.DefinitionName.ViewChartToolBar],r,[]);let u=a[he.DefinitionName.ALPTable][he.SchemaTag.annotationPath];if(u){let p=a[he.DefinitionName.ALPTable],g=t.table=n.createInstance(i,he.DefinitionName.ALPTable);_x(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[he.SchemaTag.key],m]),Rx(g,e,n,i,r,void 0,m)}}o(GQ,"importALPViews");function WQ(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(WQ,"getViewTypeByDefinition");function KQ(e,t,n,i,r){let a=t.table.views=n.createInstance(i,he.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[he.DefinitionName.MultiTableModeV4],r,[]);let l=s[he.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][he.SchemaTag.propertyIndex]-g[1][he.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=WQ(g),T=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,E=lM(s,g,A);if(At(T,e.manifest,s[g],r,[p[0],E]),m===he.DefinitionName.LRTableView){let O=`${he.DefinitionName.LineItemsOfView}::${p[0]}`;_x(e,T,n,i,r,O,E),Rx(T,e,n,i,r,O,E)}Object.keys(T).length===0&&delete a[p[0]]}Ro(t.table,"views")}o(KQ,"importLRViews");function XQ(e,t,n,i,r){let a=he.DefinitionName.HeaderActions,s=he.PropertyName.header,l=e.definitions[a];if(typeof l=="object"){t[s].actions={};for(let u in l.properties){let p=l.properties[u];if(typeof p=="object"&&p.$ref){let g=hn(p.$ref),m=e.definitions[g],T=hn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(he.PageTypeV4.ObjectPage,T),At(t[s].actions[u],i,e.definitions[T],r,[u.replace("/","??")]),Ro(t.header,"actions"),Ro(t,"header")}}}}o(XQ,"transferHeaderActions");function QQ(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!==$+he.DefinitionName.CustomFilterField)continue;let u=n.createInstance(he.PageTypeV4.ListReport,he.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(QQ,"importCustomFilterFields");function qQ(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,he.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[he.DefinitionName.Header],r,[]),XQ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,he.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[he.DefinitionName.FilterBar],r,[]),BQ(e,t.filterBar,n,i,r),QQ(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($)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,he.DefinitionName.Table);let p=lM(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),_x(e,t,n,i,r,u),Rx(t.table,e,n,i,r,u,p),KQ(e,t,n,i,r)}else a===he.SchemaType.AnalyticalListPage&&GQ(e,t,n,i,r)}o(qQ,"addSettings");function Uc(e,t){if(nn(),!e.jsonSchema)return;if(!e.manifest[he.ManifestSection.ui5]||!e.manifest[he.ManifestSection.ui5].routing){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let n=e.manifest[he.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:he.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:he.MANIFESTPATH,range:[he.ManifestSection.ui5]}});return}let i=new Ia,r=i.createPageInstance(he.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=cE(s);if("name"in s&&(l===he.PageTypeV4.ListReport||l===he.PageTypeV4.AnalyticalListPage)){qQ(e,r,i,he.PageTypeV4.ListReport,a,t);break}}return r}o(Uc,"createListReportConfig");var ve=te(le()),jc=require("@sap-ux/vocabularies-types/vocabularies/UI");function zQ(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(zQ,"isBoolean");function YQ(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(YQ,"isNumber");function JQ(e,t){let n=e.toString();return zQ(n,t)?n==="true":YQ(n,t)?parseFloat(n):e}o(JQ,"convertValue");function ZQ(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=JQ(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(ZQ,"importProperty");function fM(e,t,n){let i,r=tf(e.file,!1,n);if(r){let a=xy(r);i={},_c({fullSchema:t,schema:t,element:a,contextPath:[],config:i},ZQ)}return i}o(fM,"convertXmlFileToConfig");function tv(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=us(t||[],r,n,a),l;return s&&(l=fM(s,i,e.logger)),l}o(tv,"createCustomPageConfig");function od(e,t){var T;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=nf(t),u=(T=r.definitions)==null?void 0:T[l];if(!r||!u)return;let p=Pc(i,a),g=xc(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=fM(g,A,s)}return m}o(od,"createCustomFragmentConfig");function Dx(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(Dx,"getManifestId");function ad(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(ad,"getDefinitionId");function eq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[ad(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ve.DefinitionName.CustomColumnOP)>-1?s=ve.DefinitionName.CustomColumnOP:s=ve.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ve.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(eq,"fillTableColumnsInConfig");function dM(e,t,n,i,r,a){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=hn(l.$ref),p=u.split("<")[0],g;p.includes(ve.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ve.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(dM,"fillSectionActionsInConfig");function tq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageSectionForm}<${ad(a)}>`].properties.form.$ref.split($)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split($)[1],m=e.jsonSchema.definitions[g];for(let T in m.properties){let A=m.properties[T],E=hn(A.$ref),O=e.jsonSchema.definitions[E];if(O.annotationType===jc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let R=hn(O.$ref)||E.split("<")[0];i[n].form.actions[T]=r.createInstance(ve.PageTypeV4.ObjectPage,R),At(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[R],e.routingId,[T.replace("/","??")],a),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}o(tq,"fillFormActionsInConfig");function uM(e,t,n,i,r,a){var u;let s=a||Dx(i,!1,jc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageTable);let p=`${ve.DefinitionName.ObjectPageTable}<${a?ad(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${ve.DefinitionName.Actions}<${ad(s)}>`];dM(e,g,i,n,r,s),eq(e,l,n,i,r,s)}}o(uM,"fillTableInConfig");function nq(e,t,n,i,r){var l;let a=Dx(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageForm,{actions:{}}),tq(e,s,i,n,r,a))}o(nq,"fillFormInConfig");function iq(e,t,n,i,r,a){let s=r.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=od(e,s.fragmentName);s.controls=u}n[i]=s}o(iq,"fillCustomSubSectionInConfig");function gM(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let T=t[m],A=m;if(m.includes(jc.UIAnnotationTerms.PresentationVariant)&&((s=T.$ref)!=null&&s.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4))){let E=T.$ref.split($)[1];A=Dx(E,!0,jc.UIAnnotationTerms.LineItem),uM(e,n,i,m,r,A)}else(l=T.$ref)!=null&&l.startsWith($+ve.DefinitionName.ObjectPageSectionTableV4)?uM(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},gM(e,T.properties.subsections.properties,n,i[m].subsections,r,m)):(u=T.$ref)!=null&&u.startsWith($+ve.DefinitionName.ObjectPageSectionForm)&&((p=T.$ref)!=null&&p.includes(`@${jc.UIAnnotationTerms.FieldGroup}::`))?nq(e,n,i,m,r):(g=T.$ref)!=null&&g.startsWith($+ve.DefinitionName.ObjectPageCustomSubSectionFragment)&&iq(e,T,i,m,r,a)}}o(gM,"fillSectionsInConfig");function rq(e,t,n,i){var a,s;let r=(s=(a=t.content)==null?void 0:a.body)==null?void 0:s.sections;if(r)for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ve.DefinitionName.ObjectPageCustomSectionActions}<${ad(l)}>`];dM(e,m,l,p,i,l)}let g=u.template;if(g){let m=od(e,g);p.controls=m}n.sections[l]=p}}o(rq,"fillCustomSectionsInConfig");function oq(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,a=r&&"facets"in r?r.facets:void 0;if(a)for(let l in a){let u=a[l],p=i.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let T=od(e,g);p.controls=T}let m=u.templateEdit;if(m){let T=od(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}o(oq,"fillCustomHeaderSectionsInConfig");function aq(e,t,n,i,r){var s,l;let a=e.definitions[ve.DefinitionName.HeaderSections];if(a&&a.properties){t.header.sections={};for(let u in a.properties){let p=a.properties[u],g,m=(s=a.properties[u].$ref)==null?void 0:s.split($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(ve.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(ve.PageTypeV4.ObjectPage,g),At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ve.FacetTitlePrefix)[1]))}}}o(aq,"fillHeaderFacets");function sq(e,t,n,i,r,a,s){let l=hn(e.$ref),u=t.definitions[l],p=hn(u.$ref||e.$ref),g=n.createInstance(ve.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(sq,"importActionSettingsOfReference");function pM(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&&sq(g,e,n,u,p,i,r)}}}o(pM,"fillHeaderFooterActions");function cq(e,t,n){var a,s;let i=n.createPageInstance(ve.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ve.PageTypeV4.ObjectPage,ve.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[ve.DefinitionName.Sections]&&(i.sections={},gM(e,e.jsonSchema.definitions[ve.DefinitionName.Sections].properties,r,i.sections,n)),rq(e,r,i,n),aq(e.jsonSchema,i,n,e.manifest,e.routingId),oq(e,r,i,n),pM(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.ObjectPageHeaderActions,ve.PropertyName.header),pM(e.jsonSchema,i,n,e.manifest,e.routingId,ve.DefinitionName.FooterActions,ve.PropertyName.footer)),i}o(cq,"fillObjectPageConfig");function nv(e){if(nn(),!e.manifest[ve.ManifestSection.ui5]||!e.manifest[ve.ManifestSection.ui5].routing){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let t=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5,"routing"]}});return}let i=new Ia;return cq(e,n,i)}o(nv,"createObjectPageConfigV4");var Xe=te(le());var Vx=[],iv={};function lq(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(lq,"routesSorter");function Mx(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(Mx,"resolveTarget");function fq(e){let t={};e=e.concat().sort(lq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=Mx(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(fq,"populateAssociations");function uq(e,t,n){let i;return e.name?e.name===Xe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Xe.PageTypeV4.FPMCustomPage:e.name.endsWith(Xe.PageTypeV4.ListReport)||e.name.endsWith(Xe.PageTypeV4.AnalyticalListPage)?i=Xe.PageTypeV4.ListReport:e.name.endsWith(Xe.PageTypeV4.ObjectPage)?i=Xe.PageTypeV4.ObjectPage:i=Xe.PageTypeV4.CustomPage:"viewId"in e?i=Xe.PageTypeV4.CustomPage:(se(t,{severity:Xe.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Xe.MANIFESTPATH,range:[`${Xe.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Xe.ViewTypes&&"viewName"in e&&(i=Xe.PageTypeV4.CustomPage)),i}o(uq,"determinePageType");function pq(e){let t=e.target.viewId||e.target.id,n=_t(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Xe.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===Xe.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=nv(r)}else if(e.page.pageType===Xe.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=tv(r)}else if(e.templateType===Xe.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Xe.SchemaType.ListReport)}else if(e.templateType===Xe.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Xe.SchemaType.AnalyticalListPage)}else if(e.templateType===Xe.TemplateType.FreestylePageV4&&e.page.pageType===Xe.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ou(e.target)===Xe.TemplateType.AnalyticalListPageV4?Xe.SchemaType.AnalyticalListPage:Xe.SchemaType.ListReport;e.page.config=Uc(r,s)}}}o(pq,"convertSettingsToConfig");function dq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");Vx.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");Vx.push(t[t.length-1])}}o(dq,"updateUnhandledControllers");function gq(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(gq,"setVariantManagmentAndNavigation");function mq(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}=Vc(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(mq,"setEntitySetEntityTypeContextPath");function hq(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([Xe.PageTypeV4.CustomPage,Xe.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...a&&{name:a},...e.name&&{template:e.name},...e.viewType&&{viewType:e.viewType}}}}o(hq,"evaluateCustomPageSettings");function yq(e,t,n,i){let r=e.targets[t],a=uq(r,i.logger,t),s={pageType:a};if(mq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),iv[t]&&iv[t].indexOf(".")!==-1){let p=iv[t].split(".");s.navigationProperty=p[p.length-1]}hq(r,s,a),gq(r,s),dq(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};pq(u)}o(yq,"getSinglePageAndConfig");function mM(e){let t={},n=e.manifest[Xe.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Xe.LogSeverity.Error,message:i,location:{path:Xe.MANIFESTPATH,range:[Xe.ManifestSection.ui5]}}),t}iv=fq(n.routes||[]);for(let i in n.targets)yq(n,i,t,e);return t}o(mM,"getPagesAndConfigs");function hM(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 Mx(t?t.target:e.routes[0].target)}else return}o(hM,"getHome");function yM(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(yM,"getSettings");function xf(e,t){let n=e[Xe.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(xf,"getPages");var wx=class wx extends Ka{constructor(t){nn();let n=new rf,i=_t(Xe.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,hM(t.manifest[Xe.ManifestSection.ui5].routing),mM(t),{...yM(t.manifest[Xe.ManifestSection.ui5].routing),...n}),this.unhandledControllers=Vx}};o(wx,"V4AppProvider");var Pf=wx;var vM=require("fs"),$c=require("path"),TM=te(le()),sd=te(le());var EM=o((e,t,n=__dirname)=>{let i;switch(t){case sd.SchemaType.Application:{i=`${sd.SchemaType.Application}${e.toUpperCase()}.json`;break}case sd.SchemaType.FPMCustomPage:{i=`${sd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,$c.join)(n,"schemas",e,i);if(n.endsWith((0,$c.join)("specification","packages","specification")))return(0,$c.join)(n,"dist","schemas",e,i);if(n.endsWith((0,$c.join)("src","specification")))return(0,$c.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,$c.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),vq=o(async e=>new Promise((t,n)=>{(0,vM.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),rv=o(async(e,t)=>{try{let n=EM(e||TM.FioriElementsVersion.v4,t,__dirname);return await vq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Tq(e,t){let n={},i=[];switch(i=[fe.SchemaType.Application],e){case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.AnalyticalListPageV4:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.FreestylePageV4:i.push(fe.SchemaType.FreestylePage),t===fe.FioriElementsVersion.v4&&i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage,fe.SchemaType.FPMCustomPage);break;case fe.TemplateType.ListReportObjectPageV2:i.push(fe.SchemaType.ListReport,fe.SchemaType.ObjectPage);break;case fe.TemplateType.AnalyticalListPageV2:i.push(fe.SchemaType.AnalyticalListPage,fe.SchemaType.ObjectPage);break;case fe.TemplateType.OverviewPageV2:i.push(fe.SchemaType.OverviewPage);break;default:i.push(fe.SchemaType.FreestylePage);break}for(let r of i){let a=_t(r);n[a.filename]=await rv(t,r)}return n}o(Tq,"getGenericSchemas");function AM(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ri(fe.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(AM,"getAnnotationsForUi");function cd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(cd,"getEntitySetByEntitySetName");function Eq(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(Eq,"resolveNavigationProperty");function Vc(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}=Eq(r,e):se(i,{severity:fe.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:fe.MANIFESTPATH}}),n&&!a&&se(i,{severity:fe.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Vc,"getEntityTypeEntitySetFromContextPath");function bM(e,t,n){let i=Yu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let a=i[r].entitySet,s=cd(a,e.serviceAVT);s||se(e.logger,{severity:fe.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(fe.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=_t(fe.SchemaType.ObjectPage);n[l.filename]=ld(e,t[u.filename])}}o(bM,"generateObjectPageSchemasV2");function bq(e,t,n){var l,u;let i=xf(e.manifest,fe.v4.FE_TEMPLATE_V4_LIST_REPORT),r=xf(e.manifest,fe.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:T,entityType:A}=Vc(s,m,g,e.logger);e.entityType=A,e.entitySet=T;let E=_t(fe.SchemaType.ListReport,p),O=_t(fe.SchemaType.ListReport);e.templateType===fe.TemplateType.FreestylePageV4&&(e.templateType=ou(a[p])),n[E.filename]=ep(e,t[O.filename],a[p].name,m)}}o(bq,"generateListReportSchemasV4");function Aq(e,t,n){var r;let i=Yu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let a in i){let s=i[a].entitySet;e.entitySet=cd(s,e.serviceAVT);let l=_t(fe.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=_t(fe.SchemaType.ListReport);t[l.filename]=fd(e,n[u.filename])}}o(Aq,"generateAppSchemaV2LR");function Sq(e,t,n){var a,s;let i=xf(e.manifest,fe.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(a=i[l].options.settings)==null?void 0:a.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:g,entitySet:m}=Vc(r,p,u);e.entitySet=m,e.entityType=g;let T=_t(fe.SchemaType.ObjectPage,l),A=_t(fe.SchemaType.ObjectPage),E=_t(fe.SchemaType.FPMCustomPage);n[T.filename]=Np(e,t[A.filename],p,t[E.filename])}}o(Sq,"generateObjectPageSchemasV4");function Pq(e,t,n,i){var a;let r={};if(i===fe.TemplateType.ListReportObjectPageV2&&n)Aq(e,r,t),bM(e,t,r);else if(i===fe.TemplateType.AnalyticalListPageV2&&n){let s=Yu(e.manifest[fe.ManifestSection.generic].pages,fe.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=cd(u,e.serviceAVT);let p=_t(fe.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=_t(fe.SchemaType.AnalyticalListPage);r[p.filename]=ud(e,t[g.filename])}bM(e,t,r)}else if(i===fe.TemplateType.OverviewPageV2){let s=_t(fe.SchemaType.OverviewPage),l=_t(fe.SchemaType.OverviewPage);r[s.filename]=pd(t[l.filename],e.manifest)}return{...t,...r}}o(Pq,"generateAppSchemasV2");function xq(e,t,n){if(!qs(e.featureToggles,fe.Features.BuildingBlocks))return;let i=xf(e.manifest,fe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=us(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=_t(fe.SchemaType.FPMCustomPage,void 0,l),p=_t(fe.SchemaType.FPMCustomPage);n[u.filename]=Dc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(xq,"generateCustomPageSchemasV4");function Cq(e,t,n){let i={};return n&&(bq(e,t,i),Sq(e,t,i),xq(e,t,i)),{...t,...i}}o(Cq,"generateAppSchemasV4");async function SM(e,t,n){let i=await Tq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===fe.FioriElementsVersion.v4?Cq(e,i,t):Pq(e,i,t,n)}o(SM,"generateAppSchemas");function Iq(e){let t,n=[];switch(e.templateType){case fe.TemplateType.ListReportObjectPageV2:case fe.TemplateType.AnalyticalListPageV2:t=new Oh(e);break;case fe.TemplateType.AnalyticalListPageV4:case fe.TemplateType.ListReportObjectPageV4:case fe.TemplateType.FreestylePageV4:t=new Pf(e);break;case fe.TemplateType.OverviewPageV2:t=new Fh(e);break;default:t=new Pf(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(Iq,"importConfigs");function PM(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===fe.SchemaType.Application?r=`${fe.DirName.Schemas}/${fe.FileName.App[0].toUpperCase()}${fe.FileName.App.slice(1)}`:r=`${fe.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}o(PM,"getFileList");async function kx(e){var E,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new lu().doesUi5VersionFitDistTags((O=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:O.minUI5Version,i);let u=dE(t),p=Io(n,i),g=AM(p),m=gE(t,u,i),A=await SM({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return PM(A)}o(kx,"importProjectSchema");async function Ux(e){var W,j;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new lu().doesUi5VersionFitDistTags((j=(W=t["sap.ui5"])==null?void 0:W.dependencies)==null?void 0:j.minUI5Version,i);let p=dE(t),g=VR(t),m=Io(n,i),T=gE(t,p,i),A={templateType:T,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},E=AM(m),O=await SM(A,E,T),U=Iq({manifest:t,flexChanges:s,appSchemas:O,templateType:T,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return PM(O,U)}o(Ux,"importProjectSchemaAndConfig");var Oq=["header","sections","footer"];function Nq(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(Nq,"addFlexChangeForSection");function Lq(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Eo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=um(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Eo.UIAnnotationTerms.Identification}`,`/@${Eo.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:`${$}${g}`}}})}o(Lq,"addHeaderActionCallBackV2");function Fq(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Eo.UIAnnotationTypes.DataFieldForAction){let a=la(r).split("::").splice(1).join("::"),s=bi(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Eo.UIAnnotationTerms.Identification}`,`/@${Eo.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:`${$}${l}`}}})}o(Fq,"addFooterActionCallBackV2");function Rq(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=[],T=r==null?void 0:r.entityTypes.find(E=>E.name===i),A=vc(t[oe.ManifestSection.generic].pages,n,m);return gl(e,T,A,t,l,p,g,a.ID),p}o(Rq,"ensureCustomColumnDefinitionExists");function gd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&Nq(e,t,"visible",n)}o(gd,"addAppSchemaDefinition");function _q(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(_q,"addSectionReference");function dd(e,t,n,i){let r=dt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}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=`${$}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=`${$}QuickVariant<${t}>`,Ba(n.entityType,i,`QuickVariant<${t}>`)}o(dd,"addTableDefinition");function Dq(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]=No(n,i,t);let u=n.definitions[l];gd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,Ua(i,u,t),dd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),dd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),dd("ObjectPageGridTable",t,i,n),dd("ObjectPageTreeTable",t,i,n),dd("ObjectPageAnalyticalTable",t,i,n);let p,g=y0(i.entityType,e.serviceAVT);g&&(p=Rq(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let T=r[m];T.base===oe.FacetBase.LineItem&&(T.ID===s||m.includes(s))&&dl(!0,n,T.target,T.entityType,T.ID||m,p)}}o(Dq,"handleLineItem");function Vq(e,t,n,i,r,a=!1){e.definitions[t]=No(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";gd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(Vq,"handleSubSection");function Mq(e,t,n,i,r){e.definitions[t]=No(e,n,i);let a=e.definitions[t];gd(e,a,r,"ObjectPageSectionChartV2")}o(Mq,"handleSectionChart");function xM(e,t,n,i,r,a){e.definitions[t]=No(e,n,i);let s=e.definitions[t];gd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=tc(n==null?void 0:n.target)}o(xM,"handleHeaderFacet");function wq(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=tc(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(wq,"addDataPointHeaderFacetDataType");function kq(e,t,n,i,r){e.definitions[t]=No(e,n,i);let a=e.definitions[t];return gd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(kq,"handleFormSection");function Uq(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(Uq,"getSectionType");function jq(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Eo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(jq,"getReferenceKey");function IM(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Uq(l.base,a,s),p=jq(l,n,u),g=`${u}<${p}>`;switch(_q(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,Vq(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let T in l.facets)IM(e,l.facets,T,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Dq(e,p,r,l,t,u),yl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Mq(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=kq(r,g,l,p,u);lm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{xM(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{xM(r,g,l,p,u),wq(r,g,l);break}default:i.properties[n]=No(r,l,p)}}o(IM,"addSection");function CM(e,t,n,i,r,a=!1){if(e)for(let s in t)IM(i,t,s,n,r,!1,a)}o(CM,"addSectionsFromFacets");function OM(e,t,n){var g,m,T,A,E,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Eo.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}/@${Eo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=jg((T=e.entitySet)==null?void 0:T.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=Ug((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let R in n){let U=n[R];(O=(E=e.entitySet)==null?void 0:E.name)!=null&&O.includes(U.entitySet)?(CM(l,a,i,e,t),CM(u,s,r,e,t,!0)):OM(e,t,U.pages)}let p=t.definitions.CustomSections;for(let R in p.properties)i.properties[R]=p.properties[R]}o(OM,"addSections");function $q(e,t,n){gm(e,n),dm(e,n,t,Lq,void 0,!0)}o($q,"addHeader");function Bq(e,t,n,i){let r=MR(t,n,i,void 0,!0);r&&b0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Bq,"addRelatedFacetKeysType");function ld(e,t){var s;nn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[oe.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?($q(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},OM(e,n,a),Bq(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]),pm(n,e,oe.FioriElementsVersion.v2,Fq,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,Fo(n,Oq),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(ld,"generateObjectPageSchemaV2");var ti=te(le());var Cf=require("@sap-ux/vocabularies-types/vocabularies/UI");var Gq=["filterBar","table","footer"],Wq=ti.UIVOCABULARYALPHADOT.substring(1);function jx(e,t,n,i){Ba(e,n,"QuickVariant"),v0(n,"QuickVariantX",t),T0(i,n,"QuickVariantX")}o(jx,"addEnumForVariantPaths");function Kq(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Cf.UIAnnotationTerms.SelectionPresentationVariant,Cf.UIAnnotationTerms.SelectionVariant,Cf.UIAnnotationTerms.PresentationVariant];su(e,r,i)}o(Kq,"addEnumForFilterBarAnnotationPath");function Xq(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Cf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Cf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(Wq,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(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(Xq,"getPresentationVariantForLineItem");function Qq(e,t,n){if(om(t,"annotationPath",n))return;let i=Xq(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=au("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ti.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(Qq,"getLineItemAnnotation");function fd(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ti.DefinitionName.LineItems},r=$+ti.DefinitionName.ToolBarLR;EE.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=rm(e);if(s){let u=[],p=_l(e.manifest[ti.ManifestSection.generic].pages,u);ml(n);let g=Qq(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let T=pr(a.fullyQualifiedName,g.term,g.qualifier);EE.forEach(A=>{n.definitions[A][ti.SchemaTag.annotationPath]=T})}dl(!1,n,g,a);let m=s.SelectionFields;if(nm(n,m,a),yl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],u0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ti.LogSeverity.Error,message:q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;gl(n,a,p,e.manifest,e.fragments),jx(a,e.entitySet,n,e.serviceAVT),Kq(a,n,ti.DefinitionName.ListReportFilterBar),E0(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 Fo(n,Gq),n}o(fd,"generateListReportSchemaV2");var Zt=te(le());var qq=["filterBar","keyPerformanceIndicators","chart","table","footer"];function zq(e,t,n){var E;let i=(E=e==null?void 0:e.component)==null?void 0:E.settings;if(om(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let R=O+(r?"#"+r:"");return t[R]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||au("LineItem",O),g=g||au("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],T=t[g],A=(m||i.quickVariantSelectionX?0:1)+(T?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],R=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:R})}return{lineItemAnnotation:m,chartAnnotation:T}}o(zq,"getLineItemAndChartAnnotation");function Yq(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(Yq,"addChart");function ud(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,f0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=rm(e);if(s){ml(n);let l=[],u=Ml(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=zq(u,s,e.logger);p&&r0.forEach(T=>{n.definitions[T][Zt.SchemaTag.annotationPath]=pr(a.fullyQualifiedName,p.term,p.qualifier)}),dl(!1,n,p,a),g&&Yq(n,g);let m=s.SelectionFields;if(nm(n,m,a),yl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;gl(n,a,u,e.manifest,e.fragments),jx(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 Fo(n,qq),n}o(ud,"generateAnalyticalListReportSchemaV2");function Jq(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(Jq,"getCardDefinitionNames");function Zq(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"},fa(a,s.CardModel);let l=Jq(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(Zq,"addModelsEnum");function NM(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},Zq(n,t),n}o(NM,"generateOverviewPageSchemaV2");var Fs=te(le());function $x(e,t,n,i,r,a){nn();let s=Io(e,t),l={templateType:a,fioriElementsVersion:Fs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=cd(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Fs.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o($x,"prepareGenerationV2");function Bx(e,t,n,i,r,a){let s=$x(n,a,i,r,t,Fs.TemplateType.ListReportObjectPageV2);return ld(s,e)}o(Bx,"generateObjectPageInterfaceV2");function Hx(e,t,n,i,r,a){let s=$x(n,a,i,r,t,Fs.TemplateType.ListReportObjectPageV2);return fd(s,e)}o(Hx,"generateListReportInterfaceV2");function Gx(e,t,n,i,r,a){let s=$x(n,a,i,r,t,Fs.TemplateType.AnalyticalListPageV2);return ud(s,e)}o(Gx,"generateAnalyticalListPageInterfaceV2");function pd(e,t){return NM(e,t)}o(pd,"generateOVPInterfaceV2");var we=te(le());var md=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 LM(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(LM,"getClassesForSingleSection");function FM(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],LM(n,i,t),FM(n,t)}}o(FM,"getSubsectionClasses");function ez(e,t,n){let i;for(let r in e.sections)i=t.sections[r],LM(i,r,n),FM(i,n)}o(ez,"getExportClassesForSections");function tz(e,t){let n=_l(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(tz,"findV2Page");function Wx(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(Wx,"calculateBaseId");function RM(e,t,n=!1){let i=md(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=tz(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Wx(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(p,u,[],[],e.jsonSchema)}return i}o(RM,"exportListReportPage");function _M(e,t,n=!1){let i=e.page.config,r=md(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Ml(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 _i,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:Wx(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(p,u,[],[],e.jsonSchema)}return r}o(_M,"exportAnalyticalListPage");function DM(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=md(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=vc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new _i,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&ez(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:Wx(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(g,p,[],[],e.jsonSchema)}}return a}o(DM,"exportObjectPage");var VM=o(e=>{let t=md();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new _i,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ju(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),nz=o((e,t,n)=>{var s;let i=md();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Tm,e);r.settings=Object.assign(new Xa,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Yn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],ja(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&CE(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function MM(e,t){if(e[we.SchemaType.ListReport])return RM(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return DM(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return VM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return nz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return _M(e[we.SchemaType.AnalyticalListPage],t)}o(MM,"exportPageV2");function Kx(e,t,n=!1){if(e[we.SchemaType.ListReport])return RM(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return DM(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return VM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return _M(e[we.SchemaType.AnalyticalListPage],t,n)}o(Kx,"exportConfigEntityByPathV2");var If=te(le()),kM=require("@sap-ux/vocabularies-types/vocabularies/UI");function wM(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(wM,"updateDependencyLib");function ov(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(ov,"extractLastIdPart");function UM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:If.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(If.PropertyName.sections),s=a>-1?ov(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${kM.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:If.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return Xx(g),!0}o(UM,"createNewCustomColumn");var Rs=te(le());var $M=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),jM=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function iz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(iz,"initializeRouting");function rz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(rz,"setTargetOptions");function oz(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Rs.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(oz,"calculateQueryPattern");function BM(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){BM(e,t,n,s);return}}}o(BM,"fillNavigationParts");function az(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(az,"fillParentKeys");function sz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(rz(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=[];BM(p,a,t,r,l==null?void 0:l.contextPath);let g=az(e.routePattern);u=oz(p,l,g)}i.routes.push($M(u,s.route,s.route))}}}o(sz,"handlePageNavigation");function cz(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(cz,"removeDeletedPages");function lz(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=jM({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=jM({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(lz,"transferEntitySetandContextPath");function fz(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(fz,"updateRouteLayout");function uz(e,t,n,i){return e.pageType&&![Rs.PageTypeV4.CustomPage,Rs.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Rs.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}o(uz,"fillTarget");function HM(e,t,n){var r,a;let i=iz(n[Rs.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push($M(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=uz(u,l,s,t),lz(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={}),sz(u,t,l,i,s),fz(i,s,u),i.targets[s]=l}return cz(i,t),i}o(HM,"transformRoutingV4");var Ii=te(le());var GM=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],WM=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:GM[r]?s.controlAggregation=GM[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)WM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),pz=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,WM(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,wM(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),dz=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"),KM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?pz(e,t):dz(e)},"updateFcl");var ie=te(le()),hd=require("@sap-ux/vocabularies-types/vocabularies/UI");var XM=te(Xs()),av=te(le());function gz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(gz,"isExportValueEquals");function mz(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)===av.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(mz,"deleteProperty");function QM(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),_c({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},QM)}else gz((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]&&(mz(e,i),l=!0);return l}o(QM,"exportProperty");function qM(e,t,n,i,r,a){let s=tf(e.file,!1,a);if(s){let l=xy(s);if(_c({fullSchema:i,schema:i,element:l,contextPath:[],config:n},QM)){let p=(0,XM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:av.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(qM,"getExtensionExportResult");var zM=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=us(n||[],a.name,i,s)),u&&qM(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),YM=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=Pc(u,s[0]);p=xc(a,m,u,g,t)}if(p){let m=nf(t),A={...i.definitions[m],definitions:i.definitions};qM(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var JM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],hz=[...JM,"views","initialLoad","template"],qx=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function yz(e,t,n){var s,l,u,p;let i=`@${hd.UIAnnotationTerms.LineItem}`,r=`@${hd.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(yz,"determineTargetAnnotationOfTable");function vz(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(vz,"determineTargetAnnotationOfChart");function Tz(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($)[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(Tz,"determineTargetAnnotationBasedOnParentView");function Ez(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}=Tz(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(Ez,"determineTargetAnnotationOfView");function bz(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(bz,"determineTargetAnnotationOfHeaderSections");function Az(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=ov(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(Az,"determineTargetAnnotationOfSections");function Sz(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=yz(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=vz(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=Az(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=bz(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Ez(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(Sz,"determineTargetAnnotation");function Pz(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])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(Pz,"determineKeyForSyncRule");function xz(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(xz,"createNewObjectInManifest");function ZM(e,t,n){var i,r;t.type!=="array"&&((i=n==null?void 0:n.targetDefinition)==null?void 0:i.type)==="object"&&((r=n==null?void 0:n.targetDefinition)!=null&&r.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&xz(e):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])}o(ZM,"transferPropertyToManifest");function Cz(e,t,n,i,r,a,s){var u,p,g;let l=(u=n.appSchema.definitions.MultiTableModeV4)==null?void 0:u.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((p=n.config.table)!=null&&p.views)||e[1]==="views"&&((g=n.config.table)!=null&&g.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&JM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(l!=null&&l.annotationPath)&&!l.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&hz.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let m=t.syncRule.manifest.delete;typeof m=="function"&&m(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config)}else i[t.manifestKey]!==void 0&&delete i[t.manifestKey];ja(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s)}o(Cz,"deleteFromManifest");function Iz(e,t,n,i){let r=[...e],a=e.indexOf("subsections");for(;a>-1;)e.splice(a-1,2),a=e.indexOf("subsections");let{targetAnnotationEncoded:s,targetAnnotation:l,custom:u}=Sz(e,n.transferParameters,n.configObject),p=Pz(e),g=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,s,p,l,n.configObject,r),m=Oo(n.transferParameters.exportResults.manifest,g,l,u?void 0:s);if(m){let T={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:p};n.configObject[n.key]!==void 0?ZM(T,n.propertyDefinition,i):Cz(e,T,n.transferParameters,m,g,l,s)}}o(Iz,"exportManifestChange");function Oz(e,t,n){let i=Yn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);YM(e.transferParameters,r,n.configObject)}else i.manifest&&Iz(t,i,e,n)}o(Oz,"evaluateExportRule");function Nz(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,zx(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(Nz,"transferSubObject");function Lz(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Oo(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(Lz,"createALPTableView");function Fz(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ft(e.transferParameters.pageNameArray)+"/views",r=Oo(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)||hd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(Fz,"createALPChartView");function Rz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Oo(e.exportResults.manifest,i),a=`@${hd.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 _z(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Oo(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(_z,"createLRTableView");function Dz(e,t,n){let i=!1,r=!1;if(t&&!n)if(t.startsWith(ie.DefinitionName.CustomColumn))i=UM(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 Fz(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return Lz(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=_z(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(Dz,"createNewElement");function Vz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}o(Vz,"isDefinitionTraversable");function Qx(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Kg(e.configObject,e.key),s=Lo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=Dz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||Oz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Vz(e.propertyDefinition)&&s.configObject)&&!u){let m=a?[...n,a]:n;Nz(e,s,r,p,m)}}o(Qx,"transferSortedListEntry");function Mz(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].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]],Qx(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,Qx(e,i,r),a=!0)}),e.index++})}return a}o(Mz,"transferConfigEntriesWithAnyOfDefinitions");function wz(e,t,n,i){let r=mE(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(wz,"mergeEntriesForInsert");function kz(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(kz,"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($)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=Mz(n,p,i,r,a)}return s}o(Uz,"checkIfAnyOfDefinition");function zx(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=kz(a.properties);u!=null&&u.$ref&&wz(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!ru(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,Qx(l,n,i,p),m[1].$ref&&s++)})}o(zx,"transferManifestEntriesAndFlexChange");function ew(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(ew,"getClassesForSingleSection");function tw(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],ew(n,i,t),tw(n,t)}}o(tw,"getSubsectionClasses");function jz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],ew(e,r,n),tw(i,n)}o(jz,"getExportClassesForSections");function nw(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(nw,"calculateBaseId");var iw=o((e,t,n=!1)=>{var l;let i=qx(e.manifest),r=new Ia,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&jz(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:nw(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 zx(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),$z=o((e,t,n,i,r,a,s=!1)=>{var E,O;let l=qx(e.manifest),u=e.jsonSchema,p=(E=n.table)!=null&&E[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($)[1]);let T=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&T)for(let R in T.properties)g.toolBar.actions[R]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[R]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:nw(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 zx(A,n,[],[],[],u),l},"exportListPage"),Yx=o((e,t,n,i=!1)=>{let r=new Ia,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return $z(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),rw=o((e,t,n=!1)=>Yx(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),Bz=o((e,t,n,i,r,a)=>{let s=Oo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=lE());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];ZM(u,p,{}),!l&&Object.keys(s).length&&DR(r,t,s)},"applyExportRule"),Hz=o((e,t,n)=>{var a;let i=qx(t),r=Object.assign(new Ny,e);r.settings=Object.assign(new rf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Yn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)Bz(l,u,s,e,i.manifest,n);else{let p=Oo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],ja(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=HM(e.home,e.pages,i.manifest),KM(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),ow=o((e,t)=>{if(e[ie.SchemaType.ListReport])return Yx(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return iw(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return Hz(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return rw(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return zM(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),Jx=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return Yx(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return iw(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return rw(e[ie.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");var $t=require("@sap-ux/fe-fpm-writer");var Gz=new Map([[pe.CustomExtensionType.CustomPage,$t.generateCustomPage],[pe.CustomExtensionType.CustomColumn,$t.generateCustomColumn],[pe.CustomExtensionType.CustomSection,$t.generateCustomSection],[pe.CustomExtensionType.ObjectPage,$t.generateObjectPage],[pe.CustomExtensionType.ListReport,$t.generateListReport],[pe.CustomExtensionType.CustomAction,$t.generateCustomAction],[pe.CustomExtensionType.CustomView,$t.generateCustomView],[pe.CustomExtensionType.ControllerExtension,$t.generateControllerExtension],[pe.CustomExtensionType.CustomSubSection,$t.generateCustomSubSection],[pe.CustomExtensionType.CustomFilterField,$t.generateCustomFilter],[pe.CustomExtensionType.CustomHeaderSection,$t.generateCustomHeaderSection]]),Wz={api:$t.PromptsAPI,types:$t.PromptsType};function Kz(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ListReport];t=Hx(i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.ObjectPage];t=Bx(i,r,a,s,l,u)}else if(n[pe.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[pe.SchemaType.OverviewPage];t=pd(i,r)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,fragments:l,logger:u}=n[pe.SchemaType.AnalyticalListPage];t=Gx(i,r,a,s,l,u)}}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];if(n[pe.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.ListReport];t=Oy(pe.TemplateType.ListReportObjectPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:a,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:g}=n[pe.SchemaType.ObjectPage];t=DS(i,r,a,s,l,u,p,g,e.featureToggles)}else if(n[pe.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l,contextPath:u}=n[pe.SchemaType.AnalyticalListPage];t=Oy(pe.TemplateType.AnalyticalListPageV4,i,r,a,s,l,u)}else if(n[pe.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:a,logger:s,manifest:l}=n[pe.SchemaType.FreestylePage];t=VS(pe.TemplateType.FreestylePageV4,i,a,l,r,s)}else if(n[pe.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:a,views:s,logger:l,annotations:u}=n[pe.SchemaType.FPMCustomPage];t=MS(i,r,a,s,u,e.featureToggles,l)}}return t}o(Kz,"generateSchema");function Xz(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=MM(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=ow(i,n)}return t}o(Xz,"exportConfig");function Qz(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Kx(i,n)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=Jx(i,n)}return t}o(Qz,"exportConfigEntityByPath");function qz(e){let t=pe.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[pe.FioriElementsVersion.v2]){let i=e[pe.FioriElementsVersion.v2];t=Kx(i,n,!0)}else if(e[pe.FioriElementsVersion.v4]){let i=e[pe.FioriElementsVersion.v4];t=Jx(i,n,!0)}return t}o(qz,"deleteConfigEntityByPath");function zz(e){let t;if(e[pe.FioriElementsVersion.v2]){let n=e[pe.FioriElementsVersion.v2];n[pe.SchemaType.ListReport]?t=Ph(n[pe.SchemaType.ListReport]):n[pe.SchemaType.ObjectPage]?t=Ih(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.OverviewPage]?t=Lh(n[pe.SchemaType.OverviewPage]):n[pe.SchemaType.AnalyticalListPage]&&(t=xh(n[pe.SchemaType.AnalyticalListPage]))}else if(e[pe.FioriElementsVersion.v4]){let n=e[pe.FioriElementsVersion.v4];n[pe.SchemaType.ListReport]?t=Uc(n[pe.SchemaType.ListReport],pe.SchemaType.ListReport):n[pe.SchemaType.ObjectPage]?t=nv(n[pe.SchemaType.ObjectPage]):n[pe.SchemaType.AnalyticalListPage]?t=Uc(n[pe.SchemaType.AnalyticalListPage],pe.SchemaType.AnalyticalListPage):n[pe.SchemaType.FPMCustomPage]&&(t=tv(n[pe.SchemaType.FPMCustomPage]))}return t}o(zz,"importConfig");async function Yz(e){return Ux(e)}o(Yz,"importProject");async function Jz(e){return kx(e)}o(Jz,"importProjectSchema");function Zz(){return{version:"16",fpmWriter:"20",moduleVersion:I0.version}}o(Zz,"getApiVersion");function Xx(e){let t=Gz.get(e.customExtension);if(t&&typeof t=="function")return(0,$t.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(Xx,"generateCustomExtension");var qr=require("path"),_s=require("fs");var Of=o(async e=>new Promise((t,n)=>{(0,_s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),eY=o(async e=>JSON.parse(await Of(e)),"readJSON"),Zx=o(async e=>new Promise((t,n)=>{(0,_s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),tY=o(async e=>new Promise(t=>{(0,_s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),sw=o(async e=>new Promise(t=>{(0,_s.exists)(e,n=>{t(n)})}),"resourceExists"),nY=o(async e=>eY((0,qr.join)(e,"manifest.json")),"getManifest"),cw=o(async e=>{let t=[],n=(0,qr.join)(e,"changes");if(!await sw(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await Zx(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Of((0,qr.join)(n,a)));return t},"getChanges"),aw=o(async(e,t="fragments")=>{let n=[],i=(0,qr.join)(e,"ext",t);if(!await sw(i))return n;let r=await Zx(i);for(let a of r){let s=(0,qr.join)(i,a),l=await Of(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),iY=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 T=(0,qr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await Of(T)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let T of i.mainService.settings.annotations)if((g=(p=i[T])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,qr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:A,fileContent:await Of(A)})}}if(n.length===0)for(let T in i){let A=i[T];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let E=(0,qr.join)(t,A.settings.localUri);n.push({dataSourceUri:E,fileContent:await Of(E)})}}return n},"getAnnotations"),rY=o(async e=>{let t=(0,qr.basename)(e),n=(0,qr.join)(e,"webapp"),i=await nY(n),r=await iY(i,n),a=await cw(n),s=await aw(n),l=await aw(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Ks(Vi,te(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
294
+ `}),h1(q)}o(tn,"initI18n");var jt=te(le());function vc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(sa((r=s.component)==null?void 0:r.name)===jt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=vc(s.pages,t,n),i))return n.unshift(a),i}}o(vc,"findObjectPageV2");function _l(e,t){var n;for(let i in e){let r=e[i];if(sa((n=r.component)==null?void 0:n.name)===jt.PageTypeV2.ListReport)return t.push(i),r}}o(_l,"findListReportPageV2");function Dl(e){if(!e.manifest[jt.ManifestSection.generic]){se(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){se(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(Dl,"getV2Pages");function Vl(e,t,n){var i;if(!e){se(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;se(t,{severity:jt.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}}o(Vl,"checkV2Page");function Ml(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),sa((i=a.component)==null?void 0:i.name)===jt.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:jt.LogSeverity.Error,message:q.t("NOALP"),location:{path:jt.MANIFESTPATH,range:[jt.ManifestSection.generic]}})}o(Ml,"findAnalyticalListPage");function vA(e,t){let n=e.split("|");return jt.v2.SectionPosition[n[0]]&&n[1]===t}o(vA,"isAssociatedCustomSection");function v1(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${jt.v2.SAPUI5_VIEW_EXTENSION}/${jt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)vA(r,t)&&(i[r]=n[r]);return i}o(v1,"findCustomSectionExtensions");function v3(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(v3,"removeEmptySettingsOfFooter");function T3(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(T3,"removeEmptySettingsOfFilterBar");function b3(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(b3,"removeEmptySettingsOfToolBar");function Ah(e){b3(e),T3(e),v3(e)}o(Ah,"removeEmptySettings");var bA={};Ws(bA,{AnalyticalListPage:()=>$r,ListReport:()=>co,ObjectPage:()=>li,OverviewPage:()=>Yt,exportFilterSettings:()=>E1,importDateSettingsOVP:()=>T1,importFilterSettings:()=>b1});var Sh=te(le());var $r=class{};o($r,"AnalyticalListPage"),h([y({flex:{controlId:Wg,controlType:o(()=>Sh.ControlType.DynamicPage,"controlType"),createFlexChange:Ee}})],$r.prototype,"fitContent",2),h([kt("table")],$r.prototype,"table",2),h([kt("template::SmartFilterBar")],$r.prototype,"filterBar",2),h([kt("analyticalListPageChart")],$r.prototype,"chart",2),h([kt("analyticalListFooter")],$r.prototype,"footer",2),$r=h([kr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Sh.v2.FE_TEMPLATE_V2_ALP})],$r);var qu=te(le());var co=class{};o(co,"ListReport"),h([y({flex:{controlId:Wg,controlType:o(()=>qu.ControlType.DynamicPage,"controlType"),createFlexChange:Ee}})],co.prototype,"fitContent",2),h([kt("listReportFilter")],co.prototype,"filterBar",2),h([kt("listReport")],co.prototype,"table",2),h([kt("listReportFooter")],co.prototype,"footer",2),co=h([kr({id:qu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:qu.v2.FE_TEMPLATE_V2_LIST_REPORT})],co);var TA=te(le());var li=class{};o(li,"ObjectPage"),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.0"})],li.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.1"})],li.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.48.0"})],li.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Ri(t),"path")}}),x({since:"1.52.0"})],li.prototype,"navToListOnSave",2),h([kt("header")],li.prototype,"header",2),h([kt("sections")],li.prototype,"sections",2),h([kt("layout")],li.prototype,"layout",2),h([y({manifest:{path:o(t=>Em(t),"path")}}),x({since:"1.77.0"})],li.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Ri(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],li.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Ri(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:zs}}),x({since:"1.71.0"})],li.prototype,"globalTableSettings",2),li=h([kr({id:TA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:TA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],li);function E3(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(E3,"importDateSettingsFieldsOVP");function T1(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&&E3(e,t),t}o(T1,"importDateSettingsOVP");function b1(e){let t={};return t.dateSettings=T1(e.filterSettings),t}o(b1,"importFilterSettings");function A3(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(A3,"exportFilterFields");function E1(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&&A3(t,n,e))}o(E1,"exportFilterSettings");var Yt=class{};o(Yt,"OverviewPage"),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>bn(),"path"),import:b1,export:E1}}),x({since:"1.80.0"})],Yt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>bn(),"path")}})],Yt.prototype,"resizableLayout",2),Yt=h([kr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Yt);var EA=class EA{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(EA,"MetadataFactory");var wl=EA;var Zn=te(le());var S3={},P3={Table:ac,ResponsiveTableWithMultiSelect:ac,ResponsiveTableWithInlineDelete:ac},x3={[Zn.v2.CardSettingsType.listCardSettings]:Sl,[Zn.v2.CardSettingsType.listCardSettingsv4]:Sl,[Zn.v2.CardSettingsType.analyticalCardSettings]:Pl,[Zn.v2.CardSettingsType.analyticalCardSettingsv4]:Pl,[Zn.v2.CardSettingsType.stackCardSettings]:yu,[Zn.v2.CardSettingsType.linkListCardSettings]:vu,[Zn.v2.CardSettingsType.tableCardSettings]:xl,[Zn.v2.CardSettingsType.tableCardSettingsv4]:xl},C3={[Zn.SAPUI5_VIEW_CLASS]:Hu,[Zn.SAPUI5_FRAGMENT_CLASS]:Bu,Table:yc,ObjectPageResponsiveTableWithMultiSelect:yc,ObjectPageResponsiveTableWithInlineDelete:yc},I3={[Zn.PageTypeV2.AnalyticalListPage]:S3,[Zn.PageTypeV2.ListReport]:P3,[Zn.PageTypeV2.ObjectPage]:C3,[Zn.PageTypeV2.OverviewPage]:x3},AA=class AA extends wl{constructor(){super(mA,bA,I3)}};o(AA,"MetadataInstanceFactoryV2");var _i=AA;function O3(e,t,n,i,r){if(e.filterBar=t.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[Xt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Xt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(O3,"importFilterBar");function N3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Jg]&&t[Zg]&&(a=JSON.parse(JSON.stringify(t[Jg])),a.properties={...a.properties,...t[Zg].properties}),_n(n.table,i.manifest,a,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Xt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(N3,"importTable");function L3(e,t,n,i){let r=e.jsonSchema.definitions,a=bh(e.manifest,i);if(t.table=n.createInstance(Xt.PageTypeV2.ListReport,a,t.table),Eh(t,n,r),N3(a,r,t,e,i),t.table.toolBar=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[Xt.DefinitionName.ToolBarLR],i,e.logger),r[Xt.DefinitionName.ActionsLR])for(let l in r[Xt.DefinitionName.ActionsLR].properties){let u=ls(l);t.table.toolBar.actions[u]=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[Xt.DefinitionName.Action],i,e.logger)}O3(t,n,e,r,i),t.footer={actions:{}};let s=r[Xt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=ls(l);t.footer.actions[u]=n.createInstance(Xt.PageTypeV2.ListReport,Xt.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[Xt.DefinitionName.Action],i,e.logger)}}o(L3,"addSettings");function Ph(e){if(tn(),!Dl(e))return;let n=new _i,i=n.createPageInstance(Xt.PageTypeV2.ListReport),r=[],a=_l(e.manifest[Xt.ManifestSection.generic].pages,r);if(Vl(a,e.logger,a==null?void 0:a.entitySet),!!a)return L3(e,i,n,r[0]),e.flex.forEach(s=>{$a(s)&&Th(i,s,e.jsonSchema,e.logger)}),Rl(i,e.manifest,a,Xt.PageTypeV2.ListReport,e.fragments),Ah(i),i}o(Ph,"createListReportConfig");var xt=te(le());function F3(e,t,n,i){var u,p;let r=bh(e.manifest,i),a=e.jsonSchema.definitions;if(Eh(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),_n(t.table,e.manifest,a[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let g in a[xt.DefinitionName.ActionsLR].properties){let m=ls(g);t.table.toolBar.actions[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),_n(t.table.toolBar.actions[m],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(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 g=a[xt.DefinitionName.SelectionFields].properties;for(let m in g){let T=m;t.filterBar.selectionFields[T]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[T],e.manifest,a.SelectionFieldDateSettings,i,e.logger,T)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let s=a[xt.DefinitionName.FooterActionsLR];if(s)for(let g in s.properties){let m=ls(g);t.footer.actions[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),_n(t.footer.actions[m],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[xt.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:p.keyPerformanceIndicators;l&&Object.keys(l).forEach(g=>{t.keyPerformanceIndicators[g]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[g],e.manifest,a.KPISettings,i,e.logger,g)})}o(F3,"addSettings");function xh(e){if(tn(),!Dl(e))return;let n=new _i,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=Ml(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(Vl(a,e.logger,a==null?void 0:a.entitySet),!!a)return F3(e,i,n,r[0]),e.flex.forEach(s=>{$a(s)&&Th(i,s,e.jsonSchema)}),Rl(i,e.manifest,a,xt.PageTypeV2.AnalyticalListPage,e.fragments),Ah(i),i}o(xh,"createAnalyticalListPageConfig");var Ae=te(le());var zu=require("@sap-ux/vocabularies-types/vocabularies/UI");var _3=[Ae.ControlType.Avatar,Ae.ControlType.ObjectPageLayout,Ae.ControlType.DynamicPage];function D3(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(`${zu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ae.ActionTitlePrefix}${t}`;else if(e[0].indexOf(zu.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(D3,"getSingleSelectorIdPart");function V3(e){let t,n=e.split(":::");if(n.length===1)t=D3(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(`::${zu.UIAnnotationTerms.LineItem}`,`/@${zu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(V3,"getFacetID");function M3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=$a(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ae.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let T=m[1].replace(/:3a:3a/g,"::");r.exec(T)!==null&&(T=T.split("template:::TableColumn:::")[1]);let A=V3(T);T=hA(T).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${T}::${g.content.property}`]={controlId:T,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:Ae.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(M3,"prepareFlexChanges");var w3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");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($,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function k3(e,t,n,i,r,a){let s;r?s=[r.replace(/@/g,"")]:s=[a.replace(/@/g,""),a==null?void 0:a.replace(/::@com.sap.vocabularies/g,Ae.VOCWITHSLASH)];for(let l in e){let u=e[l],p=u.propertyId===t,g=t==="columns"&&u.controlType===Ae.ControlType.TableColumn;(p||g)&&s.indexOf(u==null?void 0:u.facetId)>-1&&vm(n,u,i.jsonSchema)}}o(k3,"importFlexChangesOfTable");function U3(e,t){return e.facetId==="template"&&t}o(U3,"isStandardActionFlexChange");var A1=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 j3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Ae.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Ae.ActionTitlePrefix))&&!r&&s,m=r&&A1(u,r.split("::"))&&s,T=e.title&&A1(u,e.title.split("::"),!0),A=!t.facetId&&_3.includes(t.controlType),b=U3(t,l);return p||g||m||T||A||b}o(j3,"matchSelector");function $3(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[Ae.SchemaTag.controlType]))continue;j3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o($3,"importFlexChanges");function B3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ae.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(B3,"checkDeprecatedProperties");function H3(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return B3(p,a,n,u),p}o(H3,"importManifestSetting");function Di(e,t,n,i,r,a){var l,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let p in n.properties||n){let g=Yn(t,p);if(p==="columns"||g!=null&&g.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))k3(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);$3(n,t,i.flexChanges,p,m,a)}else g!=null&&g.manifest&&H3(g,i.pageKeys,e,t,p,s,r)}}o(Di,"transferSettingsAndFlexChanges");function P1(e,t,n,i){let r=qi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${o0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${em}${r}`;break}}return r.replace(/@/g,"")}o(P1,"getActionId");function G3(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=P1(s,a,"","");e.actions[a]=i.factory.createInstance(Ae.PageTypeV2.ObjectPage,l,{}),Di(n,e[Ae.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(G3,"fillStandardActions");function Ch(e,t,n,i,r,a){var l;n[Ae.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=ls(p),m=P1(s,g,r,a);m&&(n[Ae.PropertyName.actions][g]=i.factory.createInstance(Ae.PageTypeV2.ObjectPage,s),Di(e,n[Ae.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ae.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ae.PropertyName.actions][g]).length===0&&delete n[Ae.PropertyName.actions][g]}}G3(n,t,e,i),Object.keys(n[Ae.PropertyName.actions]).length===0&&delete n[Ae.PropertyName.actions]}o(Ch,"fillActions");function W3(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(Ae.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ae.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Di(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ae.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(W3,"fillFields");function K3(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(K3,"prepareTableSchema");function X3(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(Ae.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ae.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ae.PropertyName.table]=g;let m=e.jsonSchema.definitions,T=K3(p,t,m);Di(e,i[t.id],t.schema,r,{title:t.title}),Di(e,i[t.id][Ae.PropertyName.table],T,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.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");Ch(e,A.properties,i[t.id][Ae.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Ae.PropertyName.table].toolBar).length===0&&delete i[t.id][Ae.PropertyName.table].toolBar}}o(X3,"fillTableInConfig");function Q3(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,a=r?zg(r.$ref):void 0;if(a){let s={key:t.replace("@",""),target:a};Rl(n[t],e.manifest,i,Ae.PageTypeV2.ObjectPage,e.fragments,s)}}o(Q3,"fillCustomColumnsInConfig");function q3(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(Ae.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ae.PropertyName.chart]=r.factory.createInstance(Ae.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Di(e,i[t.id],t.schema,r,{title:t.title}),Di(e,i[t.id][Ae.PropertyName.chart],e.jsonSchema.definitions[Ae.DefinitionName.ObjectPageChart],r,t))}o(q3,"fillChartSection");function z3(e,t,n,i){n[t.id]=i.factory.createInstance(Ae.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Di(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(z3,"fillHeaderSection");function Y3(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ae.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Di(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&&Ch(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&W3(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(Y3,"fillFormSection");function S1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ae.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Di(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,SA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(S1,"fillSubSection");function SA(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:w3(t[l]),schema:t[l],title:Tb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],X3(e,p,n,i,r),Q3(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],q3(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],Y3(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}>`],S1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],z3(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],S1(e,p,n,i,r))}}o(SA,"fillSectionsInConfig");function J3(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(Ae.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ae.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Di(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(J3,"fillCustomSectionsInConfig");function Z3(e,t){var g,m;let n=t.factory.createPageInstance(Ae.PageTypeV2.ObjectPage);Di(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ae.PageTypeV2.ObjectPage,Ae.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Di(e,n.globalTableSettings,i[Ae.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ae.PageTypeV2.ObjectPage,Ae.DefinitionName.ObjectPageHeader);let r=i[Ae.DefinitionName.ObjectPageHeader]?i[Ae.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Di(e,n.header,r,t);let a=i[Ae.DefinitionName.ObjectPageHeaderActions];a&&Ch(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ae.DefinitionName.FooterActions];s&&Ch(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ae.PageTypeV2.ObjectPage,"ObjectPageLayout"),Di(e,n.layout,i[Ae.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ae.DefinitionName.HeaderSections];if(l){let T=(g=t.v2Page.component)==null?void 0:g.settings;SA(e,l.properties,T,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ae.DefinitionName.Sections];if(u){let T=(m=t.v2Page.component)==null?void 0:m.settings;SA(e,u.properties,T,n.sections,t)}let p=v1(e.manifest,e.entitySet);return J3(p,n,t,i,e),n}o(Z3,"fillConfig");function Ih(e){tn();let t=Dl(e);if(!t)return;let n=e.entitySet,i=[],r=vc(t,e.entitySet,i);if(Vl(r,e.logger,n),!r)return;let a=M3(e.flex,n),s=new _i;return Z3(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Ih,"createObjectPageConfigV2");function Nh(e,t){var n,i;return(n=e.component)!=null&&n.name?$g(sa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Nh,"generateId");function e7(e,t,n,i){e.navigation={};let r=x1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Nh(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(e7,"getPageConfigsAndNavigations");function x1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Nh(a,r);if(!s)continue;let l={pageType:sa((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===Dn.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ph(p)}else if(l.pageType===Dn.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=xh(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Ih(p)}a.pages&&e7(l,a,t,n)}return n}o(x1,"getPagesAndConfigs");var PA=class PA extends Ka{constructor(t){tn();let n;t.manifest[Dn.ManifestSection.generic]?n=t.manifest[Dn.ManifestSection.generic].pages:se(t.logger,{severity:Dn.LogSeverity.Error,message:q.t("NOFE"),location:{path:Dn.MANIFESTPATH,range:[Dn.ManifestSection.generic]}}),n||se(t.logger,{severity:Dn.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:Dn.MANIFESTPATH,range:[Dn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Nh(n[i],i),a=new Xa,s=_t(Dn.SchemaType.Application),l=t.appSchemas[s.filename];_n(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,x1(n,t),a)}};o(PA,"V2AppProvider");var Oh=PA;function Yu(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:Dn.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:Dn.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Nh(l,s);i[u]=l}if(t===Dn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Yu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Yu,"getPages");var bc=te(le());var ko=te(le());var CA=te(BT());var Qt=te(le());var t7=["colorPalette","tabs"];function n7(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(n7,"createCard");function C1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),C1(e,n.join("|"))}return t}o(C1,"findAvailableId");function Ju(e,t,n,i,r,a,s){i!=null&&i.properties&&xA(e,t,n,i.properties,r,a,s)}o(Ju,"transferManifestEntriesOVP");function Tc(e,t,n,i){return e.createInstance(Qt.PageTypeV2.OverviewPage,i,n,t)}o(Tc,"assignReflectMetadataRules");function i7(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($),r=e.appSchema.definitions[i[1]];t=Tc(e.factory,i[1],t,"CustomCard"),Ju(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(i7,"processAnyOfDefinitionsOfOVP");function r7(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!t7.includes(i)?t[i]=(0,CA.default)(t[i]||{},r||{},{arrayMerge:hb}):t[i]=r}o(r7,"checkSyncRuleForExport");function o7(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in Qt.v2.CardSettingsType||n==="settings")l.settings=(0,CA.default)(l.settings||{},r||{},{arrayMerge:hb});else if(r!==void 0){let u=e.manifest.export;r7(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(o7,"transferToManifest");function a7(e,t,n,i){Object.keys(e).forEach(r=>{let a=e[r].template,s;Object.values(Qt.v2.CardTemplateType).includes(a)?s=Object.keys(t.definitions).filter(l=>{var p;let u=(p=t.definitions[l].properties)==null?void 0:p.template;if(u!=null&&u.enum)return u.enum.indexOf(e[r].template)>-1;if(u!=null&&u.const)return u.const===e[r].template}):s=["CustomCard"],e[r]=Tc(n,s[0],e[r],"CustomCard"),n7(r,i.manifest[Qt.ManifestSection.ovp]),Ju(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[Qt.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[Qt.ManifestSection.ovp].cards[r]})}o(a7,"transferCards");function s7(e,t,n){if(t==="cards")a7(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Lo(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,Qt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split($);e.currentObject=Tc(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ju(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],xA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],xA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}o(s7,"exportOfObject");function xA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!ru(a,s))continue;let u=e[l],p=Yn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=i7(g)):u&&typeof u=="object"&&i[l]&&s7(g,l,r),p!=null&&p.manifest&&o7(p,a,l,t,u,e)}}o(xA,"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=n0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=n.flex.createFlexChange(p,g);e.exportResults.flexChanges.find(A=>{let b=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let R=JSON.parse(m);return R={content:R.content,selector:R.selector},JSON.stringify(O)===JSON.stringify(R)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(c7,"evaluateFlexRule");function l7(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=Qt.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=Qt.ChangeIndicator.Updated}}o(l7,"exportConfigValueToManifest");function f7(e,t,n,i,r){let a=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)l7(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=Qt.ChangeIndicator.Updated,ja(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(f7,"evaluateManifestRule");function u7(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(Qt.FacetTitlePrefix)?r.split(Qt.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(u7,"getManifestPathOfSections");function p7(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(p7,"getManifestPathOfTable");function d7(e,t,n,i,r){let a;return t[0]===Qt.PropertyName.sections?a=u7(t,a,n,e,r):t[0]===Qt.PropertyName.table?a=p7(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(d7,"getManifestPath");function g7(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=d7(e,i,t,n,a);f7(e,u,t,s,n)}}o(g7,"evaluateExportRule");function m7(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Rm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Qt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Qt.ViewTemplateType.ResponsiveTableColumnsExtension,Qt.ViewTemplateType.ResponsiveTableCellsExtension);Rm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(m7,"deleteObsoleteColumn");function h7(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=N0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Qt.ChangeIndicator.Updated,m7(r,e,n))}o(h7,"deleteObsoleteColumnsFromFragment");function y7(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}=_m(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(y7,"clusterConfigColumnsByPath");function I1(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 Qt.v2.TableColumnExtensionTypeV2){let{path:u}=_m(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};h7(p)}if(t){let l=y7(t,n,e.v2Page,s,r);for(let u in l)nE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(I1,"transferColumnExtensions");function v7(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=C1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var b;return(b=A.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split($),T=e.appSchema.definitions[m[m.length-1]];fs(e,t[p],i,[...r,s[p]],T)}let u=Bn(e.exportResults.manifest,Ib());for(let p in u)vA(p,l)&&!s.includes(p)&&delete u[p]}o(v7,"transferManifestExtensions");function T7(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Qt.PropertyName.table){n=e[i-1];break}return qn(n,t)}o(T7,"getSectionId");function b7(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Lo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);fs(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(b7,"transferIndexTable");function E7(e,t,n,i,r,a){let s,l=zg(e.$ref);l&&(s={target:l,key:T7(t,n)}),I1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(E7,"transferCustomColumns");function A7(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Lo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&fs(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(A7,"handleAnyOfDefinitions");function S7(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")v7(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){E7(l,t,s,e,n,a);return}else a?fs(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&A7(l,e,s,n==null?void 0:n[r],r,i,t)}o(S7,"transferComplexProperty");function fs(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&&!ru(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Kg(t,l),p=u?[...n,u]:n,g=Yn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=Lo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(g7(e,g,t,[...i],p,a,l),b7(s,e,a,l,p,i),s===void 0||typeof s=="object")S7(e,i,t,p,l,T,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){I1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(fs,"transferManifestEntriesAndFlexChange");function O1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Tc(r,i,n[i],s),a.push(i),IA(r,n[i],e,l.properties,a)}o(O1,"transferSettingsOfRef");function P7(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);O1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${ko.v2.cardTemplateSettingsMap[e.template]}`.split($);O1(i,l,e,t,r,a)}}o(P7,"processPropertiesOfObject");function x7(e,t,n,i,r,a){let s=Yn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=Bn(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{pl(s,u,t,e)}catch(p){se(i.logger,{severity:ko.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&P7(e,t,r,i,a,n)}o(x7,"processOvpProperty");function IA(e,t,n,i,r){for(let a in i)x7(t,a,r,n,i,e)}o(IA,"processOvpProperties");function C7(e,t,n){IA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[ko.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[ko.ManifestSection.ovp].cards[i].template,a=ko.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Tc(n,a,{},"CustomCard"),e.cards=Tc(n,a,e.cards,"CustomCard"),IA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,[i])})}o(C7,"addSettings");function Lh(e){let t=new _i,n=t.createPageInstance(ko.PageTypeV2.OverviewPage);return e.jsonSchema&&C7(n,e,t),n}o(Lh,"createOverviewPageConfig");var OA=class OA extends Ka{constructor(t){let n={},i=t.manifest[bc.ManifestSection.ovp],r=new Xa,a=_t(bc.SchemaType.Application);_n(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(bc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:bc.PageTypeV2.OverviewPage,config:Lh(l),entitySet:i.globalFilterEntitySet},p=$g(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(OA,"V2OvpProvider");var Fh=OA;var Uo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ne=te(le()),N1=require("path");function I7(){return([e,t],[n,i])=>t[ne.SchemaTag.propertyIndex]-i[ne.SchemaTag.propertyIndex]}o(I7,"sortByPropertyIndex");function Zu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(I7())}o(Zu,"sortPropertiesRecords");function O7(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(O7,"getExtensionText");function NA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ne.v4.Placement.After)===ne.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(NA,"addExtensionToSortedArray");function N7(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(N7,"addRemainingTargetByBefore");function L1(e,t,n,i){let r=t.includes(ne.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=O7(e);return{$ref:`${$}${r}`,description:a,keys:[{name:ne.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(L1,"getExtensionDetails");function LA(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=L1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let T=n.findIndex(A=>A[0]===g.position.anchor);T>-1?(NA(g,n,T,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:Vi.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&N7(e,p,g,n,m)}else r&&(NA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?LA(e,t,n,i):s>0&&LA(e,t,n,i,!0)}o(LA,"adjustCustomExtReferringToCustomExt");function L7(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||ne.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===ne.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(L7,"getExtensionAnchor");function F7(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(F7,"getLocalExtensionsToSkip");function R7(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ne.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 T=t[m[0]];if(g(T))break;p++}return p},"findNextIndex"),s=0;return i===ne.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)!==ne.v4.Placement.Before))}),s>-1?s:0}o(R7,"getExtensionIndexByMergedApproach");function _7(e,t,n,i,r=!1){return r?R7(e,t,n):n.findIndex(a=>a[0]===i)}o(_7,"getExtensionIndex");function D7(e,t,n,i,r){se(e,{severity:Vi.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:ne.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(D7,"handleInvalidExtension");function ma(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=F7(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=L1(g,n,p,ne.ActionType.Custom);if(typeof g!="object"){D7(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let T=L7(g,s);if(T){let A=_7(g,e,t,T,a);A>-1&&(NA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&LA(l,n,t,r),t}o(ma,"addExtensionToArray");function Ec(e,t,n,i=ne.DefinitionName.CustomColumn,r,a){var T,A,b,O;let s=r||ne.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Zu(l),p=a?a.replace(/::/g,"/"):`@${Uo.UIAnnotationTerms.LineItem}`,g=(O=(b=(A=(T=t.options)==null?void 0:T.settings)==null?void 0:A.controlConfiguration)==null?void 0:b[p])==null?void 0:O.columns;g&&(u=ma(g,u,i,void 0,n));for(let R=0;R<u.length;R++)u[R][1][ne.SchemaTag.propertyIndex]=R;let m={};u.forEach(([R,U])=>m[R]=U),e.definitions[s].properties=m}o(Ec,"addCustomColumnDefinition");function V7(e){let t;return e.lineItemId.startsWith(ne.DefinitionName.LineItemsOfView)?t=ne.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ne.DefinitionName.LineItems)?t=ne.DefinitionName.ToolBarAction:t=ne.DefinitionName.ObjectPageToolBarAction,t}o(V7,"determineActionDefinitionName");function M7(e,t,n){e[ne.SchemaTag.keys]=[],t[ne.SchemaKeyName.semanticObject]&&e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.semanticObject,value:t[ne.SchemaKeyName.semanticObject]});let{key:i,ns:r}=ec(n,!0);e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.action,value:i}),r&&(e[ne.SchemaTag.target]=r)}o(M7,"addTargetAndKeysOfAction");function w7(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=V7(e),l=Si(i,e.entityType),u=i.$Type.split(`${ne.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Yg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=$n(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[ne.SchemaTag.propertyIndex]=r,m[ne.SchemaTag.dataType]=to(i),M7(m,i,p),m[ne.SchemaTag.annotationType]=i.$Type,a){let T=bt(s,dt(g),e.appSchema);T[ne.SchemaTag.annotationPath]=`${n}/${r}`}else m[ne.SchemaTag.annotationPath]=`${n}/${r}`}o(w7,"addActionRecordToSchema");function k7(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ri(ne.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=la(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:Si(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[ne.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[ne.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[ne.SchemaTag.propertyIndex]=i,m[ne.SchemaTag.dataType]=to(s),g[l]=m,cm(s,g,l)}}o(k7,"addLineItemRecordToSchema");function FA(e,t,n,i,r=ne.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Uo.UIAnnotationTypes.DataFieldForAction||s.$Type===Uo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))w7(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Uo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;k7(e,l,u,a,i)}a++})}o(FA,"appendLineItemsToSchema");function Ac(e,t=ne.DefinitionName.TableColumn,n=ne.DefinitionName.CustomColumn,i=ne.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=am(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);FA(e,r,a,void 0,t)}o(Ac,"addLineItemsTypeToSchema");function Sc(e,t,n,i=ne.DefinitionName.Position,r){var p,g,m,T,A;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!==ne.DefinitionName.LineItems?r:`@${Uo.UIAnnotationTerms.LineItem}`,u=(A=(T=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:T[l])==null?void 0:A.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;fa(s,b)}}o(Sc,"addFragmentEnumForAnchor");function lo(e,t,n=ne.DefinitionName.CustomActionPosition){Ga(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(lo,"addEnumForActionAnchor");function Rh(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)&&(e[s].name===t||t===ne.v4.FE_TEMPLATE_V4_ALP&&e[s].name===ne.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Rh,"findPageV4");function F1(e,t){let n,i=e.properties[ne.PropertyName.table];return t.templateType===ne.TemplateType.AnalyticalListPageV4?(n=ne.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${ne.DefinitionName.ALPTableView}`,delete e.definitions[ne.DefinitionName.Table],delete e.definitions[ne.DefinitionName.LRChartView],delete e.definitions[ne.DefinitionName.LRTableView],delete e.definitions[ne.DefinitionName.MultiTableModeV4]):t.templateType===ne.TemplateType.ListReportObjectPageV4&&(n=ne.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${ne.DefinitionName.Table}`,e.definitions[n].properties[ne.PropertyName.annotationPath][ne.SchemaTag.hidden]=!0,delete e.definitions[ne.DefinitionName.ALPTableView],e.properties[ne.PropertyName.defaultPath][ne.SchemaTag.hidden]=!0),n}o(F1,"alignSchemaWithTemplateType");function ha(e,t,n,i=ne.DefinitionName.CustomTableAction,r="",a=""){var g,m,T,A,b,O,R,U,W,j;let s=e.definitions[r];if(!s)return;let l=Zu(s),u;a?i.indexOf(ne.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===ne.DefinitionName.CustomFormActionOP?u=`@${Uo.UIAnnotationTerms.FieldGroup}`:u=`@${Uo.UIAnnotationTerms.LineItem}`;let p;if(r.includes(ne.DefinitionName.ObjectPageCustomSectionActions)?p=(O=(b=(A=(T=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:A.sections)==null?void 0:b[u])==null?void 0:O.actions:p=(j=(W=(U=(R=t.options)==null?void 0:R.settings)==null?void 0:U.controlConfiguration)==null?void 0:W[u])==null?void 0:j.actions,p&&(l=ma(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][ne.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(ha,"addCustomActionDefinition");function _h(e,t,n,i=ne.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,T,A,b,O,R;let a=e.definitions[r];if(!a)return;let s=Zu(a),l;[ne.DefinitionName.CustomHeaderAction,ne.DefinitionName.CustomHeaderActionOP].includes(i)?l=(T=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:T.actions:l=(R=(O=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:R.actions,l&&(s=ma(l,s,i,"press",n));let u={};if(s){for(let U=0;U<s.length;U++)s[U][1][ne.SchemaTag.propertyIndex]=U;s.forEach(([U,W])=>u[U]=W)}e.definitions[r].properties=u}o(_h,"addHeaderFooterCustomActionDefinition");function Pc(e,t,n){let i=Gg(e,[ne.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:Vi.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}let r=Gg(i,[t]);if(!r){se(n,{severity:Vi.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}return r}o(Pc,"getManifestPage");function xc(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,N1.join)(...p,g),T=e.find(A=>A.dataSourceUri.endsWith(m));if(T){let A=(s=t.options)==null?void 0:s.settings;return{file:T,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(xc,"getPageCustomExtensionFile");function us(e,t,n,i){let r=Pc(n,t,i),a=Gg(r,["options","settings","viewName"]);return r&&typeof a=="string"?xc(e,r,n,"view",a):void 0}o(us,"getPageCustomViewFile");function R1(e,t,n,i,r,a,s){var g,m,T,A,b,O,R,U,W,j,ae,Z;let l=Zu(t),u=new Map;if(l=l.map(re=>{let xe=ym(e,re[1],re[0],{keyProperties:[ne.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(xe.const,re[0]),[xe.const,re[1]]}),a){let re=(b=(A=(T=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:A.sections)==null?void 0:b[a];re&&"subSections"in re&&(l=ma(re.subSections,l,i,"template",s,r))}else if(i.includes(ne.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(U=(R=(O=n.options)==null?void 0:O.settings)==null?void 0:R.content)==null?void 0:U.header;re&&"facets"in re&&(l=ma(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(j=(W=n.options)==null?void 0:W.settings)==null?void 0:j.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=ma(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][ne.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,xe])=>{re=u.get(re)||re,p[re]=xe}),t.properties=p}o(R1,"addCustomSectionDefinition");function _1(e,t,n){var l,u,p;let i=Zu(t),r=new Map;i=i.map(g=>{let m=ym(e,g[1],g[0],{keyProperties:[ne.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Uo.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=ma(a.filterFields,i,ne.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][ne.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(_1,"addCustomFilterFieldDefinition");var D=te(le()),Cc=require("@sap-ux/vocabularies-types/vocabularies/UI");var U7=["header","filterBar","chart","table"],RA="@UI.LineItem";function _A(e,t,n,i,r){if(i||(i=t.definitions[D.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[D.SchemaTag.annotationPath]=gr(e.fullyQualifiedName,Cc.UIAnnotationTerms.SelectionFields,r)),n){let a=0;n==null||n.forEach(s=>{var g,m;let l=s.value,u="SelectionField::"+dt(s.value);s.type==="PropertyPath"&&(l=kg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][D.SchemaTag.propertyIndex]=a;let p=to(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][D.SchemaTag.isViewNode]=!0,t.definitions[u][D.SchemaTag.keys]=[{name:D.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][D.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][D.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][D.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][D.SchemaTag.annotationPath]=`${i[D.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(_A,"addSelectionFields");function j7(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Cc.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(j7,"getVisualFilters");function $7(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($7,"getPropertiesIndex");function B7(e,t,n,i){var s,l,u,p,g,m;let r=$7(i,e),a=t.definitions[D.DefinitionName.VisualFilters];a.properties={};for(let T in n){let A=n[T];if(!A.template){let b=a.properties[T]={$ref:$n(D.DefinitionName.VisualFilter,T)},O=r.indexOf(T);O!==-1&&(b[D.SchemaTag.propertyIndex]=O);let R=bt(D.DefinitionName.VisualFilter,T,t);(s=A.visualFilter)!=null&&s.valueList&&(R[D.SchemaTag.annotationPath]=`${T}/@${A.visualFilter.valueList}`);let U=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(W=>W.name===T))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();R.description=U||T,R[D.SchemaTag.keys]=[{name:D.SchemaKeyName.value,value:T}]}}}o(B7,"addVisualFilters");function H7(e,t,n){t.additionalProperties={$ref:`#/definitions/${D.DefinitionName.CustomFilterField}`},_1(e,t,n);let i=e.definitions[D.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Ga(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[D.SchemaKeyName.value,D.SchemaKeyName.key],descriptionAsFallback:!0})}o(H7,"applyCustomFilterFields");function G7(e,t,n,i){var l,u;let r=j7(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[D.DefinitionName.SelectionFields][D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.SelectionFields].properties={},s=t.definitions[D.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},B7(e,t,r,a);else{let p=t.definitions[D.DefinitionName.FilterBar];p.properties.initialLayout[D.SchemaTag.hidden]=!0,p.properties.layout[D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.CompactFilters][D.SchemaTag.hidden]=!0,t.definitions[D.DefinitionName.VisualFilters][D.SchemaTag.hidden]=!0}s=_A(e,t,a,s),H7(t,s,n)}o(G7,"addFilterBar");function D1(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(`${D.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=dt(`${D.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=Si(u,r),m=u.$Type.split(`${D.UIVOCABULARY}.`)[1],T=a.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};T[D.SchemaTag.propertyIndex]=l,T[D.SchemaTag.annotationType]=u.$Type,T[D.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[D.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][D.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(D1,"defineActions");function V1(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(D.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"?ul(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",D.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(V1,"findTheRightVisualization");function W7(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(W7,"analyzeChartAnnotation");function K7(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=V1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:D.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=RA,l=`/${t}/`+s.replace("UI",D.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(K7,"analyzeSPVforView");function kl(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${D.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(D.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=V1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return K7(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=RA,m=`/${s}/@${Cc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=RA;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:T}=W7(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:T}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o(kl,"analyzeViewAnnotation");function X7(e,t,n,i){let r=e.definitions[D.DefinitionName.ALPChartView];if(e.definitions[D.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[D.DefinitionName.ALPChart][D.SchemaTag.isViewNode],n&&(e.definitions[D.DefinitionName.ALPChart][D.SchemaTag.annotationPath]=n),e.definitions[D.DefinitionName.ALPChart].properties.annotationPath[D.SchemaTag.hidden]=!0,r.properties.annotationPath[D.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${D.DefinitionName.ALPChart}`,t){let a=t.split(D.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[D.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[D.SchemaTag.artifactType]=D.ArtifactType.Manifest,r[D.SchemaTag.key]="primary",r[D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:"primary"}]}o(X7,"addALPChartView");function Q7(e,t,n,i,r,a){var U,W,j,ae,Z,re,xe,_;let s=(U=n.entityType)==null?void 0:U.annotations.UI,l=(ae=(j=(W=t==null?void 0:t[0])==null?void 0:W.primary)==null?void 0:j[0])==null?void 0:ae[D.SchemaTag.annotationPath],{targetAnnotation:u}=kl(l,s,n.serviceAVT,"primary",void 0,n.logger);X7(e,l,u,s);let p="Actions<ALPChart>";e.definitions[D.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,D1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=kl((xe=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:xe[D.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),T=e.definitions[a];g||i?(T.properties.toolBar.$ref=`${$}${D.DefinitionName.ToolBarLR}`,T.properties.columns={$ref:$+D.DefinitionName.LineItems},T.properties.annotationPath[D.SchemaTag.hidden]=!0):T.properties={};let A=e.definitions[D.DefinitionName.ALPTableView];e.definitions[D.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[D.DefinitionName.ALPTable][D.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${$}${D.DefinitionName.ALPTable}`):i||(A.properties={}),A[D.SchemaTag.artifactType]=D.ArtifactType.Manifest;let b,O;if(g&&g.indexOf(D.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(D.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(D.UIVOCABULARYDOT)[1]),b){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(_=n.entityType)==null?void 0:_.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:D.DefinitionName.LineItems};Ac(ut,D.DefinitionName.ViewTableColumn),m&&(e.definitions[D.DefinitionName.ALPTable][D.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[D.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[D.SchemaTag.key]="secondary",A[D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:"secondary"}]}Ec(e,r,n.logger);let R=`${D.DefinitionName.Actions}<${dt(D.DefinitionName.LineItems)}>`;ha(e,r,n.logger,void 0,R),lo(e,R,D.DefinitionName.CustomActionPosition)}o(Q7,"addALPViews");function q7(e,t){let n=`${D.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[D.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][D.SchemaTag.isViewNode],e.appSchema.definitions[n][D.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${D.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[D.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${D.DefinitionName.Actions}<${e.viewKey}>`;return D1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[D.PropertyName.actions].$ref=`${$}${r}`,n}o(q7,"addViewChartDefinitions");function z7(e,t,n,i,r,a){let s=q7(e,t);n.definitions[s].properties.annotationPath[D.SchemaTag.hidden]=!0,n.definitions[s].properties.index[D.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[D.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(z7,"addViewChart");function Y7(e,t,n,i,r){var m;let a=`${D.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${D.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=bt(D.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[D.SchemaTag.isViewNode],l[D.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Ha(l.properties.toolBar,D.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},Ha(l.properties.columns,s),l.properties.annotationPath[D.SchemaTag.hidden]=!0,l.properties.index[D.SchemaTag.hidden]=!0,l.properties.entitySet[D.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(D.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};Ac(g,D.DefinitionName.ViewTableColumn,D.DefinitionName.ViewCustomColumn,D.DefinitionName.ViewCustomAction)}o(Y7,"addViewLineItems");function J7(e,t,n,i){e.properties[t][D.SchemaTag.isViewNode]=!0,e.properties[t][D.SchemaTag.annotationPath]=n?`/${n}/@${i[D.SchemaTag.annotationPath]}`:void 0,e.properties[t][D.SchemaTag.artifactType]=D.ArtifactType.Manifest,e.properties[t][D.SchemaTag.key]=t,e.properties[t][D.SchemaTag.keys]=[{name:D.SchemaKeyName.key,value:t}]}o(J7,"addTagsToView");function Z7(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(Z7,"getTargetEntityType");function eX(e,t,n,i){let r=`${D.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Cc.UIAnnotationTerms.LineItem}${n.split(D.Visualization.LineItem)[1]}`,l=bt(D.DefinitionName.ViewCustomColumn,r,e.appSchema);Ha(l.properties.position,D.DefinitionName.ViewPosition,r),bt(D.DefinitionName.ViewPosition,r,e.appSchema),Ec(e.appSchema,i,t.logger,`${D.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Sc(e.appSchema,r,i,`${D.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${D.DefinitionName.Actions}<${r}>`,p=`${D.DefinitionName.ViewCustomAction}<${r}>`;ha(e.appSchema,i,t.logger,p,u,s),bt(D.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${D.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,lo(e.appSchema,u,g)}o(eX,"addViewCustomExtensions");function tX(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(D.Visualization.LineItem))>-1)Y7(n,t,e,n.targetAnnotation,i),eX(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)z7(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:`${$}${D.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${D.DefinitionName.LRTableView}`}}}o(tX,"addLRViewParts");function nX(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[D.SchemaTag.key])continue;let p,g=Z7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:T,targetAnnotation:A,namespace:b,title:O}=kl(u==null?void 0:u[D.SchemaTag.annotationPath],m,n.serviceAVT,u[D.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(W=>W.targetTypeName===b))==null?void 0:l.name);let R=dt(u[D.SchemaTag.key]),U={viewKey:R,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};tX(T,s,U,n,i,m,u),J7(s,R,b,u)}}o(nX,"addLRViews");function iX(e,t,n,i,r,a){var g,m,T,A,b,O,R,U,W,j,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=kl(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,D.Visualization.LineItem,t.logger);if(l){let xe=l.split(".")[1],_=`${D.DefinitionName.LineItems}OfSPV::${dt(xe)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[D.SchemaTag.isViewNode],Ha(ut.properties.toolBar,D.DefinitionName.ToolBar,_),ut[D.SchemaTag.annotationPath]=u,ut.properties.columns={},Ha(ut.properties.columns,_),delete s.properties,Ha(s,`${a}SPV`),s[D.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[xe];yt||se(t.logger,{severity:D.LogSeverity.Error,message:q.t("NOTARGET",{target:xe})});let $e={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_};Ac($e);let on=(T=xe.split("#"))==null?void 0:T[1],Wn=on?`@${Cc.UIAnnotationTerms.LineItem}#${on}`:`@${Cc.UIAnnotationTerms.LineItem}`;Ec(e,i,t.logger,void 0,_,Wn),Sc(e,_,i,void 0,Wn);let an=`${D.DefinitionName.Actions}<${_}>`,Lt=mm(e,_,D.DefinitionName.CustomTableAction);ha(e,i,t.logger,yn(Lt),an,Wn),lo(e,an,D.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${D.DefinitionName.ToolBarLR}`,Ha(s.properties.columns,D.DefinitionName.LineItems);let xe=(O=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!xe&&!((W=(U=(R=i.options)==null?void 0:R.settings)==null?void 0:U.views)!=null&&W.paths)&&se(t.logger,{severity:D.LogSeverity.Error,message:q.t("NOLINEITEMS")});let _={isObjectPage:!1,appSchema:e,lineItemAnnotation:xe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D.DefinitionName.LineItems};Ac(_),Ec(e,i,t.logger),Sc(e,D.DefinitionName.LineItems,i),xe&&!((Z=(ae=(j=i.options)==null?void 0:j.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[D.SchemaTag.annotationPath]=gr((re=t.entityType)==null?void 0:re.fullyQualifiedName,xe.term,xe.qualifier));let ut=`${D.DefinitionName.Actions}<${dt(D.DefinitionName.LineItems)}>`;ha(e,i,t.logger,void 0,ut),lo(e,ut,D.DefinitionName.CustomActionPosition)}}o(iX,"adaptTableDefinition");function rX(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===D.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===D.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(rX,"getDefaultAnnotationPath");function oX(e,t,n,i){var u,p,g,m,T;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=rX(t,n.entityType,n.templateType),l=F1(e,n);G7(a,e,t,i),n.templateType===D.TemplateType.ListReportObjectPageV4?(iX(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],nX(e,r,n,t,l)):(T=(m=t.options)==null?void 0:m.settings)!=null&&T.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[D.PropertyName.chart][D.SchemaTag.hidden]=!0):n.templateType===D.TemplateType.AnalyticalListPageV4&&(Q7(e,r,n,s,t,l),Sc(e,D.DefinitionName.LineItems,t))}o(oX,"addTableAndViews");function aX(e,t,n){let i=D.DefinitionName.HeaderActions,r=e.definitions[i];r[D.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=D.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[D.SchemaTag.isViewNode]=!0,s.description="Custom Action",_h(e,t,n,a,i);let l=D.DefinitionName.CustomHeaderActionPosition;bt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,lo(e,i,l)}o(aX,"addHeaderActions");function ep(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ri(D.UIVOCABULARY,e.serviceAVT);if(r.properties[D.PropertyName.defaultTemplateAnnotationPath][D.SchemaTag.hidden]=!0,Ba(a,r,D.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[D.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:D.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:D.MANIFESTPATH,range:[D.ManifestSection.generic]}}),r;let u=Rh(l,n,e.entitySet,i);if(!u)return r;aX(r,u,e.logger),oX(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Fo(r,U7),r}o(ep,"generateListReportSchemaV4");var Sr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=te(le());var IV=te(Xs()),OV=te(CV()),NV=te(hS());var LV=te(le()),FV=te(le());function R6(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(R6,"findElementByXMLPath");function RV(e,t){return e[t]?!1:(e[t]={},!0)}o(RV,"ensureObjectExists");function _6(e,t){let n={},i=yn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(_6,"getPropertiesFromRef");function D6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=RV(l,i),m=l[i];return _c({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(D6,"traverseDefaultAggregation");function V6(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(V6,"isDefaultAggregationAppliable");function _c(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=_6(s,n.$ref));for(let T in u){let A=u[T],b=typeof A=="object";if(b&&(p==null?void 0:p.defaultAggregation)===T&&V6(u,p)&&(l=D6(e,t,p)||l,b=!1),!!b)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let O=A.metadata.path,R=O.slice(r.length),U=R6(i,R);l=RV(a,T)||l;let W=a[T];l=_c({fullSchema:e.fullSchema,schema:A,element:U,contextPath:O,config:W,parent:e},t)||l}else l=t(e,A,a,T)||l}return l}o(_c,"traverseSchema");function tf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,NV.parse)(e.fileContent),s=(0,OV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,IV.xml2js)(e.fileContent)}catch(r){se(n,{severity:FV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(r)}),location:{path:e.dataSourceUri}})}return i}o(tf,"parseXML");function nf(e){return`${LV.DefinitionName.CustomExtensionFragment}<${e}>`}o(nf,"getCustomExtensionFragmentDefinitionKey");function xy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(xy,"getRootElement");var IS=te(le()),OS=te(le());var Ip=te(le());function vs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(vs,"getAttribute");function _V(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(_V,"getNodeByName");function M6(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(M6,"resolveMetaPath");function AS(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=vs(t,"contextPath")||i.contextPath,a=vs(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=M6(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,T=a.split("#");T.length&&(m=T[1]);let A;if(a){let O=a.split(".");O.length&&(A=O[O.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o(AS,"getEntityTypeResolution");function DV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(DV,"applyAnnotationPath");function w6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=kl(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=ub(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(w6,"getTableLineItemAnnotationData");var VV={"sap.fe.macros.Chart":o(e=>{let t=AS(e);DV(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=AS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ri(Ip.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);_A(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=AS(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=ri(Ip.UIVOCABULARY,n);if(DV(t,r),t.annotationPath){let u=w6(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:Ip.DefinitionName.LineItems};FA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var MV=te(le());var k6=new Map([["filterFields","SelectionField::"]]),U6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Op={anchor:"anchor",placement:"placement",key:"key"};function j6(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[yn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Op.anchor in r&&Op.placement in r}return!1}o(j6,"isCustomExtensionSchema");function wV(e){let t=k6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=U6.get(e),t&&(n.prefix=t)),n}o(wV,"getAnnotationPrefix");function $6(e,t,n,i){let r=t.properties[n],a=wV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=vs(l,Op.key)||n,p=vs(l,Op.anchor),g=vs(l,Op.placement)||MV.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,T={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:T}}o($6,"getExtensionData");function B6(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}=$6(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}ma(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(B6,"updatePropertyIndices");function H6(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=vs(e.subElements[s],"key")||r}return r}o(H6,"getCorrectedAnchorEnumKey");function G6(e,t,n,i){var a,s;let r=wV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Ga(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=H6(e,m.const,r,t.properties[m.const]))}}o(G6,"applyEnumsForAnchors");function kV(e,t,n,i){j6(t,n)&&(i=i||e.name,B6(e,t,i),G6(e,t,n,i))}o(kV,"handleExtensions");var UV=te(require("crypto"));var Iy=new Uint8Array(256),Cy=Iy.length;function SS(){return Cy>Iy.length-16&&(UV.default.randomFillSync(Iy),Cy=0),Iy.slice(Cy,Cy+=16)}o(SS,"rng");var pi=[];for(let e=0;e<256;++e)pi.push((e+256).toString(16).slice(1));function jV(e,t=0){return pi[e[t+0]]+pi[e[t+1]]+pi[e[t+2]]+pi[e[t+3]]+"-"+pi[e[t+4]]+pi[e[t+5]]+"-"+pi[e[t+6]]+pi[e[t+7]]+"-"+pi[e[t+8]]+pi[e[t+9]]+"-"+pi[e[t+10]]+pi[e[t+11]]+pi[e[t+12]]+pi[e[t+13]]+pi[e[t+14]]+pi[e[t+15]]}o(jV,"unsafeStringify");var $V=te(require("crypto")),PS={randomUUID:$V.default.randomUUID};function W6(e,t,n){if(PS.randomUUID&&!t&&!e)return PS.randomUUID();e=e||{};let i=e.random||(e.rng||SS)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){n=n||0;for(let r=0;r<16;++r)t[n+r]=i[r];return t}return jV(i)}o(W6,"v4");var xS=W6;var CS="sap.fe.macros",K6=["id","key","title","text","label","header"];function BV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(BV,"getElementName");function X6(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(X6,"isElementWithNamespace");function Q6(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(Q6,"getDependencies");function q6(e,t){let n="",i=e.attributes||[];for(let r of K6){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(q6,"getViewNodeDescription");function z6(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(z6,"findAvailableName");function HV(e,t){if(e.properties={},e.$ref){let n=yn(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(HV,"prepareSchemaProperties");function Y6(e,t,n){t.properties||HV(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(Y6,"handleAttributes");function J6(e){e.type===OS.MacrosPropertyType.Control&&(e.internalId=xS())}o(J6,"applyIdForMacros");function Z6(e,t,n){var i,r;try{(r=(i=VV)[e])==null||r.call(i,t)}catch{se(n,{severity:IS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(Z6,"callAnnotationHandler");function eQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===OS.MacrosPropertyType.Control&&(e.controlName=n)}o(eQ,"updateMetadataByReference");function tQ(e,t,n,i){var T,A,b,O,R;let r=n.schema;t.properties||HV(t,r);let a=t.properties[i],s=(T=a==null?void 0:a.metadata)==null?void 0:T.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(O=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&O.length?z6(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(yn(a.$ref)):g=[`${CS}.${i}`,`${CS}.table.${i}`,`${CS}.filterBar.${i}`];let m=!1;for(let U of g){let W=(R=r.definitions)==null?void 0:R[U];if(typeof W!="object")continue;eQ(u,W,U);let j=q6(e,i),ae={$ref:wR(U),description:j,propertyIndex:n.index,metadata:u};Y6(e,ae,r),t.properties[p]=ae,m=!0,Z6(U,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(J6(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let U={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=U}return p}o(tQ,"addControlToSchema");function GV(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($)[1];a&&t.indexOf(a)===-1&&t.push(a)}GV(r,t)}}o(GV,"populateUsedDefinitionKeys");function nQ(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(nQ,"isElementAddableToSchema");function iQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!_V(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(iQ,"getDefaultAggregation");function rQ(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,WV(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:BV(s),index:a}]},i)}}o(rQ,"handleSubElementsOfXMLNode");function WV(e,t,n,i){var g,m,T;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[yn(t.$ref)]:t;if(X6(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(T=t.metadata)==null?void 0:T.defaultAggregation;A&&nQ(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),O=tQ(e,t,n,b[b.length-1]);if(t.properties[O])t=t.properties[O];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),GV(t,i));let p=iQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),rQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)kV(A.node,A.schema,n.schema,A.name)}o(WV,"handleXMLNode");function oQ(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(oQ,"getMacrosPrefixes");function Dc(e,t,n,i){let r=tf(t.file,!0,i),a=[];if(!r)return;tn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:IS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=Q6(l),p=oQ(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let T=l.subElements[m],A=!g[T.name];g[T.name]=!0,WV(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:BV(T),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(Dc,"generateMacrosSchemaDefinition");function KV(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&&KV(i.subSections,t)}}o(KV,"populateTemplates");function XV(e,t,n,i){var s,l,u;let r=Pc(n.manifest,i),a=[];KV(((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=nf(p);e.definitions[m]=g;let T=xc(n.fragments,r,n.manifest,"fragment",p);if(T){g.metadata.filePath=T.relativeFilePath;let{properties:A={},definitions:b={}}=Dc(t,T,n.serviceAVT,n.logger)||{};g.properties=A;for(let O in b)e.definitions[O]||(e.definitions[O]=b[O])}}return t}o(XV,"resolveFragments");var aQ=["header","layout","sections","footer"],sQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],NS="Custom Action";function LS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=um(t.item,e),p=la(t.item),g=t.item.fullyQualifiedName.replace(`@${Sr.UIAnnotationTerms.Identification}`,`/@${Sr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,T=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:Si(t.item,r)};T[N.SchemaTag.isViewNode]=!0,T[N.SchemaTag.dataType]=to(t.item),T[N.SchemaTag.propertyIndex]=s,T[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&T[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),T[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),T[N.SchemaTag.actionType]=n,T[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${$}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(LS,"addSingleHeaderActionV4");function QV(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(QV,"addStandardHeaderAction");function qV(e,t,n,i,r,a){let s=la(e.item),l=Si(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Sr.UIAnnotationTerms.Identification}`,`/@${Sr.UIAnnotationTerms.Identification}`),g=i.definitions[u]={type:"object",$ref:`${$}${N.DefinitionName.FooterActionV4}`,description:l};g[N.SchemaTag.isViewNode]=!0,g[N.SchemaTag.actionType]=t,g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${$}${u}`}}o(qV,"addSingleFooterAction");function cQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Sr.UIAnnotationTypes.DataFieldForAction||i.$Type===Sr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(sQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(cQ,"groupByCriticality");function lQ(e,t,n,i,r){for(let a=0;a<e.length;a++)LS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(lQ,"addCriticalActions");function fQ(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&&(LS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(fQ,"addCopyAction");function uQ(e,t,n,i,r,a){for(let s of e)LS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(uQ,"addUncriticalActions");function pQ(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(pQ,"addRelatedAppsButton");function zV(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(zV,"setAnnotationPathFromEntitySetOrEntityType");function dQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?cQ(n):{};if(lQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=p0(r.entitySet),g=d0(r.entitySet);if(im(r.entitySet)&&g){let m=QV("Edit",t,i,s.length);zV(m,r.entitySet,e,"UpdateHidden")}if(p){let m=QV("Delete",t,i,s.length+1);zV(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;fQ(l,r.serviceAVT,t,e,i,u),uQ(l,r.serviceAVT,t,e,i,u),ZV(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),pQ(i)}o(dQ,"addHeaderActionCallBackV4");function gQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Sr.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];qV(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];qV(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(gQ,"addFooterActionCallBackV4");function mQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Sr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Ec(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;bt(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,Sc(e,n,t,g,i.replace(/::/g,"/"))}o(mQ,"addCustomColumnsOP");function hQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Sr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=NS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;ha(e,t,r,u,p,i);let g=a?n:N.DefinitionName.CustomActionPositionOP;bt(N.DefinitionName.CustomActionPositionOP,g,e,a);let m=a?`${N.DefinitionName.CustomActionPositionOP}<${n}>`:N.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${$}${m}`,lo(e,p,m)}o(hQ,"addTableCustomActionsOP");function ZV(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=NS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;_h(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;bt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,lo(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(ZV,"addHeaderFooterCustomActionsOP");function yQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=NS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;ha(e,t,r,l,u,i),bt(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,lo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(yQ,"addFormCustomActionsOP");function vQ(e,t,n,i,r,a,s){let l=hl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,g=bt(N.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(g[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),g.properties.columns={$ref:`${$}${l}`},g.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=$n(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=$n(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Ba(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let T={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Ac(T,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),mQ(n,a,l,t,s),hQ(n,a,l,t,s),g}o(vQ,"handleLineItem");function eM(e,t,n,i,r,a,s){s&&(s.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,t)});let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);Ua(e,l,hl(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=$n(N.DefinitionName.ObjectPageTable,t);let u=vQ(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(eM,"handleSectionTable");function TQ(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:$n(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),Ua(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=lm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=hl(n);bt(N.DefinitionName.CustomFormActionOP,p,r),yQ(r,t,p,g,s)}}o(TQ,"handleFormIdentification");function YV(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);fl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=tc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(YV,"handleHeaderFacet");function bQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let a=0;e.Actions.forEach(s=>{let l=Si(s,i),u=s.$Type.split(N.UIVOCABULARYDOT)[1],p=s.Action.replace("/","::"),g=r.properties[`${u}::${s.Action}`]={$ref:$n(N.DefinitionName.ObjectPageToolBarAction,p),description:l};g[N.SchemaTag.propertyIndex]=a,g[N.SchemaTag.annotationType]=s.$Type;let m=bt(N.DefinitionName.ObjectPageToolBarAction,dt(p),n);m[N.SchemaTag.annotationPath]=hm(s),m[N.SchemaTag.dataType]=to(s),m.properties={},a++})}return r}o(bQ,"handleChartActions");function EQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=hm(e),r[N.SchemaTag.dataType]=tc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=$n(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=$n(N.DefinitionName.ObjectPageToolBarActions,t);let s=bQ(e,t,n,i);return{chart:r,chartActions:s}}o(EQ,"handleChart");function tM(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,t)});let a=bt(N.DefinitionName.ObjectPageSectionChart,t,n);fl(e,a,t),a[N.SchemaTag.annotationPath]=hm(e),a.properties.chart.$ref=$n(N.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=EQ(e.target||e,t,n,r);return{sectionChart:a,chart:s,chartActions:l}}o(tM,"handleSectionChart");function JV(e,t,n,i,r,a){var m;let s,l,u;if(!(e!=null&&e.target)){se(r.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=e.target.PresentationVariant?e.target.PresentationVariant.Visualizations:e.target.Visualizations,g=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(p!=null&&p[0])if(p[0].$target)s=p[0].$target,l="@"+fm(`${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,r.serviceAVT),u=s;else{s=p[0],l="@"+fm(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let A=r.entityType.navigationProperties.find(O=>O.name===g).targetType,b=l==null?void 0:l.split(N.UIVOCABULARYDOT)[1];u=b&&((m=A==null?void 0:A.annotations)==null?void 0:m.UI[b])}if(s){let T=l.split(N.UIVOCABULARYDOT)[1],A=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0],b=g?`${g}::${l}`:l;if(T.startsWith(N.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionChart,b)};let{sectionChart:O,chart:R}=tM(s,b,n,void 0,e.entityType);O[N.SchemaTag.annotationPath]=e.annotationPath,fl(e,O,t),R[N.SchemaTag.annotationPath]=`/${A}/${l}`,R[N.SchemaTag.target]=A}else if(T.startsWith(N.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:$n(N.DefinitionName.ObjectPageSectionTableV4,b)};let{sectionTable:O,table:R}=eM(e,b,n,{target:u,entityType:e.entityType},r,a);O[N.SchemaTag.annotationPath]=e.annotationPath,fl(e,O,t),delete O[N.SchemaTag.isViewNode],R[N.SchemaTag.annotationPath]=`/${A}/${l}`,R[N.SchemaTag.target]=A}}}o(JV,"handleSectionPresentationVariant");function AQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(AQ,"containsCollectionFacet");function SQ(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};qs(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(SQ,"createCustomSubSectionReference");function PQ(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=bt(n,p,e),m=bt(N.DefinitionName.ObjectPageCustomSectionActions,p,e),T=bt(N.DefinitionName.CustomSectionActionOP,p,e),A=`${N.DefinitionName.ObjectPageCustomSectionActions}<${p}>`;g.properties.actions={$ref:`${$}${A}`};let b=`${N.DefinitionName.CustomSectionActionOP}<${p}>`;m.additionalProperties={$ref:`${$}${b}`},bt(N.DefinitionName.CustomSectionActionPositionOP,p,e);let O=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;T.properties.position.$ref=`${$}${O}`,T[N.SchemaTag.isViewNode]=!0,ha(e,t,i,b,A,p),lo(e,A,O)}}o(PQ,"applyCustomActionsToCustomSections");function FS(e,t,n,i,r,a,s){var m,T,A,b,O;let l=!1,u;a&&s?(l=!AQ(a),u=SQ(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},R1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Ga(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let R=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];R.properties={},PQ(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let R=(O=(b=(A=(T=(m=i.options)==null?void 0:m.settings)==null?void 0:T.content)==null?void 0:A.body)==null?void 0:b.sections)==null?void 0:O[s],U=R&&"subSections"in R?R.subSections:{};for(let W=g.oneOf.length-1;W>=0;W--){let j=g.oneOf[W];U[j.const]||(j.hidden=!0)}}}o(FS,"applyCustomSections");function xQ(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=No(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let T in e.facets)RS(a,e.facets,T,g,n,r,s,m);u&&FS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(xQ,"handleCollection");function RS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${hl(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:{JV(u,n,r,i,e,s);break}case N.FacetBase.SelectionPresentationVariant:{JV(u,n,r,i,e,s);break}case N.FacetBase.CollectionFacet:{xQ(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];eM(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{TQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{YV(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?YV(u,n,i,r,p):a===N.SectionType.Section&&tM(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{cu(u,n,i,r,a);break}default:i.properties[n]=No(r,u,n)}}o(RS,"addSection");function CQ(e,t,n){let i=jg(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)RS(e,i,a,r,t,N.SectionType.Section,n);FS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(CQ,"addSections");function IQ(e,t,n,i){let r=Ug(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)RS(e,r,s,a,t,N.SectionType.HeaderSection,i);FS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(IQ,"addHeaderSections");function OQ(e,t,n){let i=e.entityType;gm(t,i),dm(t,i,e,dQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Sr.UIAnnotationTerms.HeaderFacets}`),IQ(e,t,i,n)}o(OQ,"addHeader");function Np(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${$}${N.DefinitionName.Sections}`},!e.manifest[N.ManifestSection.ui5].routing||!e.manifest[N.ManifestSection.ui5].routing.targets)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:N.MANIFESTPATH}}),r;let a=r.definitions[N.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:N.DefinitionName.Sections};if(a[N.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[N.ManifestSection.ui5].routing.targets;if(!s)return se(e.logger,{severity:N.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:N.MANIFESTPATH,range:[N.ManifestSection.generic]}}),r;let l=Rh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(OQ(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Sr.UIAnnotationTerms.Facets}`),qs(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{XV(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}CQ(e,r,l),pm(r,e,N.FioriElementsVersion.v4,gQ),ZV(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Fo(r,aQ),r}o(Np,"generateObjectPageSchemaV4");function _S(e,t){return JSON.parse(JSON.stringify(t))}o(_S,"generateFreestyleSchemaV4");var Kr=te(le());function DS(e,t,n,i,r,a,s,l,u){let p=Io(n,r),{entitySet:g,entityType:m}=Vc(p,s,t,r),T={templateType:Kr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Np(T,e,s,l)}o(DS,"generateObjectPageInterfaceV4");function Oy(e,t,n,i,r,a,s){tn();let l=Io(i,r),{entitySet:u,entityType:p}=Vc(l,s,n,r),g={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Kr.TemplateType.ListReportObjectPageV4?Kr.v4.FE_TEMPLATE_V4_LIST_REPORT:Kr.v4.FE_TEMPLATE_V4_ALP;return ep(g,t,m,s)}o(Oy,"generateListReportInterfaceV4");function VS(e,t,n,i,r,a){let s=Io(n,a),l={templateType:e,fioriElementsVersion:Kr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return _S(l,t)}o(VS,"generateFreestyleInterfaceV4");function MS(e,t,n,i,r,a,s){let l={};if(qs(a,Kr.Features.BuildingBlocks)){let u=Io(r,s),p=us(i||[],t,n,s);l=p!=null&&p.file.fileContent?Dc(e,p,u,s):{}}return l}o(MS,"generateFPMCustomPageInterfaceV4");var wc=require("@sap-ux/vocabularies-types/vocabularies/UI"),aM=te(le());var Mc=te(le());var rM=new Map([[Mc.PageTypeV2.ListReport,Mc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Mc.PageTypeV2.ObjectPage,Mc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),nM=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"),iM=o(e=>{var t;for(let[n,i]of rM)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"),NQ=o((e,t)=>{let n="";for(let[r,a]of rM)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),oM={manifest:{path:o(()=>`sap.ui5/extends/extensions/${Mc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=iM(n);i&&(t[i]={},nM(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=NQ(s,i);e[l]||(e[l]={}),nM(r[s],e[l])}for(let s in e){let l=iM(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Fy=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),Ry=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),LQ=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),Xr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),_y=o((e,t,n)=>Xr(e)+`/@${wc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Dy=o(e=>Xr(e)+`/@${wc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ts=o((e,t,n,i)=>Xr(e)+`/@${wc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),wS=o((e,t,n,i)=>Dy(e)+`/filterFields/${i}`,"getFilterFieldPath"),ji=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),di=o((e,t,n,i,r)=>r?ji(e,t,n,i,r):Xr(e)+`/@${wc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Vy=o((e,t,n,i,r)=>di(e,t,n,i,r)+aM.QUICKVARPATH,"getQuickVariantPath"),tr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),gi=o((e,t,n,i,r)=>r?tr(e,t,n,i,r):Xr(e)+`/@${wc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Qr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?Xr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Pr=o((e,t,n,i,r)=>r?Qr(e,t,n,i,r):Xr(e)+`/@${wc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),$i=o((e,t,n,i)=>Xr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>Xr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),mi=o((e,t,n,i)=>Ry(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),My=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),mo=o((e,t,n,i)=>LQ(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),dn=o((e,t,n)=>Xr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),of=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),bs=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),xr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),af=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Ly=class Ly{};o(Ly,"ApplicationV4"),h([kt("settings")],Ly.prototype,"settings",2);var Ny=Ly,go=class go{};o(go,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],go.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],go.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],go.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],go.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],go.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],go.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],go.prototype,"path",2),h([y(oM)],go.prototype,"controllerExtensions",2);var rf=go;var ye=te(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=Yn(e,g);if(m!=null&&m.manifest){let T=m.manifest.path([i],t,p,...r);l=Oo(t,T,a,p,!0),l&&Object.keys(l).length>0&&(pl(m,l,g,e,a,r),qg(u,l,T,s))}}}o(At,"importSettingsOfObject");var xx={};Ws(xx,{ALPChart:()=>$P,ALPTable:()=>mf,ActionAfterExecutionConfiguration:()=>sx,ActionAfterExecutionConfigurationFooter:()=>rP,ActionAfterExecutionConfigurationForm:()=>cP,ActionAfterExecutionConfigurationOP:()=>Qp,ActionAfterExecutionConfigurationObjectPageHeader:()=>vP,ActionAfterExecutionConfigurationToolBarLR:()=>vx,Actions:()=>gx,AdditionalSemanticObject:()=>ox,CommonHeaderFacetSettings:()=>Ns,CommonViewSettings:()=>gf,CustomActionPosition:()=>Ex,CustomActionPositionOP:()=>ix,CustomFilterField:()=>$S,CustomFilterFieldPosition:()=>jS,CustomFooterActionOP:()=>sP,CustomFooterActionPositionOP:()=>aP,CustomFormActionOP:()=>gP,CustomHeaderAction:()=>KS,CustomHeaderActionOP:()=>EP,CustomHeaderActionPosition:()=>_p,CustomHeaderActionPositionOP:()=>bP,CustomSectionActionOP:()=>ZS,CustomSectionActionPositionOP:()=>JS,CustomTableAction:()=>Ax,CustomTableActionOP:()=>rx,FilterBar:()=>kS,FlexSettings:()=>SP,FooterActionV4:()=>oP,FormAction:()=>lP,Header:()=>HS,HeaderActions:()=>BS,HeaderSections:()=>NP,LRChartView:()=>BP,LRTableView:()=>HP,MultiTableModeV4:()=>WP,ObjectPageCustomHeaderSectionFlexSettings:()=>XS,ObjectPageCustomHeaderSectionFragment:()=>QS,ObjectPageCustomSectionActions:()=>qS,ObjectPageCustomSectionFragment:()=>cf,ObjectPageCustomSubSectionFragment:()=>zS,ObjectPageFooter:()=>tP,ObjectPageFooterActions:()=>eP,ObjectPageForm:()=>uP,ObjectPageFormActions:()=>fP,ObjectPageHeader:()=>hP,ObjectPageHeaderAction:()=>TP,ObjectPageHeaderActions:()=>mP,ObjectPageHeaderSectionAddress:()=>OP,ObjectPageHeaderSectionChart:()=>xP,ObjectPageHeaderSectionContact:()=>IP,ObjectPageHeaderSectionDataPoint:()=>CP,ObjectPageHeaderSectionForm:()=>PP,ObjectPageLayout:()=>MP,ObjectPageTable:()=>Wp,ObjectPageTableColumn:()=>bf,ObjectPageTableColumnAction:()=>JP,ObjectPageToolBarAction:()=>nx,PersonalizationType:()=>kP,PersonalizationTypeOP:()=>zP,Position:()=>fx,PositionOP:()=>ZP,QuickVariantSelectionV4:()=>jP,QuickVariantSelectionV4OP:()=>YP,RelatedApps:()=>ax,Table:()=>KP,TableColumn:()=>zy,TableColumnAction:()=>cx,TableCreationModeOP:()=>qP,TableCustomColumn:()=>px,TableCustomColumnOP:()=>ex,TableSettings:()=>Hy,TableViewExtension:()=>GP,TableViewSettings:()=>Bp,ToolBar:()=>mx,ToolBarAction:()=>Tx,ViewCustomActionPosition:()=>Sx,ViewPersonalizationType:()=>UP,ViewPosition:()=>ux,ViewTableColumn:()=>Yy,ViewTableColumnAction:()=>lx,ViewTableCustomAction:()=>Px,ViewTableCustomColumn:()=>dx,ViewToolBarAction:()=>bx,VisualFilter:()=>US,checkViewOrder:()=>XP,deleteCreationModeProperty:()=>Gp,deletePersonalizationProperty:()=>vo,exportCreationModeProperty:()=>Hp,exportPersonalization:()=>Xy,exportPersonalizationProperty:()=>yo});function FQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(FQ,"exportVisualFilterValueList");var sf=class sf{};o(sf,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],sf.prototype,"hideFilterBar",2),h([y({manifest:{path:Dy}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],sf.prototype,"initialLayout",2),h([y({manifest:{path:Dy}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],sf.prototype,"layout",2);var kS=sf,Lp=class Lp{};o(Lp,"VisualFilter"),h([y({manifest:{path:wS}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Lp.prototype,"availability",2),h([y({manifest:{path:wS,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:FQ,key:"visualFilter"}}),x({since:"1.93.0"})],Lp.prototype,"visualFilterValueList",2);var US=Lp,Fp=class Fp{};o(Fp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ts(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Fp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ts(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Fp.prototype,"placement",2);var jS=Fp,Es=class Es{};o(Es,"CustomFilterField"),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],Es.prototype,"label",2),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],Es.prototype,"property",2),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],Es.prototype,"template",2),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],Es.prototype,"required",2),h([y({manifest:{path:Ts}}),x({since:"1.77.0"})],Es.prototype,"position",2);var $S=Es;var GS=class GS{};o(GS,"HeaderActions");var BS=GS,WS=class WS{};o(WS,"Header");var HS=WS;var Rp=class Rp{};o(Rp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Rp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Rp.prototype,"placement",2);var _p=Rp,As=class As{};o(As,"CustomHeaderAction"),h([y({manifest:{path:mi}}),x({since:"1.84.0"})],As.prototype,"text",2),h([y({manifest:{path:mi}}),x({since:"1.84.0"})],As.prototype,"position",2),h([y({manifest:{path:mi}}),x({since:"1.84.0"})],As.prototype,"press",2),h([y({manifest:{path:mi},generate:zn}),x({since:"1.84.0"})],As.prototype,"visible",2),h([y({manifest:{path:mi},generate:zn}),x({since:"1.84.0"})],As.prototype,"enabled",2);var KS=As;var wy=class wy{};o(wy,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],wy.prototype,"designtime",2);var XS=wy,nr=class nr{};o(nr,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],nr.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],nr.prototype,"relativePosition",2),h([y({manifest:{path:xr},generate:oi}),x({since:"1.84.0"})],nr.prototype,"visible",2),h([y({manifest:{path:xr}}),x({since:"1.77.0"})],nr.prototype,"title",2),h([y({manifest:{path:xr}}),x({since:"1.77.0"})],nr.prototype,"subTitle",2),h([y({manifest:{path:xr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],nr.prototype,"fragmentName",2),h([y({manifest:{path:xr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],nr.prototype,"templateEdit",2),h([y({manifest:{path:xr}}),x({since:"1.81.0"})],nr.prototype,"stashed",2),h([y({manifest:{path:xr}}),x({since:"1.81.0"})],nr.prototype,"flexSettings",2),h([y({manifest:{path:xr}}),x({since:"1.81.0"})],nr.prototype,"requestGroupId",2),h([y({manifest:{path:xr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],nr.prototype,"controls",2);var QS=nr;var YS=class YS{};o(YS,"ObjectPageCustomSectionActions");var qS=YS,Ss=class Ss{};o(Ss,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>of(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],Ss.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>of(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],Ss.prototype,"relativePosition",2),h([y({manifest:{path:of}}),x({since:"1.77.0"})],Ss.prototype,"title",2),h([y({manifest:{path:of,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Ss.prototype,"fragmentName",2),h([y({manifest:{path:of,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Ss.prototype,"controls",2);var cf=Ss,Ps=class Ps extends cf{};o(Ps,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${af.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Ps.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${af.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Ps.prototype,"relativePosition",2),h([y({manifest:{path:af}}),x({since:"1.77.0"})],Ps.prototype,"title",2),h([y({manifest:{path:af,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Ps.prototype,"fragmentName",2),h([y({manifest:{path:af,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Ps.prototype,"controls",2);var zS=Ps;var Dp=class Dp{};o(Dp,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Dp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>bs(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Dp.prototype,"placement",2);var JS=Dp,xs=class xs{};o(xs,"CustomSectionActionOP"),h([y({manifest:{path:bs}}),x({since:"1.84.0"})],xs.prototype,"text",2),h([y({manifest:{path:bs}}),x({since:"1.84.0"})],xs.prototype,"position",2),h([y({manifest:{path:bs}}),x({since:"1.84.0"})],xs.prototype,"press",2),h([y({manifest:{path:bs},generate:oi}),x({since:"1.84.0"})],xs.prototype,"visible",2),h([y({manifest:{path:bs},generate:oi}),x({since:"1.84.0"})],xs.prototype,"enabled",2);var ZS=xs;var nP=class nP{};o(nP,"ObjectPageFooterActions");var eP=nP,iP=class iP{};o(iP,"ObjectPageFooter");var tP=iP;var Vp=class Vp{};o(Vp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Vp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/afterExecution","path")}})],Vp.prototype,"enableAutoScroll",2);var rP=Vp,ky=class ky{};o(ky,"FooterActionV4"),h([y({manifest:{path:mo}}),x({since:"1.84.0"})],ky.prototype,"afterExecution",2);var oP=ky,Mp=class Mp{};o(Mp,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Mp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>mo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Mp.prototype,"placement",2);var aP=Mp,Cs=class Cs{};o(Cs,"CustomFooterActionOP"),h([y({manifest:{path:mo}}),x({since:"1.84.0"})],Cs.prototype,"text",2),h([y({manifest:{path:mo}}),x({since:"1.84.0"})],Cs.prototype,"position",2),h([y({manifest:{path:mo}}),x({since:"1.84.0"})],Cs.prototype,"press",2),h([y({manifest:{path:mo},generate:oi}),x({since:"1.84.0"})],Cs.prototype,"visible",2),h([y({manifest:{path:mo},generate:oi}),x({since:"1.84.0"})],Cs.prototype,"enabled",2);var sP=Cs;var wp=class wp{};o(wp,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],wp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],wp.prototype,"enableAutoScroll",2);var cP=wp,Uy=class Uy{};o(Uy,"FormAction"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Uy.prototype,"afterExecution",2);var lP=Uy,pP=class pP{};o(pP,"ObjectPageFormActions");var fP=pP,dP=class dP{};o(dP,"ObjectPageForm");var uP=dP;var Is=class Is{};o(Is,"CustomFormActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Is.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Is.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Is.prototype,"press",2),h([y({manifest:{path:kn},generate:oi}),x({since:"1.84.0"})],Is.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),x({since:"1.84.0"})],Is.prototype,"enabled",2);var gP=Is;var yP=class yP{};o(yP,"ObjectPageHeaderActions");var mP=yP,lf=class lf{};o(lf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],lf.prototype,"editableHeaderContent",2),h([y({manifest:{path:Ry}}),x({since:"1.84.0"})],lf.prototype,"visible",2),h([y({manifest:{path:Ry}}),x({since:"1.84.0"})],lf.prototype,"anchorBarVisible",2);var hP=lf;var kp=class kp{};o(kp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>mi(t,n,i,r)+"/afterExecution","path")}})],kp.prototype,"enableAutoScroll",2);var vP=kp,jy=class jy{};o(jy,"ObjectPageHeaderAction"),h([y({manifest:{path:mi}}),x({since:"1.84.0"})],jy.prototype,"afterExecution",2);var TP=jy,AP=class AP extends _p{};o(AP,"CustomHeaderActionPositionOP");var bP=AP,Os=class Os{};o(Os,"CustomHeaderActionOP"),h([y({manifest:{path:mi}}),x({since:"1.84.0"})],Os.prototype,"text",2),h([y({manifest:{path:mi}}),x({since:"1.84.0"})],Os.prototype,"position",2),h([y({manifest:{path:mi}}),x({since:"1.84.0"})],Os.prototype,"press",2),h([y({manifest:{path:mi},generate:oi}),x({since:"1.84.0"})],Os.prototype,"visible",2),h([y({manifest:{path:mi},generate:oi}),x({since:"1.84.0"})],Os.prototype,"enabled",2);var EP=Os;var $y=class $y{};o($y,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>_y(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],$y.prototype,"designtime",2);var SP=$y,Up=class Up{};o(Up,"CommonHeaderFacetSettings"),h([y({manifest:{path:_y}}),x({since:"1.81.0"})],Up.prototype,"stashed",2),h([y({manifest:{path:_y}}),x({since:"1.81.0"})],Up.prototype,"flexSettings",2);var Ns=Up,LP=class LP extends Ns{};o(LP,"ObjectPageHeaderSectionForm");var PP=LP,FP=class FP extends Ns{};o(FP,"ObjectPageHeaderSectionChart");var xP=FP,RP=class RP extends Ns{};o(RP,"ObjectPageHeaderSectionDataPoint");var CP=RP,_P=class _P extends Ns{};o(_P,"ObjectPageHeaderSectionContact");var IP=_P,DP=class DP extends Ns{};o(DP,"ObjectPageHeaderSectionAddress");var OP=DP,VP=class VP{};o(VP,"HeaderSections");var NP=VP;var By=class By{};o(By,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],By.prototype,"sectionLayout",2);var MP=By;var Qy=te(le());var wP=te(le());var RQ=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 ho(e,t,n,i,r,a){let s=Fy(e),l=RQ(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[wP.SchemaTag.key]===(a==null?void 0:a.key)||g[wP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(ho,"getSettingsPathForLRViewsPath");function _Q(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(_Q,"fillNewlyOrderedViews");function XP(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=_Q(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(XP,"checkViewOrder");function Xy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(Xy,"exportPersonalization");function yo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(yo,"exportPersonalizationProperty");function vo(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(vo,"deletePersonalizationProperty");function QP(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(QP,"deleteView");function Hp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Hp,"exportCreationModeProperty");function Gp(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(Gp,"deleteCreationModeProperty");function sM(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(sM,"importPersonalization");function cM(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(cM,"determineIndexOfView");var ff=class ff{};o(ff,"PersonalizationType"),h([y({manifest:{path:di,export:yo,delete:vo}})],ff.prototype,"column",2),h([y({manifest:{path:di,export:yo,delete:vo}})],ff.prototype,"sort",2),h([y({manifest:{path:di,export:yo,delete:vo}})],ff.prototype,"filter",2);var kP=ff,uf=class uf{};o(uf,"ViewPersonalizationType"),h([y({manifest:{path:ji,export:yo,delete:vo}})],uf.prototype,"column",2),h([y({manifest:{path:ji,export:yo,delete:vo}})],uf.prototype,"sort",2),h([y({manifest:{path:di,export:yo,delete:vo}})],uf.prototype,"filter",2);var UP=uf,pf=class pf{};o(pf,"QuickVariantSelectionV4"),h([y({manifest:{path:Vy}})],pf.prototype,"paths",2),h([y({manifest:{path:Vy}})],pf.prototype,"hideTableTitle",2),h([y({manifest:{path:Vy}})],pf.prototype,"showCounts",2);var jP=pf,ir=class ir{};o(ir,"TableSettings"),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ir.prototype,"type",2),h([y({manifest:{path:di,import:sM,export:Xy}}),x({since:"1.86.0"})],ir.prototype,"personalization",2),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],ir.prototype,"selectionMode",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],ir.prototype,"selectAll",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],ir.prototype,"selectionLimit",2),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],ir.prototype,"enableExport",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],ir.prototype,"quickVariantSelection",2),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],ir.prototype,"condensedTableLayout",2),h([y({manifest:{path:di}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ir.prototype,"hierarchyQualifier",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ir.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:di}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],ir.prototype,"disableCopyToClipboard",2);var Hy=ir,Gy=class Gy{};o(Gy,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:QP}})],Gy.prototype,"annotationPath",2);var $P=Gy,kc=class kc{};o(kc,"CommonViewSettings"),h([y({manifest:{path:ho,delete:zs}})],kc.prototype,"key",2),h([y({manifest:{path:Fy,import:cM,export:o((t,n)=>{XP(t,n)},"export"),delete:QP}})],kc.prototype,"index",2),h([y({manifest:{path:ho,delete:zs}})],kc.prototype,"annotationPath",2),h([y({manifest:{path:ho}})],kc.prototype,"entitySet",2);var gf=kc,rr=class rr extends gf{};o(rr,"TableViewSettings"),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],rr.prototype,"type",2),h([y({manifest:{path:ji,import:sM}}),x({since:"1.86.0"})],rr.prototype,"personalization",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],rr.prototype,"selectionMode",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],rr.prototype,"selectAll",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],rr.prototype,"selectionLimit",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],rr.prototype,"enableExport",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"})],rr.prototype,"quickVariantSelection",2),h([y({manifest:{path:ji}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],rr.prototype,"condensedTableLayout",2),h([y({manifest:{path:ji}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:ji}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:ji}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"disableCopyToClipboard",2);var Bp=rr;function DQ(e){return Bp}o(DQ,"getTableViewSettings");var jp=class jp extends Bp{};o(jp,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],jp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],jp.prototype,"initialLoad",2);var mf=jp,Wy=class Wy extends gf{};o(Wy,"LRChartView"),h([y({manifest:{path:ho},generate:zn})],Wy.prototype,"visible",2);var BP=Wy,df=class df extends DQ(gf){};o(df,"LRTableView"),h([y({manifest:{path:ho}})],df.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:ho}})],df.prototype,"entitySet",2),h([y({manifest:{path:ho},generate:zn})],df.prototype,"visible",2);var HP=df,Ls=class Ls{};o(Ls,"TableViewExtension"),h([y({manifest:{path:ho}})],Ls.prototype,"key",2),h([y({manifest:{path:Fy,import:cM,export:o((t,n)=>{XP(t,n)},"export"),delete:QP}})],Ls.prototype,"index",2),h([y({manifest:{path:ho}})],Ls.prototype,"label",2),h([y({manifest:{path:ho}})],Ls.prototype,"template",2),h([y({manifest:{path:ho},generate:zn})],Ls.prototype,"visible",2);var GP=Ls,Ky=class Ky{};o(Ky,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],Ky.prototype,"showCounts",2);var WP=Ky,$p=class $p extends Hy{};o($p,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:zs}})],$p.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],$p.prototype,"initialLoad",2);var KP=$p;var hf=class hf{};o(hf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Hp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Gp(t,r)},"delete")}})],hf.prototype,"inlineCreationRowsHiddenInEditMode",2);var qP=hf,yf=class yf{};o(yf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:yo,delete:vo}})],yf.prototype,"filter",2);var zP=yf,vf=class vf{};o(vf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+Qy.QUICKVARPATH,"path")}})],vf.prototype,"showCounts",2);var YP=vf,hi=class hi{};o(hi,"ObjectPageTable"),h([y({manifest:{path:dn}}),x({since:"1.84.0"})],hi.prototype,"type",2),h([y({manifest:{path:dn,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"})],hi.prototype,"creationMode",2),h([y({manifest:{path:dn,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:Xy}}),x({since:"1.86.0"})],hi.prototype,"personalization",2),h([y({manifest:{path:dn}}),x({since:"1.84.0"})],hi.prototype,"selectionMode",2),h([y({manifest:{path:dn}}),x({since:"1.84.0"})],hi.prototype,"selectAll",2),h([y({manifest:{path:dn}}),x({since:"1.84.0"})],hi.prototype,"selectionLimit",2),h([y({manifest:{path:dn}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],hi.prototype,"enableExport",2),h([y({manifest:{path:dn}}),x({since:"1.84.0"})],hi.prototype,"quickVariantSelection",2),h([y({manifest:{path:dn}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],hi.prototype,"condensedTableLayout",2),h([y({manifest:{path:dn}}),x({since:"1.86.0"})],hi.prototype,"enableFullScreen",2),h([y({manifest:{path:dn}}),x({since:"1.84.0"})],hi.prototype,"enablePaste",2),h([y({manifest:{path:dn}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],hi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:dn}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],hi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:dn}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],hi.prototype,"disableCopyToClipboard",2);var Wp=hi;var Kp=class Kp{};o(Kp,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>$i(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Kp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>$i(t,n,i,r)+"/afterExecution","path")}})],Kp.prototype,"enableAutoScroll",2);var Qp=Kp,Tf=class Tf{};o(Tf,"ObjectPageTableColumn"),h([y({manifest:{path:$i}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Tf.prototype,"width",2),h([y({manifest:{path:$i}}),x({since:"1.85.0"})],Tf.prototype,"availability",2),h([y({manifest:{path:$i}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Tf.prototype,"widthIncludingColumnHeader",2);var bf=Tf,tx=class tx extends bf{};o(tx,"ObjectPageTableColumnAction");var JP=tx,Xp=class Xp{};o(Xp,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>$i(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Xp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>$i(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Xp.prototype,"placement",2);var ZP=Xp,Go=class Go{};o(Go,"TableCustomColumnOP"),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],Go.prototype,"position",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],Go.prototype,"header",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Go.prototype,"width",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],Go.prototype,"template",2),h([y({manifest:{path:$i}}),x({since:"1.86.0"})],Go.prototype,"horizontalAlign",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],Go.prototype,"availability",2),h([y({manifest:{path:$i}}),x({since:"1.85.0"})],Go.prototype,"properties",2);var ex=Go;var qy=class qy{};o(qy,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],qy.prototype,"enableOnSelect",2);var nx=qy,qp=class qp{};o(qp,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],qp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],qp.prototype,"placement",2);var ix=qp,Pa=class Pa{};o(Pa,"CustomTableActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Pa.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Pa.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Pa.prototype,"press",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Pa.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:oi}),x({since:"1.84.0"})],Pa.prototype,"visible",2),h([y({manifest:{path:kn},generate:oi}),x({since:"1.84.0"})],Pa.prototype,"enabled",2);var rx=Pa;var Ef=class Ef{};o(Ef,"AdditionalSemanticObject"),h([y({manifest:{path:My}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],Ef.prototype,"allowedActions",2),h([y({manifest:{path:My}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Ef.prototype,"unavailableActions",2),h([y({manifest:{path:My}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],Ef.prototype,"mapping",2);var ox=Ef,zp=class zp{};o(zp,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],zp.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],zp.prototype,"additionalSemanticObjects",2);var ax=zp;var Yp=class Yp{};o(Yp,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Yp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/afterExecution","path")}})],Yp.prototype,"enableAutoScroll",2);var sx=Yp,Af=class Af{};o(Af,"TableColumn"),h([y({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Af.prototype,"width",2),h([y({manifest:{path:gi}}),x({since:"1.85.0"})],Af.prototype,"availability",2),h([y({manifest:{path:gi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Af.prototype,"widthIncludingColumnHeader",2);var zy=Af,Sf=class Sf{};o(Sf,"ViewTableColumn"),h([y({manifest:{path:tr}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Sf.prototype,"width",2),h([y({manifest:{path:tr}}),x({since:"1.85.0"})],Sf.prototype,"availability",2),h([y({manifest:{path:gi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Sf.prototype,"widthIncludingColumnHeader",2);var Yy=Sf,Jy=class Jy extends zy{};o(Jy,"TableColumnAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Jy.prototype,"afterExecution",2);var cx=Jy,Zy=class Zy extends Yy{};o(Zy,"ViewTableColumnAction"),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Zy.prototype,"afterExecution",2);var lx=Zy,Jp=class Jp{};o(Jp,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Jp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>gi(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Jp.prototype,"placement",2);var fx=Jp,Zp=class Zp{};o(Zp,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>tr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Zp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>tr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],Zp.prototype,"placement",2);var ux=Zp,Wo=class Wo{};o(Wo,"TableCustomColumn"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Wo.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Wo.prototype,"header",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Wo.prototype,"width",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Wo.prototype,"template",2),h([y({manifest:{path:gi}}),x({since:"1.86.0"})],Wo.prototype,"horizontalAlign",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Wo.prototype,"availability",2),h([y({manifest:{path:gi}}),x({since:"1.85.0"})],Wo.prototype,"properties",2);var px=Wo,Ko=class Ko{};o(Ko,"ViewTableCustomColumn"),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Ko.prototype,"position",2),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Ko.prototype,"header",2),h([y({manifest:{path:tr}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ko.prototype,"width",2),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Ko.prototype,"template",2),h([y({manifest:{path:tr}}),x({since:"1.86.0"})],Ko.prototype,"horizontalAlign",2),h([y({manifest:{path:tr}}),x({since:"1.84.0"})],Ko.prototype,"availability",2),h([y({manifest:{path:tr}}),x({since:"1.85.0"})],Ko.prototype,"properties",2);var dx=Ko;var hx=class hx{};o(hx,"Actions");var gx=hx,yx=class yx{};o(yx,"ToolBar");var mx=yx;var ed=class ed{};o(ed,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Pr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ed.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Pr(t,n,i,r,a)+"/afterExecution","path")}})],ed.prototype,"enableAutoScroll",2);var vx=ed,td=class td{};o(td,"ToolBarAction"),h([y({manifest:{path:Pr}})],td.prototype,"enableOnSelect",2),h([y({manifest:{path:Pr}})],td.prototype,"afterExecution",2);var Tx=td,nd=class nd{};o(nd,"ViewToolBarAction"),h([y({manifest:{path:Qr}})],nd.prototype,"enableOnSelect",2),h([y({manifest:{path:Qr}})],nd.prototype,"afterExecution",2);var bx=nd,id=class id{};o(id,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Pr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Pr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"placement",2);var Ex=id,xa=class xa{};o(xa,"CustomTableAction"),h([y({manifest:{path:Pr}}),x({since:"1.84.0"})],xa.prototype,"text",2),h([y({manifest:{path:Pr}}),x({since:"1.84.0"})],xa.prototype,"position",2),h([y({manifest:{path:Pr}}),x({since:"1.84.0"})],xa.prototype,"press",2),h([y({manifest:{path:Pr}}),x({since:"1.84.0"})],xa.prototype,"requiresSelection",2),h([y({manifest:{path:Pr},generate:zn}),x({since:"1.84.0"})],xa.prototype,"visible",2),h([y({manifest:{path:Pr},generate:zn}),x({since:"1.84.0"})],xa.prototype,"enabled",2);var Ax=xa,rd=class rd{};o(rd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Qr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Qr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],rd.prototype,"placement",2);var Sx=rd,Ca=class Ca{};o(Ca,"ViewTableCustomAction"),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],Ca.prototype,"text",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],Ca.prototype,"position",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],Ca.prototype,"press",2),h([y({manifest:{path:Qr}}),x({since:"1.84.0"})],Ca.prototype,"requiresSelection",2),h([y({manifest:{path:Qr},generate:zn}),x({since:"1.84.0"})],Ca.prototype,"visible",2),h([y({manifest:{path:Qr},generate:zn}),x({since:"1.84.0"})],Ca.prototype,"enabled",2);var Px=Ca;var Nx={};Ws(Nx,{FreestylePage:()=>Ix,ListReport:()=>Cr,ObjectPage:()=>To});function VQ(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(VQ,"deleteAllALPViews");function MQ(){}o(MQ,"doNotExport");function wQ(){}o(wQ,"doNotImport");var Cr=class{};o(Cr,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:wQ,export:MQ,delete:VQ}})],Cr.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Cr.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Cr.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}})],Cr.prototype,"defaultTemplateAnnotationPath",2),h([kt("header")],Cr.prototype,"header",2),h([kt("fe::FilterBar")],Cr.prototype,"filterBar",2),Cr=h([kr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Cr);var Cx=te(le());var To=class{};o(To,"ObjectPage"),h([kt("header")],To.prototype,"header",2),h([kt("layout")],To.prototype,"layout",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],To.prototype,"variantManagement",2),h([kt("sections")],To.prototype,"sections",2),To=h([kr({id:`${Cx.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Cx.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],To);var Ox=class Ox{};o(Ox,"FreestylePage");var Ix=Ox;var ev=te(le());var kQ={ALPTableView:mf},UQ={ALPTableView:mf},jQ={Table:Wp,TableColumn:bf,ObjectPageCustomSectionView:cf,ActionAfterExecutionConfiguration:Qp},$Q={[ev.PageTypeV2.AnalyticalListPage]:kQ,[ev.PageTypeV2.ListReport]:UQ,[ev.PageTypeV2.ObjectPage]:jQ},Lx=class Lx extends wl{constructor(){super(xx,Nx,$Q)}};o(Lx,"MetadataInstanceFactoryV4");var Ia=Lx;var Fx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Rx(e,t,n,i,r,a,s){var g,m,T,A,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${Fx.UIAnnotationTerms.LineItem}`?a:ye.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let R in p.properties){let W=l[u].properties[R].$ref.split($)[1].split("<")[0];e.columns[R]=n.createInstance(i,W);let j=s||a;At(e.columns[R],t.manifest,l[W],r,[R,j],j,t.logger),Ro(e.columns,R)}Ro(e,"columns")}else{let R=(O=(b=(A=(T=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:T[r])==null?void 0:A.options)==null?void 0:b.settings)==null?void 0:O.views;(!R||R.paths.length<1)&&se(t.logger,{severity:ye.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(Rx,"transferColumns");function BQ(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ye.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=yn(u.$ref),g=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,g),At(t.visualFilters[l],e.manifest,a[p],r,[l])}}Ro(t,"visualFilters")}}o(BQ,"importVisualFilters");function HQ(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[ye.DefinitionName.LineItems,`${ye.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${Fx.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ye.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let T=yn(m.$ref),A=T.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[T],r,[g,u]),Ro(t.toolBar.actions,g)}}}o(HQ,"importActions");function _x(e,t,n,i,r,a=ye.DefinitionName.LineItems,s){let l=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,At(u.toolBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ToolBarLR],r,[]),HQ(e,u,n,i,r,a,s),Ro(u.toolBar,"actions"),Ro(u,"toolBar")}o(_x,"transferToolBar");function lM(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ye.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(lM,"determineTargetAnnotationOfView");function GQ(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ye.DefinitionName.ALPChart);let s=a[ye.DefinitionName.ALPChart],l=s[ye.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[ye.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ye.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[ye.DefinitionName.ViewChartToolBar],r,[]);let u=a[ye.DefinitionName.ALPTable][ye.SchemaTag.annotationPath];if(u){let p=a[ye.DefinitionName.ALPTable],g=t.table=n.createInstance(i,ye.DefinitionName.ALPTable);_x(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[ye.SchemaTag.key],m]),Rx(g,e,n,i,r,void 0,m)}}o(GQ,"importALPViews");function WQ(e){let t;return e.indexOf(ye.DefinitionName.LRTableView)>-1?t=ye.DefinitionName.LRTableView:e.indexOf(ye.DefinitionName.LRChartView)>-1?t=ye.DefinitionName.LRChartView:e===ye.DefinitionName.TableViewExtension&&(t=ye.DefinitionName.TableViewExtension),t}o(WQ,"getViewTypeByDefinition");function KQ(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ye.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[ye.DefinitionName.MultiTableModeV4],r,[]);let l=s[ye.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][ye.SchemaTag.propertyIndex]-g[1][ye.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=WQ(g),T=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,b=lM(s,g,A);if(At(T,e.manifest,s[g],r,[p[0],b]),m===ye.DefinitionName.LRTableView){let O=`${ye.DefinitionName.LineItemsOfView}::${p[0]}`;_x(e,T,n,i,r,O,b),Rx(T,e,n,i,r,O,b)}Object.keys(T).length===0&&delete a[p[0]]}Ro(t.table,"views")}o(KQ,"importLRViews");function XQ(e,t,n,i,r){let a=ye.DefinitionName.HeaderActions,s=ye.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=yn(p.$ref),m=e.definitions[g],T=yn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(ye.PageTypeV4.ObjectPage,T),At(t[s].actions[u],i,e.definitions[T],r,[u.replace("/","??")]),Ro(t.header,"actions"),Ro(t,"header")}}}}o(XQ,"transferHeaderActions");function QQ(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ye.DefinitionName.SelectionFields,ye.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!==$+ye.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ye.PageTypeV4.ListReport,ye.DefinitionName.CustomFilterField),p=l.$ref.split($)[1];At(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}o(QQ,"importCustomFilterFields");function qQ(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ye.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.Header],r,[]),XQ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ye.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.FilterBar],r,[]),BQ(e,t.filterBar,n,i,r),QQ(e,t.filterBar,n,r),a===ye.SchemaType.ListReport){let s=ye.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split($)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split($)[1]),t.table=n.createInstance(i,ye.DefinitionName.Table);let p=lM(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),_x(e,t,n,i,r,u),Rx(t.table,e,n,i,r,u,p),KQ(e,t,n,i,r)}else a===ye.SchemaType.AnalyticalListPage&&GQ(e,t,n,i,r)}o(qQ,"addSettings");function Uc(e,t){if(tn(),!e.jsonSchema)return;if(!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let n=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let i=new Ia,r=i.createPageInstance(ye.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=cb(s);if("name"in s&&(l===ye.PageTypeV4.ListReport||l===ye.PageTypeV4.AnalyticalListPage)){qQ(e,r,i,ye.PageTypeV4.ListReport,a,t);break}}return r}o(Uc,"createListReportConfig");var Te=te(le()),jc=require("@sap-ux/vocabularies-types/vocabularies/UI");function zQ(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(zQ,"isBoolean");function YQ(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(YQ,"isNumber");function JQ(e,t){let n=e.toString();return zQ(n,t)?n==="true":YQ(n,t)?parseFloat(n):e}o(JQ,"convertValue");function ZQ(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=JQ(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(ZQ,"importProperty");function fM(e,t,n){let i,r=tf(e.file,!1,n);if(r){let a=xy(r);i={},_c({fullSchema:t,schema:t,element:a,contextPath:[],config:i},ZQ)}return i}o(fM,"convertXmlFileToConfig");function tv(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=us(t||[],r,n,a),l;return s&&(l=fM(s,i,e.logger)),l}o(tv,"createCustomPageConfig");function od(e,t){var T;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=nf(t),u=(T=r.definitions)==null?void 0:T[l];if(!r||!u)return;let p=Pc(i,a),g=xc(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=fM(g,A,s)}return m}o(od,"createCustomFragmentConfig");function Dx(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(Dx,"getManifestId");function ad(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(ad,"getDefinitionId");function eq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[ad(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(Te.DefinitionName.CustomColumnOP)>-1?s=Te.DefinitionName.CustomColumnOP:s=Te.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(Te.PageTypeV4.ObjectPage,s);At(g,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],a),Object.keys(g).length>0&&(n[i].table.columns[u]=g)}}}o(eq,"fillTableColumnsInConfig");function dM(e,t,n,i,r,a){if(typeof t=="object")for(let s in t.properties){let l=t.properties[s];if(typeof l=="object"&&l.$ref){let u=yn(l.$ref),p=u.split("<")[0],g;p.includes(Te.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(Te.PageTypeV4.ObjectPage,p),At(g[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],a),Object.keys(g[s]).length===0&&delete g[s]}}}o(dM,"fillSectionActionsInConfig");function tq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${Te.DefinitionName.ObjectPageSectionForm}<${ad(a)}>`].properties.form.$ref.split($)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split($)[1],m=e.jsonSchema.definitions[g];for(let T in m.properties){let A=m.properties[T],b=yn(A.$ref),O=e.jsonSchema.definitions[b];if(O.annotationType===jc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let R=yn(O.$ref)||b.split("<")[0];i[n].form.actions[T]=r.createInstance(Te.PageTypeV4.ObjectPage,R),At(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[R],e.routingId,[T.replace("/","??")],a),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}o(tq,"fillFormActionsInConfig");function uM(e,t,n,i,r,a){var u;let s=a||Dx(i,!1,jc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageTable);let p=`${Te.DefinitionName.ObjectPageTable}<${a?ad(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${Te.DefinitionName.Actions}<${ad(s)}>`];dM(e,g,i,n,r,s),eq(e,l,n,i,r,s)}}o(uM,"fillTableInConfig");function nq(e,t,n,i,r){var l;let a=Dx(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageForm,{actions:{}}),tq(e,s,i,n,r,a))}o(nq,"fillFormInConfig");function iq(e,t,n,i,r,a){let s=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split($)[1];if(At(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],a),s.fragmentName){let u=od(e,s.fragmentName);s.controls=u}n[i]=s}o(iq,"fillCustomSubSectionInConfig");function gM(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let T=t[m],A=m;if(m.includes(jc.UIAnnotationTerms.PresentationVariant)&&((s=T.$ref)!=null&&s.startsWith($+Te.DefinitionName.ObjectPageSectionTableV4))){let b=T.$ref.split($)[1];A=Dx(b,!0,jc.UIAnnotationTerms.LineItem),uM(e,n,i,m,r,A)}else(l=T.$ref)!=null&&l.startsWith($+Te.DefinitionName.ObjectPageSectionTableV4)?uM(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},gM(e,T.properties.subsections.properties,n,i[m].subsections,r,m)):(u=T.$ref)!=null&&u.startsWith($+Te.DefinitionName.ObjectPageSectionForm)&&((p=T.$ref)!=null&&p.includes(`@${jc.UIAnnotationTerms.FieldGroup}::`))?nq(e,n,i,m,r):(g=T.$ref)!=null&&g.startsWith($+Te.DefinitionName.ObjectPageCustomSubSectionFragment)&&iq(e,T,i,m,r,a)}}o(gM,"fillSectionsInConfig");function rq(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(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${Te.DefinitionName.ObjectPageCustomSectionActions}<${ad(l)}>`];dM(e,m,l,p,i,l)}let g=u.template;if(g){let m=od(e,g);p.controls=m}n.sections[l]=p}}o(rq,"fillCustomSectionsInConfig");function oq(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(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let T=od(e,g);p.controls=T}let m=u.templateEdit;if(m){let T=od(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}o(oq,"fillCustomHeaderSectionsInConfig");function aq(e,t,n,i,r){var s,l;let a=e.definitions[Te.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($)[1];m&&(p=e.definitions[m],g=m.split("<")[0]),(g==null?void 0:g.includes(Te.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(Te.PageTypeV4.ObjectPage,g),At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(Te.FacetTitlePrefix)[1]))}}}o(aq,"fillHeaderFacets");function sq(e,t,n,i,r,a,s){let l=yn(e.$ref),u=t.definitions[l],p=yn(u.$ref||e.$ref),g=n.createInstance(Te.PageTypeV4.ObjectPage,p);if(g){let m=i[r]=g;At(m,a,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}o(sq,"importActionSettingsOfReference");function pM(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&&sq(g,e,n,u,p,i,r)}}}o(pM,"fillHeaderFooterActions");function cq(e,t,n){var a,s;let i=n.createPageInstance(Te.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[Te.DefinitionName.ObjectPageLayout],e.routingId,[]),At(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(a=r.content)==null?void 0:a.body)!=null&&s.sections)&&e.jsonSchema.definitions[Te.DefinitionName.Sections]&&(i.sections={},gM(e,e.jsonSchema.definitions[Te.DefinitionName.Sections].properties,r,i.sections,n)),rq(e,r,i,n),aq(e.jsonSchema,i,n,e.manifest,e.routingId),oq(e,r,i,n),pM(e.jsonSchema,i,n,e.manifest,e.routingId,Te.DefinitionName.ObjectPageHeaderActions,Te.PropertyName.header),pM(e.jsonSchema,i,n,e.manifest,e.routingId,Te.DefinitionName.FooterActions,Te.PropertyName.footer)),i}o(cq,"fillObjectPageConfig");function nv(e){if(tn(),!e.manifest[Te.ManifestSection.ui5]||!e.manifest[Te.ManifestSection.ui5].routing){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOROUTING"),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5]}});return}let t=e.manifest[Te.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:Te.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:Te.MANIFESTPATH,range:[Te.ManifestSection.ui5,"routing"]}});return}let i=new Ia;return cq(e,n,i)}o(nv,"createObjectPageConfigV4");var Xe=te(le());var Vx=[],iv={};function lq(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(lq,"routesSorter");function Mx(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(Mx,"resolveTarget");function fq(e){let t={};e=e.concat().sort(lq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=Mx(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(fq,"populateAssociations");function uq(e,t,n){let i;return e.name?e.name===Xe.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Xe.PageTypeV4.FPMCustomPage:e.name.endsWith(Xe.PageTypeV4.ListReport)||e.name.endsWith(Xe.PageTypeV4.AnalyticalListPage)?i=Xe.PageTypeV4.ListReport:e.name.endsWith(Xe.PageTypeV4.ObjectPage)?i=Xe.PageTypeV4.ObjectPage:i=Xe.PageTypeV4.CustomPage:"viewId"in e?i=Xe.PageTypeV4.CustomPage:(se(t,{severity:Xe.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Xe.MANIFESTPATH,range:[`${Xe.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Xe.ViewTypes&&"viewName"in e&&(i=Xe.PageTypeV4.CustomPage)),i}o(uq,"determinePageType");function pq(e){let t=e.target.viewId||e.target.id,n=_t(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Xe.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===Xe.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=nv(r)}else if(e.page.pageType===Xe.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=tv(r)}else if(e.templateType===Xe.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Xe.SchemaType.ListReport)}else if(e.templateType===Xe.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Uc(r,Xe.SchemaType.AnalyticalListPage)}else if(e.templateType===Xe.TemplateType.FreestylePageV4&&e.page.pageType===Xe.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ou(e.target)===Xe.TemplateType.AnalyticalListPageV4?Xe.SchemaType.AnalyticalListPage:Xe.SchemaType.ListReport;e.page.config=Uc(r,s)}}}o(pq,"convertSettingsToConfig");function dq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");Vx.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");Vx.push(t[t.length-1])}}o(dq,"updateUnhandledControllers");function gq(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(gq,"setVariantManagmentAndNavigation");function mq(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}=Vc(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(mq,"setEntitySetEntityTypeContextPath");function hq(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([Xe.PageTypeV4.CustomPage,Xe.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...a&&{name:a},...e.name&&{template:e.name},...e.viewType&&{viewType:e.viewType}}}}o(hq,"evaluateCustomPageSettings");function yq(e,t,n,i){let r=e.targets[t],a=uq(r,i.logger,t),s={pageType:a};if(mq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),iv[t]&&iv[t].indexOf(".")!==-1){let p=iv[t].split(".");s.navigationProperty=p[p.length-1]}hq(r,s,a),gq(r,s),dq(r);let l=e.routes.find(p=>(p==null?void 0:p.target)&&p.target.indexOf(t)>-1);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:a,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};pq(u)}o(yq,"getSinglePageAndConfig");function mM(e){let t={},n=e.manifest[Xe.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Xe.LogSeverity.Error,message:i,location:{path:Xe.MANIFESTPATH,range:[Xe.ManifestSection.ui5]}}),t}iv=fq(n.routes||[]);for(let i in n.targets)yq(n,i,t,e);return t}o(mM,"getPagesAndConfigs");function hM(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 Mx(t?t.target:e.routes[0].target)}else return}o(hM,"getHome");function yM(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(yM,"getSettings");function xf(e,t){let n=e[Xe.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(xf,"getPages");var wx=class wx extends Ka{constructor(t){tn();let n=new rf,i=_t(Xe.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,hM(t.manifest[Xe.ManifestSection.ui5].routing),mM(t),{...yM(t.manifest[Xe.ManifestSection.ui5].routing),...n}),this.unhandledControllers=Vx}};o(wx,"V4AppProvider");var Pf=wx;var vM=require("fs"),$c=require("path"),TM=te(le()),sd=te(le());var bM=o((e,t,n=__dirname)=>{let i;switch(t){case sd.SchemaType.Application:{i=`${sd.SchemaType.Application}${e.toUpperCase()}.json`;break}case sd.SchemaType.FPMCustomPage:{i=`${sd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,$c.join)(n,"schemas",e,i);if(n.endsWith((0,$c.join)("specification","packages","specification")))return(0,$c.join)(n,"dist","schemas",e,i);if(n.endsWith((0,$c.join)("src","specification")))return(0,$c.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,$c.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),vq=o(async e=>new Promise((t,n)=>{(0,vM.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),rv=o(async(e,t)=>{try{let n=bM(e||TM.FioriElementsVersion.v4,t,__dirname);return await vq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Tq(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:i.push(ue.SchemaType.FreestylePage);break}for(let r of i){let a=_t(r);n[a.filename]=await rv(t,r)}return n}o(Tq,"getGenericSchemas");function AM(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ri(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(AM,"getAnnotationsForUi");function cd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(cd,"getEntitySetByEntitySetName");function bq(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(bq,"resolveNavigationProperty");function Vc(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}=bq(r,e):se(i,{severity:ue.LogSeverity.Error,message:q.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:ue.MANIFESTPATH}}),n&&!a&&se(i,{severity:ue.LogSeverity.Error,message:q.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:a,entitySet:s}}o(Vc,"getEntityTypeEntitySetFromContextPath");function EM(e,t,n){let i=Yu(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=cd(a,e.serviceAVT);s||se(e.logger,{severity:ue.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=_t(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=_t(ue.SchemaType.ObjectPage);n[l.filename]=ld(e,t[u.filename])}}o(EM,"generateObjectPageSchemasV2");function Eq(e,t,n){var l,u;let i=xf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=xf(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:T,entityType:A}=Vc(s,m,g,e.logger);e.entityType=A,e.entitySet=T;let b=_t(ue.SchemaType.ListReport,p),O=_t(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=ou(a[p])),n[b.filename]=ep(e,t[O.filename],a[p].name,m)}}o(Eq,"generateListReportSchemasV4");function Aq(e,t,n){var r;let i=Yu(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=cd(s,e.serviceAVT);let l=_t(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=_t(ue.SchemaType.ListReport);t[l.filename]=fd(e,n[u.filename])}}o(Aq,"generateAppSchemaV2LR");function Sq(e,t,n){var a,s;let i=xf(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}=Vc(r,p,u);e.entitySet=m,e.entityType=g;let T=_t(ue.SchemaType.ObjectPage,l),A=_t(ue.SchemaType.ObjectPage),b=_t(ue.SchemaType.FPMCustomPage);n[T.filename]=Np(e,t[A.filename],p,t[b.filename])}}o(Sq,"generateObjectPageSchemasV4");function Pq(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)Aq(e,r,t),EM(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=Yu(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=cd(u,e.serviceAVT);let p=_t(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=_t(ue.SchemaType.AnalyticalListPage);r[p.filename]=ud(e,t[g.filename])}EM(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=_t(ue.SchemaType.OverviewPage),l=_t(ue.SchemaType.OverviewPage);r[s.filename]=pd(t[l.filename],e.manifest)}return{...t,...r}}o(Pq,"generateAppSchemasV2");function xq(e,t,n){if(!qs(e.featureToggles,ue.Features.BuildingBlocks))return;let i=xf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=us(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=_t(ue.SchemaType.FPMCustomPage,void 0,l),p=_t(ue.SchemaType.FPMCustomPage);n[u.filename]=Dc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(xq,"generateCustomPageSchemasV4");function Cq(e,t,n){let i={};return n&&(Eq(e,t,i),Sq(e,t,i),xq(e,t,i)),{...t,...i}}o(Cq,"generateAppSchemasV4");async function SM(e,t,n){let i=await Tq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?Cq(e,i,t):Pq(e,i,t,n)}o(SM,"generateAppSchemas");function Iq(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new Oh(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new Pf(e);break;case ue.TemplateType.OverviewPageV2:t=new Fh(e);break;default:t=new Pf(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(Iq,"importConfigs");function PM(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(PM,"getFileList");async function kx(e){var b,O;tn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new lu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=db(t),p=Io(n,i),g=AM(p),m=gb(t,u,i),A=await SM({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return PM(A)}o(kx,"importProjectSchema");async function Ux(e){var W,j;tn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new lu().doesUi5VersionFitDistTags((j=(W=t["sap.ui5"])==null?void 0:W.dependencies)==null?void 0:j.minUI5Version,i);let p=db(t),g=VR(t),m=Io(n,i),T=gb(t,p,i),A={templateType:T,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=AM(m),O=await SM(A,b,T),U=Iq({manifest:t,flexChanges:s,appSchemas:O,templateType:T,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return PM(O,U)}o(Ux,"importProjectSchemaAndConfig");var Oq=["header","sections","footer"];function Nq(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(Nq,"addFlexChangeForSection");function Lq(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===bo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=um(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${bo.UIAnnotationTerms.Identification}`,`/@${bo.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:`${$}${g}`}}})}o(Lq,"addHeaderActionCallBackV2");function Fq(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===bo.UIAnnotationTypes.DataFieldForAction){let a=la(r).split("::").splice(1).join("::"),s=Si(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${bo.UIAnnotationTerms.Identification}`,`/@${bo.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:`${$}${l}`}}})}o(Fq,"addFooterActionCallBackV2");function Rq(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=[],T=r==null?void 0:r.entityTypes.find(b=>b.name===i),A=vc(t[oe.ManifestSection.generic].pages,n,m);return gl(e,T,A,t,l,p,g,a.ID),p}o(Rq,"ensureCustomColumnDefinitionExists");function gd(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&Nq(e,t,"visible",n)}o(gd,"addAppSchemaDefinition");function _q(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(_q,"addSectionReference");function dd(e,t,n,i){let r=dt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+t,i.definitions[r].properties.toolBar.$ref=`${$}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=`${$}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=`${$}QuickVariant<${t}>`,Ba(n.entityType,i,`QuickVariant<${t}>`)}o(dd,"addTableDefinition");function Dq(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]=No(n,i,t);let u=n.definitions[l];gd(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,Ua(i,u,t),dd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),dd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),dd("ObjectPageGridTable",t,i,n),dd("ObjectPageTreeTable",t,i,n),dd("ObjectPageAnalyticalTable",t,i,n);let p,g=y0(i.entityType,e.serviceAVT);g&&(p=Rq(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let T=r[m];T.base===oe.FacetBase.LineItem&&(T.ID===s||m.includes(s))&&dl(!0,n,T.target,T.entityType,T.ID||m,p)}}o(Dq,"handleLineItem");function Vq(e,t,n,i,r,a=!1){e.definitions[t]=No(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";gd(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(Vq,"handleSubSection");function Mq(e,t,n,i,r){e.definitions[t]=No(e,n,i);let a=e.definitions[t];gd(e,a,r,"ObjectPageSectionChartV2")}o(Mq,"handleSectionChart");function xM(e,t,n,i,r,a){e.definitions[t]=No(e,n,i);let s=e.definitions[t];gd(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=tc(n==null?void 0:n.target)}o(xM,"handleHeaderFacet");function wq(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=tc(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(wq,"addDataPointHeaderFacetDataType");function kq(e,t,n,i,r){e.definitions[t]=No(e,n,i);let a=e.definitions[t];return gd(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(kq,"handleFormSection");function Uq(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(Uq,"getSectionType");function jq(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${bo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(jq,"getReferenceKey");function IM(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=Uq(l.base,a,s),p=jq(l,n,u),g=`${u}<${p}>`;switch(_q(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,Vq(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let T in l.facets)IM(e,l.facets,T,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Dq(e,p,r,l,t,u),yl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Mq(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=kq(r,g,l,p,u);lm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{cu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{xM(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{xM(r,g,l,p,u),wq(r,g,l);break}default:i.properties[n]=No(r,l,p)}}o(IM,"addSection");function CM(e,t,n,i,r,a=!1){if(e)for(let s in t)IM(i,t,s,n,r,!1,a)}o(CM,"addSectionsFromFacets");function OM(e,t,n){var g,m,T,A,b,O;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${bo.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}/@${bo.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=jg((T=e.entitySet)==null?void 0:T.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=Ug((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let R in n){let U=n[R];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(U.entitySet)?(CM(l,a,i,e,t),CM(u,s,r,e,t,!0)):OM(e,t,U.pages)}let p=t.definitions.CustomSections;for(let R in p.properties)i.properties[R]=p.properties[R]}o(OM,"addSections");function $q(e,t,n){gm(e,n),dm(e,n,t,Lq,void 0,!0)}o($q,"addHeader");function Bq(e,t,n,i){let r=MR(t,n,i,void 0,!0);r&&E0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Bq,"addRelatedFacetKeysType");function ld(e,t){var s;tn();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:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?($q(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},OM(e,n,a),Bq(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]),pm(n,e,oe.FioriElementsVersion.v2,Fq,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,Fo(n,Oq),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(ld,"generateObjectPageSchemaV2");var ti=te(le());var Cf=require("@sap-ux/vocabularies-types/vocabularies/UI");var Gq=["filterBar","table","footer"],Wq=ti.UIVOCABULARYALPHADOT.substring(1);function jx(e,t,n,i){Ba(e,n,"QuickVariant"),v0(n,"QuickVariantX",t),T0(i,n,"QuickVariantX")}o(jx,"addEnumForVariantPaths");function Kq(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Cf.UIAnnotationTerms.SelectionPresentationVariant,Cf.UIAnnotationTerms.SelectionVariant,Cf.UIAnnotationTerms.PresentationVariant];su(e,r,i)}o(Kq,"addEnumForFilterBarAnnotationPath");function Xq(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Cf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Cf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(Wq,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(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(Xq,"getPresentationVariantForLineItem");function Qq(e,t,n){if(om(t,"annotationPath",n))return;let i=Xq(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=au("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ti.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(Qq,"getLineItemAnnotation");function fd(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ti.DefinitionName.LineItems},r=$+ti.DefinitionName.ToolBarLR;bb.forEach((u,p)=>{n.properties.table.anyOf[p.toString()].$ref=$+u;let g=u.replace("<LineItems>",""),m=JSON.parse(JSON.stringify(t.definitions[g]));m.properties.columns=i,m.properties.toolBar.$ref=r,n.definitions[u]=m});let{entityType:a,uIAnnotations:s}=rm(e);if(s){let u=[],p=_l(e.manifest[ti.ManifestSection.generic].pages,u);ml(n);let g=Qq(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let T=gr(a.fullyQualifiedName,g.term,g.qualifier);bb.forEach(A=>{n.definitions[A][ti.SchemaTag.annotationPath]=T})}dl(!1,n,g,a);let m=s.SelectionFields;if(nm(n,m,a),yl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],u0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ti.LogSeverity.Error,message:q.t("NOLR"),location:{path:ti.MANIFESTPATH,range:[ti.ManifestSection.generic]}}),n;gl(n,a,p,e.manifest,e.fragments),jx(a,e.entitySet,n,e.serviceAVT),Kq(a,n,ti.DefinitionName.ListReportFilterBar),b0(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 Fo(n,Gq),n}o(fd,"generateListReportSchemaV2");var Zt=te(le());var qq=["filterBar","keyPerformanceIndicators","chart","table","footer"];function zq(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(om(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(O){let R=O+(r?"#"+r:"");return t[R]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||au("LineItem",O),g=g||au("Chart",O),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],T=t[g],A=(m||i.quickVariantSelectionX?0:1)+(T?0:2);if(A>0){let O=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],R=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:R})}return{lineItemAnnotation:m,chartAnnotation:T}}o(zq,"getLineItemAndChartAnnotation");function Yq(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(Yq,"addChart");function ud(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Zt.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[Zt.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${Zt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${Zt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,f0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=rm(e);if(s){ml(n);let l=[],u=Ml(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=zq(u,s,e.logger);p&&r0.forEach(T=>{n.definitions[T][Zt.SchemaTag.annotationPath]=gr(a.fullyQualifiedName,p.term,p.qualifier)}),dl(!1,n,p,a),g&&Yq(n,g);let m=s.SelectionFields;if(nm(n,m,a),yl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;gl(n,a,u,e.manifest,e.fragments),jx(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 Fo(n,qq),n}o(ud,"generateAnalyticalListReportSchemaV2");function Jq(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(Jq,"getCardDefinitionNames");function Zq(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"},fa(a,s.CardModel);let l=Jq(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(Zq,"addModelsEnum");function NM(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},Zq(n,t),n}o(NM,"generateOverviewPageSchemaV2");var Fs=te(le());function $x(e,t,n,i,r,a){tn();let s=Io(e,t),l={templateType:a,fioriElementsVersion:Fs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=cd(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Fs.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o($x,"prepareGenerationV2");function Bx(e,t,n,i,r,a){let s=$x(n,a,i,r,t,Fs.TemplateType.ListReportObjectPageV2);return ld(s,e)}o(Bx,"generateObjectPageInterfaceV2");function Hx(e,t,n,i,r,a){let s=$x(n,a,i,r,t,Fs.TemplateType.ListReportObjectPageV2);return fd(s,e)}o(Hx,"generateListReportInterfaceV2");function Gx(e,t,n,i,r,a){let s=$x(n,a,i,r,t,Fs.TemplateType.AnalyticalListPageV2);return ud(s,e)}o(Gx,"generateAnalyticalListPageInterfaceV2");function pd(e,t){return NM(e,t)}o(pd,"generateOVPInterfaceV2");var we=te(le());var md=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 LM(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(LM,"getClassesForSingleSection");function FM(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],LM(n,i,t),FM(n,t)}}o(FM,"getSubsectionClasses");function ez(e,t,n){let i;for(let r in e.sections)i=t.sections[r],LM(i,r,n),FM(i,n)}o(ez,"getExportClassesForSections");function tz(e,t){let n=_l(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(tz,"findV2Page");function Wx(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(Wx,"calculateBaseId");function RM(e,t,n=!1){let i=md(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=tz(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:Wx(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(p,u,[],[],e.jsonSchema)}return i}o(RM,"exportListReportPage");function _M(e,t,n=!1){let i=e.page.config,r=md(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=Ml(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 _i,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:Wx(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(p,u,[],[],e.jsonSchema)}return r}o(_M,"exportAnalyticalListPage");function DM(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=md(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=vc(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new _i,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&ez(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:Wx(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};fs(g,p,[],[],e.jsonSchema)}}return a}o(DM,"exportObjectPage");var VM=o(e=>{let t=md();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new _i,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ju(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),nz=o((e,t,n)=>{var s;let i=md();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new Tm,e);r.settings=Object.assign(new Xa,e.settings);for(let l in n.definitions.AppSettings.properties){let u=Yn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],ja(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Cb(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function MM(e,t){if(e[we.SchemaType.ListReport])return RM(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return DM(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return VM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return nz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return _M(e[we.SchemaType.AnalyticalListPage],t)}o(MM,"exportPageV2");function Kx(e,t,n=!1){if(e[we.SchemaType.ListReport])return RM(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return DM(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return VM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return _M(e[we.SchemaType.AnalyticalListPage],t,n)}o(Kx,"exportConfigEntityByPathV2");var If=te(le()),kM=require("@sap-ux/vocabularies-types/vocabularies/UI");function wM(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(wM,"updateDependencyLib");function ov(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(ov,"extractLastIdPart");function UM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:If.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(If.PropertyName.sections),s=a>-1?ov(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${kM.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:If.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return Xx(g),!0}o(UM,"createNewCustomColumn");var Rs=te(le());var $M=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),jM=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function iz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(iz,"initializeRouting");function rz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(rz,"setTargetOptions");function oz(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Rs.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(oz,"calculateQueryPattern");function BM(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){BM(e,t,n,s);return}}}o(BM,"fillNavigationParts");function az(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(az,"fillParentKeys");function sz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(rz(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=[];BM(p,a,t,r,l==null?void 0:l.contextPath);let g=az(e.routePattern);u=oz(p,l,g)}i.routes.push($M(u,s.route,s.route))}}}o(sz,"handlePageNavigation");function cz(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(cz,"removeDeletedPages");function lz(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=jM({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=jM({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(lz,"transferEntitySetandContextPath");function fz(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(fz,"updateRouteLayout");function uz(e,t,n,i){return e.pageType&&![Rs.PageTypeV4.CustomPage,Rs.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Rs.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}o(uz,"fillTarget");function HM(e,t,n){var r,a;let i=iz(n[Rs.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push($M(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=uz(u,l,s,t),lz(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={}),sz(u,t,l,i,s),fz(i,s,u),i.targets[s]=l}return cz(i,t),i}o(HM,"transformRoutingV4");var Ii=te(le());var GM=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],WM=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:GM[r]?s.controlAggregation=GM[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)WM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),pz=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,WM(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,wM(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),dz=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"),KM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?pz(e,t):dz(e)},"updateFcl");var ie=te(le()),hd=require("@sap-ux/vocabularies-types/vocabularies/UI");var XM=te(Xs()),av=te(le());function gz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(gz,"isExportValueEquals");function mz(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)===av.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(mz,"deleteProperty");function QM(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),_c({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},QM)}else gz((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]&&(mz(e,i),l=!0);return l}o(QM,"exportProperty");function qM(e,t,n,i,r,a){let s=tf(e.file,!1,a);if(s){let l=xy(s);if(_c({fullSchema:i,schema:i,element:l,contextPath:[],config:n},QM)){let p=(0,XM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:av.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(qM,"getExtensionExportResult");var zM=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=us(n||[],a.name,i,s)),u&&qM(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),YM=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=Pc(u,s[0]);p=xc(a,m,u,g,t)}if(p){let m=nf(t),A={...i.definitions[m],definitions:i.definitions};qM(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var JM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],hz=[...JM,"views","initialLoad","template"],qx=o(e=>{let t=ie.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function yz(e,t,n){var s,l,u,p;let i=`@${hd.UIAnnotationTerms.LineItem}`,r=`@${hd.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(yz,"determineTargetAnnotationOfTable");function vz(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(vz,"determineTargetAnnotationOfChart");function Tz(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($)[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(Tz,"determineTargetAnnotationBasedOnParentView");function bz(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}=Tz(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(bz,"determineTargetAnnotationOfView");function Ez(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(Ez,"determineTargetAnnotationOfHeaderSections");function Az(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=ov(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(Az,"determineTargetAnnotationOfSections");function Sz(e,t,n){let i,r,a=!1;return e[0]===ie.PropertyName.table&&e[1]!==ie.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=yz(e,t,n):e[0]===ie.PropertyName.chart&&t.templateType===ie.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=vz(e,t,n):e[0]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=Az(e,a):e[1]===ie.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=Ez(e,a,t.title):e[1]===ie.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=bz(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(Sz,"determineTargetAnnotation");function Pz(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])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(Pz,"determineKeyForSyncRule");function xz(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(xz,"createNewObjectInManifest");function ZM(e,t,n){var i,r;t.type!=="array"&&((i=n==null?void 0:n.targetDefinition)==null?void 0:i.type)==="object"&&((r=n==null?void 0:n.targetDefinition)!=null&&r.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&xz(e):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])}o(ZM,"transferPropertyToManifest");function Cz(e,t,n,i,r,a,s){var u,p,g;let l=(u=n.appSchema.definitions.MultiTableModeV4)==null?void 0:u.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((p=n.config.table)!=null&&p.views)||e[1]==="views"&&((g=n.config.table)!=null&&g.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&JM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(l!=null&&l.annotationPath)&&!l.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&hz.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let m=t.syncRule.manifest.delete;typeof m=="function"&&m(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config)}else i[t.manifestKey]!==void 0&&delete i[t.manifestKey];ja(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s)}o(Cz,"deleteFromManifest");function Iz(e,t,n,i){let r=[...e],a=e.indexOf("subsections");for(;a>-1;)e.splice(a-1,2),a=e.indexOf("subsections");let{targetAnnotationEncoded:s,targetAnnotation:l,custom:u}=Sz(e,n.transferParameters,n.configObject),p=Pz(e),g=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,s,p,l,n.configObject,r),m=Oo(n.transferParameters.exportResults.manifest,g,l,u?void 0:s);if(m){let T={syncRule:t,manifestSection:m,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:p};n.configObject[n.key]!==void 0?ZM(T,n.propertyDefinition,i):Cz(e,T,n.transferParameters,m,g,l,s)}}o(Iz,"exportManifestChange");function Oz(e,t,n){let i=Yn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);YM(e.transferParameters,r,n.configObject)}else i.manifest&&Iz(t,i,e,n)}o(Oz,"evaluateExportRule");function Nz(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,zx(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(Nz,"transferSubObject");function Lz(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Oo(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(Lz,"createALPTableView");function Fz(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ft(e.transferParameters.pageNameArray)+"/views",r=Oo(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)||hd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(Fz,"createALPChartView");function Rz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Oo(e.exportResults.manifest,i),a=`@${hd.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 _z(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Oo(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(_z,"createLRTableView");function Dz(e,t,n){let i=!1,r=!1;if(t&&!n)if(t.startsWith(ie.DefinitionName.CustomColumn))i=UM(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 Fz(e);if(t===ie.DefinitionName.ALPTableView&&e.key===ie.PropertyName.table&&e.configObject)return Lz(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ie.DefinitionName.LRTableView)||t.startsWith(ie.DefinitionName.LRChartView))?i=_z(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(Dz,"createNewElement");function Vz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}o(Vz,"isDefinitionTraversable");function Qx(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Kg(e.configObject,e.key),s=Lo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=Dz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||Oz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Vz(e.propertyDefinition)&&s.configObject)&&!u){let m=a?[...n,a]:n;Nz(e,s,r,p,m)}}o(Qx,"transferSortedListEntry");function Mz(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].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]],Qx(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,Qx(e,i,r),a=!0)}),e.index++})}return a}o(Mz,"transferConfigEntriesWithAnyOfDefinitions");function wz(e,t,n,i){let r=mb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(wz,"mergeEntriesForInsert");function kz(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(kz,"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($)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=Mz(n,p,i,r,a)}return s}o(Uz,"checkIfAnyOfDefinition");function zx(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=kz(a.properties);u!=null&&u.$ref&&wz(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!ru(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,Qx(l,n,i,p),m[1].$ref&&s++)})}o(zx,"transferManifestEntriesAndFlexChange");function ew(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ie.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(ew,"getClassesForSingleSection");function tw(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],ew(n,i,t),tw(n,t)}}o(tw,"getSubsectionClasses");function jz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],ew(e,r,n),tw(i,n)}o(jz,"getExportClassesForSections");function nw(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(nw,"calculateBaseId");var iw=o((e,t,n=!1)=>{var l;let i=qx(e.manifest),r=new Ia,a=r.createPageInstance(ie.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ie.PropertyName.sections]&&jz(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:nw(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 zx(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),$z=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=qx(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($)[1]);let T=u.definitions[`${ie.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&T)for(let R in T.properties)g.toolBar.actions[R]=t.createInstance(i,ie.DefinitionName.ToolBarAction,g.toolBar.actions[R]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:nw(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 zx(A,n,[],[],[],u),l},"exportListPage"),Yx=o((e,t,n,i=!1)=>{let r=new Ia,a=r.createPageInstance(ie.PageTypeV2.ListReport,e.page.config);return $z(e,r,a,ie.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),rw=o((e,t,n=!1)=>Yx(e,t,ie.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),Bz=o((e,t,n,i,r,a)=>{let s=Oo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=lb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];ZM(u,p,{}),!l&&Object.keys(s).length&&DR(r,t,s)},"applyExportRule"),Hz=o((e,t,n)=>{var a;let i=qx(t),r=Object.assign(new Ny,e);r.settings=Object.assign(new rf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=Yn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)Bz(l,u,s,e,i.manifest,n);else{let p=Oo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],ja(i.manifest,u,!1))}}}return i.manifest[ie.ManifestSection.ui5].routing=HM(e.home,e.pages,i.manifest),KM(i.manifest[ie.ManifestSection.ui5],e),i},"exportApplicationV4"),ow=o((e,t)=>{if(e[ie.SchemaType.ListReport])return Yx(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4);if(e[ie.SchemaType.ObjectPage])return iw(e[ie.SchemaType.ObjectPage],t);if(e[ie.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ie.SchemaType.Application];return Hz(n,i,r)}else{if(e[ie.SchemaType.AnalyticalListPage])return rw(e[ie.SchemaType.AnalyticalListPage],t);if(e[ie.SchemaType.FPMCustomPage])return zM(e[ie.SchemaType.FPMCustomPage],ie.defaultExportResult)}},"exportPageV4"),Jx=o((e,t,n=!1)=>{if(e[ie.SchemaType.ListReport])return Yx(e[ie.SchemaType.ListReport],t,ie.TemplateType.ListReportObjectPageV4,n);if(e[ie.SchemaType.ObjectPage])return iw(e[ie.SchemaType.ObjectPage],t,n);if(e[ie.SchemaType.AnalyticalListPage])return rw(e[ie.SchemaType.AnalyticalListPage],t,n)},"exportConfigEntityByPathV4");var $t=require("@sap-ux/fe-fpm-writer");var Gz=new Map([[de.CustomExtensionType.CustomPage,$t.generateCustomPage],[de.CustomExtensionType.CustomColumn,$t.generateCustomColumn],[de.CustomExtensionType.CustomSection,$t.generateCustomSection],[de.CustomExtensionType.ObjectPage,$t.generateObjectPage],[de.CustomExtensionType.ListReport,$t.generateListReport],[de.CustomExtensionType.CustomAction,$t.generateCustomAction],[de.CustomExtensionType.CustomView,$t.generateCustomView],[de.CustomExtensionType.ControllerExtension,$t.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,$t.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,$t.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,$t.generateCustomHeaderSection]]),Wz={api:$t.PromptsAPI,types:$t.PromptsType};function Kz(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=Hx(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=Bx(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=pd(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=Gx(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=Oy(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=DS(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=Oy(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=VS(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=MS(i,r,a,s,u,e.featureToggles,l)}}return t}o(Kz,"generateSchema");function Xz(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=MM(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=ow(i,n)}return t}o(Xz,"exportConfig");function Qz(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=Kx(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=Jx(i,n)}return t}o(Qz,"exportConfigEntityByPath");function qz(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=Kx(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=Jx(i,n,!0)}return t}o(qz,"deleteConfigEntityByPath");function zz(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Ph(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=Ih(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=Lh(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=xh(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=Uc(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=nv(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=Uc(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=tv(n[de.SchemaType.FPMCustomPage]))}return t}o(zz,"importConfig");async function Yz(e){return Ux(e)}o(Yz,"importProject");async function Jz(e){return kx(e)}o(Jz,"importProjectSchema");function Zz(){return{version:"16",fpmWriter:"20",moduleVersion:I0.version}}o(Zz,"getApiVersion");function Xx(e){let t=Gz.get(e.customExtension);if(t&&typeof t=="function")return(0,$t.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(Xx,"generateCustomExtension");var qr=require("path"),_s=require("fs");var Of=o(async e=>new Promise((t,n)=>{(0,_s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),eY=o(async e=>JSON.parse(await Of(e)),"readJSON"),Zx=o(async e=>new Promise((t,n)=>{(0,_s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),tY=o(async e=>new Promise(t=>{(0,_s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),sw=o(async e=>new Promise(t=>{(0,_s.exists)(e,n=>{t(n)})}),"resourceExists"),nY=o(async e=>eY((0,qr.join)(e,"manifest.json")),"getManifest"),cw=o(async e=>{let t=[],n=(0,qr.join)(e,"changes");if(!await sw(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await Zx(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Of((0,qr.join)(n,a)));return t},"getChanges"),aw=o(async(e,t="fragments")=>{let n=[],i=(0,qr.join)(e,"ext",t);if(!await sw(i))return n;let r=await Zx(i);for(let a of r){let s=(0,qr.join)(i,a),l=await Of(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),iY=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 T=(0,qr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await Of(T)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let T of i.mainService.settings.annotations)if((g=(p=i[T])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,qr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:A,fileContent:await Of(A)})}}if(n.length===0)for(let T in i){let A=i[T];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let b=(0,qr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Of(b)})}}return n},"getAnnotations"),rY=o(async e=>{let t=(0,qr.basename)(e),n=(0,qr.join)(e,"webapp"),i=await nY(n),r=await iY(i,n),a=await cw(n),s=await aw(n),l=await aw(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Ks(Vi,te(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
295
295
  /*! Bundled license information:
296
296
 
297
297
  sax/lib/sax.js: