@sap/ux-specification 1.124.12 → 1.124.14

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 (51) hide show
  1. package/CHANGELOG.md +49 -0
  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 +93 -93
  13. package/dist/index-min.js.map +3 -3
  14. package/dist/schemas/v4/BuildingBlocksConfig.json +38 -22
  15. package/dist/schemas/v4/ObjectPageConfig.json +339 -16
  16. package/dist/specification/package.json +5 -5
  17. package/dist/specification/scripts/to-json-schema.d.ts.map +1 -1
  18. package/dist/specification/scripts/to-json-schema.js +1 -0
  19. package/dist/specification/scripts/to-json-schema.js.map +1 -1
  20. package/dist/specification/src/sync/common/utils.d.ts.map +1 -1
  21. package/dist/specification/src/sync/common/utils.js +16 -2
  22. package/dist/specification/src/sync/common/utils.js.map +1 -1
  23. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts +16 -0
  24. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.d.ts.map +1 -1
  25. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js +76 -1
  26. package/dist/specification/src/sync/v4/export/controls/ObjectPageTable.js.map +1 -1
  27. package/dist/specification/src/sync/v4/export/export.d.ts.map +1 -1
  28. package/dist/specification/src/sync/v4/export/export.js +4 -1
  29. package/dist/specification/src/sync/v4/export/export.js.map +1 -1
  30. package/dist/specification/src/sync/v4/export/factory.d.ts.map +1 -1
  31. package/dist/specification/src/sync/v4/export/factory.js +4 -1
  32. package/dist/specification/src/sync/v4/export/factory.js.map +1 -1
  33. package/dist/specification/src/sync/v4/generate/objectPage.d.ts.map +1 -1
  34. package/dist/specification/src/sync/v4/generate/objectPage.js +68 -28
  35. package/dist/specification/src/sync/v4/generate/objectPage.js.map +1 -1
  36. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts +1 -1
  37. package/dist/specification/src/sync/v4/import/pages/objectPage.d.ts.map +1 -1
  38. package/dist/specification/src/sync/v4/import/pages/objectPage.js +21 -2
  39. package/dist/specification/src/sync/v4/import/pages/objectPage.js.map +1 -1
  40. package/dist/types/src/common/types.d.ts +4 -0
  41. package/dist/types/src/common/types.d.ts.map +1 -1
  42. package/dist/types/src/common/types.js +4 -0
  43. package/dist/types/src/common/types.js.map +1 -1
  44. package/dist/types/src/v4/controls/ObjectPageTable.d.ts +49 -2
  45. package/dist/types/src/v4/controls/ObjectPageTable.d.ts.map +1 -1
  46. package/dist/types/src/v4/controls/ObjectPageTable.js.map +1 -1
  47. package/dist/types/src/v4/controls/Table.d.ts +20 -0
  48. package/dist/types/src/v4/controls/Table.d.ts.map +1 -1
  49. package/dist/types/src/v4/controls/Table.js +6 -1
  50. package/dist/types/src/v4/controls/Table.js.map +1 -1
  51. package/package.json +5 -5
package/dist/index-min.js CHANGED
@@ -1,4 +1,4 @@
1
- var GB=Object.create;var il=Object.defineProperty;var DO=Object.getOwnPropertyDescriptor;var WB=Object.getOwnPropertyNames;var KB=Object.getPrototypeOf,XB=Object.prototype.hasOwnProperty;var o=(e,t)=>il(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Xs=(e,t)=>{for(var n in t)il(e,n,{get:t[n],enumerable:!0})},sg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of WB(t))!XB.call(e,r)&&r!==n&&il(e,r,{get:()=>t[r],enumerable:!(i=DO(t,r))||i.enumerable});return e},Qs=(e,t,n)=>(sg(e,t,"default"),n&&sg(n,t,"default")),ie=(e,t,n)=>(n=e!=null?GB(KB(e)):{},sg(t||!e||!e.__esModule?il(n,"default",{value:e,enumerable:!0}):n,e)),cg=e=>sg(il({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?DO(t,n):t,a=e.length-1,s;a>=0;a--)(s=e[a])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&il(t,n,r),r};var lL=ze((PY,cL)=>{var ST=Object.defineProperty,QB=Object.getOwnPropertyDescriptor,qB=Object.getOwnPropertyNames,zB=Object.prototype.hasOwnProperty,PT=o((e,t)=>{for(var n in t)ST(e,n,{get:t[n],enumerable:!0})},"C"),YB=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of qB(t))!zB.call(e,r)&&r!==n&&ST(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=QB(t,r))||i.enumerable});return e},"$e"),JB=o(e=>YB(ST({},"__esModule",{value:!0}),e),"Ze"),_O={};PT(_O,{ACTIONTITLEPREFIX:o(()=>nH,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>$O,"ALPViewType"),ActionType:o(()=>GO,"ActionType"),ArtifactType:o(()=>HO,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>rH,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>qO,"ChangeIndicator"),ChartColor:o(()=>pN,"ChartColor"),CloudDevAdaptationStatus:o(()=>sN,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>fN,"ColorPaletteDefinitionType"),ControlType:o(()=>WO,"ControlType"),CustomExtensionType:o(()=>mN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>dH,"DATESETTINGSPATH"),DataSourceType:o(()=>cN,"DataSourceType"),DefinitionName:o(()=>JO,"DefinitionName"),DirName:o(()=>XO,"DirName"),DraftDiscardEnabledSettings:o(()=>iN,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>UO,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>tH,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>yH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>hH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>gH,"FRAGMENTNAMEPART"),FacetBase:o(()=>zO,"FacetBase"),Features:o(()=>hN,"Features"),FileName:o(()=>QO,"FileName"),FioriElementsVersion:o(()=>VO,"FioriElementsVersion"),FlexChangeLayer:o(()=>kO,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>aN,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>MO,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>mH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>dN,"LogSeverity"),MANIFESTPATH:o(()=>oH,"MANIFESTPATH"),MacrosPropertyType:o(()=>nN,"MacrosPropertyType"),ManifestSection:o(()=>lN,"ManifestSection"),OdataVersion:o(()=>wO,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>eH,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>ZB,"PageType"),PageTypeV2:o(()=>CT,"PageTypeV2"),PageTypeV4:o(()=>xT,"PageTypeV4"),PropertyName:o(()=>ZO,"PropertyName"),QUICKVARPATH:o(()=>uH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>pH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>TH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>vH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>tN,"SchemaKeyName"),SchemaTag:o(()=>eN,"SchemaTag"),SchemaType:o(()=>jO,"SchemaType"),SectionType:o(()=>BO,"SectionType"),StatePreservationMode:o(()=>oN,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>rN,"TableColumnVerticalAlignment"),TemplateType:o(()=>gN,"TemplateType"),UIVOCABULARY:o(()=>cH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>fH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>lH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>sH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>aH,"VOCWITHSLASH"),ViewTemplateType:o(()=>YO,"ViewTemplateType"),ViewTypes:o(()=>uN,"ViewTypes"),Visualization:o(()=>KO,"Visualization"),defaultExportResult:o(()=>iH,"defaultExportResult"),logSeverityLabel:o(()=>bH,"logSeverityLabel"),v2:o(()=>yN,"v2"),v4:o(()=>BN,"v4")});cL.exports=JB(_O);var CT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(CT||{}),xT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(xT||{}),ZB={...CT,...xT},eH=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),VO=(e=>(e.v2="v2",e.v4="v4",e))(VO||{}),wO=(e=>(e.v2="v2",e.v4="v4",e))(wO||{}),MO=(e=>(e.OneColumn="OneColumn",e.TwoColumnsBeginExpanded="TwoColumnsBeginExpanded",e.TwoColumnsMidExpanded="TwoColumnsMidExpanded",e.MidColumnFullScreen="MidColumnFullScreen",e.ThreeColumnsMidExpanded="ThreeColumnsMidExpanded",e.ThreeColumnsEndExpanded="ThreeColumnsEndExpanded",e.ThreeColumnsMidExpandedEndHidden="ThreeColumnsMidExpandedEndHidden",e.ThreeColumnsBeginExpandedEndHidden="ThreeColumnsBeginExpandedEndHidden",e.EndColumnFullScreen="EndColumnFullScreen",e))(MO||{}),kO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(kO||{}),jO=(e=>(e.Application="Application",e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.AnalyticalListPage="AnalyticalListPage",e.FreestylePage="FreestylePage",e.FPMCustomPage="FPMCustomPage",e.BuildingBlocks="BuildingBlocks",e))(jO||{}),UO=(e=>(e.flex="flex",e.manifest="manifest",e))(UO||{}),$O=(e=>(e.Primary="primary",e.Secondary="secondary",e))($O||{}),BO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(BO||{}),HO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(HO||{}),GO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(GO||{}),WO=(e=>(e.Table="sap.m.Table",e.TableColumn="sap.m.Column",e.SmartTable="sap.ui.comp.smarttable.SmartTable",e.SmartFilterBar="sap.ui.comp.smartfilterbar.SmartFilterBar",e.SmartChart="sap.ui.comp.smartchart.SmartChart",e.Group="sap.ui.comp.smartform.Group",e.GroupElement="sap.ui.comp.smartform.GroupElement",e.Button="sap.m.Button",e.ToolbarButton="sap.m.OverflowToolbarButton",e.Avatar="sap.f.Avatar",e.ObjectPageDynamicHeaderTitle="sap.uxap.ObjectPageDynamicHeaderTitle",e.ObjectPageGridProperties="sap.ui.layout.GridData",e.ObjectPageHeader="sap.uxap.ObjectPageHeader",e.ObjectPageLayout="sap.uxap.ObjectPageLayout",e.HeaderAction="sap.uxap.ObjectPageHeaderActionButton",e.ObjectPageHeaderSection="sap.m.VBox",e.DynamicPage="sap.f.DynamicPage",e.Form="sap.ui.layout.form",e.Chart="sap.suite.ui.microchart",e.Section="sap.uxap.ObjectPageSection",e.SubSection="sap.uxap.ObjectPageSubSection",e))(WO||{}),KO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(KO||{}),XO=(e=>(e.Sapux="src",e.Schemas=".schemas",e.Pages="pages",e.Webapp="webapp",e.Temp=".tmp",e.Changes="changes",e.LocalService="localService",e.Controller="controller",e.View="view",e.Fragment="fragment",e.Ext="ext",e.VSCode=".vscode",e))(XO||{}),QO=(e=>(e.App="app.json",e))(QO||{}),tH="Facet ID: ",nH="Action ID: ",qO=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(qO||{}),iH={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},zO=(e=>(e.LineItem="LineItem",e.CollectionFacet="CollectionFacet",e.Chart="Chart",e.Form="Form",e.Identification="Identification",e.DataPoint="DataPoint",e.Address="Address",e.Contact="Contact",e.PresentationVariant="PresentationVariant",e.SelectionPresentationVariant="SelectionPresentationVariant",e.Unknown="",e))(zO||{}),rH="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",YO=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(YO||{}),JO=(e=>(e.Action="Action",e.Actions="Actions",e.ActionsLR="Actions<LineItems>",e.ALPChart="ALPChart",e.ALPChartView="ALPChartView",e.ALPTable="ALPTable",e.ALPTableView="ALPTableView",e.AnalyticalListPageFilterBar="AnalyticalListPageFilterBar",e.AnnotationPathAsObject="AnnotationPathAsObject",e.ChartSettings="ChartSettings",e.ChartToolBarAction="ChartToolBarAction",e.CommonHeaderFacetSettings="CommonHeaderFacetSettings",e.CompactFilters="CompactFilters",e.CustomFooterActionOP="CustomFooterActionOP",e.CustomHeaderAction="CustomHeaderAction",e.CustomHeaderActionOP="CustomHeaderActionOP",e.CustomFormActionOP="CustomFormActionOP",e.CustomTableAction="CustomTableAction",e.CustomTableActionOP="CustomTableActionOP",e.CustomColumn="TableCustomColumn",e.CustomColumnOP="TableCustomColumnOP",e.CustomColumns="TableCustomColumns",e.CustomSections="CustomSections",e.FieldPath="FieldPath",e.Field="Field",e.Fields="Fields",e.Fields4Dialog="Fields4Dialog",e.FilterBar="FilterBar",e.FilterBarVisualFilters="FilterBarVisualFilters",e.Footer="Footer",e.FooterAction="FooterAction",e.FooterActionV4="FooterActionV4",e.FooterActions="FooterActions",e.FooterActionsLR="FooterActions<LineItems>",e.Form="Form",e.FormAction="FormAction",e.GenericActions="GenericActions",e.GenericColumnsOP="GenericColumnsOP",e.GenericFooter="GenericFooter",e.GenericSections="GenericSections",e.GenericSubSections="GenericSubSections",e.GlobalTableSettings="GlobalTableSettings",e.Header="Header",e.HeaderActions="HeaderActions",e.HeaderActionsStandard="HeaderActionsStandard",e.HeaderActionStandard="HeaderActionStandard",e.ObjectPageHeaderAction="ObjectPageHeaderAction",e.ObjectPageHeaderActionStandard="ObjectPageHeaderActionStandard",e.ObjectPageHeaderActions="ObjectPageHeaderActions",e.HeaderSections="HeaderSections",e.LineItems="LineItems",e.LineItemsOfView="LineItemsOfView",e.ListReportFilterBar="ListReportFilterBar",e.LRTableView="LRTableView",e.LRChartView="LRChartView",e.MultiEditV2="MultiEdit",e.MultiTableModeV4="MultiTableModeV4",e.ObjectPageChart="ObjectPageChart",e.ObjectPageCustomHeaderSectionFragment="ObjectPageCustomHeaderSectionFragment",e.ObjectPageCustomSectionFragment="ObjectPageCustomSectionFragment",e.ObjectPageCustomSubSectionFragment="ObjectPageCustomSubSectionFragment",e.ObjectPageForm="ObjectPageForm",e.ObjectPageFooter="ObjectPageFooter",e.ObjectPageFooterAction="ObjectPageFooterAction",e.ObjectPageFooterActions="ObjectPageFooterActions",e.ObjectPageFooterActionStandard="ObjectPageFooterActionStandard",e.ObjectPageHeader="ObjectPageHeader",e.ObjectPageHeaderSectionForm="ObjectPageHeaderSectionForm",e.ObjectPageHeaderSectionChart="ObjectPageHeaderSectionChart",e.ObjectPageHeaderSectionDataPoint="ObjectPageHeaderSectionDataPoint",e.ObjectPageHeaderSectionContact="ObjectPageHeaderSectionContact",e.ObjectPageHeaderSectionAddress="ObjectPageHeaderSectionAddress",e.ObjectPageLayout="ObjectPageLayout",e.ObjectPagePresentationVariant="ObjectPagePresentationVariant",e.ObjectPageSectionAddress="ObjectPageSectionAddress",e.ObjectPageSectionChart="ObjectPageSectionChart",e.ObjectPageSectionContact="ObjectPageSectionContact",e.ObjectPageSectionDataPoint="ObjectPageSectionDataPoint",e.ObjectPageSectionForm="ObjectPageSectionForm",e.ObjectPageSectionPresentationVariant="ObjectPageSectionPresentationVariant",e.ObjectPageSectionTableV4="ObjectPageSectionTableV4",e.ObjectPageSubSections="ObjectPageSubSections",e.ObjectPageTable="ObjectPageTable",e.ObjectPageTableColumn="ObjectPageTableColumn",e.ObjectPageToolBar="ObjectPageToolBar",e.ObjectPageToolBarAction="ObjectPageToolBarAction",e.ObjectPageToolBarActions="ObjectPageToolBarActions",e.Position="Position",e.PositionOP="PositionOP",e.QuickVariant="QuickVariant",e.QuickVariantSelectionOP="QuickVariantSelectionOP",e.QuickVariantSelectionV4OP="QuickVariantSelectionV4OP",e.RelatedFacetKeys="RelatedFacetKeys",e.Sections="Sections",e.SectionActions="SectionActions",e.SelectionFields="SelectionFields",e.Table="Table",e.TableSPV="TableSPV",e.TableColumn="TableColumn",e.TableViewExtension="TableViewExtension",e.ToolBarAction="ToolBarAction",e.ToolBarLR="ToolBar<LineItems>",e.ToolBar="ToolBar",e.ViewTableColumn="ViewTableColumn",e.ViewCustomColumn="ViewTableCustomColumn",e.ViewCustomAction="ViewTableCustomAction",e.ViewChartToolBar="ViewChartToolBar",e.ViewToolBarAction="ViewToolBarAction",e.ViewPosition="ViewPosition",e.ViewCustomActionPosition="ViewCustomActionPosition",e.VisualFilters="VisualFilters",e.VisualFilter="VisualFilter",e.CustomActionPosition="CustomActionPosition",e.CustomActionPositionOP="CustomActionPositionOP",e.CustomHeaderActionPosition="CustomHeaderActionPosition",e.CustomHeaderActionPositionOP="CustomHeaderActionPositionOP",e.CustomFooterActionPositionOP="CustomFooterActionPositionOP",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e.ObjectPageCustomSectionActions="ObjectPageCustomSectionActions",e.CustomSectionActionOP="CustomSectionActionOP",e.CustomSectionActionPositionOP="CustomSectionActionPositionOP",e))(JO||{}),ZO=(e=>(e.actions="actions",e.annotationPath="annotationPath",e.chart="chart",e.columns="columns",e.defaultPath="defaultPath",e.defaultTemplateAnnotationPath="defaultTemplateAnnotationPath",e.footer="footer",e.header="header",e.sections="sections",e.table="table",e.views="views",e.visualFilters="visualFilters",e.selectionFields="selectionFields",e))(ZO||{}),eN=(e=>(e.actionType="actionType",e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.dataType="dataType",e.descriptionSrcURL="descriptionSrcURL",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.propertyIndex="propertyIndex",e.target="target",e))(eN||{}),tN=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(tN||{}),oH="webapp/manifest.json",aH="/@com.sap.vocabularies",sH="::@com.sap.vocabularies",cH="com.sap.vocabularies.UI.v1",lH="com.sap.vocabularies.UI.v1.",fH="@com.sap.vocabularies.UI.v1.",uH="/quickVariantSelection",pH="/quickVariantSelectionX",dH="/filterSettings/dateSettings",gH=".fragment.",nN=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(nN||{}),iN=(e=>(e.restricted="restricted",e))(iN||{}),rN=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(rN||{}),oN=(e=>(e.persistence="persistence",e.discovery="discovery",e))(oN||{}),aN=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(aN||{}),sN=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(sN||{}),cN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(cN||{}),lN=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(lN||{}),mH="sap.ui.generic.app/settings",fN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(fN||{}),hH="sap.fe.templates.RootContainer.view.Fcl",yH="appRootView",uN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(uN||{}),vH="sap.ui.core.mvc.View",TH="sap.ui.core.Fragment",pN=(e=>(e.sapUiChartPaletteQualitativeHue1="sapUiChartPaletteQualitativeHue1",e.sapUiChartPaletteQualitativeHue2="sapUiChartPaletteQualitativeHue2",e.sapUiChartPaletteQualitativeHue3="sapUiChartPaletteQualitativeHue3",e.sapUiChartPaletteQualitativeHue4="sapUiChartPaletteQualitativeHue4",e.sapUiChartPaletteQualitativeHue5="sapUiChartPaletteQualitativeHue5",e.sapUiChartPaletteQualitativeHue6="sapUiChartPaletteQualitativeHue6",e.sapUiChartPaletteQualitativeHue7="sapUiChartPaletteQualitativeHue7",e.sapUiChartPaletteQualitativeHue8="sapUiChartPaletteQualitativeHue8",e.sapUiChartPaletteQualitativeHue9="sapUiChartPaletteQualitativeHue9",e.sapUiChartPaletteQualitativeHue10="sapUiChartPaletteQualitativeHue10",e.sapUiChartPaletteQualitativeHue11="sapUiChartPaletteQualitativeHue11",e.sapUiChartPaletteQualitativeHue12="sapUiChartPaletteQualitativeHue12",e.sapUiChartPaletteQualitativeHue13="sapUiChartPaletteQualitativeHue13",e.sapUiChartPaletteQualitativeHue14="sapUiChartPaletteQualitativeHue14",e.sapUiChartPaletteQualitativeHue15="sapUiChartPaletteQualitativeHue15",e.sapUiChartPaletteQualitativeHue16="sapUiChartPaletteQualitativeHue16",e.sapUiChartPaletteQualitativeHue17="sapUiChartPaletteQualitativeHue17",e.sapUiChartPaletteQualitativeHue18="sapUiChartPaletteQualitativeHue18",e.sapUiChartPaletteQualitativeHue19="sapUiChartPaletteQualitativeHue19",e.sapUiChartPaletteQualitativeHue20="sapUiChartPaletteQualitativeHue20",e.sapUiChartPaletteQualitativeHue21="sapUiChartPaletteQualitativeHue21",e.sapUiChartPaletteQualitativeHue22="sapUiChartPaletteQualitativeHue22",e.sapUiChartPaletteSemanticBadLight3="sapUiChartPaletteSemanticBadLight3",e.sapUiChartPaletteSemanticBadLight2="sapUiChartPaletteSemanticBadLight2",e.sapUiChartPaletteSemanticBadLight1="sapUiChartPaletteSemanticBadLight1",e.sapUiChartPaletteSemanticBad="sapUiChartPaletteSemanticBad",e.sapUiChartPaletteSemanticBadDark1="sapUiChartPaletteSemanticBadDark1",e.sapUiChartPaletteSemanticBadDark2="sapUiChartPaletteSemanticBadDark2",e.sapUiChartPaletteSemanticCriticalLight3="sapUiChartPaletteSemanticCriticalLight3",e.sapUiChartPaletteSemanticCriticalLight2="sapUiChartPaletteSemanticCriticalLight2",e.sapUiChartPaletteSemanticCriticalLight1="sapUiChartPaletteSemanticCriticalLight1",e.sapUiChartPaletteSemanticCritical="sapUiChartPaletteSemanticCritical",e.sapUiChartPaletteSemanticCriticalDark1="sapUiChartPaletteSemanticCriticalDark1",e.sapUiChartPaletteSemanticCriticalDark2="sapUiChartPaletteSemanticCriticalDark2",e.sapUiChartPaletteSemanticGoodLight3="sapUiChartPaletteSemanticGoodLight3",e.sapUiChartPaletteSemanticGoodLight2="sapUiChartPaletteSemanticGoodLight2",e.sapUiChartPaletteSemanticGoodLight1="sapUiChartPaletteSemanticGoodLight1",e.sapUiChartPaletteSemanticGood="sapUiChartPaletteSemanticGood",e.sapUiChartPaletteSemanticGoodDark1="sapUiChartPaletteSemanticGoodDark1",e.sapUiChartPaletteSemanticGoodDark2="sapUiChartPaletteSemanticGoodDark2",e.sapUiChartPaletteSemanticNeutralLight3="sapUiChartPaletteSemanticNeutralLight3",e.sapUiChartPaletteSemanticNeutralLight2="sapUiChartPaletteSemanticNeutralLight2",e.sapUiChartPaletteSemanticNeutralLight1="sapUiChartPaletteSemanticNeutralLight1",e.sapUiChartPaletteSemanticNeutral="sapUiChartPaletteSemanticNeutral",e.sapUiChartPaletteSemanticNeutralDark1="sapUiChartPaletteSemanticNeutralDark1",e.sapUiChartPaletteSemanticNeutralDark2="sapUiChartPaletteSemanticNeutralDark2",e.sapUiChartPaletteNoSemDiv1Dark2="sapUiChartPaletteNoSemDiv1Dark2",e.sapUiChartPaletteNoSemDiv1Dark1="sapUiChartPaletteNoSemDiv1Dark1",e.sapUiChartPaletteNoSemDiv1="sapUiChartPaletteNoSemDiv1",e.sapUiChartPaletteNoSemDiv1Light1="sapUiChartPaletteNoSemDiv1Light1",e.sapUiChartPaletteNoSemDiv1Light2="sapUiChartPaletteNoSemDiv1Light2",e.sapUiChartPaletteNoSemDiv1Light3="sapUiChartPaletteNoSemDiv1Light3",e.sapUiChartPaletteSequentialHue1Light3="sapUiChartPaletteSequentialHue1Light3",e.sapUiChartPaletteSequentialHue1Light2="sapUiChartPaletteSequentialHue1Light2",e.sapUiChartPaletteSequentialHue1Light1="sapUiChartPaletteSequentialHue1Light1",e.sapUiChartPaletteSequentialHue1="sapUiChartPaletteSequentialHue1",e.sapUiChartPaletteSequentialHue1Dark1="sapUiChartPaletteSequentialHue1Dark1",e.sapUiChartPaletteSequentialHue1Dark2="sapUiChartPaletteSequentialHue1Dark2",e.sapUiChartPaletteSequentialHue2Light3="sapUiChartPaletteSequentialHue2Light3",e.sapUiChartPaletteSequentialHue2Light2="sapUiChartPaletteSequentialHue2Light2",e.sapUiChartPaletteSequentialHue2Light1="sapUiChartPaletteSequentialHue2Light1",e.sapUiChartPaletteSequentialHue2="sapUiChartPaletteSequentialHue2",e.sapUiChartPaletteSequentialHue2Dark1="sapUiChartPaletteSequentialHue2Dark1",e.sapUiChartPaletteSequentialHue2Dark2="sapUiChartPaletteSequentialHue2Dark2",e.sapUiChartPaletteSequentialHue3Light3="sapUiChartPaletteSequentialHue3Light3",e.sapUiChartPaletteSequentialHue3Light2="sapUiChartPaletteSequentialHue3Light2",e.sapUiChartPaletteSequentialHue3Light1="sapUiChartPaletteSequentialHue3Light1",e.sapUiChartPaletteSequentialHue3="sapUiChartPaletteSequentialHue3",e.sapUiChartPaletteSequentialHue3Dark1="sapUiChartPaletteSequentialHue3Dark1",e.sapUiChartPaletteSequentialHue3Dark2="sapUiChartPaletteSequentialHue3Dark2",e.sapUiChartPaletteSequentialHue6Light3="sapUiChartPaletteSequentialHue6Light3",e.sapUiChartPaletteSequentialHue6Light2="sapUiChartPaletteSequentialHue6Light2",e.sapUiChartPaletteSequentialHue6Light1="sapUiChartPaletteSequentialHue6Light1",e.sapUiChartPaletteSequentialHue6="sapUiChartPaletteSequentialHue6",e.sapUiChartPaletteSequentialHue6Dark1="sapUiChartPaletteSequentialHue6Dark1",e.sapUiChartPaletteSequentialHue6Dark2="sapUiChartPaletteSequentialHue6Dark2",e.sapUiChartPaletteSequentialNeutralLight3="sapUiChartPaletteSequentialNeutralLight3",e.sapUiChartPaletteSequentialNeutralLight2="sapUiChartPaletteSequentialNeutralLight2",e.sapUiChartPaletteSequentialNeutralLight1="sapUiChartPaletteSequentialNeutralLight1",e.sapUiChartPaletteSequentialNeutral="sapUiChartPaletteSequentialNeutral",e.sapUiChartPaletteSequentialNeutralDark1="sapUiChartPaletteSequentialNeutralDark1",e.sapUiChartPaletteSequentialNeutralDark2="sapUiChartPaletteSequentialNeutralDark2",e.sapUiChoroplethRegionBG="sapUiChoroplethRegionBG",e.sapUiChartZeroAxisColor="sapUiChartZeroAxisColor",e.sapUiNegativeElement="sapUiNegativeElement",e.sapUiCriticalElement="sapUiCriticalElement",e.sapUiPositiveElement="sapUiPositiveElement",e.sapUiNeutralElement="sapUiNeutralElement",e))(pN||{}),dN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(dN||{}),bH={error:"Error",warning:"Warning",info:"Information"},gN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(gN||{}),mN=(e=>(e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage",e))(mN||{}),hN=(e=>(e.BuildingBlocks="BuildingBlocks",e))(hN||{}),yN={};PT(yN,{CardSettingsType:o(()=>bN,"CardSettingsType"),CardTemplateType:o(()=>TN,"CardTemplateType"),ChartCardType:o(()=>vN,"ChartCardType"),ChartType:o(()=>MN,"ChartType"),ContainerLayoutType:o(()=>$N,"ContainerLayoutType"),CreateMode:o(()=>UN,"CreateMode"),DateRangeType:o(()=>xN,"DateRangeType"),DefaultContentView:o(()=>_N,"DefaultContentView"),DefaultDateRangeValueType:o(()=>IN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>VN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>jN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>SH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>xH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>CH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>PH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>ON,"FilterPathType"),IgnoredFieldsType:o(()=>DN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>CN,"LinkListFlavorType"),ListFlavorType:o(()=>AN,"ListFlavorType"),ListTypeType:o(()=>SN,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>wN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>EN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>OH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>IH,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>RH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>LH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>NH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>kN,"SectionPosition"),SortOrderType:o(()=>PN,"SortOrderType"),Strategy:o(()=>FN,"Strategy"),TableColumnExtensionTypeV2:o(()=>RN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>LN,"TableTypeV2"),cardTemplateSettingsMap:o(()=>AH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>EH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>NN,"customColumnViewTypes")});var vN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(vN||{}),TN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(TN||{}),EH={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},AH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},bN=(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))(bN||{}),EN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(EN||{}),AN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(AN||{}),SN=(e=>(e.extended="extended",e.condensed="condensed",e))(SN||{}),PN=(e=>(e.ascending="ascending",e.descending="descending",e))(PN||{}),CN=(e=>(e.standard="standard",e.carousel="carousel",e))(CN||{}),xN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(xN||{}),IN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(IN||{}),ON=(e=>(e.key="key",e.catgory="category",e))(ON||{}),NN=(e=>(e.XML="XML",e))(NN||{}),LN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(LN||{}),RN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(RN||{}),FN=(e=>(e.extension="extension",e))(FN||{}),DN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(DN||{}),_N=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(_N||{}),VN=(e=>(e.visual="visual",e.compact="compact",e))(VN||{}),wN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(wN||{}),MN=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(MN||{}),kN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(kN||{}),jN=(e=>(e.XML="XML",e))(jN||{}),UN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(UN||{}),SH="sap.suite.ui.generic.template",PH="sap.suite.ui.generic.template.ObjectPage",CH="sap.suite.ui.generic.template.ListReport",xH="sap.suite.ui.generic.template.AnalyticalListPage",IH="sap.ui.viewExtensions",OH="sap.ui.controllerExtensions",NH="sap.suite.ui.generic.template.ObjectPage.view.Details",LH="sap.suite.ui.generic.template.ListReport.view.ListReport",RH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",$N=(e=>(e.fixed="fixed",e.resizable="resizable",e))($N||{}),BN={};PT(BN,{ActionPlacement:o(()=>HN,"ActionPlacement"),Availability:o(()=>rL,"Availability"),CustomSectionViewTypesV4:o(()=>eL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>XN,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>FH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>wH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>DH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>VH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>_H,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>kH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>zN,"FilterFieldPlacement"),HorizontalAlign:o(()=>oL,"HorizontalAlign"),InitialLayoutType:o(()=>qN,"InitialLayoutType"),InitialLoadType:o(()=>KN,"InitialLoadType"),LayoutType:o(()=>QN,"LayoutType"),Placement:o(()=>iL,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>UH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>jH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>MH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>BH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>$H,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>JN,"SectionLayoutType"),SectionPosition:o(()=>ZN,"SectionPosition"),SectionPositionV4:o(()=>nL,"SectionPositionV4"),SelectType:o(()=>YN,"SelectType"),SelectionMode:o(()=>GN,"SelectionMode"),TableCreationModeType:o(()=>tL,"TableCreationModeType"),TableTypeV4:o(()=>WN,"TableTypeV4"),VariantManagementTypeListReport:o(()=>sL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>aL,"VariantManagementTypeObjectPage")});var HN=(e=>(e.After="After",e.Before="Before",e))(HN||{}),GN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(GN||{}),WN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(WN||{}),KN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(KN||{}),XN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(XN||{}),QN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QN||{}),qN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(qN||{}),zN=(e=>(e.After="After",e.Before="Before",e))(zN||{}),YN=(e=>(e.single="single",e.multi="multi",e))(YN||{}),JN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(JN||{}),ZN=(e=>(e.After="After",e.Before="Before",e))(ZN||{}),eL=(e=>(e.XML="XML",e))(eL||{}),tL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(tL||{}),FH="sap.fe.templates",DH="sap.fe.core.fpm",_H="sap.fe.templates.ObjectPage",VH="sap.fe.templates.ListReport",wH="sap.fe.templates.AnalyticalListPage",MH="XMLFragment",nL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(nL||{}),kH="sap.f.routing.Router",jH="sap.f",UH="sap.ui.controllerExtensions",$H="sap.fe.templates.ObjectPage.ObjectPageController",BH="sap.fe.templates.ListReport.ListReportController",iL=(e=>(e.After="After",e.Before="Before",e))(iL||{}),rL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rL||{}),oL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(oL||{}),aL=(e=>(e.None="None",e.Control="Control",e))(aL||{}),sL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(sL||{})});var gL=ze(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Features=kr.CustomExtensionType=kr.TemplateType=kr.logSeverityLabel=kr.LogSeverity=void 0;var fL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(fL||(kr.LogSeverity=fL={}));kr.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var uL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(uL||(kr.TemplateType=uL={}));var pL;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(pL||(kr.CustomExtensionType=pL={}));var dL;(function(e){e.BuildingBlocks="BuildingBlocks"})(dL||(kr.Features=dL={}))});var $L=ze((IY,UL)=>{var IT=Object.defineProperty,HH=Object.getOwnPropertyDescriptor,GH=Object.getOwnPropertyNames,WH=Object.prototype.hasOwnProperty,KH=o((e,t)=>{for(var n in t)IT(e,n,{get:t[n],enumerable:!0})},"h"),XH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of GH(t))!WH.call(e,r)&&r!==n&&IT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=HH(t,r))||i.enumerable});return e},"M"),QH=o(e=>XH(IT({},"__esModule",{value:!0}),e),"Q"),mL={};KH(mL,{CardSettingsType:o(()=>vL,"CardSettingsType"),CardTemplateType:o(()=>yL,"CardTemplateType"),ChartCardType:o(()=>hL,"ChartCardType"),ChartType:o(()=>VL,"ChartType"),ContainerLayoutType:o(()=>jL,"ContainerLayoutType"),CreateMode:o(()=>kL,"CreateMode"),DateRangeType:o(()=>PL,"DateRangeType"),DefaultContentView:o(()=>FL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>CL,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>DL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>ML,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>YH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>e5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>ZH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>JH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>xL,"FilterPathType"),IgnoredFieldsType:o(()=>RL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>SL,"LinkListFlavorType"),ListFlavorType:o(()=>bL,"ListFlavorType"),ListTypeType:o(()=>EL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>_L,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>TL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>n5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>t5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>o5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>r5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>i5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>wL,"SectionPosition"),SortOrderType:o(()=>AL,"SortOrderType"),Strategy:o(()=>LL,"Strategy"),TableColumnExtensionTypeV2:o(()=>NL,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>OL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>zH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>qH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>IL,"customColumnViewTypes")});UL.exports=QH(mL);var hL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(hL||{}),yL=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(yL||{}),qH={"sap.ovp.cards.charts.analytical":"AnalyticalCard","sap.ovp.cards.v4.charts.analytical":"AnalyticalCard","sap.ovp.cards.list":"ListCard","sap.ovp.cards.v4.list":"ListCard","sap.ovp.cards.linklist":"LinklistCard","sap.ovp.cards.v4.linklist":"LinklistCard","sap.ovp.cards.table":"TableCard","sap.ovp.cards.v4.table":"TableCard","sap.ovp.cards.stack":"StackCard"},zH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},vL=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(vL||{}),TL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(TL||{}),bL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(bL||{}),EL=(e=>(e.extended="extended",e.condensed="condensed",e))(EL||{}),AL=(e=>(e.ascending="ascending",e.descending="descending",e))(AL||{}),SL=(e=>(e.standard="standard",e.carousel="carousel",e))(SL||{}),PL=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(PL||{}),CL=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(CL||{}),xL=(e=>(e.key="key",e.catgory="category",e))(xL||{}),IL=(e=>(e.XML="XML",e))(IL||{}),OL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(OL||{}),NL=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(NL||{}),LL=(e=>(e.extension="extension",e))(LL||{}),RL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(RL||{}),FL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(FL||{}),DL=(e=>(e.visual="visual",e.compact="compact",e))(DL||{}),_L=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(_L||{}),VL=(e=>(e.bar="bar",e.column="column",e.line="line",e.combination="combination",e.pie="pie",e.donut="donut",e.scatter="scatter",e.bubble="bubble",e.heatmap="heatmap",e.bullet="bullet",e.verticalBullet="vertical_bullet",e.stackedBar="stacked_bar",e.stackedColumn="stacked_column",e.stackedCombination="stacked_combination",e.horizontalStackedCombination="horizontal_stacked_combination",e.dualBar="dual_bar",e.dualColumn="dual_column",e.dualLine="dual_line",e.dualStackedBar="dual_stacked_bar",e.dualStackedColumn="dual_stacked_column",e.dualCombination="dual_combination",e.dualStackedCombination="dual_stacked_combination",e.dualHorizontalCombination="dual_horizontal_combination",e.dualHorizontalStackedCombination="dual_horizontal_stacked_combination",e.hundredStackedBar="100_stacked_bar",e.hundredStackedColumn="100_stacked_column",e.hundredDualStackedBar="100_dual_stacked_bar",e.hundredDualStackedColumn="100_dual_stacked_column",e.waterfall="waterfall",e.horizontalWaterfall="horizontal_waterfall",e))(VL||{}),wL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(wL||{}),ML=(e=>(e.XML="XML",e))(ML||{}),kL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(kL||{}),YH="sap.suite.ui.generic.template",JH="sap.suite.ui.generic.template.ObjectPage",ZH="sap.suite.ui.generic.template.ListReport",e5="sap.suite.ui.generic.template.AnalyticalListPage",t5="sap.ui.viewExtensions",n5="sap.ui.controllerExtensions",i5="sap.suite.ui.generic.template.ObjectPage.view.Details",r5="sap.suite.ui.generic.template.ListReport.view.ListReport",o5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",jL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(jL||{})});var lR=ze((NY,cR)=>{var OT=Object.defineProperty,a5=Object.getOwnPropertyDescriptor,s5=Object.getOwnPropertyNames,c5=Object.prototype.hasOwnProperty,l5=o((e,t)=>{for(var n in t)OT(e,n,{get:t[n],enumerable:!0})},"w"),f5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of s5(t))!c5.call(e,r)&&r!==n&&OT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=a5(t,r))||i.enumerable});return e},"R"),u5=o(e=>f5(OT({},"__esModule",{value:!0}),e),"h"),BL={};l5(BL,{ActionPlacement:o(()=>HL,"ActionPlacement"),Availability:o(()=>rR,"Availability"),CustomSectionViewTypesV4:o(()=>eR,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>XL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>p5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>h5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>d5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>m5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>g5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>v5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>zL,"FilterFieldPlacement"),HorizontalAlign:o(()=>oR,"HorizontalAlign"),InitialLayoutType:o(()=>qL,"InitialLayoutType"),InitialLoadType:o(()=>KL,"InitialLoadType"),LayoutType:o(()=>QL,"LayoutType"),Placement:o(()=>iR,"Placement"),SAPUI5_CONTROLLER_EXTENSION:o(()=>b5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>T5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>y5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>A5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>E5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>JL,"SectionLayoutType"),SectionPosition:o(()=>ZL,"SectionPosition"),SectionPositionV4:o(()=>nR,"SectionPositionV4"),SelectType:o(()=>YL,"SelectType"),SelectionMode:o(()=>GL,"SelectionMode"),TableCreationModeType:o(()=>tR,"TableCreationModeType"),TableTypeV4:o(()=>WL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>sR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>aR,"VariantManagementTypeObjectPage")});cR.exports=u5(BL);var HL=(e=>(e.After="After",e.Before="Before",e))(HL||{}),GL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(GL||{}),WL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(WL||{}),KL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(KL||{}),XL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(XL||{}),QL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QL||{}),qL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(qL||{}),zL=(e=>(e.After="After",e.Before="Before",e))(zL||{}),YL=(e=>(e.single="single",e.multi="multi",e))(YL||{}),JL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(JL||{}),ZL=(e=>(e.After="After",e.Before="Before",e))(ZL||{}),eR=(e=>(e.XML="XML",e))(eR||{}),tR=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(tR||{}),p5="sap.fe.templates",d5="sap.fe.core.fpm",g5="sap.fe.templates.ObjectPage",m5="sap.fe.templates.ListReport",h5="sap.fe.templates.AnalyticalListPage",y5="XMLFragment",nR=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(nR||{}),v5="sap.f.routing.Router",T5="sap.f",b5="sap.ui.controllerExtensions",E5="sap.fe.templates.ObjectPage.ObjectPageController",A5="sap.fe.templates.ListReport.ListReportController",iR=(e=>(e.After="After",e.Before="Before",e))(iR||{}),rR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(rR||{}),oR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(oR||{}),aR=(e=>(e.None="None",e.Control="Control",e))(aR||{}),sR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(sR||{})});var le=ze(Ti=>{"use strict";var fR=Ti&&Ti.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),S5=Ti&&Ti.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),uR=Ti&&Ti.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&fR(t,e,n)},pR=Ti&&Ti.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&fR(n,t,i[r]);return S5(n,t),n}}();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.v4=Ti.v2=void 0;uR(lL(),Ti);uR(gL(),Ti);Ti.v2=pR($L());Ti.v4=pR(lR())});var KT=ze((qY,xR)=>{"use strict";var B5=o(function(t){return H5(t)&&!G5(t)},"isMergeableObject");function H5(e){return!!e&&typeof e=="object"}o(H5,"isNonNullObject");function G5(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||X5(e)}o(G5,"isSpecial");var W5=typeof Symbol=="function"&&Symbol.for,K5=W5?Symbol.for("react.element"):60103;function X5(e){return e.$$typeof===K5}o(X5,"isReactElement");function Q5(e){return Array.isArray(e)?[]:{}}o(Q5,"emptyTarget");function tu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?sl(Q5(e),e,t):e}o(tu,"cloneUnlessOtherwiseSpecified");function q5(e,t,n){return e.concat(t).map(function(i){return tu(i,n)})}o(q5,"defaultArrayMerge");function z5(e,t){if(!t.customMerge)return sl;var n=t.customMerge(e);return typeof n=="function"?n:sl}o(z5,"getMergeFunction");function Y5(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(Y5,"getEnumerableOwnPropertySymbols");function PR(e){return Object.keys(e).concat(Y5(e))}o(PR,"getKeys");function CR(e,t){try{return t in e}catch{return!1}}o(CR,"propertyIsOnObject");function J5(e,t){return CR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(J5,"propertyIsUnsafe");function Z5(e,t,n){var i={};return n.isMergeableObject(e)&&PR(e).forEach(function(r){i[r]=tu(e[r],n)}),PR(t).forEach(function(r){J5(e,r)||(CR(e,r)&&n.isMergeableObject(t[r])?i[r]=z5(r,n)(e[r],t[r],n):i[r]=tu(t[r],n))}),i}o(Z5,"mergeObject");function sl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||q5,n.isMergeableObject=n.isMergeableObject||B5,n.cloneUnlessOtherwiseSpecified=tu;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):Z5(e,t,n):tu(t,n)}o(sl,"deepmerge");sl.all=o(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return sl(i,r,n)},{})},"deepmergeAll");var eG=sl;xR.exports=eG});var vg=ze(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.Double=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var tG=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return tG.EnumIsFlag},"get")});var nG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:o(function(){return nG.TermToTypes},"get")});var iG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return iG.VocabularyReferences},"get")});function IR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(IR,"splitAt");function OR(e,t){return t<0?e:e.substring(0,t)}o(OR,"substringAt");function yg(e,t){return IR(e,e.indexOf(t))}o(yg,"splitAtFirst");vt.splitAtFirst=yg;function NR(e,t){return IR(e,e.lastIndexOf(t))}o(NR,"splitAtLast");vt.splitAtLast=NR;function rG(e,t){return OR(e,e.indexOf(t))}o(rG,"substringBeforeFirst");vt.substringBeforeFirst=rG;function oG(e,t){return OR(e,e.lastIndexOf(t))}o(oG,"substringBeforeLast");vt.substringBeforeLast=oG;function LR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=NR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=yg(t,"@");return`${a}@${LR(e,s)}`}else return t}o(LR,"alias");vt.alias=LR;function XT(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=yg(a,".");if(!l||l.includes("."))return a;let u=s.startsWith("@"),p=u?s.substring(1):s,g=e.referenceMap[p];return g?u?`@${g.namespace}.${l}`:`${g.namespace}.${l}`:n&&!u?`${n}.${l}`:a},"_unalias");return(i=t==null?void 0:t.split("/").reduce((a,s)=>{let[l,u]=yg(s,"("),p=[r(l)];if(u){let g=u.slice(0,-1);p.push(`(${r(g)})`)}return a.push(p.join("")),a},[]))===null||i===void 0?void 0:i.join("/")}o(XT,"unalias");vt.unalias=XT;function aG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(aG,"isComplexTypeDefinition");vt.isComplexTypeDefinition=aG;function sG(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(sG,"Double");vt.Double=sG;function cG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(cG,"Decimal");vt.Decimal=cG;function lG(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(lG,"lazy");vt.lazy=lG;function RR(e,t){let n=new Map;return o(function(r){let a=n.get(r);return(a==null?void 0:a[t])===r?a:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}o(RR,"createIndexedFind");vt.createIndexedFind=RR;function fG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:RR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(fG,"addGetByValue");vt.addGetByValue=fG;function uG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=XT(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=XT(e,g.term))!==null&&m!==void 0?m:g.term,g.fullyQualifiedName=g.qualifier?`${u}@${g.term}#${g.qualifier}`:`${u}@${g.term}`,g.__source=i,g}).filter(g=>!n[u].some(m=>m.term===g.term&&m.qualifier===g.qualifier));n[u].push(...p)}return n},{})}o(uG,"mergeAnnotations");vt.mergeAnnotations=uG});var WR=ze(Eg=>{"use strict";Object.defineProperty(Eg,"__esModule",{value:!0});Eg.convert=void 0;var Tg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=vg(),io=Symbol("Annotation Target");function aa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(aa,"appendObjectPath");function gr(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,Se.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[io]!==void 0)t=t[io];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,T)=>{var A,b,O,F,j;let K=o(U=>(m.messages.push({message:U}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=aa(m.objectPath,m.target),T.startsWith("@")&&T!=="@$ui5.overload"){let[U,ae]=e.splitTerm(T),Z=(A=m.target.annotations[U.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):K(`Annotation '${T.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let U;if(T==="$AnnotationPath"?U=m.target.value:T==="$Path"&&(U=m.target.path),U!==void 0){let ae=gr(e,m.target[io],U);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=aa(m.objectPath,Z))}),m.target=ae.target,m.objectPath=aa(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=(F=(O=Z.entitySets.by_name(T))!==null&&O!==void 0?O:Z.singletons.by_name(T))!==null&&F!==void 0?F: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 Pe=Z.navigationPropertyBinding;return m.target=Pe,m}let re=gr(e,Z.entityType,T);return m.target=re.target,m.objectPath=re.objectPath.reduce(aa,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 Pe=Z.navigationProperties.by_name(T);if(Pe)return m.target=Pe,m;let D=(0,Se.substringBeforeFirst)(e.unalias(T),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=gr(e,m.target.action,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(aa,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=(j=Z.parameters[T])!==null&&j!==void 0?j:Z.parameters.find(Pe=>Pe.name===T);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let Pe=re.properties.by_name(T);if(Pe)return m.target=Pe,m;let D=re.navigationProperties.by_name(T);if(D)return m.target=D,m}}break;case"ActionParameter":let U=m.target.typeReference;if(U!==void 0){let Z=gr(e,U,T);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(aa,m.objectPath),m}break;case"NavigationProperty":let ae=gr(e,m.target.targetType,T);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(aa,m.objectPath),m;default:if(T==="")return m;if(m.target[T])return m.target=m.target[T],m.objectPath=aa(m.objectPath,m.target),m}return K(`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=wR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
1
+ var rH=Object.create;var rl=Object.defineProperty;var GI=Object.getOwnPropertyDescriptor;var oH=Object.getOwnPropertyNames;var aH=Object.getPrototypeOf,sH=Object.prototype.hasOwnProperty;var o=(e,t)=>rl(e,"name",{value:t,configurable:!0});var qe=(e,t)=>()=>(e&&(t=e(e=0)),t);var ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qs=(e,t)=>{for(var n in t)rl(e,n,{get:t[n],enumerable:!0})},gg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of oH(t))!sH.call(e,r)&&r!==n&&rl(e,r,{get:()=>t[r],enumerable:!(i=GI(t,r))||i.enumerable});return e},qs=(e,t,n)=>(gg(e,t,"default"),n&&gg(n,t,"default")),ie=(e,t,n)=>(n=e!=null?rH(aH(e)):{},gg(t||!e||!e.__esModule?rl(n,"default",{value:e,enumerable:!0}):n,e)),mg=e=>gg(rl({},"__esModule",{value:!0}),e),h=(e,t,n,i)=>{for(var r=i>1?void 0:i?GI(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&&rl(t,n,r),r};var EL=ze((UY,bL)=>{var DT=Object.defineProperty,cH=Object.getOwnPropertyDescriptor,lH=Object.getOwnPropertyNames,fH=Object.prototype.hasOwnProperty,_T=o((e,t)=>{for(var n in t)DT(e,n,{get:t[n],enumerable:!0})},"C"),uH=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of lH(t))!fH.call(e,r)&&r!==n&&DT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=cH(t,r))||i.enumerable});return e},"Ze"),pH=o(e=>uH(DT({},"__esModule",{value:!0}),e),"et"),WI={};_T(WI,{ACTIONTITLEPREFIX:o(()=>hH,"ACTIONTITLEPREFIX"),ALPViewType:o(()=>JI,"ALPViewType"),ActionType:o(()=>tN,"ActionType"),ArtifactType:o(()=>eN,"ArtifactType"),BINDINGPROPERTYREGEXSTRING:o(()=>vH,"BINDINGPROPERTYREGEXSTRING"),ChangeIndicator:o(()=>aN,"ChangeIndicator"),ChartColor:o(()=>SN,"ChartColor"),CloudDevAdaptationStatus:o(()=>vN,"CloudDevAdaptationStatus"),ColorPaletteDefinitionType:o(()=>EN,"ColorPaletteDefinitionType"),ControlType:o(()=>nN,"ControlType"),CustomExtensionType:o(()=>CN,"CustomExtensionType"),DATESETTINGSPATH:o(()=>OH,"DATESETTINGSPATH"),DataSourceType:o(()=>TN,"DataSourceType"),DefinitionName:o(()=>lN,"DefinitionName"),DirName:o(()=>rN,"DirName"),DraftDiscardEnabledSettings:o(()=>gN,"DraftDiscardEnabledSettings"),ExportArtifacts:o(()=>YI,"ExportArtifacts"),FACETTITLEPREFIX:o(()=>mH,"FACETTITLEPREFIX"),FIORI_FCL_ROOT_ID:o(()=>RH,"FIORI_FCL_ROOT_ID"),FIORI_FCL_ROOT_VIEW_NAME:o(()=>LH,"FIORI_FCL_ROOT_VIEW_NAME"),FRAGMENTNAMEPART:o(()=>IH,"FRAGMENTNAMEPART"),FacetBase:o(()=>sN,"FacetBase"),Features:o(()=>ON,"Features"),FileName:o(()=>oN,"FileName"),FioriElementsVersion:o(()=>KI,"FioriElementsVersion"),FlexChangeLayer:o(()=>qI,"FlexChangeLayer"),FlexibleColumnLayoutAggregations:o(()=>yN,"FlexibleColumnLayoutAggregations"),FlexibleColumnLayoutType:o(()=>QI,"FlexibleColumnLayoutType"),GENERICAPPSETTINGS:o(()=>NH,"GENERICAPPSETTINGS"),LogSeverity:o(()=>PN,"LogSeverity"),MANIFESTPATH:o(()=>TH,"MANIFESTPATH"),MacrosPropertyType:o(()=>dN,"MacrosPropertyType"),ManifestSection:o(()=>bN,"ManifestSection"),OdataVersion:o(()=>XI,"OdataVersion"),PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:o(()=>gH,"PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP"),PageType:o(()=>dH,"PageType"),PageTypeV2:o(()=>VT,"PageTypeV2"),PageTypeV4:o(()=>wT,"PageTypeV4"),PropertyName:o(()=>fN,"PropertyName"),QUICKVARPATH:o(()=>xH,"QUICKVARPATH"),QUICKVARPATHX:o(()=>CH,"QUICKVARPATHX"),SAPUI5_FRAGMENT_CLASS:o(()=>DH,"SAPUI5_FRAGMENT_CLASS"),SAPUI5_VIEW_CLASS:o(()=>FH,"SAPUI5_VIEW_CLASS"),SchemaKeyName:o(()=>pN,"SchemaKeyName"),SchemaTag:o(()=>uN,"SchemaTag"),SchemaType:o(()=>zI,"SchemaType"),SectionType:o(()=>ZI,"SectionType"),StatePreservationMode:o(()=>hN,"StatePreservationMode"),TableColumnVerticalAlignment:o(()=>mN,"TableColumnVerticalAlignment"),TemplateType:o(()=>xN,"TemplateType"),UIVOCABULARY:o(()=>AH,"UIVOCABULARY"),UIVOCABULARYALPHADOT:o(()=>PH,"UIVOCABULARYALPHADOT"),UIVOCABULARYDOT:o(()=>SH,"UIVOCABULARYDOT"),VOCWITHCOLONS:o(()=>EH,"VOCWITHCOLONS"),VOCWITHSLASH:o(()=>bH,"VOCWITHSLASH"),ViewTemplateType:o(()=>cN,"ViewTemplateType"),ViewTypes:o(()=>AN,"ViewTypes"),Visualization:o(()=>iN,"Visualization"),defaultExportResult:o(()=>yH,"defaultExportResult"),logSeverityLabel:o(()=>_H,"logSeverityLabel"),v2:o(()=>IN,"v2"),v4:o(()=>ZN,"v4")});bL.exports=pH(WI);var VT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(VT||{}),wT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(wT||{}),dH={...VT,...wT},gH=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"]]),KI=(e=>(e.v2="v2",e.v4="v4",e))(KI||{}),XI=(e=>(e.v2="v2",e.v4="v4",e))(XI||{}),QI=(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))(QI||{}),qI=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(qI||{}),zI=(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))(zI||{}),YI=(e=>(e.flex="flex",e.manifest="manifest",e))(YI||{}),JI=(e=>(e.Primary="primary",e.Secondary="secondary",e))(JI||{}),ZI=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(ZI||{}),eN=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(eN||{}),tN=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.RelatedApps="RelatedApps",e.Standard="Standard",e))(tN||{}),nN=(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))(nN||{}),iN=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(iN||{}),rN=(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))(rN||{}),oN=(e=>(e.App="app.json",e))(oN||{}),mH="Facet ID: ",hH="Action ID: ",aN=(e=>(e.NoChange="NoChange",e.Created="Created",e.Updated="Updated",e.Deleted="Deleted",e))(aN||{}),yH={manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},manifestChangeIndicator:"NoChange",flexChanges:[],fragments:[],views:[]},sN=(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))(sN||{}),vH="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",cN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(cN||{}),lN=(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.ObjectPageResponsiveTableV4="ObjectPageResponsiveTableV4",e.ObjectPageAnalyticalTableV4="ObjectPageAnalyticalTableV4",e.ObjectPageGridTableV4="ObjectPageGridTableV4",e.ObjectPageTreeTableV4="ObjectPageTreeTableV4",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))(lN||{}),fN=(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))(fN||{}),uN=(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))(uN||{}),pN=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(pN||{}),TH="webapp/manifest.json",bH="/@com.sap.vocabularies",EH="::@com.sap.vocabularies",AH="com.sap.vocabularies.UI.v1",SH="com.sap.vocabularies.UI.v1.",PH="@com.sap.vocabularies.UI.v1.",xH="/quickVariantSelection",CH="/quickVariantSelectionX",OH="/filterSettings/dateSettings",IH=".fragment.",dN=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(dN||{}),gN=(e=>(e.restricted="restricted",e))(gN||{}),mN=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(mN||{}),hN=(e=>(e.persistence="persistence",e.discovery="discovery",e))(hN||{}),yN=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(yN||{}),vN=(e=>(e.Released="released",e.Deprecated="deprecated",e.Obsolete="obsolete",e))(vN||{}),TN=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(TN||{}),bN=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e.fiori="sap.fiori",e))(bN||{}),NH="sap.ui.generic.app/settings",EN=(e=>(e.SemanticColoring="SemanticColoring",e.StableColoring="StableColoring",e.MapDimensionValues="MapDimensionValues",e))(EN||{}),LH="sap.fe.templates.RootContainer.view.Fcl",RH="appRootView",AN=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(AN||{}),FH="sap.ui.core.mvc.View",DH="sap.ui.core.Fragment",SN=(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))(SN||{}),PN=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(PN||{}),_H={error:"Error",warning:"Warning",info:"Information"},xN=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(xN||{}),CN=(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))(CN||{}),ON=(e=>(e.BuildingBlocks="BuildingBlocks",e))(ON||{}),IN={};_T(IN,{CardSettingsType:o(()=>RN,"CardSettingsType"),CardTemplateType:o(()=>LN,"CardTemplateType"),ChartCardType:o(()=>NN,"ChartCardType"),ChartType:o(()=>QN,"ChartType"),ContainerLayoutType:o(()=>JN,"ContainerLayoutType"),CreateMode:o(()=>YN,"CreateMode"),DateRangeType:o(()=>MN,"DateRangeType"),DefaultContentView:o(()=>WN,"DefaultContentView"),DefaultDateRangeValueType:o(()=>kN,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>KN,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>zN,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>MH,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>UH,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>jH,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>kH,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>jN,"FilterPathType"),IgnoredFieldsType:o(()=>GN,"IgnoredFieldsType"),LinkListFlavorType:o(()=>wN,"LinkListFlavorType"),ListFlavorType:o(()=>DN,"ListFlavorType"),ListTypeType:o(()=>_N,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>XN,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>FN,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>BH,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>$H,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>WH,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>GH,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>HH,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>qN,"SectionPosition"),SortOrderType:o(()=>VN,"SortOrderType"),Strategy:o(()=>HN,"Strategy"),TableColumnExtensionTypeV2:o(()=>BN,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>$N,"TableTypeV2"),cardTemplateSettingsMap:o(()=>wH,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>VH,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>UN,"customColumnViewTypes")});var NN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(NN||{}),LN=(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))(LN||{}),VH={"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"},wH={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},RN=(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))(RN||{}),FN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(FN||{}),DN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(DN||{}),_N=(e=>(e.extended="extended",e.condensed="condensed",e))(_N||{}),VN=(e=>(e.ascending="ascending",e.descending="descending",e))(VN||{}),wN=(e=>(e.standard="standard",e.carousel="carousel",e))(wN||{}),MN=(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))(MN||{}),kN=(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))(kN||{}),jN=(e=>(e.key="key",e.catgory="category",e))(jN||{}),UN=(e=>(e.XML="XML",e))(UN||{}),$N=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))($N||{}),BN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(BN||{}),HN=(e=>(e.extension="extension",e))(HN||{}),GN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(GN||{}),WN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(WN||{}),KN=(e=>(e.visual="visual",e.compact="compact",e))(KN||{}),XN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(XN||{}),QN=(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))(QN||{}),qN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(qN||{}),zN=(e=>(e.XML="XML",e))(zN||{}),YN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(YN||{}),MH="sap.suite.ui.generic.template",kH="sap.suite.ui.generic.template.ObjectPage",jH="sap.suite.ui.generic.template.ListReport",UH="sap.suite.ui.generic.template.AnalyticalListPage",$H="sap.ui.viewExtensions",BH="sap.ui.controllerExtensions",HH="sap.suite.ui.generic.template.ObjectPage.view.Details",GH="sap.suite.ui.generic.template.ListReport.view.ListReport",WH="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",JN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(JN||{}),ZN={};_T(ZN,{ActionPlacement:o(()=>eL,"ActionPlacement"),Availability:o(()=>hL,"Availability"),CustomSectionViewTypesV4:o(()=>pL,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>oL,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>KH,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>zH,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>XH,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>qH,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>QH,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>JH,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>cL,"FilterFieldPlacement"),HorizontalAlign:o(()=>yL,"HorizontalAlign"),InitialLayoutType:o(()=>sL,"InitialLayoutType"),InitialLoadType:o(()=>rL,"InitialLoadType"),LayoutType:o(()=>aL,"LayoutType"),Placement:o(()=>mL,"Placement"),RowCountMode:o(()=>nL,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>e5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>ZH,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>YH,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>n5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>t5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>fL,"SectionLayoutType"),SectionPosition:o(()=>uL,"SectionPosition"),SectionPositionV4:o(()=>gL,"SectionPositionV4"),SelectType:o(()=>lL,"SelectType"),SelectionMode:o(()=>tL,"SelectionMode"),TableCreationModeType:o(()=>dL,"TableCreationModeType"),TableTypeV4:o(()=>iL,"TableTypeV4"),VariantManagementTypeListReport:o(()=>TL,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>vL,"VariantManagementTypeObjectPage")});var eL=(e=>(e.After="After",e.Before="Before",e))(eL||{}),tL=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(tL||{}),nL=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(nL||{}),iL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(iL||{}),rL=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(rL||{}),oL=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(oL||{}),aL=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(aL||{}),sL=(e=>(e.Compact="Compact",e.Visual="Visual",e))(sL||{}),cL=(e=>(e.After="After",e.Before="Before",e))(cL||{}),lL=(e=>(e.single="single",e.multi="multi",e))(lL||{}),fL=(e=>(e.Tabs="Tabs",e.Page="Page",e))(fL||{}),uL=(e=>(e.After="After",e.Before="Before",e))(uL||{}),pL=(e=>(e.XML="XML",e))(pL||{}),dL=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(dL||{}),KH="sap.fe.templates",XH="sap.fe.core.fpm",QH="sap.fe.templates.ObjectPage",qH="sap.fe.templates.ListReport",zH="sap.fe.templates.AnalyticalListPage",YH="XMLFragment",gL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(gL||{}),JH="sap.f.routing.Router",ZH="sap.f",e5="sap.ui.controllerExtensions",t5="sap.fe.templates.ObjectPage.ObjectPageController",n5="sap.fe.templates.ListReport.ListReportController",mL=(e=>(e.After="After",e.Before="Before",e))(mL||{}),hL=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(hL||{}),yL=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(yL||{}),vL=(e=>(e.None="None",e.Control="Control",e))(vL||{}),TL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(TL||{})});var CL=ze(kr=>{"use strict";Object.defineProperty(kr,"__esModule",{value:!0});kr.Features=kr.CustomExtensionType=kr.TemplateType=kr.logSeverityLabel=kr.LogSeverity=void 0;var AL;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(AL||(kr.LogSeverity=AL={}));kr.logSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var SL;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(SL||(kr.TemplateType=SL={}));var PL;(function(e){e.ControllerExtension="ControllerExtension",e.CustomAction="CustomAction",e.CustomColumn="CustomColumn",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e.CustomPage="CustomPage",e.CustomSection="CustomSection",e.CustomSubSection="CustomSubSection",e.CustomView="CustomView",e.ListReport="ListReport",e.ObjectPage="ObjectPage"})(PL||(kr.CustomExtensionType=PL={}));var xL;(function(e){e.BuildingBlocks="BuildingBlocks"})(xL||(kr.Features=xL={}))});var ZL=ze((HY,JL)=>{var MT=Object.defineProperty,i5=Object.getOwnPropertyDescriptor,r5=Object.getOwnPropertyNames,o5=Object.prototype.hasOwnProperty,a5=o((e,t)=>{for(var n in t)MT(e,n,{get:t[n],enumerable:!0})},"h"),s5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of r5(t))!o5.call(e,r)&&r!==n&&MT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=i5(t,r))||i.enumerable});return e},"M"),c5=o(e=>s5(MT({},"__esModule",{value:!0}),e),"Q"),OL={};a5(OL,{CardSettingsType:o(()=>LL,"CardSettingsType"),CardTemplateType:o(()=>NL,"CardTemplateType"),ChartCardType:o(()=>IL,"ChartCardType"),ChartType:o(()=>XL,"ChartType"),ContainerLayoutType:o(()=>YL,"ContainerLayoutType"),CreateMode:o(()=>zL,"CreateMode"),DateRangeType:o(()=>wL,"DateRangeType"),DefaultContentView:o(()=>GL,"DefaultContentView"),DefaultDateRangeValueType:o(()=>ML,"DefaultDateRangeValueType"),DefaultFilterMode:o(()=>WL,"DefaultFilterMode"),ExtensionFragmentTypes:o(()=>qL,"ExtensionFragmentTypes"),FE_TEMPLATE_V2:o(()=>u5,"FE_TEMPLATE_V2"),FE_TEMPLATE_V2_ALP:o(()=>g5,"FE_TEMPLATE_V2_ALP"),FE_TEMPLATE_V2_LIST_REPORT:o(()=>d5,"FE_TEMPLATE_V2_LIST_REPORT"),FE_TEMPLATE_V2_OBJECT_PAGE:o(()=>p5,"FE_TEMPLATE_V2_OBJECT_PAGE"),FilterPathType:o(()=>kL,"FilterPathType"),IgnoredFieldsType:o(()=>HL,"IgnoredFieldsType"),LinkListFlavorType:o(()=>VL,"LinkListFlavorType"),ListFlavorType:o(()=>FL,"ListFlavorType"),ListTypeType:o(()=>DL,"ListTypeType"),LoadDataOnAppLaunchSettings:o(()=>KL,"LoadDataOnAppLaunchSettings"),MeasureAggregateValues:o(()=>RL,"MeasureAggregateValues"),SAPUI5_CONTROLLER_EXTENSION:o(()=>h5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_VIEW_EXTENSION:o(()=>m5,"SAPUI5_VIEW_EXTENSION"),SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:o(()=>T5,"SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>v5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>y5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionPosition:o(()=>QL,"SectionPosition"),SortOrderType:o(()=>_L,"SortOrderType"),Strategy:o(()=>BL,"Strategy"),TableColumnExtensionTypeV2:o(()=>$L,"TableColumnExtensionTypeV2"),TableTypeV2:o(()=>UL,"TableTypeV2"),cardTemplateSettingsMap:o(()=>f5,"cardTemplateSettingsMap"),cardTemplateTypeMap:o(()=>l5,"cardTemplateTypeMap"),customColumnViewTypes:o(()=>jL,"customColumnViewTypes")});JL.exports=c5(OL);var IL=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(IL||{}),NL=(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))(NL||{}),l5={"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"},f5={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},LL=(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))(LL||{}),RL=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(RL||{}),FL=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(FL||{}),DL=(e=>(e.extended="extended",e.condensed="condensed",e))(DL||{}),_L=(e=>(e.ascending="ascending",e.descending="descending",e))(_L||{}),VL=(e=>(e.standard="standard",e.carousel="carousel",e))(VL||{}),wL=(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))(wL||{}),ML=(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))(ML||{}),kL=(e=>(e.key="key",e.catgory="category",e))(kL||{}),jL=(e=>(e.XML="XML",e))(jL||{}),UL=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(UL||{}),$L=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))($L||{}),BL=(e=>(e.extension="extension",e))(BL||{}),HL=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(HL||{}),GL=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(GL||{}),WL=(e=>(e.visual="visual",e.compact="compact",e))(WL||{}),KL=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(KL||{}),XL=(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))(XL||{}),QL=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(QL||{}),qL=(e=>(e.XML="XML",e))(qL||{}),zL=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(zL||{}),u5="sap.suite.ui.generic.template",p5="sap.suite.ui.generic.template.ObjectPage",d5="sap.suite.ui.generic.template.ListReport",g5="sap.suite.ui.generic.template.AnalyticalListPage",m5="sap.ui.viewExtensions",h5="sap.ui.controllerExtensions",y5="sap.suite.ui.generic.template.ObjectPage.view.Details",v5="sap.suite.ui.generic.template.ListReport.view.ListReport",T5="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",YL=(e=>(e.fixed="fixed",e.resizable="resizable",e))(YL||{})});var AR=ze((WY,ER)=>{var kT=Object.defineProperty,b5=Object.getOwnPropertyDescriptor,E5=Object.getOwnPropertyNames,A5=Object.prototype.hasOwnProperty,S5=o((e,t)=>{for(var n in t)kT(e,n,{get:t[n],enumerable:!0})},"j"),P5=o((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of E5(t))!A5.call(e,r)&&r!==n&&kT(e,r,{get:o(()=>t[r],"get"),enumerable:!(i=b5(t,r))||i.enumerable});return e},"R"),x5=o(e=>P5(kT({},"__esModule",{value:!0}),e),"h"),eR={};S5(eR,{ActionPlacement:o(()=>tR,"ActionPlacement"),Availability:o(()=>yR,"Availability"),CustomSectionViewTypesV4:o(()=>dR,"CustomSectionViewTypesV4"),DefaultPathType:o(()=>aR,"DefaultPathType"),FE_TEMPLATE_V4:o(()=>C5,"FE_TEMPLATE_V4"),FE_TEMPLATE_V4_ALP:o(()=>L5,"FE_TEMPLATE_V4_ALP"),FE_TEMPLATE_V4_CUSTOM_PAGE:o(()=>O5,"FE_TEMPLATE_V4_CUSTOM_PAGE"),FE_TEMPLATE_V4_LIST_REPORT:o(()=>N5,"FE_TEMPLATE_V4_LIST_REPORT"),FE_TEMPLATE_V4_OBJECT_PAGE:o(()=>I5,"FE_TEMPLATE_V4_OBJECT_PAGE"),FIORI_FCL_ROUTER_CLASS:o(()=>F5,"FIORI_FCL_ROUTER_CLASS"),FilterFieldPlacement:o(()=>lR,"FilterFieldPlacement"),HorizontalAlign:o(()=>vR,"HorizontalAlign"),InitialLayoutType:o(()=>cR,"InitialLayoutType"),InitialLoadType:o(()=>oR,"InitialLoadType"),LayoutType:o(()=>sR,"LayoutType"),Placement:o(()=>hR,"Placement"),RowCountMode:o(()=>iR,"RowCountMode"),SAPUI5_CONTROLLER_EXTENSION:o(()=>_5,"SAPUI5_CONTROLLER_EXTENSION"),SAPUI5_DEPENDENCY_LIB_SAP_F:o(()=>D5,"SAPUI5_DEPENDENCY_LIB_SAP_F"),SAPUI5_FRAGMENT_TYPE_V4:o(()=>R5,"SAPUI5_FRAGMENT_TYPE_V4"),SAPUI5_VIEW_EXTENSION_LIST_REPORT:o(()=>w5,"SAPUI5_VIEW_EXTENSION_LIST_REPORT"),SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:o(()=>V5,"SAPUI5_VIEW_EXTENSION_OBJECT_PAGE"),SectionLayoutType:o(()=>uR,"SectionLayoutType"),SectionPosition:o(()=>pR,"SectionPosition"),SectionPositionV4:o(()=>mR,"SectionPositionV4"),SelectType:o(()=>fR,"SelectType"),SelectionMode:o(()=>nR,"SelectionMode"),TableCreationModeType:o(()=>gR,"TableCreationModeType"),TableTypeV4:o(()=>rR,"TableTypeV4"),VariantManagementTypeListReport:o(()=>bR,"VariantManagementTypeListReport"),VariantManagementTypeObjectPage:o(()=>TR,"VariantManagementTypeObjectPage")});ER.exports=x5(eR);var tR=(e=>(e.After="After",e.Before="Before",e))(tR||{}),nR=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(nR||{}),iR=(e=>(e.Fixed="Fixed",e.Auto="Auto",e))(iR||{}),rR=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(rR||{}),oR=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(oR||{}),aR=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(aR||{}),sR=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(sR||{}),cR=(e=>(e.Compact="Compact",e.Visual="Visual",e))(cR||{}),lR=(e=>(e.After="After",e.Before="Before",e))(lR||{}),fR=(e=>(e.single="single",e.multi="multi",e))(fR||{}),uR=(e=>(e.Tabs="Tabs",e.Page="Page",e))(uR||{}),pR=(e=>(e.After="After",e.Before="Before",e))(pR||{}),dR=(e=>(e.XML="XML",e))(dR||{}),gR=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(gR||{}),C5="sap.fe.templates",O5="sap.fe.core.fpm",I5="sap.fe.templates.ObjectPage",N5="sap.fe.templates.ListReport",L5="sap.fe.templates.AnalyticalListPage",R5="XMLFragment",mR=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(mR||{}),F5="sap.f.routing.Router",D5="sap.f",_5="sap.ui.controllerExtensions",V5="sap.fe.templates.ObjectPage.ObjectPageController",w5="sap.fe.templates.ListReport.ListReportController",hR=(e=>(e.After="After",e.Before="Before",e))(hR||{}),yR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(yR||{}),vR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(vR||{}),TR=(e=>(e.None="None",e.Control="Control",e))(TR||{}),bR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(bR||{})});var le=ze(Ti=>{"use strict";var SR=Ti&&Ti.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),M5=Ti&&Ti.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),PR=Ti&&Ti.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&SR(t,e,n)},xR=Ti&&Ti.__importStar||function(){var e=o(function(t){return e=Object.getOwnPropertyNames||function(n){var i=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(i[i.length]=r);return i},e(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var n={};if(t!=null)for(var i=e(t),r=0;r<i.length;r++)i[r]!=="default"&&SR(n,t,i[r]);return M5(n,t),n}}();Object.defineProperty(Ti,"__esModule",{value:!0});Ti.v4=Ti.v2=void 0;PR(EL(),Ti);PR(CL(),Ti);Ti.v2=xR(ZL());Ti.v4=xR(AR())});var nb=ze((uJ,jR)=>{"use strict";var nG=o(function(t){return iG(t)&&!rG(t)},"isMergeableObject");function iG(e){return!!e&&typeof e=="object"}o(iG,"isNonNullObject");function rG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||sG(e)}o(rG,"isSpecial");var oG=typeof Symbol=="function"&&Symbol.for,aG=oG?Symbol.for("react.element"):60103;function sG(e){return e.$$typeof===aG}o(sG,"isReactElement");function cG(e){return Array.isArray(e)?[]:{}}o(cG,"emptyTarget");function iu(e,t){return t.clone!==!1&&t.isMergeableObject(e)?cl(cG(e),e,t):e}o(iu,"cloneUnlessOtherwiseSpecified");function lG(e,t,n){return e.concat(t).map(function(i){return iu(i,n)})}o(lG,"defaultArrayMerge");function fG(e,t){if(!t.customMerge)return cl;var n=t.customMerge(e);return typeof n=="function"?n:cl}o(fG,"getMergeFunction");function uG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}o(uG,"getEnumerableOwnPropertySymbols");function MR(e){return Object.keys(e).concat(uG(e))}o(MR,"getKeys");function kR(e,t){try{return t in e}catch{return!1}}o(kR,"propertyIsOnObject");function pG(e,t){return kR(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}o(pG,"propertyIsUnsafe");function dG(e,t,n){var i={};return n.isMergeableObject(e)&&MR(e).forEach(function(r){i[r]=iu(e[r],n)}),MR(t).forEach(function(r){pG(e,r)||(kR(e,r)&&n.isMergeableObject(t[r])?i[r]=fG(r,n)(e[r],t[r],n):i[r]=iu(t[r],n))}),i}o(dG,"mergeObject");function cl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||lG,n.isMergeableObject=n.isMergeableObject||nG,n.cloneUnlessOtherwiseSpecified=iu;var i=Array.isArray(t),r=Array.isArray(e),a=i===r;return a?i?n.arrayMerge(e,t,n):dG(e,t,n):iu(t,n)}o(cl,"deepmerge");cl.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 cl(i,r,n)},{})},"deepmergeAll");var gG=cl;jR.exports=gG});var xg=ze(vt=>{"use strict";Object.defineProperty(vt,"__esModule",{value:!0});vt.mergeAnnotations=vt.addGetByValue=vt.createIndexedFind=vt.lazy=vt.Decimal=vt.Double=vt.isComplexTypeDefinition=vt.unalias=vt.alias=vt.substringBeforeLast=vt.substringBeforeFirst=vt.splitAtLast=vt.splitAtFirst=vt.defaultReferences=vt.TermToTypes=vt.EnumIsFlag=void 0;var mG=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(vt,"EnumIsFlag",{enumerable:!0,get:o(function(){return mG.EnumIsFlag},"get")});var hG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(vt,"TermToTypes",{enumerable:!0,get:o(function(){return hG.TermToTypes},"get")});var yG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(vt,"defaultReferences",{enumerable:!0,get:o(function(){return yG.VocabularyReferences},"get")});function UR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}o(UR,"splitAt");function $R(e,t){return t<0?e:e.substring(0,t)}o($R,"substringAt");function Pg(e,t){return UR(e,e.indexOf(t))}o(Pg,"splitAtFirst");vt.splitAtFirst=Pg;function BR(e,t){return UR(e,e.lastIndexOf(t))}o(BR,"splitAtLast");vt.splitAtLast=BR;function vG(e,t){return $R(e,e.indexOf(t))}o(vG,"substringBeforeFirst");vt.substringBeforeFirst=vG;function TG(e,t){return $R(e,e.lastIndexOf(t))}o(TG,"substringBeforeLast");vt.substringBeforeLast=TG;function HR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((a,s)=>(a[s.namespace]=s,a),{})),!t)return t;let[n,i]=BR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[a,s]=Pg(t,"@");return`${a}@${HR(e,s)}`}else return t}o(HR,"alias");vt.alias=HR;function ib(e,t,n){var i;let r=o(a=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=Pg(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]=Pg(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(ib,"unalias");vt.unalias=ib;function bG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}o(bG,"isComplexTypeDefinition");vt.isComplexTypeDefinition=bG;function EG(e){return{isDouble(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(EG,"Double");vt.Double=EG;function AG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}o(AG,"Decimal");vt.Decimal=AG;function SG(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(SG,"lazy");vt.lazy=SG;function GR(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(GR,"createIndexedFind");vt.createIndexedFind=GR;function PG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:GR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}o(PG,"addGetByValue");vt.addGetByValue=PG;function xG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var a;for(let{target:s,annotations:l}of r){let u=(a=ib(e,s))!==null&&a!==void 0?a:s;n[u]||(n[u]=[]);let p=l.map(g=>{var m;return g.term=(m=ib(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(xG,"mergeAnnotations");vt.mergeAnnotations=xG});var rF=ze(Ig=>{"use strict";Object.defineProperty(Ig,"__esModule",{value:!0});Ig.convert=void 0;var Cg=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),Se=xg(),io=Symbol("Annotation Target");function aa(e,t){return e[e.length-1]!==t&&e.push(t),e}o(aa,"appendObjectPath");function gr(e,t,n,i){var r,a,s,l,u;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let p=n.split("/").reduce((m,v)=>{if(v.includes("@")){let[A,b]=(0,Se.splitAtFirst)(v,"@");m.push(A),m.push(`@${b}`)}else m.push(v);return m},[]);if(t===void 0)p[0].startsWith(`${e.rawSchema.namespace}.`)&&p[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(l=(s=(a=e.getConvertedEntityType(p[0]))!==null&&a!==void 0?a:e.getConvertedComplexType(p[0]))!==null&&s!==void 0?s:e.getConvertedAction(p[0]))!==null&&l!==void 0?l:e.getConvertedAction(`${p[0]}()`),p.shift()):t=e.getConvertedEntityContainer();else if(t[io]!==void 0)t=t[io];else if(t._type==="Property"){let m=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(u=e.getConvertedEntityType(m))!==null&&u!==void 0?u:e.getConvertedComplexType(m)}let g=p.reduce((m,v)=>{var A,b,I,F,j;let K=o(U=>(m.messages.push({message:U}),m.target=void 0,m),"error");if(m.target===void 0)return m;if(m.objectPath=aa(m.objectPath,m.target),v.startsWith("@")&&v!=="@$ui5.overload"){let[U,ae]=e.splitTerm(v),Z=(A=m.target.annotations[U.substring(1)])===null||A===void 0?void 0:A[ae];return Z!==void 0?(m.target=Z,m):K(`Annotation '${v.substring(1)}' not found on ${m.target._type} '${m.target.fullyQualifiedName}'`)}if(m.target.$target){let U;if(v==="$AnnotationPath"?U=m.target.value:v==="$Path"&&(U=m.target.path),U!==void 0){let ae=gr(e,m.target[io],U);return ae.objectPath.forEach(Z=>{m.objectPath.includes(Z)||(m.objectPath=aa(m.objectPath,Z))}),m.target=ae.target,m.objectPath=aa(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(v===""||e.unalias(v)===Z.fullyQualifiedName)return m;let re=(F=(I=Z.entitySets.by_name(v))!==null&&I!==void 0?I:Z.singletons.by_name(v))!==null&&F!==void 0?F:Z.actionImports.by_name(v);if(re)return m.target=re,m}break;case"EntitySet":case"Singleton":{let Z=m.target;if(v===""||v==="$Type")return m.target=Z.entityType,m;if(v==="$")return m;if(v==="$NavigationPropertyBinding"){let Pe=Z.navigationPropertyBinding;return m.target=Pe,m}let re=gr(e,Z.entityType,v);return m.target=re.target,m.objectPath=re.objectPath.reduce(aa,m.objectPath),m}case"EntityType":{let Z=m.target;if(v===""||v==="$Type")return m;let re=Z.entityProperties.by_name(v);if(re)return m.target=re,m;let Pe=Z.navigationProperties.by_name(v);if(Pe)return m.target=Pe,m;let D=(0,Se.substringBeforeFirst)(e.unalias(v),"("),ut=Z.actions[D];if(ut)return m.target=ut,m}break;case"ActionImport":{let Z=gr(e,m.target.action,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(aa,m.objectPath),m}case"Action":{let Z=m.target;if(v===""||v==="@$ui5.overload"||v==="0")return m;if(v==="$Parameter"&&Z.isBound)return m.target=Z.parameters,m;let re=(j=Z.parameters[v])!==null&&j!==void 0?j:Z.parameters.find(Pe=>Pe.name===v);if(re)return m.target=re,m;break}case"Property":{let re=m.target.targetType;if(re!==void 0){let Pe=re.properties.by_name(v);if(Pe)return m.target=Pe,m;let D=re.navigationProperties.by_name(v);if(D)return m.target=D,m}}break;case"ActionParameter":let U=m.target.typeReference;if(U!==void 0){let Z=gr(e,U,v);return m.target=Z.target,m.objectPath=Z.objectPath.reduce(aa,m.objectPath),m}break;case"NavigationProperty":let ae=gr(e,m.target.targetType,v);return m.target=ae.target,m.objectPath=ae.objectPath.reduce(aa,m.objectPath),m;default:if(v==="")return m;if(m.target[v])return m.target=m.target[v],m.objectPath=aa(m.objectPath,m.target),m}return K(`Element '${v}' not found at ${m.target._type} '${m.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(g.messages.forEach(m=>e.logError(m.message)),!g.target)if(i){let m=qR(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(gr,"resolveTarget");function pG(e){return e.includes("@")}o(pG,"isAnnotationPath");function FR(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,t.PropertyPath,r).target),a}o(FR,"mapPropertyPath");function DR(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,a.value,r).target),a}o(DR,"mapAnnotationPath");function _R(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(s,"$target",()=>gr(e,i,t.NavigationPropertyPath,r).target),s}o(_R,"mapNavigationPropertyPath");function dG(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[io]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,t.Path,r).target),a}o(dG,"mapPath");function VR(e,t,n,i,r,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,Se.Double)(a.Double);case"Decimal":return(0,Se.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(u=>{var p;let g=(p=e.unalias(u))!==null&&p!==void 0?p:"";return(0,Se.alias)(Tg.VocabularyReferences,g)});return l[0]!==void 0&&Se.EnumIsFlag[(0,Se.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return FR(e,a,s,t,n);case"NavigationPropertyPath":return _R(e,a,s,t,n);case"AnnotationPath":return DR(e,a,s,t,n);case"Path":return pG(a.Path)?gr(e,t,a.Path,n).target:dG(e,a,s,t,n);case"Record":return zT(e,n,t,i,r,a.Record,s);case"Collection":return MR(e,t,n,i,r,a.Collection,s);case"Apply":case"Null":case"Not":case"Eq":case"Ne":case"Gt":case"Ge":case"Lt":case"Le":case"If":case"And":case"Or":default:return a}}o(VR,"parseValue");function wR(e,t,n,i){let r=Se.TermToTypes[t];return i&&(t=`${(0,Se.substringBeforeLast)(t,".")}.${i}`,r=Se.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
13
+ <PropertyValue Path= `+p[1]+">");return g}o(gr,"resolveTarget");function CG(e){return e.includes("@")}o(CG,"isAnnotationPath");function WR(e,t,n,i,r){let a={type:"PropertyPath",value:t.PropertyPath,fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,t.PropertyPath,r).target),a}o(WR,"mapPropertyPath");function KR(e,t,n,i,r){let a={type:"AnnotationPath",value:e.unalias(t.AnnotationPath),fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,a.value,r).target),a}o(KR,"mapAnnotationPath");function XR(e,t,n,i,r){var a;let s={type:"NavigationPropertyPath",value:(a=t.NavigationPropertyPath)!==null&&a!==void 0?a:"",fullyQualifiedName:n,[io]:i};return(0,Se.lazy)(s,"$target",()=>gr(e,i,t.NavigationPropertyPath,r).target),s}o(XR,"mapNavigationPropertyPath");function OG(e,t,n,i,r){let a={type:"Path",path:t.Path,fullyQualifiedName:n,getValue(){},[io]:i};return(0,Se.lazy)(a,"$target",()=>gr(e,i,t.Path,r).target),a}o(OG,"mapPath");function QR(e,t,n,i,r,a,s){if(a!==void 0)switch(a.type){case"String":return a.String;case"Int":return a.Int;case"Bool":return a.Bool;case"Double":return(0,Se.Double)(a.Double);case"Decimal":return(0,Se.Decimal)(a.Decimal);case"Date":return a.Date;case"EnumMember":let l=a.EnumMember.split(" ").map(u=>{var p;let g=(p=e.unalias(u))!==null&&p!==void 0?p:"";return(0,Se.alias)(Cg.VocabularyReferences,g)});return l[0]!==void 0&&Se.EnumIsFlag[(0,Se.substringBeforeFirst)(l[0],"/")]?l:l[0];case"PropertyPath":return WR(e,a,s,t,n);case"NavigationPropertyPath":return XR(e,a,s,t,n);case"AnnotationPath":return KR(e,a,s,t,n);case"Path":return CG(a.Path)?gr(e,t,e.unalias(a.Path),n).target:OG(e,a,s,t,n);case"Record":return ab(e,n,t,i,r,a.Record,s);case"Collection":return zR(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(QR,"parseValue");function qR(e,t,n,i){let r=Se.TermToTypes[t];return i&&(t=`${(0,Se.substringBeforeLast)(t,".")}.${i}`,r=Se.TermToTypes[t]),e.logError(`The type of the record used within the term ${t} was not defined and was inferred as ${r}.
14
14
  Hint: If possible, try to maintain the Type property for each Record.
15
15
  <Annotations Target="${n}">
16
16
  <Annotation Term="${t}">
17
17
  <Record>...</Record>
18
18
  </Annotation>
19
- </Annotations>`),r}o(wR,"inferTypeFromTerm");function gG(e){return e.hasOwnProperty("Action")&&(e.$Type==="com.sap.vocabularies.UI.v1.DataFieldForAction"||e.$Type==="com.sap.vocabularies.UI.v1.DataFieldWithAction")}o(gG,"isDataFieldWithForAction");function mG(e,t,n,i,r){let a;return!r.type&&t?a=wR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(mG,"parseRecordType");function zT(e,t,n,i,r,a,s){let l={$Type:mG(e,t,n,i,a),fullyQualifiedName:s,[io]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>VR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",jR(e,a,l)),gG(l)&&(0,Se.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(zT,"parseRecord");function hG(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(hG,"getOrInferCollectionType");function MR(e,t,n,i,r,a,s){switch(hG(a)){case"PropertyPath":return a.map((u,p)=>FR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>gr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>DR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>_R(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>zT(e,n,t,i,r,u,`${s}/${p}`));case"Apply":case"Null":case"If":case"Eq":case"Ne":case"Lt":case"Gt":case"Le":case"Ge":case"Not":case"And":case"Or":return a.map(u=>u);case"String":return a.map(u=>typeof u=="string"||u===void 0?u:u.String);default:if(a.length===0)return[];throw new Error("Unsupported case")}}o(MR,"parseCollection");function yG(e){return!!e.targetTypeName}o(yG,"isV4NavigationProperty");function vG(e,t,n){var i;let r;if(n.record)r=zT(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=VR(e,t,n.term,"",n.__source,(i=n.value)!==null&&i!==void 0?i:{type:"Bool",Bool:!0},n.fullyQualifiedName);else if(n.collection)r=MR(e,t,n.term,"",n.__source,n.collection,n.fullyQualifiedName);else throw new Error("Unsupported case");switch(typeof r){case"string":r=new String(r);break;case"boolean":r=new Boolean(r);break;case"number":r=new Number(r);break;default:break}r.fullyQualifiedName=n.fullyQualifiedName,r[io]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Tg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",jR(e,n,r))}catch{}return r}o(vG,"convertAnnotation");var YT=class YT{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Se.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,UR)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Se.addGetByValue)(i,"name"),(0,Se.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(Tg.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(YT,"Converter");var QT=YT;function nu(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(nu,"resolveEntityType");function kR(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(kR,"resolveNavigationPropertyBindings");function sa(e,t){let n=t.annotations;return()=>bg(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(sa,"resolveAnnotations");function jR(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[io]=n[io],a.fullyQualifiedName=`${i}@${a.term}`}),bg(e,n,r??[])}}o(jR,"resolveAnnotationsOnAnnotation");function bg(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>vG(u,t,p))),i},{})}o(bg,"createAnnotationsObject");function UR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,BR)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,$R)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,GR)),n}o(UR,"convertEntityContainer");function $R(e,t){let n=t;(0,Se.lazy)(n,"entityType",nu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",kR(e,i)),n}o($R,"convertSingleton");function BR(e,t){let n=t;(0,Se.lazy)(n,"entityType",nu(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",kR(e,i)),n}o(BR,"convertEntitySet");function TG(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,qT)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,qT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,HR)),(0,Se.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=gr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(TG,"convertEntityType");function qT(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(qT,"convertProperty");function HR(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!yG(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Se.lazy)(a,"targetType",nu(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",sa(e,t)),a}o(HR,"convertNavigationProperty");function GR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(GR,"convertActionImport");function bG(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",nu(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",nu(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,EG)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return bg(e,t,a)}),n}o(bG,"convertAction");function EG(e,t){let n=t;return(0,Se.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Se.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return bg(e,t,a)}),n}o(EG,"convertActionParameter");function AG(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,qT)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,HR)),(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(AG,"convertComplexType");function SG(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(SG,"convertTypeDefinition");function PG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Tg.VocabularyReferences,diagnostics:[]},n=new QT(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,UR)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,BR)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,$R)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,TG)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,bG)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,AG)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,GR)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,SG)),t.resolvePath=o(function(r){let a=gr(n,void 0,r);return a.target&&aa(a.objectPath,a.target),a},"resolvePath"),t}o(PG,"convert");Eg.convert=PG});var qR=ze(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.revertTermToGenericType=void 0;var CG=vg();function xG(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t))p={type:"Collection",Collection:t.map(g=>Ag(e,g))};else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Ag(e,t)});return p}o(xG,"revertObjectToRawType");function KR(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=xG(e,t);break}return n}o(KR,"revertValueToRawType");var IG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function XR(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=QR(e,t[i][r]);if(!a.term){let s=(0,CG.unalias)(e,`${i}.${r}`);if(s){let l=s.split("#");a.term=l[0],l.length>1&&(a.qualifier=l[1])}}n.push(a)})})}o(XR,"revertAnnotationsToRawType");function Ag(e,t){if(typeof t=="string")return t;if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(IG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:KR(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],XR(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Ag,"revertCollectionItemToRawType");function QR(e,t){let n={term:t.term,qualifier:t.qualifier};return Array.isArray(t)?(t.hasOwnProperty("annotations")&&Object.keys(t.annotations).length>0&&(n.annotations=[],XR(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Ag(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Ag(e,t)}:{...n,value:KR(e,t)}}o(QR,"revertTermToGenericType");Sg.revertTermToGenericType=QR});var zR=ze(ca=>{"use strict";var OG=ca&&ca.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:o(function(){return t[n]},"get")}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),JT=ca&&ca.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&OG(t,e,n)};Object.defineProperty(ca,"__esModule",{value:!0});JT(WR(),ca);JT(vg(),ca);JT(qR(),ca)});var ib=ze(Ha=>{"use strict";Object.defineProperty(Ha,"__esModule",{value:!0});Ha.MergedRawMetadata=Ha.RawMetadataInstance=Ha.ensureArray=void 0;function NG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(NG,"ensureArray");Ha.ensureArray=NG;var tb=class tb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(tb,"RawMetadataInstance");var ZT=tb;Ha.RawMetadataInstance=ZT;var nb=class nb{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(nb,"MergedRawMetadata");var eb=nb;Ha.MergedRawMetadata=eb});var YR=ze(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.merge=void 0;var LG=ib();function RG(...e){let t=new LG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(RG,"merge");Pg.merge=RG});var JR=ze(Cg=>{(function(e){e.parser=function(I,S){return new n(I,S)},e.SAXParser=n,e.SAXStream=p,e.createStream=u,e.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];e.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function n(I,S){if(!(this instanceof n))return new n(I,S);var z=this;r(z),z.q=z.c="",z.bufferCheckPosition=e.MAX_BUFFER_LENGTH,z.opt=S||{},z.opt.lowercase=z.opt.lowercase||z.opt.lowercasetags,z.looseCase=z.opt.lowercase?"toLowerCase":"toUpperCase",z.tags=[],z.closed=z.closedRoot=z.sawRoot=!1,z.tag=z.error=null,z.strict=!!I,z.noscript=!!(I||z.opt.noscript),z.state=D.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(b)),z.opt.unquotedAttributeValues===void 0&&(z.opt.unquotedAttributeValues=!I),z.trackPosition=z.opt.position!==!1,z.trackPosition&&(z.position=z.line=z.column=0),yt(z,"onready")}o(n,"SAXParser"),Object.create||(Object.create=function(I){function S(){}o(S,"F"),S.prototype=I;var z=new S;return z}),Object.keys||(Object.keys=function(I){var S=[];for(var z in I)I.hasOwnProperty(z)&&S.push(z);return S});function i(I){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),z=0,V=0,_e=t.length;V<_e;V++){var Rt=I[t[V]].length;if(Rt>S)switch(t[V]){case"textNode":an(I);break;case"cdata":Ue(I,"oncdata",I.cdata),I.cdata="";break;case"script":Ue(I,"onscript",I.script),I.script="";break;default:en(I,"Max buffer length exceeded: "+t[V])}z=Math.max(z,Rt)}var 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!==""&&(Ue(I,"oncdata",I.cdata),I.cdata=""),I.script!==""&&(Ue(I,"onscript",I.script),I.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Lt(this)},"end"),write:at,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(I){return I!=="error"&&I!=="end"});function u(I,S){return new p(I,S)}o(u,"createStream");function p(I,S){if(!(this instanceof p))return new p(I,S);s.apply(this),this._parser=new n(I,S),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(V){z.emit("error",V),z._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(z,"on"+V,{get:o(function(){return z._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return z.removeAllListeners(V),z._parser["on"+V]=_e,_e;z.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(I){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(I)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}I=this._decoder.write(I)}return this._parser.write(I.toString()),this.emit("data",I),!0},p.prototype.end=function(I){return I&&I.length&&this.write(I),this._parser.end(),!0},p.prototype.on=function(I,S){var z=this;return!z._parser["on"+I]&&l.indexOf(I)!==-1&&(z._parser["on"+I]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,I),z.emit.apply(z,V)}),s.prototype.on.call(z,I,S)};var g="[CDATA[",m="DOCTYPE",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]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,K=/[#:_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 U(I){return I===" "||I===`
20
- `||I==="\r"||I===" "}o(U,"isWhitespace");function ae(I){return I==='"'||I==="'"}o(ae,"isQuote");function Z(I){return I===">"||U(I)}o(Z,"isAttribEnd");function re(I,S){return I.test(S)}o(re,"isMatch");function Pe(I,S){return!re(I,S)}o(Pe,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(I){var S=e.ENTITIES[I],z=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[I]=z});for(var ut in e.STATE)e.STATE[e.STATE[ut]]=ut;D=e.STATE;function yt(I,S,z){I[S]&&I[S](z)}o(yt,"emit");function Ue(I,S,z){I.textNode&&an(I),yt(I,S,z)}o(Ue,"emitNode");function an(I){I.textNode=Gn(I.opt,I.textNode),I.textNode&&yt(I,"ontext",I.textNode),I.textNode=""}o(an,"closeText");function Gn(I,S){return I.trim&&(S=S.trim()),I.normalize&&(S=S.replace(/\s+/g," ")),S}o(Gn,"textopts");function en(I,S){return an(I),I.trackPosition&&(S+=`
21
- Line: `+I.line+`
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!==D.BEGIN&&I.state!==D.BEGIN_WHITESPACE&&I.state!==D.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,Ue(I,"onopentagstart",z)}o(Oi,"newTag");function It(I,S){var z=I.indexOf(":"),V=z<0?["",I]:I.split(":"),_e=V[0],Rt=V[1];return S&&I==="xmlns"&&(_e="xmlns",Rt=""),{prefix:_e,local:Rt}}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 _e=I.tag,Rt=I.tags[I.tags.length-1]||I;_e.ns===Rt.ns&&(_e.ns=Object.create(Rt.ns)),_e.ns[V]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,Ue(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}o(Mt,"attrib");function sn(I,S){if(I.opt.xmlns){var z=I.tag,V=It(I.tagName);z.prefix=V.prefix,z.local=V.local,z.uri=z.ns[V.prefix]||"",z.prefix&&!z.uri&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),z.uri=V.prefix);var _e=I.tags[I.tags.length-1]||I;z.ns&&_e.ns!==z.ns&&Object.keys(z.ns).forEach(function(Gt){Ue(I,"onopennamespace",{prefix:Gt,uri:z.ns[Gt]})});for(var Rt=0,Qe=I.attribList.length;Rt<Qe;Rt++){var kt=I.attribList[Rt],vn=kt[0],cn=kt[1],Ht=It(vn,!0),ti=Ht.prefix,ar=Ht.local,gn=ti===""?"":z.ns[ti]||"",hi={name:vn,value:cn,prefix:ti,local:ar,uri:gn};ti&&ti!=="xmlns"&&!gn&&(Re(I,"Unbound namespace prefix: "+JSON.stringify(ti)),hi.uri=ti),I.tag.attributes[vn]=hi,Ue(I,"onattribute",hi)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),Ue(I,"onopentag",I.tag),S||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=D.SCRIPT:I.state=D.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}o(sn,"openTag");function Hi(I){if(!I.tagName){Re(I,"Weird empty close tag."),I.textNode+="</>",I.state=D.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=D.SCRIPT;return}Ue(I,"onscript",I.script),I.script=""}var S=I.tags.length,z=I.tagName;I.strict||(z=z[I.looseCase]());for(var V=z;S--;){var _e=I.tags[S];if(_e.name!==V)Re(I,"Unexpected close tag");else break}if(S<0){Re(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=D.TEXT;return}I.tagName=z;for(var Rt=I.tags.length;Rt-- >S;){var Qe=I.tag=I.tags.pop();I.tagName=I.tag.name,Ue(I,"onclosetag",I.tagName);var kt={};for(var vn in Qe.ns)kt[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(Ht){var ti=Qe.ns[Ht];Ue(I,"onclosenamespace",{prefix:Ht,uri:ti})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=D.TEXT}o(Hi,"closeTag");function Fe(I){var S=I.entity,z=S.toLowerCase(),V,_e="";return I.ENTITIES[S]?I.ENTITIES[S]:I.ENTITIES[z]?I.ENTITIES[z]:(S=z,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),V=parseInt(S,16),_e=V.toString(16)):(S=S.slice(1),V=parseInt(S,10),_e=V.toString(10))),S=S.replace(/^0+/,""),isNaN(V)||_e.toLowerCase()!==S?(Re(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(V))}o(Fe,"parseEntity");function Wn(I,S){S==="<"?(I.state=D.OPEN_WAKA,I.startTagPosition=I.position):U(S)||(Re(I,"Non-whitespace before first tag."),I.textNode=S,I.state=D.TEXT)}o(Wn,"beginWhiteSpace");function Or(I,S){var z="";return S<I.length&&(z=I.charAt(S)),z}o(Or,"charAt");function at(I){var S=this;if(this.error)throw this.error;if(S.closed)return en(S,"Cannot write after close. Assign an onready handler.");if(I===null)return Lt(S);typeof I=="object"&&(I=I.toString());for(var z=0,V="";V=Or(I,z++),S.c=V,!!V;)switch(S.trackPosition&&(S.position++,V===`
26
- `?(S.line++,S.column=0):S.column++),S.state){case D.BEGIN:if(S.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;Wn(S,V);continue;case D.BEGIN_WHITESPACE:Wn(S,V);continue;case D.TEXT:if(S.sawRoot&&!S.closedRoot){for(var _e=z-1;V&&V!=="<"&&V!=="&";)V=Or(I,z++),V&&S.trackPosition&&(S.position++,V===`
27
- `?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(_e,z-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!U(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=D.TEXT_ENTITY:S.textNode+=V);continue;case D.SCRIPT:V==="<"?S.state=D.SCRIPT_ENDING:S.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?S.state=D.CLOSE_TAG:(S.script+="<"+V,S.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")S.state=D.SGML_DECL,S.sgmlDecl="";else if(!U(V))if(re(O,V))S.state=D.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=D.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=D.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Rt=S.position-S.startTagPosition;V=new Array(Rt).join(" ")+V}S.textNode+="<"+V,S.state=D.TEXT}continue;case D.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=D.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=D.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?(Ue(S,"onopencdata"),S.state=D.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=D.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?(Ue(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(ae(V)&&(S.state=D.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===S.q&&(S.state=D.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(S.state=D.TEXT,Ue(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=D.DOCTYPE_DTD:ae(V)&&(S.state=D.DOCTYPE_QUOTED,S.q=V));continue;case D.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=D.DOCTYPE):V==="<"?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=D.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=D.DOCTYPE_DTD,S.q="");continue;case D.COMMENT:V==="-"?S.state=D.COMMENT_ENDING:S.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(S.state=D.COMMENT_ENDED,S.comment=Gn(S.opt,S.comment),S.comment&&Ue(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=D.COMMENT):S.doctype&&S.doctype!==!0?S.state=D.DOCTYPE_DTD:S.state=D.TEXT;continue;case D.CDATA:V==="]"?S.state=D.CDATA_ENDING:S.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?S.state=D.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(S.cdata&&Ue(S,"oncdata",S.cdata),Ue(S,"onclosecdata"),S.cdata="",S.state=D.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=D.CDATA);continue;case D.PROC_INST:V==="?"?S.state=D.PROC_INST_ENDING:U(V)?S.state=D.PROC_INST_BODY:S.procInstName+=V;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&U(V))continue;V==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(Ue(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=D.TEXT):(S.procInstBody+="?"+V,S.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:re(F,V)?S.tagName+=V:(Oi(S),V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:(U(V)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(sn(S,!0),Hi(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(U(V))continue;V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?S.state=D.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,Mt(S),sn(S)):U(V)?S.state=D.ATTRIB_NAME_SAW_WHITE:re(F,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=D.ATTRIB_VALUE;else{if(U(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Ue(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?sn(S):re(O,V)?(S.attribName=V,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(U(V))continue;ae(V)?(S.q=V,S.state=D.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||en(S,"Unquoted attribute value"),S.state=D.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}Mt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:U(V)?S.state=D.ATTRIB:V===">"?sn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(O,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}Mt(S),V===">"?sn(S):S.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(S.tagName)V===">"?Hi(S):re(F,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=D.SCRIPT):(U(V)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(U(V))continue;Pe(O,V)?S.script?(S.script+="</"+V,S.state=D.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(U(V))continue;V===">"?Hi(S):Re(S,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var Qe,kt;switch(S.state){case D.TEXT_ENTITY:Qe=D.TEXT,kt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Qe=D.ATTRIB_VALUE_QUOTED,kt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Qe=D.ATTRIB_VALUE_UNQUOTED,kt="attribValue";break}if(V===";"){var vn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(vn)?(S.entity="",S.state=Qe,S.write(vn)):(S[kt]+=vn,S.entity="",S.state=Qe)}else re(S.entity.length?K:j,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[kt]+="&"+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(at,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,z=o(function(){var V=16384,_e=[],Rt,Qe,kt=-1,vn=arguments.length;if(!vn)return"";for(var cn="";++kt<vn;){var Ht=Number(arguments[kt]);if(!isFinite(Ht)||Ht<0||Ht>1114111||S(Ht)!==Ht)throw RangeError("Invalid code point: "+Ht);Ht<=65535?_e.push(Ht):(Ht-=65536,Rt=(Ht>>10)+55296,Qe=Ht%1024+56320,_e.push(Rt,Qe)),(kt+1===vn||_e.length>V)&&(cn+=I.apply(null,_e),_e.length=0)}return cn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof Cg>"u"?Cg.sax={}:Cg)});var xg=ze((uJ,ZR)=>{ZR.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var Ig=ze((dJ,eF)=>{var FG=xg().isArray;eF.exports={copyOptions:o(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},"copyOptions"),ensureFlagExists:o(function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},"ensureFlagExists"),ensureSpacesExists:o(function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},"ensureSpacesExists"),ensureAlwaysArrayExists:o(function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!FG(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 ob=ze((mJ,cF)=>{var DG=JR(),_G={on:o(function(){},"on"),parse:o(function(){},"parse")},it=Ig(),cl=xg().isArray,H,rb=!0,$e;function VG(e){return H=it.copyOptions(e),it.ensureFlagExists("ignoreDeclaration",H),it.ensureFlagExists("ignoreInstruction",H),it.ensureFlagExists("ignoreAttributes",H),it.ensureFlagExists("ignoreText",H),it.ensureFlagExists("ignoreComment",H),it.ensureFlagExists("ignoreCdata",H),it.ensureFlagExists("ignoreDoctype",H),it.ensureFlagExists("compact",H),it.ensureFlagExists("alwaysChildren",H),it.ensureFlagExists("addParent",H),it.ensureFlagExists("trim",H),it.ensureFlagExists("nativeType",H),it.ensureFlagExists("nativeTypeAttributes",H),it.ensureFlagExists("sanitize",H),it.ensureFlagExists("instructionHasAttributes",H),it.ensureFlagExists("captureSpacesBetweenElements",H),it.ensureAlwaysArrayExists(H),it.ensureKeyExists("declaration",H),it.ensureKeyExists("instruction",H),it.ensureKeyExists("attributes",H),it.ensureKeyExists("text",H),it.ensureKeyExists("comment",H),it.ensureKeyExists("cdata",H),it.ensureKeyExists("doctype",H),it.ensureKeyExists("type",H),it.ensureKeyExists("name",H),it.ensureKeyExists("elements",H),it.ensureKeyExists("parent",H),it.checkFnExists("doctype",H),it.checkFnExists("instruction",H),it.checkFnExists("cdata",H),it.checkFnExists("comment",H),it.checkFnExists("text",H),it.checkFnExists("instructionName",H),it.checkFnExists("elementName",H),it.checkFnExists("attributeName",H),it.checkFnExists("attributeValue",H),it.checkFnExists("attributes",H),H}o(VG,"validateOptions");function aF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(aF,"nativeType");function iu(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(cl(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!cl($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}cl($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(iu,"addField");function sF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=aF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(sF,"manipulateAttributes");function wG(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||H.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=sF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,iu("instruction",r)}}o(wG,"onInstruction");function tF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=sF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in $e)&&(cl(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!cl($e[e])&&($e[e]=[$e[e]]),cl($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(tF,"onStartElement");function nF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=aF(e)),H.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),iu("text",e))}o(nF,"onText");function iF(e){H.ignoreComment||(H.trim&&(e=e.trim()),iu("comment",e))}o(iF,"onComment");function rF(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(rF,"onEndElement");function MG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),iu("cdata",e))}o(MG,"onCdata");function kG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),iu("doctype",e))}o(kG,"onDoctype");function oF(e){e.note=e}o(oF,"onError");cF.exports=function(e,t){var n=rb?DG.parser(!0,{}):n=new _G.Parser("UTF-8"),i={};if($e=i,H=VG(t),rb?(n.opt={strictEntities:!0},n.onopentag=tF,n.ontext=nF,n.oncomment=iF,n.onclosetag=rF,n.onerror=oF,n.oncdata=MG,n.ondoctype=kG,n.onprocessinginstruction=wG):(n.on("startElement",tF),n.on("text",nF),n.on("comment",iF),n.on("endElement",rF),n.on("error",oF)),rb)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var uF=ze((yJ,fF)=>{var lF=Ig(),jG=ob();function UG(e){var t=lF.copyOptions(e);return lF.ensureSpacesExists(t),t}o(UG,"validateOptions");fF.exports=function(e,t){var n,i,r,a;return n=UG(t),i=jG(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 sb=ze((TJ,bF)=>{var ct=Ig(),$G=xg().isArray,bi,Ei;function BG(e){var t=ct.copyOptions(e);return ct.ensureFlagExists("ignoreDeclaration",t),ct.ensureFlagExists("ignoreInstruction",t),ct.ensureFlagExists("ignoreAttributes",t),ct.ensureFlagExists("ignoreText",t),ct.ensureFlagExists("ignoreComment",t),ct.ensureFlagExists("ignoreCdata",t),ct.ensureFlagExists("ignoreDoctype",t),ct.ensureFlagExists("compact",t),ct.ensureFlagExists("indentText",t),ct.ensureFlagExists("indentCdata",t),ct.ensureFlagExists("indentAttributes",t),ct.ensureFlagExists("indentInstruction",t),ct.ensureFlagExists("fullTagEmptyElement",t),ct.ensureFlagExists("noQuotesForNativeAttributes",t),ct.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ct.ensureKeyExists("declaration",t),ct.ensureKeyExists("instruction",t),ct.ensureKeyExists("attributes",t),ct.ensureKeyExists("text",t),ct.ensureKeyExists("comment",t),ct.ensureKeyExists("cdata",t),ct.ensureKeyExists("doctype",t),ct.ensureKeyExists("type",t),ct.ensureKeyExists("name",t),ct.ensureKeyExists("elements",t),ct.checkFnExists("doctype",t),ct.checkFnExists("instruction",t),ct.checkFnExists("cdata",t),ct.checkFnExists("comment",t),ct.checkFnExists("text",t),ct.checkFnExists("instructionName",t),ct.checkFnExists("elementName",t),ct.checkFnExists("attributeName",t),ct.checkFnExists("attributeValue",t),ct.checkFnExists("attributes",t),ct.checkFnExists("fullTagEmptyElement",t),t}o(BG,"validateOptions");function Io(e,t,n){return(!n&&e.spaces?`
28
- `:"")+Array(t+1).join(e.spaces)}o(Io,"writeIndentation");function Og(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ei,bi));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,bi):i,l.push(t.spaces&&t.indentAttributes?Io(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ei,bi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Io(t,n,!1)),l.join("")}o(Og,"writeAttributes");function pF(e,t,n){return bi=e,Ei="xml",t.ignoreDeclaration?"":"<?xml"+Og(e[t.attributesKey],t,n)+"?>"}o(pF,"writeDeclaration");function dF(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],Ei,bi):i;if(typeof e[i]=="object")return bi=e,Ei=r,"<?"+r+Og(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ei,bi)),"<?"+r+(a?" "+a:"")+"?>"}o(dF,"writeInstruction");function gF(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ei,bi):e)+"-->"}o(gF,"writeComment");function mF(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ei,bi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(mF,"writeCdata");function hF(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ei,bi):e)+">"}o(hF,"writeDoctype");function ab(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,bi):e)}o(ab,"writeText");function HG(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(HG,"hasContent");function GG(e,t,n){bi=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(Og(e[t.attributesKey],t,n));var a=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return a||("fullTagEmptyElementFn"in t?a=t.fullTagEmptyElementFn(e.name,e):a=t.fullTagEmptyElement),a?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(yF(e[t.elementsKey],t,n+1)),bi=e,Ei=e.name),i.push(t.spaces&&HG(e,t)?`
29
- `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(GG,"writeElement");function yF(e,t,n,i){return e.reduce(function(r,a){var s=Io(t,n,i&&!r);switch(a.type){case"element":return r+s+GG(a,t,n);case"comment":return r+s+gF(a[t.commentKey],t);case"doctype":return r+s+hF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+mF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+ab(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+dF(l,t,n)}},"")}o(yF,"writeElements");function vF(e,t,n){var i;for(i in e)if(e.hasOwnProperty(i))switch(i){case t.parentKey:case t.attributesKey:break;case t.textKey:if(t.indentText||n)return!0;break;case t.cdataKey:if(t.indentCdata||n)return!0;break;case t.instructionKey:if(t.indentInstruction||n)return!0;break;case t.doctypeKey:case t.commentKey:return!0;default:return!0}return!1}o(vF,"hasContentCompact");function WG(e,t,n,i,r){bi=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(">"+ab(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Og(e[n.attributesKey],n,i));var l=vF(e,n,!0)||e[n.attributesKey]&&e[n.attributesKey]["xml:space"]==="preserve";if(l||("fullTagEmptyElementFn"in n?l=n.fullTagEmptyElementFn(t,e):l=n.fullTagEmptyElement),l)s.push(">");else return s.push("/>"),s.join("")}return s.push(TF(e,n,i+1,!1)),bi=e,Ei=t,t&&s.push((r?Io(n,i,!1):"")+"</"+a+">"),s.join("")}o(WG,"writeElementCompact");function TF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=$G(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(pF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Io(t,n,i):"")+dF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Io(t,n,i):"")+ab(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Io(t,n,i):"")+mF(s[r],t));break;case t.doctypeKey:l.push(Io(t,n,i)+hF(s[r],t));break;case t.commentKey:l.push(Io(t,n,i)+gF(s[r],t));break;default:l.push(Io(t,n,i)+WG(s[r],a,t,n,vF(s[r],t)))}i=i&&!l.length}return l.join("")}o(TF,"writeElementsCompact");bF.exports=function(e,t){t=BG(t);var n=[];return bi=e,Ei="_root_",t.compact?n.push(TF(e,t,0,!0)):(e[t.declarationKey]&&n.push(pF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(yF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var AF=ze((EJ,EF)=>{var KG=sb();EF.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 KG(n,t)}});var qs=ze((AJ,SF)=>{var XG=ob(),QG=uF(),qG=sb(),zG=AF();SF.exports={xml2js:XG,xml2json:QG,js2xml:qG,json2xml:zG}});var NF=ze(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.convertEntityTypeAnnotations=qi.convertPropertyAnnotations=qi.convertNavigationPropertyAnnotations=qi.convertEntitySetAnnotations=qi.convertGenericAnnotations=qi.convertV2Annotations=void 0;function YG(e,t,n){let i=[];switch(t){case"EntitySet":CF(e,i);break;case"EntityType":OF(e,i);break;case"NavigationProperty":xF(e,n,i);break;case"Property":IF(e,n,i);break;case"Singleton":break;default:break}return PF(e,n,i),i}o(YG,"convertV2Annotations");qi.convertV2Annotations=YG;function PF(e,t,n){function i(r,a){r&&n.push(a)}if(o(i,"pushToAnnotations"),i(e["sap:schema-version"]!==void 0,{term:"Org.OData.Core.V1.SchemaVersion",value:{type:"String",String:e["sap:schema-version"]}}),i(e["sap:searchable"]!==void 0,{term:"Org.OData.Capabilities.V1.SearchRestrictions",record:{propertyValues:[{name:"Searchable",value:{type:"Bool",Bool:e["sap:searchable"]==="true"}}]}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:pageable"]!==void 0,{term:"Org.OData.Capabilities.V1.SkipSupported",value:{type:"Bool",Bool:e["sap:pageable"]==="true"}}),i(e["sap:topable"]!==void 0,{term:"Org.OData.Capabilities.V1.TopSupported",value:{type:"Bool",Bool:e["sap:topable"]==="true"}}),i(e["sap:requires-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiresFilter",value:{type:"Bool",Bool:e["sap:requires-filter"]==="true"}}]}}),i(e["sap:required-in-filter"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"RequiredProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}}),i(e["sap:filter-restricton"]!==void 0,{term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"FilterExpressionRestrictions",value:{type:"String",String:e["sap:filter-restricton"]}},{name:"Property",value:{type:"PropertyPath",PropertyPath:t}}]}]}}]}}),i(e["sap:sortable"]==="false",{term:"Org.OData.Capabilities.V1.SortRestrictions",record:{propertyValues:[{name:"NonSortableProperties",value:{type:"PropertyPath",PropertyPath:t}}]}}),i(e["sap:visible"]==="false",{term:"com.sap.vocabularies.UI.v1.Hidden",value:{type:"Bool",Bool:!0}}),i(e["sap:label"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Label",value:{type:"String",String:e["sap:label"]}}),i(e["sap:heading"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Heading",value:{type:"String",String:e["sap:heading"]}}),i(e["sap:quickinfo"]!==void 0,{term:"com.sap.vocabularies.Common.v1.QuickInfo",value:{type:"String",String:e["sap:quickinfo"]}}),i(e["sap:text"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Text",value:{type:"Path",Path:e["sap:text"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.Unit",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:unit"]!==void 0,{term:"Org.OData.Measures.V1.ISOCurrency",value:{type:"Path",Path:e["sap:unit"]}}),i(e["sap:precision"]!==void 0,{term:"Org.OData.Measures.V1.Scale",value:{type:"Int",Int:parseInt(e["sap:precision"],10)}}),i(e["sap:value-list"]==="fixed-value",{term:"com.sap.vocabularies.Common.v1.ValueListWithFixedValues",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="NonNegative",{term:"com.sap.vocabularies.Common.v1.IsDigitSequence",value:{type:"Bool",Bool:!0}}),i(e["sap:display-format"]==="UpperCase",{term:"com.sap.vocabularies.Common.v1.IsUpperCase",value:{type:"Bool",Bool:!0}}),e["sap:lower-boundary"]||e["sap:upper-boundary"]){let r=[];e["sap:lower-boundary"]&&r.push({name:"LowerBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:lower-boundary"]}}),e["sap:upper-boundary"]&&r.push({name:"UpperBoundary",value:{type:"PropertyPath",PropertyPath:e["sap:upper-boundary"]}}),n.push({term:"com.sap.vocabularies.Common.v1.Interval",record:{propertyValues:r}})}i(e["sap:field-control"]!==void 0,{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:field-control"]}}),i(e["sap:applicable-path"]!==void 0,{term:"Org.OData.Core.V1.OperationAvailable",value:{type:"Path",Path:e["sap:applicable-path"]}}),i(e["sap:minoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MinOccurs",value:{type:"Int",Int:parseInt(e["sap:minoccurs"],10)}}),i(e["sap:maxoccurs"]!==void 0,{term:"com.sap.vocabularies.Common.v1.MaxOccurs",value:{type:"Int",Int:parseInt(e["sap:maxoccurs"],10)}}),i(e["sap:parameter"]==="mandatory",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Mandatory"}}),i(e["sap:parameter"]==="optional",{term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"EnumMember",EnumMember:"Common.FieldControlType/Optional"}}),i(e["sap:attribute-for"]!==void 0,{term:"com.sap.vocabularies.Common.v1.Attributes",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}})}o(PF,"convertGenericAnnotations");qi.convertGenericAnnotations=PF;function CF(e,t){e["sap:creatable"]&&t.push({term:"Org.OData.Capabilities.V1.InsertRestrictions",record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}),e["sap:updatable"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:updatable-path"]&&t.push({term:"Org.OData.Capabilities.V1.UpdateRestrictions",record:{propertyValues:[{name:"Updatable",value:{type:"Path",Path:e["sap:updatable-path"]}}]}}),e["sap:deletable"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Bool",Bool:e["sap:updatable"]==="true"}}]}}),e["sap:deletable-path"]&&t.push({term:"Org.OData.Capabilities.V1.DeleteRestrictions",record:{propertyValues:[{name:"Deletable",value:{type:"Path",Path:e["sap:deletable-path"]}}]}})}o(CF,"convertEntitySetAnnotations");qi.convertEntitySetAnnotations=CF;function xF(e,t,n){e["sap:creatable"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Bool",Bool:e["sap:creatable"]==="true"}}]}}}]}}}]}}),e["sap:creatable-path"]&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Record",Record:{propertyValues:[{name:"InsertRestrictrions",value:{type:"Record",Record:{propertyValues:[{name:"Insertable",value:{type:"Path",Path:e["sap:creatable-path"]}}]}}}]}}}]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.NavigationRestrictions",record:{propertyValues:[{name:"RestrictedProperties",value:{type:"Collection",Collection:[{type:"Record",propertyValues:[{name:"NavigationProperty",value:{type:"NavigationPropertyPath",NavigationPropertyPath:t}},{name:"FilterRestrictions",value:{type:"Record",Record:{propertyValues:[{name:"Filterable",value:{type:"Bool",Bool:!1}}]}}}]}]}}]}})}o(xF,"convertNavigationPropertyAnnotations");qi.convertNavigationPropertyAnnotations=xF;function IF(e,t,n){e["sap:creatable"]==="true"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Immutable",value:{type:"Bool",Bool:!0}}),e["sap:creatable"]==="false"&&e["sap:updatable"]==="false"&&n.push({term:"Org.OData.Core.V1.Computed",value:{type:"Bool",Bool:!0}}),e["sap:updatable-path"]&&n.push({term:"com.sap.vocabularies.Common.v1.FieldControl",value:{type:"Path",Path:e["sap:updatable-path"]}}),e["sap:filterable"]==="false"&&n.push({term:"Org.OData.Capabilities.V1.FilterRestrictions",record:{propertyValues:[{name:"NonFilterableProperties",value:{type:"Collection",Collection:[{type:"PropertyPath",PropertyPath:t}]}}]}})}o(IF,"convertPropertyAnnotations");qi.convertPropertyAnnotations=IF;function OF(e,t){e["sap:semantics"]==="aggregate"&&t.push({term:"Org.OData.Aggregation.V1.ApplySupported",record:{propertyValues:[{name:"PropertyRestrictions",value:{type:"Collection",Collection:[]}},{name:"GroupableProperties",value:{type:"Collection",Collection:[]}},{name:"AggregatableProperties",value:{type:"Collection",Collection:[]}}]}})}o(OF,"convertEntityTypeAnnotations");qi.convertEntityTypeAnnotations=OF});var VF=ze(_g=>{"use strict";Object.defineProperty(_g,"__esModule",{value:!0});_g.parse=void 0;var JG=qs(),He=ib(),ru=NF(),Rg=/^Collection\((.+)\)$/;function ZG(e){return e.Type!==null&&e.Type!==void 0}o(ZG,"isV4NavProperty");function eW(e){return e.map(t=>t._attributes.Name)}o(eW,"getEntityTypeKeys");function FF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:ll(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,ru.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(zs(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(FF,"parseProperties");function tW(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(tW,"parseReferentialConstraint");function nW(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),a=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&a!==void 0){let s=(0,He.ensureArray)(i.Principal.PropertyRef),l=(0,He.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(a=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,He.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:a.type,targetProperty:l[p]._attributes.Name})}}return n},[])}o(nW,"parseV2ReferentialConstraint");function DF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(ZG(s)){let l=s.Type.match(Rg),u=l!==null,p=Oo(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:tW((0,He.ensureArray)(a.ReferentialConstraint),t._attributes.Name,p)})}else{let{Relationship:l,ToRole:u,FromRole:p}=s;r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,relationship:l,toRole:u,fromRole:p});let g=(0,ru.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(zs(`${n}/${s.Name}`,g))}return r},[])}o(DF,"parseNavigationProperties");function iW(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,a=(0,He.ensureArray)(i.End).map(s=>({entitySet:`${t}.${n._attributes.Name}/${s._attributes.EntitySet}`,role:s._attributes.Role}));return{fullyQualifiedName:r,name:i._attributes.Name,association:i._attributes.Association,associationEnd:a}})}o(iW,"parseAssociationSets");function rW(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,He.ensureArray)(n.End).map(a=>({type:a._attributes.Type,role:a._attributes.Role,multiplicity:a._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:nW((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(rW,"parseAssociations");function oW(e,t,n){return e.reduce((i,r)=>{let a=r.Key?eW((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=FF((0,He.ensureArray)(r.Property),a,s,t),p=DF((0,He.ensureArray)(r.NavigationProperty),r,s,t),g={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,ru.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(zs(g.fullyQualifiedName,m)),i.push(g),i},[])}o(oW,"parseEntityTypes");function aW(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=FF((0,He.ensureArray)(r.Property),[],a,t),l=DF((0,He.ensureArray)(r.NavigationProperty),r,a,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:a,properties:s,navigationProperties:l}),i},[])}o(aW,"parseComplexTypes");function sW(e,t){return e.reduce((n,i)=>{let r=`${t}.${i._attributes.Name}`;return n.push({_type:"TypeDefinition",name:i._attributes.Name,fullyQualifiedName:r,underlyingType:i._attributes.UnderlyingType}),n},[])}o(sW,"parseTypeDefinitions");function cW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:a._attributes.Name,entityTypeName:Oo(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,ru.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(zs(l.fullyQualifiedName,u)),l})}o(cW,"parseEntitySets");function lW(e,t,n,i){return e.map(a=>{let s=Object.fromEntries((0,He.ensureArray)(a.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:a._attributes.Name,entityTypeName:Oo(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,ru.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(zs(l.fullyQualifiedName,u)),l})}o(lW,"parseSingletons");function LF(e,t,n){return e.map(i=>{let r=(0,He.ensureArray)(i.Parameter),a=i._attributes.IsBound==="true",s;n?s=r.map(u=>ll(u._attributes.Type).type).join(","):s=a?ll(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?ll(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=ll(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:g,isCollection:p};return u._attributes.MaxLength&&(m.maxLength=parseInt(u._attributes.MaxLength,10)),u._attributes.Precision&&(m.precision=parseInt(u._attributes.Precision,10)),u._attributes.Scale&&(m.scale=parseInt(u._attributes.Scale,10)),m.nullable=u._attributes.Nullable!=="false",m}),returnType:i.ReturnType?ll(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(Rg)!==null:!1}})}o(LF,"parseActions");function fW(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),a=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:a,isFunction:!1,parameters:(0,He.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${a}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:"",returnCollection:i._attributes.ReturnType?i._attributes.ReturnType.match(Rg)!==null:!1}})}o(fW,"parseV2FunctionImport");function RF(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Oo(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Oo(r)}})}o(RF,"parseActionImports");function uW(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Lg(s,p,n,!1):u&&(l.value=_F({[u]:a[u]},p,n)),i.Annotation){let g=Dg((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(zs(p,g))}}return l})}o(uW,"parsePropertyValues");function Fg(e,t,n){let i=Dg((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Oo(e._attributes.Type):void 0,propertyValues:uW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(Fg,"parseRecord");function la(e,t){return e[t]!=null}o(la,"isExpressionOfType");function Ng(e,t){switch(t){case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e._text};case"Path":return{type:"Path",Path:e._text}}}o(Ng,"parseModelPath");function lb(e,t,n){if(la(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>Fg(r,t+"/"+a,n));return i.type="Record",i}else if(la(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>Ng(r,"PropertyPath"));return i.type="PropertyPath",i}else if(la(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>Ng(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(la(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(la(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>Ng(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(la(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>Ng(r,"Path"));return i.type="Path",i}else if(la(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(lb,"parseCollection");function bn(e){let t=Object.keys(e).filter(i=>i!=="_attributes"&&i!=="Annotation"),n=[];return t.forEach(i=>{Array.isArray(e[i])?n=n.concat(e[i].map(r=>Lg({[i]:r},"",[],!0))):n.push(Lg({[i]:e[i]},"",[],!0))}),n}o(bn,"parseChildren");function _F(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:lb(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:bn(e.Function)};case"And":return{type:"And",$And:bn(e.And)};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};case"If":return{type:"If",$If:bn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(_F,"parseInlineExpression");function Lg(e,t,n,i){let r=Object.keys(e);if(r.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let a=r[0];switch(a){case"String":return i?e[a]._text:{type:"String",String:e[a]._text};case"LabeledElement":return{type:"LabeledElement",$Name:e.LabeledElement._attributes.Name,$LabeledElement:bn(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:lb(e.Collection,t,n)};case"Record":return{type:"Record",Record:Fg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:bn(e.And)};case"Ne":return{type:"Ne",$Ne:bn(e.Ne)};case"Not":return{type:"Not",$Not:bn(e.Not)[0]};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"If":return{type:"If",$If:bn(e.If)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Lg,"parseExpression");function pW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Oo(i),qualifier:r},l=`${t}@${Oo(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=_F(a,l,n)),e.Annotation){let p=Dg((0,He.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return la(e,"Record")?s.record=Fg(e.Record,l,n):la(e,"Collection")?s.collection=lb(e.Collection,l,n):u.length===1?s.value=Lg({[u[0]]:e[u[0]]},l,n,!1):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}o(pW,"parseAnnotation");function Dg(e,t,n){return e.map(i=>pW(i,t,n))}o(Dg,"parseAnnotations");function zs(e,t){return{target:e,annotations:t}}o(zs,"createAnnotationList");function dW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(zs(Oo(n._attributes.Target),Dg((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(dW,"parseAnnotationLists");function gW(e,t,n){let i=e._attributes.Namespace,r=[],a=oW((0,He.ensureArray)(e.EntityType),r,i),s=aW((0,He.ensureArray)(e.ComplexType),r,i),l=sW((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],A=[];if(e.EntityContainer)if(u=cW((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=lW((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=iW((0,He.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")T=T.concat(fW((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(RF((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(RF((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(LF((0,He.ensureArray)(e.Action),i,!1)),T=T.concat(LF((0,He.ensureArray)(e.Function),i,!0)));let b=rW((0,He.ensureArray)(e.Association),i);dW((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(gW,"parseSchema");function mW(e){return e.reduce((t,n)=>((0,He.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}o(mW,"parseReferences");var cb={};function ll(e){let t=e.match(Rg),n=t?t[1]:e,i=Oo(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(ll,"unaliasType");function Oo(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let a=0,s=!0;a<e.length;a++){let l=e[a];if(s&&l==="."){let u=e.substring(r,a);i.push((t=cb[u])!==null&&t!==void 0?t:u),r=a,s=!1}n.includes(l)&&(i.push(e.substring(r,a+1)),r=a+1,s=!0)}return i.push(e.substring(r)),i.join("")}o(Oo,"unalias");function hW(e){let t=e.reduce((A,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 F=O,j=n.find(K=>K.association===F.relationship);if(j){let K=j.associationEnd.find(U=>U.entitySet!==A.fullyQualifiedName);K&&(A.navigationPropertyBinding[O.name]=K.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(b=>{let O=b,F=t.find(j=>j.fullyQualifiedName===O.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?O.referentialConstraint=F.referentialConstraints:O.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:T,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(hW,"mergeSchemas");function yW(e,t){cb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{cb[n._attributes.Alias]=n._attributes.Namespace})}o(yW,"createAliasMap");function vW(e,t="serviceFile"){let n=(0,JG.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=mW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));yW(a,r);let s=r.map(u=>gW(u,i,t));return new He.RawMetadataInstance(t,i,hW(s),a)}o(vW,"parse");_g.parse=vW});var wF=ze(fl=>{"use strict";Object.defineProperty(fl,"__esModule",{value:!0});fl.parse=fl.merge=void 0;var TW=YR();Object.defineProperty(fl,"merge",{enumerable:!0,get:o(function(){return TW.merge},"get")});var bW=VF();Object.defineProperty(fl,"parse",{enumerable:!0,get:o(function(){return bW.parse},"get")})});var YF=ze(()=>{var zF;(function(e){(function(t){var n=typeof globalThis=="object"?globalThis:typeof global=="object"?global:typeof self=="object"?self:typeof this=="object"?this:l(),i=r(e);typeof n.Reflect<"u"&&(i=r(n.Reflect,i)),t(i,n),typeof n.Reflect>"u"&&(n.Reflect=e);function r(u,p){return function(g,m){Object.defineProperty(u,g,{configurable:!0,writable:!0,value:m}),p&&p(g,m)}}o(r,"makeExporter");function a(){try{return Function("return this;")()}catch{}}o(a,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}o(s,"indirectEvalThis");function l(){return a()||s()}o(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",a=r&&typeof Symbol.toPrimitive<"u"?Symbol.toPrimitive:"@@toPrimitive",s=r&&typeof Symbol.iterator<"u"?Symbol.iterator:"@@iterator",l=typeof Object.create=="function",u={__proto__:[]}instanceof Array,p=!l&&!u,g={create:l?function(){return Ms(Object.create(null))}:u?function(){return Ms({__proto__:null})}:function(){return Ms({})},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:Ff(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Df(),b=typeof WeakMap=="function"?WeakMap:_f(),O=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Gi(),j=Rf(F);function K(k,B,Q,ce){if(Fe(Q)){if(!Rt(k))throw new TypeError;if(!kt(B))throw new TypeError;return an(k,B)}else{if(!Rt(k))throw new TypeError;if(!at(B))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Wn(ce))throw new TypeError;return Wn(ce)&&(ce=void 0),Q=_e(Q),Gn(k,B,Q,ce)}}o(K,"decorate"),t("decorate",K);function U(k,B){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!vn(Le))throw new TypeError;It(k,B,ce,Le)}return o(Q,"decorator"),Q}o(U,"metadata"),t("metadata",U);function ae(k,B,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=_e(ce)),It(k,B,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),en(k,B,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Lt(k,B,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function Pe(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Re(k,B,Q)}o(Pe,"getMetadata"),t("getMetadata",Pe);function D(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Oi(k,B,Q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),Mt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),sn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function Ue(k,B,Q){if(!at(B))throw new TypeError;if(Fe(Q)||(Q=_e(Q)),!at(B))throw new TypeError;Fe(Q)||(Q=_e(Q));var ce=Nr(B,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o(Ue,"deleteMetadata"),t("deleteMetadata",Ue);function an(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce(B);if(!Fe(Le)&&!Wn(Le)){if(!kt(Le))throw new TypeError;B=Le}}return B}o(an,"DecorateConstructor");function Gn(k,B,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var mn=k[Le],xn=mn(B,Q,ce);if(!Fe(xn)&&!Wn(xn)){if(!at(xn))throw new TypeError;ce=xn}}return ce}o(Gn,"DecorateProperty");function en(k,B,Q){var ce=Lt(k,B,Q);if(ce)return!0;var Le=Gt(B);return Wn(Le)?!1:en(k,Le,Q)}o(en,"OrdinaryHasMetadata");function Lt(k,B,Q){var ce=Nr(B,Q,!1);return Fe(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 Le=Gt(B);if(!Wn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Oi(k,B,Q){var ce=Nr(B,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Oi,"OrdinaryGetOwnMetadata");function It(k,B,Q,ce){var Le=Nr(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(It,"OrdinaryDefineOwnMetadata");function Mt(k,B){var Q=sn(k,B),ce=Gt(k);if(ce===null)return Q;var Le=Mt(ce,B);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var mn=new A,xn=[],tt=0,he=Q;tt<he.length;tt++){var be=he[tt],Ce=mn.has(be);Ce||(mn.add(be),xn.push(be))}for(var Oe=0,rt=Le;Oe<rt.length;Oe++){var be=rt[Oe],Ce=mn.has(be);Ce||(mn.add(be),xn.push(be))}return xn}o(Mt,"OrdinaryMetadataKeys");function sn(k,B){var Q=Nr(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(sn,"OrdinaryOwnMetadataKeys");function Hi(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(Hi,"Type");function Fe(k){return k===void 0}o(Fe,"IsUndefined");function Wn(k){return k===null}o(Wn,"IsNull");function Or(k){return typeof k=="symbol"}o(Or,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function I(k,B){switch(Hi(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=Ht(k,a);if(ce!==void 0){var Le=ce.call(k,Q);if(at(Le))throw new TypeError;return Le}return S(k,Q==="default"?"number":Q)}o(I,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(Qe(Q)){var ce=Q.call(k);if(!at(ce))return ce}var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}}else{var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}var mn=k.toString;if(Qe(mn)){var ce=mn.call(k);if(!at(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function z(k){return!!k}o(z,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=I(k,3);return Or(B)?B:V(B)}o(_e,"ToPropertyKey");function Rt(k){return Array.isArray?Array.isArray(k):k instanceof Object?k instanceof Array:Object.prototype.toString.call(k)==="[object Array]"}o(Rt,"IsArray");function Qe(k){return typeof k=="function"}o(Qe,"IsCallable");function kt(k){return typeof k=="function"}o(kt,"IsConstructor");function vn(k){switch(Hi(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 Ht(k,B){var Q=k[B];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}o(Ht,"GetMethod");function ti(k){var B=Ht(k,s);if(!Qe(B))throw new TypeError;var Q=B.call(k);if(!at(Q))throw new TypeError;return Q}o(ti,"GetIterator");function ar(k){return k.value}o(ar,"IteratorValue");function gn(k){var B=k.next();return B.done?!1:B}o(gn,"IteratorStep");function hi(k){var B=k.return;B&&B.call(k)}o(hi,"IteratorClose");function Gt(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 Le=ce.constructor;return typeof Le!="function"||Le===k?B:Le}o(Gt,"OrdinaryGetPrototypeOf");function zo(){var k;!Fe(O)&&typeof n.Reflect<"u"&&!(O in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=ws(n.Reflect));var B,Q,ce,Le=new b,mn={registerProvider:xn,getProvider:he,setProvider:Ce};return mn;function xn(Oe){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Oe:break;case Fe(B):B=Oe;break;case B===Oe:break;case Fe(Q):Q=Oe;break;case Q===Oe:break;default:ce===void 0&&(ce=new A),ce.add(Oe);break}}function tt(Oe,rt){if(!Fe(B)){if(B.isProviderFor(Oe,rt))return B;if(!Fe(Q)){if(Q.isProviderFor(Oe,rt))return B;if(!Fe(ce))for(var Wt=ti(ce);;){var ln=gn(Wt);if(!ln)return;var sr=ar(ln);if(sr.isProviderFor(Oe,rt))return hi(Wt),sr}}}if(!Fe(k)&&k.isProviderFor(Oe,rt))return k}function he(Oe,rt){var Wt=Le.get(Oe),ln;return Fe(Wt)||(ln=Wt.get(rt)),Fe(ln)&&(ln=tt(Oe,rt),Fe(ln)||(Fe(Wt)&&(Wt=new T,Le.set(Oe,Wt)),Wt.set(rt,ln))),ln}function be(Oe){if(Fe(Oe))throw new TypeError;return B===Oe||Q===Oe||!Fe(ce)&&ce.has(Oe)}function Ce(Oe,rt,Wt){if(!be(Wt))throw new Error("Metadata provider not registered.");var ln=he(Oe,rt);if(ln!==Wt){if(!Fe(ln))return!1;var sr=Le.get(Oe);Fe(sr)&&(sr=new T,Le.set(Oe,sr)),sr.set(rt,Wt)}return!0}}o(zo,"CreateMetadataRegistry");function Gi(){var k;return!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[O]),Fe(k)&&(k=zo()),!Fe(O)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,O,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Gi,"GetOrCreateMetadataRegistry");function Rf(k){var B=new b,Q={isProviderFor:o(function(be,Ce){var Oe=B.get(be);return Fe(Oe)?!1:Oe.has(Ce)},"isProviderFor"),OrdinaryDefineOwnMetadata:xn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:he};return F.registerProvider(Q),Q;function ce(be,Ce,Oe){var rt=B.get(be),Wt=!1;if(Fe(rt)){if(!Oe)return;rt=new T,B.set(be,rt),Wt=!0}var ln=rt.get(Ce);if(Fe(ln)){if(!Oe)return;if(ln=new T,rt.set(Ce,ln),!k.setProvider(be,Ce,Q))throw rt.delete(Ce),Wt&&B.delete(be),new Error("Wrong provider for target.")}return ln}o(ce,"GetOrCreateMetadataMap");function Le(be,Ce,Oe){var rt=ce(Ce,Oe,!1);return Fe(rt)?!1:z(rt.has(be))}o(Le,"OrdinaryHasOwnMetadata");function mn(be,Ce,Oe){var rt=ce(Ce,Oe,!1);if(!Fe(rt))return rt.get(be)}o(mn,"OrdinaryGetOwnMetadata");function xn(be,Ce,Oe,rt){var Wt=ce(Oe,rt,!0);Wt.set(be,Ce)}o(xn,"OrdinaryDefineOwnMetadata");function tt(be,Ce){var Oe=[],rt=ce(be,Ce,!1);if(Fe(rt))return Oe;for(var Wt=rt.keys(),ln=ti(Wt),sr=0;;){var vd=gn(ln);if(!vd)return Oe.length=sr,Oe;var uv=ar(vd);try{Oe[sr]=uv}catch(Vf){try{hi(ln)}finally{throw Vf}}sr++}}o(tt,"OrdinaryOwnMetadataKeys");function he(be,Ce,Oe){var rt=ce(Ce,Oe,!1);if(Fe(rt)||!rt.delete(be))return!1;if(rt.size===0){var Wt=B.get(Ce);Fe(Wt)||(Wt.delete(Oe),Wt.size===0&&B.delete(Wt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(Rf,"CreateMetadataProvider");function ws(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,mn=k.deleteMetadata,xn=new b,tt={isProviderFor:o(function(he,be){var Ce=xn.get(he);return!Fe(Ce)&&Ce.has(be)?!0:Le(he,be).length?(Fe(Ce)&&(Ce=new A,xn.set(he,Ce)),Ce.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:mn};return tt}o(ws,"CreateFallbackProvider");function Nr(k,B,Q){var ce=F.getProvider(k,B);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function Ff(){var k={},B=[],Q=function(){function tt(he,be,Ce){this._index=0,this._keys=he,this._values=be,this._selector=Ce}return o(tt,"MapIterator"),tt.prototype["@@iterator"]=function(){return this},tt.prototype[s]=function(){return this},tt.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}},tt.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},tt.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},tt}(),ce=function(){function tt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(tt,"Map"),Object.defineProperty(tt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),tt.prototype.has=function(he){return this._find(he,!1)>=0},tt.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},tt.prototype.set=function(he,be){var Ce=this._find(he,!0);return this._values[Ce]=be,this},tt.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var Ce=this._keys.length,Oe=be+1;Oe<Ce;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];return this._keys.length--,this._values.length--,cn(he,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},tt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},tt.prototype.keys=function(){return new Q(this._keys,this._values,Le)},tt.prototype.values=function(){return new Q(this._keys,this._values,mn)},tt.prototype.entries=function(){return new Q(this._keys,this._values,xn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.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},tt}();return ce;function Le(tt,he){return tt}function mn(tt,he){return he}function xn(tt,he){return[tt,he]}}o(Ff,"CreateMapPolyfill");function Df(){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(Df,"CreateSetPolyfill");function _f(){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=Le(be,!1);return Ce!==void 0?g.has(Ce,this._key):!1},he.prototype.get=function(be){var Ce=Le(be,!1);return Ce!==void 0?g.get(Ce,this._key):void 0},he.prototype.set=function(be,Ce){var Oe=Le(be,!0);return Oe[this._key]=Ce,this},he.prototype.delete=function(be){var Ce=Le(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@@"+tt();while(g.has(B,he));return B[he]=!0,he}function Le(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 tt(){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 Oe=he[Ce];(Ce===4||Ce===6||Ce===8)&&(be+="-"),Oe<16&&(be+="0"),be+=Oe.toString(16).toLowerCase()}return be}}o(_f,"CreateWeakMapPolyfill");function Ms(k){return k.__=void 0,delete k.__,k}o(Ms,"MakeDictionary")})})(zF||(zF={}))});var i0=ze((GJ,n0)=>{var KW=0,t0="changeUtils: ";function XW(){return"id-"+new Date().valueOf()+"-"+KW++}o(XW,"uid");function QW(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(QW,"appendComponentToReference");function qW(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return QW(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(qW,"getFlexReference");function zW(e){let t=e["sap.app"];if(!t||!t.applicationVersion||!t.applicationVersion.version)throw Error("app version could not be determined");return t.applicationVersion.version}o(zW,"getAppVersion");function YW(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(YW,"getProjectId");function e0(e){return JSON.stringify({fileName:e.id||XW().replace(/-/g,"_")+"_"+e.type,fileType:"change",changeType:e.type,moduleName:"",reference:e.reference,packageName:"",content:e.content||{},selector:{id:e.controlId,idIsLocal:!1,type:e.controlType},layer:e.isCustomer?"CUSTOMER_BASE":"VENDOR",texts:{},namespace:"apps/"+e.reference.replace(".Component","")+"/changes/",projectId:e.projectId,creation:e.creation||new Date().valueOf(),originalLanguage:"",support:{generator:t0+e.creatingTool,service:"",user:"",sapui5Version:e.sapui5Version,sourceChangeFileName:"",compositeCommand:""},oDataInformation:{},dependentSelector:{},validAppVersions:{from:e.appVersion,to:e.appVersion,creation:e.appVersion},jsOnly:!1,variantReference:"",appDescriptorChange:!1})}o(e0,"createString");n0.exports={parse:o(function(e){let t=JSON.parse(e);if(!t.fileName||!t.changeType||!t.selector||!t.reference||!t.creation||!t.content||!t.layer||!t.support)throw Error("Parsed object does not contain all required parameters");return{id:t.fileName,reference:t.reference,appVersion:t.validAppVersions?t.validAppVersions.creation:"",creation:t.creation,projectId:t.projectId,type:t.changeType,controlId:t.selector.id,controlType:t.selector.type,isCustomer:t.layer==="CUSTOMER_BASE",creatingTool:t.support.generator.replace(t0,""),content:t.content,sapui5Version:t.support.sapui5Version}},"parse"),createChangeString:o(function(e,t){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool)throw Error("not all property parameters of the change were provided");if(!t)throw Error("no manifest was provided");return e.reference=qW(t),e.appVersion=zW(t),e.projectId=YW(t,e.reference),e0(e)},"createChangeString"),toString:o(function(e){if(!e.type||!e.controlId||typeof e.isCustomer!="boolean"||!e.creatingTool||!(e.reference&&e.appVersion))throw Error("not all parameters of the change were provided");return e0(e)},"toString")}});var o0=ze((KJ,r0)=>{r0.exports={change:i0()}});var z0=ze(Br=>{"use strict";var F8=/[|\\{}()[\]^$+*?.]/g,D8=Object.prototype.hasOwnProperty,Zb=o(function(e,t){return D8.apply(e,[t])},"hasOwn");Br.escapeRegExpChars=function(e){return e?String(e).replace(F8,"\\$&"):""};var _8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},V8=/[&<>'"]/g;function w8(e){return _8[e]||e}o(w8,"encode_char");var M8=`var _ENCODE_HTML_RULES = {
19
+ </Annotations>`),r}o(qR,"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 NG(e,t,n,i,r){let a;return!r.type&&t?a=qR(e,t,n.fullyQualifiedName,i):a=e.unalias(r.type),a}o(NG,"parseRecordType");function ab(e,t,n,i,r,a,s){let l={$Type:NG(e,t,n,i,a),fullyQualifiedName:s,[io]:n,__source:r};for(let u of a.propertyValues)(0,Se.lazy)(l,u.name,()=>QR(e,n,t,u.name,r,u.value,`${s}/${u.name}`));return(0,Se.lazy)(l,"annotations",JR(e,a,l)),IG(l)&&(0,Se.lazy)(l,"ActionTarget",()=>{var u,p;let g=e.unalias((u=l.Action)===null||u===void 0?void 0:u.toString()),m=n.actions[g];return m||(m=(p=e.getConvertedActionImport(g))===null||p===void 0?void 0:p.action),m||(m=e.getConvertedAction(g),m!=null&&m.isBound||(m=void 0)),m||e.logError(`${l.fullyQualifiedName}: Unable to resolve '${l.Action}' ('${g}')`),m}),l}o(ab,"parseRecord");function LG(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(LG,"getOrInferCollectionType");function zR(e,t,n,i,r,a,s){switch(LG(a)){case"PropertyPath":return a.map((u,p)=>WR(e,u,`${s}/${p}`,t,n));case"Path":return a.map(u=>gr(e,t,u.Path,n).target);case"AnnotationPath":return a.map((u,p)=>KR(e,u,`${s}/${p}`,t,n));case"NavigationPropertyPath":return a.map((u,p)=>XR(e,u,`${s}/${p}`,t,n));case"Record":return a.map((u,p)=>ab(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(zR,"parseCollection");function RG(e){return!!e.targetTypeName}o(RG,"isV4NavigationProperty");function FG(e,t,n){var i;let r;if(n.record)r=ab(e,n.term,t,"",n.__source,n.record,n.fullyQualifiedName);else if(n.collection===void 0)r=QR(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=zR(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[io]=t;let[a,s]=e.splitTerm(n.term);r.term=e.unalias(`${a}.${s}`,Cg.VocabularyReferences),r.qualifier=n.qualifier,r.__source=n.__source;try{(0,Se.lazy)(r,"annotations",JR(e,n,r))}catch{}return r}o(FG,"convertAnnotation");var sb=class sb{getAnnotations(t){var n;if(this.annotationsByTarget===void 0){let i=Object.keys(this.rawSchema.annotations).map(r=>({name:r,annotationList:this.rawSchema.annotations[r]}));this.annotationsByTarget=(0,Se.mergeAnnotations)(this.rawMetadata.references,...i)}return(n=this.annotationsByTarget[t])!==null&&n!==void 0?n:[]}getConvertedEntityContainer(){return this.getConvertedElement(this.rawMetadata.schema.entityContainer.fullyQualifiedName,this.rawMetadata.schema.entityContainer,ZR)}getConvertedEntitySet(t){return this.convertedOutput.entitySets.by_fullyQualifiedName(t)}getConvertedSingleton(t){return this.convertedOutput.singletons.by_fullyQualifiedName(t)}getConvertedEntityType(t){return this.convertedOutput.entityTypes.by_fullyQualifiedName(t)}getConvertedComplexType(t){return this.convertedOutput.complexTypes.by_fullyQualifiedName(t)}getConvertedTypeDefinition(t){return this.convertedOutput.typeDefinitions.by_fullyQualifiedName(t)}getConvertedActionImport(t){let n=this.convertedOutput.actionImports.by_fullyQualifiedName(t);return n||(n=this.convertedOutput.actionImports.by_name(t)),n}getConvertedAction(t){return this.convertedOutput.actions.by_fullyQualifiedName(t)}convert(t,n){return Array.isArray(t)?()=>{let i=t.reduce((r,a)=>{let s=this.getConvertedElement(a.fullyQualifiedName,a,n);return s&&r.push(s),r},[]);return(0,Se.addGetByValue)(i,"name"),(0,Se.addGetByValue)(i,"fullyQualifiedName"),i}:()=>this.getConvertedElement(t.fullyQualifiedName,t,n)}constructor(t,n){this.convertedElements=new Map,this.rawMetadata=t,this.rawSchema=t.schema,this.convertedOutput=n}getConvertedElement(t,n,i){let r=this.convertedElements.get(t);if(r===void 0){let a=typeof n=="function"?n.apply(void 0,[t]):n;a!==void 0&&(r=i.apply(void 0,[this,a]),this.convertedElements.set(t,r))}return r}logError(t){this.convertedOutput.diagnostics.push({message:t})}splitTerm(t){let n=(0,Se.alias)(Cg.VocabularyReferences,t);return(0,Se.splitAtLast)(n,".")}unalias(t,n=this.rawMetadata.references){var i;return(i=(0,Se.unalias)(n,t,this.rawSchema.namespace))!==null&&i!==void 0?i:""}};o(sb,"Converter");var rb=sb;function ru(e,t){return()=>{let n=e.getConvertedEntityType(t);return n||(e.logError(`EntityType '${t}' not found`),n={}),n}}o(ru,"resolveEntityType");function YR(e,t){return()=>Object.keys(t).reduce((n,i)=>{let r=t[i];return(0,Se.lazy)(n,i,()=>{var a;return(a=e.getConvertedEntitySet(r))!==null&&a!==void 0?a:e.getConvertedSingleton(r)}),n},{})}o(YR,"resolveNavigationPropertyBindings");function sa(e,t){let n=t.annotations;return()=>Og(e,t,n??e.getAnnotations(t.fullyQualifiedName))}o(sa,"resolveAnnotations");function JR(e,t,n){return()=>{let i=n.fullyQualifiedName,r;return t.annotations&&t.annotations.length>0?r=t.annotations:r=e.getAnnotations(i),r==null||r.forEach(a=>{a.target=i,a.__source=n.__source,a[io]=n[io],a.fullyQualifiedName=`${i}@${a.term}`}),Og(e,n,r??[])}}o(JR,"resolveAnnotationsOnAnnotation");function Og(e,t,n){return n.reduce((i,r)=>{let[a,s]=e.splitTerm(r.term),l=`${s}${r.qualifier?"#"+r.qualifier:""}`;return i[a]===void 0&&(i[a]={}),i[a].hasOwnProperty(l)||(0,Se.lazy)(i[a],l,()=>e.getConvertedElement(r.fullyQualifiedName,r,(u,p)=>FG(u,t,p))),i},{})}o(Og,"createAnnotationsObject");function ZR(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"entitySets",e.convert(e.rawSchema.entitySets,tF)),(0,Se.lazy)(n,"singletons",e.convert(e.rawSchema.singletons,eF)),(0,Se.lazy)(n,"actionImports",e.convert(e.rawSchema.actionImports,iF)),n}o(ZR,"convertEntityContainer");function eF(e,t){let n=t;(0,Se.lazy)(n,"entityType",ru(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",YR(e,i)),n}o(eF,"convertSingleton");function tF(e,t){let n=t;(0,Se.lazy)(n,"entityType",ru(e,t.entityTypeName)),(0,Se.lazy)(n,"annotations",sa(e,n));let i=t.navigationPropertyBinding;return(0,Se.lazy)(n,"navigationPropertyBinding",YR(e,i)),n}o(tF,"convertEntitySet");function DG(e,t){let n=t;return t.keys.forEach(i=>{i.isKey=!0}),(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"keys",e.convert(t.keys,ob)),(0,Se.lazy)(n,"entityProperties",e.convert(t.entityProperties,ob)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,nF)),(0,Se.lazy)(n,"actions",()=>e.rawSchema.actions.filter(i=>i.isBound&&(i.sourceType===t.fullyQualifiedName||i.sourceType===`Collection(${t.fullyQualifiedName})`)).reduce((i,r)=>{let a=`${e.rawSchema.namespace}.${r.name}`;return i[a]=e.getConvertedAction(r.fullyQualifiedName),i},{})),n.resolvePath=(i,r)=>{let a=gr(e,t,i);return r?{target:a.target,visitedObjects:a.objectPath,messages:a.messages}:a.target},n}o(DG,"convertEntityType");function ob(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"targetType",()=>{var i;let r=t.type,a=r.startsWith("Collection")?r.substring(11,r.length-1):r;return(i=e.getConvertedComplexType(a))!==null&&i!==void 0?i:e.getConvertedTypeDefinition(a)}),n}o(ob,"convertProperty");function nF(e,t){var n,i,r;let a=t;if(a.referentialConstraint=(n=a.referentialConstraint)!==null&&n!==void 0?n:[],!RG(t)){let s=(i=e.rawSchema.associations.find(l=>l.fullyQualifiedName===t.relationship))===null||i===void 0?void 0:i.associationEnd.find(l=>l.role===t.toRole);a.isCollection=(s==null?void 0:s.multiplicity)==="*",a.targetTypeName=(r=s==null?void 0:s.type)!==null&&r!==void 0?r:""}return(0,Se.lazy)(a,"targetType",ru(e,t.targetTypeName)),(0,Se.lazy)(a,"annotations",sa(e,t)),a}o(nF,"convertNavigationProperty");function iF(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),(0,Se.lazy)(n,"action",()=>{let i=e.rawSchema.actions.filter(r=>!r.isBound&&r.fullyQualifiedName.startsWith(t.actionName));return i.length>1&&e.logError(`Ambiguous reference in action import: ${t.fullyQualifiedName}`),e.getConvertedAction(i[0].fullyQualifiedName)}),n}o(iF,"convertActionImport");function _G(e,t){let n=t;return n.sourceType&&(0,Se.lazy)(n,"sourceEntityType",ru(e,t.sourceType)),n.returnType&&(0,Se.lazy)(n,"returnEntityType",ru(e,t.returnType)),(0,Se.lazy)(n,"parameters",e.convert(t.parameters,VG)),(0,Se.lazy)(n,"annotations",()=>{let i=(0,Se.substringBeforeFirst)(t.fullyQualifiedName,"("),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Og(e,t,a)}),n}o(_G,"convertAction");function VG(e,t){let n=t;return(0,Se.lazy)(n,"typeReference",()=>{var i,r;return(r=(i=e.getConvertedEntityType(t.type))!==null&&i!==void 0?i:e.getConvertedComplexType(t.type))!==null&&r!==void 0?r:e.getConvertedTypeDefinition(t.type)}),(0,Se.lazy)(n,"annotations",()=>{let i=t.fullyQualifiedName.substring(0,t.fullyQualifiedName.indexOf("("))+t.fullyQualifiedName.substring(t.fullyQualifiedName.lastIndexOf(")")+1),r=t.fullyQualifiedName,a=e.getAnnotations(r),s=e.getAnnotations(i);for(let l of s)a.some(u=>u.term===l.term&&u.qualifier===l.qualifier)||a.push(l);return Og(e,t,a)}),n}o(VG,"convertActionParameter");function wG(e,t){let n=t;return(0,Se.lazy)(n,"properties",e.convert(t.properties,ob)),(0,Se.lazy)(n,"navigationProperties",e.convert(t.navigationProperties,nF)),(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(wG,"convertComplexType");function MG(e,t){let n=t;return(0,Se.lazy)(n,"annotations",sa(e,t)),n}o(MG,"convertTypeDefinition");function kG(e){let t={version:e.version,namespace:e.schema.namespace,annotations:e.schema.annotations,references:Cg.VocabularyReferences,diagnostics:[]},n=new rb(e,t);return(0,Se.lazy)(t,"entityContainer",n.convert(n.rawSchema.entityContainer,ZR)),(0,Se.lazy)(t,"entitySets",n.convert(n.rawSchema.entitySets,tF)),(0,Se.lazy)(t,"singletons",n.convert(n.rawSchema.singletons,eF)),(0,Se.lazy)(t,"entityTypes",n.convert(n.rawSchema.entityTypes,DG)),(0,Se.lazy)(t,"actions",n.convert(n.rawSchema.actions,_G)),(0,Se.lazy)(t,"complexTypes",n.convert(n.rawSchema.complexTypes,wG)),(0,Se.lazy)(t,"actionImports",n.convert(n.rawSchema.actionImports,iF)),(0,Se.lazy)(t,"typeDefinitions",n.convert(n.rawSchema.typeDefinitions,MG)),t.resolvePath=o(function(r){let a=gr(n,void 0,r);return a.target&&aa(a.objectPath,a.target),a},"resolvePath"),t}o(kG,"convert");Ig.convert=kG});var cF=ze(Lg=>{"use strict";Object.defineProperty(Lg,"__esModule",{value:!0});Lg.revertTermToGenericType=void 0;var cb=xg();function jG(e,t){var n,i,r,a,s,l,u;let p;if(Array.isArray(t)){let g=t[0],m=!1;if(g&&typeof g=="string"){let v=g.valueOf().split(".");v.length>1&&e.find(A=>A.alias===v[0])&&(m=cb.EnumIsFlag[(0,cb.substringBeforeFirst)(g,"/")])}m?p={type:"EnumMember",EnumMember:t.map(v=>v.valueOf()).join(" ")}:p={type:"Collection",Collection:t.map(v=>Ng(e,v))}}else if(!((n=t.isDecimal)===null||n===void 0)&&n.call(t))p={type:"Decimal",Decimal:t.valueOf()};else if(!((i=t.isDouble)===null||i===void 0)&&i.call(t))p={type:"Double",Double:t.valueOf()};else if(!((r=t.isString)===null||r===void 0)&&r.call(t)){let g=t.valueOf().split(".");g.length>1&&e.find(m=>m.alias===g[0])?p={type:"EnumMember",EnumMember:t.valueOf()}:p={type:"String",String:t.valueOf()}}else!((a=t.isInt)===null||a===void 0)&&a.call(t)?p={type:"Int",Int:t.valueOf()}:!((s=t.isFloat)===null||s===void 0)&&s.call(t)?p={type:"Float",Float:t.valueOf()}:!((l=t.isDate)===null||l===void 0)&&l.call(t)?p={type:"Date",Date:t.valueOf()}:!((u=t.isBoolean)===null||u===void 0)&&u.call(t)?p={type:"Bool",Bool:t.valueOf()}:t.type==="Path"?p={type:"Path",Path:t.path}:t.type==="AnnotationPath"?p={type:"AnnotationPath",AnnotationPath:t.value}:t.type==="Apply"?p={type:"Apply",$Apply:t.$Apply,$Function:t.$Function}:t.type==="Null"?p={type:"Null"}:t.type==="PropertyPath"?p={type:"PropertyPath",PropertyPath:t.value}:t.type==="NavigationPropertyPath"?p={type:"NavigationPropertyPath",NavigationPropertyPath:t.value}:Object.prototype.hasOwnProperty.call(t,"$Type")&&(p={type:"Record",Record:Ng(e,t)});return p}o(jG,"revertObjectToRawType");function oF(e,t){let n;switch(t.type==="Constant"&&(t=t.value),t==null?void 0:t.constructor.name){case"String":case"string":let r=t.toString().split(".");r.length>1&&e.find(a=>a.alias===r[0])?n={type:"EnumMember",EnumMember:t.toString()}:n={type:"String",String:t.toString()};break;case"Boolean":case"boolean":n={type:"Bool",Bool:t.valueOf()};break;case"Number":case"number":t.toString()===t.toFixed()?n={type:"Int",Int:t.valueOf()}:n={type:"Decimal",Decimal:t.valueOf()};break;case"object":default:n=jG(e,t);break}return n}o(oF,"revertValueToRawType");var UG=["$Type","term","__source","qualifier","ActionTarget","fullyQualifiedName","annotations"];function aF(e,t,n){Object.keys(t).filter(i=>i!=="_annotations").forEach(i=>{Object.keys(t[i]).forEach(r=>{let a=sF(e,t[i][r]);if(!a.term){let s=(0,cb.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(aF,"revertAnnotationsToRawType");function Ng(e,t){if(typeof t=="string")return{type:"String",String:t};if(typeof t=="object")if(t.hasOwnProperty("$Type")){let n={type:t.$Type,propertyValues:[]};return Object.keys(t).forEach(i=>{if(UG.indexOf(i)===-1){let r=t[i];n.propertyValues.push({name:i,value:oF(e,r)})}else i==="annotations"&&Object.keys(t[i]).length>0&&(n.annotations=[],aF(e,t[i],n.annotations))}),n}else{if(t.type==="PropertyPath")return{type:"PropertyPath",PropertyPath:t.value};if(t.type==="AnnotationPath")return{type:"AnnotationPath",AnnotationPath:t.value};if(t.type==="NavigationPropertyPath")return{type:"NavigationPropertyPath",NavigationPropertyPath:t.value};if(t.type==="Constant")return t.value}}o(Ng,"revertCollectionItemToRawType");function sF(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=[],aF(e,t.annotations,n.annotations)),{...n,collection:t.map(i=>Ng(e,i))}):t.hasOwnProperty("$Type")?{...n,record:Ng(e,t)}:{...n,value:oF(e,t)}}o(sF,"revertTermToGenericType");Lg.revertTermToGenericType=sF});var lF=ze(ca=>{"use strict";var $G=ca&&ca.__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]}),lb=ca&&ca.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&$G(t,e,n)};Object.defineProperty(ca,"__esModule",{value:!0});lb(rF(),ca);lb(xg(),ca);lb(cF(),ca)});var gb=ze(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.MergedRawMetadata=Ga.RawMetadataInstance=Ga.ensureArray=void 0;function BG(e){return e==null?[]:Array.isArray(e)?e:[e]}o(BG,"ensureArray");Ga.ensureArray=BG;var pb=class pb{constructor(t,n,i,r){this.identification=t,this.references=r,this.version=n,this.schema=i}};o(pb,"RawMetadataInstance");var fb=pb;Ga.RawMetadataInstance=fb;var db=class db{get references(){return this._references}get schema(){return{associations:this._associations,associationSets:this._associationSets,annotations:this._annotations,entityContainer:this._entityContainer,namespace:this._namespace,entitySets:this._entitySets,singletons:this._singletons,complexTypes:this._complexTypes,typeDefinitions:this._typeDefinitions,actions:this._actions,actionImports:this._actionImports,entityTypes:this._entityTypes}}constructor(t){this._references=[],this._parserOutput=[],this._annotations={},this._associations=[],this._associationSets=[],this._entitySets=[],this._singletons=[],this._actions=[],this._actionImports=[],this._entityContainer={_type:"EntityContainer",fullyQualifiedName:""},this._entityTypes=[],this._complexTypes=[],this._typeDefinitions=[],this.identification="mergedParserInstance",this.version=t.version,this._namespace=t.schema.namespace}addParserOutput(t){this._parserOutput.push(t),this._references=this._references.concat(t.references),this._associations=this._associations.concat(t.schema.associations),this._associationSets=this._associationSets.concat(t.schema.associationSets),this._annotations=Object.assign(this._annotations,t.schema.annotations),this._entitySets=this._entitySets.concat(t.schema.entitySets),this._singletons=this._singletons.concat(t.schema.singletons),this._actions=this._actions.concat(t.schema.actions),this._actionImports=this._actionImports.concat(t.schema.actionImports),this._entityTypes=this._entityTypes.concat(t.schema.entityTypes),this._complexTypes=this._complexTypes.concat(t.schema.complexTypes),this._typeDefinitions=this._typeDefinitions.concat(t.schema.typeDefinitions),t.schema.entityContainer.fullyQualifiedName.length>0&&(this._entityContainer=Object.assign(this._entityContainer,t.schema.entityContainer))}};o(db,"MergedRawMetadata");var ub=db;Ga.MergedRawMetadata=ub});var fF=ze(Rg=>{"use strict";Object.defineProperty(Rg,"__esModule",{value:!0});Rg.merge=void 0;var HG=gb();function GG(...e){let t=new HG.MergedRawMetadata(e[0]);return e.forEach(n=>{t.addParserOutput(n)}),t}o(GG,"merge");Rg.merge=GG});var uF=ze(Fg=>{(function(e){e.parser=function(O,S){return new n(O,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(O,S){if(!(this instanceof n))return new n(O,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=!!O,z.noscript=!!(O||z.opt.noscript),z.state=D.BEGIN,z.strictEntities=z.opt.strictEntities,z.ENTITIES=z.strictEntities?Object.create(e.XML_ENTITIES):Object.create(e.ENTITIES),z.attribList=[],z.opt.xmlns&&(z.ns=Object.create(b)),z.opt.unquotedAttributeValues===void 0&&(z.opt.unquotedAttributeValues=!O),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(O){function S(){}o(S,"F"),S.prototype=O;var z=new S;return z}),Object.keys||(Object.keys=function(O){var S=[];for(var z in O)O.hasOwnProperty(z)&&S.push(z);return S});function i(O){for(var S=Math.max(e.MAX_BUFFER_LENGTH,10),z=0,V=0,_e=t.length;V<_e;V++){var Ft=O[t[V]].length;if(Ft>S)switch(t[V]){case"textNode":sn(O);break;case"cdata":Ue(O,"oncdata",O.cdata),O.cdata="";break;case"script":Ue(O,"onscript",O.script),O.script="";break;default:tn(O,"Max buffer length exceeded: "+t[V])}z=Math.max(z,Ft)}var Qe=e.MAX_BUFFER_LENGTH-z;O.bufferCheckPosition=Qe+O.position}o(i,"checkBufferLength");function r(O){for(var S=0,z=t.length;S<z;S++)O[t[S]]=""}o(r,"clearBuffers");function a(O){sn(O),O.cdata!==""&&(Ue(O,"oncdata",O.cdata),O.cdata=""),O.script!==""&&(Ue(O,"onscript",O.script),O.script="")}o(a,"flushBuffers"),n.prototype={end:o(function(){Rt(this)},"end"),write:at,resume:o(function(){return this.error=null,this},"resume"),close:o(function(){return this.write(null)},"close"),flush:o(function(){a(this)},"flush")};var s;try{s=require("stream").Stream}catch{s=o(function(){},"Stream")}s||(s=o(function(){},"Stream"));var l=e.EVENTS.filter(function(O){return O!=="error"&&O!=="end"});function u(O,S){return new p(O,S)}o(u,"createStream");function p(O,S){if(!(this instanceof p))return new p(O,S);s.apply(this),this._parser=new n(O,S),this.writable=!0,this.readable=!0;var z=this;this._parser.onend=function(){z.emit("end")},this._parser.onerror=function(V){z.emit("error",V),z._parser.error=null},this._decoder=null,l.forEach(function(V){Object.defineProperty(z,"on"+V,{get:o(function(){return z._parser["on"+V]},"get"),set:o(function(_e){if(!_e)return z.removeAllListeners(V),z._parser["on"+V]=_e,_e;z.on(V,_e)},"set"),enumerable:!0,configurable:!1})})}o(p,"SAXStream"),p.prototype=Object.create(s.prototype,{constructor:{value:p}}),p.prototype.write=function(O){if(typeof Buffer=="function"&&typeof Buffer.isBuffer=="function"&&Buffer.isBuffer(O)){if(!this._decoder){var S=require("string_decoder").StringDecoder;this._decoder=new S("utf8")}O=this._decoder.write(O)}return this._parser.write(O.toString()),this.emit("data",O),!0},p.prototype.end=function(O){return O&&O.length&&this.write(O),this._parser.end(),!0},p.prototype.on=function(O,S){var z=this;return!z._parser["on"+O]&&l.indexOf(O)!==-1&&(z._parser["on"+O]=function(){var V=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);V.splice(0,0,O),z.emit.apply(z,V)}),s.prototype.on.call(z,O,S)};var g="[CDATA[",m="DOCTYPE",v="http://www.w3.org/XML/1998/namespace",A="http://www.w3.org/2000/xmlns/",b={xml:v,xmlns:A},I=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,F=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,j=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,K=/[#:_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 U(O){return O===" "||O===`
20
+ `||O==="\r"||O===" "}o(U,"isWhitespace");function ae(O){return O==='"'||O==="'"}o(ae,"isQuote");function Z(O){return O===">"||U(O)}o(Z,"isAttribEnd");function re(O,S){return O.test(S)}o(re,"isMatch");function Pe(O,S){return!re(O,S)}o(Pe,"notMatch");var D=0;e.STATE={BEGIN:D++,BEGIN_WHITESPACE:D++,TEXT:D++,TEXT_ENTITY:D++,OPEN_WAKA:D++,SGML_DECL:D++,SGML_DECL_QUOTED:D++,DOCTYPE:D++,DOCTYPE_QUOTED:D++,DOCTYPE_DTD:D++,DOCTYPE_DTD_QUOTED:D++,COMMENT_STARTING:D++,COMMENT:D++,COMMENT_ENDING:D++,COMMENT_ENDED:D++,CDATA:D++,CDATA_ENDING:D++,CDATA_ENDING_2:D++,PROC_INST:D++,PROC_INST_BODY:D++,PROC_INST_ENDING:D++,OPEN_TAG:D++,OPEN_TAG_SLASH:D++,ATTRIB:D++,ATTRIB_NAME:D++,ATTRIB_NAME_SAW_WHITE:D++,ATTRIB_VALUE:D++,ATTRIB_VALUE_QUOTED:D++,ATTRIB_VALUE_CLOSED:D++,ATTRIB_VALUE_UNQUOTED:D++,ATTRIB_VALUE_ENTITY_Q:D++,ATTRIB_VALUE_ENTITY_U:D++,CLOSE_TAG:D++,CLOSE_TAG_SAW_WHITE:D++,SCRIPT:D++,SCRIPT_ENDING:D++},e.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},e.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(e.ENTITIES).forEach(function(O){var S=e.ENTITIES[O],z=typeof S=="number"?String.fromCharCode(S):S;e.ENTITIES[O]=z});for(var ut in e.STATE)e.STATE[e.STATE[ut]]=ut;D=e.STATE;function yt(O,S,z){O[S]&&O[S](z)}o(yt,"emit");function Ue(O,S,z){O.textNode&&sn(O),yt(O,S,z)}o(Ue,"emitNode");function sn(O){O.textNode=Gn(O.opt,O.textNode),O.textNode&&yt(O,"ontext",O.textNode),O.textNode=""}o(sn,"closeText");function Gn(O,S){return O.trim&&(S=S.trim()),O.normalize&&(S=S.replace(/\s+/g," ")),S}o(Gn,"textopts");function tn(O,S){return sn(O),O.trackPosition&&(S+=`
21
+ Line: `+O.line+`
22
+ Column: `+O.column+`
23
+ Char: `+O.c),S=new Error(S),O.error=S,yt(O,"onerror",S),O}o(tn,"error");function Rt(O){return O.sawRoot&&!O.closedRoot&&Re(O,"Unclosed root tag"),O.state!==D.BEGIN&&O.state!==D.BEGIN_WHITESPACE&&O.state!==D.TEXT&&tn(O,"Unexpected end"),sn(O),O.c="",O.closed=!0,yt(O,"onend"),n.call(O,O.strict,O.opt),O}o(Rt,"end");function Re(O,S){if(typeof O!="object"||!(O instanceof n))throw new Error("bad call to strictFail");O.strict&&tn(O,S)}o(Re,"strictFail");function Ii(O){O.strict||(O.tagName=O.tagName[O.looseCase]());var S=O.tags[O.tags.length-1]||O,z=O.tag={name:O.tagName,attributes:{}};O.opt.xmlns&&(z.ns=S.ns),O.attribList.length=0,Ue(O,"onopentagstart",z)}o(Ii,"newTag");function Ot(O,S){var z=O.indexOf(":"),V=z<0?["",O]:O.split(":"),_e=V[0],Ft=V[1];return S&&O==="xmlns"&&(_e="xmlns",Ft=""),{prefix:_e,local:Ft}}o(Ot,"qname");function kt(O){if(O.strict||(O.attribName=O.attribName[O.looseCase]()),O.attribList.indexOf(O.attribName)!==-1||O.tag.attributes.hasOwnProperty(O.attribName)){O.attribName=O.attribValue="";return}if(O.opt.xmlns){var S=Ot(O.attribName,!0),z=S.prefix,V=S.local;if(z==="xmlns")if(V==="xml"&&O.attribValue!==v)Re(O,"xml: prefix must be bound to "+v+`
24
+ Actual: `+O.attribValue);else if(V==="xmlns"&&O.attribValue!==A)Re(O,"xmlns: prefix must be bound to "+A+`
25
+ Actual: `+O.attribValue);else{var _e=O.tag,Ft=O.tags[O.tags.length-1]||O;_e.ns===Ft.ns&&(_e.ns=Object.create(Ft.ns)),_e.ns[V]=O.attribValue}O.attribList.push([O.attribName,O.attribValue])}else O.tag.attributes[O.attribName]=O.attribValue,Ue(O,"onattribute",{name:O.attribName,value:O.attribValue});O.attribName=O.attribValue=""}o(kt,"attrib");function cn(O,S){if(O.opt.xmlns){var z=O.tag,V=Ot(O.tagName);z.prefix=V.prefix,z.local=V.local,z.uri=z.ns[V.prefix]||"",z.prefix&&!z.uri&&(Re(O,"Unbound namespace prefix: "+JSON.stringify(O.tagName)),z.uri=V.prefix);var _e=O.tags[O.tags.length-1]||O;z.ns&&_e.ns!==z.ns&&Object.keys(z.ns).forEach(function(Wt){Ue(O,"onopennamespace",{prefix:Wt,uri:z.ns[Wt]})});for(var Ft=0,Qe=O.attribList.length;Ft<Qe;Ft++){var jt=O.attribList[Ft],vn=jt[0],ln=jt[1],Gt=Ot(vn,!0),ti=Gt.prefix,ar=Gt.local,gn=ti===""?"":z.ns[ti]||"",hi={name:vn,value:ln,prefix:ti,local:ar,uri:gn};ti&&ti!=="xmlns"&&!gn&&(Re(O,"Unbound namespace prefix: "+JSON.stringify(ti)),hi.uri=ti),O.tag.attributes[vn]=hi,Ue(O,"onattribute",hi)}O.attribList.length=0}O.tag.isSelfClosing=!!S,O.sawRoot=!0,O.tags.push(O.tag),Ue(O,"onopentag",O.tag),S||(!O.noscript&&O.tagName.toLowerCase()==="script"?O.state=D.SCRIPT:O.state=D.TEXT,O.tag=null,O.tagName=""),O.attribName=O.attribValue="",O.attribList.length=0}o(cn,"openTag");function Hi(O){if(!O.tagName){Re(O,"Weird empty close tag."),O.textNode+="</>",O.state=D.TEXT;return}if(O.script){if(O.tagName!=="script"){O.script+="</"+O.tagName+">",O.tagName="",O.state=D.SCRIPT;return}Ue(O,"onscript",O.script),O.script=""}var S=O.tags.length,z=O.tagName;O.strict||(z=z[O.looseCase]());for(var V=z;S--;){var _e=O.tags[S];if(_e.name!==V)Re(O,"Unexpected close tag");else break}if(S<0){Re(O,"Unmatched closing tag: "+O.tagName),O.textNode+="</"+O.tagName+">",O.state=D.TEXT;return}O.tagName=z;for(var Ft=O.tags.length;Ft-- >S;){var Qe=O.tag=O.tags.pop();O.tagName=O.tag.name,Ue(O,"onclosetag",O.tagName);var jt={};for(var vn in Qe.ns)jt[vn]=Qe.ns[vn];var ln=O.tags[O.tags.length-1]||O;O.opt.xmlns&&Qe.ns!==ln.ns&&Object.keys(Qe.ns).forEach(function(Gt){var ti=Qe.ns[Gt];Ue(O,"onclosenamespace",{prefix:Gt,uri:ti})})}S===0&&(O.closedRoot=!0),O.tagName=O.attribValue=O.attribName="",O.attribList.length=0,O.state=D.TEXT}o(Hi,"closeTag");function Fe(O){var S=O.entity,z=S.toLowerCase(),V,_e="";return O.ENTITIES[S]?O.ENTITIES[S]:O.ENTITIES[z]?O.ENTITIES[z]:(S=z,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),V=parseInt(S,16),_e=V.toString(16)):(S=S.slice(1),V=parseInt(S,10),_e=V.toString(10))),S=S.replace(/^0+/,""),isNaN(V)||_e.toLowerCase()!==S?(Re(O,"Invalid character entity"),"&"+O.entity+";"):String.fromCodePoint(V))}o(Fe,"parseEntity");function Wn(O,S){S==="<"?(O.state=D.OPEN_WAKA,O.startTagPosition=O.position):U(S)||(Re(O,"Non-whitespace before first tag."),O.textNode=S,O.state=D.TEXT)}o(Wn,"beginWhiteSpace");function Ir(O,S){var z="";return S<O.length&&(z=O.charAt(S)),z}o(Ir,"charAt");function at(O){var S=this;if(this.error)throw this.error;if(S.closed)return tn(S,"Cannot write after close. Assign an onready handler.");if(O===null)return Rt(S);typeof O=="object"&&(O=O.toString());for(var z=0,V="";V=Ir(O,z++),S.c=V,!!V;)switch(S.trackPosition&&(S.position++,V===`
26
+ `?(S.line++,S.column=0):S.column++),S.state){case D.BEGIN:if(S.state=D.BEGIN_WHITESPACE,V==="\uFEFF")continue;Wn(S,V);continue;case D.BEGIN_WHITESPACE:Wn(S,V);continue;case D.TEXT:if(S.sawRoot&&!S.closedRoot){for(var _e=z-1;V&&V!=="<"&&V!=="&";)V=Ir(O,z++),V&&S.trackPosition&&(S.position++,V===`
27
+ `?(S.line++,S.column=0):S.column++);S.textNode+=O.substring(_e,z-1)}V==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):(!U(V)&&(!S.sawRoot||S.closedRoot)&&Re(S,"Text data outside of root node."),V==="&"?S.state=D.TEXT_ENTITY:S.textNode+=V);continue;case D.SCRIPT:V==="<"?S.state=D.SCRIPT_ENDING:S.script+=V;continue;case D.SCRIPT_ENDING:V==="/"?S.state=D.CLOSE_TAG:(S.script+="<"+V,S.state=D.SCRIPT);continue;case D.OPEN_WAKA:if(V==="!")S.state=D.SGML_DECL,S.sgmlDecl="";else if(!U(V))if(re(I,V))S.state=D.OPEN_TAG,S.tagName=V;else if(V==="/")S.state=D.CLOSE_TAG,S.tagName="";else if(V==="?")S.state=D.PROC_INST,S.procInstName=S.procInstBody="";else{if(Re(S,"Unencoded <"),S.startTagPosition+1<S.position){var Ft=S.position-S.startTagPosition;V=new Array(Ft).join(" ")+V}S.textNode+="<"+V,S.state=D.TEXT}continue;case D.SGML_DECL:if(S.sgmlDecl+V==="--"){S.state=D.COMMENT,S.comment="",S.sgmlDecl="";continue}S.doctype&&S.doctype!==!0&&S.sgmlDecl?(S.state=D.DOCTYPE_DTD,S.doctype+="<!"+S.sgmlDecl+V,S.sgmlDecl=""):(S.sgmlDecl+V).toUpperCase()===g?(Ue(S,"onopencdata"),S.state=D.CDATA,S.sgmlDecl="",S.cdata=""):(S.sgmlDecl+V).toUpperCase()===m?(S.state=D.DOCTYPE,(S.doctype||S.sawRoot)&&Re(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):V===">"?(Ue(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=D.TEXT):(ae(V)&&(S.state=D.SGML_DECL_QUOTED),S.sgmlDecl+=V);continue;case D.SGML_DECL_QUOTED:V===S.q&&(S.state=D.SGML_DECL,S.q=""),S.sgmlDecl+=V;continue;case D.DOCTYPE:V===">"?(S.state=D.TEXT,Ue(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=V,V==="["?S.state=D.DOCTYPE_DTD:ae(V)&&(S.state=D.DOCTYPE_QUOTED,S.q=V));continue;case D.DOCTYPE_QUOTED:S.doctype+=V,V===S.q&&(S.q="",S.state=D.DOCTYPE);continue;case D.DOCTYPE_DTD:V==="]"?(S.doctype+=V,S.state=D.DOCTYPE):V==="<"?(S.state=D.OPEN_WAKA,S.startTagPosition=S.position):ae(V)?(S.doctype+=V,S.state=D.DOCTYPE_DTD_QUOTED,S.q=V):S.doctype+=V;continue;case D.DOCTYPE_DTD_QUOTED:S.doctype+=V,V===S.q&&(S.state=D.DOCTYPE_DTD,S.q="");continue;case D.COMMENT:V==="-"?S.state=D.COMMENT_ENDING:S.comment+=V;continue;case D.COMMENT_ENDING:V==="-"?(S.state=D.COMMENT_ENDED,S.comment=Gn(S.opt,S.comment),S.comment&&Ue(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+V,S.state=D.COMMENT);continue;case D.COMMENT_ENDED:V!==">"?(Re(S,"Malformed comment"),S.comment+="--"+V,S.state=D.COMMENT):S.doctype&&S.doctype!==!0?S.state=D.DOCTYPE_DTD:S.state=D.TEXT;continue;case D.CDATA:V==="]"?S.state=D.CDATA_ENDING:S.cdata+=V;continue;case D.CDATA_ENDING:V==="]"?S.state=D.CDATA_ENDING_2:(S.cdata+="]"+V,S.state=D.CDATA);continue;case D.CDATA_ENDING_2:V===">"?(S.cdata&&Ue(S,"oncdata",S.cdata),Ue(S,"onclosecdata"),S.cdata="",S.state=D.TEXT):V==="]"?S.cdata+="]":(S.cdata+="]]"+V,S.state=D.CDATA);continue;case D.PROC_INST:V==="?"?S.state=D.PROC_INST_ENDING:U(V)?S.state=D.PROC_INST_BODY:S.procInstName+=V;continue;case D.PROC_INST_BODY:if(!S.procInstBody&&U(V))continue;V==="?"?S.state=D.PROC_INST_ENDING:S.procInstBody+=V;continue;case D.PROC_INST_ENDING:V===">"?(Ue(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=D.TEXT):(S.procInstBody+="?"+V,S.state=D.PROC_INST_BODY);continue;case D.OPEN_TAG:re(F,V)?S.tagName+=V:(Ii(S),V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:(U(V)||Re(S,"Invalid character in tag name"),S.state=D.ATTRIB));continue;case D.OPEN_TAG_SLASH:V===">"?(cn(S,!0),Hi(S)):(Re(S,"Forward-slash in opening tag not followed by >"),S.state=D.ATTRIB);continue;case D.ATTRIB:if(U(V))continue;V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(I,V)?(S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME:V==="="?S.state=D.ATTRIB_VALUE:V===">"?(Re(S,"Attribute without value"),S.attribValue=S.attribName,kt(S),cn(S)):U(V)?S.state=D.ATTRIB_NAME_SAW_WHITE:re(F,V)?S.attribName+=V:Re(S,"Invalid attribute name");continue;case D.ATTRIB_NAME_SAW_WHITE:if(V==="=")S.state=D.ATTRIB_VALUE;else{if(U(V))continue;Re(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Ue(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",V===">"?cn(S):re(I,V)?(S.attribName=V,S.state=D.ATTRIB_NAME):(Re(S,"Invalid attribute name"),S.state=D.ATTRIB)}continue;case D.ATTRIB_VALUE:if(U(V))continue;ae(V)?(S.q=V,S.state=D.ATTRIB_VALUE_QUOTED):(S.opt.unquotedAttributeValues||tn(S,"Unquoted attribute value"),S.state=D.ATTRIB_VALUE_UNQUOTED,S.attribValue=V);continue;case D.ATTRIB_VALUE_QUOTED:if(V!==S.q){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=V;continue}kt(S),S.q="",S.state=D.ATTRIB_VALUE_CLOSED;continue;case D.ATTRIB_VALUE_CLOSED:U(V)?S.state=D.ATTRIB:V===">"?cn(S):V==="/"?S.state=D.OPEN_TAG_SLASH:re(I,V)?(Re(S,"No whitespace between attributes"),S.attribName=V,S.attribValue="",S.state=D.ATTRIB_NAME):Re(S,"Invalid attribute name");continue;case D.ATTRIB_VALUE_UNQUOTED:if(!Z(V)){V==="&"?S.state=D.ATTRIB_VALUE_ENTITY_U:S.attribValue+=V;continue}kt(S),V===">"?cn(S):S.state=D.ATTRIB;continue;case D.CLOSE_TAG:if(S.tagName)V===">"?Hi(S):re(F,V)?S.tagName+=V:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=D.SCRIPT):(U(V)||Re(S,"Invalid tagname in closing tag"),S.state=D.CLOSE_TAG_SAW_WHITE);else{if(U(V))continue;Pe(I,V)?S.script?(S.script+="</"+V,S.state=D.SCRIPT):Re(S,"Invalid tagname in closing tag."):S.tagName=V}continue;case D.CLOSE_TAG_SAW_WHITE:if(U(V))continue;V===">"?Hi(S):Re(S,"Invalid characters in closing tag");continue;case D.TEXT_ENTITY:case D.ATTRIB_VALUE_ENTITY_Q:case D.ATTRIB_VALUE_ENTITY_U:var Qe,jt;switch(S.state){case D.TEXT_ENTITY:Qe=D.TEXT,jt="textNode";break;case D.ATTRIB_VALUE_ENTITY_Q:Qe=D.ATTRIB_VALUE_QUOTED,jt="attribValue";break;case D.ATTRIB_VALUE_ENTITY_U:Qe=D.ATTRIB_VALUE_UNQUOTED,jt="attribValue";break}if(V===";"){var vn=Fe(S);S.opt.unparsedEntities&&!Object.values(e.XML_ENTITIES).includes(vn)?(S.entity="",S.state=Qe,S.write(vn)):(S[jt]+=vn,S.entity="",S.state=Qe)}else re(S.entity.length?K:j,V)?S.entity+=V:(Re(S,"Invalid character in entity name"),S[jt]+="&"+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(at,"write");String.fromCodePoint||function(){var O=String.fromCharCode,S=Math.floor,z=o(function(){var V=16384,_e=[],Ft,Qe,jt=-1,vn=arguments.length;if(!vn)return"";for(var ln="";++jt<vn;){var Gt=Number(arguments[jt]);if(!isFinite(Gt)||Gt<0||Gt>1114111||S(Gt)!==Gt)throw RangeError("Invalid code point: "+Gt);Gt<=65535?_e.push(Gt):(Gt-=65536,Ft=(Gt>>10)+55296,Qe=Gt%1024+56320,_e.push(Ft,Qe)),(jt+1===vn||_e.length>V)&&(ln+=O.apply(null,_e),_e.length=0)}return ln},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:z,configurable:!0,writable:!0}):String.fromCodePoint=z}()})(typeof Fg>"u"?Fg.sax={}:Fg)});var Dg=ze((OJ,pF)=>{pF.exports={isArray:o(function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"},"isArray")}});var _g=ze((NJ,dF)=>{var WG=Dg().isArray;dF.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"&&!WG(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 hb=ze((RJ,EF)=>{var KG=uF(),XG={on:o(function(){},"on"),parse:o(function(){},"parse")},it=_g(),ll=Dg().isArray,H,mb=!0,$e;function QG(e){return H=it.copyOptions(e),it.ensureFlagExists("ignoreDeclaration",H),it.ensureFlagExists("ignoreInstruction",H),it.ensureFlagExists("ignoreAttributes",H),it.ensureFlagExists("ignoreText",H),it.ensureFlagExists("ignoreComment",H),it.ensureFlagExists("ignoreCdata",H),it.ensureFlagExists("ignoreDoctype",H),it.ensureFlagExists("compact",H),it.ensureFlagExists("alwaysChildren",H),it.ensureFlagExists("addParent",H),it.ensureFlagExists("trim",H),it.ensureFlagExists("nativeType",H),it.ensureFlagExists("nativeTypeAttributes",H),it.ensureFlagExists("sanitize",H),it.ensureFlagExists("instructionHasAttributes",H),it.ensureFlagExists("captureSpacesBetweenElements",H),it.ensureAlwaysArrayExists(H),it.ensureKeyExists("declaration",H),it.ensureKeyExists("instruction",H),it.ensureKeyExists("attributes",H),it.ensureKeyExists("text",H),it.ensureKeyExists("comment",H),it.ensureKeyExists("cdata",H),it.ensureKeyExists("doctype",H),it.ensureKeyExists("type",H),it.ensureKeyExists("name",H),it.ensureKeyExists("elements",H),it.ensureKeyExists("parent",H),it.checkFnExists("doctype",H),it.checkFnExists("instruction",H),it.checkFnExists("cdata",H),it.checkFnExists("comment",H),it.checkFnExists("text",H),it.checkFnExists("instructionName",H),it.checkFnExists("elementName",H),it.checkFnExists("attributeName",H),it.checkFnExists("attributeValue",H),it.checkFnExists("attributes",H),H}o(QG,"validateOptions");function TF(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}o(TF,"nativeType");function ou(e,t){var n;if(H.compact){if(!$e[H[e+"Key"]]&&(ll(H.alwaysArray)?H.alwaysArray.indexOf(H[e+"Key"])!==-1:H.alwaysArray)&&($e[H[e+"Key"]]=[]),$e[H[e+"Key"]]&&!ll($e[H[e+"Key"]])&&($e[H[e+"Key"]]=[$e[H[e+"Key"]]]),e+"Fn"in H&&typeof t=="string"&&(t=H[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in H||"instructionNameFn"in H)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in H)t[n]=H.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[H.instructionNameFn(n,i,$e)]=i}}ll($e[H[e+"Key"]])?$e[H[e+"Key"]].push(t):$e[H[e+"Key"]]=t}else{$e[H.elementsKey]||($e[H.elementsKey]=[]);var r={};if(r[H.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[H.nameKey]="instructionNameFn"in H?H.instructionNameFn(n,t,$e):n,H.instructionHasAttributes?(r[H.attributesKey]=t[n][H.attributesKey],"instructionFn"in H&&(r[H.attributesKey]=H.instructionFn(r[H.attributesKey],n,$e))):("instructionFn"in H&&(t[n]=H.instructionFn(t[n],n,$e)),r[H.instructionKey]=t[n])}else e+"Fn"in H&&(t=H[e+"Fn"](t,$e)),r[H[e+"Key"]]=t;H.addParent&&(r[H.parentKey]=$e),$e[H.elementsKey].push(r)}}o(ou,"addField");function bF(e){if("attributesFn"in H&&e&&(e=H.attributesFn(e,$e)),(H.trim||"attributeValueFn"in H||"attributeNameFn"in H||H.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(H.trim&&(e[t]=e[t].trim()),H.nativeTypeAttributes&&(e[t]=TF(e[t])),"attributeValueFn"in H&&(e[t]=H.attributeValueFn(e[t],t,$e)),"attributeNameFn"in H)){var n=e[t];delete e[t],e[H.attributeNameFn(t,e[t],$e)]=n}}return e}o(bF,"manipulateAttributes");function qG(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=bF(t)}if(e.name.toLowerCase()==="xml"){if(H.ignoreDeclaration)return;$e[H.declarationKey]={},Object.keys(t).length&&($e[H.declarationKey][H.attributesKey]=t),H.addParent&&($e[H.declarationKey][H.parentKey]=$e)}else{if(H.ignoreInstruction)return;H.trim&&(e.body=e.body.trim());var r={};H.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][H.attributesKey]=t):r[e.name]=e.body,ou("instruction",r)}}o(qG,"onInstruction");function gF(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=bF(t),"elementNameFn"in H&&(e=H.elementNameFn(e,$e)),H.compact){if(n={},!H.ignoreAttributes&&t&&Object.keys(t).length){n[H.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[H.attributesKey][i]=t[i])}!(e in $e)&&(ll(H.alwaysArray)?H.alwaysArray.indexOf(e)!==-1:H.alwaysArray)&&($e[e]=[]),$e[e]&&!ll($e[e])&&($e[e]=[$e[e]]),ll($e[e])?$e[e].push(n):$e[e]=n}else $e[H.elementsKey]||($e[H.elementsKey]=[]),n={},n[H.typeKey]="element",n[H.nameKey]=e,!H.ignoreAttributes&&t&&Object.keys(t).length&&(n[H.attributesKey]=t),H.alwaysChildren&&(n[H.elementsKey]=[]),$e[H.elementsKey].push(n);n[H.parentKey]=$e,$e=n}o(gF,"onStartElement");function mF(e){H.ignoreText||!e.trim()&&!H.captureSpacesBetweenElements||(H.trim&&(e=e.trim()),H.nativeType&&(e=TF(e)),H.sanitize&&(e=e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")),ou("text",e))}o(mF,"onText");function hF(e){H.ignoreComment||(H.trim&&(e=e.trim()),ou("comment",e))}o(hF,"onComment");function yF(e){var t=$e[H.parentKey];H.addParent||delete $e[H.parentKey],$e=t}o(yF,"onEndElement");function zG(e){H.ignoreCdata||(H.trim&&(e=e.trim()),ou("cdata",e))}o(zG,"onCdata");function YG(e){H.ignoreDoctype||(e=e.replace(/^ /,""),H.trim&&(e=e.trim()),ou("doctype",e))}o(YG,"onDoctype");function vF(e){e.note=e}o(vF,"onError");EF.exports=function(e,t){var n=mb?KG.parser(!0,{}):n=new XG.Parser("UTF-8"),i={};if($e=i,H=QG(t),mb?(n.opt={strictEntities:!0},n.onopentag=gF,n.ontext=mF,n.oncomment=hF,n.onclosetag=yF,n.onerror=vF,n.oncdata=zG,n.ondoctype=YG,n.onprocessinginstruction=qG):(n.on("startElement",gF),n.on("text",mF),n.on("comment",hF),n.on("endElement",yF),n.on("error",vF)),mb)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[H.elementsKey]){var r=i[H.elementsKey];delete i[H.elementsKey],i[H.elementsKey]=r,delete i.text}return i}});var PF=ze((DJ,SF)=>{var AF=_g(),JG=hb();function ZG(e){var t=AF.copyOptions(e);return AF.ensureSpacesExists(t),t}o(ZG,"validateOptions");SF.exports=function(e,t){var n,i,r,a;return n=ZG(t),i=JG(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 vb=ze((VJ,DF)=>{var ct=_g(),eW=Dg().isArray,bi,Ei;function tW(e){var t=ct.copyOptions(e);return ct.ensureFlagExists("ignoreDeclaration",t),ct.ensureFlagExists("ignoreInstruction",t),ct.ensureFlagExists("ignoreAttributes",t),ct.ensureFlagExists("ignoreText",t),ct.ensureFlagExists("ignoreComment",t),ct.ensureFlagExists("ignoreCdata",t),ct.ensureFlagExists("ignoreDoctype",t),ct.ensureFlagExists("compact",t),ct.ensureFlagExists("indentText",t),ct.ensureFlagExists("indentCdata",t),ct.ensureFlagExists("indentAttributes",t),ct.ensureFlagExists("indentInstruction",t),ct.ensureFlagExists("fullTagEmptyElement",t),ct.ensureFlagExists("noQuotesForNativeAttributes",t),ct.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ct.ensureKeyExists("declaration",t),ct.ensureKeyExists("instruction",t),ct.ensureKeyExists("attributes",t),ct.ensureKeyExists("text",t),ct.ensureKeyExists("comment",t),ct.ensureKeyExists("cdata",t),ct.ensureKeyExists("doctype",t),ct.ensureKeyExists("type",t),ct.ensureKeyExists("name",t),ct.ensureKeyExists("elements",t),ct.checkFnExists("doctype",t),ct.checkFnExists("instruction",t),ct.checkFnExists("cdata",t),ct.checkFnExists("comment",t),ct.checkFnExists("text",t),ct.checkFnExists("instructionName",t),ct.checkFnExists("elementName",t),ct.checkFnExists("attributeName",t),ct.checkFnExists("attributeValue",t),ct.checkFnExists("attributes",t),ct.checkFnExists("fullTagEmptyElement",t),t}o(tW,"validateOptions");function Oo(e,t,n){return(!n&&e.spaces?`
28
+ `:"")+Array(t+1).join(e.spaces)}o(Oo,"writeIndentation");function Vg(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ei,bi));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,bi):i,l.push(t.spaces&&t.indentAttributes?Oo(t,n+1,!1):" "),l.push(a+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ei,bi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Oo(t,n,!1)),l.join("")}o(Vg,"writeAttributes");function xF(e,t,n){return bi=e,Ei="xml",t.ignoreDeclaration?"":"<?xml"+Vg(e[t.attributesKey],t,n)+"?>"}o(xF,"writeDeclaration");function CF(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,bi):i;if(typeof e[i]=="object")return bi=e,Ei=r,"<?"+r+Vg(e[i][t.attributesKey],t,n)+"?>";var a=e[i]?e[i]:"";return"instructionFn"in t&&(a=t.instructionFn(a,i,Ei,bi)),"<?"+r+(a?" "+a:"")+"?>"}o(CF,"writeInstruction");function OF(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ei,bi):e)+"-->"}o(OF,"writeComment");function IF(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ei,bi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}o(IF,"writeCdata");function NF(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ei,bi):e)+">"}o(NF,"writeDoctype");function yb(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,bi):e)}o(yb,"writeText");function nW(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(nW,"hasContent");function iW(e,t,n){bi=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(Vg(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(LF(e[t.elementsKey],t,n+1)),bi=e,Ei=e.name),i.push(t.spaces&&nW(e,t)?`
29
+ `+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}o(iW,"writeElement");function LF(e,t,n,i){return e.reduce(function(r,a){var s=Oo(t,n,i&&!r);switch(a.type){case"element":return r+s+iW(a,t,n);case"comment":return r+s+OF(a[t.commentKey],t);case"doctype":return r+s+NF(a[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+IF(a[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+yb(a[t.textKey],t);case"instruction":var l={};return l[a[t.nameKey]]=a[t.attributesKey]?a:a[t.instructionKey],r+(t.indentInstruction?s:"")+CF(l,t,n)}},"")}o(LF,"writeElements");function RF(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(RF,"hasContentCompact");function rW(e,t,n,i,r){bi=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(">"+yb(e,n)+"</"+a+">"),s.join("");e[n.attributesKey]&&s.push(Vg(e[n.attributesKey],n,i));var l=RF(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(FF(e,n,i+1,!1)),bi=e,Ei=t,t&&s.push((r?Oo(n,i,!1):"")+"</"+a+">"),s.join("")}o(rW,"writeElementCompact");function FF(e,t,n,i){var r,a,s,l=[];for(a in e)if(e.hasOwnProperty(a))for(s=eW(e[a])?e[a]:[e[a]],r=0;r<s.length;++r){switch(a){case t.declarationKey:l.push(xF(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Oo(t,n,i):"")+CF(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Oo(t,n,i):"")+yb(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Oo(t,n,i):"")+IF(s[r],t));break;case t.doctypeKey:l.push(Oo(t,n,i)+NF(s[r],t));break;case t.commentKey:l.push(Oo(t,n,i)+OF(s[r],t));break;default:l.push(Oo(t,n,i)+rW(s[r],a,t,n,RF(s[r],t)))}i=i&&!l.length}return l.join("")}o(FF,"writeElementsCompact");DF.exports=function(e,t){t=tW(t);var n=[];return bi=e,Ei="_root_",t.compact?n.push(FF(e,t,0,!0)):(e[t.declarationKey]&&n.push(xF(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(LF(e[t.elementsKey],t,0,!n.length))),n.join("")}});var VF=ze((MJ,_F)=>{var oW=vb();_F.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 oW(n,t)}});var zs=ze((kJ,wF)=>{var aW=hb(),sW=PF(),cW=vb(),lW=VF();wF.exports={xml2js:aW,xml2json:sW,js2xml:cW,json2xml:lW}});var BF=ze(qi=>{"use strict";Object.defineProperty(qi,"__esModule",{value:!0});qi.convertEntityTypeAnnotations=qi.convertPropertyAnnotations=qi.convertNavigationPropertyAnnotations=qi.convertEntitySetAnnotations=qi.convertGenericAnnotations=qi.convertV2Annotations=void 0;function fW(e,t,n){let i=[];switch(t){case"EntitySet":kF(e,i);break;case"EntityType":$F(e,i);break;case"NavigationProperty":jF(e,n,i);break;case"Property":UF(e,n,i);break;case"Singleton":break;default:break}return MF(e,n,i),i}o(fW,"convertV2Annotations");qi.convertV2Annotations=fW;function MF(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(MF,"convertGenericAnnotations");qi.convertGenericAnnotations=MF;function kF(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(kF,"convertEntitySetAnnotations");qi.convertEntitySetAnnotations=kF;function jF(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(jF,"convertNavigationPropertyAnnotations");qi.convertNavigationPropertyAnnotations=jF;function UF(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(UF,"convertPropertyAnnotations");qi.convertPropertyAnnotations=UF;function $F(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($F,"convertEntityTypeAnnotations");qi.convertEntityTypeAnnotations=$F});var QF=ze($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});$g.parse=void 0;var uW=zs(),He=gb(),au=BF(),kg=/^Collection\((.+)\)$/;function pW(e){return e.Type!==null&&e.Type!==void 0}o(pW,"isV4NavProperty");function dW(e){return e.map(t=>t._attributes.Name)}o(dW,"getEntityTypeKeys");function WF(e,t,n,i){return e.reduce((r,a)=>{let s={_type:"Property",name:a._attributes.Name,fullyQualifiedName:`${n}/${a._attributes.Name}`,type:fl(a._attributes.Type).type};if(a._attributes.MaxLength&&(s.maxLength=parseInt(a._attributes.MaxLength,10)),a._attributes.Precision&&(s.precision=parseInt(a._attributes.Precision,10)),a._attributes.Scale&&(s.scale=parseInt(a._attributes.Scale,10)),s.nullable=a._attributes.Nullable!=="false",a._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(a._attributes.DefaultValue,10);break;case"Edm.Decimal":case"Edm.Double":s.defaultValue=parseFloat(a._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=a._attributes.DefaultValue==="true";break;default:s.defaultValue=a._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,au.convertV2Annotations)(a._attributes,"Property",a._attributes.Name);return l.length>0&&i.push(Ys(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}o(WF,"parseProperties");function gW(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}o(gW,"parseReferentialConstraint");function mW(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(mW,"parseV2ReferentialConstraint");function KF(e,t,n,i){return e.reduce((r,a)=>{let s=a._attributes;if(pW(s)){let l=s.Type.match(kg),u=l!==null,p=Io(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:gW((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,au.convertV2Annotations)(s,"NavigationProperty",s.Name);g.length>0&&i.push(Ys(`${n}/${s.Name}`,g))}return r},[])}o(KF,"parseNavigationProperties");function hW(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(hW,"parseAssociationSets");function yW(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:mW((0,He.ensureArray)(n.ReferentialConstraint),r)}})}o(yW,"parseAssociations");function vW(e,t,n){return e.reduce((i,r)=>{let a=r.Key?dW((0,He.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=WF((0,He.ensureArray)(r.Property),a,s,t),p=KF((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,au.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(Ys(g.fullyQualifiedName,m)),i.push(g),i},[])}o(vW,"parseEntityTypes");function TW(e,t,n){return e.reduce((i,r)=>{let a=`${n}.${r._attributes.Name}`,{entityProperties:s}=WF((0,He.ensureArray)(r.Property),[],a,t),l=KF((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(TW,"parseComplexTypes");function bW(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(bW,"parseTypeDefinitions");function EW(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:Io(a._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,au.convertV2Annotations)(a._attributes,"EntitySet",a._attributes.Name);return u.length>0&&i.push(Ys(l.fullyQualifiedName,u)),l})}o(EW,"parseEntitySets");function AW(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:Io(a._attributes.Type),nullable:a._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${a._attributes.Name}`},u=(0,au.convertV2Annotations)(a._attributes,"Singleton",a._attributes.Name);return u.length>0&&i.push(Ys(l.fullyQualifiedName,u)),l})}o(AW,"parseSingletons");function HF(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=>fl(u._attributes.Type).type).join(","):s=a?fl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:a,sourceType:a?fl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:g}=fl(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?fl(i.ReturnType._attributes.Type).type:"",returnCollection:i.ReturnType?i.ReturnType._attributes.Type.match(kg)!==null:!1}})}o(HF,"parseActions");function SW(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(kg)!==null:!1}})}o(SW,"parseV2FunctionImport");function GF(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:Io(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Io(r)}})}o(GF,"parseActionImports");function PW(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:a,...s}=i,l={};if(a){let u=Object.keys(a).find(g=>g!=="Property");l.name=a.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=Mg(s,p,n,!1):u&&(l.value=XF({[u]:a[u]},p,n)),i.Annotation){let g=Ug((0,He.ensureArray)(i.Annotation),p,n);g&&g.length>0&&n.push(Ys(p,g))}}return l})}o(PW,"parsePropertyValues");function jg(e,t,n){let i=Ug((0,He.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Io(e._attributes.Type):void 0,propertyValues:PW((0,He.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}o(jg,"parseRecord");function la(e,t){return e[t]!=null}o(la,"isExpressionOfType");function wg(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(wg,"parseModelPath");function bb(e,t,n){if(la(e,"Record")){let i=(0,He.ensureArray)(e.Record).map((r,a)=>jg(r,t+"/"+a,n));return i.type="Record",i}else if(la(e,"PropertyPath")){let i=(0,He.ensureArray)(e.PropertyPath).map(r=>wg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(la(e,"NavigationPropertyPath")){let i=(0,He.ensureArray)(e.NavigationPropertyPath).map(r=>wg(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(la(e,"String")){let i=(0,He.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(la(e,"AnnotationPath")){let i=(0,He.ensureArray)(e.AnnotationPath).map(r=>wg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(la(e,"Path")){let i=(0,He.ensureArray)(e.Path).map(r=>wg(r,"Path"));return i.type="Path",i}else if(la(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(bb,"parseCollection");function bn(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=>Mg({[i]:r},"",[],!0))):n.push(Mg({[i]:e[i]},"",[],!0))}),n}o(bn,"parseChildren");function XF(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Double":return{type:"Double",Double:parseFloat(e.Double)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:bb(e.Collection,t,n)};case"Record":return{type:"Record",Record:jg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:bn(e.Function)};case"And":return{type:"And",$And:bn(e.And)};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};case"If":return{type:"If",$If:bn(e.If)};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}o(XF,"parseInlineExpression");function Mg(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:bn(e.LabeledElement)[0]};case"Bool":return i?e.Bool._text==="true":{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return i?parseInt(e.Int._text,10):{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return i?parseFloat(e.Decimal._text):{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Double":return i?parseFloat(e.Double._text):{type:"Double",Decimal:parseFloat(e.Double._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[a]._text};case"Collection":return{type:"Collection",Collection:bb(e.Collection,t,n)};case"Record":return{type:"Record",Record:jg(e.Record,t,n)};case"Apply":return{type:"Apply",$Apply:bn(e.Apply),$Function:e.Apply._attributes.Function};case"Null":return i?null:{type:"Null"};case"And":return{type:"And",$And:bn(e.And)};case"Ne":return{type:"Ne",$Ne:bn(e.Ne)};case"Not":return{type:"Not",$Not:bn(e.Not)[0]};case"Or":return{type:"Or",$Or:bn(e.Or)};case"Eq":return{type:"Eq",$Eq:bn(e.Eq)};case"If":return{type:"If",$If:bn(e.If)};case"Gt":return{type:"Gt",$Gt:bn(e.Gt)};case"Ge":return{type:"Ge",$Ge:bn(e.Ge)};case"Lt":return{type:"Lt",$Lt:bn(e.Lt)};case"Le":return{type:"Le",$Le:bn(e.Le)};default:return console.error("Unsupported expression type "+a),{type:"Unknown"}}}o(Mg,"parseExpression");function xW(e,t,n){let{Term:i,Qualifier:r,...a}=e._attributes,s={term:Io(i),qualifier:r},l=`${t}@${Io(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),a&&Object.keys(a).length>0&&(s.value=XF(a,l,n)),e.Annotation){let p=Ug((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 la(e,"Record")?s.record=jg(e.Record,l,n):la(e,"Collection")?s.collection=bb(e.Collection,l,n):u.length===1?s.value=Mg({[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(xW,"parseAnnotation");function Ug(e,t,n){return e.map(i=>xW(i,t,n))}o(Ug,"parseAnnotations");function Ys(e,t){return{target:e,annotations:t}}o(Ys,"createAnnotationList");function CW(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(Ys(Io(n._attributes.Target),Ug((0,He.ensureArray)(n.Annotation),n._attributes.Target,t)))})}o(CW,"parseAnnotationLists");function OW(e,t,n){let i=e._attributes.Namespace,r=[],a=vW((0,He.ensureArray)(e.EntityType),r,i),s=TW((0,He.ensureArray)(e.ComplexType),r,i),l=bW((0,He.ensureArray)(e.TypeDefinition),i),u=[],p=[],g=[],m={_type:"EntityContainer",fullyQualifiedName:""},v=[],A=[];if(e.EntityContainer)if(u=EW((0,He.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=AW((0,He.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),g=hW((0,He.ensureArray)(e.EntityContainer.AssociationSet),i,e.EntityContainer),m={_type:"EntityContainer",name:e.EntityContainer._attributes.Name,fullyQualifiedName:`${i}.${e.EntityContainer._attributes.Name}`},t==="1.0")v=v.concat(SW((0,He.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")A=A.concat(GF((0,He.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),A=A.concat(GF((0,He.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(v=v.concat(HF((0,He.ensureArray)(e.Action),i,!1)),v=v.concat(HF((0,He.ensureArray)(e.Function),i,!0)));let b=yW((0,He.ensureArray)(e.Association),i);CW((0,He.ensureArray)(e.Annotations),r);let I={};return I[n]=r,{associations:b,associationSets:g,annotations:I,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:v,actionImports:A,entityTypes:a}}o(OW,"parseSchema");function IW(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(IW,"parseReferences");var Tb={};function fl(e){let t=e.match(kg),n=t?t[1]:e,i=Io(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}o(fl,"unaliasType");function Io(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=Tb[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(Io,"unalias");function NW(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,v;return e.forEach(A=>{A.entityContainer&&Object.keys(A.entityContainer).length>0&&(m=A.entityContainer,v=A.namespace)}),i.forEach(A=>{let b=a.find(I=>I.fullyQualifiedName===A.entityTypeName);b==null||b.navigationProperties.forEach(I=>{let F=I,j=n.find(K=>K.association===F.relationship);if(j){let K=j.associationEnd.find(U=>U.entitySet!==A.fullyQualifiedName);K&&(A.navigationPropertyBinding[I.name]=K.entitySet)}})}),a.forEach(A=>{A.navigationProperties.forEach(b=>{let I=b,F=t.find(j=>j.fullyQualifiedName===I.relationship);F&&F.referentialConstraints&&F.referentialConstraints.length>0&&(F.referentialConstraints[0].sourceTypeName===A.fullyQualifiedName?I.referentialConstraint=F.referentialConstraints:I.referentialConstraint=F.referentialConstraints.map(j=>({sourceTypeName:j.targetTypeName,sourceProperty:j.targetProperty,targetTypeName:j.sourceTypeName,targetProperty:j.sourceProperty})))})}),{associations:t,associationSets:n,annotations:g,entityContainer:m,namespace:v,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:a}}o(NW,"mergeSchemas");function LW(e,t){Tb=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{Tb[n._attributes.Alias]=n._attributes.Namespace})}o(LW,"createAliasMap");function RW(e,t="serviceFile"){let n=(0,uW.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,He.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),a=IW((0,He.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));LW(a,r);let s=r.map(u=>OW(u,i,t));return new He.RawMetadataInstance(t,i,NW(s),a)}o(RW,"parse");$g.parse=RW});var qF=ze(ul=>{"use strict";Object.defineProperty(ul,"__esModule",{value:!0});ul.parse=ul.merge=void 0;var FW=fF();Object.defineProperty(ul,"merge",{enumerable:!0,get:o(function(){return FW.merge},"get")});var DW=QF();Object.defineProperty(ul,"parse",{enumerable:!0,get:o(function(){return DW.parse},"get")})});var u0=ze(()=>{var f0;(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 ks(Object.create(null))}:u?function(){return ks({__proto__:null})}:function(){return ks({})},has:p?function(k,B){return i.call(k,B)}:function(k,B){return B in k},get:p?function(k,B){return i.call(k,B)?k[B]:void 0}:function(k,B){return k[B]}},m=Object.getPrototypeOf(Function),v=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:_f(),A=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Vf(),b=typeof WeakMap=="function"?WeakMap:wf(),I=r?Symbol.for("@reflect-metadata:registry"):void 0,F=Gi(),j=Df(F);function K(k,B,Q,ce){if(Fe(Q)){if(!Ft(k))throw new TypeError;if(!jt(B))throw new TypeError;return sn(k,B)}else{if(!Ft(k))throw new TypeError;if(!at(B))throw new TypeError;if(!at(ce)&&!Fe(ce)&&!Wn(ce))throw new TypeError;return Wn(ce)&&(ce=void 0),Q=_e(Q),Gn(k,B,Q,ce)}}o(K,"decorate"),t("decorate",K);function U(k,B){function Q(ce,Le){if(!at(ce))throw new TypeError;if(!Fe(Le)&&!vn(Le))throw new TypeError;Ot(k,B,ce,Le)}return o(Q,"decorator"),Q}o(U,"metadata"),t("metadata",U);function ae(k,B,Q,ce){if(!at(Q))throw new TypeError;return Fe(ce)||(ce=_e(ce)),Ot(k,B,Q,ce)}o(ae,"defineMetadata"),t("defineMetadata",ae);function Z(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),tn(k,B,Q)}o(Z,"hasMetadata"),t("hasMetadata",Z);function re(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Rt(k,B,Q)}o(re,"hasOwnMetadata"),t("hasOwnMetadata",re);function Pe(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Re(k,B,Q)}o(Pe,"getMetadata"),t("getMetadata",Pe);function D(k,B,Q){if(!at(B))throw new TypeError;return Fe(Q)||(Q=_e(Q)),Ii(k,B,Q)}o(D,"getOwnMetadata"),t("getOwnMetadata",D);function ut(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),kt(k,B)}o(ut,"getMetadataKeys"),t("getMetadataKeys",ut);function yt(k,B){if(!at(k))throw new TypeError;return Fe(B)||(B=_e(B)),cn(k,B)}o(yt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",yt);function Ue(k,B,Q){if(!at(B))throw new TypeError;if(Fe(Q)||(Q=_e(Q)),!at(B))throw new TypeError;Fe(Q)||(Q=_e(Q));var ce=Nr(B,Q,!1);return Fe(ce)?!1:ce.OrdinaryDeleteMetadata(k,B,Q)}o(Ue,"deleteMetadata"),t("deleteMetadata",Ue);function sn(k,B){for(var Q=k.length-1;Q>=0;--Q){var ce=k[Q],Le=ce(B);if(!Fe(Le)&&!Wn(Le)){if(!jt(Le))throw new TypeError;B=Le}}return B}o(sn,"DecorateConstructor");function Gn(k,B,Q,ce){for(var Le=k.length-1;Le>=0;--Le){var mn=k[Le],Cn=mn(B,Q,ce);if(!Fe(Cn)&&!Wn(Cn)){if(!at(Cn))throw new TypeError;ce=Cn}}return ce}o(Gn,"DecorateProperty");function tn(k,B,Q){var ce=Rt(k,B,Q);if(ce)return!0;var Le=Wt(B);return Wn(Le)?!1:tn(k,Le,Q)}o(tn,"OrdinaryHasMetadata");function Rt(k,B,Q){var ce=Nr(B,Q,!1);return Fe(ce)?!1:z(ce.OrdinaryHasOwnMetadata(k,B,Q))}o(Rt,"OrdinaryHasOwnMetadata");function Re(k,B,Q){var ce=Rt(k,B,Q);if(ce)return Ii(k,B,Q);var Le=Wt(B);if(!Wn(Le))return Re(k,Le,Q)}o(Re,"OrdinaryGetMetadata");function Ii(k,B,Q){var ce=Nr(B,Q,!1);if(!Fe(ce))return ce.OrdinaryGetOwnMetadata(k,B,Q)}o(Ii,"OrdinaryGetOwnMetadata");function Ot(k,B,Q,ce){var Le=Nr(Q,ce,!0);Le.OrdinaryDefineOwnMetadata(k,B,Q,ce)}o(Ot,"OrdinaryDefineOwnMetadata");function kt(k,B){var Q=cn(k,B),ce=Wt(k);if(ce===null)return Q;var Le=kt(ce,B);if(Le.length<=0)return Q;if(Q.length<=0)return Le;for(var mn=new A,Cn=[],tt=0,he=Q;tt<he.length;tt++){var be=he[tt],xe=mn.has(be);xe||(mn.add(be),Cn.push(be))}for(var Ie=0,rt=Le;Ie<rt.length;Ie++){var be=rt[Ie],xe=mn.has(be);xe||(mn.add(be),Cn.push(be))}return Cn}o(kt,"OrdinaryMetadataKeys");function cn(k,B){var Q=Nr(k,B,!1);return Q?Q.OrdinaryOwnMetadataKeys(k,B):[]}o(cn,"OrdinaryOwnMetadataKeys");function Hi(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(Hi,"Type");function Fe(k){return k===void 0}o(Fe,"IsUndefined");function Wn(k){return k===null}o(Wn,"IsNull");function Ir(k){return typeof k=="symbol"}o(Ir,"IsSymbol");function at(k){return typeof k=="object"?k!==null:typeof k=="function"}o(at,"IsObject");function O(k,B){switch(Hi(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=Gt(k,a);if(ce!==void 0){var Le=ce.call(k,Q);if(at(Le))throw new TypeError;return Le}return S(k,Q==="default"?"number":Q)}o(O,"ToPrimitive");function S(k,B){if(B==="string"){var Q=k.toString;if(Qe(Q)){var ce=Q.call(k);if(!at(ce))return ce}var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}}else{var Le=k.valueOf;if(Qe(Le)){var ce=Le.call(k);if(!at(ce))return ce}var mn=k.toString;if(Qe(mn)){var ce=mn.call(k);if(!at(ce))return ce}}throw new TypeError}o(S,"OrdinaryToPrimitive");function z(k){return!!k}o(z,"ToBoolean");function V(k){return""+k}o(V,"ToString");function _e(k){var B=O(k,3);return Ir(B)?B:V(B)}o(_e,"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 jt(k){return typeof k=="function"}o(jt,"IsConstructor");function vn(k){switch(Hi(k)){case 3:return!0;case 4:return!0;default:return!1}}o(vn,"IsPropertyKey");function ln(k,B){return k===B||k!==k&&B!==B}o(ln,"SameValueZero");function Gt(k,B){var Q=k[B];if(Q!=null){if(!Qe(Q))throw new TypeError;return Q}}o(Gt,"GetMethod");function ti(k){var B=Gt(k,s);if(!Qe(B))throw new TypeError;var Q=B.call(k);if(!at(Q))throw new TypeError;return Q}o(ti,"GetIterator");function ar(k){return k.value}o(ar,"IteratorValue");function gn(k){var B=k.next();return B.done?!1:B}o(gn,"IteratorStep");function hi(k){var B=k.return;B&&B.call(k)}o(hi,"IteratorClose");function Wt(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 Le=ce.constructor;return typeof Le!="function"||Le===k?B:Le}o(Wt,"OrdinaryGetPrototypeOf");function zo(){var k;!Fe(I)&&typeof n.Reflect<"u"&&!(I in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&(k=Ms(n.Reflect));var B,Q,ce,Le=new b,mn={registerProvider:Cn,getProvider:he,setProvider:xe};return mn;function Cn(Ie){if(!Object.isExtensible(mn))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case k===Ie:break;case Fe(B):B=Ie;break;case B===Ie:break;case Fe(Q):Q=Ie;break;case Q===Ie:break;default:ce===void 0&&(ce=new A),ce.add(Ie);break}}function tt(Ie,rt){if(!Fe(B)){if(B.isProviderFor(Ie,rt))return B;if(!Fe(Q)){if(Q.isProviderFor(Ie,rt))return B;if(!Fe(ce))for(var Kt=ti(ce);;){var fn=gn(Kt);if(!fn)return;var sr=ar(fn);if(sr.isProviderFor(Ie,rt))return hi(Kt),sr}}}if(!Fe(k)&&k.isProviderFor(Ie,rt))return k}function he(Ie,rt){var Kt=Le.get(Ie),fn;return Fe(Kt)||(fn=Kt.get(rt)),Fe(fn)&&(fn=tt(Ie,rt),Fe(fn)||(Fe(Kt)&&(Kt=new v,Le.set(Ie,Kt)),Kt.set(rt,fn))),fn}function be(Ie){if(Fe(Ie))throw new TypeError;return B===Ie||Q===Ie||!Fe(ce)&&ce.has(Ie)}function xe(Ie,rt,Kt){if(!be(Kt))throw new Error("Metadata provider not registered.");var fn=he(Ie,rt);if(fn!==Kt){if(!Fe(fn))return!1;var sr=Le.get(Ie);Fe(sr)&&(sr=new v,Le.set(Ie,sr)),sr.set(rt,Kt)}return!0}}o(zo,"CreateMetadataRegistry");function Gi(){var k;return!Fe(I)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&(k=n.Reflect[I]),Fe(k)&&(k=zo()),!Fe(I)&&at(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,I,{enumerable:!1,configurable:!1,writable:!1,value:k}),k}o(Gi,"GetOrCreateMetadataRegistry");function Df(k){var B=new b,Q={isProviderFor:o(function(be,xe){var Ie=B.get(be);return Fe(Ie)?!1:Ie.has(xe)},"isProviderFor"),OrdinaryDefineOwnMetadata:Cn,OrdinaryHasOwnMetadata:Le,OrdinaryGetOwnMetadata:mn,OrdinaryOwnMetadataKeys:tt,OrdinaryDeleteMetadata:he};return F.registerProvider(Q),Q;function ce(be,xe,Ie){var rt=B.get(be),Kt=!1;if(Fe(rt)){if(!Ie)return;rt=new v,B.set(be,rt),Kt=!0}var fn=rt.get(xe);if(Fe(fn)){if(!Ie)return;if(fn=new v,rt.set(xe,fn),!k.setProvider(be,xe,Q))throw rt.delete(xe),Kt&&B.delete(be),new Error("Wrong provider for target.")}return fn}o(ce,"GetOrCreateMetadataMap");function Le(be,xe,Ie){var rt=ce(xe,Ie,!1);return Fe(rt)?!1:z(rt.has(be))}o(Le,"OrdinaryHasOwnMetadata");function mn(be,xe,Ie){var rt=ce(xe,Ie,!1);if(!Fe(rt))return rt.get(be)}o(mn,"OrdinaryGetOwnMetadata");function Cn(be,xe,Ie,rt){var Kt=ce(Ie,rt,!0);Kt.set(be,xe)}o(Cn,"OrdinaryDefineOwnMetadata");function tt(be,xe){var Ie=[],rt=ce(be,xe,!1);if(Fe(rt))return Ie;for(var Kt=rt.keys(),fn=ti(Kt),sr=0;;){var xd=gn(fn);if(!xd)return Ie.length=sr,Ie;var Ev=ar(xd);try{Ie[sr]=Ev}catch(Mf){try{hi(fn)}finally{throw Mf}}sr++}}o(tt,"OrdinaryOwnMetadataKeys");function he(be,xe,Ie){var rt=ce(xe,Ie,!1);if(Fe(rt)||!rt.delete(be))return!1;if(rt.size===0){var Kt=B.get(xe);Fe(Kt)||(Kt.delete(Ie),Kt.size===0&&B.delete(Kt))}return!0}o(he,"OrdinaryDeleteMetadata")}o(Df,"CreateMetadataProvider");function Ms(k){var B=k.defineMetadata,Q=k.hasOwnMetadata,ce=k.getOwnMetadata,Le=k.getOwnMetadataKeys,mn=k.deleteMetadata,Cn=new b,tt={isProviderFor:o(function(he,be){var xe=Cn.get(he);return!Fe(xe)&&xe.has(be)?!0:Le(he,be).length?(Fe(xe)&&(xe=new A,Cn.set(he,xe)),xe.add(be),!0):!1},"isProviderFor"),OrdinaryDefineOwnMetadata:B,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ce,OrdinaryOwnMetadataKeys:Le,OrdinaryDeleteMetadata:mn};return tt}o(Ms,"CreateFallbackProvider");function Nr(k,B,Q){var ce=F.getProvider(k,B);if(!Fe(ce))return ce;if(Q){if(F.setProvider(k,B,j))return j;throw new Error("Illegal state.")}}o(Nr,"GetMetadataProvider");function _f(){var k={},B=[],Q=function(){function tt(he,be,xe){this._index=0,this._keys=he,this._values=be,this._selector=xe}return o(tt,"MapIterator"),tt.prototype["@@iterator"]=function(){return this},tt.prototype[s]=function(){return this},tt.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}},tt.prototype.throw=function(he){throw this._index>=0&&(this._index=-1,this._keys=B,this._values=B),he},tt.prototype.return=function(he){return this._index>=0&&(this._index=-1,this._keys=B,this._values=B),{value:he,done:!0}},tt}(),ce=function(){function tt(){this._keys=[],this._values=[],this._cacheKey=k,this._cacheIndex=-2}return o(tt,"Map"),Object.defineProperty(tt.prototype,"size",{get:o(function(){return this._keys.length},"get"),enumerable:!0,configurable:!0}),tt.prototype.has=function(he){return this._find(he,!1)>=0},tt.prototype.get=function(he){var be=this._find(he,!1);return be>=0?this._values[be]:void 0},tt.prototype.set=function(he,be){var xe=this._find(he,!0);return this._values[xe]=be,this},tt.prototype.delete=function(he){var be=this._find(he,!1);if(be>=0){for(var xe=this._keys.length,Ie=be+1;Ie<xe;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,ln(he,this._cacheKey)&&(this._cacheKey=k,this._cacheIndex=-2),!0}return!1},tt.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=k,this._cacheIndex=-2},tt.prototype.keys=function(){return new Q(this._keys,this._values,Le)},tt.prototype.values=function(){return new Q(this._keys,this._values,mn)},tt.prototype.entries=function(){return new Q(this._keys,this._values,Cn)},tt.prototype["@@iterator"]=function(){return this.entries()},tt.prototype[s]=function(){return this.entries()},tt.prototype._find=function(he,be){if(!ln(this._cacheKey,he)){this._cacheIndex=-1;for(var xe=0;xe<this._keys.length;xe++)if(ln(this._keys[xe],he)){this._cacheIndex=xe;break}}return this._cacheIndex<0&&be&&(this._cacheIndex=this._keys.length,this._keys.push(he),this._values.push(void 0)),this._cacheIndex},tt}();return ce;function Le(tt,he){return tt}function mn(tt,he){return he}function Cn(tt,he){return[tt,he]}}o(_f,"CreateMapPolyfill");function Vf(){var k=function(){function B(){this._map=new v}return o(B,"Set"),Object.defineProperty(B.prototype,"size",{get:o(function(){return this._map.size},"get"),enumerable:!0,configurable:!0}),B.prototype.has=function(Q){return this._map.has(Q)},B.prototype.add=function(Q){return this._map.set(Q,Q),this},B.prototype.delete=function(Q){return this._map.delete(Q)},B.prototype.clear=function(){this._map.clear()},B.prototype.keys=function(){return this._map.keys()},B.prototype.values=function(){return this._map.keys()},B.prototype.entries=function(){return this._map.entries()},B.prototype["@@iterator"]=function(){return this.keys()},B.prototype[s]=function(){return this.keys()},B}();return k}o(Vf,"CreateSetPolyfill");function wf(){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 xe=Le(be,!1);return xe!==void 0?g.has(xe,this._key):!1},he.prototype.get=function(be){var xe=Le(be,!1);return xe!==void 0?g.get(xe,this._key):void 0},he.prototype.set=function(be,xe){var Ie=Le(be,!0);return Ie[this._key]=xe,this},he.prototype.delete=function(be){var xe=Le(be,!1);return xe!==void 0?delete xe[this._key]:!1},he.prototype.clear=function(){this._key=ce()},he}();function ce(){var he;do he="@@WeakMap@@"+tt();while(g.has(B,he));return B[he]=!0,he}function Le(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 xe=0;xe<be;++xe)he[xe]=Math.random()*255|0;return he}function Cn(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 tt(){var he=Cn(k);he[6]=he[6]&79|64,he[8]=he[8]&191|128;for(var be="",xe=0;xe<k;++xe){var Ie=he[xe];(xe===4||xe===6||xe===8)&&(be+="-"),Ie<16&&(be+="0"),be+=Ie.toString(16).toLowerCase()}return be}}o(wf,"CreateWeakMapPolyfill");function ks(k){return k.__=void 0,delete k.__,k}o(ks,"MakeDictionary")})})(f0||(f0={}))});var y0=ze((aZ,h0)=>{var a8=0,m0="changeUtils: ";function s8(){return"id-"+new Date().valueOf()+"-"+a8++}o(s8,"uid");function c8(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}o(c8,"appendComponentToReference");function l8(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return c8(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}o(l8,"getFlexReference");function f8(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(f8,"getAppVersion");function u8(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}o(u8,"getProjectId");function g0(e){return JSON.stringify({fileName:e.id||s8().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:m0+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(g0,"createString");h0.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(m0,""),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=l8(t),e.appVersion=f8(t),e.projectId=u8(t,e.reference),g0(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 g0(e)},"toString")}});var T0=ze((cZ,v0)=>{v0.exports={change:y0()}});var f1=ze(Br=>{"use strict";var K8=/[|\\{}()[\]^$+*?.]/g,X8=Object.prototype.hasOwnProperty,fE=o(function(e,t){return X8.apply(e,[t])},"hasOwn");Br.escapeRegExpChars=function(e){return e?String(e).replace(K8,"\\$&"):""};var Q8={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&#34;","'":"&#39;"},q8=/[&<>'"]/g;function z8(e){return Q8[e]||e}o(z8,"encode_char");var Y8=`var _ENCODE_HTML_RULES = {
30
30
  "&": "&amp;"
31
31
  , "<": "&lt;"
32
32
  , ">": "&gt;"
@@ -37,17 +37,17 @@ Actual: `+I.attribValue);else{var _e=I.tag,Rt=I.tags[I.tags.length-1]||I;_e.ns==
37
37
  function encode_char(c) {
38
38
  return _ENCODE_HTML_RULES[c] || c;
39
39
  };
40
- `;Br.escapeXML=function(e){return e==null?"":String(e).replace(V8,w8)};function q0(){return Function.prototype.toString.call(this)+`;
41
- `+M8}o(q0,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Br.escapeXML,"toString",{value:q0}):Br.escapeXML.toString=q0}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Br.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)Zb(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Br.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(!Zb(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Br.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")};Br.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Br.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Br.hasOwnOnlyObject=function(e){var t=Br.createNullProtoObjWherePossible();for(var n in e)Zb(e,n)&&(t[n]=e[n]);return t}});var Y0=ze((uee,k8)=>{k8.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.10",author:"Matthew Eernisse <mde@fleegix.org> (http://fleegix.org)",license:"Apache-2.0",bin:{ejs:"./bin/cli.js"},main:"./lib/ejs.js",jsdelivr:"ejs.min.js",unpkg:"ejs.min.js",repository:{type:"git",url:"git://github.com/mde/ejs.git"},bugs:"https://github.com/mde/ejs/issues",homepage:"https://github.com/mde/ejs",dependencies:{jake:"^10.8.5"},devDependencies:{browserify:"^16.5.1",eslint:"^6.8.0","git-directory-deploy":"^1.5.1",jsdoc:"^4.0.2","lru-cache":"^4.0.1",mocha:"^10.2.0","uglify-js":"^3.3.16"},engines:{node:">=0.10.0"},scripts:{test:"npx jake test"}}});var a1=ze(Pt=>{"use strict";var tE=require("fs"),Su=require("path"),Nn=z0(),J0=!1,j8=Y0().version,U8="<",$8=">",B8="%",r1="locals",H8="ejs",G8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",o1=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],W8=o1.concat("cache"),Z0=/^\uFEFF/,eE=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Nn.cache;Pt.fileLoader=tE.readFileSync;Pt.localsName=r1;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=Su.dirname,r=Su.extname,a=Su.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function e1(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),tE.existsSync(n)}))return n}o(e1,"resolvePaths");function K8(e,t){var n,i,r=t.views,a=/^[A-Za-z]+:\\|^\//.exec(e);if(a&&a.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=e1(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),tE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=e1(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(K8,"getIncludePath");function Pu(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=Pt.cache.get(i),n)return n;r||(t=t1(i).toString().replace(Z0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=t1(i).toString().replace(Z0,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(Pu,"handleCache");function X8(e,t,n){var i;if(n){try{i=Pu(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=Pu(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(X8,"tryHandleCache");function t1(e){return Pt.fileLoader(e)}o(t1,"fileLoader");function Q8(e,t){var n=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),t);if(n.filename=K8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Pu(n,i.template)}return Pu(n)}o(Q8,"includeFile");function n1(e,t,n,i,r){var a=t.split(`
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(`
40
+ `;Br.escapeXML=function(e){return e==null?"":String(e).replace(q8,z8)};function l1(){return Function.prototype.toString.call(this)+`;
41
+ `+Y8}o(l1,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Br.escapeXML,"toString",{value:l1}):Br.escapeXML.toString=l1}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Br.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)fE(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Br.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(!fE(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Br.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")};Br.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Br.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}();Br.hasOwnOnlyObject=function(e){var t=Br.createNullProtoObjWherePossible();for(var n in e)fE(e,n)&&(t[n]=e[n]);return t}});var u1=ze((Oee,J8)=>{J8.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 b1=ze(Pt=>{"use strict";var pE=require("fs"),xu=require("path"),Nn=f1(),p1=!1,Z8=u1().version,eK="<",tK=">",nK="%",v1="locals",iK="ejs",rK="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",T1=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],oK=T1.concat("cache"),d1=/^\uFEFF/,uE=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;Pt.cache=Nn.cache;Pt.fileLoader=pE.readFileSync;Pt.localsName=v1;Pt.promiseImpl=new Function("return this;")().Promise;Pt.resolveInclude=function(e,t,n){var i=xu.dirname,r=xu.extname,a=xu.resolve,s=a(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function g1(e,t){var n;if(t.some(function(i){return n=Pt.resolveInclude(e,i,!0),pE.existsSync(n)}))return n}o(g1,"resolvePaths");function aK(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=g1(e,t.root):n=Pt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=Pt.resolveInclude(e,t.filename),pE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=g1(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}o(aK,"getIncludePath");function Cu(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=m1(i).toString().replace(d1,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=m1(i).toString().replace(d1,"")}return n=Pt.compile(t,e),e.cache&&Pt.cache.set(i,n),n}o(Cu,"handleCache");function sK(e,t,n){var i;if(n){try{i=Cu(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=Cu(e)(t),r(i)}catch(s){a(s)}});throw new Error("Please provide a callback function")}}o(sK,"tryHandleCache");function m1(e){return Pt.fileLoader(e)}o(m1,"fileLoader");function cK(e,t){var n=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),t);if(n.filename=aK(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Cu(n,i.template)}return Cu(n)}o(cK,"includeFile");function h1(e,t,n,i,r){var a=t.split(`
42
+ `),s=Math.max(i-3,0),l=Math.min(a.length,i+3),u=r(n),p=a.slice(s,l).map(function(g,m){var v=m+s+1;return(v==i?" >> ":" ")+v+"| "+g}).join(`
43
43
  `);throw e.path=u,e.message=(u||"ejs")+":"+i+`
44
44
  `+p+`
45
45
 
46
- `+e.message,e}o(n1,"rethrow");function i1(e){return e.replace(/;(\s*$)/,"$1")}o(i1,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(J0||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),J0=!0),n.context||(n.context=n.scope),delete n.scope),i=new Bn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||Nn.createNullProtoObjWherePossible(),r=n||Nn.createNullProtoObjWherePossible();return arguments.length==2&&Nn.shallowCopyFromList(r,i,o1),Pu(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,W8)),i.filename=t):r=Nn.createNullProtoObjWherePossible(),X8(i,r,n)};Pt.Template=Bn;Pt.clearCache=function(){Pt.cache.reset()};function Bn(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||U8,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||$8,i.delimiter=n.delimiter||Pt.delimiter||B8,i.strict=n.strict||!1,i.context=n.context,i.cache=n.cache||!1,i.rmWhitespace=n.rmWhitespace,i.root=n.root,i.includer=n.includer,i.outputFunctionName=n.outputFunctionName,i.localsName=n.localsName||Pt.localsName||r1,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}o(Bn,"Template");Bn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Bn.prototype={createRegex:o(function(){var e=G8,t=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(h1,"rethrow");function y1(e){return e.replace(/;(\s*$)/,"$1")}o(y1,"stripSemi");Pt.compile=o(function(t,n){var i;return n&&n.scope&&(p1||(console.warn("`scope` option is deprecated and will be removed in EJS 3"),p1=!0),n.context||(n.context=n.scope),delete n.scope),i=new Bn(t,n),i.compile()},"compile");Pt.render=function(e,t,n){var i=t||Nn.createNullProtoObjWherePossible(),r=n||Nn.createNullProtoObjWherePossible();return arguments.length==2&&Nn.shallowCopyFromList(r,i,T1),Cu(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,oK)),i.filename=t):r=Nn.createNullProtoObjWherePossible(),sK(i,r,n)};Pt.Template=Bn;Pt.clearCache=function(){Pt.cache.reset()};function Bn(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||eK,i.closeDelimiter=n.closeDelimiter||Pt.closeDelimiter||tK,i.delimiter=n.delimiter||Pt.delimiter||nK,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||v1,i.views=n.views,i.async=n.async,i.destructuredLocals=n.destructuredLocals,i.legacyInclude=typeof n.legacyInclude<"u"?!!n.legacyInclude:!0,i.strict?i._with=!1:i._with=typeof n._with<"u"?n._with:!0,this.opts=i,this.regex=this.createRegex()}o(Bn,"Template");Bn.modes={EVAL:"eval",ESCAPED:"escaped",RAW:"raw",COMMENT:"comment",LITERAL:"literal"};Bn.prototype={createRegex:o(function(){var e=rK,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 = "";
47
47
  function __append(s) { if (s !== undefined && s !== null) __output += s }
48
- `,n.outputFunctionName){if(!eE.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
- `}if(n.localsName&&!eE.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(!eE.test(g))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(u+=`,
48
+ `,n.outputFunctionName){if(!uE.test(n.outputFunctionName))throw new Error("outputFunctionName is not a valid JS identifier.");i+=" var "+n.outputFunctionName+` = __append;
49
+ `}if(n.localsName&&!uE.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(!uE.test(g))throw new Error("destructuredLocals["+p+"] is not a valid JS identifier.");p>0&&(u+=`,
51
51
  `),u+=g+" = __locals."+g}i+=u+`;
52
52
  `}n._with!==!1&&(i+=" with ("+n.localsName+` || {}) {
53
53
  `,r+=` }
@@ -60,7 +60,7 @@ try {
60
60
  rethrow(e, __lines, __filename, __line, escapeFn);
61
61
  }
62
62
  `:e=this.source,n.client&&(e="escapeFn = escapeFn || "+a.toString()+`;
63
- `+e,n.compileDebug&&(e="rethrow = rethrow || "+n1.toString()+`;
63
+ `+e,n.compileDebug&&(e="rethrow = rethrow || "+h1.toString()+`;
64
64
  `+e)),n.strict&&(e=`"use strict";
65
65
  `+e),n.debug&&console.log(e),n.compileDebug&&n.filename&&(e=e+`
66
66
  //# sourceURL=`+l+`
@@ -68,7 +68,7 @@ try {
68
68
 
69
69
  `,b.message+=`If the above error is not helpful, you may want to try EJS-Lint:
70
70
  `,b.message+="https://github.com/RyanZim/EJS-Lint",n.async||(b.message+=`
71
- `,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(O){var F=o(function(j,K){var U=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),O);return K&&(U=Nn.shallowCopy(U,K)),Q8(j,n)(U)},"include");return t.apply(n.context,[O||Nn.createNullProtoObjWherePossible(),a,F,n1])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var T=n.filename,A=Su.basename(T,Su.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,`
71
+ `,b.message+="Or, if you meant to create an async function, pass `async: true` as an option.")),b}var m=n.client?t:o(function(I){var F=o(function(j,K){var U=Nn.shallowCopy(Nn.createNullProtoObjWherePossible(),I);return K&&(U=Nn.shallowCopy(U,K)),cK(j,n)(U)},"include");return t.apply(n.context,[I||Nn.createNullProtoObjWherePossible(),a,F,h1])},"anonymous");if(n.filename&&typeof Object.defineProperty=="function"){var v=n.filename,A=xu.basename(v,xu.extname(v));try{Object.defineProperty(m,"name",{value:A,writable:!1,enumerable:!1,configurable:!0})}catch{}}return m},"compile"),generateSource:o(function(){var e=this.opts;e.rmWhitespace&&(this.templateText=this.templateText.replace(/[\r\n]+/g,`
72
72
  `).replace(/^\s+|\s+$/gm,"")),this.templateText=this.templateText.replace(/[ \t]*<%_/gm,"<%_").replace(/_%>[ \t]*/gm,"_%>");var t=this,n=this.parseTemplateText(),i=this.opts.delimiter,r=this.opts.openDelimiter,a=this.opts.closeDelimiter;n&&n.length&&n.forEach(function(s,l){var u;if(s.indexOf(r+i)===0&&s.indexOf(r+i+i)!==0&&(u=n[l+2],!(u==i+a||u=="-"+i+a||u=="_"+i+a)))throw new Error('Could not find matching close tag for "'+s+'".');t.scanLine(s)})},"generateSource"),parseTemplateText:o(function(){for(var e=this.templateText,t=this.regex,n=t.exec(e),i=[],r;n;)r=n.index,r!==0&&(i.push(e.substring(0,r)),e=e.slice(r)),i.push(n[0]),e=e.slice(n[0].length),n=t.exec(e);return e&&i.push(e),i},"parseTemplateText"),_addOutput:o(function(e){if(this.truncate&&(e=e.replace(/^(?:\r\n|\r|\n)/,""),this.truncate=!1),!e)return e;e=e.replace(/\\/g,"\\\\"),e=e.replace(/\n/g,"\\n"),e=e.replace(/\r/g,"\\r"),e=e.replace(/"/g,'\\"'),this.source+=' ; __append("'+e+`")
73
73
  `},"_addOutput"),scanLine:o(function(e){var t=this,n=this.opts.delimiter,i=this.opts.openDelimiter,r=this.opts.closeDelimiter,a=0;switch(a=e.split(`
74
74
  `).length-1,e){case i+n:case i+n+"_":this.mode=Bn.modes.EVAL;break;case i+n+"=":this.mode=Bn.modes.ESCAPED;break;case i+n+"-":this.mode=Bn.modes.RAW;break;case i+n+"#":this.mode=Bn.modes.COMMENT;break;case i+n+n:this.mode=Bn.modes.LITERAL,this.source+=' ; __append("'+e.replace(i+n+n,i+n)+`")
@@ -76,68 +76,68 @@ try {
76
76
  `;break;case n+r:case"-"+n+r:case"_"+n+r:this.mode==Bn.modes.LITERAL&&this._addOutput(e),this.mode=null,this.truncate=e.indexOf("-")===0||e.indexOf("_")===0;break;default:if(this.mode){switch(this.mode){case Bn.modes.EVAL:case Bn.modes.ESCAPED:case Bn.modes.RAW:e.lastIndexOf("//")>e.lastIndexOf(`
77
77
  `)&&(e+=`
78
78
  `)}switch(this.mode){case Bn.modes.EVAL:this.source+=" ; "+e+`
79
- `;break;case Bn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+i1(e)+`))
80
- `;break;case Bn.modes.RAW:this.source+=" ; __append("+i1(e)+`)
79
+ `;break;case Bn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+y1(e)+`))
80
+ `;break;case Bn.modes.RAW:this.source+=" ; __append("+y1(e)+`)
81
81
  `;break;case Bn.modes.COMMENT:break;case Bn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&a&&(this.currentLine+=a,this.source+=" ; __line = "+this.currentLine+`
82
- `)},"scanLine")};Pt.escapeXML=Nn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=j8;Pt.name=H8;typeof window<"u"&&(window.ejs=Pt)});var np,BA=qe(()=>{np="7.1.1"});function ot(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 X1(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 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 Ci(e){return ot(e)?void 0:e[0]}function Vh(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(wh(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 Gr(e){return typeof e=="string"}function xi(e){return e===void 0}function go(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function ms(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Wr(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 Ea(e,t){return Wr(e,function(n){return!t(n)})}function Tr(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 Ie(e,t){return wh(e)?e.hasOwnProperty(t):!1}function Vt(e,t){return Aa(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 hs(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Aa(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function Q1(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function un(e,t,n){for(var i=Array.isArray(e),r=i?e:Vn(e),a=i?[]:Mi(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:a[l]);return s}function Sa(e){return Ea(e,function(t){return t==null})}function ip(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return un(e,function(i,r){var a=t(r);return Vt(n,a)?i:(n.push(a),i.concat(r))},[])}function xre(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function li(e){return Array.isArray(e)}function mo(e){return e instanceof RegExp}function wh(e){return e instanceof Object}function fi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Nc(e,t){return Ea(e,function(n){return Vt(t,n)})}function Mh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function q1(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Ire(e,t){var n=An(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Ore(e,t){if(e.length!==t.length)throw Error("can't zipObject with different number of keys and values!");for(var n={},i=0;i<e.length;i++)n[e[i]]=t[i];return n}function br(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 v7(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var i=0;i<t.length;i++)for(var r=t[i],a=Mi(r),s=0;s<a.length;s++){var l=a[s];Ie(e,l)||(e[l]=r[l])}return e}function rp(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return v7.apply(null,[{}].concat(e))}function z1(e,t){var n={};return ve(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function HA(e,t){for(var n=hs(e),i=Mi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Mn(){}function GA(e){return e}function Y1(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(i!==void 0?i:void 0)}return t}function op(e){console&&console.error&&console.error("Error: "+e)}function kh(e){console&&console.warn&&console.warn("Warning: "+e)}function WA(){return typeof Map=="function"}function J1(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var a=Object.getOwnPropertyDescriptor(i,r);a&&(a.get||a.set)?Object.defineProperty(e.prototype,r,a):e.prototype[r]=n.prototype[r]}})})}function jh(toBecomeFast){function FakeConstructor(){}o(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return o(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function ap(e){return e[e.length-1]}function Uh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var Tt=qe(()=>{o(ot,"isEmpty");o(Mi,"keys");o(Vn,"values");o(X1,"mapValues");o(pe,"map");o(Ln,"flatten");o(Ci,"first");o(Vh,"last");o(ve,"forEach");o(Gr,"isString");o(xi,"isUndefined");o(go,"isFunction");o(wn,"drop");o(ms,"dropRight");o(Wr,"filter");o(Ea,"reject");o(Tr,"pick");o(Ie,"has");o(Vt,"contains");o(An,"cloneArr");o(hs,"cloneObj");o(Aa,"find");o(Q1,"findAll");o(un,"reduce");o(Sa,"compact");o(ip,"uniq");o(xre,"partial");o(li,"isArray");o(mo,"isRegExp");o(wh,"isObject");o(fi,"every");o(Nc,"difference");o(Mh,"some");o(q1,"indexOf");o(Ire,"sortBy");o(Ore,"zipObject");o(br,"assign");o(v7,"assignNoOverwrite");o(rp,"defaults");o(z1,"groupBy");o(HA,"merge");o(Mn,"NOOP");o(GA,"IDENTITY");o(Y1,"packArray");o(op,"PRINT_ERROR");o(kh,"PRINT_WARNING");o(WA,"isES2015MapSupported");o(J1,"applyMixins");o(jh,"toFastProperties");o(ap,"peek");o(Uh,"timer")});var Bh=ze((eD,$h)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof $h=="object"&&$h.exports?$h.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:eD,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(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 F={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(F,"global");break;case"i":s(F,"ignoreCase");break;case"m":s(F,"multiLine");break;case"u":s(F,"unicode");break;case"y":s(F,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:F,value:O,loc:this.loc(0)}},e.prototype.disjunction=function(){var 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 F=this.disjunction();return this.consumeChar(")"),{type:O,value:F,loc:this.loc(b)}}u()},e.prototype.quantifier=function(b){var O,F=this.idx;switch(this.popChar()){case"*":O={atLeast:0,atMost:1/0};break;case"+":O={atLeast:1,atMost:1/0};break;case"?":O={atLeast:0,atMost:1};break;case"{":var j=this.integerIncludingZero();switch(this.popChar()){case"}":O={atLeast:j,atMost:j};break;case",":var K;this.isDigit()?(K=this.integerIncludingZero(),O={atLeast:j,atMost:K}):O={atLeast:j,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(F),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 F=this.classAtom(),j=F.type==="Character";if(j&&this.isRangeDash()){this.consumeChar("-");var K=this.classAtom(),U=K.type==="Character";if(U){if(K.value<F.value)throw Error("Range out of order in character class");b.push({from:F.value,to:K.value})}else a(F.value,b),b.push(r("-")),a(K.value,b)}else a(F.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 F={type:"Group",capturing:b,value:O};return b&&(F.idx=this.groupIdx),F},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`
82
+ `)},"scanLine")};Pt.escapeXML=Nn.escapeXML;Pt.__express=Pt.renderFile;Pt.VERSION=Z8;Pt.name=iK;typeof window<"u"&&(window.ejs=Pt)});var rp,ZA=qe(()=>{rp="7.1.1"});function ot(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 sD(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 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 xi(e){return ot(e)?void 0:e[0]}function Bh(e){var t=e&&e.length;return t?e[t-1]:void 0}function Te(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Hh(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 Gr(e){return typeof e=="string"}function Ci(e){return e===void 0}function go(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function hs(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Wr(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 Ea(e,t){return Wr(e,function(n){return!t(n)})}function Tr(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 Hh(e)?e.hasOwnProperty(t):!1}function wt(e,t){return Aa(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 ys(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Aa(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function cD(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i];t.call(null,r)&&n.push(r)}return n}function pn(e,t,n){for(var i=Array.isArray(e),r=i?e: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 Sa(e){return Ea(e,function(t){return t==null})}function op(e,t){t===void 0&&(t=o(function(i){return i},"identity"));var n=[];return pn(e,function(i,r){var a=t(r);return wt(n,a)?i:(n.push(a),i.concat(r))},[])}function Bre(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=[null],r=i.concat(t);return Function.bind.apply(e,r)}function li(e){return Array.isArray(e)}function mo(e){return e instanceof RegExp}function Hh(e){return e instanceof Object}function fi(e,t){for(var n=0;n<e.length;n++)if(!t(e[n],n))return!1;return!0}function Lc(e,t){return Ea(e,function(n){return wt(t,n)})}function Gh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function lD(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Hre(e,t){var n=An(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Gre(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 br(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 F7(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 ap(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return F7.apply(null,[{}].concat(e))}function fD(e,t){var n={};return Te(e,function(i){var r=t(i),a=n[r];a?a.push(i):n[r]=[i]}),n}function eS(e,t){for(var n=ys(e),i=Mi(t),r=0;r<i.length;r++){var a=i[r],s=t[a];n[a]=s}return n}function Mn(){}function tS(e){return e}function uD(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 sp(e){console&&console.error&&console.error("Error: "+e)}function Wh(e){console&&console.warn&&console.warn("Warning: "+e)}function nS(){return typeof Map=="function"}function pD(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 cp(e){return e[e.length-1]}function Xh(e){var t=new Date().getTime(),n=e(),i=new Date().getTime(),r=i-t;return{time:r,value:n}}var Tt=qe(()=>{o(ot,"isEmpty");o(Mi,"keys");o(Vn,"values");o(sD,"mapValues");o(pe,"map");o(Ln,"flatten");o(xi,"first");o(Bh,"last");o(Te,"forEach");o(Gr,"isString");o(Ci,"isUndefined");o(go,"isFunction");o(wn,"drop");o(hs,"dropRight");o(Wr,"filter");o(Ea,"reject");o(Tr,"pick");o(Oe,"has");o(wt,"contains");o(An,"cloneArr");o(ys,"cloneObj");o(Aa,"find");o(cD,"findAll");o(pn,"reduce");o(Sa,"compact");o(op,"uniq");o(Bre,"partial");o(li,"isArray");o(mo,"isRegExp");o(Hh,"isObject");o(fi,"every");o(Lc,"difference");o(Gh,"some");o(lD,"indexOf");o(Hre,"sortBy");o(Gre,"zipObject");o(br,"assign");o(F7,"assignNoOverwrite");o(ap,"defaults");o(fD,"groupBy");o(eS,"merge");o(Mn,"NOOP");o(tS,"IDENTITY");o(uD,"packArray");o(sp,"PRINT_ERROR");o(Wh,"PRINT_WARNING");o(nS,"isES2015MapSupported");o(pD,"applyMixins");o(Kh,"toFastProperties");o(cp,"peek");o(Xh,"timer")});var qh=ze((gD,Qh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Qh=="object"&&Qh.exports?Qh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:gD,function(){function e(){}o(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(b){this.idx=b.idx,this.input=b.input,this.groupIdx=b.groupIdx},e.prototype.pattern=function(b){this.idx=0,this.input=b,this.groupIdx=0,this.consumeChar("/");var I=this.disjunction();this.consumeChar("/");for(var F={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(F,"global");break;case"i":s(F,"ignoreCase");break;case"m":s(F,"multiLine");break;case"u":s(F,"unicode");break;case"y":s(F,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:F,value:I,loc:this.loc(0)}},e.prototype.disjunction=function(){var b=[],I=this.idx;for(b.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),b.push(this.alternative());return{type:"Disjunction",value:b,loc:this.loc(I)}},e.prototype.alternative=function(){for(var b=[],I=this.idx;this.isTerm();)b.push(this.term());return{type:"Alternative",value:b,loc:this.loc(I)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var b=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(b)};case"$":return{type:"EndAnchor",loc:this.loc(b)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(b)};case"B":return{type:"NonWordBoundary",loc:this.loc(b)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var I;switch(this.popChar()){case"=":I="Lookahead";break;case"!":I="NegativeLookahead";break}l(I);var F=this.disjunction();return this.consumeChar(")"),{type:I,value:F,loc:this.loc(b)}}u()},e.prototype.quantifier=function(b){var I,F=this.idx;switch(this.popChar()){case"*":I={atLeast:0,atMost:1/0};break;case"+":I={atLeast:1,atMost:1/0};break;case"?":I={atLeast:0,atMost:1};break;case"{":var j=this.integerIncludingZero();switch(this.popChar()){case"}":I={atLeast:j,atMost:j};break;case",":var K;this.isDigit()?(K=this.integerIncludingZero(),I={atLeast:j,atMost:K}):I={atLeast:j,atMost:1/0},this.consumeChar("}");break}if(b===!0&&I===void 0)return;l(I);break}if(!(b===!0&&I===void 0))return l(I),this.peekChar(0)==="?"?(this.consumeChar("?"),I.greedy=!1):I.greedy=!0,I.type="Quantifier",I.loc=this.loc(F),I},e.prototype.atom=function(){var b,I=this.idx;switch(this.peekChar()){case".":b=this.dotAll();break;case"\\":b=this.atomEscape();break;case"[":b=this.characterClass();break;case"(":b=this.group();break}return b===void 0&&this.isPatternCharacter()&&(b=this.patternCharacter()),l(b),b.loc=this.loc(I),this.isQuantifier()&&(b.quantifier=this.quantifier()),b},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
83
+ `),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var b=this.positiveInteger();return{type:"GroupBackReference",value:b}},e.prototype.characterClassEscape=function(){var b,I=!1;switch(this.popChar()){case"d":b=g;break;case"D":b=g,I=!0;break;case"s":b=v;break;case"S":b=v,I=!0;break;case"w":b=m;break;case"W":b=m,I=!0;break}return l(b),{type:"Set",value:b,complement:I}},e.prototype.controlEscapeAtom=function(){var b;switch(this.popChar()){case"f":b=r("\f");break;case"n":b=r(`
84
+ `);break;case"r":b=r("\r");break;case"t":b=r(" ");break;case"v":b=r("\v");break}return l(b),{type:"Character",value:b}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var b=this.popChar();if(/[a-zA-Z]/.test(b)===!1)throw Error("Invalid ");var I=b.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:I}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var b=this.popChar();return{type:"Character",value:r(b)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
85
+ `:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var b=this.popChar();return{type:"Character",value:r(b)}}},e.prototype.characterClass=function(){var b=[],I=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),I=!0);this.isClassAtom();){var F=this.classAtom(),j=F.type==="Character";if(j&&this.isRangeDash()){this.consumeChar("-");var K=this.classAtom(),U=K.type==="Character";if(U){if(K.value<F.value)throw Error("Range out of order in character class");b.push({from:F.value,to:K.value})}else a(F.value,b),b.push(r("-")),a(K.value,b)}else a(F.value,b)}return this.consumeChar("]"),{type:"Set",complement:I,value:b}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
86
+ `:case"\r":case"\u2028":case"\u2029":throw Error("TBD");case"\\":return this.classEscape();default:return this.classPatternCharacterAtom()}},e.prototype.classEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"b":return this.consumeChar("b"),{type:"Character",value:r("\b")};case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.group=function(){var b=!0;switch(this.consumeChar("("),this.peekChar(0)){case"?":this.consumeChar("?"),this.consumeChar(":"),b=!1;break;default:this.groupIdx++;break}var I=this.disjunction();this.consumeChar(")");var F={type:"Group",capturing:b,value:I};return b&&(F.idx=this.groupIdx),F},e.prototype.positiveInteger=function(){var b=this.popChar();if(i.test(b)===!1)throw Error("Expecting a positive integer");for(;n.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},e.prototype.integerIncludingZero=function(){var b=this.popChar();if(n.test(b)===!1)throw Error("Expecting an integer");for(;n.test(this.peekChar(0));)b+=this.popChar();return parseInt(b,10)},e.prototype.patternCharacter=function(){var b=this.popChar();switch(b){case`
87
87
  `:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(b)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(b){switch(b===void 0&&(b=0),this.peekChar(b)){case"]":case`
88
88
  `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var b=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(b)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
89
- `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(b){for(var O="",F=0;F<b;F++){var j=this.popChar();if(t.test(j)===!1)throw Error("Expecting a HexDecimal digits");O+=j}var K=parseInt(O,16);return{type:"Character",value:K}},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(F){O.push(F)}):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 F=b[O];b.hasOwnProperty(O)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(j){this.visit(j)},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 $l(e){var t=e.toString();if(Hh.hasOwnProperty(t))return Hh[t];var n=T7.pattern(t);return Hh[t]=n,n}function nD(){Hh={}}var tD,Hh,T7,Gh=qe(()=>{tD=ie(Bh()),Hh={},T7=new tD.RegExpParser;o($l,"getRegExpAst");o(nD,"clearRegExpParserCache")});function oD(e,t){t===void 0&&(t=!1);try{var n=$l(e),i=KA(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===rD)t&&kh(""+sp+(" Unable to optimize: < "+e.toString()+` >
89
+ `:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(b){for(var I="",F=0;F<b;F++){var j=this.popChar();if(t.test(j)===!1)throw Error("Expecting a HexDecimal digits");I+=j}var K=parseInt(I,16);return{type:"Character",value:K}},e.prototype.peekChar=function(b){return b===void 0&&(b=0),this.input[this.idx+b]},e.prototype.popChar=function(){var b=this.peekChar(0);return this.consumeChar(),b},e.prototype.consumeChar=function(b){if(b!==void 0&&this.input[this.idx]!==b)throw Error("Expected: '"+b+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(b){return{begin:b,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(b){return b.charCodeAt(0)}o(r,"cc");function a(b,I){b.length!==void 0?b.forEach(function(F){I.push(F)}):I.push(b)}o(a,"insertToSet");function s(b,I){if(b[I]===!0)throw"duplicate flag "+I;b[I]=!0}o(s,"addFlag");function l(b){if(b===void 0)throw Error("Internal Error - Should never get here!")}o(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}o(u,"ASSERT_NEVER_REACH_HERE");var p,g=[];for(p=r("0");p<=r("9");p++)g.push(p);var m=[r("_")].concat(g);for(p=r("a");p<=r("z");p++)m.push(p);for(p=r("A");p<=r("Z");p++)m.push(p);var v=[r(" "),r("\f"),r(`
90
+ `),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function A(){}return o(A,"BaseRegExpVisitor"),A.prototype.visitChildren=function(b){for(var I in b){var F=b[I];b.hasOwnProperty(I)&&(F.type!==void 0?this.visit(F):Array.isArray(F)&&F.forEach(function(j){this.visit(j)},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 Bl(e){var t=e.toString();if(zh.hasOwnProperty(t))return zh[t];var n=D7.pattern(t);return zh[t]=n,n}function hD(){zh={}}var mD,zh,D7,Yh=qe(()=>{mD=ie(qh()),zh={},D7=new mD.RegExpParser;o(Bl,"getRegExpAst");o(hD,"clearRegExpParserCache")});function TD(e,t){t===void 0&&(t=!1);try{var n=Bl(e),i=iS(n.value,{},n.flags.ignoreCase);return i}catch(a){if(a.message===vD)t&&Wh(""+lp+(" Unable to optimize: < "+e.toString()+` >
91
91
  `)+` Complement Sets cannot be automatically optimized.
92
92
  This will disable the lexer's first char optimizations.
93
93
  See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var r="";t&&(r=`
94
94
  This will disable the lexer's first char optimizations.
95
- See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),op(sp+`
95
+ See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),sp(lp+`
96
96
  `+(" Failed parsing: < "+e.toString()+` >
97
- `)+(" Using the regexp-to-ast library version: "+Kh.VERSION+`
98
- `)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function KA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)KA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var a=r[i];switch(a.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=a;switch(s.type){case"Character":Wh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(rD);ve(s.value,function(p){if(typeof p=="number")Wh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Wh(m,t,n);else{for(var m=g.from;m<=g.to&&m<Bl;m++)Wh(m,t,n);if(g.to>=Bl)for(var T=g.from>=Bl?g.from:Bl,A=g.to,b=Ho(T),O=Ho(A),F=b;F<=O;F++)t[F]=F}}});break;case"Group":KA(s.value,t,n);break;default:throw Error("Non Exhaustive Match")}var l=s.quantifier!==void 0&&s.quantifier.atLeast===0;if(s.type==="Group"&&XA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Wh(e,t,n){var i=Ho(e);t[i]=i,n===!0&&E7(e,t)}function E7(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Ho(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=Ho(a.charCodeAt(0));t[r]=r}}}function iD(e,t){return Aa(e.value,function(n){if(typeof n=="number")return Vt(t,n);var i=n;return Aa(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function XA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?li(e.value)?fi(e.value,XA):XA(e.value):!1}function Xh(e,t){if(t instanceof RegExp){var n=$l(t),i=new A7(e);return i.visit(n),i.found}else return Aa(t,function(r){return Vt(e,r.charCodeAt(0))})!==void 0}var Kh,b7,rD,sp,A7,aD=qe(()=>{Kh=ie(Bh());Tt();Gh();QA();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)}}(),rD="Complement Sets are not supported for first char optimization",sp=`Unable to use "first char" lexer optimizations:
99
- `;o(oD,"getOptimizedStartCodesIndices");o(KA,"firstCharOptimizedIndices");o(Wh,"addOptimizedIdxToResult");o(E7,"handleIgnoreCase");o(iD,"findCode");o(XA,"isWholeOptional");A7=function(e){b7(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return o(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){Vt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?iD(n,this.targetCharCodes)===void 0&&(this.found=!0):iD(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Kh.BaseRegExpVisitor);o(Xh,"canMatchCharCode")});function fD(e,t){t=rp(t,{useSticky:YA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
100
- `],tracer:o(function(K,U){return U()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){U7()});var i;n("Reject Lexer.NA",function(){i=Ea(e,function(K){return K[Go]===ki.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(K){var U=K[Go];if(mo(U)){var ae=U.source;return ae.length===1&&ae!=="^"&&ae!=="$"&&ae!=="."&&!U.ignoreCase?ae:ae.length===2&&ae[0]==="\\"&&!Vt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ae[1])?ae[1]:t.useSticky?cD(U):sD(U)}else{if(go(U))return r=!0,{exec:U};if(Ie(U,"exec"))return r=!0,U;if(typeof U=="string"){if(U.length===1)return U;var Z=U.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(Z);return t.useSticky?cD(re):sD(re)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=pe(i,function(K){return K.tokenTypeIdx}),l=pe(i,function(K){var U=K.GROUP;if(U!==ki.SKIPPED){if(Gr(U))return U;if(xi(U))return!1;throw Error("non exhaustive match")}}),u=pe(i,function(K){var U=K.LONGER_ALT;if(U){var ae=q1(i,U);return ae}}),p=pe(i,function(K){return K.PUSH_MODE}),g=pe(i,function(K){return Ie(K,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var K=vD(t.lineTerminatorCharacters);m=pe(i,function(U){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function(U){if(Ie(U,"LINE_BREAKS"))return U.LINE_BREAKS;if(yD(U,K)===!1)return Xh(K,U.PATTERN)}))});var T,A,b,O;n("Misc Mapping #2",function(){T=pe(i,mD),A=pe(a,k7),b=un(i,function(K,U){var ae=U.GROUP;return Gr(ae)&&ae!==ki.SKIPPED&&(K[ae]=[]),K},{}),O=pe(a,function(K,U){return{pattern:a[U],longerAlt:u[U],canLineTerminator:m[U],isCustom:T[U],short:A[U],group:l[U],push:p[U],pop:g[U],tokenTypeIdx:s[U],tokenType:i[U]}})});var F=!0,j=[];return t.safeMode||n("First Char Optimization",function(){j=un(i,function(K,U,ae){if(typeof U.PATTERN=="string"){var Z=U.PATTERN.charCodeAt(0),re=Ho(Z);qA(K,re,O[ae])}else if(li(U.START_CHARS_HINT)){var Pe;ve(U.START_CHARS_HINT,function(ut){var yt=typeof ut=="string"?ut.charCodeAt(0):ut,Ue=Ho(yt);Pe!==Ue&&(Pe=Ue,qA(K,Ue,O[ae]))})}else if(mo(U.PATTERN))if(U.PATTERN.unicode)F=!1,t.ensureOptimizations&&op(""+sp+(" Unable to analyze < "+U.PATTERN.toString()+` > pattern.
97
+ `)+(" Using the regexp-to-ast library version: "+Zh.VERSION+`
98
+ `)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function iS(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)iS(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":Jh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(vD);Te(s.value,function(p){if(typeof p=="number")Jh(p,t,n);else{var g=p;if(n===!0)for(var m=g.from;m<=g.to;m++)Jh(m,t,n);else{for(var m=g.from;m<=g.to&&m<Hl;m++)Jh(m,t,n);if(g.to>=Hl)for(var v=g.from>=Hl?g.from:Hl,A=g.to,b=Ho(v),I=Ho(A),F=b;F<=I;F++)t[F]=F}}});break;case"Group":iS(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"&&rS(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Vn(t)}function Jh(e,t,n){var i=Ho(e);t[i]=i,n===!0&&V7(e,t)}function V7(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Ho(i.charCodeAt(0));t[r]=r}else{var a=n.toLowerCase();if(a!==n){var r=Ho(a.charCodeAt(0));t[r]=r}}}function yD(e,t){return Aa(e.value,function(n){if(typeof n=="number")return wt(t,n);var i=n;return Aa(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function rS(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?li(e.value)?fi(e.value,rS):rS(e.value):!1}function ey(e,t){if(t instanceof RegExp){var n=Bl(t),i=new w7(e);return i.visit(n),i.found}else return Aa(t,function(r){return wt(e,r.charCodeAt(0))})!==void 0}var Zh,_7,vD,lp,w7,bD=qe(()=>{Zh=ie(qh());Tt();Yh();oS();_7=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)}}(),vD="Complement Sets are not supported for first char optimization",lp=`Unable to use "first char" lexer optimizations:
99
+ `;o(TD,"getOptimizedStartCodesIndices");o(iS,"firstCharOptimizedIndices");o(Jh,"addOptimizedIdxToResult");o(V7,"handleIgnoreCase");o(yD,"findCode");o(rS,"isWholeOptional");w7=function(e){_7(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return o(t,"CharCodeFinder"),t.prototype.visitChildren=function(n){if(this.found!==!0){switch(n.type){case"Lookahead":this.visitLookahead(n);return;case"NegativeLookahead":this.visitNegativeLookahead(n);return}e.prototype.visitChildren.call(this,n)}},t.prototype.visitCharacter=function(n){wt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?yD(n,this.targetCharCodes)===void 0&&(this.found=!0):yD(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Zh.BaseRegExpVisitor);o(ey,"canMatchCharCode")});function PD(e,t){t=ap(t,{useSticky:cS,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
100
+ `],tracer:o(function(K,U){return U()},"tracer")});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){e9()});var i;n("Reject Lexer.NA",function(){i=Ea(e,function(K){return K[Go]===ki.NA})});var r=!1,a;n("Transform Patterns",function(){r=!1,a=pe(i,function(K){var U=K[Go];if(mo(U)){var ae=U.source;return ae.length===1&&ae!=="^"&&ae!=="$"&&ae!=="."&&!U.ignoreCase?ae:ae.length===2&&ae[0]==="\\"&&!wt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],ae[1])?ae[1]:t.useSticky?AD(U):ED(U)}else{if(go(U))return r=!0,{exec:U};if(Oe(U,"exec"))return r=!0,U;if(typeof U=="string"){if(U.length===1)return U;var Z=U.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),re=new RegExp(Z);return t.useSticky?AD(re):ED(re)}else throw Error("non exhaustive match")}})});var s,l,u,p,g;n("misc mapping",function(){s=pe(i,function(K){return K.tokenTypeIdx}),l=pe(i,function(K){var U=K.GROUP;if(U!==ki.SKIPPED){if(Gr(U))return U;if(Ci(U))return!1;throw Error("non exhaustive match")}}),u=pe(i,function(K){var U=K.LONGER_ALT;if(U){var ae=lD(i,U);return ae}}),p=pe(i,function(K){return K.PUSH_MODE}),g=pe(i,function(K){return Oe(K,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var K=FD(t.lineTerminatorCharacters);m=pe(i,function(U){return!1}),t.positionTracking!=="onlyOffset"&&(m=pe(i,function(U){if(Oe(U,"LINE_BREAKS"))return U.LINE_BREAKS;if(RD(U,K)===!1)return ey(K,U.PATTERN)}))});var v,A,b,I;n("Misc Mapping #2",function(){v=pe(i,ND),A=pe(a,J7),b=pn(i,function(K,U){var ae=U.GROUP;return Gr(ae)&&ae!==ki.SKIPPED&&(K[ae]=[]),K},{}),I=pe(a,function(K,U){return{pattern:a[U],longerAlt:u[U],canLineTerminator:m[U],isCustom:v[U],short:A[U],group:l[U],push:p[U],pop:g[U],tokenTypeIdx:s[U],tokenType:i[U]}})});var F=!0,j=[];return t.safeMode||n("First Char Optimization",function(){j=pn(i,function(K,U,ae){if(typeof U.PATTERN=="string"){var Z=U.PATTERN.charCodeAt(0),re=Ho(Z);aS(K,re,I[ae])}else if(li(U.START_CHARS_HINT)){var Pe;Te(U.START_CHARS_HINT,function(ut){var yt=typeof ut=="string"?ut.charCodeAt(0):ut,Ue=Ho(yt);Pe!==Ue&&(Pe=Ue,aS(K,Ue,I[ae]))})}else if(mo(U.PATTERN))if(U.PATTERN.unicode)F=!1,t.ensureOptimizations&&sp(""+lp+(" Unable to analyze < "+U.PATTERN.toString()+` > pattern.
101
101
  `)+` The regexp unicode flag is not currently supported by the regexp-to-ast library.
102
102
  This will disable the lexer's first char optimizations.
103
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var D=oD(U.PATTERN,t.ensureOptimizations);ot(D)&&(F=!1),ve(D,function(ut){qA(K,ut,O[ae])})}else t.ensureOptimizations&&op(""+sp+(" TokenType: <"+U.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 D=TD(U.PATTERN,t.ensureOptimizations);ot(D)&&(F=!1),Te(D,function(ut){aS(K,ut,I[ae])})}else t.ensureOptimizations&&sp(""+lp+(" TokenType: <"+U.name+`> is using a custom token pattern without providing <start_chars_hint> parameter.
104
104
  `)+` This will disable the lexer's first char optimizations.
105
- For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),F=!1;return K},[])}),n("ArrayPacking",function(){j=Y1(j)}),{emptyGroups:b,patternIdxToConfig:O,charCodeToPatternIdxToConfig:j,hasCustom:r,canBeOptimized:F}}function uD(e,t){var n=[],i=P7(e);n=n.concat(i.errors);var r=C7(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(S7(a)),n=n.concat(D7(a)),n=n.concat(_7(a,t)),n=n.concat(V7(a)),n}function S7(e){var t=[],n=Wr(e,function(i){return mo(i[Go])});return t=t.concat(I7(n)),t=t.concat(L7(n)),t=t.concat(R7(n)),t=t.concat(F7(n)),t=t.concat(O7(n)),t}function P7(e){var t=Wr(e,function(r){return!Ie(r,Go)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:pn.MISSING_PATTERN,tokenTypes:[r]}}),i=Nc(e,t);return{errors:n,valid:i}}function C7(e){var t=Wr(e,function(r){var a=r[Go];return!mo(a)&&!go(a)&&!Ie(a,"exec")&&!Gr(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=Nc(e,t);return{errors:n,valid:i}}function I7(e){var t=function(r){lD(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"EndAnchorFinder"),a.prototype.visitEndAnchor=function(s){this.found=!0},a}(zA.BaseRegExpVisitor),n=Wr(e,function(r){var a=r[Go];try{var s=$l(a),l=new t;return l.visit(s),l.found}catch{return x7.test(a.source)}}),i=pe(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`),F=!1;return K},[])}),n("ArrayPacking",function(){j=uD(j)}),{emptyGroups:b,patternIdxToConfig:I,charCodeToPatternIdxToConfig:j,hasCustom:r,canBeOptimized:F}}function xD(e,t){var n=[],i=k7(e);n=n.concat(i.errors);var r=j7(i.valid),a=r.valid;return n=n.concat(r.errors),n=n.concat(M7(a)),n=n.concat(X7(a)),n=n.concat(Q7(a,t)),n=n.concat(q7(a)),n}function M7(e){var t=[],n=Wr(e,function(i){return mo(i[Go])});return t=t.concat($7(n)),t=t.concat(G7(n)),t=t.concat(W7(n)),t=t.concat(K7(n)),t=t.concat(B7(n)),t}function k7(e){var t=Wr(e,function(r){return!Oe(r,Go)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:dn.MISSING_PATTERN,tokenTypes:[r]}}),i=Lc(e,t);return{errors:n,valid:i}}function j7(e){var t=Wr(e,function(r){var a=r[Go];return!mo(a)&&!go(a)&&!Oe(a,"exec")&&!Gr(a)}),n=pe(t,function(r){return{message:"Token Type: ->"+r.name+"<- static 'PATTERN' can only be a RegExp, a Function matching the {CustomPatternMatcherFunc} type or an Object matching the {ICustomPattern} interface.",type:dn.INVALID_PATTERN,tokenTypes:[r]}}),i=Lc(e,t);return{errors:n,valid:i}}function $7(e){var t=function(r){SD(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}(sS.BaseRegExpVisitor),n=Wr(e,function(r){var a=r[Go];try{var s=Bl(a),l=new t;return l.visit(s),l.found}catch{return U7.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 O7(e){var t=Wr(e,function(i){var r=i[Go];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 L7(e){var t=function(r){lD(a,r);function a(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return o(a,"StartAnchorFinder"),a.prototype.visitStartAnchor=function(s){this.found=!0},a}(zA.BaseRegExpVisitor),n=Wr(e,function(r){var a=r[Go];try{var s=$l(a),l=new t;return l.visit(s),l.found}catch{return N7.test(a.source)}}),i=pe(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:dn.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function B7(e){var t=Wr(e,function(i){var r=i[Go];return r.test("")}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:dn.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function G7(e){var t=function(r){SD(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}(sS.BaseRegExpVisitor),n=Wr(e,function(r){var a=r[Go];try{var s=Bl(a),l=new t;return l.visit(s),l.found}catch{return H7.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 R7(e){var t=Wr(e,function(i){var r=i[Go];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 F7(e){var t=[],n=pe(e,function(a){return un(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!Vt(t,l)&&l.PATTERN!==ki.NA&&(t.push(l),s.push(l)),s},[])});n=Sa(n);var i=Wr(n,function(a){return a.length>1}),r=pe(i,function(a){var s=pe(a,function(u){return u.name}),l=Ci(a).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:pn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function D7(e){var t=Wr(e,function(i){if(!Ie(i,"GROUP"))return!1;var r=i.GROUP;return r!==ki.SKIPPED&&r!==ki.NA&&!Gr(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 _7(e,t){var n=Wr(e,function(r){return r.PUSH_MODE!==void 0&&!Vt(t,r.PUSH_MODE)}),i=pe(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:pn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function V7(e){var t=[],n=un(e,function(i,r,a){var s=r.PATTERN;return s===ki.NA||(Gr(s)?i.push({str:s,idx:a,tokenType:r}):mo(s)&&M7(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&&w7(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:dn.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function W7(e){var t=Wr(e,function(i){var r=i[Go];return r instanceof RegExp&&(r.multiline||r.global)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:dn.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function K7(e){var t=[],n=pe(e,function(a){return pn(e,function(s,l){return a.PATTERN.source===l.PATTERN.source&&!wt(t,l)&&l.PATTERN!==ki.NA&&(t.push(l),s.push(l)),s},[])});n=Sa(n);var i=Wr(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:dn.DUPLICATE_PATTERNS_FOUND,tokenTypes:a}});return r}function X7(e){var t=Wr(e,function(i){if(!Oe(i,"GROUP"))return!1;var r=i.GROUP;return r!==ki.SKIPPED&&r!==ki.NA&&!Gr(r)}),n=pe(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:dn.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function Q7(e,t){var n=Wr(e,function(r){return r.PUSH_MODE!==void 0&&!wt(t,r.PUSH_MODE)}),i=pe(n,function(r){var a="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:a,type:dn.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function q7(e){var t=[],n=pn(e,function(i,r,a){var s=r.PATTERN;return s===ki.NA||(Gr(s)?i.push({str:s,idx:a,tokenType:r}):mo(s)&&Y7(s)&&i.push({str:s.source,idx:a,tokenType:r})),i},[]);return Te(e,function(i,r){Te(n,function(a){var s=a.str,l=a.idx,u=a.tokenType;if(r<l&&z7(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 w7(e,t){if(mo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(go(t))return t(e,0,[],{});if(Ie(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function M7(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Aa(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function sD(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function cD(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function pD(e,t,n){var i=[];return Ie(e,ys)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+ys+`> property in its definition
112
- `,type:pn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ie(e,Qh)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Qh+`> property in its definition
113
- `,type:pn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ie(e,Qh)&&Ie(e,ys)&&!Ie(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+ys+": <"+e.defaultMode+`>which does not exist
114
- `,type:pn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ie(e,Qh)&&ve(e.modes,function(r,a){ve(r,function(s,l){xi(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 dD(e,t,n){var i=[],r=!1,a=Sa(Ln(X1(e.modes,function(u){return u}))),s=Ea(a,function(u){return u[Go]===ki.NA}),l=vD(n);return t&&ve(s,function(u){var p=yD(u,l);if(p!==!1){var g=j7(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Ie(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Xh(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
111
+ See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:dn.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function z7(e,t){if(mo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(go(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 Y7(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Aa(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function ED(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function AD(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function CD(e,t,n){var i=[];return Oe(e,vs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+vs+`> property in its definition
112
+ `,type:dn.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Oe(e,ty)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+ty+`> property in its definition
113
+ `,type:dn.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Oe(e,ty)&&Oe(e,vs)&&!Oe(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+vs+": <"+e.defaultMode+`>which does not exist
114
+ `,type:dn.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Oe(e,ty)&&Te(e.modes,function(r,a){Te(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:dn.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function OD(e,t,n){var i=[],r=!1,a=Sa(Ln(sD(e.modes,function(u){return u}))),s=Ea(a,function(u){return u[Go]===ki.NA}),l=FD(n);return t&&Te(s,function(u){var p=RD(u,l);if(p!==!1){var g=Z7(u,p),m={message:g,type:p.issue,tokenType:u};i.push(m)}else Oe(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):ey(l,u.PATTERN)&&(r=!0)}),t&&!r&&i.push({message:`Warning: No LINE_BREAKS Found.
116
116
  This Lexer has been defined to track line and column information,
117
117
  But none of the Token Types can be identified as matching a line terminator.
118
118
  See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#LINE_BREAKS
119
- for details.`,type:pn.NO_LINE_BREAKS_FLAGS}),i}function gD(e){var t={},n=Mi(e);return ve(n,function(i){var r=e[i];if(li(r))t[i]=[];else throw Error("non exhaustive match")}),t}function mD(e){var t=e.PATTERN;if(mo(t))return!1;if(go(t))return!0;if(Ie(t,"exec"))return!0;if(Gr(t))return!1;throw Error("non exhaustive match")}function k7(e){return Gr(e)&&e.length===1?e.charCodeAt(0):!1}function yD(e,t){if(Ie(e,"LINE_BREAKS"))return!1;if(mo(e.PATTERN)){try{Xh(t,e.PATTERN)}catch(n){return{issue:pn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Gr(e.PATTERN))return!1;if(mD(e))return{issue:pn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function j7(e,t){if(t.issue===pn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
119
+ for details.`,type:dn.NO_LINE_BREAKS_FLAGS}),i}function ID(e){var t={},n=Mi(e);return Te(n,function(i){var r=e[i];if(li(r))t[i]=[];else throw Error("non exhaustive match")}),t}function ND(e){var t=e.PATTERN;if(mo(t))return!1;if(go(t))return!0;if(Oe(t,"exec"))return!0;if(Gr(t))return!1;throw Error("non exhaustive match")}function J7(e){return Gr(e)&&e.length===1?e.charCodeAt(0):!1}function RD(e,t){if(Oe(e,"LINE_BREAKS"))return!1;if(mo(e.PATTERN)){try{ey(t,e.PATTERN)}catch(n){return{issue:dn.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(Gr(e.PATTERN))return!1;if(ND(e))return{issue:dn.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function Z7(e,t){if(t.issue===dn.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
120
120
  `+(" The problem is in the <"+e.name+`> Token Type
121
121
  `)+(" Root cause: "+t.errMsg+`.
122
- `)+" 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.
122
+ `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===dn.CUSTOM_LINE_BREAK)return`Warning: A Custom Token Pattern should specify the <line_breaks> option.
123
123
  `+(" The problem is in the <"+e.name+`> Token Type
124
- `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function vD(e){var t=pe(e,function(n){return Gr(n)&&n.length>0?n.charCodeAt(0):n});return t}function qA(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Ho(e){return e<Bl?e:qh[e]}function U7(){if(ot(qh)){qh=new Array(65536);for(var e=0;e<65536;e++)qh[e]=e>255?255+~~(e/255):e}}var zA,lD,Go,ys,Qh,YA,x7,N7,hD,Bl,qh,QA=qe(()=>{zA=ie(Bh());cp();Tt();aD();Gh();lD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Go="PATTERN",ys="defaultMode",Qh="modes",YA=typeof new RegExp("(?:)").sticky=="boolean";o(fD,"analyzeTokenTypes");o(uD,"validatePatterns");o(S7,"validateRegExpPattern");o(P7,"findMissingPatterns");o(C7,"findInvalidPatterns");x7=/[^\\][\$]/;o(I7,"findEndOfInputAnchor");o(O7,"findEmptyMatchRegExps");N7=/[^\\[][\^]|^\^/;o(L7,"findStartOfInputAnchor");o(R7,"findUnsupportedFlags");o(F7,"findDuplicatePatterns");o(D7,"findInvalidGroupType");o(_7,"findModesThatDoNotExist");o(V7,"findUnreachablePatterns");o(w7,"testTokenType");o(M7,"noMetaChar");o(sD,"addStartOfInput");o(cD,"addStickyFlag");o(pD,"performRuntimeChecks");o(dD,"performWarningRuntimeChecks");o(gD,"cloneEmptyGroups");o(mD,"isCustomPattern");o(k7,"isShortPattern");hD={test:o(function(e){for(var t=e.length,n=this.lastIndex;n<t;n++){var i=e.charCodeAt(n);if(i===10)return this.lastIndex=n+1,!0;if(i===13)return e.charCodeAt(n+1)===10?this.lastIndex=n+2:this.lastIndex=n+1,!0}return!1},"test"),lastIndex:0};o(yD,"checkLineBreaksIssues");o(j7,"buildLineBreakIssueMessage");o(vD,"getCharCodes");o(qA,"addToMapOfArrays");Bl=256;o(Ho,"charCodeToOptimizedIndex");qh=[];o(U7,"initCharCodeToOptimizedIndexMap")});function Lc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Hl(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Pa(e){var t=$7(e);B7(t),G7(t),H7(t),ve(t,function(n){n.isParent=n.categoryMatches.length>0})}function $7(e){for(var t=An(e),n=e,i=!0;i;){n=Sa(Ln(pe(n,function(a){return a.CATEGORIES})));var r=Nc(n,t);t=t.concat(r),ot(r)?i=!1:n=r}return t}function B7(e){ve(e,function(t){JA(t)||(ED[TD]=t,t.tokenTypeIdx=TD++),bD(t)&&!li(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),bD(t)||(t.CATEGORIES=[]),W7(t)||(t.categoryMatches=[]),K7(t)||(t.categoryMatchesMap={})})}function H7(e){ve(e,function(t){t.categoryMatches=[],ve(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(ED[i].tokenTypeIdx)})})}function G7(e){ve(e,function(t){AD([],t)})}function AD(e,t){ve(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),ve(t.CATEGORIES,function(n){var i=e.concat(t);Vt(i,n)||AD(i,n)})}function JA(e){return Ie(e,"tokenTypeIdx")}function bD(e){return Ie(e,"CATEGORIES")}function W7(e){return Ie(e,"categoryMatches")}function K7(e){return Ie(e,"categoryMatchesMap")}function SD(e){return Ie(e,"tokenTypeIdx")}var TD,ED,Gl=qe(()=>{Tt();o(Lc,"tokenStructuredMatcher");o(Hl,"tokenStructuredMatcherNoCategories");TD=1,ED={};o(Pa,"augmentTokenTypes");o($7,"expandCategories");o(B7,"assignTokenDefaultProps");o(H7,"assignCategoriesTokensProp");o(G7,"assignCategoriesMapProp");o(AD,"singleAssignCategoriesToksMap");o(JA,"hasShortKeyProperty");o(bD,"hasCategoriesProperty");o(W7,"hasExtendingTokensTypesProperty");o(K7,"hasExtendingTokensTypesMapProperty");o(SD,"isTokenType")});var zh,ZA=qe(()=>{zh={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var pn,lp,ki,cp=qe(()=>{QA();Tt();Gl();ZA();Gh();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(pn||(pn={}));lp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
125
- `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:zh,traceInitPerf:!1,skipValidations:!1};Object.freeze(lp);ki=function(){function e(t,n){var i=this;if(n===void 0&&(n=lp),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
126
- a boolean 2nd argument is no longer supported`);this.config=HA(lp,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===lp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=hD;else if(i.config.lineTerminatorCharacters===lp.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),li(t)?(a={modes:{}},a.modes[ys]=An(t),a[ys]=ys):(s=!1,a=hs(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(pD(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(dD(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},ve(a.modes,function(g,m){a.modes[m]=Ea(g,function(T){return xi(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(uD(g,l))}),ot(i.lexerDefinitionErrors)){Pa(g);var T;i.TRACE_INIT("analyzeTokenTypes",function(){T=fD(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=HA(i.emptyGroups,T.emptyGroups),i.hasCustom=T.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=T.canBeOptimized}})}),i.defaultMode=a.defaultMode,!ot(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=pe(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
124
+ `)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function FD(e){var t=pe(e,function(n){return Gr(n)&&n.length>0?n.charCodeAt(0):n});return t}function aS(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Ho(e){return e<Hl?e:ny[e]}function e9(){if(ot(ny)){ny=new Array(65536);for(var e=0;e<65536;e++)ny[e]=e>255?255+~~(e/255):e}}var sS,SD,Go,vs,ty,cS,U7,H7,LD,Hl,ny,oS=qe(()=>{sS=ie(qh());fp();Tt();bD();Yh();SD=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)}}(),Go="PATTERN",vs="defaultMode",ty="modes",cS=typeof new RegExp("(?:)").sticky=="boolean";o(PD,"analyzeTokenTypes");o(xD,"validatePatterns");o(M7,"validateRegExpPattern");o(k7,"findMissingPatterns");o(j7,"findInvalidPatterns");U7=/[^\\][\$]/;o($7,"findEndOfInputAnchor");o(B7,"findEmptyMatchRegExps");H7=/[^\\[][\^]|^\^/;o(G7,"findStartOfInputAnchor");o(W7,"findUnsupportedFlags");o(K7,"findDuplicatePatterns");o(X7,"findInvalidGroupType");o(Q7,"findModesThatDoNotExist");o(q7,"findUnreachablePatterns");o(z7,"testTokenType");o(Y7,"noMetaChar");o(ED,"addStartOfInput");o(AD,"addStickyFlag");o(CD,"performRuntimeChecks");o(OD,"performWarningRuntimeChecks");o(ID,"cloneEmptyGroups");o(ND,"isCustomPattern");o(J7,"isShortPattern");LD={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(RD,"checkLineBreaksIssues");o(Z7,"buildLineBreakIssueMessage");o(FD,"getCharCodes");o(aS,"addToMapOfArrays");Hl=256;o(Ho,"charCodeToOptimizedIndex");ny=[];o(e9,"initCharCodeToOptimizedIndexMap")});function Rc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function Gl(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Pa(e){var t=t9(e);n9(t),r9(t),i9(t),Te(t,function(n){n.isParent=n.categoryMatches.length>0})}function t9(e){for(var t=An(e),n=e,i=!0;i;){n=Sa(Ln(pe(n,function(a){return a.CATEGORIES})));var r=Lc(n,t);t=t.concat(r),ot(r)?i=!1:n=r}return t}function n9(e){Te(e,function(t){lS(t)||(VD[DD]=t,t.tokenTypeIdx=DD++),_D(t)&&!li(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),_D(t)||(t.CATEGORIES=[]),o9(t)||(t.categoryMatches=[]),a9(t)||(t.categoryMatchesMap={})})}function i9(e){Te(e,function(t){t.categoryMatches=[],Te(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(VD[i].tokenTypeIdx)})})}function r9(e){Te(e,function(t){wD([],t)})}function wD(e,t){Te(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),Te(t.CATEGORIES,function(n){var i=e.concat(t);wt(i,n)||wD(i,n)})}function lS(e){return Oe(e,"tokenTypeIdx")}function _D(e){return Oe(e,"CATEGORIES")}function o9(e){return Oe(e,"categoryMatches")}function a9(e){return Oe(e,"categoryMatchesMap")}function MD(e){return Oe(e,"tokenTypeIdx")}var DD,VD,Wl=qe(()=>{Tt();o(Rc,"tokenStructuredMatcher");o(Gl,"tokenStructuredMatcherNoCategories");DD=1,VD={};o(Pa,"augmentTokenTypes");o(t9,"expandCategories");o(n9,"assignTokenDefaultProps");o(i9,"assignCategoriesTokensProp");o(r9,"assignCategoriesMapProp");o(wD,"singleAssignCategoriesToksMap");o(lS,"hasShortKeyProperty");o(_D,"hasCategoriesProperty");o(o9,"hasExtendingTokensTypesProperty");o(a9,"hasExtendingTokensTypesMapProperty");o(MD,"isTokenType")});var iy,fS=qe(()=>{iy={buildUnableToPopLexerModeMessage:o(function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},"buildUnableToPopLexerModeMessage"),buildUnexpectedCharactersMessage:o(function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")},"buildUnexpectedCharactersMessage")}});var dn,up,ki,fp=qe(()=>{oS();Tt();Wl();fS();Yh();(function(e){e[e.MISSING_PATTERN=0]="MISSING_PATTERN",e[e.INVALID_PATTERN=1]="INVALID_PATTERN",e[e.EOI_ANCHOR_FOUND=2]="EOI_ANCHOR_FOUND",e[e.UNSUPPORTED_FLAGS_FOUND=3]="UNSUPPORTED_FLAGS_FOUND",e[e.DUPLICATE_PATTERNS_FOUND=4]="DUPLICATE_PATTERNS_FOUND",e[e.INVALID_GROUP_TYPE_FOUND=5]="INVALID_GROUP_TYPE_FOUND",e[e.PUSH_MODE_DOES_NOT_EXIST=6]="PUSH_MODE_DOES_NOT_EXIST",e[e.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE=7]="MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE",e[e.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY=8]="MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY",e[e.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST=9]="MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST",e[e.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED=10]="LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED",e[e.SOI_ANCHOR_FOUND=11]="SOI_ANCHOR_FOUND",e[e.EMPTY_MATCH_PATTERN=12]="EMPTY_MATCH_PATTERN",e[e.NO_LINE_BREAKS_FLAGS=13]="NO_LINE_BREAKS_FLAGS",e[e.UNREACHABLE_PATTERN=14]="UNREACHABLE_PATTERN",e[e.IDENTIFY_TERMINATOR=15]="IDENTIFY_TERMINATOR",e[e.CUSTOM_LINE_BREAK=16]="CUSTOM_LINE_BREAK"})(dn||(dn={}));up={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
125
+ `,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:iy,traceInitPerf:!1,skipValidations:!1};Object.freeze(up);ki=function(){function e(t,n){var i=this;if(n===void 0&&(n=up),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
126
+ a boolean 2nd argument is no longer supported`);this.config=eS(up,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===up.lineTerminatorsPattern)i.config.lineTerminatorsPattern=LD;else if(i.config.lineTerminatorCharacters===up.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),li(t)?(a={modes:{}},a.modes[vs]=An(t),a[vs]=vs):(s=!1,a=ys(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(CD(a,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(OD(a,i.trackStartLines,i.config.lineTerminatorCharacters))})),a.modes=a.modes?a.modes:{},Te(a.modes,function(g,m){a.modes[m]=Ea(g,function(v){return Ci(v)})});var l=Mi(a.modes);if(Te(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(xD(g,l))}),ot(i.lexerDefinitionErrors)){Pa(g);var v;i.TRACE_INIT("analyzeTokenTypes",function(){v=PD(g,{lineTerminatorCharacters:i.config.lineTerminatorCharacters,positionTracking:n.positionTracking,ensureOptimizations:n.ensureOptimizations,safeMode:n.safeMode,tracer:i.TRACE_INIT.bind(i)})}),i.patternIdxToConfig[m]=v.patternIdxToConfig,i.charCodeToPatternIdxToConfig[m]=v.charCodeToPatternIdxToConfig,i.emptyGroups=eS(i.emptyGroups,v.emptyGroups),i.hasCustom=v.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=v.canBeOptimized}})}),i.defaultMode=a.defaultMode,!ot(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=pe(i.lexerDefinitionErrors,function(g){return g.message}),p=u.join(`-----------------------
128
128
  `);throw new Error(`Errors detected in definition of Lexer:
129
- `+p)}ve(i.lexerDefinitionWarning,function(g){kh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(YA?(i.chopInput=GA,i.match=i.matchWithTest):(i.updateLastIndex=Mn,i.match=i.matchWithExec),s&&(i.handleModes=Mn),i.trackStartLines===!1&&(i.computeNewColumn=GA),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Mn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=un(i.canModeBeOptimized,function(m,T,A){return T===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!ot(g))throw Error("Lexer Modes: < "+g.join(", ")+` > cannot be optimized.
129
+ `+p)}Te(i.lexerDefinitionWarning,function(g){Wh(g.message)}),i.TRACE_INIT("Choosing sub-methods implementations",function(){if(cS?(i.chopInput=tS,i.match=i.matchWithTest):(i.updateLastIndex=Mn,i.match=i.matchWithExec),s&&(i.handleModes=Mn),i.trackStartLines===!1&&(i.computeNewColumn=tS),i.trackEndLines===!1&&(i.updateTokenEndLineColumnLocation=Mn),/full/i.test(i.config.positionTracking))i.createTokenInstance=i.createFullToken;else if(/onlyStart/i.test(i.config.positionTracking))i.createTokenInstance=i.createStartOnlyToken;else if(/onlyOffset/i.test(i.config.positionTracking))i.createTokenInstance=i.createOffsetOnlyToken;else throw Error('Invalid <positionTracking> config option: "'+i.config.positionTracking+'"');i.hasCustom?(i.addToken=i.addTokenUsingPush,i.handlePayload=i.handlePayloadWithCustom):(i.addToken=i.addTokenUsingMemberAccess,i.handlePayload=i.handlePayloadNoCustom)}),i.TRACE_INIT("Failed Optimization Warnings",function(){var g=pn(i.canModeBeOptimized,function(m,v,A){return v===!1&&m.push(A),m},[]);if(n.ensureOptimizations&&!ot(g))throw Error("Lexer Modes: < "+g.join(", ")+` > cannot be optimized.
130
130
  Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
131
- Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){nD()}),i.TRACE_INIT("toFastProperties",function(){jh(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!ot(this.lexerDefinitionErrors)){var i=pe(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(){hD()}),i.TRACE_INIT("toFastProperties",function(){Kh(i)})})}return o(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!ot(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,b,O,F,j,K,U=t,ae=U.length,Z=0,re=0,Pe=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Pe),ut=[],yt=this.trackStartLines?1:void 0,Ue=this.trackStartLines?1:void 0,an=gD(this.emptyGroups),Gn=this.trackStartLines,en=this.config.lineTerminatorsPattern,Lt=0,Re=[],Oi=[],It=[],Mt=[];Object.freeze(Mt);var sn=void 0;function Hi(){return Re}o(Hi,"getPossiblePatternsSlow");function Fe(Gt){var zo=Ho(Gt),Gi=Oi[zo];return Gi===void 0?Mt:Gi}o(Fe,"getPossiblePatternsOptimized");var Wn=o(function(Gt){if(It.length===1&&Gt.tokenType.PUSH_MODE===void 0){var zo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Gt);ut.push({offset:Gt.startOffset,line:Gt.startLine!==void 0?Gt.startLine:void 0,column:Gt.startColumn!==void 0?Gt.startColumn:void 0,length:Gt.image.length,message:zo})}else{It.pop();var Gi=Vh(It);Re=i.patternIdxToConfig[Gi],Oi=i.charCodeToPatternIdxToConfig[Gi],Lt=Re.length;var Rf=i.canModeBeOptimized[Gi]&&i.config.safeMode===!1;Oi&&Rf?sn=Fe:sn=Hi}},"pop_mode");function Or(Gt){It.push(Gt),Oi=this.charCodeToPatternIdxToConfig[Gt],Re=this.patternIdxToConfig[Gt],Lt=Re.length,Lt=Re.length;var zo=this.canModeBeOptimized[Gt]&&this.config.safeMode===!1;Oi&&zo?sn=Fe:sn=Hi}o(Or,"push_mode"),Or.call(this,n);for(var at;Z<ae;){u=null;var I=U.charCodeAt(Z),S=sn(I),z=S.length;for(r=0;r<z;r++){at=S[r];var V=at.pattern;p=null;var _e=at.short;if(_e!==!1?I===_e&&(u=V):at.isCustom===!0?(K=V.exec(U,Z,D,an),K!==null?(u=K[0],K.payload!==void 0&&(p=K.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=at.longerAlt,l!==void 0){var Rt=Re[l],Qe=Rt.pattern;g=null,Rt.isCustom===!0?(K=Qe.exec(U,Z,D,an),K!==null?(s=K[0],K.payload!==void 0&&(g=K.payload)):s=null):(this.updateLastIndex(Qe,Z),s=this.match(Qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,at=Rt)}break}}if(u!==null){if(m=u.length,T=at.group,T!==void 0&&(A=at.tokenTypeIdx,b=this.createTokenInstance(u,Z,A,at.tokenType,yt,Ue,m),this.handlePayload(b,p),T===!1?re=this.addToken(D,re,b):an[T].push(b)),t=this.chopInput(t,m),Z=Z+m,Ue=this.computeNewColumn(Ue,m),Gn===!0&&at.canLineTerminator===!0){var kt=0,vn=void 0,cn=void 0;en.lastIndex=0;do vn=en.test(u),vn===!0&&(cn=en.lastIndex-1,kt++);while(vn===!0);kt!==0&&(yt=yt+kt,Ue=m-cn,this.updateTokenEndLineColumnLocation(b,T,cn,kt,yt,Ue,m))}this.handleModes(at,Wn,Or,b)}else{for(var Ht=Z,ti=yt,ar=Ue,gn=!1;!gn&&Z<ae;)for(F=U.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Lt;a++){var hi=Re[a],V=hi.pattern,_e=hi.short;if(_e!==!1?U.charCodeAt(Z)===_e&&(gn=!0):hi.isCustom===!0?gn=V.exec(U,Z,D,an)!==null:(this.updateLastIndex(V,Z),gn=V.exec(t)!==null),gn===!0)break}O=Z-Ht,j=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(U,Ht,O,ti,ar),ut.push({offset:Ht,line:ti,column:ar,length:O,message:j})}}return this.hasCustom||(D.length=re),{tokens:D,groups:an,errors:ut}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Uh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e.SKIPPED="This marks a skipped Token pattern, this means each token identified by it willbe consumed and then thrown into oblivion, this can be used to for example to completely ignore whitespace.",e.NA=/NOT_APPLICABLE/,e}()});function Wo(e){return eS(e)?e.LABEL:e.name}function FD(e){return e.name}function eS(e){return Gr(e.LABEL)&&e.LABEL!==""}function fp(e){return Q7(e)}function Q7(e){var t=e.pattern,n={};if(n.name=e.name,xi(t)||(n.PATTERN=t),Ie(e,X7))throw`The parent property is no longer supported.
134
- See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ie(e,PD)&&(n.CATEGORIES=e[PD]),Pa([n]),Ie(e,CD)&&(n.LABEL=e[CD]),Ie(e,xD)&&(n.GROUP=e[xD]),Ie(e,OD)&&(n.POP_MODE=e[OD]),Ie(e,ID)&&(n.PUSH_MODE=e[ID]),Ie(e,ND)&&(n.LONGER_ALT=e[ND]),Ie(e,LD)&&(n.LINE_BREAKS=e[LD]),Ie(e,RD)&&(n.START_CHARS_HINT=e[RD]),n}function vs(e,t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:a,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function DD(e,t){return Lc(e,t)}var X7,PD,CD,xD,ID,OD,ND,LD,RD,Kr,Ts=qe(()=>{Tt();cp();Gl();o(Wo,"tokenLabel");o(FD,"tokenName");o(eS,"hasTokenLabel");X7="parent",PD="categories",CD="label",xD="group",ID="push_mode",OD="pop_mode",ND="longer_alt",LD="line_breaks",RD="start_chars_hint";o(fp,"createToken");o(Q7,"createTokenInternal");Kr=fp({name:"EOF",pattern:ki.NA});Pa([Kr]);o(vs,"createTokenInstance");o(DD,"tokenMatcher")});function Yh(e){return pe(e,Wl)}function Wl(e){function t(r){return pe(r,Wl)}if(o(t,"convertDefinition"),e instanceof rn)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Jt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof on)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Rn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Wl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Wl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Nt)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Pn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof ht){var n={type:"Terminal",name:e.terminalType.name,label:Wo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=mo(i)?i.source:i),n}else{if(e instanceof Er)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Ca,ho,rn,Er,Jt,on,Rn,Fn,Nt,Sn,Pn,ht,ji=qe(()=>{Tt();Ts();Ca=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ho=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}(),rn=function(e){Ca(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,br(i,Tr(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}(ho),Er=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(ho),Jt=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(ho),on=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(ho),Rn=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(ho),Fn=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(ho),Nt=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(ho),Sn=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(ho),Pn=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,br(i,Tr(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}(ho),ht=function(){function e(t){this.idx=1,br(this,Tr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(Yh,"serializeGrammar");o(Wl,"serializeProduction")});function _D(e,t,n){var i=[new on({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Rc,Jh=qe(()=>{Tt();ji();Rc=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=wn(t.definition,a+1);if(r instanceof rn)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Jt)i.walkFlat(r,s,n);else if(r instanceof on)i.walkOption(r,s,n);else if(r instanceof Rn)i.walkAtLeastOne(r,s,n);else if(r instanceof Fn)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=_D(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new on({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=_D(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);ve(t.definition,function(s){var l=new Jt({definition:[s]});r.walk(l,a)})},e}();o(_D,"restForRepetitionWithSeparator")});var Xr,Kl=qe(()=>{ji();Xr=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 Rn:return this.visitRepetitionMandatory(n);case Fn: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 Er:return this.visitRule(n);default:throw Error("non exhaustive match")}},e.prototype.visitNonTerminal=function(t){},e.prototype.visitAlternative=function(t){},e.prototype.visitOption=function(t){},e.prototype.visitRepetition=function(t){},e.prototype.visitRepetitionMandatory=function(t){},e.prototype.visitRepetitionMandatoryWithSeparator=function(t){},e.prototype.visitRepetitionWithSeparator=function(t){},e.prototype.visitAlternation=function(t){},e.prototype.visitTerminal=function(t){},e.prototype.visitRule=function(t){},e}()});function VD(e){return e instanceof Jt||e instanceof on||e instanceof Nt||e instanceof Rn||e instanceof Fn||e instanceof Sn||e instanceof ht||e instanceof Er}function Xl(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 Xl(i,t)}):e instanceof rn&&Vt(t,e)?!1:e instanceof ho?(e instanceof rn&&t.push(e),fi(e.definition,function(i){return Xl(i,t)})):!1}function wD(e){return e instanceof Pn}function Ar(e){if(e instanceof rn)return"SUBRULE";if(e instanceof on)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof Rn)return"AT_LEAST_ONE";if(e instanceof Fn)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 MD(e){Zh.reset(),e.accept(Zh);var t=Zh.dslMethods;return Zh.reset(),t}var q7,tS,Zh,Ql=qe(()=>{Tt();ji();Kl();q7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(VD,"isSequenceProd");o(Xl,"isOptionalProd");o(wD,"isBranchingProd");o(Ar,"getProductionDslName");tS=function(e){q7(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.separator="-",n.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]},n}return o(t,"DslMethodsCollectorVisitor"),t.prototype.reset=function(){this.dslMethods={option:[],alternation:[],repetition:[],repetitionWithSeparator:[],repetitionMandatory:[],repetitionMandatoryWithSeparator:[]}},t.prototype.visitTerminal=function(n){var i=n.terminalType.name+this.separator+"Terminal";Ie(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ie(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}(Xr),Zh=new tS;o(MD,"collectMethods")});function Fc(e){if(e instanceof rn)return Fc(e.referencedRule);if(e instanceof ht)return J7(e);if(VD(e))return z7(e);if(wD(e))return Y7(e);throw Error("non exhaustive match")}function z7(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Xl(a),t=t.concat(Fc(a)),i=i+1,r=n.length>i;return ip(t)}function Y7(e){var t=pe(e.definition,function(n){return Fc(n)});return ip(Ln(t))}function J7(e){return[e.terminalType]}var nS=qe(()=>{Tt();ji();Ql();o(Fc,"first");o(z7,"firstForSequence");o(Y7,"firstForBranching");o(J7,"firstForTerminal")});var ey,iS=qe(()=>{ey="_~IN~_"});function kD(e){var t={};return ve(e,function(n){var i=new e9(n).startWalking();br(t,i)}),t}function t9(e,t){return e.name+t+ey}var Z7,e9,jD=qe(()=>{Jh();nS();Tt();iS();ji();Z7=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),e9=function(e){Z7(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return o(t,"ResyncFollowsWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.follows},t.prototype.walkTerminal=function(n,i,r){},t.prototype.walkProdRef=function(n,i,r){var a=t9(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Jt({definition:s}),u=Fc(l);this.follows[a]=u},t}(Rc);o(kD,"computeAllProdsFollows");o(t9,"buildBetweenProdsFollowPrefix")});var up,ty,bs,pp=qe(()=>{Ts();Tt();Tt();ji();Ql();up={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=eS(t),s=a?"--> "+Wo(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=Ci(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 Wo(b)}).join(", ")+"]"}),m=pe(g,function(A,b){return" "+(b+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,v,A,b,I,F,j,K,U=t,ae=U.length,Z=0,re=0,Pe=this.hasCustom?0:Math.floor(t.length/10),D=new Array(Pe),ut=[],yt=this.trackStartLines?1:void 0,Ue=this.trackStartLines?1:void 0,sn=ID(this.emptyGroups),Gn=this.trackStartLines,tn=this.config.lineTerminatorsPattern,Rt=0,Re=[],Ii=[],Ot=[],kt=[];Object.freeze(kt);var cn=void 0;function Hi(){return Re}o(Hi,"getPossiblePatternsSlow");function Fe(Wt){var zo=Ho(Wt),Gi=Ii[zo];return Gi===void 0?kt:Gi}o(Fe,"getPossiblePatternsOptimized");var Wn=o(function(Wt){if(Ot.length===1&&Wt.tokenType.PUSH_MODE===void 0){var zo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Wt);ut.push({offset:Wt.startOffset,line:Wt.startLine!==void 0?Wt.startLine:void 0,column:Wt.startColumn!==void 0?Wt.startColumn:void 0,length:Wt.image.length,message:zo})}else{Ot.pop();var Gi=Bh(Ot);Re=i.patternIdxToConfig[Gi],Ii=i.charCodeToPatternIdxToConfig[Gi],Rt=Re.length;var Df=i.canModeBeOptimized[Gi]&&i.config.safeMode===!1;Ii&&Df?cn=Fe:cn=Hi}},"pop_mode");function Ir(Wt){Ot.push(Wt),Ii=this.charCodeToPatternIdxToConfig[Wt],Re=this.patternIdxToConfig[Wt],Rt=Re.length,Rt=Re.length;var zo=this.canModeBeOptimized[Wt]&&this.config.safeMode===!1;Ii&&zo?cn=Fe:cn=Hi}o(Ir,"push_mode"),Ir.call(this,n);for(var at;Z<ae;){u=null;var O=U.charCodeAt(Z),S=cn(O),z=S.length;for(r=0;r<z;r++){at=S[r];var V=at.pattern;p=null;var _e=at.short;if(_e!==!1?O===_e&&(u=V):at.isCustom===!0?(K=V.exec(U,Z,D,sn),K!==null?(u=K[0],K.payload!==void 0&&(p=K.payload)):u=null):(this.updateLastIndex(V,Z),u=this.match(V,t,Z)),u!==null){if(l=at.longerAlt,l!==void 0){var Ft=Re[l],Qe=Ft.pattern;g=null,Ft.isCustom===!0?(K=Qe.exec(U,Z,D,sn),K!==null?(s=K[0],K.payload!==void 0&&(g=K.payload)):s=null):(this.updateLastIndex(Qe,Z),s=this.match(Qe,t,Z)),s&&s.length>u.length&&(u=s,p=g,at=Ft)}break}}if(u!==null){if(m=u.length,v=at.group,v!==void 0&&(A=at.tokenTypeIdx,b=this.createTokenInstance(u,Z,A,at.tokenType,yt,Ue,m),this.handlePayload(b,p),v===!1?re=this.addToken(D,re,b):sn[v].push(b)),t=this.chopInput(t,m),Z=Z+m,Ue=this.computeNewColumn(Ue,m),Gn===!0&&at.canLineTerminator===!0){var jt=0,vn=void 0,ln=void 0;tn.lastIndex=0;do vn=tn.test(u),vn===!0&&(ln=tn.lastIndex-1,jt++);while(vn===!0);jt!==0&&(yt=yt+jt,Ue=m-ln,this.updateTokenEndLineColumnLocation(b,v,ln,jt,yt,Ue,m))}this.handleModes(at,Wn,Ir,b)}else{for(var Gt=Z,ti=yt,ar=Ue,gn=!1;!gn&&Z<ae;)for(F=U.charCodeAt(Z),t=this.chopInput(t,1),Z++,a=0;a<Rt;a++){var hi=Re[a],V=hi.pattern,_e=hi.short;if(_e!==!1?U.charCodeAt(Z)===_e&&(gn=!0):hi.isCustom===!0?gn=V.exec(U,Z,D,sn)!==null:(this.updateLastIndex(V,Z),gn=V.exec(t)!==null),gn===!0)break}I=Z-Gt,j=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(U,Gt,I,ti,ar),ut.push({offset:Gt,line:ti,column:ar,length:I,message:j})}}return this.hasCustom||(D.length=re),{tokens:D,groups:sn,errors:ut}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var a=t.push;n(r),a!==void 0&&i.call(this,a)}else t.push!==void 0&&i.call(this,t.push)},e.prototype.chopInput=function(t,n){return t.substring(n)},e.prototype.updateLastIndex=function(t,n){t.lastIndex=n},e.prototype.updateTokenEndLineColumnLocation=function(t,n,i,r,a,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=a+p,t.endColumn=s-1+-p))},e.prototype.computeNewColumn=function(t,n){return t+n},e.prototype.createTokenInstance=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return null},e.prototype.createOffsetOnlyToken=function(t,n,i,r){return{image:t,startOffset:n,tokenTypeIdx:i,tokenType:r}},e.prototype.createStartOnlyToken=function(t,n,i,r,a,s){return{image:t,startOffset:n,startLine:a,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,a,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:a,endLine:a,startColumn:s,endColumn:s+l-1,tokenTypeIdx:i,tokenType:r}},e.prototype.addToken=function(t,n,i){return 666},e.prototype.addTokenUsingPush=function(t,n,i){return t.push(i),n},e.prototype.addTokenUsingMemberAccess=function(t,n,i){return t[n]=i,n++,n},e.prototype.handlePayload=function(t,n){},e.prototype.handlePayloadNoCustom=function(t,n){},e.prototype.handlePayloadWithCustom=function(t,n){n!==null&&(t.payload=n)},e.prototype.match=function(t,n,i){return null},e.prototype.matchWithTest=function(t,n,i){var r=t.test(n);return r===!0?n.substring(i,t.lastIndex):null},e.prototype.matchWithExec=function(t,n){var i=t.exec(n);return i!==null?i[0]:i},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Xh(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 Wo(e){return uS(e)?e.LABEL:e.name}function KD(e){return e.name}function uS(e){return Gr(e.LABEL)&&e.LABEL!==""}function pp(e){return c9(e)}function c9(e){var t=e.pattern,n={};if(n.name=e.name,Ci(t)||(n.PATTERN=t),Oe(e,s9))throw`The parent property is no longer supported.
134
+ See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Oe(e,kD)&&(n.CATEGORIES=e[kD]),Pa([n]),Oe(e,jD)&&(n.LABEL=e[jD]),Oe(e,UD)&&(n.GROUP=e[UD]),Oe(e,BD)&&(n.POP_MODE=e[BD]),Oe(e,$D)&&(n.PUSH_MODE=e[$D]),Oe(e,HD)&&(n.LONGER_ALT=e[HD]),Oe(e,GD)&&(n.LINE_BREAKS=e[GD]),Oe(e,WD)&&(n.START_CHARS_HINT=e[WD]),n}function Ts(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 XD(e,t){return Rc(e,t)}var s9,kD,jD,UD,$D,BD,HD,GD,WD,Kr,bs=qe(()=>{Tt();fp();Wl();o(Wo,"tokenLabel");o(KD,"tokenName");o(uS,"hasTokenLabel");s9="parent",kD="categories",jD="label",UD="group",$D="push_mode",BD="pop_mode",HD="longer_alt",GD="line_breaks",WD="start_chars_hint";o(pp,"createToken");o(c9,"createTokenInternal");Kr=pp({name:"EOF",pattern:ki.NA});Pa([Kr]);o(Ts,"createTokenInstance");o(XD,"tokenMatcher")});function ry(e){return pe(e,Kl)}function Kl(e){function t(r){return pe(r,Kl)}if(o(t,"convertDefinition"),e instanceof on)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Zt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof an)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof Rn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Fn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Kl(new ht({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Sn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Kl(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:Wo(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=mo(i)?i.source:i),n}else{if(e instanceof Er)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var xa,ho,on,Er,Zt,an,Rn,Fn,Nt,Sn,Pn,ht,ji=qe(()=>{Tt();bs();xa=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),ho=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),Te(this.definition,function(n){n.accept(t)})},e}(),on=function(e){xa(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,br(i,Tr(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}(ho),Er=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Rule"),t}(ho),Zt=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Alternative"),t}(ho),an=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Option"),t}(ho),Rn=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatory"),t}(ho),Fn=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionMandatoryWithSeparator"),t}(ho),Nt=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"Repetition"),t}(ho),Sn=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,br(i,Tr(n,function(r){return r!==void 0})),i}return o(t,"RepetitionWithSeparator"),t}(ho),Pn=function(e){xa(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,br(i,Tr(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}(ho),ht=function(){function e(t){this.idx=1,br(this,Tr(t,function(n){return n!==void 0}))}return o(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();o(ry,"serializeGrammar");o(Kl,"serializeProduction")});function QD(e,t,n){var i=[new an({definition:[new ht({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Fc,oy=qe(()=>{Tt();ji();Fc=function(){function e(){}return o(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),Te(t.definition,function(r,a){var s=wn(t.definition,a+1);if(r instanceof on)i.walkProdRef(r,s,n);else if(r instanceof ht)i.walkTerminal(r,s,n);else if(r instanceof Zt)i.walkFlat(r,s,n);else if(r instanceof an)i.walkOption(r,s,n);else if(r instanceof Rn)i.walkAtLeastOne(r,s,n);else if(r instanceof Fn)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 an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=QD(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new an({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=QD(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,a=n.concat(i);Te(t.definition,function(s){var l=new Zt({definition:[s]});r.walk(l,a)})},e}();o(QD,"restForRepetitionWithSeparator")});var Xr,Xl=qe(()=>{ji();Xr=function(){function e(){}return o(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case on:return this.visitNonTerminal(n);case Zt:return this.visitAlternative(n);case an:return this.visitOption(n);case Rn:return this.visitRepetitionMandatory(n);case Fn: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 Er: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 qD(e){return e instanceof Zt||e instanceof an||e instanceof Nt||e instanceof Rn||e instanceof Fn||e instanceof Sn||e instanceof ht||e instanceof Er}function Ql(e,t){t===void 0&&(t=[]);var n=e instanceof an||e instanceof Nt||e instanceof Sn;return n?!0:e instanceof Pn?Gh(e.definition,function(i){return Ql(i,t)}):e instanceof on&&wt(t,e)?!1:e instanceof ho?(e instanceof on&&t.push(e),fi(e.definition,function(i){return Ql(i,t)})):!1}function zD(e){return e instanceof Pn}function Ar(e){if(e instanceof on)return"SUBRULE";if(e instanceof an)return"OPTION";if(e instanceof Pn)return"OR";if(e instanceof Rn)return"AT_LEAST_ONE";if(e instanceof Fn)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 YD(e){ay.reset(),e.accept(ay);var t=ay.dslMethods;return ay.reset(),t}var l9,pS,ay,ql=qe(()=>{Tt();ji();Xl();l9=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(qD,"isSequenceProd");o(Ql,"isOptionalProd");o(zD,"isBranchingProd");o(Ar,"getProductionDslName");pS=function(e){l9(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}(Xr),ay=new pS;o(YD,"collectMethods")});function Dc(e){if(e instanceof on)return Dc(e.referencedRule);if(e instanceof ht)return p9(e);if(qD(e))return f9(e);if(zD(e))return u9(e);throw Error("non exhaustive match")}function f9(e){for(var t=[],n=e.definition,i=0,r=n.length>i,a,s=!0;r&&s;)a=n[i],s=Ql(a),t=t.concat(Dc(a)),i=i+1,r=n.length>i;return op(t)}function u9(e){var t=pe(e.definition,function(n){return Dc(n)});return op(Ln(t))}function p9(e){return[e.terminalType]}var dS=qe(()=>{Tt();ji();ql();o(Dc,"first");o(f9,"firstForSequence");o(u9,"firstForBranching");o(p9,"firstForTerminal")});var sy,gS=qe(()=>{sy="_~IN~_"});function JD(e){var t={};return Te(e,function(n){var i=new g9(n).startWalking();br(t,i)}),t}function m9(e,t){return e.name+t+sy}var d9,g9,ZD=qe(()=>{oy();dS();Tt();gS();ji();d9=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)}}(),g9=function(e){d9(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=m9(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Zt({definition:s}),u=Dc(l);this.follows[a]=u},t}(Fc);o(JD,"computeAllProdsFollows");o(m9,"buildBetweenProdsFollowPrefix")});var dp,cy,Es,gp=qe(()=>{bs();Tt();Tt();ji();ql();dp={buildMismatchTokenMessage:o(function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,a=uS(t),s=a?"--> "+Wo(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=pn(t,function(A,b){return A.concat(b)},[]),g=pe(p,function(A){return"["+pe(A,function(b){return Wo(b)}).join(", ")+"]"}),m=pe(g,function(A,b){return" "+(b+1)+". "+A}),v=`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=Ci(n).image,l=`
137
+ `);return s+v+u},"buildNoViableAltMessage"),buildEarlyExitMessage:o(function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,a="Expecting: ",s=xi(n).image,l=`
138
138
  but found: '`+s+"'";if(i)return a+i+l;var u=pe(t,function(g){return"["+pe(g,function(m){return Wo(m)}).join(",")+"]"}),p=`expecting at least one iteration which starts with one of these possible Token sequences::
139
- `+("<"+u.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(up);ty={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")},bs={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=Ci(t),a=r.idx,s=Ar(r),l=n(r),u=a>0,p="->"+s+(u?a:"")+"<- "+(l?"with argument: ->"+l+"<-":"")+`
139
+ `+("<"+u.join(" ,")+">");return a+p+l},"buildEarlyExitMessage")};Object.freeze(dp);cy={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")},Es={buildDuplicateFoundError:o(function(e,t){function n(g){return g instanceof ht?g.terminalType.name:g instanceof on?g.nonTerminalName:""}o(n,"getExtraProductionArgument");var i=e.name,r=xi(t),a=r.idx,s=Ar(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,`
@@ -161,33 +161,33 @@ This could lead to an infinite loop.`;return n},"buildEmptyRepetitionError"),bui
161
161
  `)+(`without consuming any Tokens. The grammar path that causes this is:
162
162
  `+i+`
163
163
  `)+` To fix this refactor your grammar to remove the left recursion.
164
- see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},"buildLeftRecursionError"),buildInvalidRuleNameError:o(function(e){return"deprecated"},"buildInvalidRuleNameError"),buildDuplicateRuleNameError:o(function(e){var t;e.topLevelRule instanceof Er?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n},"buildDuplicateRuleNameError")}});function UD(e,t){var n=new i9(e,t);return n.resolveRefs(),n.errors}var n9,i9,$D=qe(()=>{Sr();Tt();Kl();n9=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(UD,"resolveGrammar");i9=function(e){n9(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:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Xr)});function iy(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=iy(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Jt)return s(l.definition);if(l instanceof rn)return s(l.definition);if(l instanceof on)i=s(l.definition);else if(l instanceof Rn){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 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 ve(l.definition,function(p){ot(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function ry(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var T=m.pop();if(T===s){l&&Vh(m).idx<=p&&m.pop();continue}var A=T.def,b=T.idx,O=T.ruleStack,F=T.occurrenceStack;if(!ot(A)){var j=A[0];if(j===r){var K={idx:b,def:wn(A),ruleStack:ms(O),occurrenceStack:ms(F)};m.push(K)}else if(j instanceof ht)if(b<u-1){var U=b+1,ae=t[U];if(n(ae,j.terminalType)){var K={idx:U,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(K)}}else if(b===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:O,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(j instanceof rn){var Z=An(O);Z.push(j.nonTerminalName);var re=An(F);re.push(j.idx);var K={idx:b,def:j.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(K)}else if(j instanceof on){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var D={idx:b,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Rn){var ut=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(K)}else if(j instanceof Fn){var Ue=new ht({terminalType:j.separator}),ut=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(K)}else if(j instanceof Sn){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var Ue=new ht({terminalType:j.separator}),an=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([an],wn(A)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Nt){var Pe={idx:b,def:wn(A),ruleStack:O,occurrenceStack:F};m.push(Pe),m.push(s);var an=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([an],wn(A)),D={idx:b,def:yt,ruleStack:O,occurrenceStack:F};m.push(D)}else if(j instanceof Pn)for(var Gn=j.definition.length-1;Gn>=0;Gn--){var en=j.definition[Gn],Lt={idx:b,def:en.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F};m.push(Lt),m.push(s)}else if(j instanceof Jt)m.push({idx:b,def:j.definition.concat(wn(A)),ruleStack:O,occurrenceStack:F});else if(j instanceof Er)m.push(o9(j,b,O,F));else throw Error("non exhaustive match")}}return g}function o9(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 Dc,r9,BD,ny,HD,rS,GD,oS,dp=qe(()=>{Jh();Tt();nS();ji();Dc=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),r9=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topProd=n,r.path=i,r.possibleTokTypes=[],r.nextProductionName="",r.nextProductionOccurrence=0,r.found=!1,r.isAtEndOfPath=!1,r}return o(t,"AbstractNextPossibleTokensWalker"),t.prototype.startWalking=function(){if(this.found=!1,this.path.ruleStack[0]!==this.topProd.name)throw Error("The path does not start with the walker's top Rule!");return this.ruleStack=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(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Rc),BD=function(e){Dc(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Jt({definition:a});this.possibleTokTypes=Fc(s),this.found=!0}},t}(r9),ny=function(e){Dc(t,e);function t(n,i){var r=e.call(this)||this;return r.topRule=n,r.occurrence=i,r.result={token:void 0,occurrence:void 0,isEndOfRule:void 0},r}return o(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Rc),HD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}(ny),rS=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}(ny),GD=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}(ny),oS=function(e){Dc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return o(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var a=Ci(i.concat(r));this.result.isEndOfRule=a===void 0,a instanceof ht&&(this.result.token=a.terminalType,this.result.occurrence=a.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}(ny);o(iy,"possiblePathsFrom");o(ry,"nextPossibleTokensAfter");o(o9,"expandTopLevelRule")});function XD(e){if(e instanceof on)return wt.OPTION;if(e instanceof Nt)return wt.REPETITION;if(e instanceof Rn)return wt.REPETITION_MANDATORY;if(e instanceof Fn)return wt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return wt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return wt.ALTERNATION;throw Error("non exhaustive match")}function QD(e,t,n,i,r,a){var s=gp(e,t,n),l=t_(s)?Hl:Lc;return a(s,i,l,r)}function qD(e,t,n,i,r,a){var s=mp(e,t,r,n),l=t_(s)?Hl:Lc;return a(s[0],l,i)}function zD(e,t,n,i){var r=e.length,a=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function(U){return U.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],F=O.length,j=0;j<F;j++){var K=this.LA(j+1);if(n(K,O[j])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Ln(u)}),l=un(s,function(u,p,g){return ve(p,function(m){Ie(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),ve(m.categoryMatches,function(T){Ie(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 YD(e,t,n){var i=fi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=un(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,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 WD(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function aS(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],a=0;a<t.length;a++){var s=t[a];r.push(s+"_"+i.tokenTypeIdx);for(var l=0;l<i.categoryMatches.length;l++){var u="_"+i.categoryMatches[l];r.push(s+u)}}t=r}return t}function s9(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],a=0;a<t.length;a++){var s=t[a];if(r[s]===!0)return!1}return!0}function ZD(e,t){for(var n=pe(e,function(g){return iy([g],1)}),i=WD(n.length),r=pe(n,function(g){var m={};return ve(g,function(T){var A=aS(T.partialPath);ve(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=WD(l.length);for(var u=o(function(g){for(var m=l[g],T=0;T<m.length;T++){var A=m[T].partialPath,b=m[T].suffixDef,O=aS(A),F=s9(r,O,g);if(F||ot(b)||A.length===t){var j=i[g];if(oy(j,A)===!1){j.push(A);for(var K=0;K<O.length;K++){var U=O[K];r[g][U]=!0}}}else{var ae=iy(b,s+1,A);a[g]=a[g].concat(ae),ve(ae,function(Z){var re=aS(Z.partialPath);ve(re,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function gp(e,t,n,i){var r=new JD(e,wt.ALTERNATION,i);return t.accept(r),ZD(r.result,n)}function mp(e,t,n,i){var r=new JD(e,n);t.accept(r);var a=r.result,s=new a9(t,e,n),l=s.startWalking(),u=new Jt({definition:a}),p=new Jt({definition:l});return ZD([u,p],i)}function oy(e,t){e:for(var n=0;n<e.length;n++){var i=e[n];if(i.length===t.length){for(var r=0;r<i.length;r++){var a=t[r],s=i[r],l=a===s||s.categoryMatchesMap[a.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function e_(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function t_(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return ot(i.categoryMatches)})})})}var KD,wt,a9,JD,hp=qe(()=>{Tt();dp();Jh();Gl();ji();Kl();KD=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(wt||(wt={}));o(XD,"getProdType");o(QD,"buildLookaheadFuncForOr");o(qD,"buildLookaheadFuncForOptionalProd");o(zD,"buildAlternativesLookAheadFunc");o(YD,"buildSingleAlternativeLookaheadFunction");a9=function(e){KD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,wt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,wt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Rc),JD=function(e){KD(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,wt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,wt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,wt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,wt.ALTERNATION)},t}(Xr);o(WD,"initializeArrayOfArrays");o(aS,"pathToHashKeys");o(s9,"isUniquePrefixHash");o(ZD,"lookAheadSequenceFromAlternatives");o(gp,"getLookaheadPathsForOr");o(mp,"getLookaheadPathsForOptionalProd");o(oy,"containsPath");o(e_,"isStrictPrefixOfPath");o(t_,"areTokenCategoriesNotUsed")});function n_(e,t,n,i,r){var a=pe(e,function(A){return c9(A,i)}),s=pe(e,function(A){return o_(A,A,i)}),l=[],u=[],p=[];fi(s,ot)&&(l=pe(e,function(A){return p9(A,i)}),u=pe(e,function(A){return d9(A,t,i)}),p=h9(e,t,i));var g=T9(e,n,i),m=pe(e,function(A){return m9(A,i)}),T=pe(e,function(A){return u9(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,T))}function c9(e,t){var n=new f9;e.accept(n);var i=n.allProductions,r=z1(i,l9),a=Tr(r,function(l){return l.length>1}),s=pe(Vn(a),function(l){var u=Ci(l),p=t.buildDuplicateFoundError(e,l),g=Ar(u),m={message:p,type:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},T=i_(u);return T&&(m.parameter=T),m});return s}function l9(e){return Ar(e)+"_#_"+e.idx+"_#_"+i_(e)}function i_(e){return e instanceof ht?e.terminalType.name:e instanceof rn?e.nonTerminalName:""}function u9(e,t,n,i){var r=[],a=un(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function r_(e,t,n){var i=[],r;return Vt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function o_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=ay(t.definition);if(ot(a))return[];var s=e.name,l=Vt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=Nc(a,i.concat([e])),p=pe(u,function(g){var m=An(i);return m.push(g),o_(e,g,n,m)});return r.concat(Ln(p))}function ay(e){var t=[];if(ot(e))return t;var n=Ci(e);if(n instanceof rn)t.push(n.referencedRule);else if(n instanceof Jt||n instanceof on||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(ay(n.definition));else if(n instanceof Pn)t=Ln(pe(n.definition,function(s){return ay(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Xl(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(ay(a))}else return t}function p9(e,t){var n=new cS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){var l=ms(s.definition),u=pe(l,function(p,g){var m=ry([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Sa(u))},[]);return r}function d9(e,t,n){var i=new cS;e.accept(i);var r=i.alternations;r=Ea(r,function(s){return s.ignoreAmbiguities===!0});var a=un(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=gp(u,e,p,l),m=y9(g,l,e,n),T=v9(g,l,e,n);return s.concat(m,T)},[]);return a}function m9(e,t){var n=new cS;e.accept(n);var i=n.alternations,r=un(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function h9(e,t,n){var i=[];return ve(e,function(r){var a=new g9;r.accept(a);var s=a.allProductions;ve(s,function(l){var u=XD(l),p=l.maxLookahead||t,g=l.idx,m=mp(g,r,u,p),T=m[0];if(ot(Ln(T))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function y9(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&&oy(T,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!oy(r,g)&&(r.push(g),l.push({alts:m,path:g}))}),l},[]),s=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:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function v9(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=Q1(a,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&e_(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:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function T9(e,t,n){var i=[],r=pe(t,function(a){return a.name});return ve(e,function(a){var s=a.name;if(Vt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var sS,f9,cS,g9,lS=qe(()=>{Tt();Tt();Sr();Ql();hp();dp();ji();Kl();sS=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();o(n_,"validateGrammar");o(c9,"validateDuplicateProductions");o(l9,"identifyProductionForDuplicates");o(i_,"getExtraProductionArgument");f9=function(e){sS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"OccurrenceValidationCollector"),t.prototype.visitNonTerminal=function(n){this.allProductions.push(n)},t.prototype.visitOption=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t.prototype.visitAlternation=function(n){this.allProductions.push(n)},t.prototype.visitTerminal=function(n){this.allProductions.push(n)},t}(Xr);o(u9,"validateRuleDoesNotAlreadyExist");o(r_,"validateRuleIsOverridden");o(o_,"validateNoLeftRecursion");o(ay,"getFirstNoneTerminal");cS=function(e){sS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return o(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Xr);o(p9,"validateEmptyOrAlternative");o(d9,"validateAmbiguousAlternationAlternatives");g9=function(e){sS(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return o(t,"RepetionCollector"),t.prototype.visitRepetitionWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatory=function(n){this.allProductions.push(n)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.allProductions.push(n)},t.prototype.visitRepetition=function(n){this.allProductions.push(n)},t}(Xr);o(m9,"validateTooManyAlts");o(h9,"validateSomeNonEmptyLookaheadPath");o(y9,"checkAlternativesAmbiguities");o(v9,"checkPrefixAlternativesAmbiguities");o(T9,"checkTerminalAndNoneTerminalsNameSpace")});function sy(e){e=rp(e,{errMsgProvider:ty});var t={};return ve(e.rules,function(n){t[n.name]=n}),UD(t,e.errMsgProvider)}function cy(e){return e=rp(e,{errMsgProvider:bs}),n_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function a_(e){ve(e.rules,function(t){var n=new tS;t.accept(n),ve(n.dslMethods,function(i){ve(i,function(r,a){r.idx=a+1})})})}var fS=qe(()=>{Tt();$D();lS();pp();Ql();o(sy,"resolveGrammar");o(cy,"validateGrammar");o(a_,"assignOccurrenceIndices")});function xa(e){return Vt(u_,e.name)}var yp,s_,c_,l_,f_,u_,ly,ql,fy,uy,py,zl=qe(()=>{Tt();yp=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),s_="MismatchedTokenException",c_="NoViableAltException",l_="EarlyExitException",f_="NotAllInputParsedException",u_=[s_,c_,l_,f_];Object.freeze(u_);o(xa,"isRecognitionException");ly=function(e){yp(t,e);function t(n,i){var r=this.constructor,a=e.call(this,n)||this;return a.token=i,a.resyncedTokens=[],Object.setPrototypeOf(a,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(a,a.constructor),a}return o(t,"RecognitionException"),t}(Error),ql=function(e){yp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=s_,a}return o(t,"MismatchedTokenException"),t}(ly),fy=function(e){yp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=c_,a}return o(t,"NoViableAltException"),t}(ly),uy=function(e){yp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=f_,r}return o(t,"NotAllInputParsedException"),t}(ly),py=function(e){yp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=l_,a}return o(t,"EarlyExitException"),t}(ly)});function p_(e){this.name=pS,this.message=e}function b9(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=Kr,A=1),this.shouldInRepetitionRecoveryBeTried(T,A,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var uS,pS,d_,dS=qe(()=>{Ts();Tt();zl();iS();Sr();uS={},pS="InRuleRecoveryException";o(p_,"InRuleRecoveryException");p_.prototype=Error.prototype;d_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ie(t,"recoveryEnabled")?t.recoveryEnabled:tr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=b9)},e.prototype.getTokenToInsert=function(t){var n=vs(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 ql(b,g,a.LA(0));O.resyncedTokens=ms(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 p_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ot(n))return!1;var r=this.LA(1),a=Aa(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return Vt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Vt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return uS;var t=this.getLastExplicitRuleShortName(),n=this.getLastExplicitRuleOccurrenceIndex(),i=this.getPreviousExplicitRuleShortName();return{ruleName:this.shortRuleNameToFullName(t),idxInCallingRule:n,inRule:this.shortRuleNameToFullName(i)}},e.prototype.buildFullFollowKeyStack=function(){var t=this,n=this.RULE_STACK,i=this.RULE_OCCURRENCE_STACK;return pe(n,function(r,a){return a===0?uS:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[a],inRule:t.shortRuleNameToFullName(n[a-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=pe(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===uS)return[Kr];var n=t.ruleName+t.idxInCallingRule+ey+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Kr)||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 ms(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 pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(b9,"attemptInRepetitionRecovery")});function my(e,t,n){return n|t|e}var g_,Ko,E9,dy,gy,vp,Tp,bp,Yl,Dae,hy=qe(()=>{g_=4,Ko=8,E9=8,dy=1<<Ko,gy=2<<Ko,vp=3<<Ko,Tp=4<<Ko,bp=5<<Ko,Yl=6<<Ko;o(my,"getKeyForAutomaticLookahead");Dae=32-E9});var m_,h_=qe(()=>{hp();Tt();Sr();hy();Ql();m_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ie(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:tr.dynamicTokensEnabled,this.maxLookahead=Ie(t,"maxLookahead")?t.maxLookahead:tr.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=MD(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(""+Ar(m)+T,function(){var A=QD(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=my(n.fullRuleNameToShort[i.name],dy,m.idx);n.setLaFuncCache(b,A)})}),ve(s,function(m){n.computeLookaheadFunc(i,m.idx,vp,wt.REPETITION,m.maxLookahead,Ar(m))}),ve(l,function(m){n.computeLookaheadFunc(i,m.idx,gy,wt.OPTION,m.maxLookahead,Ar(m))}),ve(u,function(m){n.computeLookaheadFunc(i,m.idx,Tp,wt.REPETITION_MANDATORY,m.maxLookahead,Ar(m))}),ve(p,function(m){n.computeLookaheadFunc(i,m.idx,Yl,wt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Ar(m))}),ve(g,function(m){n.computeLookaheadFunc(i,m.idx,bp,wt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Ar(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=qD(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=my(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return YD(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return zD(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return my(i,t,n)},e.prototype.getLaFuncFromCache=function(t){},e.prototype.getLaFuncFromMap=function(t){return this.lookAheadFuncsCache.get(t)},e.prototype.getLaFuncFromObj=function(t){return this.lookAheadFuncsCache[t]},e.prototype.setLaFuncCache=function(t,n){},e.prototype.setLaFuncCacheUsingMap=function(t,n){this.lookAheadFuncsCache.set(t,n)},e.prototype.setLaFuncUsingObj=function(t,n){this.lookAheadFuncsCache[t]=n},e}()});function gS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function mS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.startColumn=t.startColumn,e.startLine=t.startLine,e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset,e.endColumn=t.endColumn,e.endLine=t.endLine)}function y_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function v_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var T_=qe(()=>{o(gS,"setNodeLocationOnlyOffset");o(mS,"setNodeLocationFull");o(y_,"addTerminalToCst");o(v_,"addNoneTerminalToCst")});function E_(e){return Ep(e.constructor)}function Ep(e){var t=e.name;return t||"anonymous"}function hS(e,t){var n=Object.getOwnPropertyDescriptor(e,b_);return xi(n)||n.configurable?(Object.defineProperty(e,b_,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var b_,yS=qe(()=>{Tt();o(E_,"classNameFromInstance");b_="name";o(Ep,"functionName");o(hS,"defineNameProp")});function A9(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 A_(e,t){var n=o(function(){},"derivedConstructor");hS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(li(r)&&(r=r[0]),!xi(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=S9(this,t);if(!ot(r)){var a=pe(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 Er?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 e_(e,t){var n=new y9(e,t);return n.resolveRefs(),n.errors}var h9,y9,t_=qe(()=>{Sr();Tt();Xl();h9=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(e_,"resolveGrammar");y9=function(e){h9(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;Te(Vn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Xr)});function fy(e,t,n){n===void 0&&(n=[]),n=An(n);var i=[],r=0;function a(p){return p.concat(wn(e,r+1))}o(a,"remainingPathWith");function s(p){var g=fy(a(p),t,n);return i.concat(g)}for(o(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Zt)return s(l.definition);if(l instanceof on)return s(l.definition);if(l instanceof an)i=s(l.definition);else if(l instanceof Rn){var u=l.definition.concat([new Nt({definition:l.definition})]);return s(u)}else if(l instanceof Fn){var u=[new Zt({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 Te(l.definition,function(p){ot(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof ht)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function uy(e,t,n,i){var r="EXIT_NONE_TERMINAL",a=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,g=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!ot(m);){var v=m.pop();if(v===s){l&&Bh(m).idx<=p&&m.pop();continue}var A=v.def,b=v.idx,I=v.ruleStack,F=v.occurrenceStack;if(!ot(A)){var j=A[0];if(j===r){var K={idx:b,def:wn(A),ruleStack:hs(I),occurrenceStack:hs(F)};m.push(K)}else if(j instanceof ht)if(b<u-1){var U=b+1,ae=t[U];if(n(ae,j.terminalType)){var K={idx:U,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(K)}}else if(b===u-1)g.push({nextTokenType:j.terminalType,nextTokenOccurrence:j.idx,ruleStack:I,occurrenceStack:F}),l=!0;else throw Error("non exhaustive match");else if(j instanceof on){var Z=An(I);Z.push(j.nonTerminalName);var re=An(F);re.push(j.idx);var K={idx:b,def:j.definition.concat(a,wn(A)),ruleStack:Z,occurrenceStack:re};m.push(K)}else if(j instanceof an){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var D={idx:b,def:j.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Rn){var ut=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(K)}else if(j instanceof Fn){var Ue=new ht({terminalType:j.separator}),ut=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([ut],wn(A)),K={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(K)}else if(j instanceof Sn){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var Ue=new ht({terminalType:j.separator}),sn=new Nt({definition:[Ue].concat(j.definition),idx:j.idx}),yt=j.definition.concat([sn],wn(A)),D={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Nt){var Pe={idx:b,def:wn(A),ruleStack:I,occurrenceStack:F};m.push(Pe),m.push(s);var sn=new Nt({definition:j.definition,idx:j.idx}),yt=j.definition.concat([sn],wn(A)),D={idx:b,def:yt,ruleStack:I,occurrenceStack:F};m.push(D)}else if(j instanceof Pn)for(var Gn=j.definition.length-1;Gn>=0;Gn--){var tn=j.definition[Gn],Rt={idx:b,def:tn.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F};m.push(Rt),m.push(s)}else if(j instanceof Zt)m.push({idx:b,def:j.definition.concat(wn(A)),ruleStack:I,occurrenceStack:F});else if(j instanceof Er)m.push(T9(j,b,I,F));else throw Error("non exhaustive match")}}return g}function T9(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 _c,v9,n_,ly,i_,mS,r_,hS,mp=qe(()=>{oy();Tt();dS();ji();_c=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)}}(),v9=function(e){_c(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(){ot(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Fc),n_=function(e){_c(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.path=i,r.nextTerminalName="",r.nextTerminalOccurrence=0,r.nextTerminalName=r.path.lastTok.name,r.nextTerminalOccurrence=r.path.lastTokOccurrence,r}return o(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var a=i.concat(r),s=new Zt({definition:a});this.possibleTokTypes=Dc(s),this.found=!0}},t}(v9),ly=function(e){_c(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}(Fc),i_=function(e){_c(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}(ly),mS=function(e){_c(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}(ly),r_=function(e){_c(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}(ly),hS=function(e){_c(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}(ly);o(fy,"possiblePathsFrom");o(uy,"nextPossibleTokensAfter");o(T9,"expandTopLevelRule")});function s_(e){if(e instanceof an)return Mt.OPTION;if(e instanceof Nt)return Mt.REPETITION;if(e instanceof Rn)return Mt.REPETITION_MANDATORY;if(e instanceof Fn)return Mt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Sn)return Mt.REPETITION_WITH_SEPARATOR;if(e instanceof Pn)return Mt.ALTERNATION;throw Error("non exhaustive match")}function c_(e,t,n,i,r,a){var s=hp(e,t,n),l=m_(s)?Gl:Rc;return a(s,i,l,r)}function l_(e,t,n,i,r,a){var s=yp(e,t,r,n),l=m_(s)?Gl:Rc;return a(s[0],l,i)}function f_(e,t,n,i){var r=e.length,a=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=pe(u,function(U){return U.GATE}),g=0;g<r;g++){var m=e[g],v=m.length,A=p[g];if(!(A!==void 0&&A.call(this)===!1))e:for(var b=0;b<v;b++){for(var I=m[b],F=I.length,j=0;j<F;j++){var K=this.LA(j+1);if(n(K,I[j])===!1)continue e}return g}}};if(a&&!i){var s=pe(e,function(u){return Ln(u)}),l=pn(s,function(u,p,g){return Te(p,function(m){Oe(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=g),Te(m.categoryMatches,function(v){Oe(u,v)||(u[v]=g)})}),u},[]);return function(){var u=this.LA(1);return l[u.tokenTypeIdx]}}else return function(){for(var u=0;u<r;u++){var p=e[u],g=p.length;e:for(var m=0;m<g;m++){for(var v=p[m],A=v.length,b=0;b<A;b++){var I=this.LA(b+1);if(n(I,v[b])===!1)continue e}return u}}}}function u_(e,t,n){var i=fi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var a=Ln(e);if(a.length===1&&ot(a[0].categoryMatches)){var s=a[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=pn(a,function(p,g,m){return p[g.tokenTypeIdx]=!0,Te(g.categoryMatches,function(v){p[v]=!0}),p},[]);return function(){var p=this.LA(1);return u[p.tokenTypeIdx]===!0}}}else return function(){e:for(var p=0;p<r;p++){for(var g=e[p],m=g.length,v=0;v<m;v++){var A=this.LA(v+1);if(t(A,g[v])===!1)continue e}return!0}return!1}}function o_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function yS(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 E9(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 d_(e,t){for(var n=pe(e,function(g){return fy([g],1)}),i=o_(n.length),r=pe(n,function(g){var m={};return Te(g,function(v){var A=yS(v.partialPath);Te(A,function(b){m[b]=!0})}),m}),a=n,s=1;s<=t;s++){var l=a;a=o_(l.length);for(var u=o(function(g){for(var m=l[g],v=0;v<m.length;v++){var A=m[v].partialPath,b=m[v].suffixDef,I=yS(A),F=E9(r,I,g);if(F||ot(b)||A.length===t){var j=i[g];if(py(j,A)===!1){j.push(A);for(var K=0;K<I.length;K++){var U=I[K];r[g][U]=!0}}}else{var ae=fy(b,s+1,A);a[g]=a[g].concat(ae),Te(ae,function(Z){var re=yS(Z.partialPath);Te(re,function(Pe){r[g][Pe]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function hp(e,t,n,i){var r=new p_(e,Mt.ALTERNATION,i);return t.accept(r),d_(r.result,n)}function yp(e,t,n,i){var r=new p_(e,n);t.accept(r);var a=r.result,s=new b9(t,e,n),l=s.startWalking(),u=new Zt({definition:a}),p=new Zt({definition:l});return d_([u,p],i)}function py(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 g_(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function m_(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return ot(i.categoryMatches)})})})}var a_,Mt,b9,p_,vp=qe(()=>{Tt();mp();oy();Wl();ji();Xl();a_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();(function(e){e[e.OPTION=0]="OPTION",e[e.REPETITION=1]="REPETITION",e[e.REPETITION_MANDATORY=2]="REPETITION_MANDATORY",e[e.REPETITION_MANDATORY_WITH_SEPARATOR=3]="REPETITION_MANDATORY_WITH_SEPARATOR",e[e.REPETITION_WITH_SEPARATOR=4]="REPETITION_WITH_SEPARATOR",e[e.ALTERNATION=5]="ALTERNATION"})(Mt||(Mt={}));o(s_,"getProdType");o(c_,"buildLookaheadFuncForOr");o(l_,"buildLookaheadFuncForOptionalProd");o(f_,"buildAlternativesLookAheadFunc");o(u_,"buildSingleAlternativeLookaheadFunction");b9=function(e){a_(t,e);function t(n,i,r){var a=e.call(this)||this;return a.topProd=n,a.targetOccurrence=i,a.targetProdType=r,a}return o(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,a){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(a),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,Mt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Fc),p_=function(e){a_(t,e);function t(n,i,r){var a=e.call(this)||this;return a.targetOccurrence=n,a.targetProdType=i,a.targetRef=r,a.result=[],a}return o(t,"InsideDefinitionFinderVisitor"),t.prototype.checkIsTarget=function(n,i){n.idx===this.targetOccurrence&&this.targetProdType===i&&(this.targetRef===void 0||n===this.targetRef)&&(this.result=n.definition)},t.prototype.visitOption=function(n){this.checkIsTarget(n,Mt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Mt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Mt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Mt.ALTERNATION)},t}(Xr);o(o_,"initializeArrayOfArrays");o(yS,"pathToHashKeys");o(E9,"isUniquePrefixHash");o(d_,"lookAheadSequenceFromAlternatives");o(hp,"getLookaheadPathsForOr");o(yp,"getLookaheadPathsForOptionalProd");o(py,"containsPath");o(g_,"isStrictPrefixOfPath");o(m_,"areTokenCategoriesNotUsed")});function h_(e,t,n,i,r){var a=pe(e,function(A){return A9(A,i)}),s=pe(e,function(A){return T_(A,A,i)}),l=[],u=[],p=[];fi(s,ot)&&(l=pe(e,function(A){return C9(A,i)}),u=pe(e,function(A){return O9(A,t,i)}),p=L9(e,t,i));var g=D9(e,n,i),m=pe(e,function(A){return N9(A,i)}),v=pe(e,function(A){return x9(A,e,r,i)});return Ln(a.concat(p,s,l,u,g,m,v))}function A9(e,t){var n=new P9;e.accept(n);var i=n.allProductions,r=fD(i,S9),a=Tr(r,function(l){return l.length>1}),s=pe(Vn(a),function(l){var u=xi(l),p=t.buildDuplicateFoundError(e,l),g=Ar(u),m={message:p,type:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:g,occurrence:u.idx},v=y_(u);return v&&(m.parameter=v),m});return s}function S9(e){return Ar(e)+"_#_"+e.idx+"_#_"+y_(e)}function y_(e){return e instanceof ht?e.terminalType.name:e instanceof on?e.nonTerminalName:""}function x9(e,t,n,i){var r=[],a=pn(t,function(l,u){return u.name===e.name?l+1:l},0);if(a>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function v_(e,t,n){var i=[],r;return wt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function T_(e,t,n,i){i===void 0&&(i=[]);var r=[],a=dy(t.definition);if(ot(a))return[];var s=e.name,l=wt(a,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=Lc(a,i.concat([e])),p=pe(u,function(g){var m=An(i);return m.push(g),T_(e,g,n,m)});return r.concat(Ln(p))}function dy(e){var t=[];if(ot(e))return t;var n=xi(e);if(n instanceof on)t.push(n.referencedRule);else if(n instanceof Zt||n instanceof an||n instanceof Rn||n instanceof Fn||n instanceof Sn||n instanceof Nt)t=t.concat(dy(n.definition));else if(n instanceof Pn)t=Ln(pe(n.definition,function(s){return dy(s.definition)}));else if(!(n instanceof ht))throw Error("non exhaustive match");var i=Ql(n),r=e.length>1;if(i&&r){var a=wn(e);return t.concat(dy(a))}else return t}function C9(e,t){var n=new TS;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){var l=hs(s.definition),u=pe(l,function(p,g){var m=uy([p],[],null,1);return ot(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:g}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:g+1}:null});return a.concat(Sa(u))},[]);return r}function O9(e,t,n){var i=new TS;e.accept(i);var r=i.alternations;r=Ea(r,function(s){return s.ignoreAmbiguities===!0});var a=pn(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,g=hp(u,e,p,l),m=R9(g,l,e,n),v=F9(g,l,e,n);return s.concat(m,v)},[]);return a}function N9(e,t){var n=new TS;e.accept(n);var i=n.alternations,r=pn(i,function(a,s){return s.definition.length>255&&a.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),a},[]);return r}function L9(e,t,n){var i=[];return Te(e,function(r){var a=new I9;r.accept(a);var s=a.allProductions;Te(s,function(l){var u=s_(l),p=l.maxLookahead||t,g=l.idx,m=yp(g,r,u,p),v=m[0];if(ot(Ln(v))){var A=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:A,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function R9(e,t,n,i){var r=[],a=pn(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||Te(u,function(g){var m=[p];Te(e,function(v,A){p!==A&&py(v,g)&&t.definition[A].ignoreAmbiguities!==!0&&m.push(A)}),m.length>1&&!py(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:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function F9(e,t,n,i){var r=[],a=pn(e,function(s,l,u){var p=pe(l,function(g){return{idx:u,path:g}});return s.concat(p)},[]);return Te(a,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,g=cD(a,function(v){return t.definition[v.idx].ignoreAmbiguities!==!0&&v.idx<u&&g_(v.path,p)}),m=pe(g,function(v){var A=[v.idx+1,u+1],b=t.idx===0?"":t.idx,I=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:A,prefixPath:v.path});return{message:I,type:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:b,alternatives:A}});r=r.concat(m)}}),r}function D9(e,t,n){var i=[],r=pe(t,function(a){return a.name});return Te(e,function(a){var s=a.name;if(wt(r,s)){var l=n.buildNamespaceConflictError(a);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var vS,P9,TS,I9,bS=qe(()=>{Tt();Tt();Sr();ql();vp();mp();ji();Xl();vS=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(h_,"validateGrammar");o(A9,"validateDuplicateProductions");o(S9,"identifyProductionForDuplicates");o(y_,"getExtraProductionArgument");P9=function(e){vS(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}(Xr);o(x9,"validateRuleDoesNotAlreadyExist");o(v_,"validateRuleIsOverridden");o(T_,"validateNoLeftRecursion");o(dy,"getFirstNoneTerminal");TS=function(e){vS(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}(Xr);o(C9,"validateEmptyOrAlternative");o(O9,"validateAmbiguousAlternationAlternatives");I9=function(e){vS(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}(Xr);o(N9,"validateTooManyAlts");o(L9,"validateSomeNonEmptyLookaheadPath");o(R9,"checkAlternativesAmbiguities");o(F9,"checkPrefixAlternativesAmbiguities");o(D9,"checkTerminalAndNoneTerminalsNameSpace")});function gy(e){e=ap(e,{errMsgProvider:cy});var t={};return Te(e.rules,function(n){t[n.name]=n}),e_(t,e.errMsgProvider)}function my(e){return e=ap(e,{errMsgProvider:Es}),h_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function b_(e){Te(e.rules,function(t){var n=new pS;t.accept(n),Te(n.dslMethods,function(i){Te(i,function(r,a){r.idx=a+1})})})}var ES=qe(()=>{Tt();t_();bS();gp();ql();o(gy,"resolveGrammar");o(my,"validateGrammar");o(b_,"assignOccurrenceIndices")});function Ca(e){return wt(x_,e.name)}var Tp,E_,A_,S_,P_,x_,hy,zl,yy,vy,Ty,Yl=qe(()=>{Tt();Tp=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)}}(),E_="MismatchedTokenException",A_="NoViableAltException",S_="EarlyExitException",P_="NotAllInputParsedException",x_=[E_,A_,S_,P_];Object.freeze(x_);o(Ca,"isRecognitionException");hy=function(e){Tp(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),zl=function(e){Tp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=E_,a}return o(t,"MismatchedTokenException"),t}(hy),yy=function(e){Tp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=A_,a}return o(t,"NoViableAltException"),t}(hy),vy=function(e){Tp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=P_,r}return o(t,"NotAllInputParsedException"),t}(hy),Ty=function(e){Tp(t,e);function t(n,i,r){var a=e.call(this,n,i)||this;return a.previousToken=r,a.name=S_,a}return o(t,"EarlyExitException"),t}(hy)});function C_(e){this.name=SS,this.message=e}function _9(e,t,n,i,r,a,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),g=this.getGAstProductions()[p],m=new a(g,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var v=u.token,A=u.occurrence,b=u.isEndOfRule;this.RULE_STACK.length===1&&b&&v===void 0&&(v=Kr,A=1),this.shouldInRepetitionRecoveryBeTried(v,A,s)&&this.tryInRepetitionRecovery(e,t,n,v)}var AS,SS,O_,PS=qe(()=>{bs();Tt();Yl();gS();Sr();AS={},SS="InRuleRecoveryException";o(C_,"InRuleRecoveryException");C_.prototype=Error.prototype;O_=function(){function e(){}return o(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Oe(t,"recoveryEnabled")?t.recoveryEnabled:tr.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=_9)},e.prototype.getTokenToInsert=function(t){var n=Ts(t,"",NaN,NaN,NaN,NaN,NaN,NaN);return n.isInsertedInRecovery=!0,n},e.prototype.canTokenTypeBeInsertedInRecovery=function(t){return!0},e.prototype.tryInRepetitionRecovery=function(t,n,i,r){for(var a=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,g=this.LA(1),m=this.LA(1),v=o(function(){var A=a.LA(0),b=a.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:g,previous:A,ruleName:a.getCurrRuleFullName()}),I=new zl(b,g,a.LA(0));I.resyncedTokens=hs(u),a.SAVE_ERROR(I)},"generateErrorMessage");!p;)if(this.tokenMatcher(m,r)){v();return}else if(i.call(this)){v(),t.apply(this,n);return}else this.tokenMatcher(m,s)?p=!0:(m=this.SKIP_TOKEN(),this.addToResyncTokens(m,u));this.importLexerState(l)},e.prototype.shouldInRepetitionRecoveryBeTried=function(t,n,i){return!(i===!1||t===void 0||n===void 0||this.tokenMatcher(this.LA(1),t)||this.isBackTracking()||this.canPerformInRuleRecovery(t,this.getFollowsForInRuleRecovery(t,n)))},e.prototype.getFollowsForInRuleRecovery=function(t,n){var i=this.getCurrentGrammarPath(t,n),r=this.getNextPossibleTokenTypes(i);return r},e.prototype.tryInRuleRecovery=function(t,n){if(this.canRecoverWithSingleTokenInsertion(t,n)){var i=this.getTokenToInsert(t);return i}if(this.canRecoverWithSingleTokenDeletion(t)){var r=this.SKIP_TOKEN();return this.consumeToken(),r}throw new C_("sad sad panda")},e.prototype.canPerformInRuleRecovery=function(t,n){return this.canRecoverWithSingleTokenInsertion(t,n)||this.canRecoverWithSingleTokenDeletion(t)},e.prototype.canRecoverWithSingleTokenInsertion=function(t,n){var i=this;if(!this.canTokenTypeBeInsertedInRecovery(t)||ot(n))return!1;var r=this.LA(1),a=Aa(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return a},e.prototype.canRecoverWithSingleTokenDeletion=function(t){var n=this.tokenMatcher(this.LA(2),t);return n},e.prototype.isInCurrentRuleReSyncSet=function(t){var n=this.getCurrFollowKey(),i=this.getFollowSetFromFollowKey(n);return wt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(wt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return AS;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?AS:{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 Ln(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===AS)return[Kr];var n=t.ruleName+t.idxInCallingRule+sy+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Kr)||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 hs(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 pe(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();o(_9,"attemptInRepetitionRecovery")});function Ay(e,t,n){return n|t|e}var I_,Ko,V9,by,Ey,bp,Ep,Ap,Jl,qae,Sy=qe(()=>{I_=4,Ko=8,V9=8,by=1<<Ko,Ey=2<<Ko,bp=3<<Ko,Ep=4<<Ko,Ap=5<<Ko,Jl=6<<Ko;o(Ay,"getKeyForAutomaticLookahead");qae=32-V9});var N_,L_=qe(()=>{vp();Tt();Sr();Sy();ql();N_=function(){function e(){}return o(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Oe(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:tr.dynamicTokensEnabled,this.maxLookahead=Oe(t,"maxLookahead")?t.maxLookahead:tr.maxLookahead,this.lookAheadFuncsCache=nS()?new Map:[],nS()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;Te(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=YD(i),a=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,g=r.repetitionWithSeparator;Te(a,function(m){var v=m.idx===0?"":m.idx;n.TRACE_INIT(""+Ar(m)+v,function(){var A=c_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),b=Ay(n.fullRuleNameToShort[i.name],by,m.idx);n.setLaFuncCache(b,A)})}),Te(s,function(m){n.computeLookaheadFunc(i,m.idx,bp,Mt.REPETITION,m.maxLookahead,Ar(m))}),Te(l,function(m){n.computeLookaheadFunc(i,m.idx,Ey,Mt.OPTION,m.maxLookahead,Ar(m))}),Te(u,function(m){n.computeLookaheadFunc(i,m.idx,Ep,Mt.REPETITION_MANDATORY,m.maxLookahead,Ar(m))}),Te(p,function(m){n.computeLookaheadFunc(i,m.idx,Jl,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,Ar(m))}),Te(g,function(m){n.computeLookaheadFunc(i,m.idx,Ap,Mt.REPETITION_WITH_SEPARATOR,m.maxLookahead,Ar(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,a,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=l_(n,t,a||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Ay(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return u_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return f_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Ay(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 xS(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function CS(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 R_(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function F_(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var D_=qe(()=>{o(xS,"setNodeLocationOnlyOffset");o(CS,"setNodeLocationFull");o(R_,"addTerminalToCst");o(F_,"addNoneTerminalToCst")});function V_(e){return Sp(e.constructor)}function Sp(e){var t=e.name;return t||"anonymous"}function OS(e,t){var n=Object.getOwnPropertyDescriptor(e,__);return Ci(n)||n.configurable?(Object.defineProperty(e,__,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var __,IS=qe(()=>{Tt();o(V_,"classNameFromInstance");__="name";o(Sp,"functionName");o(OS,"defineNameProp")});function w9(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 w_(e,t){var n=o(function(){},"derivedConstructor");OS(n,e+"BaseSemantics");var i={visit:o(function(r,a){if(li(r)&&(r=r[0]),!Ci(r))return this[r.name](r.children,a)},"visit"),validateVisitor:o(function(){var r=M9(this,t);if(!ot(r)){var a=pe(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+Sp(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 S_(e,t,n){var i=o(function(){},"derivedConstructor");hS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return ve(t,function(a){r[a]=A9}),i.prototype=r,i.prototype.constructor=i,i}function S9(e,t){var n=P9(e,t),i=x9(e,t);return n.concat(i)}function P9(e,t){var n=pe(t,function(i){if(!go(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+Ep(e.constructor)+" CST Visitor.",type:yy.MISSING_METHOD,methodName:i}});return Sa(n)}function x9(e,t){var n=[];for(var i in e)go(e[i])&&!Vt(C9,i)&&!Vt(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 M_(e,t,n){var i=o(function(){},"derivedConstructor");OS(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return Te(t,function(a){r[a]=w9}),i.prototype=r,i.prototype.constructor=i,i}function M9(e,t){var n=k9(e,t),i=U9(e,t);return n.concat(i)}function k9(e,t){var n=pe(t,function(i){if(!go(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+Sp(e.constructor)+" CST Visitor.",type:Py.MISSING_METHOD,methodName:i}});return Sa(n)}function U9(e,t){var n=[];for(var i in e)go(e[i])&&!wt(j9,i)&&!wt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+Sp(e.constructor)+` CST Visitor
169
169
  There is no Grammar Rule corresponding to this method's name.
170
- `,type:yy.REDUNDANT_METHOD,methodName:i});return n}var yy,C9,P_=qe(()=>{Tt();yS();o(A9,"defaultVisit");o(A_,"createBaseSemanticVisitorConstructor");o(S_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(yy||(yy={}));o(S9,"validateVisitor");o(P9,"validateMissingCstMethods");C9=["constructor","visit","validateVisitor"];o(x9,"validateRedundantMethods")});var C_,x_=qe(()=>{T_();Tt();P_();Sr();C_=function(){function e(){}return o(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ie(t,"nodeLocationTracking")?t.nodeLocationTracking:tr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=mS,this.setNodeLocationFromNode=mS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=gS,this.setNodeLocationFromNode=gS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];y_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];v_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(xi(this.baseCstVisitorConstructor)){var t=A_(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(xi(this.baseCstVisitorWithDefaultsConstructor)){var t=S_(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 I_,O_=qe(()=>{Sr();I_=function(){function e(){}return o(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:o(function(){return this.tokVector},"get"),set:o(function(t){if(this.selfAnalysisDone!==!0)throw Error("Missing <performSelfAnalysis> invocation at the end of the Parser's constructor.");this.reset(),this.tokVector=t,this.tokVectorLength=t.length},"set"),enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):Jl},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?Jl:this.tokVector[n]},e.prototype.consumeToken=function(){this.currIdx++},e.prototype.exportLexerState=function(){return this.currIdx},e.prototype.importLexerState=function(t){this.currIdx=t},e.prototype.resetLexerState=function(){this.currIdx=-1},e.prototype.moveToTerminatedState=function(){this.currIdx=this.tokVector.length-1},e.prototype.getLexerPosition=function(){return this.exportLexerState()},e}()});var N_,L_=qe(()=>{Tt();zl();Sr();pp();lS();ji();N_=function(){function e(){}return o(e,"RecognizerApi"),e.prototype.ACTION=function(t){return t.call(this)},e.prototype.consume=function(t,n,i){return this.consumeInternal(n,t,i)},e.prototype.subrule=function(t,n,i){return this.subruleInternal(n,t,i)},e.prototype.option=function(t,n){return this.optionInternal(n,t)},e.prototype.or=function(t,n){return this.orInternal(n,t)},e.prototype.many=function(t,n){return this.manyInternal(t,n)},e.prototype.atLeastOne=function(t,n){return this.atLeastOneInternal(t,n)},e.prototype.CONSUME=function(t,n){return this.consumeInternal(t,0,n)},e.prototype.CONSUME1=function(t,n){return this.consumeInternal(t,1,n)},e.prototype.CONSUME2=function(t,n){return this.consumeInternal(t,2,n)},e.prototype.CONSUME3=function(t,n){return this.consumeInternal(t,3,n)},e.prototype.CONSUME4=function(t,n){return this.consumeInternal(t,4,n)},e.prototype.CONSUME5=function(t,n){return this.consumeInternal(t,5,n)},e.prototype.CONSUME6=function(t,n){return this.consumeInternal(t,6,n)},e.prototype.CONSUME7=function(t,n){return this.consumeInternal(t,7,n)},e.prototype.CONSUME8=function(t,n){return this.consumeInternal(t,8,n)},e.prototype.CONSUME9=function(t,n){return this.consumeInternal(t,9,n)},e.prototype.SUBRULE=function(t,n){return this.subruleInternal(t,0,n)},e.prototype.SUBRULE1=function(t,n){return this.subruleInternal(t,1,n)},e.prototype.SUBRULE2=function(t,n){return this.subruleInternal(t,2,n)},e.prototype.SUBRULE3=function(t,n){return this.subruleInternal(t,3,n)},e.prototype.SUBRULE4=function(t,n){return this.subruleInternal(t,4,n)},e.prototype.SUBRULE5=function(t,n){return this.subruleInternal(t,5,n)},e.prototype.SUBRULE6=function(t,n){return this.subruleInternal(t,6,n)},e.prototype.SUBRULE7=function(t,n){return this.subruleInternal(t,7,n)},e.prototype.SUBRULE8=function(t,n){return this.subruleInternal(t,8,n)},e.prototype.SUBRULE9=function(t,n){return this.subruleInternal(t,9,n)},e.prototype.OPTION=function(t){return this.optionInternal(t,0)},e.prototype.OPTION1=function(t){return this.optionInternal(t,1)},e.prototype.OPTION2=function(t){return this.optionInternal(t,2)},e.prototype.OPTION3=function(t){return this.optionInternal(t,3)},e.prototype.OPTION4=function(t){return this.optionInternal(t,4)},e.prototype.OPTION5=function(t){return this.optionInternal(t,5)},e.prototype.OPTION6=function(t){return this.optionInternal(t,6)},e.prototype.OPTION7=function(t){return this.optionInternal(t,7)},e.prototype.OPTION8=function(t){return this.optionInternal(t,8)},e.prototype.OPTION9=function(t){return this.optionInternal(t,9)},e.prototype.OR=function(t){return this.orInternal(t,0)},e.prototype.OR1=function(t){return this.orInternal(t,1)},e.prototype.OR2=function(t){return this.orInternal(t,2)},e.prototype.OR3=function(t){return this.orInternal(t,3)},e.prototype.OR4=function(t){return this.orInternal(t,4)},e.prototype.OR5=function(t){return this.orInternal(t,5)},e.prototype.OR6=function(t){return this.orInternal(t,6)},e.prototype.OR7=function(t){return this.orInternal(t,7)},e.prototype.OR8=function(t){return this.orInternal(t,8)},e.prototype.OR9=function(t){return this.orInternal(t,9)},e.prototype.MANY=function(t){this.manyInternal(0,t)},e.prototype.MANY1=function(t){this.manyInternal(1,t)},e.prototype.MANY2=function(t){this.manyInternal(2,t)},e.prototype.MANY3=function(t){this.manyInternal(3,t)},e.prototype.MANY4=function(t){this.manyInternal(4,t)},e.prototype.MANY5=function(t){this.manyInternal(5,t)},e.prototype.MANY6=function(t){this.manyInternal(6,t)},e.prototype.MANY7=function(t){this.manyInternal(7,t)},e.prototype.MANY8=function(t){this.manyInternal(8,t)},e.prototype.MANY9=function(t){this.manyInternal(9,t)},e.prototype.MANY_SEP=function(t){this.manySepFirstInternal(0,t)},e.prototype.MANY_SEP1=function(t){this.manySepFirstInternal(1,t)},e.prototype.MANY_SEP2=function(t){this.manySepFirstInternal(2,t)},e.prototype.MANY_SEP3=function(t){this.manySepFirstInternal(3,t)},e.prototype.MANY_SEP4=function(t){this.manySepFirstInternal(4,t)},e.prototype.MANY_SEP5=function(t){this.manySepFirstInternal(5,t)},e.prototype.MANY_SEP6=function(t){this.manySepFirstInternal(6,t)},e.prototype.MANY_SEP7=function(t){this.manySepFirstInternal(7,t)},e.prototype.MANY_SEP8=function(t){this.manySepFirstInternal(8,t)},e.prototype.MANY_SEP9=function(t){this.manySepFirstInternal(9,t)},e.prototype.AT_LEAST_ONE=function(t){this.atLeastOneInternal(0,t)},e.prototype.AT_LEAST_ONE1=function(t){return this.atLeastOneInternal(1,t)},e.prototype.AT_LEAST_ONE2=function(t){this.atLeastOneInternal(2,t)},e.prototype.AT_LEAST_ONE3=function(t){this.atLeastOneInternal(3,t)},e.prototype.AT_LEAST_ONE4=function(t){this.atLeastOneInternal(4,t)},e.prototype.AT_LEAST_ONE5=function(t){this.atLeastOneInternal(5,t)},e.prototype.AT_LEAST_ONE6=function(t){this.atLeastOneInternal(6,t)},e.prototype.AT_LEAST_ONE7=function(t){this.atLeastOneInternal(7,t)},e.prototype.AT_LEAST_ONE8=function(t){this.atLeastOneInternal(8,t)},e.prototype.AT_LEAST_ONE9=function(t){this.atLeastOneInternal(9,t)},e.prototype.AT_LEAST_ONE_SEP=function(t){this.atLeastOneSepFirstInternal(0,t)},e.prototype.AT_LEAST_ONE_SEP1=function(t){this.atLeastOneSepFirstInternal(1,t)},e.prototype.AT_LEAST_ONE_SEP2=function(t){this.atLeastOneSepFirstInternal(2,t)},e.prototype.AT_LEAST_ONE_SEP3=function(t){this.atLeastOneSepFirstInternal(3,t)},e.prototype.AT_LEAST_ONE_SEP4=function(t){this.atLeastOneSepFirstInternal(4,t)},e.prototype.AT_LEAST_ONE_SEP5=function(t){this.atLeastOneSepFirstInternal(5,t)},e.prototype.AT_LEAST_ONE_SEP6=function(t){this.atLeastOneSepFirstInternal(6,t)},e.prototype.AT_LEAST_ONE_SEP7=function(t){this.atLeastOneSepFirstInternal(7,t)},e.prototype.AT_LEAST_ONE_SEP8=function(t){this.atLeastOneSepFirstInternal(8,t)},e.prototype.AT_LEAST_ONE_SEP9=function(t){this.atLeastOneSepFirstInternal(9,t)},e.prototype.RULE=function(t,n,i){if(i===void 0&&(i=Zl),Vt(this.definedRulesNames,t)){var r=bs.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Hn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=Zl);var r=[];r=r.concat(r_(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var a=this.defineRule(t,n,i);return this[t]=a,a},e.prototype.BACKTRACK=function(t,n){return function(){this.isBackTrackingStack.push(1);var i=this.saveRecogState();try{return t.apply(this,n),!0}catch(r){if(xa(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Yh(Vn(this.gastProductionsCache))},e}()});var R_,F_=qe(()=>{Tt();hy();zl();hp();dp();Sr();dS();Ts();Gl();yS();R_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=E_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Hl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ie(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
170
+ `,type:Py.REDUNDANT_METHOD,methodName:i});return n}var Py,j9,k_=qe(()=>{Tt();IS();o(w9,"defaultVisit");o(w_,"createBaseSemanticVisitorConstructor");o(M_,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Py||(Py={}));o(M9,"validateVisitor");o(k9,"validateMissingCstMethods");j9=["constructor","visit","validateVisitor"];o(U9,"validateRedundantMethods")});var j_,U_=qe(()=>{D_();Tt();k_();Sr();j_=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:tr.nodeLocationTracking,!this.outputCst)this.cstInvocationStateUpdate=Mn,this.cstFinallyStateUpdate=Mn,this.cstPostTerminal=Mn,this.cstPostNonTerminal=Mn,this.cstPostRule=Mn;else if(/full/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=CS,this.setNodeLocationFromNode=CS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationFullRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleFull,this.setInitialNodeLocation=this.setInitialNodeLocationFullRegular);else if(/onlyOffset/i.test(this.nodeLocationTracking))this.recoveryEnabled?(this.setNodeLocationFromToken=xS,this.setNodeLocationFromNode=xS,this.cstPostRule=Mn,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRecovery):(this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=this.cstPostRuleOnlyOffset,this.setInitialNodeLocation=this.setInitialNodeLocationOnlyOffsetRegular);else if(/none/i.test(this.nodeLocationTracking))this.setNodeLocationFromToken=Mn,this.setNodeLocationFromNode=Mn,this.cstPostRule=Mn,this.setInitialNodeLocation=Mn;else throw Error('Invalid <nodeLocationTracking> config option: "'+t.nodeLocationTracking+'"')},e.prototype.setInitialNodeLocationOnlyOffsetRecovery=function(t){t.location={startOffset:NaN,endOffset:NaN}},e.prototype.setInitialNodeLocationOnlyOffsetRegular=function(t){t.location={startOffset:this.LA(1).startOffset,endOffset:NaN}},e.prototype.setInitialNodeLocationFullRecovery=function(t){t.location={startOffset:NaN,startLine:NaN,startColumn:NaN,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.setInitialNodeLocationFullRegular=function(t){var n=this.LA(1);t.location={startOffset:n.startOffset,startLine:n.startLine,startColumn:n.startColumn,endOffset:NaN,endLine:NaN,endColumn:NaN}},e.prototype.cstInvocationStateUpdate=function(t,n){var i={name:t,children:{}};this.setInitialNodeLocation(i),this.CST_STACK.push(i)},e.prototype.cstFinallyStateUpdate=function(){this.CST_STACK.pop()},e.prototype.cstPostRuleFull=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?(i.endOffset=n.endOffset,i.endLine=n.endLine,i.endColumn=n.endColumn):(i.startOffset=NaN,i.startLine=NaN,i.startColumn=NaN)},e.prototype.cstPostRuleOnlyOffset=function(t){var n=this.LA(0),i=t.location;i.startOffset<=n.startOffset?i.endOffset=n.endOffset:i.startOffset=NaN},e.prototype.cstPostTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];R_(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];F_(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Ci(this.baseCstVisitorConstructor)){var t=w_(this.className,Mi(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Ci(this.baseCstVisitorWithDefaultsConstructor)){var t=M_(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 $_,B_=qe(()=>{Sr();$_=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 H_,G_=qe(()=>{Tt();Yl();Sr();gp();bS();ji();H_=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=ef),wt(this.definedRulesNames,t)){var r=Es.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),a={message:r,type:Hn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(a)}this.definedRulesNames.push(t);var s=this.defineRule(t,n,i);return this[t]=s,s},e.prototype.OVERRIDE_RULE=function(t,n,i){i===void 0&&(i=ef);var r=[];r=r.concat(v_(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(Ca(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return ry(Vn(this.gastProductionsCache))},e}()});var W_,K_=qe(()=>{Tt();Sy();Yl();vp();mp();Sr();PS();bs();Wl();IS();W_=function(){function e(){}return o(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=V_(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=Gl,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(li(t)){if(ot(t))throw Error(`A Token Vocabulary cannot be empty.
173
173
  Note that the first argument for the parser constructor
174
174
  is no longer a Token vector (since v4.0).`);if(typeof t[0].startOffset=="number")throw Error(`The Parser constructor no longer accepts a token vector as the first argument.
175
175
  See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_4-0-0
176
- For Further details.`)}if(li(t))this.tokensMap=un(t,function(s,l){return s[l.name]=l,s},{});else if(Ie(t,"modes")&&fi(Ln(Vn(t.modes)),SD)){var i=Ln(Vn(t.modes)),r=ip(i);this.tokensMap=un(r,function(s,l){return s[l.name]=l,s},{})}else if(wh(t))this.tokensMap=hs(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=Kr;var a=fi(Vn(t),function(s){return ot(s.categoryMatches)});this.tokenMatcher=a?Hl:Lc,Pa(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
- Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ie(i,"resyncEnabled")?i.resyncEnabled:Zl.resyncEnabled,a=Ie(i,"recoveryValueFunc")?i.recoveryValueFunc:Zl.recoveryValueFunc,s=this.ruleShortNameIdx<<g_+Ko;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(xa(t)){var s=t;if(a){var l=this.findReSyncTokenType();if(this.isInCurrentRuleReSyncSet(l))if(s.resyncedTokens=this.reSyncTo(l),this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];return u.recoveredNode=!0,u}else return i();else{if(this.outputCst){var u=this.CST_STACK[this.CST_STACK.length-1];u.recoveredNode=!0,s.partialCstResult=u}throw s}}else{if(r)return this.moveToTerminatedState(),i();throw s}}else throw t},e.prototype.optionInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(gy,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(a.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Tp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,Tp,t,GD)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Yl,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,oS],u,Yl,t,oS)}else throw this.raiseEarlyExitException(t,wt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(vp,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,vp,t,HD,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(bp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,a=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){a.call(this);for(var u=o(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),a.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,a,rS],u,bp,t,rS)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,a){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,a],i,Yl,t,a)},e.prototype.doSingleRepetition=function(t){var n=this.getLexerPosition();t.call(this);var i=this.getLexerPosition();return i>n},e.prototype.orInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dy,n),r=li(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new uy(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var a=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,a),this.cstPostNonTerminal(r,i!==void 0&&i.LABEL!==void 0?i.LABEL:t.ruleName),r}catch(s){this.subruleInternalError(s,i,t.ruleName)}},e.prototype.subruleInternalError=function(t,n,i){throw xa(t)&&t.partialCstResult!==void 0&&(this.cstPostNonTerminal(t.partialCstResult,n!==void 0&&n.LABEL!==void 0?n.LABEL:i),delete t.partialCstResult),t},e.prototype.consumeInternal=function(t,n,i){var r;try{var a=this.LA(1);this.tokenMatcher(a,t)===!0?(this.consumeToken(),r=a):this.consumeInternalError(t,a,i)}catch(s){r=this.consumeInternalRecovery(t,n,s)}return this.cstPostTerminal(i!==void 0&&i.LABEL!==void 0?i.LABEL:t.name,r),r},e.prototype.consumeInternalError=function(t,n,i){var r,a=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:a,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new ql(r,n,a))},e.prototype.consumeInternalRecovery=function(t,n,i){if(this.recoveryEnabled&&i.name==="MismatchedTokenException"&&!this.isBackTracking()){var r=this.getFollowsForInRuleRecovery(t,n);try{return this.tryInRuleRecovery(t,r)}catch(a){throw a.name===pS?i:a}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=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),Kr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var D_,__=qe(()=>{zl();Tt();hp();Sr();D_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ie(t,"errorMessageProvider")?t.errorMessageProvider:tr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(xa(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=mp(t,a,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var g=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new py(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=gp(t,r,this.maxLookahead),s=[],l=1;l<=this.maxLookahead;l++)s.push(this.LA(l));var u=this.LA(0),p=this.errorMessageProvider.buildNoViableAltMessage({expectedPathsPerAlt:a,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new fy(p,this.LA(1),u))},e}()});var V_,w_=qe(()=>{dp();Tt();V_=function(){function e(){}return o(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(xi(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return ry([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ci(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new BD(r,t).startWalking();return a},e}()});function Ap(e,t,n,i){i===void 0&&(i=!1),vy(n);var r=ap(this.recordingProdStack),a=go(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ie(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),a.call(this),r.definition.push(s),this.recordingProdStack.pop(),Ty}function O9(e,t){var n=this;vy(t);var i=ap(this.recordingProdStack),r=li(e)===!1,a=r===!1?e:e.DEF,s=new Pn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ie(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=Mh(a,function(u){return go(u.GATE)});return s.hasPredicates=l,i.definition.push(s),ve(a,function(u){var p=new Jt({definition:[]});s.definition.push(p),Ie(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ie(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),Ty}function j_(e){return e===0?"":""+e}function vy(e){if(e<0||e>k_){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
- `+("Idx value must be a none negative value smaller than "+(k_+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var Ty,M_,k_,U_,$_,I9,B_,H_=qe(()=>{Tt();ji();cp();Gl();Ts();Sr();hy();Ty={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Ty);M_=!0,k_=Math.pow(2,Ko)-1,U_=fp({name:"RECORDING_PHASE_TOKEN",pattern:ki.NA});Pa([U_]);$_=vs(U_,`This IToken indicates the Parser is in Recording Phase
179
- See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze($_);I9={name:`This CSTNode indicates the Parser is in Recording Phase
180
- See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},B_=function(){function e(){}return o(e,"GastRecorder"),e.prototype.initGastRecorder=function(t){this.recordingProdStack=[],this.RECORDING_PHASE=!1},e.prototype.enableRecording=function(){var t=this;this.RECORDING_PHASE=!0,this.TRACE_INIT("Enable Recording",function(){for(var n=o(function(r){var a=r>0?r:"";t["CONSUME"+a]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+a]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+a]=function(s){return this.optionInternalRecord(s,r)},t["OR"+a]=function(s){return this.orInternalRecord(s,r)},t["MANY"+a]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+a]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+a]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+a]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,a,s){return this.consumeInternalRecord(a,r,s)},t.subrule=function(r,a,s){return this.subruleInternalRecord(a,r,s)},t.option=function(r,a){return this.optionInternalRecord(a,r)},t.or=function(r,a){return this.orInternalRecord(a,r)},t.many=function(r,a){this.manyInternalRecord(r,a)},t.atLeastOne=function(r,a){this.atLeastOneInternalRecord(r,a)},t.ACTION=t.ACTION_RECORD,t.BACKTRACK=t.BACKTRACK_RECORD,t.LA=t.LA_RECORD})},e.prototype.disableRecording=function(){var t=this;this.RECORDING_PHASE=!1,this.TRACE_INIT("Deleting Recording methods",function(){for(var n=0;n<10;n++){var i=n>0?n:"";delete t["CONSUME"+i],delete t["SUBRULE"+i],delete t["OPTION"+i],delete t["OR"+i],delete t["MANY"+i],delete t["MANY_SEP"+i],delete t["AT_LEAST_ONE"+i],delete t["AT_LEAST_ONE_SEP"+i]}delete t.consume,delete t.subrule,delete t.option,delete t.or,delete t.many,delete t.atLeastOne,delete t.ACTION,delete t.BACKTRACK,delete t.LA})},e.prototype.ACTION_RECORD=function(t){},e.prototype.BACKTRACK_RECORD=function(t,n){return function(){return!0}},e.prototype.LA_RECORD=function(t){return Jl},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new Er({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+`
176
+ For Further details.`)}if(li(t))this.tokensMap=pn(t,function(s,l){return s[l.name]=l,s},{});else if(Oe(t,"modes")&&fi(Ln(Vn(t.modes)),MD)){var i=Ln(Vn(t.modes)),r=op(i);this.tokensMap=pn(r,function(s,l){return s[l.name]=l,s},{})}else if(Hh(t))this.tokensMap=ys(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=Kr;var a=fi(Vn(t),function(s){return ot(s.categoryMatches)});this.tokenMatcher=a?Gl:Rc,Pa(Vn(this.tokensMap))},e.prototype.defineRule=function(t,n,i){if(this.selfAnalysisDone)throw Error("Grammar rule <"+t+`> may not be defined after the 'performSelfAnalysis' method has been called'
177
+ Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Oe(i,"resyncEnabled")?i.resyncEnabled:ef.resyncEnabled,a=Oe(i,"recoveryValueFunc")?i.recoveryValueFunc:ef.recoveryValueFunc,s=this.ruleShortNameIdx<<I_+Ko;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(g){try{if(this.outputCst===!0){n.apply(this,g);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,g)}catch(v){return this.invokeRuleCatch(v,r,a)}finally{this.ruleFinallyStateUpdate()}}o(l,"invokeRuleWithTry");var u;u=o(function(g,m){return g===void 0&&(g=0),this.ruleInvocationStateUpdate(s,t,g),l.call(this,m)},"wrappedGrammarRule");var p="ruleName";return u[p]=t,u.originalGrammarAction=n,u},e.prototype.invokeRuleCatch=function(t,n,i){var r=this.RULE_STACK.length===1,a=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ca(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(Ey,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(Ep,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,a=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=a;a=o(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(a.call(this)===!0)for(var p=this.doSingleRepetition(s);a.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],a,Ep,t,r_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Jl,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,hS],u,Jl,t,hS)}else throw this.raiseEarlyExitException(t,Mt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(bp,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,bp,t,i_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(Ap,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,mS],u,Ap,t,mS)}},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,Jl,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(by,n),r=li(t)?t:t.DEF,a=this.getLaFuncFromCache(i),s=a.call(this,r);if(s!==void 0){var l=r[s];return l.ALT.call(this)}this.raiseNoAltException(n,t.ERR_MSG)},e.prototype.ruleFinallyStateUpdate=function(){if(this.RULE_STACK.pop(),this.RULE_OCCURRENCE_STACK.pop(),this.cstFinallyStateUpdate(),this.RULE_STACK.length===0&&this.isAtEndOfInput()===!1){var t=this.LA(1),n=this.errorMessageProvider.buildNotAllInputParsedMessage({firstRedundant:t,ruleName:this.getCurrRuleFullName()});this.SAVE_ERROR(new vy(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 Ca(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 zl(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===SS?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),Kr)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var X_,Q_=qe(()=>{Yl();Tt();vp();Sr();X_=function(){function e(){}return o(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Oe(t,"errorMessageProvider")?t.errorMessageProvider:tr.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ca(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=yp(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 Ty(g,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],a=hp(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 yy(p,this.LA(1),u))},e}()});var q_,z_=qe(()=>{mp();Tt();q_=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 uy([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=xi(t.ruleStack),i=this.getGAstProductions(),r=i[n],a=new n_(r,t).startWalking();return a},e}()});function Pp(e,t,n,i){i===void 0&&(i=!1),xy(n);var r=cp(this.recordingProdStack),a=go(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(),Cy}function B9(e,t){var n=this;xy(t);var i=cp(this.recordingProdStack),r=li(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=Gh(a,function(u){return go(u.GATE)});return s.hasPredicates=l,i.definition.push(s),Te(a,function(u){var p=new Zt({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()}),Cy}function Z_(e){return e===0?"":""+e}function xy(e){if(e<0||e>J_){var t=new Error("Invalid DSL Method idx value: <"+e+`>
178
+ `+("Idx value must be a none negative value smaller than "+(J_+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var Cy,Y_,J_,eV,tV,$9,nV,iV=qe(()=>{Tt();ji();fp();Wl();bs();Sr();Sy();Cy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(Cy);Y_=!0,J_=Math.pow(2,Ko)-1,eV=pp({name:"RECORDING_PHASE_TOKEN",pattern:ki.NA});Pa([eV]);tV=Ts(eV,`This IToken indicates the Parser is in Recording Phase
179
+ See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(tV);$9={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:{}},nV=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 Er({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 Ap.call(this,on,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Ap.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Ap.call(this,Fn,n,t,M_)},e.prototype.manyInternalRecord=function(t,n){Ap.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){Ap.call(this,Sn,n,t,M_)},e.prototype.orInternalRecord=function(t,n){return O9.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(vy(n),!t||Ie(t,"ruleName")===!1){var r=new Error("<SUBRULE"+j_(n)+"> argument is invalid"+(" expecting a Parser method reference but got: <"+JSON.stringify(t)+">")+(`
183
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=ap(this.recordingProdStack),s=t.ruleName,l=new rn({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?I9:Ty},e.prototype.consumeInternalRecord=function(t,n,i){if(vy(n),!JA(t)){var r=new Error("<CONSUME"+j_(n)+"> argument is invalid"+(" expecting a TokenType reference but got: <"+JSON.stringify(t)+">")+(`
184
- inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var a=ap(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),$_},e}();o(Ap,"recordProd");o(O9,"recordOrProd");o(j_,"getIdxSuffix");o(vy,"assertMethodIdxIsValid")});var G_,W_=qe(()=>{Tt();Sr();G_=function(){function e(){}return o(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Ie(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=tr.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Uh(n),a=r.time,s=r.value,l=a>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+a+"ms"),this.traceInitIndent--,s}else return n()},e}()});function X_(e){return e===void 0&&(e=void 0),function(){return e}}var K_,Jl,tr,Zl,Hn,vS,Q_,q_,Sr=qe(()=>{Tt();jD();Ts();pp();fS();dS();h_();x_();O_();L_();F_();__();w_();H_();W_();K_=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Jl=vs(Kr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Jl);tr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:up,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),Zl=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Hn||(Hn={}));o(X_,"EMPTY_ALT");vS=function(){function e(t,n){this.definitionErrors=[],this.selfAnalysisDone=!1;var i=this;if(i.initErrorHandler(n),i.initLexerAdapter(),i.initLooksAhead(n),i.initRecognizerEngine(t,n),i.initRecoverable(n),i.initTreeBuilder(n),i.initContentAssist(),i.initGastRecorder(n),i.initPerformanceTracer(n),Ie(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 Pp.call(this,an,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){Pp.call(this,Rn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){Pp.call(this,Fn,n,t,Y_)},e.prototype.manyInternalRecord=function(t,n){Pp.call(this,Nt,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){Pp.call(this,Sn,n,t,Y_)},e.prototype.orInternalRecord=function(t,n){return B9.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(xy(n),!t||Oe(t,"ruleName")===!1){var r=new Error("<SUBRULE"+Z_(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=cp(this.recordingProdStack),s=t.ruleName,l=new on({idx:n,nonTerminalName:s,referencedRule:void 0});return a.definition.push(l),this.outputCst?$9:Cy},e.prototype.consumeInternalRecord=function(t,n,i){if(xy(n),!lS(t)){var r=new Error("<CONSUME"+Z_(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=cp(this.recordingProdStack),s=new ht({idx:n,terminalType:t});return a.definition.push(s),tV},e}();o(Pp,"recordProd");o(B9,"recordOrProd");o(Z_,"getIdxSuffix");o(xy,"assertMethodIdxIsValid")});var rV,oV=qe(()=>{Tt();Sr();rV=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=tr.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=Xh(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 sV(e){return e===void 0&&(e=void 0),function(){return e}}var aV,Zl,tr,ef,Hn,NS,cV,lV,Sr=qe(()=>{Tt();ZD();bs();gp();ES();PS();L_();U_();B_();G_();K_();Q_();z_();iV();oV();aV=function(){var e=o(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(i[a]=r[a])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}o(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Zl=Ts(Kr,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(Zl);tr=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:dp,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),ef=Object.freeze({recoveryValueFunc:o(function(){},"recoveryValueFunc"),resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Hn||(Hn={}));o(sV,"EMPTY_ALT");NS=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=Ie(n,"skipValidations")?n.skipValidations:tr.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){jh(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=sy({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ot(r)&&t.skipValidations===!1){var a=cy({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:bs,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ot(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=kD(Vn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!ot(t.definitionErrors))throw n=pe(t.definitionErrors,function(a){return a.message}),new Error(`Parser Definition Errors detected:
187
+ For further details.`);this.skipValidations=Oe(n,"skipValidations")?n.skipValidations:tr.skipValidations}return o(e,"Parser"),e.performSelfAnalysis=function(t){throw Error("The **static** `performSelfAnalysis` method has been deprecated. \nUse the **instance** method with the same name instead.")},e.prototype.performSelfAnalysis=function(){var t=this;this.TRACE_INIT("performSelfAnalysis",function(){var n;t.selfAnalysisDone=!0;var i=t.className;t.TRACE_INIT("toFastProps",function(){Kh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),Te(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=gy({rules:Vn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(ot(r)&&t.skipValidations===!1){var a=my({rules:Vn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Vn(t.tokensMap),errMsgProvider:Es,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,a)}}),ot(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var a=JD(Vn(t.gastProductionsCache));t.resyncFollows=a}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Vn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!ot(t.definitionErrors))throw n=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}();J1(vS,[d_,m_,C_,I_,R_,N_,D_,V_,B_,G_]);Q_=function(e){K_(t,e);function t(n,i){i===void 0&&(i=tr);var r=this,a=hs(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(vS),q_=function(e){K_(t,e);function t(n,i){i===void 0&&(i=tr);var r=this,a=hs(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(vS)});function z_(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+np+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+np+"/diagrams/diagrams.css":a,l=`
190
+ `))})},e.DEFER_DEFINITION_ERRORS_HANDLING=!1,e}();pD(NS,[O_,N_,j_,$_,W_,H_,X_,q_,nV,rV]);cV=function(e){aV(t,e);function t(n,i){i===void 0&&(i=tr);var r=this,a=ys(i);return a.outputCst=!0,r=e.call(this,n,a)||this,r}return o(t,"CstParser"),t}(NS),lV=function(e){aV(t,e);function t(n,i){i===void 0&&(i=tr);var r=this,a=ys(i);return a.outputCst=!1,r=e.call(this,n,a)||this,r}return o(t,"EmbeddedActionsParser"),t}(NS)});function fV(e,t){var n=t===void 0?{}:t,i=n.resourceBase,r=i===void 0?"https://unpkg.com/chevrotain@"+rp+"/diagrams/":i,a=n.css,s=a===void 0?"https://unpkg.com/chevrotain@"+rp+"/diagrams/diagrams.css":a,l=`
191
191
  <!-- This is a generated file -->
192
192
  <!DOCTYPE html>
193
193
  <meta charset="utf-8">
@@ -210,12 +210,12 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
210
210
  <script>
211
211
  window.serializedGrammar = `+JSON.stringify(e,null," ")+`;
212
212
  </script>
213
- `,T=`
213
+ `,v=`
214
214
  <script>
215
215
  var diagramsDiv = document.getElementById("diagrams");
216
216
  main.drawDiagramsFromSerializedGrammar(serializedGrammar, diagramsDiv);
217
217
  </script>
218
- `;return l+u+p+g+m+T}var Y_=qe(()=>{BA();o(z_,"createSyntaxDiagramsCode")});function Z_(e){return`
218
+ `;return l+u+p+g+m+v}var uV=qe(()=>{ZA();o(fV,"createSyntaxDiagramsCode")});function dV(e){return`
219
219
  (function (root, factory) {
220
220
  if (typeof define === 'function' && define.amd) {
221
221
  // AMD. Register as an anonymous module.
@@ -231,16 +231,16 @@ Make sure that all grammar rule definitions are done before 'performSelfAnalysis
231
231
  }
232
232
  }(typeof self !== 'undefined' ? self : this, function (chevrotain) {
233
233
 
234
- `+tV(e)+`
234
+ `+mV(e)+`
235
235
 
236
236
  return {
237
237
  `+e.name+": "+e.name+`
238
238
  }
239
239
  }));
240
- `}function eV(e){return`
241
- `+tV(e)+`
240
+ `}function gV(e){return`
241
+ `+mV(e)+`
242
242
  return new `+e.name+`(tokenVocabulary, config)
243
- `}function tV(e){var t=`
243
+ `}function mV(e){var t=`
244
244
  function `+e.name+`(tokenVocabulary, config) {
245
245
  // invoke super constructor
246
246
  // No support for embedded actions currently, so we can 'hardcode'
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
249
249
 
250
250
  const $ = this
251
251
 
252
- `+N9(e.rules)+`
252
+ `+H9(e.rules)+`
253
253
 
254
254
  // very important to call this after all the rules have been defined.
255
255
  // otherwise the parser may not work correctly as it will lack information
@@ -260,38 +260,38 @@ function `+e.name+`(tokenVocabulary, config) {
260
260
  // inheritance as implemented in javascript in the previous decade... :(
261
261
  `+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
262
262
  `+e.name+".prototype.constructor = "+e.name+`
263
- `;return t}function N9(e){var t=pe(e,function(n){return L9(n,1)});return t.join(`
264
- `)}function L9(e,t){var n=Ui(t,'$.RULE("'+e.name+'", function() {')+Zn;return n+=by(e.definition,t+1),n+=Ui(t+1,"})")+Zn,n}function R9(e,t){var n=e.terminalType.name;return Ui(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+Zn)}function F9(e,t){return Ui(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+Zn)}function D9(e,t){var n=Ui(t,"$.OR"+e.idx+"([")+Zn,i=pe(e.definition,function(r){return _9(r,t+1)});return n+=i.join(","+Zn),n+=Zn+Ui(t,"])"+Zn),n}function _9(e,t){var n=Ui(t,"{")+Zn;return n+=Ui(t+1,"ALT: function() {")+Zn,n+=by(e.definition,t+1),n+=Ui(t+1,"}")+Zn,n+=Ui(t,"}"),n}function V9(e,t){if(e instanceof rn)return F9(e,t);if(e instanceof on)return Sp("OPTION",e,t);if(e instanceof Rn)return Sp("AT_LEAST_ONE",e,t);if(e instanceof Fn)return Sp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return Sp("MANY_SEP",e,t);if(e instanceof Nt)return Sp("MANY",e,t);if(e instanceof Pn)return D9(e,t);if(e instanceof ht)return R9(e,t);if(e instanceof Jt)return by(e.definition,t);throw Error("non exhaustive match")}function Sp(e,t,n){var i=Ui(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+Zn,i+=Ui(n+1,"SEP: this.tokensMap."+t.separator.name)+","+Zn,i+="DEF: "+J_(t.definition,n+2)+Zn,i+=Ui(n,"}")+Zn):i+=J_(t.definition,n+1),i+=Ui(n,")")+Zn,i}function J_(e,t){var n="function() {"+Zn;return n+=by(e,t),n+=Ui(t,"}")+Zn,n}function by(e,t){var n="";return ve(e,function(i){n+=V9(i,t+1)}),n}function Ui(e,t){var n=Array(e*4+1).join(" ");return n+t}var Zn,nV=qe(()=>{Tt();ji();Zn=`
265
- `;o(Z_,"genUmdModule");o(eV,"genWrapperFunction");o(tV,"genClass");o(N9,"genAllRules");o(L9,"genRule");o(R9,"genTerminal");o(F9,"genNonTerminal");o(D9,"genAlternation");o(_9,"genSingleAlt");o(V9,"genProd");o(Sp,"genDSLRule");o(J_,"genDefFunction");o(by,"genDefinition");o(Ui,"indent")});function iV(e){var t=eV({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Ay(),cg(Ey)))}}function rV(e){return Z_({name:e.name,rules:e.rules})}var oV=qe(()=>{nV();o(iV,"generateParserFactory");o(rV,"generateParserModule")});var Ey={};Xs(Ey,{Alternation:()=>Pn,Alternative:()=>Jt,CstParser:()=>Q_,EMPTY_ALT:()=>X_,EOF:()=>Kr,EarlyExitException:()=>py,EmbeddedActionsParser:()=>q_,GAstVisitor:()=>Xr,Lexer:()=>ki,LexerDefinitionErrorType:()=>pn,MismatchedTokenException:()=>ql,NoViableAltException:()=>fy,NonTerminal:()=>rn,NotAllInputParsedException:()=>uy,Option:()=>on,Parser:()=>M9,ParserDefinitionErrorType:()=>Hn,Repetition:()=>Nt,RepetitionMandatory:()=>Rn,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>Sn,Rule:()=>Er,Terminal:()=>ht,VERSION:()=>np,assignOccurrenceIndices:()=>a_,clearCache:()=>w9,createSyntaxDiagramsCode:()=>z_,createToken:()=>fp,createTokenInstance:()=>vs,defaultGrammarResolverErrorProvider:()=>ty,defaultGrammarValidatorErrorProvider:()=>bs,defaultLexerErrorProvider:()=>zh,defaultParserErrorProvider:()=>up,generateParserFactory:()=>iV,generateParserModule:()=>rV,isRecognitionException:()=>xa,resolveGrammar:()=>sy,serializeGrammar:()=>Yh,serializeProduction:()=>Wl,tokenLabel:()=>Wo,tokenMatcher:()=>DD,tokenName:()=>FD,validateGrammar:()=>cy});function w9(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
263
+ `;return t}function H9(e){var t=pe(e,function(n){return G9(n,1)});return t.join(`
264
+ `)}function G9(e,t){var n=Ui(t,'$.RULE("'+e.name+'", function() {')+Zn;return n+=Oy(e.definition,t+1),n+=Ui(t+1,"})")+Zn,n}function W9(e,t){var n=e.terminalType.name;return Ui(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+Zn)}function K9(e,t){return Ui(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+Zn)}function X9(e,t){var n=Ui(t,"$.OR"+e.idx+"([")+Zn,i=pe(e.definition,function(r){return Q9(r,t+1)});return n+=i.join(","+Zn),n+=Zn+Ui(t,"])"+Zn),n}function Q9(e,t){var n=Ui(t,"{")+Zn;return n+=Ui(t+1,"ALT: function() {")+Zn,n+=Oy(e.definition,t+1),n+=Ui(t+1,"}")+Zn,n+=Ui(t,"}"),n}function q9(e,t){if(e instanceof on)return K9(e,t);if(e instanceof an)return xp("OPTION",e,t);if(e instanceof Rn)return xp("AT_LEAST_ONE",e,t);if(e instanceof Fn)return xp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Sn)return xp("MANY_SEP",e,t);if(e instanceof Nt)return xp("MANY",e,t);if(e instanceof Pn)return X9(e,t);if(e instanceof ht)return W9(e,t);if(e instanceof Zt)return Oy(e.definition,t);throw Error("non exhaustive match")}function xp(e,t,n){var i=Ui(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+Zn,i+=Ui(n+1,"SEP: this.tokensMap."+t.separator.name)+","+Zn,i+="DEF: "+pV(t.definition,n+2)+Zn,i+=Ui(n,"}")+Zn):i+=pV(t.definition,n+1),i+=Ui(n,")")+Zn,i}function pV(e,t){var n="function() {"+Zn;return n+=Oy(e,t),n+=Ui(t,"}")+Zn,n}function Oy(e,t){var n="";return Te(e,function(i){n+=q9(i,t+1)}),n}function Ui(e,t){var n=Array(e*4+1).join(" ");return n+t}var Zn,hV=qe(()=>{Tt();ji();Zn=`
265
+ `;o(dV,"genUmdModule");o(gV,"genWrapperFunction");o(mV,"genClass");o(H9,"genAllRules");o(G9,"genRule");o(W9,"genTerminal");o(K9,"genNonTerminal");o(X9,"genAlternation");o(Q9,"genSingleAlt");o(q9,"genProd");o(xp,"genDSLRule");o(pV,"genDefFunction");o(Oy,"genDefinition");o(Ui,"indent")});function yV(e){var t=gV({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(Ny(),mg(Iy)))}}function vV(e){return dV({name:e.name,rules:e.rules})}var TV=qe(()=>{hV();o(yV,"generateParserFactory");o(vV,"generateParserModule")});var Iy={};Qs(Iy,{Alternation:()=>Pn,Alternative:()=>Zt,CstParser:()=>cV,EMPTY_ALT:()=>sV,EOF:()=>Kr,EarlyExitException:()=>Ty,EmbeddedActionsParser:()=>lV,GAstVisitor:()=>Xr,Lexer:()=>ki,LexerDefinitionErrorType:()=>dn,MismatchedTokenException:()=>zl,NoViableAltException:()=>yy,NonTerminal:()=>on,NotAllInputParsedException:()=>vy,Option:()=>an,Parser:()=>Y9,ParserDefinitionErrorType:()=>Hn,Repetition:()=>Nt,RepetitionMandatory:()=>Rn,RepetitionMandatoryWithSeparator:()=>Fn,RepetitionWithSeparator:()=>Sn,Rule:()=>Er,Terminal:()=>ht,VERSION:()=>rp,assignOccurrenceIndices:()=>b_,clearCache:()=>z9,createSyntaxDiagramsCode:()=>fV,createToken:()=>pp,createTokenInstance:()=>Ts,defaultGrammarResolverErrorProvider:()=>cy,defaultGrammarValidatorErrorProvider:()=>Es,defaultLexerErrorProvider:()=>iy,defaultParserErrorProvider:()=>dp,generateParserFactory:()=>yV,generateParserModule:()=>vV,isRecognitionException:()=>Ca,resolveGrammar:()=>gy,serializeGrammar:()=>ry,serializeProduction:()=>Kl,tokenLabel:()=>Wo,tokenMatcher:()=>XD,tokenName:()=>KD,validateGrammar:()=>my});function z9(){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 M9,Ay=qe(()=>{BA();Sr();cp();Ts();pp();zl();ZA();ji();ji();Kl();fS();Y_();oV();o(w9,"clearCache");M9=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 ES=ze((Mce,uV)=>{var{createToken:k9,Lexer:TS}=(Ay(),cg(Ey)),sV={},ef=sV;function bS(e,t){sV[e]=typeof t=="string"?t:t.source}o(bS,"FRAGMENT");function Pp(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(Pp,"makePattern");var j9=[],cV={};function Cn(e){let t=k9(e);return j9.push(t),cV[e.name]=t,t}o(Cn,"createToken");bS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");bS("NameChar",Pp`${ef.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);bS("Name",Pp`${ef.NameStartChar}(${ef.NameChar})*`);var aV=Cn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),U9=Cn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),$9=Cn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),B9=Cn({name:"DTD",pattern:/<!.*?>/,group:TS.SKIPPED}),H9=Cn({name:"EntityRef",pattern:Pp`&${ef.Name};`}),G9=Cn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),W9=Cn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),K9=Cn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),lV=Cn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),X9=Cn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[lV]}),Q9=Cn({name:"PROCESSING_INSTRUCTION",pattern:Pp`<\\?${ef.Name}.*\\?>`}),fV=Cn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),q9=Cn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[fV]}),z9=Cn({name:"TEXT",pattern:/[^<&]+/}),Y9=Cn({name:"CLOSE",pattern:/>/,pop_mode:!0}),J9=Cn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),Z9=Cn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),e6=Cn({name:"SLASH",pattern:/\//}),t6=Cn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),n6=Cn({name:"EQUALS",pattern:/=/}),i6=Cn({name:"Name",pattern:Pp`${ef.Name}`}),r6=Cn({name:"S",pattern:/[ \t\r\n]/,group:TS.SKIPPED}),o6={defaultMode:"OUTSIDE",modes:{OUTSIDE:[aV,U9,$9,B9,H9,G9,W9,K9,lV,Q9,fV,z9],INSIDE:[aV,X9,q9,Y9,J9,Z9,e6,n6,t6,i6,r6]}},a6=new TS(o6,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
- `],lineTerminatorsPattern:/\n|\r\n/g});uV.exports={xmlLexer:a6,tokensDictionary:cV}});var dV=ze((jce,pV)=>{var{CstParser:s6,tokenMatcher:c6}=(Ay(),cg(Ey)),{tokensDictionary:xt}=ES(),SS=class SS extends s6{constructor(){super(xt,{maxLookahead:1,recoveryEnabled:!0,nodeLocationTracking:"full"}),this.deletionRecoveryEnabled=!0;let t=this;t.RULE("document",()=>{t.OPTION(()=>{t.SUBRULE(t.prolog)}),t.MANY(()=>{t.SUBRULE(t.misc)}),t.OPTION2(()=>{t.SUBRULE(t.docTypeDecl)}),t.MANY2(()=>{t.SUBRULE2(t.misc)}),t.SUBRULE(t.element),t.MANY3(()=>{t.SUBRULE3(t.misc)})}),t.RULE("prolog",()=>{t.CONSUME(xt.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(xt.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(xt.DocType),t.CONSUME(xt.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(xt.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:o(()=>t.LA(1).image==="SYSTEM","GATE"),ALT:o(()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")},{GATE:o(()=>t.LA(1).image==="PUBLIC","GATE"),ALT:o(()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})},"ALT")}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:o(()=>t.SUBRULE(t.element),"ALT")},{ALT:o(()=>t.SUBRULE(t.chardata),"ALT")},{ALT:o(()=>t.SUBRULE(t.reference),"ALT")},{ALT:o(()=>t.CONSUME(xt.CData),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")}])})}),t.RULE("element",()=>{t.CONSUME(xt.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:o(()=>{t.CONSUME(xt.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(xt.SLASH_OPEN),t.CONSUME2(xt.Name,{LABEL:"END_NAME"}),t.CONSUME2(xt.CLOSE,{LABEL:"END"})},"ALT")},{ALT:o(()=>{t.CONSUME(xt.SLASH_CLOSE)},"ALT")}])}),t.RULE("reference",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.EntityRef),"ALT")},{ALT:o(()=>t.CONSUME(xt.CharRef),"ALT")}])}),t.RULE("attribute",()=>{t.CONSUME(xt.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(xt.EQUALS),t.CONSUME(xt.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.TEXT),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),t.RULE("misc",()=>{t.OR([{ALT:o(()=>t.CONSUME(xt.Comment),"ALT")},{ALT:o(()=>t.CONSUME(xt.PROCESSING_INSTRUCTION),"ALT")},{ALT:o(()=>t.CONSUME(xt.SEA_WS),"ALT")}])}),this.performSelfAnalysis()}canRecoverWithSingleTokenDeletion(t){return this.deletionRecoveryEnabled===!1?!1:super.canRecoverWithSingleTokenDeletion(t)}findReSyncTokenType(){let t=this.flattenFollowSet(),n=this.LA(1),i=2;for(;;){let r=t.find(a=>c6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(SS,"Parser");var AS=SS,l6=new AS;pV.exports={xmlParser:l6}});var PS=ze(($ce,gV)=>{var{xmlLexer:f6}=ES(),{xmlParser:Sy}=dV();gV.exports={parse:o(function(t){let n=f6.tokenize(t);return Sy.input=n.tokens,{cst:Sy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Sy.errors}},"parse"),BaseXmlCstVisitor:Sy.getBaseCstVisitorConstructor()}});var xp=ze((tf,Cp)=>{(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,F=4,j=8,K=16,U=32,ae=64,Z=128,re=256,Pe=512,D=30,ut="...",yt=800,Ue=16,an=1,Gn=2,en=3,Lt=1/0,Re=9007199254740991,Oi=17976931348623157e292,It=NaN,Mt=4294967295,sn=Mt-1,Hi=Mt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",O],["curry",j],["curryRight",K],["flip",Pe],["partial",U],["partialRight",ae],["rearg",re]],Wn="[object Arguments]",Or="[object Array]",at="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",_e="[object Function]",Rt="[object GeneratorFunction]",Qe="[object Map]",kt="[object Number]",vn="[object Null]",cn="[object Object]",Ht="[object Promise]",ti="[object Proxy]",ar="[object RegExp]",gn="[object Set]",hi="[object String]",Gt="[object Symbol]",zo="[object Undefined]",Gi="[object WeakMap]",Rf="[object WeakSet]",ws="[object ArrayBuffer]",Nr="[object DataView]",Ff="[object Float32Array]",Df="[object Float64Array]",_f="[object Int8Array]",Ms="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",mn=/\b__p \+= '';/g,xn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,Ce=RegExp(he.source),Oe=RegExp(be.source),rt=/<%-([\s\S]+?)%>/g,Wt=/<%([\s\S]+?)%>/g,ln=/<%=([\s\S]+?)%>/g,sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vd=/^\w*$/,uv=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Vf=/[\\^$.*+?()[\]{}|]/g,TM=RegExp(Vf.source),pv=/^\s+/,bM=/\s/,EM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,AM=/\{\n\/\* \[wrapped with (.+)\] \*/,SM=/,? & /,PM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,CM=/[()=,{}\[\]\/\s]/,xM=/\\(\\)?/g,IM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,sx=/\w*$/,OM=/^[-+]0x[0-9a-f]+$/i,NM=/^0b[01]+$/i,LM=/^\[object .+?Constructor\]$/,RM=/^0o[0-7]+$/i,FM=/^(?:0|[1-9]\d*)$/,DM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Td=/($^)/,_M=/['\n\r\u2028\u2029\\]/g,bd="\\ud800-\\udfff",VM="\\u0300-\\u036f",wM="\\ufe20-\\ufe2f",MM="\\u20d0-\\u20ff",cx=VM+wM+MM,lx="\\u2700-\\u27bf",fx="a-z\\xdf-\\xf6\\xf8-\\xff",kM="\\xac\\xb1\\xd7\\xf7",jM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",UM="\\u2000-\\u206f",$M=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ux="A-Z\\xc0-\\xd6\\xd8-\\xde",px="\\ufe0e\\ufe0f",dx=kM+jM+UM+$M,dv="['\u2019]",BM="["+bd+"]",gx="["+dx+"]",Ed="["+cx+"]",mx="\\d+",HM="["+lx+"]",hx="["+fx+"]",yx="[^"+bd+dx+mx+lx+fx+ux+"]",gv="\\ud83c[\\udffb-\\udfff]",GM="(?:"+Ed+"|"+gv+")",vx="[^"+bd+"]",mv="(?:\\ud83c[\\udde6-\\uddff]){2}",hv="[\\ud800-\\udbff][\\udc00-\\udfff]",Gc="["+ux+"]",Tx="\\u200d",bx="(?:"+hx+"|"+yx+")",WM="(?:"+Gc+"|"+yx+")",Ex="(?:"+dv+"(?:d|ll|m|re|s|t|ve))?",Ax="(?:"+dv+"(?:D|LL|M|RE|S|T|VE))?",Sx=GM+"?",Px="["+px+"]?",KM="(?:"+Tx+"(?:"+[vx,mv,hv].join("|")+")"+Px+Sx+")*",XM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",QM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Cx=Px+Sx+KM,qM="(?:"+[HM,mv,hv].join("|")+")"+Cx,zM="(?:"+[vx+Ed+"?",Ed,mv,hv,BM].join("|")+")",YM=RegExp(dv,"g"),JM=RegExp(Ed,"g"),yv=RegExp(gv+"(?="+gv+")|"+zM+Cx,"g"),ZM=RegExp([Gc+"?"+hx+"+"+Ex+"(?="+[gx,Gc,"$"].join("|")+")",WM+"+"+Ax+"(?="+[gx,Gc+bx,"$"].join("|")+")",Gc+"?"+bx+"+"+Ex,Gc+"+"+Ax,QM,XM,mx,qM].join("|"),"g"),e2=RegExp("["+Tx+bd+cx+px+"]"),t2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,n2=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],i2=-1,tn={};tn[Ff]=tn[Df]=tn[_f]=tn[Ms]=tn[k]=tn[B]=tn[Q]=tn[ce]=tn[Le]=!0,tn[Wn]=tn[Or]=tn[ws]=tn[I]=tn[Nr]=tn[S]=tn[V]=tn[_e]=tn[Qe]=tn[kt]=tn[cn]=tn[ar]=tn[gn]=tn[hi]=tn[Gi]=!1;var qt={};qt[Wn]=qt[Or]=qt[ws]=qt[Nr]=qt[I]=qt[S]=qt[Ff]=qt[Df]=qt[_f]=qt[Ms]=qt[k]=qt[Qe]=qt[kt]=qt[cn]=qt[ar]=qt[gn]=qt[hi]=qt[Gt]=qt[B]=qt[Q]=qt[ce]=qt[Le]=!0,qt[V]=qt[_e]=qt[Gi]=!1;var r2={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},o2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},a2={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},s2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},c2=parseFloat,l2=parseInt,xx=typeof global=="object"&&global&&global.Object===Object&&global,f2=typeof self=="object"&&self&&self.Object===Object&&self,Kn=xx||f2||Function("return this")(),vv=typeof tf=="object"&&tf&&!tf.nodeType&&tf,ks=vv&&typeof Cp=="object"&&Cp&&!Cp.nodeType&&Cp,Ix=ks&&ks.exports===vv,Tv=Ix&&xx.process,Lr=function(){try{var w=ks&&ks.require&&ks.require("util").types;return w||Tv&&Tv.binding&&Tv.binding("util")}catch{}}(),Ox=Lr&&Lr.isArrayBuffer,Nx=Lr&&Lr.isDate,Lx=Lr&&Lr.isMap,Rx=Lr&&Lr.isRegExp,Fx=Lr&&Lr.isSet,Dx=Lr&&Lr.isTypedArray;function cr(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(cr,"apply");function u2(w,X,W,Ae){for(var We=-1,St=w==null?0:w.length;++We<St;){var jn=w[We];X(Ae,jn,W(jn),w)}return Ae}o(u2,"arrayAggregator");function Rr(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae&&X(w[W],W,w)!==!1;);return w}o(Rr,"arrayEach");function p2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(p2,"arrayEachRight");function _x(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae;)if(!X(w[W],W,w))return!1;return!0}o(_x,"arrayEvery");function Da(w,X){for(var W=-1,Ae=w==null?0:w.length,We=0,St=[];++W<Ae;){var jn=w[W];X(jn,W,w)&&(St[We++]=jn)}return St}o(Da,"arrayFilter");function Ad(w,X){var W=w==null?0:w.length;return!!W&&Wc(w,X,0)>-1}o(Ad,"arrayIncludes");function bv(w,X,W){for(var Ae=-1,We=w==null?0:w.length;++Ae<We;)if(W(X,w[Ae]))return!0;return!1}o(bv,"arrayIncludesWith");function fn(w,X){for(var W=-1,Ae=w==null?0:w.length,We=Array(Ae);++W<Ae;)We[W]=X(w[W],W,w);return We}o(fn,"arrayMap");function _a(w,X){for(var W=-1,Ae=X.length,We=w.length;++W<Ae;)w[We+W]=X[W];return w}o(_a,"arrayPush");function Ev(w,X,W,Ae){var We=-1,St=w==null?0:w.length;for(Ae&&St&&(W=w[++We]);++We<St;)W=X(W,w[We],We,w);return W}o(Ev,"arrayReduce");function d2(w,X,W,Ae){var We=w==null?0:w.length;for(Ae&&We&&(W=w[--We]);We--;)W=X(W,w[We],We,w);return W}o(d2,"arrayReduceRight");function Av(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae;)if(X(w[W],W,w))return!0;return!1}o(Av,"arraySome");var g2=Sv("length");function m2(w){return w.split("")}o(m2,"asciiToArray");function h2(w){return w.match(PM)||[]}o(h2,"asciiWords");function Vx(w,X,W){var Ae;return W(w,function(We,St,jn){if(X(We,St,jn))return Ae=St,!1}),Ae}o(Vx,"baseFindKey");function Sd(w,X,W,Ae){for(var We=w.length,St=W+(Ae?1:-1);Ae?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(Sd,"baseFindIndex");function Wc(w,X,W){return X===X?N2(w,X,W):Sd(w,wx,W)}o(Wc,"baseIndexOf");function y2(w,X,W,Ae){for(var We=W-1,St=w.length;++We<St;)if(Ae(w[We],X))return We;return-1}o(y2,"baseIndexOfWith");function wx(w){return w!==w}o(wx,"baseIsNaN");function Mx(w,X){var W=w==null?0:w.length;return W?Cv(w,X)/W:It}o(Mx,"baseMean");function Sv(w){return function(X){return X==null?e:X[w]}}o(Sv,"baseProperty");function Pv(w){return function(X){return w==null?e:w[X]}}o(Pv,"basePropertyOf");function kx(w,X,W,Ae,We){return We(w,function(St,jn,Kt){W=Ae?(Ae=!1,St):X(W,St,jn,Kt)}),W}o(kx,"baseReduce");function T2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(T2,"baseSortBy");function Cv(w,X){for(var W,Ae=-1,We=w.length;++Ae<We;){var St=X(w[Ae]);St!==e&&(W=W===e?St:W+St)}return W}o(Cv,"baseSum");function xv(w,X){for(var W=-1,Ae=Array(w);++W<w;)Ae[W]=X(W);return Ae}o(xv,"baseTimes");function b2(w,X){return fn(X,function(W){return[W,w[W]]})}o(b2,"baseToPairs");function jx(w){return w&&w.slice(0,Hx(w)+1).replace(pv,"")}o(jx,"baseTrim");function lr(w){return function(X){return w(X)}}o(lr,"baseUnary");function Iv(w,X){return fn(X,function(W){return w[W]})}o(Iv,"baseValues");function wf(w,X){return w.has(X)}o(wf,"cacheHas");function Ux(w,X){for(var W=-1,Ae=w.length;++W<Ae&&Wc(X,w[W],0)>-1;);return W}o(Ux,"charsStartIndex");function $x(w,X){for(var W=w.length;W--&&Wc(X,w[W],0)>-1;);return W}o($x,"charsEndIndex");function E2(w,X){for(var W=w.length,Ae=0;W--;)w[W]===X&&++Ae;return Ae}o(E2,"countHolders");var A2=Pv(r2),S2=Pv(o2);function P2(w){return"\\"+s2[w]}o(P2,"escapeStringChar");function C2(w,X){return w==null?e:w[X]}o(C2,"getValue");function Kc(w){return e2.test(w)}o(Kc,"hasUnicode");function x2(w){return t2.test(w)}o(x2,"hasUnicodeWord");function I2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o(I2,"iteratorToArray");function Ov(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae,We){W[++X]=[We,Ae]}),W}o(Ov,"mapToArray");function Bx(w,X){return function(W){return w(X(W))}}o(Bx,"overArg");function Va(w,X){for(var W=-1,Ae=w.length,We=0,St=[];++W<Ae;){var jn=w[W];(jn===X||jn===u)&&(w[W]=u,St[We++]=W)}return St}o(Va,"replaceHolders");function Pd(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=Ae}),W}o(Pd,"setToArray");function O2(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=[Ae,Ae]}),W}o(O2,"setToPairs");function N2(w,X,W){for(var Ae=W-1,We=w.length;++Ae<We;)if(w[Ae]===X)return Ae;return-1}o(N2,"strictIndexOf");function L2(w,X,W){for(var Ae=W+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(L2,"strictLastIndexOf");function Xc(w){return Kc(w)?F2(w):g2(w)}o(Xc,"stringSize");function Zr(w){return Kc(w)?D2(w):m2(w)}o(Zr,"stringToArray");function Hx(w){for(var X=w.length;X--&&bM.test(w.charAt(X)););return X}o(Hx,"trimmedEndIndex");var R2=Pv(a2);function F2(w){for(var X=yv.lastIndex=0;yv.test(w);)++X;return X}o(F2,"unicodeSize");function D2(w){return w.match(yv)||[]}o(D2,"unicodeToArray");function _2(w){return w.match(ZM)||[]}o(_2,"unicodeWords");var V2=o(function w(X){X=X==null?Kn:wa.defaults(Kn.Object(),X,wa.pick(Kn,n2));var W=X.Array,Ae=X.Date,We=X.Error,St=X.Function,jn=X.Math,Kt=X.Object,Nv=X.RegExp,w2=X.String,Fr=X.TypeError,Cd=W.prototype,M2=St.prototype,Qc=Kt.prototype,xd=X["__core-js_shared__"],Id=M2.toString,Ft=Qc.hasOwnProperty,k2=0,Gx=function(){var c=/[^.]+$/.exec(xd&&xd.keys&&xd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Od=Qc.toString,j2=Id.call(Kt),U2=Kn._,$2=Nv("^"+Id.call(Ft).replace(Vf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Nd=Ix?X.Buffer:e,Ma=X.Symbol,Ld=X.Uint8Array,Wx=Nd?Nd.allocUnsafe:e,Rd=Bx(Kt.getPrototypeOf,Kt),Kx=Kt.create,Xx=Qc.propertyIsEnumerable,Fd=Cd.splice,Qx=Ma?Ma.isConcatSpreadable:e,Mf=Ma?Ma.iterator:e,js=Ma?Ma.toStringTag:e,Dd=function(){try{var c=Gs(Kt,"defineProperty");return c({},"",{}),c}catch{}}(),B2=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,H2=Ae&&Ae.now!==Kn.Date.now&&Ae.now,G2=X.setTimeout!==Kn.setTimeout&&X.setTimeout,_d=jn.ceil,Vd=jn.floor,Lv=Kt.getOwnPropertySymbols,W2=Nd?Nd.isBuffer:e,qx=X.isFinite,K2=Cd.join,X2=Bx(Kt.keys,Kt),Un=jn.max,yi=jn.min,Q2=Ae.now,q2=X.parseInt,zx=jn.random,z2=Cd.reverse,Rv=Gs(X,"DataView"),kf=Gs(X,"Map"),Fv=Gs(X,"Promise"),qc=Gs(X,"Set"),jf=Gs(X,"WeakMap"),Uf=Gs(Kt,"create"),wd=jf&&new jf,zc={},Y2=Ws(Rv),J2=Ws(kf),Z2=Ws(Fv),ek=Ws(qc),tk=Ws(jf),Md=Ma?Ma.prototype:e,$f=Md?Md.valueOf:e,Yx=Md?Md.toString:e;function P(c){if(Tn(c)&&!Xe(c)&&!(c instanceof pt)){if(c instanceof Dr)return c;if(Ft.call(c,"__wrapped__"))return JI(c)}return new Dr(c)}o(P,"lodash");var Yc=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(Kx)return Kx(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function kd(){}o(kd,"baseLodash");function Dr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Dr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Wt,interpolate:ln,variable:"",imports:{_:P}},P.prototype=kd.prototype,P.prototype.constructor=P,Dr.prototype=Yc(kd.prototype),Dr.prototype.constructor=Dr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Mt,this.__views__=[]}o(pt,"LazyWrapper");function nk(){var c=new pt(this.__wrapped__);return c.__actions__=Wi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Wi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Wi(this.__views__),c}o(nk,"lazyClone");function ik(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(ik,"lazyReverse");function rk(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),v=f<0,E=d?c.length:0,x=hj(0,E,this.__views__),L=x.start,R=x.end,M=R-L,Y=v?R:L-1,J=this.__iteratees__,ee=J.length,me=0,Ne=yi(M,this.__takeCount__);if(!d||!v&&E==M&&Ne==M)return EI(c,this.__actions__);var Me=[];e:for(;M--&&me<Ne;){Y+=f;for(var Ze=-1,ke=c[Y];++Ze<ee;){var st=J[Ze],gt=st.iteratee,pr=st.type,Ri=gt(ke);if(pr==Gn)ke=Ri;else if(!Ri){if(pr==an)continue e;break e}}Me[me++]=ke}return Me}o(rk,"lazyValue"),pt.prototype=Yc(kd.prototype),pt.prototype.constructor=pt;function Us(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(Us,"Hash");function ok(){this.__data__=Uf?Uf(null):{},this.size=0}o(ok,"hashClear");function ak(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(ak,"hashDelete");function sk(c){var f=this.__data__;if(Uf){var d=f[c];return d===s?e:d}return Ft.call(f,c)?f[c]:e}o(sk,"hashGet");function ck(c){var f=this.__data__;return Uf?f[c]!==e:Ft.call(f,c)}o(ck,"hashHas");function lk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Uf&&f===e?s:f,this}o(lk,"hashSet"),Us.prototype.clear=ok,Us.prototype.delete=ak,Us.prototype.get=sk,Us.prototype.has=ck,Us.prototype.set=lk;function Yo(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(Yo,"ListCache");function fk(){this.__data__=[],this.size=0}o(fk,"listCacheClear");function uk(c){var f=this.__data__,d=jd(f,c);if(d<0)return!1;var v=f.length-1;return d==v?f.pop():Fd.call(f,d,1),--this.size,!0}o(uk,"listCacheDelete");function pk(c){var f=this.__data__,d=jd(f,c);return d<0?e:f[d][1]}o(pk,"listCacheGet");function dk(c){return jd(this.__data__,c)>-1}o(dk,"listCacheHas");function gk(c,f){var d=this.__data__,v=jd(d,c);return v<0?(++this.size,d.push([c,f])):d[v][1]=f,this}o(gk,"listCacheSet"),Yo.prototype.clear=fk,Yo.prototype.delete=uk,Yo.prototype.get=pk,Yo.prototype.has=dk,Yo.prototype.set=gk;function Jo(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(Jo,"MapCache");function mk(){this.size=0,this.__data__={hash:new Us,map:new(kf||Yo),string:new Us}}o(mk,"mapCacheClear");function hk(c){var f=Yd(this,c).delete(c);return this.size-=f?1:0,f}o(hk,"mapCacheDelete");function yk(c){return Yd(this,c).get(c)}o(yk,"mapCacheGet");function vk(c){return Yd(this,c).has(c)}o(vk,"mapCacheHas");function Tk(c,f){var d=Yd(this,c),v=d.size;return d.set(c,f),this.size+=d.size==v?0:1,this}o(Tk,"mapCacheSet"),Jo.prototype.clear=mk,Jo.prototype.delete=hk,Jo.prototype.get=yk,Jo.prototype.has=vk,Jo.prototype.set=Tk;function $s(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Jo;++f<d;)this.add(c[f])}o($s,"SetCache");function bk(c){return this.__data__.set(c,s),this}o(bk,"setCacheAdd");function Ek(c){return this.__data__.has(c)}o(Ek,"setCacheHas"),$s.prototype.add=$s.prototype.push=bk,$s.prototype.has=Ek;function eo(c){var f=this.__data__=new Yo(c);this.size=f.size}o(eo,"Stack");function Ak(){this.__data__=new Yo,this.size=0}o(Ak,"stackClear");function Sk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Sk,"stackDelete");function Pk(c){return this.__data__.get(c)}o(Pk,"stackGet");function Ck(c){return this.__data__.has(c)}o(Ck,"stackHas");function xk(c,f){var d=this.__data__;if(d instanceof Yo){var v=d.__data__;if(!kf||v.length<n-1)return v.push([c,f]),this.size=++d.size,this;d=this.__data__=new Jo(v)}return d.set(c,f),this.size=d.size,this}o(xk,"stackSet"),eo.prototype.clear=Ak,eo.prototype.delete=Sk,eo.prototype.get=Pk,eo.prototype.has=Ck,eo.prototype.set=xk;function Jx(c,f){var d=Xe(c),v=!d&&Ks(c),E=!d&&!v&&Ba(c),x=!d&&!v&&!E&&tl(c),L=d||v||E||x,R=L?xv(c.length,w2):[],M=R.length;for(var Y in c)(f||Ft.call(c,Y))&&!(L&&(Y=="length"||E&&(Y=="offset"||Y=="parent")||x&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||na(Y,M)))&&R.push(Y);return R}o(Jx,"arrayLikeKeys");function Zx(c){var f=c.length;return f?c[Hv(0,f-1)]:e}o(Zx,"arraySample");function Ik(c,f){return Jd(Wi(c),Bs(f,0,c.length))}o(Ik,"arraySampleSize");function Ok(c){return Jd(Wi(c))}o(Ok,"arrayShuffle");function Dv(c,f,d){(d!==e&&!to(c[f],d)||d===e&&!(f in c))&&Zo(c,f,d)}o(Dv,"assignMergeValue");function Bf(c,f,d){var v=c[f];(!(Ft.call(c,f)&&to(v,d))||d===e&&!(f in c))&&Zo(c,f,d)}o(Bf,"assignValue");function jd(c,f){for(var d=c.length;d--;)if(to(c[d][0],f))return d;return-1}o(jd,"assocIndexOf");function Nk(c,f,d,v){return ka(c,function(E,x,L){f(v,E,d(E),L)}),v}o(Nk,"baseAggregator");function eI(c,f){return c&&Po(f,Xn(f),c)}o(eI,"baseAssign");function Lk(c,f){return c&&Po(f,Xi(f),c)}o(Lk,"baseAssignIn");function Zo(c,f,d){f=="__proto__"&&Dd?Dd(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Zo,"baseAssignValue");function _v(c,f){for(var d=-1,v=f.length,E=W(v),x=c==null;++d<v;)E[d]=x?e:gT(c,f[d]);return E}o(_v,"baseAt");function Bs(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(Bs,"baseClamp");function _r(c,f,d,v,E,x){var L,R=f&p,M=f&g,Y=f&m;if(d&&(L=E?d(c,v,E,x):d(c)),L!==e)return L;if(!hn(c))return c;var J=Xe(c);if(J){if(L=vj(c),!R)return Wi(c,L)}else{var ee=vi(c),me=ee==_e||ee==Rt;if(Ba(c))return PI(c,R);if(ee==cn||ee==Wn||me&&!E){if(L=M||me?{}:HI(c),!R)return M?sj(c,Lk(L,c)):aj(c,eI(L,c))}else{if(!qt[ee])return E?c:{};L=Tj(c,ee,R)}}x||(x=new eo);var Ne=x.get(c);if(Ne)return Ne;x.set(c,L),vO(c)?c.forEach(function(ke){L.add(_r(ke,f,d,ke,c,x))}):hO(c)&&c.forEach(function(ke,st){L.set(st,_r(ke,f,d,st,c,x))});var Me=Y?M?eT:Zv:M?Xi:Xn,Ze=J?e:Me(c);return Rr(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),Bf(L,st,_r(ke,f,d,st,c,x))}),L}o(_r,"baseClone");function Rk(c){var f=Xn(c);return function(d){return tI(d,c,f)}}o(Rk,"baseConforms");function tI(c,f,d){var v=d.length;if(c==null)return!v;for(c=Kt(c);v--;){var E=d[v],x=f[E],L=c[E];if(L===e&&!(E in c)||!x(L))return!1}return!0}o(tI,"baseConformsTo");function nI(c,f,d){if(typeof c!="function")throw new Fr(r);return qf(function(){c.apply(e,d)},f)}o(nI,"baseDelay");function Hf(c,f,d,v){var E=-1,x=Ad,L=!0,R=c.length,M=[],Y=f.length;if(!R)return M;d&&(f=fn(f,lr(d))),v?(x=bv,L=!1):f.length>=n&&(x=wf,L=!1,f=new $s(f));e:for(;++E<R;){var J=c[E],ee=d==null?J:d(J);if(J=v||J!==0?J:0,L&&ee===ee){for(var me=Y;me--;)if(f[me]===ee)continue e;M.push(J)}else x(f,ee,v)||M.push(J)}return M}o(Hf,"baseDifference");var ka=NI(So),iI=NI(wv,!0);function Fk(c,f){var d=!0;return ka(c,function(v,E,x){return d=!!f(v,E,x),d}),d}o(Fk,"baseEvery");function Ud(c,f,d){for(var v=-1,E=c.length;++v<E;){var x=c[v],L=f(x);if(L!=null&&(R===e?L===L&&!ur(L):d(L,R)))var R=L,M=x}return M}o(Ud,"baseExtremum");function Dk(c,f,d,v){var E=c.length;for(d=Je(d),d<0&&(d=-d>E?0:E+d),v=v===e||v>E?E:Je(v),v<0&&(v+=E),v=d>v?0:bO(v);d<v;)c[d++]=f;return c}o(Dk,"baseFill");function rI(c,f){var d=[];return ka(c,function(v,E,x){f(v,E,x)&&d.push(v)}),d}o(rI,"baseFilter");function ni(c,f,d,v,E){var x=-1,L=c.length;for(d||(d=Ej),E||(E=[]);++x<L;){var R=c[x];f>0&&d(R)?f>1?ni(R,f-1,d,v,E):_a(E,R):v||(E[E.length]=R)}return E}o(ni,"baseFlatten");var Vv=LI(),oI=LI(!0);function So(c,f){return c&&Vv(c,f,Xn)}o(So,"baseForOwn");function wv(c,f){return c&&oI(c,f,Xn)}o(wv,"baseForOwnRight");function $d(c,f){return Da(f,function(d){return ia(c[d])})}o($d,"baseFunctions");function Hs(c,f){f=Ua(f,c);for(var d=0,v=f.length;c!=null&&d<v;)c=c[Co(f[d++])];return d&&d==v?c:e}o(Hs,"baseGet");function aI(c,f,d){var v=f(c);return Xe(c)?v:_a(v,d(c))}o(aI,"baseGetAllKeys");function Ni(c){return c==null?c===e?zo:vn:js&&js in Kt(c)?mj(c):Oj(c)}o(Ni,"baseGetTag");function Mv(c,f){return c>f}o(Mv,"baseGt");function _k(c,f){return c!=null&&Ft.call(c,f)}o(_k,"baseHas");function Vk(c,f){return c!=null&&f in Kt(c)}o(Vk,"baseHasIn");function wk(c,f,d){return c>=yi(f,d)&&c<Un(f,d)}o(wk,"baseInRange");function kv(c,f,d){for(var v=d?bv:Ad,E=c[0].length,x=c.length,L=x,R=W(x),M=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=fn(J,lr(f))),M=yi(J.length,M),R[L]=!d&&(f||E>=120&&J.length>=120)?new $s(L&&J):e}J=c[0];var ee=-1,me=R[0];e:for(;++ee<E&&Y.length<M;){var Ne=J[ee],Me=f?f(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(me?wf(me,Me):v(Y,Me,d))){for(L=x;--L;){var Ze=R[L];if(!(Ze?wf(Ze,Me):v(c[L],Me,d)))continue e}me&&me.push(Me),Y.push(Ne)}}return Y}o(kv,"baseIntersection");function Mk(c,f,d,v){return So(c,function(E,x,L){f(v,d(E),x,L)}),v}o(Mk,"baseInverter");function Gf(c,f,d){f=Ua(f,c),c=XI(c,f);var v=c==null?c:c[Co(wr(f))];return v==null?e:cr(v,c,d)}o(Gf,"baseInvoke");function sI(c){return Tn(c)&&Ni(c)==Wn}o(sI,"baseIsArguments");function kk(c){return Tn(c)&&Ni(c)==ws}o(kk,"baseIsArrayBuffer");function jk(c){return Tn(c)&&Ni(c)==S}o(jk,"baseIsDate");function Wf(c,f,d,v,E){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:Uk(c,f,d,v,Wf,E)}o(Wf,"baseIsEqual");function Uk(c,f,d,v,E,x){var L=Xe(c),R=Xe(f),M=L?Or:vi(c),Y=R?Or:vi(f);M=M==Wn?cn:M,Y=Y==Wn?cn:Y;var J=M==cn,ee=Y==cn,me=M==Y;if(me&&Ba(c)){if(!Ba(f))return!1;L=!0,J=!1}if(me&&!J)return x||(x=new eo),L||tl(c)?UI(c,f,d,v,E,x):dj(c,f,M,d,v,E,x);if(!(d&T)){var Ne=J&&Ft.call(c,"__wrapped__"),Me=ee&&Ft.call(f,"__wrapped__");if(Ne||Me){var Ze=Ne?c.value():c,ke=Me?f.value():f;return x||(x=new eo),E(Ze,ke,d,v,x)}}return me?(x||(x=new eo),gj(c,f,d,v,E,x)):!1}o(Uk,"baseIsEqualDeep");function $k(c){return Tn(c)&&vi(c)==Qe}o($k,"baseIsMap");function jv(c,f,d,v){var E=d.length,x=E,L=!v;if(c==null)return!x;for(c=Kt(c);E--;){var R=d[E];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++E<x;){R=d[E];var M=R[0],Y=c[M],J=R[1];if(L&&R[2]){if(Y===e&&!(M in c))return!1}else{var ee=new eo;if(v)var me=v(Y,J,M,c,f,ee);if(!(me===e?Wf(J,Y,T|A,v,ee):me))return!1}}return!0}o(jv,"baseIsMatch");function cI(c){if(!hn(c)||Sj(c))return!1;var f=ia(c)?$2:LM;return f.test(Ws(c))}o(cI,"baseIsNative");function Bk(c){return Tn(c)&&Ni(c)==ar}o(Bk,"baseIsRegExp");function Hk(c){return Tn(c)&&vi(c)==gn}o(Hk,"baseIsSet");function Gk(c){return Tn(c)&&rg(c.length)&&!!tn[Ni(c)]}o(Gk,"baseIsTypedArray");function lI(c){return typeof c=="function"?c:c==null?Qi:typeof c=="object"?Xe(c)?pI(c[0],c[1]):uI(c):RO(c)}o(lI,"baseIteratee");function Uv(c){if(!Qf(c))return X2(c);var f=[];for(var d in Kt(c))Ft.call(c,d)&&d!="constructor"&&f.push(d);return f}o(Uv,"baseKeys");function Wk(c){if(!hn(c))return Ij(c);var f=Qf(c),d=[];for(var v in c)v=="constructor"&&(f||!Ft.call(c,v))||d.push(v);return d}o(Wk,"baseKeysIn");function $v(c,f){return c<f}o($v,"baseLt");function fI(c,f){var d=-1,v=Ki(c)?W(c.length):[];return ka(c,function(E,x,L){v[++d]=f(E,x,L)}),v}o(fI,"baseMap");function uI(c){var f=nT(c);return f.length==1&&f[0][2]?WI(f[0][0],f[0][1]):function(d){return d===c||jv(d,c,f)}}o(uI,"baseMatches");function pI(c,f){return rT(c)&&GI(f)?WI(Co(c),f):function(d){var v=gT(d,c);return v===e&&v===f?mT(d,c):Wf(f,v,T|A)}}o(pI,"baseMatchesProperty");function Bd(c,f,d,v,E){c!==f&&Vv(f,function(x,L){if(E||(E=new eo),hn(x))Kk(c,f,L,d,Bd,v,E);else{var R=v?v(aT(c,L),x,L+"",c,f,E):e;R===e&&(R=x),Dv(c,L,R)}},Xi)}o(Bd,"baseMerge");function Kk(c,f,d,v,E,x,L){var R=aT(c,d),M=aT(f,d),Y=L.get(M);if(Y){Dv(c,d,Y);return}var J=x?x(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var me=Xe(M),Ne=!me&&Ba(M),Me=!me&&!Ne&&tl(M);J=M,me||Ne||Me?Xe(R)?J=R:In(R)?J=Wi(R):Ne?(ee=!1,J=PI(M,!0)):Me?(ee=!1,J=CI(M,!0)):J=[]:zf(M)||Ks(M)?(J=R,Ks(R)?J=EO(R):(!hn(R)||ia(R))&&(J=HI(M))):ee=!1}ee&&(L.set(M,J),E(J,M,v,x,L),L.delete(M)),Dv(c,d,J)}o(Kk,"baseMergeDeep");function dI(c,f){var d=c.length;if(d)return f+=f<0?d:0,na(f,d)?c[f]:e}o(dI,"baseNth");function gI(c,f,d){f.length?f=fn(f,function(x){return Xe(x)?function(L){return Hs(L,x.length===1?x[0]:x)}:x}):f=[Qi];var v=-1;f=fn(f,lr(Ve()));var E=fI(c,function(x,L,R){var M=fn(f,function(Y){return Y(x)});return{criteria:M,index:++v,value:x}});return T2(E,function(x,L){return oj(x,L,d)})}o(gI,"baseOrderBy");function Xk(c,f){return mI(c,f,function(d,v){return mT(c,v)})}o(Xk,"basePick");function mI(c,f,d){for(var v=-1,E=f.length,x={};++v<E;){var L=f[v],R=Hs(c,L);d(R,L)&&Kf(x,Ua(L,c),R)}return x}o(mI,"basePickBy");function Qk(c){return function(f){return Hs(f,c)}}o(Qk,"basePropertyDeep");function Bv(c,f,d,v){var E=v?y2:Wc,x=-1,L=f.length,R=c;for(c===f&&(f=Wi(f)),d&&(R=fn(c,lr(d)));++x<L;)for(var M=0,Y=f[x],J=d?d(Y):Y;(M=E(R,J,M,v))>-1;)R!==c&&Fd.call(R,M,1),Fd.call(c,M,1);return c}o(Bv,"basePullAll");function hI(c,f){for(var d=c?f.length:0,v=d-1;d--;){var E=f[d];if(d==v||E!==x){var x=E;na(E)?Fd.call(c,E,1):Kv(c,E)}}return c}o(hI,"basePullAt");function Hv(c,f){return c+Vd(zx()*(f-c+1))}o(Hv,"baseRandom");function qk(c,f,d,v){for(var E=-1,x=Un(_d((f-c)/(d||1)),0),L=W(x);x--;)L[v?x:++E]=c,c+=d;return L}o(qk,"baseRange");function Gv(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Vd(f/2),f&&(c+=c);while(f);return d}o(Gv,"baseRepeat");function nt(c,f){return sT(KI(c,f,Qi),c+"")}o(nt,"baseRest");function zk(c){return Zx(nl(c))}o(zk,"baseSample");function Yk(c,f){var d=nl(c);return Jd(d,Bs(f,0,d.length))}o(Yk,"baseSampleSize");function Kf(c,f,d,v){if(!hn(c))return c;f=Ua(f,c);for(var E=-1,x=f.length,L=x-1,R=c;R!=null&&++E<x;){var M=Co(f[E]),Y=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(E!=L){var J=R[M];Y=v?v(J,M,R):e,Y===e&&(Y=hn(J)?J:na(f[E+1])?[]:{})}Bf(R,M,Y),R=R[M]}return c}o(Kf,"baseSet");var yI=wd?function(c,f){return wd.set(c,f),c}:Qi,Jk=Dd?function(c,f){return Dd(c,"toString",{configurable:!0,enumerable:!1,value:yT(f),writable:!0})}:Qi;function Zk(c){return Jd(nl(c))}o(Zk,"baseShuffle");function Vr(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 x=W(E);++v<E;)x[v]=c[v+f];return x}o(Vr,"baseSlice");function ej(c,f){var d;return ka(c,function(v,E,x){return d=f(v,E,x),!d}),!!d}o(ej,"baseSome");function Hd(c,f,d){var v=0,E=c==null?v:c.length;if(typeof f=="number"&&f===f&&E<=Hi){for(;v<E;){var x=v+E>>>1,L=c[x];L!==null&&!ur(L)&&(d?L<=f:L<f)?v=x+1:E=x}return E}return Wv(c,f,Qi,d)}o(Hd,"baseSortedIndex");function Wv(c,f,d,v){var E=0,x=c==null?0:c.length;if(x===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=ur(f),Y=f===e;E<x;){var J=Vd((E+x)/2),ee=d(c[J]),me=ee!==e,Ne=ee===null,Me=ee===ee,Ze=ur(ee);if(L)var ke=v||Me;else Y?ke=Me&&(v||me):R?ke=Me&&me&&(v||!Ne):M?ke=Me&&me&&!Ne&&(v||!Ze):Ne||Ze?ke=!1:ke=v?ee<=f:ee<f;ke?E=J+1:x=J}return yi(x,sn)}o(Wv,"baseSortedIndexBy");function vI(c,f){for(var d=-1,v=c.length,E=0,x=[];++d<v;){var L=c[d],R=f?f(L):L;if(!d||!to(R,M)){var M=R;x[E++]=L===0?0:L}}return x}o(vI,"baseSortedUniq");function TI(c){return typeof c=="number"?c:ur(c)?It:+c}o(TI,"baseToNumber");function fr(c){if(typeof c=="string")return c;if(Xe(c))return fn(c,fr)+"";if(ur(c))return Yx?Yx.call(c):"";var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(fr,"baseToString");function ja(c,f,d){var v=-1,E=Ad,x=c.length,L=!0,R=[],M=R;if(d)L=!1,E=bv;else if(x>=n){var Y=f?null:uj(c);if(Y)return Pd(Y);L=!1,E=wf,M=new $s}else M=f?[]:R;e:for(;++v<x;){var J=c[v],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var me=M.length;me--;)if(M[me]===ee)continue e;f&&M.push(ee),R.push(J)}else E(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(ja,"baseUniq");function Kv(c,f){return f=Ua(f,c),c=XI(c,f),c==null||delete c[Co(wr(f))]}o(Kv,"baseUnset");function bI(c,f,d,v){return Kf(c,f,d(Hs(c,f)),v)}o(bI,"baseUpdate");function Gd(c,f,d,v){for(var E=c.length,x=v?E:-1;(v?x--:++x<E)&&f(c[x],x,c););return d?Vr(c,v?0:x,v?x+1:E):Vr(c,v?x+1:0,v?E:x)}o(Gd,"baseWhile");function EI(c,f){var d=c;return d instanceof pt&&(d=d.value()),Ev(f,function(v,E){return E.func.apply(E.thisArg,_a([v],E.args))},d)}o(EI,"baseWrapperValue");function Xv(c,f,d){var v=c.length;if(v<2)return v?ja(c[0]):[];for(var E=-1,x=W(v);++E<v;)for(var L=c[E],R=-1;++R<v;)R!=E&&(x[E]=Hf(x[E]||L,c[R],f,d));return ja(ni(x,1),f,d)}o(Xv,"baseXor");function AI(c,f,d){for(var v=-1,E=c.length,x=f.length,L={};++v<E;){var R=v<x?f[v]:e;d(L,c[v],R)}return L}o(AI,"baseZipObject");function Qv(c){return In(c)?c:[]}o(Qv,"castArrayLikeObject");function qv(c){return typeof c=="function"?c:Qi}o(qv,"castFunction");function Ua(c,f){return Xe(c)?c:rT(c,f)?[c]:YI(Ot(c))}o(Ua,"castPath");var tj=nt;function $a(c,f,d){var v=c.length;return d=d===e?v:d,!f&&d>=v?c:Vr(c,f,d)}o($a,"castSlice");var SI=B2||function(c){return Kn.clearTimeout(c)};function PI(c,f){if(f)return c.slice();var d=c.length,v=Wx?Wx(d):new c.constructor(d);return c.copy(v),v}o(PI,"cloneBuffer");function zv(c){var f=new c.constructor(c.byteLength);return new Ld(f).set(new Ld(c)),f}o(zv,"cloneArrayBuffer");function nj(c,f){var d=f?zv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(nj,"cloneDataView");function ij(c){var f=new c.constructor(c.source,sx.exec(c));return f.lastIndex=c.lastIndex,f}o(ij,"cloneRegExp");function rj(c){return $f?Kt($f.call(c)):{}}o(rj,"cloneSymbol");function CI(c,f){var d=f?zv(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(CI,"cloneTypedArray");function xI(c,f){if(c!==f){var d=c!==e,v=c===null,E=c===c,x=ur(c),L=f!==e,R=f===null,M=f===f,Y=ur(f);if(!R&&!Y&&!x&&c>f||x&&L&&M&&!R&&!Y||v&&L&&M||!d&&M||!E)return 1;if(!v&&!x&&!Y&&c<f||Y&&d&&E&&!v&&!x||R&&d&&E||!L&&E||!M)return-1}return 0}o(xI,"compareAscending");function oj(c,f,d){for(var v=-1,E=c.criteria,x=f.criteria,L=E.length,R=d.length;++v<L;){var M=xI(E[v],x[v]);if(M){if(v>=R)return M;var Y=d[v];return M*(Y=="desc"?-1:1)}}return c.index-f.index}o(oj,"compareMultiple");function II(c,f,d,v){for(var E=-1,x=c.length,L=d.length,R=-1,M=f.length,Y=Un(x-L,0),J=W(M+Y),ee=!v;++R<M;)J[R]=f[R];for(;++E<L;)(ee||E<x)&&(J[d[E]]=c[E]);for(;Y--;)J[R++]=c[E++];return J}o(II,"composeArgs");function OI(c,f,d,v){for(var E=-1,x=c.length,L=-1,R=d.length,M=-1,Y=f.length,J=Un(x-R,0),ee=W(J+Y),me=!v;++E<J;)ee[E]=c[E];for(var Ne=E;++M<Y;)ee[Ne+M]=f[M];for(;++L<R;)(me||E<x)&&(ee[Ne+d[L]]=c[E++]);return ee}o(OI,"composeArgsRight");function Wi(c,f){var d=-1,v=c.length;for(f||(f=W(v));++d<v;)f[d]=c[d];return f}o(Wi,"copyArray");function Po(c,f,d,v){var E=!d;d||(d={});for(var x=-1,L=f.length;++x<L;){var R=f[x],M=v?v(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),E?Zo(d,R,M):Bf(d,R,M)}return d}o(Po,"copyObject");function aj(c,f){return Po(c,iT(c),f)}o(aj,"copySymbols");function sj(c,f){return Po(c,$I(c),f)}o(sj,"copySymbolsIn");function Wd(c,f){return function(d,v){var E=Xe(d)?u2:Nk,x=f?f():{};return E(d,c,Ve(v,2),x)}}o(Wd,"createAggregator");function Jc(c){return nt(function(f,d){var v=-1,E=d.length,x=E>1?d[E-1]:e,L=E>2?d[2]:e;for(x=c.length>3&&typeof x=="function"?(E--,x):e,L&&Li(d[0],d[1],L)&&(x=E<3?e:x,E=1),f=Kt(f);++v<E;){var R=d[v];R&&c(f,R,v,x)}return f})}o(Jc,"createAssigner");function NI(c,f){return function(d,v){if(d==null)return d;if(!Ki(d))return c(d,v);for(var E=d.length,x=f?E:-1,L=Kt(d);(f?x--:++x<E)&&v(L[x],x,L)!==!1;);return d}}o(NI,"createBaseEach");function LI(c){return function(f,d,v){for(var E=-1,x=Kt(f),L=v(f),R=L.length;R--;){var M=L[c?R:++E];if(d(x[M],M,x)===!1)break}return f}}o(LI,"createBaseFor");function cj(c,f,d){var v=f&b,E=Xf(c);function x(){var L=this&&this!==Kn&&this instanceof x?E:c;return L.apply(v?d:this,arguments)}return o(x,"wrapper"),x}o(cj,"createBind");function RI(c){return function(f){f=Ot(f);var d=Kc(f)?Zr(f):e,v=d?d[0]:f.charAt(0),E=d?$a(d,1).join(""):f.slice(1);return v[c]()+E}}o(RI,"createCaseFirst");function Zc(c){return function(f){return Ev(NO(OO(f).replace(YM,"")),c,"")}}o(Zc,"createCompounder");function Xf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var d=Yc(c.prototype),v=c.apply(d,f);return hn(v)?v:d}}o(Xf,"createCtor");function lj(c,f,d){var v=Xf(c);function E(){for(var x=arguments.length,L=W(x),R=x,M=el(E);R--;)L[R]=arguments[R];var Y=x<3&&L[0]!==M&&L[x-1]!==M?[]:Va(L,M);if(x-=Y.length,x<d)return wI(c,f,Kd,E.placeholder,e,L,Y,e,e,d-x);var J=this&&this!==Kn&&this instanceof E?v:c;return cr(J,this,L)}return o(E,"wrapper"),E}o(lj,"createCurry");function FI(c){return function(f,d,v){var E=Kt(f);if(!Ki(f)){var x=Ve(d,3);f=Xn(f),d=o(function(R){return x(E[R],R,E)},"predicate")}var L=c(f,d,v);return L>-1?E[x?f[L]:L]:e}}o(FI,"createFind");function DI(c){return ta(function(f){var d=f.length,v=d,E=Dr.prototype.thru;for(c&&f.reverse();v--;){var x=f[v];if(typeof x!="function")throw new Fr(r);if(E&&!L&&zd(x)=="wrapper")var L=new Dr([],!0)}for(v=L?v:d;++v<d;){x=f[v];var R=zd(x),M=R=="wrapper"?tT(x):e;M&&oT(M[0])&&M[1]==(Z|j|U|re)&&!M[4].length&&M[9]==1?L=L[zd(M[0])].apply(L,M[3]):L=x.length==1&&oT(x)?L[R]():L.thru(x)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Xe(J))return L.plant(J).value();for(var ee=0,me=d?f[ee].apply(this,Y):J;++ee<d;)me=f[ee].call(this,me);return me}})}o(DI,"createFlow");function Kd(c,f,d,v,E,x,L,R,M,Y){var J=f&Z,ee=f&b,me=f&O,Ne=f&(j|K),Me=f&Pe,Ze=me?e:Xf(c);function ke(){for(var st=arguments.length,gt=W(st),pr=st;pr--;)gt[pr]=arguments[pr];if(Ne)var Ri=el(ke),dr=E2(gt,Ri);if(v&&(gt=II(gt,v,E,Ne)),x&&(gt=OI(gt,x,L,Ne)),st-=dr,Ne&&st<Y){var On=Va(gt,Ri);return wI(c,f,Kd,ke.placeholder,d,gt,On,R,M,Y-st)}var no=ee?d:this,oa=me?no[c]:c;return st=gt.length,R?gt=Nj(gt,R):Me&&st>1&&gt.reverse(),J&&M<st&&(gt.length=M),this&&this!==Kn&&this instanceof ke&&(oa=Ze||Xf(oa)),oa.apply(no,gt)}return o(ke,"wrapper"),ke}o(Kd,"createHybrid");function _I(c,f){return function(d,v){return Mk(d,c,f(v),{})}}o(_I,"createInverter");function Xd(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=fr(d),v=fr(v)):(d=TI(d),v=TI(v)),E=c(d,v)}return E}}o(Xd,"createMathOperation");function Yv(c){return ta(function(f){return f=fn(f,lr(Ve())),nt(function(d){var v=this;return c(f,function(E){return cr(E,v,d)})})})}o(Yv,"createOver");function Qd(c,f){f=f===e?" ":fr(f);var d=f.length;if(d<2)return d?Gv(f,c):f;var v=Gv(f,_d(c/Xc(f)));return Kc(f)?$a(Zr(v),0,c).join(""):v.slice(0,c)}o(Qd,"createPadding");function fj(c,f,d,v){var E=f&b,x=Xf(c);function L(){for(var R=-1,M=arguments.length,Y=-1,J=v.length,ee=W(J+M),me=this&&this!==Kn&&this instanceof L?x:c;++Y<J;)ee[Y]=v[Y];for(;M--;)ee[Y++]=arguments[++R];return cr(me,E?d:this,ee)}return o(L,"wrapper"),L}o(fj,"createPartial");function VI(c){return function(f,d,v){return v&&typeof v!="number"&&Li(f,d,v)&&(d=v=e),f=ra(f),d===e?(d=f,f=0):d=ra(d),v=v===e?f<d?1:-1:ra(v),qk(f,d,v,c)}}o(VI,"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 wI(c,f,d,v,E,x,L,R,M,Y){var J=f&j,ee=J?L:e,me=J?e:L,Ne=J?x:e,Me=J?e:x;f|=J?U:ae,f&=~(J?ae:U),f&F||(f&=~(b|O));var Ze=[c,f,E,Ne,ee,Me,me,R,M,Y],ke=d.apply(e,Ze);return oT(c)&&QI(ke,Ze),ke.placeholder=v,qI(ke,c,f)}o(wI,"createRecurry");function Jv(c){var f=jn[c];return function(d,v){if(d=Mr(d),v=v==null?0:yi(Je(v),292),v&&qx(d)){var E=(Ot(d)+"e").split("e"),x=f(E[0]+"e"+(+E[1]+v));return E=(Ot(x)+"e").split("e"),+(E[0]+"e"+(+E[1]-v))}return f(d)}}o(Jv,"createRound");var uj=qc&&1/Pd(new qc([,-0]))[1]==Lt?function(c){return new qc(c)}:bT;function MI(c){return function(f){var d=vi(f);return d==Qe?Ov(f):d==gn?O2(f):b2(f,c(f))}}o(MI,"createToPairs");function ea(c,f,d,v,E,x,L,R){var M=f&O;if(!M&&typeof c!="function")throw new Fr(r);var Y=v?v.length:0;if(Y||(f&=~(U|ae),v=E=e),L=L===e?L:Un(Je(L),0),R=R===e?R:Je(R),Y-=E?E.length:0,f&ae){var J=v,ee=E;v=E=e}var me=M?e:tT(c),Ne=[c,f,d,v,E,J,ee,x,L,R];if(me&&xj(Ne,me),c=Ne[0],f=Ne[1],d=Ne[2],v=Ne[3],E=Ne[4],R=Ne[9]=Ne[9]===e?M?0:c.length:Un(Ne[9]-Y,0),!R&&f&(j|K)&&(f&=~(j|K)),!f||f==b)var Me=cj(c,f,d);else f==j||f==K?Me=lj(c,f,R):(f==U||f==(b|U))&&!E.length?Me=fj(c,f,d,v):Me=Kd.apply(e,Ne);var Ze=me?yI:QI;return qI(Ze(Me,Ne),c,f)}o(ea,"createWrap");function kI(c,f,d,v){return c===e||to(c,Qc[d])&&!Ft.call(v,d)?f:c}o(kI,"customDefaultsAssignIn");function jI(c,f,d,v,E,x){return hn(c)&&hn(f)&&(x.set(f,c),Bd(c,f,e,jI,x),x.delete(f)),c}o(jI,"customDefaultsMerge");function pj(c){return zf(c)?e:c}o(pj,"customOmitClone");function UI(c,f,d,v,E,x){var L=d&T,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var Y=x.get(c),J=x.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,me=!0,Ne=d&A?new $s:e;for(x.set(c,f),x.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(v)var ke=L?v(Ze,Me,ee,f,c,x):v(Me,Ze,ee,c,f,x);if(ke!==e){if(ke)continue;me=!1;break}if(Ne){if(!Av(f,function(st,gt){if(!wf(Ne,gt)&&(Me===st||E(Me,st,d,v,x)))return Ne.push(gt)})){me=!1;break}}else if(!(Me===Ze||E(Me,Ze,d,v,x))){me=!1;break}}return x.delete(c),x.delete(f),me}o(UI,"equalArrays");function dj(c,f,d,v,E,x,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case ws:return!(c.byteLength!=f.byteLength||!x(new Ld(c),new Ld(f)));case I:case S:case kt:return to(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ar:case hi:return c==f+"";case Qe:var R=Ov;case gn:var M=v&T;if(R||(R=Pd),c.size!=f.size&&!M)return!1;var Y=L.get(c);if(Y)return Y==f;v|=A,L.set(c,f);var J=UI(R(c),R(f),v,E,x,L);return L.delete(c),J;case Gt:if($f)return $f.call(c)==$f.call(f)}return!1}o(dj,"equalByTag");function gj(c,f,d,v,E,x){var L=d&T,R=Zv(c),M=R.length,Y=Zv(f),J=Y.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var me=R[ee];if(!(L?me in f:Ft.call(f,me)))return!1}var Ne=x.get(c),Me=x.get(f);if(Ne&&Me)return Ne==f&&Me==c;var Ze=!0;x.set(c,f),x.set(f,c);for(var ke=L;++ee<M;){me=R[ee];var st=c[me],gt=f[me];if(v)var pr=L?v(gt,st,me,f,c,x):v(st,gt,me,c,f,x);if(!(pr===e?st===gt||E(st,gt,d,v,x):pr)){Ze=!1;break}ke||(ke=me=="constructor")}if(Ze&&!ke){var Ri=c.constructor,dr=f.constructor;Ri!=dr&&"constructor"in c&&"constructor"in f&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof dr=="function"&&dr instanceof dr)&&(Ze=!1)}return x.delete(c),x.delete(f),Ze}o(gj,"equalObjects");function ta(c){return sT(KI(c,e,tO),c+"")}o(ta,"flatRest");function Zv(c){return aI(c,Xn,iT)}o(Zv,"getAllKeys");function eT(c){return aI(c,Xi,$I)}o(eT,"getAllKeysIn");var tT=wd?function(c){return wd.get(c)}:bT;function zd(c){for(var f=c.name+"",d=zc[f],v=Ft.call(zc,f)?d.length:0;v--;){var E=d[v],x=E.func;if(x==null||x==c)return E.name}return f}o(zd,"getFuncName");function el(c){var f=Ft.call(P,"placeholder")?P:c;return f.placeholder}o(el,"getHolder");function Ve(){var c=P.iteratee||vT;return c=c===vT?lI:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function Yd(c,f){var d=c.__data__;return Aj(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(Yd,"getMapData");function nT(c){for(var f=Xn(c),d=f.length;d--;){var v=f[d],E=c[v];f[d]=[v,E,GI(E)]}return f}o(nT,"getMatchData");function Gs(c,f){var d=C2(c,f);return cI(d)?d:e}o(Gs,"getNative");function mj(c){var f=Ft.call(c,js),d=c[js];try{c[js]=e;var v=!0}catch{}var E=Od.call(c);return v&&(f?c[js]=d:delete c[js]),E}o(mj,"getRawTag");var iT=Lv?function(c){return c==null?[]:(c=Kt(c),Da(Lv(c),function(f){return Xx.call(c,f)}))}:ET,$I=Lv?function(c){for(var f=[];c;)_a(f,iT(c)),c=Rd(c);return f}:ET,vi=Ni;(Rv&&vi(new Rv(new ArrayBuffer(1)))!=Nr||kf&&vi(new kf)!=Qe||Fv&&vi(Fv.resolve())!=Ht||qc&&vi(new qc)!=gn||jf&&vi(new jf)!=Gi)&&(vi=o(function(c){var f=Ni(c),d=f==cn?c.constructor:e,v=d?Ws(d):"";if(v)switch(v){case Y2:return Nr;case J2:return Qe;case Z2:return Ht;case ek:return gn;case tk:return Gi}return f},"getTag"));function hj(c,f,d){for(var v=-1,E=d.length;++v<E;){var x=d[v],L=x.size;switch(x.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=yi(f,c+L);break;case"takeRight":c=Un(c,f-L);break}}return{start:c,end:f}}o(hj,"getView");function yj(c){var f=c.match(AM);return f?f[1].split(SM):[]}o(yj,"getWrapDetails");function BI(c,f,d){f=Ua(f,c);for(var v=-1,E=f.length,x=!1;++v<E;){var L=Co(f[v]);if(!(x=c!=null&&d(c,L)))break;c=c[L]}return x||++v!=E?x:(E=c==null?0:c.length,!!E&&rg(E)&&na(L,E)&&(Xe(c)||Ks(c)))}o(BI,"hasPath");function vj(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Ft.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(vj,"initCloneArray");function HI(c){return typeof c.constructor=="function"&&!Qf(c)?Yc(Rd(c)):{}}o(HI,"initCloneObject");function Tj(c,f,d){var v=c.constructor;switch(f){case ws:return zv(c);case I:case S:return new v(+c);case Nr:return nj(c,d);case Ff:case Df:case _f:case Ms:case k:case B:case Q:case ce:case Le:return CI(c,d);case Qe:return new v;case kt:case hi:return new v(c);case ar:return ij(c);case gn:return new v;case Gt:return rj(c)}}o(Tj,"initCloneByTag");function bj(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(EM,`{
267
+ Please avoid using it as it will be completely removed in the future`)}var Y9,Ny=qe(()=>{ZA();Sr();fp();bs();gp();Yl();fS();ji();ji();Xl();ES();uV();TV();o(z9,"clearCache");Y9=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 FS=ze((Zce,xV)=>{var{createToken:J9,Lexer:LS}=(Ny(),mg(Iy)),EV={},tf=EV;function RS(e,t){EV[e]=typeof t=="string"?t:t.source}o(RS,"FRAGMENT");function Cp(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(Cp,"makePattern");var Z9=[],AV={};function xn(e){let t=J9(e);return Z9.push(t),AV[e.name]=t,t}o(xn,"createToken");RS("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");RS("NameChar",Cp`${tf.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);RS("Name",Cp`${tf.NameStartChar}(${tf.NameChar})*`);var bV=xn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),e6=xn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),t6=xn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),n6=xn({name:"DTD",pattern:/<!.*?>/,group:LS.SKIPPED}),i6=xn({name:"EntityRef",pattern:Cp`&${tf.Name};`}),r6=xn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),o6=xn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),a6=xn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),SV=xn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),s6=xn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[SV]}),c6=xn({name:"PROCESSING_INSTRUCTION",pattern:Cp`<\\?${tf.Name}.*\\?>`}),PV=xn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),l6=xn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[PV]}),f6=xn({name:"TEXT",pattern:/[^<&]+/}),u6=xn({name:"CLOSE",pattern:/>/,pop_mode:!0}),p6=xn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),d6=xn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),g6=xn({name:"SLASH",pattern:/\//}),m6=xn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),h6=xn({name:"EQUALS",pattern:/=/}),y6=xn({name:"Name",pattern:Cp`${tf.Name}`}),v6=xn({name:"S",pattern:/[ \t\r\n]/,group:LS.SKIPPED}),T6={defaultMode:"OUTSIDE",modes:{OUTSIDE:[bV,e6,t6,n6,i6,r6,o6,a6,SV,c6,PV,f6],INSIDE:[bV,s6,l6,u6,p6,d6,g6,h6,m6,y6,v6]}},b6=new LS(T6,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
269
+ `],lineTerminatorsPattern:/\n|\r\n/g});xV.exports={xmlLexer:b6,tokensDictionary:AV}});var OV=ze((tle,CV)=>{var{CstParser:E6,tokenMatcher:A6}=(Ny(),mg(Iy)),{tokensDictionary:Ct}=FS(),_S=class _S extends E6{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=>A6(n,a));if(r!==void 0)return r;n=this.LA(i),i++}}};o(_S,"Parser");var DS=_S,S6=new DS;CV.exports={xmlParser:S6}});var VS=ze((ile,IV)=>{var{xmlLexer:P6}=FS(),{xmlParser:Ly}=OV();IV.exports={parse:o(function(t){let n=P6.tokenize(t);return Ly.input=n.tokens,{cst:Ly.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:Ly.errors}},"parse"),BaseXmlCstVisitor:Ly.getBaseCstVisitorConstructor()}});var Ip=ze((nf,Op)=>{(function(){var e,t="4.17.21",n=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",r="Expected a function",a="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,g=2,m=4,v=1,A=2,b=1,I=2,F=4,j=8,K=16,U=32,ae=64,Z=128,re=256,Pe=512,D=30,ut="...",yt=800,Ue=16,sn=1,Gn=2,tn=3,Rt=1/0,Re=9007199254740991,Ii=17976931348623157e292,Ot=NaN,kt=4294967295,cn=kt-1,Hi=kt>>>1,Fe=[["ary",Z],["bind",b],["bindKey",I],["curry",j],["curryRight",K],["flip",Pe],["partial",U],["partialRight",ae],["rearg",re]],Wn="[object Arguments]",Ir="[object Array]",at="[object AsyncFunction]",O="[object Boolean]",S="[object Date]",z="[object DOMException]",V="[object Error]",_e="[object Function]",Ft="[object GeneratorFunction]",Qe="[object Map]",jt="[object Number]",vn="[object Null]",ln="[object Object]",Gt="[object Promise]",ti="[object Proxy]",ar="[object RegExp]",gn="[object Set]",hi="[object String]",Wt="[object Symbol]",zo="[object Undefined]",Gi="[object WeakMap]",Df="[object WeakSet]",Ms="[object ArrayBuffer]",Nr="[object DataView]",_f="[object Float32Array]",Vf="[object Float64Array]",wf="[object Int8Array]",ks="[object Int16Array]",k="[object Int32Array]",B="[object Uint8Array]",Q="[object Uint8ClampedArray]",ce="[object Uint16Array]",Le="[object Uint32Array]",mn=/\b__p \+= '';/g,Cn=/\b(__p \+=) '' \+/g,tt=/(__e\(.*?\)|\b__t\)) \+\n'';/g,he=/&(?:amp|lt|gt|quot|#39);/g,be=/[&<>"']/g,xe=RegExp(he.source),Ie=RegExp(be.source),rt=/<%-([\s\S]+?)%>/g,Kt=/<%([\s\S]+?)%>/g,fn=/<%=([\s\S]+?)%>/g,sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,xd=/^\w*$/,Ev=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mf=/[\\^$.*+?()[\]{}|]/g,DM=RegExp(Mf.source),Av=/^\s+/,_M=/\s/,VM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,wM=/\{\n\/\* \[wrapped with (.+)\] \*/,MM=/,? & /,kM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jM=/[()=,{}\[\]\/\s]/,UM=/\\(\\)?/g,$M=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,vC=/\w*$/,BM=/^[-+]0x[0-9a-f]+$/i,HM=/^0b[01]+$/i,GM=/^\[object .+?Constructor\]$/,WM=/^0o[0-7]+$/i,KM=/^(?:0|[1-9]\d*)$/,XM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Cd=/($^)/,QM=/['\n\r\u2028\u2029\\]/g,Od="\\ud800-\\udfff",qM="\\u0300-\\u036f",zM="\\ufe20-\\ufe2f",YM="\\u20d0-\\u20ff",TC=qM+zM+YM,bC="\\u2700-\\u27bf",EC="a-z\\xdf-\\xf6\\xf8-\\xff",JM="\\xac\\xb1\\xd7\\xf7",ZM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",e2="\\u2000-\\u206f",t2=" \\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",AC="A-Z\\xc0-\\xd6\\xd8-\\xde",SC="\\ufe0e\\ufe0f",PC=JM+ZM+e2+t2,Sv="['\u2019]",n2="["+Od+"]",xC="["+PC+"]",Id="["+TC+"]",CC="\\d+",i2="["+bC+"]",OC="["+EC+"]",IC="[^"+Od+PC+CC+bC+EC+AC+"]",Pv="\\ud83c[\\udffb-\\udfff]",r2="(?:"+Id+"|"+Pv+")",NC="[^"+Od+"]",xv="(?:\\ud83c[\\udde6-\\uddff]){2}",Cv="[\\ud800-\\udbff][\\udc00-\\udfff]",Wc="["+AC+"]",LC="\\u200d",RC="(?:"+OC+"|"+IC+")",o2="(?:"+Wc+"|"+IC+")",FC="(?:"+Sv+"(?:d|ll|m|re|s|t|ve))?",DC="(?:"+Sv+"(?:D|LL|M|RE|S|T|VE))?",_C=r2+"?",VC="["+SC+"]?",a2="(?:"+LC+"(?:"+[NC,xv,Cv].join("|")+")"+VC+_C+")*",s2="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c2="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wC=VC+_C+a2,l2="(?:"+[i2,xv,Cv].join("|")+")"+wC,f2="(?:"+[NC+Id+"?",Id,xv,Cv,n2].join("|")+")",u2=RegExp(Sv,"g"),p2=RegExp(Id,"g"),Ov=RegExp(Pv+"(?="+Pv+")|"+f2+wC,"g"),d2=RegExp([Wc+"?"+OC+"+"+FC+"(?="+[xC,Wc,"$"].join("|")+")",o2+"+"+DC+"(?="+[xC,Wc+RC,"$"].join("|")+")",Wc+"?"+RC+"+"+FC,Wc+"+"+DC,c2,s2,CC,l2].join("|"),"g"),g2=RegExp("["+LC+Od+TC+SC+"]"),m2=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,h2=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],y2=-1,nn={};nn[_f]=nn[Vf]=nn[wf]=nn[ks]=nn[k]=nn[B]=nn[Q]=nn[ce]=nn[Le]=!0,nn[Wn]=nn[Ir]=nn[Ms]=nn[O]=nn[Nr]=nn[S]=nn[V]=nn[_e]=nn[Qe]=nn[jt]=nn[ln]=nn[ar]=nn[gn]=nn[hi]=nn[Gi]=!1;var zt={};zt[Wn]=zt[Ir]=zt[Ms]=zt[Nr]=zt[O]=zt[S]=zt[_f]=zt[Vf]=zt[wf]=zt[ks]=zt[k]=zt[Qe]=zt[jt]=zt[ln]=zt[ar]=zt[gn]=zt[hi]=zt[Wt]=zt[B]=zt[Q]=zt[ce]=zt[Le]=!0,zt[V]=zt[_e]=zt[Gi]=!1;var T2={\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"},b2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},E2={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},A2={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},S2=parseFloat,P2=parseInt,MC=typeof global=="object"&&global&&global.Object===Object&&global,x2=typeof self=="object"&&self&&self.Object===Object&&self,Kn=MC||x2||Function("return this")(),Iv=typeof nf=="object"&&nf&&!nf.nodeType&&nf,js=Iv&&typeof Op=="object"&&Op&&!Op.nodeType&&Op,kC=js&&js.exports===Iv,Nv=kC&&MC.process,Lr=function(){try{var w=js&&js.require&&js.require("util").types;return w||Nv&&Nv.binding&&Nv.binding("util")}catch{}}(),jC=Lr&&Lr.isArrayBuffer,UC=Lr&&Lr.isDate,$C=Lr&&Lr.isMap,BC=Lr&&Lr.isRegExp,HC=Lr&&Lr.isSet,GC=Lr&&Lr.isTypedArray;function cr(w,X,W){switch(W.length){case 0:return w.call(X);case 1:return w.call(X,W[0]);case 2:return w.call(X,W[0],W[1]);case 3:return w.call(X,W[0],W[1],W[2])}return w.apply(X,W)}o(cr,"apply");function C2(w,X,W,Ae){for(var We=-1,St=w==null?0:w.length;++We<St;){var jn=w[We];X(Ae,jn,W(jn),w)}return Ae}o(C2,"arrayAggregator");function Rr(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae&&X(w[W],W,w)!==!1;);return w}o(Rr,"arrayEach");function O2(w,X){for(var W=w==null?0:w.length;W--&&X(w[W],W,w)!==!1;);return w}o(O2,"arrayEachRight");function WC(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae;)if(!X(w[W],W,w))return!1;return!0}o(WC,"arrayEvery");function _a(w,X){for(var W=-1,Ae=w==null?0:w.length,We=0,St=[];++W<Ae;){var jn=w[W];X(jn,W,w)&&(St[We++]=jn)}return St}o(_a,"arrayFilter");function Nd(w,X){var W=w==null?0:w.length;return!!W&&Kc(w,X,0)>-1}o(Nd,"arrayIncludes");function Lv(w,X,W){for(var Ae=-1,We=w==null?0:w.length;++Ae<We;)if(W(X,w[Ae]))return!0;return!1}o(Lv,"arrayIncludesWith");function un(w,X){for(var W=-1,Ae=w==null?0:w.length,We=Array(Ae);++W<Ae;)We[W]=X(w[W],W,w);return We}o(un,"arrayMap");function Va(w,X){for(var W=-1,Ae=X.length,We=w.length;++W<Ae;)w[We+W]=X[W];return w}o(Va,"arrayPush");function Rv(w,X,W,Ae){var We=-1,St=w==null?0:w.length;for(Ae&&St&&(W=w[++We]);++We<St;)W=X(W,w[We],We,w);return W}o(Rv,"arrayReduce");function I2(w,X,W,Ae){var We=w==null?0:w.length;for(Ae&&We&&(W=w[--We]);We--;)W=X(W,w[We],We,w);return W}o(I2,"arrayReduceRight");function Fv(w,X){for(var W=-1,Ae=w==null?0:w.length;++W<Ae;)if(X(w[W],W,w))return!0;return!1}o(Fv,"arraySome");var N2=Dv("length");function L2(w){return w.split("")}o(L2,"asciiToArray");function R2(w){return w.match(kM)||[]}o(R2,"asciiWords");function KC(w,X,W){var Ae;return W(w,function(We,St,jn){if(X(We,St,jn))return Ae=St,!1}),Ae}o(KC,"baseFindKey");function Ld(w,X,W,Ae){for(var We=w.length,St=W+(Ae?1:-1);Ae?St--:++St<We;)if(X(w[St],St,w))return St;return-1}o(Ld,"baseFindIndex");function Kc(w,X,W){return X===X?H2(w,X,W):Ld(w,XC,W)}o(Kc,"baseIndexOf");function F2(w,X,W,Ae){for(var We=W-1,St=w.length;++We<St;)if(Ae(w[We],X))return We;return-1}o(F2,"baseIndexOfWith");function XC(w){return w!==w}o(XC,"baseIsNaN");function QC(w,X){var W=w==null?0:w.length;return W?Vv(w,X)/W:Ot}o(QC,"baseMean");function Dv(w){return function(X){return X==null?e:X[w]}}o(Dv,"baseProperty");function _v(w){return function(X){return w==null?e:w[X]}}o(_v,"basePropertyOf");function qC(w,X,W,Ae,We){return We(w,function(St,jn,Xt){W=Ae?(Ae=!1,St):X(W,St,jn,Xt)}),W}o(qC,"baseReduce");function D2(w,X){var W=w.length;for(w.sort(X);W--;)w[W]=w[W].value;return w}o(D2,"baseSortBy");function Vv(w,X){for(var W,Ae=-1,We=w.length;++Ae<We;){var St=X(w[Ae]);St!==e&&(W=W===e?St:W+St)}return W}o(Vv,"baseSum");function wv(w,X){for(var W=-1,Ae=Array(w);++W<w;)Ae[W]=X(W);return Ae}o(wv,"baseTimes");function _2(w,X){return un(X,function(W){return[W,w[W]]})}o(_2,"baseToPairs");function zC(w){return w&&w.slice(0,eO(w)+1).replace(Av,"")}o(zC,"baseTrim");function lr(w){return function(X){return w(X)}}o(lr,"baseUnary");function Mv(w,X){return un(X,function(W){return w[W]})}o(Mv,"baseValues");function kf(w,X){return w.has(X)}o(kf,"cacheHas");function YC(w,X){for(var W=-1,Ae=w.length;++W<Ae&&Kc(X,w[W],0)>-1;);return W}o(YC,"charsStartIndex");function JC(w,X){for(var W=w.length;W--&&Kc(X,w[W],0)>-1;);return W}o(JC,"charsEndIndex");function V2(w,X){for(var W=w.length,Ae=0;W--;)w[W]===X&&++Ae;return Ae}o(V2,"countHolders");var w2=_v(T2),M2=_v(b2);function k2(w){return"\\"+A2[w]}o(k2,"escapeStringChar");function j2(w,X){return w==null?e:w[X]}o(j2,"getValue");function Xc(w){return g2.test(w)}o(Xc,"hasUnicode");function U2(w){return m2.test(w)}o(U2,"hasUnicodeWord");function $2(w){for(var X,W=[];!(X=w.next()).done;)W.push(X.value);return W}o($2,"iteratorToArray");function kv(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae,We){W[++X]=[We,Ae]}),W}o(kv,"mapToArray");function ZC(w,X){return function(W){return w(X(W))}}o(ZC,"overArg");function wa(w,X){for(var W=-1,Ae=w.length,We=0,St=[];++W<Ae;){var jn=w[W];(jn===X||jn===u)&&(w[W]=u,St[We++]=W)}return St}o(wa,"replaceHolders");function Rd(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=Ae}),W}o(Rd,"setToArray");function B2(w){var X=-1,W=Array(w.size);return w.forEach(function(Ae){W[++X]=[Ae,Ae]}),W}o(B2,"setToPairs");function H2(w,X,W){for(var Ae=W-1,We=w.length;++Ae<We;)if(w[Ae]===X)return Ae;return-1}o(H2,"strictIndexOf");function G2(w,X,W){for(var Ae=W+1;Ae--;)if(w[Ae]===X)return Ae;return Ae}o(G2,"strictLastIndexOf");function Qc(w){return Xc(w)?K2(w):N2(w)}o(Qc,"stringSize");function Zr(w){return Xc(w)?X2(w):L2(w)}o(Zr,"stringToArray");function eO(w){for(var X=w.length;X--&&_M.test(w.charAt(X)););return X}o(eO,"trimmedEndIndex");var W2=_v(E2);function K2(w){for(var X=Ov.lastIndex=0;Ov.test(w);)++X;return X}o(K2,"unicodeSize");function X2(w){return w.match(Ov)||[]}o(X2,"unicodeToArray");function Q2(w){return w.match(d2)||[]}o(Q2,"unicodeWords");var q2=o(function w(X){X=X==null?Kn:Ma.defaults(Kn.Object(),X,Ma.pick(Kn,h2));var W=X.Array,Ae=X.Date,We=X.Error,St=X.Function,jn=X.Math,Xt=X.Object,jv=X.RegExp,z2=X.String,Fr=X.TypeError,Fd=W.prototype,Y2=St.prototype,qc=Xt.prototype,Dd=X["__core-js_shared__"],_d=Y2.toString,Dt=qc.hasOwnProperty,J2=0,tO=function(){var c=/[^.]+$/.exec(Dd&&Dd.keys&&Dd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Vd=qc.toString,Z2=_d.call(Xt),ek=Kn._,tk=jv("^"+_d.call(Dt).replace(Mf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),wd=kC?X.Buffer:e,ka=X.Symbol,Md=X.Uint8Array,nO=wd?wd.allocUnsafe:e,kd=ZC(Xt.getPrototypeOf,Xt),iO=Xt.create,rO=qc.propertyIsEnumerable,jd=Fd.splice,oO=ka?ka.isConcatSpreadable:e,jf=ka?ka.iterator:e,Us=ka?ka.toStringTag:e,Ud=function(){try{var c=Ws(Xt,"defineProperty");return c({},"",{}),c}catch{}}(),nk=X.clearTimeout!==Kn.clearTimeout&&X.clearTimeout,ik=Ae&&Ae.now!==Kn.Date.now&&Ae.now,rk=X.setTimeout!==Kn.setTimeout&&X.setTimeout,$d=jn.ceil,Bd=jn.floor,Uv=Xt.getOwnPropertySymbols,ok=wd?wd.isBuffer:e,aO=X.isFinite,ak=Fd.join,sk=ZC(Xt.keys,Xt),Un=jn.max,yi=jn.min,ck=Ae.now,lk=X.parseInt,sO=jn.random,fk=Fd.reverse,$v=Ws(X,"DataView"),Uf=Ws(X,"Map"),Bv=Ws(X,"Promise"),zc=Ws(X,"Set"),$f=Ws(X,"WeakMap"),Bf=Ws(Xt,"create"),Hd=$f&&new $f,Yc={},uk=Ks($v),pk=Ks(Uf),dk=Ks(Bv),gk=Ks(zc),mk=Ks($f),Gd=ka?ka.prototype:e,Hf=Gd?Gd.valueOf:e,cO=Gd?Gd.toString:e;function P(c){if(Tn(c)&&!Xe(c)&&!(c instanceof pt)){if(c instanceof Dr)return c;if(Dt.call(c,"__wrapped__"))return lI(c)}return new Dr(c)}o(P,"lodash");var Jc=function(){function c(){}return o(c,"object"),function(f){if(!hn(f))return{};if(iO)return iO(f);c.prototype=f;var d=new c;return c.prototype=e,d}}();function Wd(){}o(Wd,"baseLodash");function Dr(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}o(Dr,"LodashWrapper"),P.templateSettings={escape:rt,evaluate:Kt,interpolate:fn,variable:"",imports:{_:P}},P.prototype=Wd.prototype,P.prototype.constructor=P,Dr.prototype=Jc(Wd.prototype),Dr.prototype.constructor=Dr;function pt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=kt,this.__views__=[]}o(pt,"LazyWrapper");function hk(){var c=new pt(this.__wrapped__);return c.__actions__=Wi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Wi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Wi(this.__views__),c}o(hk,"lazyClone");function yk(){if(this.__filtered__){var c=new pt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}o(yk,"lazyReverse");function vk(){var c=this.__wrapped__.value(),f=this.__dir__,d=Xe(c),T=f<0,E=d?c.length:0,C=Lj(0,E,this.__views__),L=C.start,R=C.end,M=R-L,Y=T?R:L-1,J=this.__iteratees__,ee=J.length,me=0,Ne=yi(M,this.__takeCount__);if(!d||!T&&E==M&&Ne==M)return FO(c,this.__actions__);var Me=[];e:for(;M--&&me<Ne;){Y+=f;for(var Ze=-1,ke=c[Y];++Ze<ee;){var st=J[Ze],gt=st.iteratee,pr=st.type,Ri=gt(ke);if(pr==Gn)ke=Ri;else if(!Ri){if(pr==sn)continue e;break e}}Me[me++]=ke}return Me}o(vk,"lazyValue"),pt.prototype=Jc(Wd.prototype),pt.prototype.constructor=pt;function $s(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o($s,"Hash");function Tk(){this.__data__=Bf?Bf(null):{},this.size=0}o(Tk,"hashClear");function bk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}o(bk,"hashDelete");function Ek(c){var f=this.__data__;if(Bf){var d=f[c];return d===s?e:d}return Dt.call(f,c)?f[c]:e}o(Ek,"hashGet");function Ak(c){var f=this.__data__;return Bf?f[c]!==e:Dt.call(f,c)}o(Ak,"hashHas");function Sk(c,f){var d=this.__data__;return this.size+=this.has(c)?0:1,d[c]=Bf&&f===e?s:f,this}o(Sk,"hashSet"),$s.prototype.clear=Tk,$s.prototype.delete=bk,$s.prototype.get=Ek,$s.prototype.has=Ak,$s.prototype.set=Sk;function Yo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(Yo,"ListCache");function Pk(){this.__data__=[],this.size=0}o(Pk,"listCacheClear");function xk(c){var f=this.__data__,d=Kd(f,c);if(d<0)return!1;var T=f.length-1;return d==T?f.pop():jd.call(f,d,1),--this.size,!0}o(xk,"listCacheDelete");function Ck(c){var f=this.__data__,d=Kd(f,c);return d<0?e:f[d][1]}o(Ck,"listCacheGet");function Ok(c){return Kd(this.__data__,c)>-1}o(Ok,"listCacheHas");function Ik(c,f){var d=this.__data__,T=Kd(d,c);return T<0?(++this.size,d.push([c,f])):d[T][1]=f,this}o(Ik,"listCacheSet"),Yo.prototype.clear=Pk,Yo.prototype.delete=xk,Yo.prototype.get=Ck,Yo.prototype.has=Ok,Yo.prototype.set=Ik;function Jo(c){var f=-1,d=c==null?0:c.length;for(this.clear();++f<d;){var T=c[f];this.set(T[0],T[1])}}o(Jo,"MapCache");function Nk(){this.size=0,this.__data__={hash:new $s,map:new(Uf||Yo),string:new $s}}o(Nk,"mapCacheClear");function Lk(c){var f=rg(this,c).delete(c);return this.size-=f?1:0,f}o(Lk,"mapCacheDelete");function Rk(c){return rg(this,c).get(c)}o(Rk,"mapCacheGet");function Fk(c){return rg(this,c).has(c)}o(Fk,"mapCacheHas");function Dk(c,f){var d=rg(this,c),T=d.size;return d.set(c,f),this.size+=d.size==T?0:1,this}o(Dk,"mapCacheSet"),Jo.prototype.clear=Nk,Jo.prototype.delete=Lk,Jo.prototype.get=Rk,Jo.prototype.has=Fk,Jo.prototype.set=Dk;function Bs(c){var f=-1,d=c==null?0:c.length;for(this.__data__=new Jo;++f<d;)this.add(c[f])}o(Bs,"SetCache");function _k(c){return this.__data__.set(c,s),this}o(_k,"setCacheAdd");function Vk(c){return this.__data__.has(c)}o(Vk,"setCacheHas"),Bs.prototype.add=Bs.prototype.push=_k,Bs.prototype.has=Vk;function eo(c){var f=this.__data__=new Yo(c);this.size=f.size}o(eo,"Stack");function wk(){this.__data__=new Yo,this.size=0}o(wk,"stackClear");function Mk(c){var f=this.__data__,d=f.delete(c);return this.size=f.size,d}o(Mk,"stackDelete");function kk(c){return this.__data__.get(c)}o(kk,"stackGet");function jk(c){return this.__data__.has(c)}o(jk,"stackHas");function Uk(c,f){var d=this.__data__;if(d instanceof Yo){var T=d.__data__;if(!Uf||T.length<n-1)return T.push([c,f]),this.size=++d.size,this;d=this.__data__=new Jo(T)}return d.set(c,f),this.size=d.size,this}o(Uk,"stackSet"),eo.prototype.clear=wk,eo.prototype.delete=Mk,eo.prototype.get=kk,eo.prototype.has=jk,eo.prototype.set=Uk;function lO(c,f){var d=Xe(c),T=!d&&Xs(c),E=!d&&!T&&Ha(c),C=!d&&!T&&!E&&nl(c),L=d||T||E||C,R=L?wv(c.length,z2):[],M=R.length;for(var Y in c)(f||Dt.call(c,Y))&&!(L&&(Y=="length"||E&&(Y=="offset"||Y=="parent")||C&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||na(Y,M)))&&R.push(Y);return R}o(lO,"arrayLikeKeys");function fO(c){var f=c.length;return f?c[Zv(0,f-1)]:e}o(fO,"arraySample");function $k(c,f){return og(Wi(c),Hs(f,0,c.length))}o($k,"arraySampleSize");function Bk(c){return og(Wi(c))}o(Bk,"arrayShuffle");function Hv(c,f,d){(d!==e&&!to(c[f],d)||d===e&&!(f in c))&&Zo(c,f,d)}o(Hv,"assignMergeValue");function Gf(c,f,d){var T=c[f];(!(Dt.call(c,f)&&to(T,d))||d===e&&!(f in c))&&Zo(c,f,d)}o(Gf,"assignValue");function Kd(c,f){for(var d=c.length;d--;)if(to(c[d][0],f))return d;return-1}o(Kd,"assocIndexOf");function Hk(c,f,d,T){return ja(c,function(E,C,L){f(T,E,d(E),L)}),T}o(Hk,"baseAggregator");function uO(c,f){return c&&Po(f,Xn(f),c)}o(uO,"baseAssign");function Gk(c,f){return c&&Po(f,Xi(f),c)}o(Gk,"baseAssignIn");function Zo(c,f,d){f=="__proto__"&&Ud?Ud(c,f,{configurable:!0,enumerable:!0,value:d,writable:!0}):c[f]=d}o(Zo,"baseAssignValue");function Gv(c,f){for(var d=-1,T=f.length,E=W(T),C=c==null;++d<T;)E[d]=C?e:PT(c,f[d]);return E}o(Gv,"baseAt");function Hs(c,f,d){return c===c&&(d!==e&&(c=c<=d?c:d),f!==e&&(c=c>=f?c:f)),c}o(Hs,"baseClamp");function _r(c,f,d,T,E,C){var L,R=f&p,M=f&g,Y=f&m;if(d&&(L=E?d(c,T,E,C):d(c)),L!==e)return L;if(!hn(c))return c;var J=Xe(c);if(J){if(L=Fj(c),!R)return Wi(c,L)}else{var ee=vi(c),me=ee==_e||ee==Ft;if(Ha(c))return VO(c,R);if(ee==ln||ee==Wn||me&&!E){if(L=M||me?{}:eI(c),!R)return M?Ej(c,Gk(L,c)):bj(c,uO(L,c))}else{if(!zt[ee])return E?c:{};L=Dj(c,ee,R)}}C||(C=new eo);var Ne=C.get(c);if(Ne)return Ne;C.set(c,L),NI(c)?c.forEach(function(ke){L.add(_r(ke,f,d,ke,c,C))}):OI(c)&&c.forEach(function(ke,st){L.set(st,_r(ke,f,d,st,c,C))});var Me=Y?M?fT:lT:M?Xi:Xn,Ze=J?e:Me(c);return Rr(Ze||c,function(ke,st){Ze&&(st=ke,ke=c[st]),Gf(L,st,_r(ke,f,d,st,c,C))}),L}o(_r,"baseClone");function Wk(c){var f=Xn(c);return function(d){return pO(d,c,f)}}o(Wk,"baseConforms");function pO(c,f,d){var T=d.length;if(c==null)return!T;for(c=Xt(c);T--;){var E=d[T],C=f[E],L=c[E];if(L===e&&!(E in c)||!C(L))return!1}return!0}o(pO,"baseConformsTo");function dO(c,f,d){if(typeof c!="function")throw new Fr(r);return Yf(function(){c.apply(e,d)},f)}o(dO,"baseDelay");function Wf(c,f,d,T){var E=-1,C=Nd,L=!0,R=c.length,M=[],Y=f.length;if(!R)return M;d&&(f=un(f,lr(d))),T?(C=Lv,L=!1):f.length>=n&&(C=kf,L=!1,f=new Bs(f));e:for(;++E<R;){var J=c[E],ee=d==null?J:d(J);if(J=T||J!==0?J:0,L&&ee===ee){for(var me=Y;me--;)if(f[me]===ee)continue e;M.push(J)}else C(f,ee,T)||M.push(J)}return M}o(Wf,"baseDifference");var ja=UO(So),gO=UO(Kv,!0);function Kk(c,f){var d=!0;return ja(c,function(T,E,C){return d=!!f(T,E,C),d}),d}o(Kk,"baseEvery");function Xd(c,f,d){for(var T=-1,E=c.length;++T<E;){var C=c[T],L=f(C);if(L!=null&&(R===e?L===L&&!ur(L):d(L,R)))var R=L,M=C}return M}o(Xd,"baseExtremum");function Xk(c,f,d,T){var E=c.length;for(d=Je(d),d<0&&(d=-d>E?0:E+d),T=T===e||T>E?E:Je(T),T<0&&(T+=E),T=d>T?0:RI(T);d<T;)c[d++]=f;return c}o(Xk,"baseFill");function mO(c,f){var d=[];return ja(c,function(T,E,C){f(T,E,C)&&d.push(T)}),d}o(mO,"baseFilter");function ni(c,f,d,T,E){var C=-1,L=c.length;for(d||(d=Vj),E||(E=[]);++C<L;){var R=c[C];f>0&&d(R)?f>1?ni(R,f-1,d,T,E):Va(E,R):T||(E[E.length]=R)}return E}o(ni,"baseFlatten");var Wv=$O(),hO=$O(!0);function So(c,f){return c&&Wv(c,f,Xn)}o(So,"baseForOwn");function Kv(c,f){return c&&hO(c,f,Xn)}o(Kv,"baseForOwnRight");function Qd(c,f){return _a(f,function(d){return ia(c[d])})}o(Qd,"baseFunctions");function Gs(c,f){f=$a(f,c);for(var d=0,T=f.length;c!=null&&d<T;)c=c[xo(f[d++])];return d&&d==T?c:e}o(Gs,"baseGet");function yO(c,f,d){var T=f(c);return Xe(c)?T:Va(T,d(c))}o(yO,"baseGetAllKeys");function Ni(c){return c==null?c===e?zo:vn:Us&&Us in Xt(c)?Nj(c):Bj(c)}o(Ni,"baseGetTag");function Xv(c,f){return c>f}o(Xv,"baseGt");function Qk(c,f){return c!=null&&Dt.call(c,f)}o(Qk,"baseHas");function qk(c,f){return c!=null&&f in Xt(c)}o(qk,"baseHasIn");function zk(c,f,d){return c>=yi(f,d)&&c<Un(f,d)}o(zk,"baseInRange");function Qv(c,f,d){for(var T=d?Lv:Nd,E=c[0].length,C=c.length,L=C,R=W(C),M=1/0,Y=[];L--;){var J=c[L];L&&f&&(J=un(J,lr(f))),M=yi(J.length,M),R[L]=!d&&(f||E>=120&&J.length>=120)?new Bs(L&&J):e}J=c[0];var ee=-1,me=R[0];e:for(;++ee<E&&Y.length<M;){var Ne=J[ee],Me=f?f(Ne):Ne;if(Ne=d||Ne!==0?Ne:0,!(me?kf(me,Me):T(Y,Me,d))){for(L=C;--L;){var Ze=R[L];if(!(Ze?kf(Ze,Me):T(c[L],Me,d)))continue e}me&&me.push(Me),Y.push(Ne)}}return Y}o(Qv,"baseIntersection");function Yk(c,f,d,T){return So(c,function(E,C,L){f(T,d(E),C,L)}),T}o(Yk,"baseInverter");function Kf(c,f,d){f=$a(f,c),c=rI(c,f);var T=c==null?c:c[xo(wr(f))];return T==null?e:cr(T,c,d)}o(Kf,"baseInvoke");function vO(c){return Tn(c)&&Ni(c)==Wn}o(vO,"baseIsArguments");function Jk(c){return Tn(c)&&Ni(c)==Ms}o(Jk,"baseIsArrayBuffer");function Zk(c){return Tn(c)&&Ni(c)==S}o(Zk,"baseIsDate");function Xf(c,f,d,T,E){return c===f?!0:c==null||f==null||!Tn(c)&&!Tn(f)?c!==c&&f!==f:ej(c,f,d,T,Xf,E)}o(Xf,"baseIsEqual");function ej(c,f,d,T,E,C){var L=Xe(c),R=Xe(f),M=L?Ir:vi(c),Y=R?Ir:vi(f);M=M==Wn?ln:M,Y=Y==Wn?ln:Y;var J=M==ln,ee=Y==ln,me=M==Y;if(me&&Ha(c)){if(!Ha(f))return!1;L=!0,J=!1}if(me&&!J)return C||(C=new eo),L||nl(c)?YO(c,f,d,T,E,C):Oj(c,f,M,d,T,E,C);if(!(d&v)){var Ne=J&&Dt.call(c,"__wrapped__"),Me=ee&&Dt.call(f,"__wrapped__");if(Ne||Me){var Ze=Ne?c.value():c,ke=Me?f.value():f;return C||(C=new eo),E(Ze,ke,d,T,C)}}return me?(C||(C=new eo),Ij(c,f,d,T,E,C)):!1}o(ej,"baseIsEqualDeep");function tj(c){return Tn(c)&&vi(c)==Qe}o(tj,"baseIsMap");function qv(c,f,d,T){var E=d.length,C=E,L=!T;if(c==null)return!C;for(c=Xt(c);E--;){var R=d[E];if(L&&R[2]?R[1]!==c[R[0]]:!(R[0]in c))return!1}for(;++E<C;){R=d[E];var M=R[0],Y=c[M],J=R[1];if(L&&R[2]){if(Y===e&&!(M in c))return!1}else{var ee=new eo;if(T)var me=T(Y,J,M,c,f,ee);if(!(me===e?Xf(J,Y,v|A,T,ee):me))return!1}}return!0}o(qv,"baseIsMatch");function TO(c){if(!hn(c)||Mj(c))return!1;var f=ia(c)?tk:GM;return f.test(Ks(c))}o(TO,"baseIsNative");function nj(c){return Tn(c)&&Ni(c)==ar}o(nj,"baseIsRegExp");function ij(c){return Tn(c)&&vi(c)==gn}o(ij,"baseIsSet");function rj(c){return Tn(c)&&ug(c.length)&&!!nn[Ni(c)]}o(rj,"baseIsTypedArray");function bO(c){return typeof c=="function"?c:c==null?Qi:typeof c=="object"?Xe(c)?SO(c[0],c[1]):AO(c):BI(c)}o(bO,"baseIteratee");function zv(c){if(!zf(c))return sk(c);var f=[];for(var d in Xt(c))Dt.call(c,d)&&d!="constructor"&&f.push(d);return f}o(zv,"baseKeys");function oj(c){if(!hn(c))return $j(c);var f=zf(c),d=[];for(var T in c)T=="constructor"&&(f||!Dt.call(c,T))||d.push(T);return d}o(oj,"baseKeysIn");function Yv(c,f){return c<f}o(Yv,"baseLt");function EO(c,f){var d=-1,T=Ki(c)?W(c.length):[];return ja(c,function(E,C,L){T[++d]=f(E,C,L)}),T}o(EO,"baseMap");function AO(c){var f=pT(c);return f.length==1&&f[0][2]?nI(f[0][0],f[0][1]):function(d){return d===c||qv(d,c,f)}}o(AO,"baseMatches");function SO(c,f){return gT(c)&&tI(f)?nI(xo(c),f):function(d){var T=PT(d,c);return T===e&&T===f?xT(d,c):Xf(f,T,v|A)}}o(SO,"baseMatchesProperty");function qd(c,f,d,T,E){c!==f&&Wv(f,function(C,L){if(E||(E=new eo),hn(C))aj(c,f,L,d,qd,T,E);else{var R=T?T(hT(c,L),C,L+"",c,f,E):e;R===e&&(R=C),Hv(c,L,R)}},Xi)}o(qd,"baseMerge");function aj(c,f,d,T,E,C,L){var R=hT(c,d),M=hT(f,d),Y=L.get(M);if(Y){Hv(c,d,Y);return}var J=C?C(R,M,d+"",c,f,L):e,ee=J===e;if(ee){var me=Xe(M),Ne=!me&&Ha(M),Me=!me&&!Ne&&nl(M);J=M,me||Ne||Me?Xe(R)?J=R:On(R)?J=Wi(R):Ne?(ee=!1,J=VO(M,!0)):Me?(ee=!1,J=wO(M,!0)):J=[]:Jf(M)||Xs(M)?(J=R,Xs(R)?J=FI(R):(!hn(R)||ia(R))&&(J=eI(M))):ee=!1}ee&&(L.set(M,J),E(J,M,T,C,L),L.delete(M)),Hv(c,d,J)}o(aj,"baseMergeDeep");function PO(c,f){var d=c.length;if(d)return f+=f<0?d:0,na(f,d)?c[f]:e}o(PO,"baseNth");function xO(c,f,d){f.length?f=un(f,function(C){return Xe(C)?function(L){return Gs(L,C.length===1?C[0]:C)}:C}):f=[Qi];var T=-1;f=un(f,lr(Ve()));var E=EO(c,function(C,L,R){var M=un(f,function(Y){return Y(C)});return{criteria:M,index:++T,value:C}});return D2(E,function(C,L){return Tj(C,L,d)})}o(xO,"baseOrderBy");function sj(c,f){return CO(c,f,function(d,T){return xT(c,T)})}o(sj,"basePick");function CO(c,f,d){for(var T=-1,E=f.length,C={};++T<E;){var L=f[T],R=Gs(c,L);d(R,L)&&Qf(C,$a(L,c),R)}return C}o(CO,"basePickBy");function cj(c){return function(f){return Gs(f,c)}}o(cj,"basePropertyDeep");function Jv(c,f,d,T){var E=T?F2:Kc,C=-1,L=f.length,R=c;for(c===f&&(f=Wi(f)),d&&(R=un(c,lr(d)));++C<L;)for(var M=0,Y=f[C],J=d?d(Y):Y;(M=E(R,J,M,T))>-1;)R!==c&&jd.call(R,M,1),jd.call(c,M,1);return c}o(Jv,"basePullAll");function OO(c,f){for(var d=c?f.length:0,T=d-1;d--;){var E=f[d];if(d==T||E!==C){var C=E;na(E)?jd.call(c,E,1):nT(c,E)}}return c}o(OO,"basePullAt");function Zv(c,f){return c+Bd(sO()*(f-c+1))}o(Zv,"baseRandom");function lj(c,f,d,T){for(var E=-1,C=Un($d((f-c)/(d||1)),0),L=W(C);C--;)L[T?C:++E]=c,c+=d;return L}o(lj,"baseRange");function eT(c,f){var d="";if(!c||f<1||f>Re)return d;do f%2&&(d+=c),f=Bd(f/2),f&&(c+=c);while(f);return d}o(eT,"baseRepeat");function nt(c,f){return yT(iI(c,f,Qi),c+"")}o(nt,"baseRest");function fj(c){return fO(il(c))}o(fj,"baseSample");function uj(c,f){var d=il(c);return og(d,Hs(f,0,d.length))}o(uj,"baseSampleSize");function Qf(c,f,d,T){if(!hn(c))return c;f=$a(f,c);for(var E=-1,C=f.length,L=C-1,R=c;R!=null&&++E<C;){var M=xo(f[E]),Y=d;if(M==="__proto__"||M==="constructor"||M==="prototype")return c;if(E!=L){var J=R[M];Y=T?T(J,M,R):e,Y===e&&(Y=hn(J)?J:na(f[E+1])?[]:{})}Gf(R,M,Y),R=R[M]}return c}o(Qf,"baseSet");var IO=Hd?function(c,f){return Hd.set(c,f),c}:Qi,pj=Ud?function(c,f){return Ud(c,"toString",{configurable:!0,enumerable:!1,value:OT(f),writable:!0})}:Qi;function dj(c){return og(il(c))}o(dj,"baseShuffle");function Vr(c,f,d){var T=-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=W(E);++T<E;)C[T]=c[T+f];return C}o(Vr,"baseSlice");function gj(c,f){var d;return ja(c,function(T,E,C){return d=f(T,E,C),!d}),!!d}o(gj,"baseSome");function zd(c,f,d){var T=0,E=c==null?T:c.length;if(typeof f=="number"&&f===f&&E<=Hi){for(;T<E;){var C=T+E>>>1,L=c[C];L!==null&&!ur(L)&&(d?L<=f:L<f)?T=C+1:E=C}return E}return tT(c,f,Qi,d)}o(zd,"baseSortedIndex");function tT(c,f,d,T){var E=0,C=c==null?0:c.length;if(C===0)return 0;f=d(f);for(var L=f!==f,R=f===null,M=ur(f),Y=f===e;E<C;){var J=Bd((E+C)/2),ee=d(c[J]),me=ee!==e,Ne=ee===null,Me=ee===ee,Ze=ur(ee);if(L)var ke=T||Me;else Y?ke=Me&&(T||me):R?ke=Me&&me&&(T||!Ne):M?ke=Me&&me&&!Ne&&(T||!Ze):Ne||Ze?ke=!1:ke=T?ee<=f:ee<f;ke?E=J+1:C=J}return yi(C,cn)}o(tT,"baseSortedIndexBy");function NO(c,f){for(var d=-1,T=c.length,E=0,C=[];++d<T;){var L=c[d],R=f?f(L):L;if(!d||!to(R,M)){var M=R;C[E++]=L===0?0:L}}return C}o(NO,"baseSortedUniq");function LO(c){return typeof c=="number"?c:ur(c)?Ot:+c}o(LO,"baseToNumber");function fr(c){if(typeof c=="string")return c;if(Xe(c))return un(c,fr)+"";if(ur(c))return cO?cO.call(c):"";var f=c+"";return f=="0"&&1/c==-Rt?"-0":f}o(fr,"baseToString");function Ua(c,f,d){var T=-1,E=Nd,C=c.length,L=!0,R=[],M=R;if(d)L=!1,E=Lv;else if(C>=n){var Y=f?null:xj(c);if(Y)return Rd(Y);L=!1,E=kf,M=new Bs}else M=f?[]:R;e:for(;++T<C;){var J=c[T],ee=f?f(J):J;if(J=d||J!==0?J:0,L&&ee===ee){for(var me=M.length;me--;)if(M[me]===ee)continue e;f&&M.push(ee),R.push(J)}else E(M,ee,d)||(M!==R&&M.push(ee),R.push(J))}return R}o(Ua,"baseUniq");function nT(c,f){return f=$a(f,c),c=rI(c,f),c==null||delete c[xo(wr(f))]}o(nT,"baseUnset");function RO(c,f,d,T){return Qf(c,f,d(Gs(c,f)),T)}o(RO,"baseUpdate");function Yd(c,f,d,T){for(var E=c.length,C=T?E:-1;(T?C--:++C<E)&&f(c[C],C,c););return d?Vr(c,T?0:C,T?C+1:E):Vr(c,T?C+1:0,T?E:C)}o(Yd,"baseWhile");function FO(c,f){var d=c;return d instanceof pt&&(d=d.value()),Rv(f,function(T,E){return E.func.apply(E.thisArg,Va([T],E.args))},d)}o(FO,"baseWrapperValue");function iT(c,f,d){var T=c.length;if(T<2)return T?Ua(c[0]):[];for(var E=-1,C=W(T);++E<T;)for(var L=c[E],R=-1;++R<T;)R!=E&&(C[E]=Wf(C[E]||L,c[R],f,d));return Ua(ni(C,1),f,d)}o(iT,"baseXor");function DO(c,f,d){for(var T=-1,E=c.length,C=f.length,L={};++T<E;){var R=T<C?f[T]:e;d(L,c[T],R)}return L}o(DO,"baseZipObject");function rT(c){return On(c)?c:[]}o(rT,"castArrayLikeObject");function oT(c){return typeof c=="function"?c:Qi}o(oT,"castFunction");function $a(c,f){return Xe(c)?c:gT(c,f)?[c]:cI(It(c))}o($a,"castPath");var mj=nt;function Ba(c,f,d){var T=c.length;return d=d===e?T:d,!f&&d>=T?c:Vr(c,f,d)}o(Ba,"castSlice");var _O=nk||function(c){return Kn.clearTimeout(c)};function VO(c,f){if(f)return c.slice();var d=c.length,T=nO?nO(d):new c.constructor(d);return c.copy(T),T}o(VO,"cloneBuffer");function aT(c){var f=new c.constructor(c.byteLength);return new Md(f).set(new Md(c)),f}o(aT,"cloneArrayBuffer");function hj(c,f){var d=f?aT(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.byteLength)}o(hj,"cloneDataView");function yj(c){var f=new c.constructor(c.source,vC.exec(c));return f.lastIndex=c.lastIndex,f}o(yj,"cloneRegExp");function vj(c){return Hf?Xt(Hf.call(c)):{}}o(vj,"cloneSymbol");function wO(c,f){var d=f?aT(c.buffer):c.buffer;return new c.constructor(d,c.byteOffset,c.length)}o(wO,"cloneTypedArray");function MO(c,f){if(c!==f){var d=c!==e,T=c===null,E=c===c,C=ur(c),L=f!==e,R=f===null,M=f===f,Y=ur(f);if(!R&&!Y&&!C&&c>f||C&&L&&M&&!R&&!Y||T&&L&&M||!d&&M||!E)return 1;if(!T&&!C&&!Y&&c<f||Y&&d&&E&&!T&&!C||R&&d&&E||!L&&E||!M)return-1}return 0}o(MO,"compareAscending");function Tj(c,f,d){for(var T=-1,E=c.criteria,C=f.criteria,L=E.length,R=d.length;++T<L;){var M=MO(E[T],C[T]);if(M){if(T>=R)return M;var Y=d[T];return M*(Y=="desc"?-1:1)}}return c.index-f.index}o(Tj,"compareMultiple");function kO(c,f,d,T){for(var E=-1,C=c.length,L=d.length,R=-1,M=f.length,Y=Un(C-L,0),J=W(M+Y),ee=!T;++R<M;)J[R]=f[R];for(;++E<L;)(ee||E<C)&&(J[d[E]]=c[E]);for(;Y--;)J[R++]=c[E++];return J}o(kO,"composeArgs");function jO(c,f,d,T){for(var E=-1,C=c.length,L=-1,R=d.length,M=-1,Y=f.length,J=Un(C-R,0),ee=W(J+Y),me=!T;++E<J;)ee[E]=c[E];for(var Ne=E;++M<Y;)ee[Ne+M]=f[M];for(;++L<R;)(me||E<C)&&(ee[Ne+d[L]]=c[E++]);return ee}o(jO,"composeArgsRight");function Wi(c,f){var d=-1,T=c.length;for(f||(f=W(T));++d<T;)f[d]=c[d];return f}o(Wi,"copyArray");function Po(c,f,d,T){var E=!d;d||(d={});for(var C=-1,L=f.length;++C<L;){var R=f[C],M=T?T(d[R],c[R],R,d,c):e;M===e&&(M=c[R]),E?Zo(d,R,M):Gf(d,R,M)}return d}o(Po,"copyObject");function bj(c,f){return Po(c,dT(c),f)}o(bj,"copySymbols");function Ej(c,f){return Po(c,JO(c),f)}o(Ej,"copySymbolsIn");function Jd(c,f){return function(d,T){var E=Xe(d)?C2:Hk,C=f?f():{};return E(d,c,Ve(T,2),C)}}o(Jd,"createAggregator");function Zc(c){return nt(function(f,d){var T=-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=Xt(f);++T<E;){var R=d[T];R&&c(f,R,T,C)}return f})}o(Zc,"createAssigner");function UO(c,f){return function(d,T){if(d==null)return d;if(!Ki(d))return c(d,T);for(var E=d.length,C=f?E:-1,L=Xt(d);(f?C--:++C<E)&&T(L[C],C,L)!==!1;);return d}}o(UO,"createBaseEach");function $O(c){return function(f,d,T){for(var E=-1,C=Xt(f),L=T(f),R=L.length;R--;){var M=L[c?R:++E];if(d(C[M],M,C)===!1)break}return f}}o($O,"createBaseFor");function Aj(c,f,d){var T=f&b,E=qf(c);function C(){var L=this&&this!==Kn&&this instanceof C?E:c;return L.apply(T?d:this,arguments)}return o(C,"wrapper"),C}o(Aj,"createBind");function BO(c){return function(f){f=It(f);var d=Xc(f)?Zr(f):e,T=d?d[0]:f.charAt(0),E=d?Ba(d,1).join(""):f.slice(1);return T[c]()+E}}o(BO,"createCaseFirst");function el(c){return function(f){return Rv(UI(jI(f).replace(u2,"")),c,"")}}o(el,"createCompounder");function qf(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=Jc(c.prototype),T=c.apply(d,f);return hn(T)?T:d}}o(qf,"createCtor");function Sj(c,f,d){var T=qf(c);function E(){for(var C=arguments.length,L=W(C),R=C,M=tl(E);R--;)L[R]=arguments[R];var Y=C<3&&L[0]!==M&&L[C-1]!==M?[]:wa(L,M);if(C-=Y.length,C<d)return XO(c,f,Zd,E.placeholder,e,L,Y,e,e,d-C);var J=this&&this!==Kn&&this instanceof E?T:c;return cr(J,this,L)}return o(E,"wrapper"),E}o(Sj,"createCurry");function HO(c){return function(f,d,T){var E=Xt(f);if(!Ki(f)){var C=Ve(d,3);f=Xn(f),d=o(function(R){return C(E[R],R,E)},"predicate")}var L=c(f,d,T);return L>-1?E[C?f[L]:L]:e}}o(HO,"createFind");function GO(c){return ta(function(f){var d=f.length,T=d,E=Dr.prototype.thru;for(c&&f.reverse();T--;){var C=f[T];if(typeof C!="function")throw new Fr(r);if(E&&!L&&ig(C)=="wrapper")var L=new Dr([],!0)}for(T=L?T:d;++T<d;){C=f[T];var R=ig(C),M=R=="wrapper"?uT(C):e;M&&mT(M[0])&&M[1]==(Z|j|U|re)&&!M[4].length&&M[9]==1?L=L[ig(M[0])].apply(L,M[3]):L=C.length==1&&mT(C)?L[R]():L.thru(C)}return function(){var Y=arguments,J=Y[0];if(L&&Y.length==1&&Xe(J))return L.plant(J).value();for(var ee=0,me=d?f[ee].apply(this,Y):J;++ee<d;)me=f[ee].call(this,me);return me}})}o(GO,"createFlow");function Zd(c,f,d,T,E,C,L,R,M,Y){var J=f&Z,ee=f&b,me=f&I,Ne=f&(j|K),Me=f&Pe,Ze=me?e:qf(c);function ke(){for(var st=arguments.length,gt=W(st),pr=st;pr--;)gt[pr]=arguments[pr];if(Ne)var Ri=tl(ke),dr=V2(gt,Ri);if(T&&(gt=kO(gt,T,E,Ne)),C&&(gt=jO(gt,C,L,Ne)),st-=dr,Ne&&st<Y){var In=wa(gt,Ri);return XO(c,f,Zd,ke.placeholder,d,gt,In,R,M,Y-st)}var no=ee?d:this,oa=me?no[c]:c;return st=gt.length,R?gt=Hj(gt,R):Me&&st>1&&gt.reverse(),J&&M<st&&(gt.length=M),this&&this!==Kn&&this instanceof ke&&(oa=Ze||qf(oa)),oa.apply(no,gt)}return o(ke,"wrapper"),ke}o(Zd,"createHybrid");function WO(c,f){return function(d,T){return Yk(d,c,f(T),{})}}o(WO,"createInverter");function eg(c,f){return function(d,T){var E;if(d===e&&T===e)return f;if(d!==e&&(E=d),T!==e){if(E===e)return T;typeof d=="string"||typeof T=="string"?(d=fr(d),T=fr(T)):(d=LO(d),T=LO(T)),E=c(d,T)}return E}}o(eg,"createMathOperation");function sT(c){return ta(function(f){return f=un(f,lr(Ve())),nt(function(d){var T=this;return c(f,function(E){return cr(E,T,d)})})})}o(sT,"createOver");function tg(c,f){f=f===e?" ":fr(f);var d=f.length;if(d<2)return d?eT(f,c):f;var T=eT(f,$d(c/Qc(f)));return Xc(f)?Ba(Zr(T),0,c).join(""):T.slice(0,c)}o(tg,"createPadding");function Pj(c,f,d,T){var E=f&b,C=qf(c);function L(){for(var R=-1,M=arguments.length,Y=-1,J=T.length,ee=W(J+M),me=this&&this!==Kn&&this instanceof L?C:c;++Y<J;)ee[Y]=T[Y];for(;M--;)ee[Y++]=arguments[++R];return cr(me,E?d:this,ee)}return o(L,"wrapper"),L}o(Pj,"createPartial");function KO(c){return function(f,d,T){return T&&typeof T!="number"&&Li(f,d,T)&&(d=T=e),f=ra(f),d===e?(d=f,f=0):d=ra(d),T=T===e?f<d?1:-1:ra(T),lj(f,d,T,c)}}o(KO,"createRange");function ng(c){return function(f,d){return typeof f=="string"&&typeof d=="string"||(f=Mr(f),d=Mr(d)),c(f,d)}}o(ng,"createRelationalOperation");function XO(c,f,d,T,E,C,L,R,M,Y){var J=f&j,ee=J?L:e,me=J?e:L,Ne=J?C:e,Me=J?e:C;f|=J?U:ae,f&=~(J?ae:U),f&F||(f&=~(b|I));var Ze=[c,f,E,Ne,ee,Me,me,R,M,Y],ke=d.apply(e,Ze);return mT(c)&&oI(ke,Ze),ke.placeholder=T,aI(ke,c,f)}o(XO,"createRecurry");function cT(c){var f=jn[c];return function(d,T){if(d=Mr(d),T=T==null?0:yi(Je(T),292),T&&aO(d)){var E=(It(d)+"e").split("e"),C=f(E[0]+"e"+(+E[1]+T));return E=(It(C)+"e").split("e"),+(E[0]+"e"+(+E[1]-T))}return f(d)}}o(cT,"createRound");var xj=zc&&1/Rd(new zc([,-0]))[1]==Rt?function(c){return new zc(c)}:LT;function QO(c){return function(f){var d=vi(f);return d==Qe?kv(f):d==gn?B2(f):_2(f,c(f))}}o(QO,"createToPairs");function ea(c,f,d,T,E,C,L,R){var M=f&I;if(!M&&typeof c!="function")throw new Fr(r);var Y=T?T.length:0;if(Y||(f&=~(U|ae),T=E=e),L=L===e?L:Un(Je(L),0),R=R===e?R:Je(R),Y-=E?E.length:0,f&ae){var J=T,ee=E;T=E=e}var me=M?e:uT(c),Ne=[c,f,d,T,E,J,ee,C,L,R];if(me&&Uj(Ne,me),c=Ne[0],f=Ne[1],d=Ne[2],T=Ne[3],E=Ne[4],R=Ne[9]=Ne[9]===e?M?0:c.length:Un(Ne[9]-Y,0),!R&&f&(j|K)&&(f&=~(j|K)),!f||f==b)var Me=Aj(c,f,d);else f==j||f==K?Me=Sj(c,f,R):(f==U||f==(b|U))&&!E.length?Me=Pj(c,f,d,T):Me=Zd.apply(e,Ne);var Ze=me?IO:oI;return aI(Ze(Me,Ne),c,f)}o(ea,"createWrap");function qO(c,f,d,T){return c===e||to(c,qc[d])&&!Dt.call(T,d)?f:c}o(qO,"customDefaultsAssignIn");function zO(c,f,d,T,E,C){return hn(c)&&hn(f)&&(C.set(f,c),qd(c,f,e,zO,C),C.delete(f)),c}o(zO,"customDefaultsMerge");function Cj(c){return Jf(c)?e:c}o(Cj,"customOmitClone");function YO(c,f,d,T,E,C){var L=d&v,R=c.length,M=f.length;if(R!=M&&!(L&&M>R))return!1;var Y=C.get(c),J=C.get(f);if(Y&&J)return Y==f&&J==c;var ee=-1,me=!0,Ne=d&A?new Bs:e;for(C.set(c,f),C.set(f,c);++ee<R;){var Me=c[ee],Ze=f[ee];if(T)var ke=L?T(Ze,Me,ee,f,c,C):T(Me,Ze,ee,c,f,C);if(ke!==e){if(ke)continue;me=!1;break}if(Ne){if(!Fv(f,function(st,gt){if(!kf(Ne,gt)&&(Me===st||E(Me,st,d,T,C)))return Ne.push(gt)})){me=!1;break}}else if(!(Me===Ze||E(Me,Ze,d,T,C))){me=!1;break}}return C.delete(c),C.delete(f),me}o(YO,"equalArrays");function Oj(c,f,d,T,E,C,L){switch(d){case Nr:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ms:return!(c.byteLength!=f.byteLength||!C(new Md(c),new Md(f)));case O:case S:case jt:return to(+c,+f);case V:return c.name==f.name&&c.message==f.message;case ar:case hi:return c==f+"";case Qe:var R=kv;case gn:var M=T&v;if(R||(R=Rd),c.size!=f.size&&!M)return!1;var Y=L.get(c);if(Y)return Y==f;T|=A,L.set(c,f);var J=YO(R(c),R(f),T,E,C,L);return L.delete(c),J;case Wt:if(Hf)return Hf.call(c)==Hf.call(f)}return!1}o(Oj,"equalByTag");function Ij(c,f,d,T,E,C){var L=d&v,R=lT(c),M=R.length,Y=lT(f),J=Y.length;if(M!=J&&!L)return!1;for(var ee=M;ee--;){var me=R[ee];if(!(L?me in f:Dt.call(f,me)))return!1}var Ne=C.get(c),Me=C.get(f);if(Ne&&Me)return Ne==f&&Me==c;var Ze=!0;C.set(c,f),C.set(f,c);for(var ke=L;++ee<M;){me=R[ee];var st=c[me],gt=f[me];if(T)var pr=L?T(gt,st,me,f,c,C):T(st,gt,me,c,f,C);if(!(pr===e?st===gt||E(st,gt,d,T,C):pr)){Ze=!1;break}ke||(ke=me=="constructor")}if(Ze&&!ke){var Ri=c.constructor,dr=f.constructor;Ri!=dr&&"constructor"in c&&"constructor"in f&&!(typeof Ri=="function"&&Ri instanceof Ri&&typeof dr=="function"&&dr instanceof dr)&&(Ze=!1)}return C.delete(c),C.delete(f),Ze}o(Ij,"equalObjects");function ta(c){return yT(iI(c,e,pI),c+"")}o(ta,"flatRest");function lT(c){return yO(c,Xn,dT)}o(lT,"getAllKeys");function fT(c){return yO(c,Xi,JO)}o(fT,"getAllKeysIn");var uT=Hd?function(c){return Hd.get(c)}:LT;function ig(c){for(var f=c.name+"",d=Yc[f],T=Dt.call(Yc,f)?d.length:0;T--;){var E=d[T],C=E.func;if(C==null||C==c)return E.name}return f}o(ig,"getFuncName");function tl(c){var f=Dt.call(P,"placeholder")?P:c;return f.placeholder}o(tl,"getHolder");function Ve(){var c=P.iteratee||IT;return c=c===IT?bO:c,arguments.length?c(arguments[0],arguments[1]):c}o(Ve,"getIteratee");function rg(c,f){var d=c.__data__;return wj(f)?d[typeof f=="string"?"string":"hash"]:d.map}o(rg,"getMapData");function pT(c){for(var f=Xn(c),d=f.length;d--;){var T=f[d],E=c[T];f[d]=[T,E,tI(E)]}return f}o(pT,"getMatchData");function Ws(c,f){var d=j2(c,f);return TO(d)?d:e}o(Ws,"getNative");function Nj(c){var f=Dt.call(c,Us),d=c[Us];try{c[Us]=e;var T=!0}catch{}var E=Vd.call(c);return T&&(f?c[Us]=d:delete c[Us]),E}o(Nj,"getRawTag");var dT=Uv?function(c){return c==null?[]:(c=Xt(c),_a(Uv(c),function(f){return rO.call(c,f)}))}:RT,JO=Uv?function(c){for(var f=[];c;)Va(f,dT(c)),c=kd(c);return f}:RT,vi=Ni;($v&&vi(new $v(new ArrayBuffer(1)))!=Nr||Uf&&vi(new Uf)!=Qe||Bv&&vi(Bv.resolve())!=Gt||zc&&vi(new zc)!=gn||$f&&vi(new $f)!=Gi)&&(vi=o(function(c){var f=Ni(c),d=f==ln?c.constructor:e,T=d?Ks(d):"";if(T)switch(T){case uk:return Nr;case pk:return Qe;case dk:return Gt;case gk:return gn;case mk:return Gi}return f},"getTag"));function Lj(c,f,d){for(var T=-1,E=d.length;++T<E;){var C=d[T],L=C.size;switch(C.type){case"drop":c+=L;break;case"dropRight":f-=L;break;case"take":f=yi(f,c+L);break;case"takeRight":c=Un(c,f-L);break}}return{start:c,end:f}}o(Lj,"getView");function Rj(c){var f=c.match(wM);return f?f[1].split(MM):[]}o(Rj,"getWrapDetails");function ZO(c,f,d){f=$a(f,c);for(var T=-1,E=f.length,C=!1;++T<E;){var L=xo(f[T]);if(!(C=c!=null&&d(c,L)))break;c=c[L]}return C||++T!=E?C:(E=c==null?0:c.length,!!E&&ug(E)&&na(L,E)&&(Xe(c)||Xs(c)))}o(ZO,"hasPath");function Fj(c){var f=c.length,d=new c.constructor(f);return f&&typeof c[0]=="string"&&Dt.call(c,"index")&&(d.index=c.index,d.input=c.input),d}o(Fj,"initCloneArray");function eI(c){return typeof c.constructor=="function"&&!zf(c)?Jc(kd(c)):{}}o(eI,"initCloneObject");function Dj(c,f,d){var T=c.constructor;switch(f){case Ms:return aT(c);case O:case S:return new T(+c);case Nr:return hj(c,d);case _f:case Vf:case wf:case ks:case k:case B:case Q:case ce:case Le:return wO(c,d);case Qe:return new T;case jt:case hi:return new T(c);case ar:return yj(c);case gn:return new T;case Wt:return vj(c)}}o(Dj,"initCloneByTag");function _j(c,f){var d=f.length;if(!d)return c;var T=d-1;return f[T]=(d>1?"& ":"")+f[T],f=f.join(d>2?", ":" "),c.replace(VM,`{
270
270
  /* [wrapped with `+f+`] */
271
- `)}o(bj,"insertWrapDetails");function Ej(c){return Xe(c)||Ks(c)||!!(Qx&&c&&c[Qx])}o(Ej,"isFlattenable");function na(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&FM.test(c))&&c>-1&&c%1==0&&c<f}o(na,"isIndex");function Li(c,f,d){if(!hn(d))return!1;var v=typeof f;return(v=="number"?Ki(d)&&na(f,d.length):v=="string"&&f in d)?to(d[f],c):!1}o(Li,"isIterateeCall");function rT(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||ur(c)?!0:vd.test(c)||!sr.test(c)||f!=null&&c in Kt(f)}o(rT,"isKey");function Aj(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(Aj,"isKeyable");function oT(c){var f=zd(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var v=tT(d);return!!v&&c===v[0]}o(oT,"isLaziable");function Sj(c){return!!Gx&&Gx in c}o(Sj,"isMasked");var Pj=xd?ia:AT;function Qf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||Qc;return c===d}o(Qf,"isPrototype");function GI(c){return c===c&&!hn(c)}o(GI,"isStrictComparable");function WI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Kt(d))}}o(WI,"matchesStrictComparable");function Cj(c){var f=ng(c,function(v){return d.size===l&&d.clear(),v}),d=f.cache;return f}o(Cj,"memoizeCapped");function xj(c,f){var d=c[1],v=f[1],E=d|v,x=E<(b|O|Z),L=v==Z&&d==j||v==Z&&d==re&&c[7].length<=f[8]||v==(Z|re)&&f[7].length<=f[8]&&d==j;if(!(x||L))return c;v&b&&(c[2]=f[2],E|=d&b?0:F);var R=f[3];if(R){var M=c[3];c[3]=M?II(M,R,f[4]):R,c[4]=M?Va(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?OI(M,R,f[6]):R,c[6]=M?Va(c[5],u):f[6]),R=f[7],R&&(c[7]=R),v&Z&&(c[8]=c[8]==null?f[8]:yi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o(xj,"mergeData");function Ij(c){var f=[];if(c!=null)for(var d in Kt(c))f.push(d);return f}o(Ij,"nativeKeysIn");function Oj(c){return Od.call(c)}o(Oj,"objectToString");function KI(c,f,d){return f=Un(f===e?c.length-1:f,0),function(){for(var v=arguments,E=-1,x=Un(v.length-f,0),L=W(x);++E<x;)L[E]=v[f+E];E=-1;for(var R=W(f+1);++E<f;)R[E]=v[E];return R[f]=d(L),cr(c,this,R)}}o(KI,"overRest");function XI(c,f){return f.length<2?c:Hs(c,Vr(f,0,-1))}o(XI,"parent");function Nj(c,f){for(var d=c.length,v=yi(f.length,d),E=Wi(c);v--;){var x=f[v];c[v]=na(x,d)?E[x]:e}return c}o(Nj,"reorder");function aT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(aT,"safeGet");var QI=zI(yI),qf=G2||function(c,f){return Kn.setTimeout(c,f)},sT=zI(Jk);function qI(c,f,d){var v=f+"";return sT(c,bj(v,Lj(yj(v),d)))}o(qI,"setWrapToString");function zI(c){var f=0,d=0;return function(){var v=Q2(),E=Ue-(v-d);if(d=v,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(zI,"shortOut");function Jd(c,f){var d=-1,v=c.length,E=v-1;for(f=f===e?v:f;++d<f;){var x=Hv(d,E),L=c[x];c[x]=c[d],c[d]=L}return c.length=f,c}o(Jd,"shuffleSelf");var YI=Cj(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(uv,function(d,v,E,x){f.push(E?x.replace(xM,"$1"):v||d)}),f});function Co(c){if(typeof c=="string"||ur(c))return c;var f=c+"";return f=="0"&&1/c==-Lt?"-0":f}o(Co,"toKey");function Ws(c){if(c!=null){try{return Id.call(c)}catch{}try{return c+""}catch{}}return""}o(Ws,"toSource");function Lj(c,f){return Rr(Fe,function(d){var v="_."+d[0];f&d[1]&&!Ad(c,v)&&c.push(v)}),c.sort()}o(Lj,"updateWrapDetails");function JI(c){if(c instanceof pt)return c.clone();var f=new Dr(c.__wrapped__,c.__chain__);return f.__actions__=Wi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(JI,"wrapperClone");function Rj(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Un(Je(f),0);var v=c==null?0:c.length;if(!v||f<1)return[];for(var E=0,x=0,L=W(_d(v/f));E<v;)L[x++]=Vr(c,E,E+=f);return L}o(Rj,"chunk");function Fj(c){for(var f=-1,d=c==null?0:c.length,v=0,E=[];++f<d;){var x=c[f];x&&(E[v++]=x)}return E}o(Fj,"compact");function Dj(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],v=c;v--;)f[v-1]=arguments[v];return _a(Xe(d)?Wi(d):[d],ni(f,1))}o(Dj,"concat");var _j=nt(function(c,f){return In(c)?Hf(c,ni(f,1,In,!0)):[]}),Vj=nt(function(c,f){var d=wr(f);return In(d)&&(d=e),In(c)?Hf(c,ni(f,1,In,!0),Ve(d,2)):[]}),wj=nt(function(c,f){var d=wr(f);return In(d)&&(d=e),In(c)?Hf(c,ni(f,1,In,!0),e,d):[]});function Mj(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),Vr(c,f<0?0:f,v)):[]}o(Mj,"drop");function kj(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),f=v-f,Vr(c,0,f<0?0:f)):[]}o(kj,"dropRight");function jj(c,f){return c&&c.length?Gd(c,Ve(f,3),!0,!0):[]}o(jj,"dropRightWhile");function Uj(c,f){return c&&c.length?Gd(c,Ve(f,3),!0):[]}o(Uj,"dropWhile");function $j(c,f,d,v){var E=c==null?0:c.length;return E?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,v=E),Dk(c,f,d,v)):[]}o($j,"fill");function ZI(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=d==null?0:Je(d);return E<0&&(E=Un(v+E,0)),Sd(c,Ve(f,3),E)}o(ZI,"findIndex");function eO(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=v-1;return d!==e&&(E=Je(d),E=d<0?Un(v+E,0):yi(E,v-1)),Sd(c,Ve(f,3),E,!0)}o(eO,"findLastIndex");function tO(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(tO,"flatten");function Bj(c){var f=c==null?0:c.length;return f?ni(c,Lt):[]}o(Bj,"flattenDeep");function Hj(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ni(c,f)):[]}o(Hj,"flattenDepth");function Gj(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(Gj,"fromPairs");function nO(c){return c&&c.length?c[0]:e}o(nO,"head");function Wj(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=d==null?0:Je(d);return E<0&&(E=Un(v+E,0)),Wc(c,f,E)}o(Wj,"indexOf");function Kj(c){var f=c==null?0:c.length;return f?Vr(c,0,-1):[]}o(Kj,"initial");var Xj=nt(function(c){var f=fn(c,Qv);return f.length&&f[0]===c[0]?kv(f):[]}),Qj=nt(function(c){var f=wr(c),d=fn(c,Qv);return f===wr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?kv(d,Ve(f,2)):[]}),qj=nt(function(c){var f=wr(c),d=fn(c,Qv);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?kv(d,e,f):[]});function zj(c,f){return c==null?"":K2.call(c,f)}o(zj,"join");function wr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(wr,"last");function Yj(c,f,d){var v=c==null?0:c.length;if(!v)return-1;var E=v;return d!==e&&(E=Je(d),E=E<0?Un(v+E,0):yi(E,v-1)),f===f?L2(c,f,E):Sd(c,wx,E,!0)}o(Yj,"lastIndexOf");function Jj(c,f){return c&&c.length?dI(c,Je(f)):e}o(Jj,"nth");var Zj=nt(iO);function iO(c,f){return c&&c.length&&f&&f.length?Bv(c,f):c}o(iO,"pullAll");function eU(c,f,d){return c&&c.length&&f&&f.length?Bv(c,f,Ve(d,2)):c}o(eU,"pullAllBy");function tU(c,f,d){return c&&c.length&&f&&f.length?Bv(c,f,e,d):c}o(tU,"pullAllWith");var nU=ta(function(c,f){var d=c==null?0:c.length,v=_v(c,f);return hI(c,fn(f,function(E){return na(E,d)?+E:E}).sort(xI)),v});function iU(c,f){var d=[];if(!(c&&c.length))return d;var v=-1,E=[],x=c.length;for(f=Ve(f,3);++v<x;){var L=c[v];f(L,v,c)&&(d.push(L),E.push(v))}return hI(c,E),d}o(iU,"remove");function cT(c){return c==null?c:z2.call(c)}o(cT,"reverse");function rU(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:Je(f),d=d===e?v:Je(d)),Vr(c,f,d)):[]}o(rU,"slice");function oU(c,f){return Hd(c,f)}o(oU,"sortedIndex");function aU(c,f,d){return Wv(c,f,Ve(d,2))}o(aU,"sortedIndexBy");function sU(c,f){var d=c==null?0:c.length;if(d){var v=Hd(c,f);if(v<d&&to(c[v],f))return v}return-1}o(sU,"sortedIndexOf");function cU(c,f){return Hd(c,f,!0)}o(cU,"sortedLastIndex");function lU(c,f,d){return Wv(c,f,Ve(d,2),!0)}o(lU,"sortedLastIndexBy");function fU(c,f){var d=c==null?0:c.length;if(d){var v=Hd(c,f,!0)-1;if(to(c[v],f))return v}return-1}o(fU,"sortedLastIndexOf");function uU(c){return c&&c.length?vI(c):[]}o(uU,"sortedUniq");function pU(c,f){return c&&c.length?vI(c,Ve(f,2)):[]}o(pU,"sortedUniqBy");function dU(c){var f=c==null?0:c.length;return f?Vr(c,1,f):[]}o(dU,"tail");function gU(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),Vr(c,0,f<0?0:f)):[]}o(gU,"take");function mU(c,f,d){var v=c==null?0:c.length;return v?(f=d||f===e?1:Je(f),f=v-f,Vr(c,f<0?0:f,v)):[]}o(mU,"takeRight");function hU(c,f){return c&&c.length?Gd(c,Ve(f,3),!1,!0):[]}o(hU,"takeRightWhile");function yU(c,f){return c&&c.length?Gd(c,Ve(f,3)):[]}o(yU,"takeWhile");var vU=nt(function(c){return ja(ni(c,1,In,!0))}),TU=nt(function(c){var f=wr(c);return In(f)&&(f=e),ja(ni(c,1,In,!0),Ve(f,2))}),bU=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,ja(ni(c,1,In,!0),e,f)});function EU(c){return c&&c.length?ja(c):[]}o(EU,"uniq");function AU(c,f){return c&&c.length?ja(c,Ve(f,2)):[]}o(AU,"uniqBy");function SU(c,f){return f=typeof f=="function"?f:e,c&&c.length?ja(c,e,f):[]}o(SU,"uniqWith");function lT(c){if(!(c&&c.length))return[];var f=0;return c=Da(c,function(d){if(In(d))return f=Un(d.length,f),!0}),xv(f,function(d){return fn(c,Sv(d))})}o(lT,"unzip");function rO(c,f){if(!(c&&c.length))return[];var d=lT(c);return f==null?d:fn(d,function(v){return cr(f,e,v)})}o(rO,"unzipWith");var PU=nt(function(c,f){return In(c)?Hf(c,f):[]}),CU=nt(function(c){return Xv(Da(c,In))}),xU=nt(function(c){var f=wr(c);return In(f)&&(f=e),Xv(Da(c,In),Ve(f,2))}),IU=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,Xv(Da(c,In),e,f)}),OU=nt(lT);function NU(c,f){return AI(c||[],f||[],Bf)}o(NU,"zipObject");function LU(c,f){return AI(c||[],f||[],Kf)}o(LU,"zipObjectDeep");var RU=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,rO(c,d)});function oO(c){var f=P(c);return f.__chain__=!0,f}o(oO,"chain");function FU(c,f){return f(c),c}o(FU,"tap");function Zd(c,f){return f(c)}o(Zd,"thru");var DU=ta(function(c){var f=c.length,d=f?c[0]:0,v=this.__wrapped__,E=o(function(x){return _v(x,c)},"interceptor");return f>1||this.__actions__.length||!(v instanceof pt)||!na(d)?this.thru(E):(v=v.slice(d,+d+(f?1:0)),v.__actions__.push({func:Zd,args:[E],thisArg:e}),new Dr(v,this.__chain__).thru(function(x){return f&&!x.length&&x.push(e),x}))});function _U(){return oO(this)}o(_U,"wrapperChain");function VU(){return new Dr(this.value(),this.__chain__)}o(VU,"wrapperCommit");function wU(){this.__values__===e&&(this.__values__=TO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(wU,"wrapperNext");function MU(){return this}o(MU,"wrapperToIterator");function kU(c){for(var f,d=this;d instanceof kd;){var v=JI(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(kU,"wrapperPlant");function jU(){var c=this.__wrapped__;if(c instanceof pt){var f=c;return this.__actions__.length&&(f=new pt(this)),f=f.reverse(),f.__actions__.push({func:Zd,args:[cT],thisArg:e}),new Dr(f,this.__chain__)}return this.thru(cT)}o(jU,"wrapperReverse");function UU(){return EI(this.__wrapped__,this.__actions__)}o(UU,"wrapperValue");var $U=Wd(function(c,f,d){Ft.call(c,d)?++c[d]:Zo(c,d,1)});function BU(c,f,d){var v=Xe(c)?_x:Fk;return d&&Li(c,f,d)&&(f=e),v(c,Ve(f,3))}o(BU,"every");function HU(c,f){var d=Xe(c)?Da:rI;return d(c,Ve(f,3))}o(HU,"filter");var GU=FI(ZI),WU=FI(eO);function KU(c,f){return ni(eg(c,f),1)}o(KU,"flatMap");function XU(c,f){return ni(eg(c,f),Lt)}o(XU,"flatMapDeep");function QU(c,f,d){return d=d===e?1:Je(d),ni(eg(c,f),d)}o(QU,"flatMapDepth");function aO(c,f){var d=Xe(c)?Rr:ka;return d(c,Ve(f,3))}o(aO,"forEach");function sO(c,f){var d=Xe(c)?p2:iI;return d(c,Ve(f,3))}o(sO,"forEachRight");var qU=Wd(function(c,f,d){Ft.call(c,d)?c[d].push(f):Zo(c,d,[f])});function zU(c,f,d,v){c=Ki(c)?c:nl(c),d=d&&!v?Je(d):0;var E=c.length;return d<0&&(d=Un(E+d,0)),og(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&Wc(c,f,d)>-1}o(zU,"includes");var YU=nt(function(c,f,d){var v=-1,E=typeof f=="function",x=Ki(c)?W(c.length):[];return ka(c,function(L){x[++v]=E?cr(f,L,d):Gf(L,f,d)}),x}),JU=Wd(function(c,f,d){Zo(c,d,f)});function eg(c,f){var d=Xe(c)?fn:fI;return d(c,Ve(f,3))}o(eg,"map");function ZU(c,f,d,v){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=v?e:d,Xe(d)||(d=d==null?[]:[d]),gI(c,f,d))}o(ZU,"orderBy");var e$=Wd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function t$(c,f,d){var v=Xe(c)?Ev:kx,E=arguments.length<3;return v(c,Ve(f,4),d,E,ka)}o(t$,"reduce");function n$(c,f,d){var v=Xe(c)?d2:kx,E=arguments.length<3;return v(c,Ve(f,4),d,E,iI)}o(n$,"reduceRight");function i$(c,f){var d=Xe(c)?Da:rI;return d(c,ig(Ve(f,3)))}o(i$,"reject");function r$(c){var f=Xe(c)?Zx:zk;return f(c)}o(r$,"sample");function o$(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Je(f);var v=Xe(c)?Ik:Yk;return v(c,f)}o(o$,"sampleSize");function a$(c){var f=Xe(c)?Ok:Zk;return f(c)}o(a$,"shuffle");function s$(c){if(c==null)return 0;if(Ki(c))return og(c)?Xc(c):c.length;var f=vi(c);return f==Qe||f==gn?c.size:Uv(c).length}o(s$,"size");function c$(c,f,d){var v=Xe(c)?Av:ej;return d&&Li(c,f,d)&&(f=e),v(c,Ve(f,3))}o(c$,"some");var l$=nt(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]]),gI(c,ni(f,1),[])}),tg=H2||function(){return Kn.Date.now()};function f$(c,f){if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(f$,"after");function cO(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,ea(c,Z,e,e,e,e,f)}o(cO,"ary");function lO(c,f){var d;if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(lO,"before");var fT=nt(function(c,f,d){var v=b;if(d.length){var E=Va(d,el(fT));v|=U}return ea(c,v,f,d,E)}),fO=nt(function(c,f,d){var v=b|O;if(d.length){var E=Va(d,el(fO));v|=U}return ea(f,v,c,d,E)});function uO(c,f,d){f=d?e:f;var v=ea(c,j,e,e,e,e,e,f);return v.placeholder=uO.placeholder,v}o(uO,"curry");function pO(c,f,d){f=d?e:f;var v=ea(c,K,e,e,e,e,e,f);return v.placeholder=pO.placeholder,v}o(pO,"curryRight");function dO(c,f,d){var v,E,x,L,R,M,Y=0,J=!1,ee=!1,me=!0;if(typeof c!="function")throw new Fr(r);f=Mr(f)||0,hn(d)&&(J=!!d.leading,ee="maxWait"in d,x=ee?Un(Mr(d.maxWait)||0,f):x,me="trailing"in d?!!d.trailing:me);function Ne(On){var no=v,oa=E;return v=E=e,Y=On,L=c.apply(oa,no),L}o(Ne,"invokeFunc");function Me(On){return Y=On,R=qf(st,f),J?Ne(On):L}o(Me,"leadingEdge");function Ze(On){var no=On-M,oa=On-Y,FO=f-no;return ee?yi(FO,x-oa):FO}o(Ze,"remainingWait");function ke(On){var no=On-M,oa=On-Y;return M===e||no>=f||no<0||ee&&oa>=x}o(ke,"shouldInvoke");function st(){var On=tg();if(ke(On))return gt(On);R=qf(st,Ze(On))}o(st,"timerExpired");function gt(On){return R=e,me&&v?Ne(On):(v=E=e,L)}o(gt,"trailingEdge");function pr(){R!==e&&SI(R),Y=0,v=M=E=R=e}o(pr,"cancel");function Ri(){return R===e?L:gt(tg())}o(Ri,"flush");function dr(){var On=tg(),no=ke(On);if(v=arguments,E=this,M=On,no){if(R===e)return Me(M);if(ee)return SI(R),R=qf(st,f),Ne(M)}return R===e&&(R=qf(st,f)),L}return o(dr,"debounced"),dr.cancel=pr,dr.flush=Ri,dr}o(dO,"debounce");var u$=nt(function(c,f){return nI(c,1,f)}),p$=nt(function(c,f,d){return nI(c,Mr(f)||0,d)});function d$(c){return ea(c,Pe)}o(d$,"flip");function ng(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],x=d.cache;if(x.has(E))return x.get(E);var L=c.apply(this,v);return d.cache=x.set(E,L)||x,L},"memoized");return d.cache=new(ng.Cache||Jo),d}o(ng,"memoize"),ng.Cache=Jo;function ig(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(ig,"negate");function g$(c){return lO(2,c)}o(g$,"once");var m$=tj(function(c,f){f=f.length==1&&Xe(f[0])?fn(f[0],lr(Ve())):fn(ni(f,1),lr(Ve()));var d=f.length;return nt(function(v){for(var E=-1,x=yi(v.length,d);++E<x;)v[E]=f[E].call(this,v[E]);return cr(c,this,v)})}),uT=nt(function(c,f){var d=Va(f,el(uT));return ea(c,U,e,f,d)}),gO=nt(function(c,f){var d=Va(f,el(gO));return ea(c,ae,e,f,d)}),h$=ta(function(c,f){return ea(c,re,e,e,e,f)});function y$(c,f){if(typeof c!="function")throw new Fr(r);return f=f===e?f:Je(f),nt(c,f)}o(y$,"rest");function v$(c,f){if(typeof c!="function")throw new Fr(r);return f=f==null?0:Un(Je(f),0),nt(function(d){var v=d[f],E=$a(d,0,f);return v&&_a(E,v),cr(c,this,E)})}o(v$,"spread");function T$(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),dO(c,f,{leading:v,maxWait:f,trailing:E})}o(T$,"throttle");function b$(c){return cO(c,1)}o(b$,"unary");function E$(c,f){return uT(qv(f),c)}o(E$,"wrap");function A$(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}o(A$,"castArray");function S$(c){return _r(c,m)}o(S$,"clone");function P$(c,f){return f=typeof f=="function"?f:e,_r(c,m,f)}o(P$,"cloneWith");function C$(c){return _r(c,p|m)}o(C$,"cloneDeep");function x$(c,f){return f=typeof f=="function"?f:e,_r(c,p|m,f)}o(x$,"cloneDeepWith");function I$(c,f){return f==null||tI(c,f,Xn(f))}o(I$,"conformsTo");function to(c,f){return c===f||c!==c&&f!==f}o(to,"eq");var O$=qd(Mv),N$=qd(function(c,f){return c>=f}),Ks=sI(function(){return arguments}())?sI:function(c){return Tn(c)&&Ft.call(c,"callee")&&!Xx.call(c,"callee")},Xe=W.isArray,L$=Ox?lr(Ox):kk;function Ki(c){return c!=null&&rg(c.length)&&!ia(c)}o(Ki,"isArrayLike");function In(c){return Tn(c)&&Ki(c)}o(In,"isArrayLikeObject");function R$(c){return c===!0||c===!1||Tn(c)&&Ni(c)==I}o(R$,"isBoolean");var Ba=W2||AT,F$=Nx?lr(Nx):jk;function D$(c){return Tn(c)&&c.nodeType===1&&!zf(c)}o(D$,"isElement");function _$(c){if(c==null)return!0;if(Ki(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||Ba(c)||tl(c)||Ks(c)))return!c.length;var f=vi(c);if(f==Qe||f==gn)return!c.size;if(Qf(c))return!Uv(c).length;for(var d in c)if(Ft.call(c,d))return!1;return!0}o(_$,"isEmpty");function V$(c,f){return Wf(c,f)}o(V$,"isEqual");function w$(c,f,d){d=typeof d=="function"?d:e;var v=d?d(c,f):e;return v===e?Wf(c,f,e,d):!!v}o(w$,"isEqualWith");function pT(c){if(!Tn(c))return!1;var f=Ni(c);return f==V||f==z||typeof c.message=="string"&&typeof c.name=="string"&&!zf(c)}o(pT,"isError");function M$(c){return typeof c=="number"&&qx(c)}o(M$,"isFinite");function ia(c){if(!hn(c))return!1;var f=Ni(c);return f==_e||f==Rt||f==at||f==ti}o(ia,"isFunction");function mO(c){return typeof c=="number"&&c==Je(c)}o(mO,"isInteger");function rg(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(rg,"isLength");function hn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(hn,"isObject");function Tn(c){return c!=null&&typeof c=="object"}o(Tn,"isObjectLike");var hO=Lx?lr(Lx):$k;function k$(c,f){return c===f||jv(c,f,nT(f))}o(k$,"isMatch");function j$(c,f,d){return d=typeof d=="function"?d:e,jv(c,f,nT(f),d)}o(j$,"isMatchWith");function U$(c){return yO(c)&&c!=+c}o(U$,"isNaN");function $$(c){if(Pj(c))throw new We(i);return cI(c)}o($$,"isNative");function B$(c){return c===null}o(B$,"isNull");function H$(c){return c==null}o(H$,"isNil");function yO(c){return typeof c=="number"||Tn(c)&&Ni(c)==kt}o(yO,"isNumber");function zf(c){if(!Tn(c)||Ni(c)!=cn)return!1;var f=Rd(c);if(f===null)return!0;var d=Ft.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&Id.call(d)==j2}o(zf,"isPlainObject");var dT=Rx?lr(Rx):Bk;function G$(c){return mO(c)&&c>=-Re&&c<=Re}o(G$,"isSafeInteger");var vO=Fx?lr(Fx):Hk;function og(c){return typeof c=="string"||!Xe(c)&&Tn(c)&&Ni(c)==hi}o(og,"isString");function ur(c){return typeof c=="symbol"||Tn(c)&&Ni(c)==Gt}o(ur,"isSymbol");var tl=Dx?lr(Dx):Gk;function W$(c){return c===e}o(W$,"isUndefined");function K$(c){return Tn(c)&&vi(c)==Gi}o(K$,"isWeakMap");function X$(c){return Tn(c)&&Ni(c)==Rf}o(X$,"isWeakSet");var Q$=qd($v),q$=qd(function(c,f){return c<=f});function TO(c){if(!c)return[];if(Ki(c))return og(c)?Zr(c):Wi(c);if(Mf&&c[Mf])return I2(c[Mf]());var f=vi(c),d=f==Qe?Ov:f==gn?Pd:nl;return d(c)}o(TO,"toArray");function ra(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(ra,"toFinite");function Je(c){var f=ra(c),d=f%1;return f===f?d?f-d:f:0}o(Je,"toInteger");function bO(c){return c?Bs(Je(c),0,Mt):0}o(bO,"toLength");function Mr(c){if(typeof c=="number")return c;if(ur(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=jx(c);var d=NM.test(c);return d||RM.test(c)?l2(c.slice(2),d?2:8):OM.test(c)?It:+c}o(Mr,"toNumber");function EO(c){return Po(c,Xi(c))}o(EO,"toPlainObject");function z$(c){return c?Bs(Je(c),-Re,Re):c===0?c:0}o(z$,"toSafeInteger");function Ot(c){return c==null?"":fr(c)}o(Ot,"toString");var Y$=Jc(function(c,f){if(Qf(f)||Ki(f)){Po(f,Xn(f),c);return}for(var d in f)Ft.call(f,d)&&Bf(c,d,f[d])}),AO=Jc(function(c,f){Po(f,Xi(f),c)}),ag=Jc(function(c,f,d,v){Po(f,Xi(f),c,v)}),J$=Jc(function(c,f,d,v){Po(f,Xn(f),c,v)}),Z$=ta(_v);function e4(c,f){var d=Yc(c);return f==null?d:eI(d,f)}o(e4,"create");var t4=nt(function(c,f){c=Kt(c);var d=-1,v=f.length,E=v>2?f[2]:e;for(E&&Li(f[0],f[1],E)&&(v=1);++d<v;)for(var x=f[d],L=Xi(x),R=-1,M=L.length;++R<M;){var Y=L[R],J=c[Y];(J===e||to(J,Qc[Y])&&!Ft.call(c,Y))&&(c[Y]=x[Y])}return c}),n4=nt(function(c){return c.push(e,jI),cr(SO,e,c)});function i4(c,f){return Vx(c,Ve(f,3),So)}o(i4,"findKey");function r4(c,f){return Vx(c,Ve(f,3),wv)}o(r4,"findLastKey");function o4(c,f){return c==null?c:Vv(c,Ve(f,3),Xi)}o(o4,"forIn");function a4(c,f){return c==null?c:oI(c,Ve(f,3),Xi)}o(a4,"forInRight");function s4(c,f){return c&&So(c,Ve(f,3))}o(s4,"forOwn");function c4(c,f){return c&&wv(c,Ve(f,3))}o(c4,"forOwnRight");function l4(c){return c==null?[]:$d(c,Xn(c))}o(l4,"functions");function f4(c){return c==null?[]:$d(c,Xi(c))}o(f4,"functionsIn");function gT(c,f,d){var v=c==null?e:Hs(c,f);return v===e?d:v}o(gT,"get");function u4(c,f){return c!=null&&BI(c,f,_k)}o(u4,"has");function mT(c,f){return c!=null&&BI(c,f,Vk)}o(mT,"hasIn");var p4=_I(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Od.call(f)),c[f]=d},yT(Qi)),d4=_I(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Od.call(f)),Ft.call(c,f)?c[f].push(d):c[f]=[d]},Ve),g4=nt(Gf);function Xn(c){return Ki(c)?Jx(c):Uv(c)}o(Xn,"keys");function Xi(c){return Ki(c)?Jx(c,!0):Wk(c)}o(Xi,"keysIn");function m4(c,f){var d={};return f=Ve(f,3),So(c,function(v,E,x){Zo(d,f(v,E,x),v)}),d}o(m4,"mapKeys");function h4(c,f){var d={};return f=Ve(f,3),So(c,function(v,E,x){Zo(d,E,f(v,E,x))}),d}o(h4,"mapValues");var y4=Jc(function(c,f,d){Bd(c,f,d)}),SO=Jc(function(c,f,d,v){Bd(c,f,d,v)}),T4=ta(function(c,f){var d={};if(c==null)return d;var v=!1;f=fn(f,function(x){return x=Ua(x,c),v||(v=x.length>1),x}),Po(c,eT(c),d),v&&(d=_r(d,p|g|m,pj));for(var E=f.length;E--;)Kv(d,f[E]);return d});function b4(c,f){return PO(c,ig(Ve(f)))}o(b4,"omitBy");var E4=ta(function(c,f){return c==null?{}:Xk(c,f)});function PO(c,f){if(c==null)return{};var d=fn(eT(c),function(v){return[v]});return f=Ve(f),mI(c,d,function(v,E){return f(v,E[0])})}o(PO,"pickBy");function A4(c,f,d){f=Ua(f,c);var v=-1,E=f.length;for(E||(E=1,c=e);++v<E;){var x=c==null?e:c[Co(f[v])];x===e&&(v=E,x=d),c=ia(x)?x.call(c):x}return c}o(A4,"result");function S4(c,f,d){return c==null?c:Kf(c,f,d)}o(S4,"set");function P4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:Kf(c,f,d,v)}o(P4,"setWith");var CO=MI(Xn),xO=MI(Xi);function C4(c,f,d){var v=Xe(c),E=v||Ba(c)||tl(c);if(f=Ve(f,4),d==null){var x=c&&c.constructor;E?d=v?new x:[]:hn(c)?d=ia(x)?Yc(Rd(c)):{}:d={}}return(E?Rr:So)(c,function(L,R,M){return f(d,L,R,M)}),d}o(C4,"transform");function x4(c,f){return c==null?!0:Kv(c,f)}o(x4,"unset");function I4(c,f,d){return c==null?c:bI(c,f,qv(d))}o(I4,"update");function O4(c,f,d,v){return v=typeof v=="function"?v:e,c==null?c:bI(c,f,qv(d),v)}o(O4,"updateWith");function nl(c){return c==null?[]:Iv(c,Xn(c))}o(nl,"values");function N4(c){return c==null?[]:Iv(c,Xi(c))}o(N4,"valuesIn");function L4(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),Bs(Mr(c),f,d)}o(L4,"clamp");function R4(c,f,d){return f=ra(f),d===e?(d=f,f=0):d=ra(d),c=Mr(c),wk(c,f,d)}o(R4,"inRange");function F4(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=ra(c),f===e?(f=c,c=0):f=ra(f)),c>f){var v=c;c=f,f=v}if(d||c%1||f%1){var E=zx();return yi(c+E*(f-c+c2("1e-"+((E+"").length-1))),f)}return Hv(c,f)}o(F4,"random");var D4=Zc(function(c,f,d){return f=f.toLowerCase(),c+(d?IO(f):f)});function IO(c){return hT(Ot(c).toLowerCase())}o(IO,"capitalize");function OO(c){return c=Ot(c),c&&c.replace(DM,A2).replace(JM,"")}o(OO,"deburr");function _4(c,f,d){c=Ot(c),f=fr(f);var v=c.length;d=d===e?v:Bs(Je(d),0,v);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(_4,"endsWith");function V4(c){return c=Ot(c),c&&Oe.test(c)?c.replace(be,S2):c}o(V4,"escape");function w4(c){return c=Ot(c),c&&TM.test(c)?c.replace(Vf,"\\$&"):c}o(w4,"escapeRegExp");var M4=Zc(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),k4=Zc(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),j4=RI("toLowerCase");function U4(c,f,d){c=Ot(c),f=Je(f);var v=f?Xc(c):0;if(!f||v>=f)return c;var E=(f-v)/2;return Qd(Vd(E),d)+c+Qd(_d(E),d)}o(U4,"pad");function $4(c,f,d){c=Ot(c),f=Je(f);var v=f?Xc(c):0;return f&&v<f?c+Qd(f-v,d):c}o($4,"padEnd");function B4(c,f,d){c=Ot(c),f=Je(f);var v=f?Xc(c):0;return f&&v<f?Qd(f-v,d)+c:c}o(B4,"padStart");function H4(c,f,d){return d||f==null?f=0:f&&(f=+f),q2(Ot(c).replace(pv,""),f||0)}o(H4,"parseInt");function G4(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Je(f),Gv(Ot(c),f)}o(G4,"repeat");function W4(){var c=arguments,f=Ot(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(W4,"replace");var K4=Zc(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function X4(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?Mt:d>>>0,d?(c=Ot(c),c&&(typeof f=="string"||f!=null&&!dT(f))&&(f=fr(f),!f&&Kc(c))?$a(Zr(c),0,d):c.split(f,d)):[]}o(X4,"split");var Q4=Zc(function(c,f,d){return c+(d?" ":"")+hT(f)});function q4(c,f,d){return c=Ot(c),d=d==null?0:Bs(Je(d),0,c.length),f=fr(f),c.slice(d,d+f.length)==f}o(q4,"startsWith");function z4(c,f,d){var v=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=Ot(c),f=ag({},f,v,kI);var E=ag({},f.imports,v.imports,kI),x=Xn(E),L=Iv(E,x),R,M,Y=0,J=f.interpolate||Td,ee="__p += '",me=Nv((f.escape||Td).source+"|"+J.source+"|"+(J===ln?IM:Td).source+"|"+(f.evaluate||Td).source+"|$","g"),Ne="//# sourceURL="+(Ft.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++i2+"]")+`
272
- `;c.replace(me,function(ke,st,gt,pr,Ri,dr){return gt||(gt=pr),ee+=c.slice(Y,dr).replace(_M,P2),st&&(R=!0,ee+=`' +
271
+ `)}o(_j,"insertWrapDetails");function Vj(c){return Xe(c)||Xs(c)||!!(oO&&c&&c[oO])}o(Vj,"isFlattenable");function na(c,f){var d=typeof c;return f=f??Re,!!f&&(d=="number"||d!="symbol"&&KM.test(c))&&c>-1&&c%1==0&&c<f}o(na,"isIndex");function Li(c,f,d){if(!hn(d))return!1;var T=typeof f;return(T=="number"?Ki(d)&&na(f,d.length):T=="string"&&f in d)?to(d[f],c):!1}o(Li,"isIterateeCall");function gT(c,f){if(Xe(c))return!1;var d=typeof c;return d=="number"||d=="symbol"||d=="boolean"||c==null||ur(c)?!0:xd.test(c)||!sr.test(c)||f!=null&&c in Xt(f)}o(gT,"isKey");function wj(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}o(wj,"isKeyable");function mT(c){var f=ig(c),d=P[f];if(typeof d!="function"||!(f in pt.prototype))return!1;if(c===d)return!0;var T=uT(d);return!!T&&c===T[0]}o(mT,"isLaziable");function Mj(c){return!!tO&&tO in c}o(Mj,"isMasked");var kj=Dd?ia:FT;function zf(c){var f=c&&c.constructor,d=typeof f=="function"&&f.prototype||qc;return c===d}o(zf,"isPrototype");function tI(c){return c===c&&!hn(c)}o(tI,"isStrictComparable");function nI(c,f){return function(d){return d==null?!1:d[c]===f&&(f!==e||c in Xt(d))}}o(nI,"matchesStrictComparable");function jj(c){var f=lg(c,function(T){return d.size===l&&d.clear(),T}),d=f.cache;return f}o(jj,"memoizeCapped");function Uj(c,f){var d=c[1],T=f[1],E=d|T,C=E<(b|I|Z),L=T==Z&&d==j||T==Z&&d==re&&c[7].length<=f[8]||T==(Z|re)&&f[7].length<=f[8]&&d==j;if(!(C||L))return c;T&b&&(c[2]=f[2],E|=d&b?0:F);var R=f[3];if(R){var M=c[3];c[3]=M?kO(M,R,f[4]):R,c[4]=M?wa(c[3],u):f[4]}return R=f[5],R&&(M=c[5],c[5]=M?jO(M,R,f[6]):R,c[6]=M?wa(c[5],u):f[6]),R=f[7],R&&(c[7]=R),T&Z&&(c[8]=c[8]==null?f[8]:yi(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=E,c}o(Uj,"mergeData");function $j(c){var f=[];if(c!=null)for(var d in Xt(c))f.push(d);return f}o($j,"nativeKeysIn");function Bj(c){return Vd.call(c)}o(Bj,"objectToString");function iI(c,f,d){return f=Un(f===e?c.length-1:f,0),function(){for(var T=arguments,E=-1,C=Un(T.length-f,0),L=W(C);++E<C;)L[E]=T[f+E];E=-1;for(var R=W(f+1);++E<f;)R[E]=T[E];return R[f]=d(L),cr(c,this,R)}}o(iI,"overRest");function rI(c,f){return f.length<2?c:Gs(c,Vr(f,0,-1))}o(rI,"parent");function Hj(c,f){for(var d=c.length,T=yi(f.length,d),E=Wi(c);T--;){var C=f[T];c[T]=na(C,d)?E[C]:e}return c}o(Hj,"reorder");function hT(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}o(hT,"safeGet");var oI=sI(IO),Yf=rk||function(c,f){return Kn.setTimeout(c,f)},yT=sI(pj);function aI(c,f,d){var T=f+"";return yT(c,_j(T,Gj(Rj(T),d)))}o(aI,"setWrapToString");function sI(c){var f=0,d=0;return function(){var T=ck(),E=Ue-(T-d);if(d=T,E>0){if(++f>=yt)return arguments[0]}else f=0;return c.apply(e,arguments)}}o(sI,"shortOut");function og(c,f){var d=-1,T=c.length,E=T-1;for(f=f===e?T:f;++d<f;){var C=Zv(d,E),L=c[C];c[C]=c[d],c[d]=L}return c.length=f,c}o(og,"shuffleSelf");var cI=jj(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(Ev,function(d,T,E,C){f.push(E?C.replace(UM,"$1"):T||d)}),f});function xo(c){if(typeof c=="string"||ur(c))return c;var f=c+"";return f=="0"&&1/c==-Rt?"-0":f}o(xo,"toKey");function Ks(c){if(c!=null){try{return _d.call(c)}catch{}try{return c+""}catch{}}return""}o(Ks,"toSource");function Gj(c,f){return Rr(Fe,function(d){var T="_."+d[0];f&d[1]&&!Nd(c,T)&&c.push(T)}),c.sort()}o(Gj,"updateWrapDetails");function lI(c){if(c instanceof pt)return c.clone();var f=new Dr(c.__wrapped__,c.__chain__);return f.__actions__=Wi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}o(lI,"wrapperClone");function Wj(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Un(Je(f),0);var T=c==null?0:c.length;if(!T||f<1)return[];for(var E=0,C=0,L=W($d(T/f));E<T;)L[C++]=Vr(c,E,E+=f);return L}o(Wj,"chunk");function Kj(c){for(var f=-1,d=c==null?0:c.length,T=0,E=[];++f<d;){var C=c[f];C&&(E[T++]=C)}return E}o(Kj,"compact");function Xj(){var c=arguments.length;if(!c)return[];for(var f=W(c-1),d=arguments[0],T=c;T--;)f[T-1]=arguments[T];return Va(Xe(d)?Wi(d):[d],ni(f,1))}o(Xj,"concat");var Qj=nt(function(c,f){return On(c)?Wf(c,ni(f,1,On,!0)):[]}),qj=nt(function(c,f){var d=wr(f);return On(d)&&(d=e),On(c)?Wf(c,ni(f,1,On,!0),Ve(d,2)):[]}),zj=nt(function(c,f){var d=wr(f);return On(d)&&(d=e),On(c)?Wf(c,ni(f,1,On,!0),e,d):[]});function Yj(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),Vr(c,f<0?0:f,T)):[]}o(Yj,"drop");function Jj(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),f=T-f,Vr(c,0,f<0?0:f)):[]}o(Jj,"dropRight");function Zj(c,f){return c&&c.length?Yd(c,Ve(f,3),!0,!0):[]}o(Zj,"dropRightWhile");function eU(c,f){return c&&c.length?Yd(c,Ve(f,3),!0):[]}o(eU,"dropWhile");function tU(c,f,d,T){var E=c==null?0:c.length;return E?(d&&typeof d!="number"&&Li(c,f,d)&&(d=0,T=E),Xk(c,f,d,T)):[]}o(tU,"fill");function fI(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=d==null?0:Je(d);return E<0&&(E=Un(T+E,0)),Ld(c,Ve(f,3),E)}o(fI,"findIndex");function uI(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=T-1;return d!==e&&(E=Je(d),E=d<0?Un(T+E,0):yi(E,T-1)),Ld(c,Ve(f,3),E,!0)}o(uI,"findLastIndex");function pI(c){var f=c==null?0:c.length;return f?ni(c,1):[]}o(pI,"flatten");function nU(c){var f=c==null?0:c.length;return f?ni(c,Rt):[]}o(nU,"flattenDeep");function iU(c,f){var d=c==null?0:c.length;return d?(f=f===e?1:Je(f),ni(c,f)):[]}o(iU,"flattenDepth");function rU(c){for(var f=-1,d=c==null?0:c.length,T={};++f<d;){var E=c[f];T[E[0]]=E[1]}return T}o(rU,"fromPairs");function dI(c){return c&&c.length?c[0]:e}o(dI,"head");function oU(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=d==null?0:Je(d);return E<0&&(E=Un(T+E,0)),Kc(c,f,E)}o(oU,"indexOf");function aU(c){var f=c==null?0:c.length;return f?Vr(c,0,-1):[]}o(aU,"initial");var sU=nt(function(c){var f=un(c,rT);return f.length&&f[0]===c[0]?Qv(f):[]}),cU=nt(function(c){var f=wr(c),d=un(c,rT);return f===wr(d)?f=e:d.pop(),d.length&&d[0]===c[0]?Qv(d,Ve(f,2)):[]}),lU=nt(function(c){var f=wr(c),d=un(c,rT);return f=typeof f=="function"?f:e,f&&d.pop(),d.length&&d[0]===c[0]?Qv(d,e,f):[]});function fU(c,f){return c==null?"":ak.call(c,f)}o(fU,"join");function wr(c){var f=c==null?0:c.length;return f?c[f-1]:e}o(wr,"last");function uU(c,f,d){var T=c==null?0:c.length;if(!T)return-1;var E=T;return d!==e&&(E=Je(d),E=E<0?Un(T+E,0):yi(E,T-1)),f===f?G2(c,f,E):Ld(c,XC,E,!0)}o(uU,"lastIndexOf");function pU(c,f){return c&&c.length?PO(c,Je(f)):e}o(pU,"nth");var dU=nt(gI);function gI(c,f){return c&&c.length&&f&&f.length?Jv(c,f):c}o(gI,"pullAll");function gU(c,f,d){return c&&c.length&&f&&f.length?Jv(c,f,Ve(d,2)):c}o(gU,"pullAllBy");function mU(c,f,d){return c&&c.length&&f&&f.length?Jv(c,f,e,d):c}o(mU,"pullAllWith");var hU=ta(function(c,f){var d=c==null?0:c.length,T=Gv(c,f);return OO(c,un(f,function(E){return na(E,d)?+E:E}).sort(MO)),T});function yU(c,f){var d=[];if(!(c&&c.length))return d;var T=-1,E=[],C=c.length;for(f=Ve(f,3);++T<C;){var L=c[T];f(L,T,c)&&(d.push(L),E.push(T))}return OO(c,E),d}o(yU,"remove");function vT(c){return c==null?c:fk.call(c)}o(vT,"reverse");function vU(c,f,d){var T=c==null?0:c.length;return T?(d&&typeof d!="number"&&Li(c,f,d)?(f=0,d=T):(f=f==null?0:Je(f),d=d===e?T:Je(d)),Vr(c,f,d)):[]}o(vU,"slice");function TU(c,f){return zd(c,f)}o(TU,"sortedIndex");function bU(c,f,d){return tT(c,f,Ve(d,2))}o(bU,"sortedIndexBy");function EU(c,f){var d=c==null?0:c.length;if(d){var T=zd(c,f);if(T<d&&to(c[T],f))return T}return-1}o(EU,"sortedIndexOf");function AU(c,f){return zd(c,f,!0)}o(AU,"sortedLastIndex");function SU(c,f,d){return tT(c,f,Ve(d,2),!0)}o(SU,"sortedLastIndexBy");function PU(c,f){var d=c==null?0:c.length;if(d){var T=zd(c,f,!0)-1;if(to(c[T],f))return T}return-1}o(PU,"sortedLastIndexOf");function xU(c){return c&&c.length?NO(c):[]}o(xU,"sortedUniq");function CU(c,f){return c&&c.length?NO(c,Ve(f,2)):[]}o(CU,"sortedUniqBy");function OU(c){var f=c==null?0:c.length;return f?Vr(c,1,f):[]}o(OU,"tail");function IU(c,f,d){return c&&c.length?(f=d||f===e?1:Je(f),Vr(c,0,f<0?0:f)):[]}o(IU,"take");function NU(c,f,d){var T=c==null?0:c.length;return T?(f=d||f===e?1:Je(f),f=T-f,Vr(c,f<0?0:f,T)):[]}o(NU,"takeRight");function LU(c,f){return c&&c.length?Yd(c,Ve(f,3),!1,!0):[]}o(LU,"takeRightWhile");function RU(c,f){return c&&c.length?Yd(c,Ve(f,3)):[]}o(RU,"takeWhile");var FU=nt(function(c){return Ua(ni(c,1,On,!0))}),DU=nt(function(c){var f=wr(c);return On(f)&&(f=e),Ua(ni(c,1,On,!0),Ve(f,2))}),_U=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,Ua(ni(c,1,On,!0),e,f)});function VU(c){return c&&c.length?Ua(c):[]}o(VU,"uniq");function wU(c,f){return c&&c.length?Ua(c,Ve(f,2)):[]}o(wU,"uniqBy");function MU(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ua(c,e,f):[]}o(MU,"uniqWith");function TT(c){if(!(c&&c.length))return[];var f=0;return c=_a(c,function(d){if(On(d))return f=Un(d.length,f),!0}),wv(f,function(d){return un(c,Dv(d))})}o(TT,"unzip");function mI(c,f){if(!(c&&c.length))return[];var d=TT(c);return f==null?d:un(d,function(T){return cr(f,e,T)})}o(mI,"unzipWith");var kU=nt(function(c,f){return On(c)?Wf(c,f):[]}),jU=nt(function(c){return iT(_a(c,On))}),UU=nt(function(c){var f=wr(c);return On(f)&&(f=e),iT(_a(c,On),Ve(f,2))}),$U=nt(function(c){var f=wr(c);return f=typeof f=="function"?f:e,iT(_a(c,On),e,f)}),BU=nt(TT);function HU(c,f){return DO(c||[],f||[],Gf)}o(HU,"zipObject");function GU(c,f){return DO(c||[],f||[],Qf)}o(GU,"zipObjectDeep");var WU=nt(function(c){var f=c.length,d=f>1?c[f-1]:e;return d=typeof d=="function"?(c.pop(),d):e,mI(c,d)});function hI(c){var f=P(c);return f.__chain__=!0,f}o(hI,"chain");function KU(c,f){return f(c),c}o(KU,"tap");function ag(c,f){return f(c)}o(ag,"thru");var XU=ta(function(c){var f=c.length,d=f?c[0]:0,T=this.__wrapped__,E=o(function(C){return Gv(C,c)},"interceptor");return f>1||this.__actions__.length||!(T instanceof pt)||!na(d)?this.thru(E):(T=T.slice(d,+d+(f?1:0)),T.__actions__.push({func:ag,args:[E],thisArg:e}),new Dr(T,this.__chain__).thru(function(C){return f&&!C.length&&C.push(e),C}))});function QU(){return hI(this)}o(QU,"wrapperChain");function qU(){return new Dr(this.value(),this.__chain__)}o(qU,"wrapperCommit");function zU(){this.__values__===e&&(this.__values__=LI(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}o(zU,"wrapperNext");function YU(){return this}o(YU,"wrapperToIterator");function JU(c){for(var f,d=this;d instanceof Wd;){var T=lI(d);T.__index__=0,T.__values__=e,f?E.__wrapped__=T:f=T;var E=T;d=d.__wrapped__}return E.__wrapped__=c,f}o(JU,"wrapperPlant");function ZU(){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:ag,args:[vT],thisArg:e}),new Dr(f,this.__chain__)}return this.thru(vT)}o(ZU,"wrapperReverse");function e4(){return FO(this.__wrapped__,this.__actions__)}o(e4,"wrapperValue");var t4=Jd(function(c,f,d){Dt.call(c,d)?++c[d]:Zo(c,d,1)});function n4(c,f,d){var T=Xe(c)?WC:Kk;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(n4,"every");function i4(c,f){var d=Xe(c)?_a:mO;return d(c,Ve(f,3))}o(i4,"filter");var r4=HO(fI),o4=HO(uI);function a4(c,f){return ni(sg(c,f),1)}o(a4,"flatMap");function s4(c,f){return ni(sg(c,f),Rt)}o(s4,"flatMapDeep");function c4(c,f,d){return d=d===e?1:Je(d),ni(sg(c,f),d)}o(c4,"flatMapDepth");function yI(c,f){var d=Xe(c)?Rr:ja;return d(c,Ve(f,3))}o(yI,"forEach");function vI(c,f){var d=Xe(c)?O2:gO;return d(c,Ve(f,3))}o(vI,"forEachRight");var l4=Jd(function(c,f,d){Dt.call(c,d)?c[d].push(f):Zo(c,d,[f])});function f4(c,f,d,T){c=Ki(c)?c:il(c),d=d&&!T?Je(d):0;var E=c.length;return d<0&&(d=Un(E+d,0)),pg(c)?d<=E&&c.indexOf(f,d)>-1:!!E&&Kc(c,f,d)>-1}o(f4,"includes");var u4=nt(function(c,f,d){var T=-1,E=typeof f=="function",C=Ki(c)?W(c.length):[];return ja(c,function(L){C[++T]=E?cr(f,L,d):Kf(L,f,d)}),C}),p4=Jd(function(c,f,d){Zo(c,d,f)});function sg(c,f){var d=Xe(c)?un:EO;return d(c,Ve(f,3))}o(sg,"map");function d4(c,f,d,T){return c==null?[]:(Xe(f)||(f=f==null?[]:[f]),d=T?e:d,Xe(d)||(d=d==null?[]:[d]),xO(c,f,d))}o(d4,"orderBy");var g4=Jd(function(c,f,d){c[d?0:1].push(f)},function(){return[[],[]]});function m4(c,f,d){var T=Xe(c)?Rv:qC,E=arguments.length<3;return T(c,Ve(f,4),d,E,ja)}o(m4,"reduce");function h4(c,f,d){var T=Xe(c)?I2:qC,E=arguments.length<3;return T(c,Ve(f,4),d,E,gO)}o(h4,"reduceRight");function y4(c,f){var d=Xe(c)?_a:mO;return d(c,fg(Ve(f,3)))}o(y4,"reject");function T4(c){var f=Xe(c)?fO:fj;return f(c)}o(T4,"sample");function b4(c,f,d){(d?Li(c,f,d):f===e)?f=1:f=Je(f);var T=Xe(c)?$k:uj;return T(c,f)}o(b4,"sampleSize");function E4(c){var f=Xe(c)?Bk:dj;return f(c)}o(E4,"shuffle");function A4(c){if(c==null)return 0;if(Ki(c))return pg(c)?Qc(c):c.length;var f=vi(c);return f==Qe||f==gn?c.size:zv(c).length}o(A4,"size");function S4(c,f,d){var T=Xe(c)?Fv:gj;return d&&Li(c,f,d)&&(f=e),T(c,Ve(f,3))}o(S4,"some");var P4=nt(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]]),xO(c,ni(f,1),[])}),cg=ik||function(){return Kn.Date.now()};function x4(c,f){if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}o(x4,"after");function TI(c,f,d){return f=d?e:f,f=c&&f==null?c.length:f,ea(c,Z,e,e,e,e,f)}o(TI,"ary");function bI(c,f){var d;if(typeof f!="function")throw new Fr(r);return c=Je(c),function(){return--c>0&&(d=f.apply(this,arguments)),c<=1&&(f=e),d}}o(bI,"before");var bT=nt(function(c,f,d){var T=b;if(d.length){var E=wa(d,tl(bT));T|=U}return ea(c,T,f,d,E)}),EI=nt(function(c,f,d){var T=b|I;if(d.length){var E=wa(d,tl(EI));T|=U}return ea(f,T,c,d,E)});function AI(c,f,d){f=d?e:f;var T=ea(c,j,e,e,e,e,e,f);return T.placeholder=AI.placeholder,T}o(AI,"curry");function SI(c,f,d){f=d?e:f;var T=ea(c,K,e,e,e,e,e,f);return T.placeholder=SI.placeholder,T}o(SI,"curryRight");function PI(c,f,d){var T,E,C,L,R,M,Y=0,J=!1,ee=!1,me=!0;if(typeof c!="function")throw new Fr(r);f=Mr(f)||0,hn(d)&&(J=!!d.leading,ee="maxWait"in d,C=ee?Un(Mr(d.maxWait)||0,f):C,me="trailing"in d?!!d.trailing:me);function Ne(In){var no=T,oa=E;return T=E=e,Y=In,L=c.apply(oa,no),L}o(Ne,"invokeFunc");function Me(In){return Y=In,R=Yf(st,f),J?Ne(In):L}o(Me,"leadingEdge");function Ze(In){var no=In-M,oa=In-Y,HI=f-no;return ee?yi(HI,C-oa):HI}o(Ze,"remainingWait");function ke(In){var no=In-M,oa=In-Y;return M===e||no>=f||no<0||ee&&oa>=C}o(ke,"shouldInvoke");function st(){var In=cg();if(ke(In))return gt(In);R=Yf(st,Ze(In))}o(st,"timerExpired");function gt(In){return R=e,me&&T?Ne(In):(T=E=e,L)}o(gt,"trailingEdge");function pr(){R!==e&&_O(R),Y=0,T=M=E=R=e}o(pr,"cancel");function Ri(){return R===e?L:gt(cg())}o(Ri,"flush");function dr(){var In=cg(),no=ke(In);if(T=arguments,E=this,M=In,no){if(R===e)return Me(M);if(ee)return _O(R),R=Yf(st,f),Ne(M)}return R===e&&(R=Yf(st,f)),L}return o(dr,"debounced"),dr.cancel=pr,dr.flush=Ri,dr}o(PI,"debounce");var C4=nt(function(c,f){return dO(c,1,f)}),O4=nt(function(c,f,d){return dO(c,Mr(f)||0,d)});function I4(c){return ea(c,Pe)}o(I4,"flip");function lg(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Fr(r);var d=o(function(){var T=arguments,E=f?f.apply(this,T):T[0],C=d.cache;if(C.has(E))return C.get(E);var L=c.apply(this,T);return d.cache=C.set(E,L)||C,L},"memoized");return d.cache=new(lg.Cache||Jo),d}o(lg,"memoize"),lg.Cache=Jo;function fg(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(fg,"negate");function N4(c){return bI(2,c)}o(N4,"once");var L4=mj(function(c,f){f=f.length==1&&Xe(f[0])?un(f[0],lr(Ve())):un(ni(f,1),lr(Ve()));var d=f.length;return nt(function(T){for(var E=-1,C=yi(T.length,d);++E<C;)T[E]=f[E].call(this,T[E]);return cr(c,this,T)})}),ET=nt(function(c,f){var d=wa(f,tl(ET));return ea(c,U,e,f,d)}),xI=nt(function(c,f){var d=wa(f,tl(xI));return ea(c,ae,e,f,d)}),R4=ta(function(c,f){return ea(c,re,e,e,e,f)});function F4(c,f){if(typeof c!="function")throw new Fr(r);return f=f===e?f:Je(f),nt(c,f)}o(F4,"rest");function D4(c,f){if(typeof c!="function")throw new Fr(r);return f=f==null?0:Un(Je(f),0),nt(function(d){var T=d[f],E=Ba(d,0,f);return T&&Va(E,T),cr(c,this,E)})}o(D4,"spread");function _4(c,f,d){var T=!0,E=!0;if(typeof c!="function")throw new Fr(r);return hn(d)&&(T="leading"in d?!!d.leading:T,E="trailing"in d?!!d.trailing:E),PI(c,f,{leading:T,maxWait:f,trailing:E})}o(_4,"throttle");function V4(c){return TI(c,1)}o(V4,"unary");function w4(c,f){return ET(oT(f),c)}o(w4,"wrap");function M4(){if(!arguments.length)return[];var c=arguments[0];return Xe(c)?c:[c]}o(M4,"castArray");function k4(c){return _r(c,m)}o(k4,"clone");function j4(c,f){return f=typeof f=="function"?f:e,_r(c,m,f)}o(j4,"cloneWith");function U4(c){return _r(c,p|m)}o(U4,"cloneDeep");function $4(c,f){return f=typeof f=="function"?f:e,_r(c,p|m,f)}o($4,"cloneDeepWith");function B4(c,f){return f==null||pO(c,f,Xn(f))}o(B4,"conformsTo");function to(c,f){return c===f||c!==c&&f!==f}o(to,"eq");var H4=ng(Xv),G4=ng(function(c,f){return c>=f}),Xs=vO(function(){return arguments}())?vO:function(c){return Tn(c)&&Dt.call(c,"callee")&&!rO.call(c,"callee")},Xe=W.isArray,W4=jC?lr(jC):Jk;function Ki(c){return c!=null&&ug(c.length)&&!ia(c)}o(Ki,"isArrayLike");function On(c){return Tn(c)&&Ki(c)}o(On,"isArrayLikeObject");function K4(c){return c===!0||c===!1||Tn(c)&&Ni(c)==O}o(K4,"isBoolean");var Ha=ok||FT,X4=UC?lr(UC):Zk;function Q4(c){return Tn(c)&&c.nodeType===1&&!Jf(c)}o(Q4,"isElement");function q4(c){if(c==null)return!0;if(Ki(c)&&(Xe(c)||typeof c=="string"||typeof c.splice=="function"||Ha(c)||nl(c)||Xs(c)))return!c.length;var f=vi(c);if(f==Qe||f==gn)return!c.size;if(zf(c))return!zv(c).length;for(var d in c)if(Dt.call(c,d))return!1;return!0}o(q4,"isEmpty");function z4(c,f){return Xf(c,f)}o(z4,"isEqual");function Y4(c,f,d){d=typeof d=="function"?d:e;var T=d?d(c,f):e;return T===e?Xf(c,f,e,d):!!T}o(Y4,"isEqualWith");function AT(c){if(!Tn(c))return!1;var f=Ni(c);return f==V||f==z||typeof c.message=="string"&&typeof c.name=="string"&&!Jf(c)}o(AT,"isError");function J4(c){return typeof c=="number"&&aO(c)}o(J4,"isFinite");function ia(c){if(!hn(c))return!1;var f=Ni(c);return f==_e||f==Ft||f==at||f==ti}o(ia,"isFunction");function CI(c){return typeof c=="number"&&c==Je(c)}o(CI,"isInteger");function ug(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Re}o(ug,"isLength");function hn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}o(hn,"isObject");function Tn(c){return c!=null&&typeof c=="object"}o(Tn,"isObjectLike");var OI=$C?lr($C):tj;function Z4(c,f){return c===f||qv(c,f,pT(f))}o(Z4,"isMatch");function e$(c,f,d){return d=typeof d=="function"?d:e,qv(c,f,pT(f),d)}o(e$,"isMatchWith");function t$(c){return II(c)&&c!=+c}o(t$,"isNaN");function n$(c){if(kj(c))throw new We(i);return TO(c)}o(n$,"isNative");function i$(c){return c===null}o(i$,"isNull");function r$(c){return c==null}o(r$,"isNil");function II(c){return typeof c=="number"||Tn(c)&&Ni(c)==jt}o(II,"isNumber");function Jf(c){if(!Tn(c)||Ni(c)!=ln)return!1;var f=kd(c);if(f===null)return!0;var d=Dt.call(f,"constructor")&&f.constructor;return typeof d=="function"&&d instanceof d&&_d.call(d)==Z2}o(Jf,"isPlainObject");var ST=BC?lr(BC):nj;function o$(c){return CI(c)&&c>=-Re&&c<=Re}o(o$,"isSafeInteger");var NI=HC?lr(HC):ij;function pg(c){return typeof c=="string"||!Xe(c)&&Tn(c)&&Ni(c)==hi}o(pg,"isString");function ur(c){return typeof c=="symbol"||Tn(c)&&Ni(c)==Wt}o(ur,"isSymbol");var nl=GC?lr(GC):rj;function a$(c){return c===e}o(a$,"isUndefined");function s$(c){return Tn(c)&&vi(c)==Gi}o(s$,"isWeakMap");function c$(c){return Tn(c)&&Ni(c)==Df}o(c$,"isWeakSet");var l$=ng(Yv),f$=ng(function(c,f){return c<=f});function LI(c){if(!c)return[];if(Ki(c))return pg(c)?Zr(c):Wi(c);if(jf&&c[jf])return $2(c[jf]());var f=vi(c),d=f==Qe?kv:f==gn?Rd:il;return d(c)}o(LI,"toArray");function ra(c){if(!c)return c===0?c:0;if(c=Mr(c),c===Rt||c===-Rt){var f=c<0?-1:1;return f*Ii}return c===c?c:0}o(ra,"toFinite");function Je(c){var f=ra(c),d=f%1;return f===f?d?f-d:f:0}o(Je,"toInteger");function RI(c){return c?Hs(Je(c),0,kt):0}o(RI,"toLength");function Mr(c){if(typeof c=="number")return c;if(ur(c))return Ot;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=zC(c);var d=HM.test(c);return d||WM.test(c)?P2(c.slice(2),d?2:8):BM.test(c)?Ot:+c}o(Mr,"toNumber");function FI(c){return Po(c,Xi(c))}o(FI,"toPlainObject");function u$(c){return c?Hs(Je(c),-Re,Re):c===0?c:0}o(u$,"toSafeInteger");function It(c){return c==null?"":fr(c)}o(It,"toString");var p$=Zc(function(c,f){if(zf(f)||Ki(f)){Po(f,Xn(f),c);return}for(var d in f)Dt.call(f,d)&&Gf(c,d,f[d])}),DI=Zc(function(c,f){Po(f,Xi(f),c)}),dg=Zc(function(c,f,d,T){Po(f,Xi(f),c,T)}),d$=Zc(function(c,f,d,T){Po(f,Xn(f),c,T)}),g$=ta(Gv);function m$(c,f){var d=Jc(c);return f==null?d:uO(d,f)}o(m$,"create");var h$=nt(function(c,f){c=Xt(c);var d=-1,T=f.length,E=T>2?f[2]:e;for(E&&Li(f[0],f[1],E)&&(T=1);++d<T;)for(var C=f[d],L=Xi(C),R=-1,M=L.length;++R<M;){var Y=L[R],J=c[Y];(J===e||to(J,qc[Y])&&!Dt.call(c,Y))&&(c[Y]=C[Y])}return c}),y$=nt(function(c){return c.push(e,zO),cr(_I,e,c)});function v$(c,f){return KC(c,Ve(f,3),So)}o(v$,"findKey");function T$(c,f){return KC(c,Ve(f,3),Kv)}o(T$,"findLastKey");function b$(c,f){return c==null?c:Wv(c,Ve(f,3),Xi)}o(b$,"forIn");function E$(c,f){return c==null?c:hO(c,Ve(f,3),Xi)}o(E$,"forInRight");function A$(c,f){return c&&So(c,Ve(f,3))}o(A$,"forOwn");function S$(c,f){return c&&Kv(c,Ve(f,3))}o(S$,"forOwnRight");function P$(c){return c==null?[]:Qd(c,Xn(c))}o(P$,"functions");function x$(c){return c==null?[]:Qd(c,Xi(c))}o(x$,"functionsIn");function PT(c,f,d){var T=c==null?e:Gs(c,f);return T===e?d:T}o(PT,"get");function C$(c,f){return c!=null&&ZO(c,f,Qk)}o(C$,"has");function xT(c,f){return c!=null&&ZO(c,f,qk)}o(xT,"hasIn");var O$=WO(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Vd.call(f)),c[f]=d},OT(Qi)),I$=WO(function(c,f,d){f!=null&&typeof f.toString!="function"&&(f=Vd.call(f)),Dt.call(c,f)?c[f].push(d):c[f]=[d]},Ve),N$=nt(Kf);function Xn(c){return Ki(c)?lO(c):zv(c)}o(Xn,"keys");function Xi(c){return Ki(c)?lO(c,!0):oj(c)}o(Xi,"keysIn");function L$(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,C){Zo(d,f(T,E,C),T)}),d}o(L$,"mapKeys");function R$(c,f){var d={};return f=Ve(f,3),So(c,function(T,E,C){Zo(d,E,f(T,E,C))}),d}o(R$,"mapValues");var F$=Zc(function(c,f,d){qd(c,f,d)}),_I=Zc(function(c,f,d,T){qd(c,f,d,T)}),D$=ta(function(c,f){var d={};if(c==null)return d;var T=!1;f=un(f,function(C){return C=$a(C,c),T||(T=C.length>1),C}),Po(c,fT(c),d),T&&(d=_r(d,p|g|m,Cj));for(var E=f.length;E--;)nT(d,f[E]);return d});function _$(c,f){return VI(c,fg(Ve(f)))}o(_$,"omitBy");var V$=ta(function(c,f){return c==null?{}:sj(c,f)});function VI(c,f){if(c==null)return{};var d=un(fT(c),function(T){return[T]});return f=Ve(f),CO(c,d,function(T,E){return f(T,E[0])})}o(VI,"pickBy");function w$(c,f,d){f=$a(f,c);var T=-1,E=f.length;for(E||(E=1,c=e);++T<E;){var C=c==null?e:c[xo(f[T])];C===e&&(T=E,C=d),c=ia(C)?C.call(c):C}return c}o(w$,"result");function M$(c,f,d){return c==null?c:Qf(c,f,d)}o(M$,"set");function k$(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:Qf(c,f,d,T)}o(k$,"setWith");var wI=QO(Xn),MI=QO(Xi);function j$(c,f,d){var T=Xe(c),E=T||Ha(c)||nl(c);if(f=Ve(f,4),d==null){var C=c&&c.constructor;E?d=T?new C:[]:hn(c)?d=ia(C)?Jc(kd(c)):{}:d={}}return(E?Rr:So)(c,function(L,R,M){return f(d,L,R,M)}),d}o(j$,"transform");function U$(c,f){return c==null?!0:nT(c,f)}o(U$,"unset");function $$(c,f,d){return c==null?c:RO(c,f,oT(d))}o($$,"update");function B$(c,f,d,T){return T=typeof T=="function"?T:e,c==null?c:RO(c,f,oT(d),T)}o(B$,"updateWith");function il(c){return c==null?[]:Mv(c,Xn(c))}o(il,"values");function H$(c){return c==null?[]:Mv(c,Xi(c))}o(H$,"valuesIn");function G$(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),Hs(Mr(c),f,d)}o(G$,"clamp");function W$(c,f,d){return f=ra(f),d===e?(d=f,f=0):d=ra(d),c=Mr(c),zk(c,f,d)}o(W$,"inRange");function K$(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=ra(c),f===e?(f=c,c=0):f=ra(f)),c>f){var T=c;c=f,f=T}if(d||c%1||f%1){var E=sO();return yi(c+E*(f-c+S2("1e-"+((E+"").length-1))),f)}return Zv(c,f)}o(K$,"random");var X$=el(function(c,f,d){return f=f.toLowerCase(),c+(d?kI(f):f)});function kI(c){return CT(It(c).toLowerCase())}o(kI,"capitalize");function jI(c){return c=It(c),c&&c.replace(XM,w2).replace(p2,"")}o(jI,"deburr");function Q$(c,f,d){c=It(c),f=fr(f);var T=c.length;d=d===e?T:Hs(Je(d),0,T);var E=d;return d-=f.length,d>=0&&c.slice(d,E)==f}o(Q$,"endsWith");function q$(c){return c=It(c),c&&Ie.test(c)?c.replace(be,M2):c}o(q$,"escape");function z$(c){return c=It(c),c&&DM.test(c)?c.replace(Mf,"\\$&"):c}o(z$,"escapeRegExp");var Y$=el(function(c,f,d){return c+(d?"-":"")+f.toLowerCase()}),J$=el(function(c,f,d){return c+(d?" ":"")+f.toLowerCase()}),Z$=BO("toLowerCase");function eB(c,f,d){c=It(c),f=Je(f);var T=f?Qc(c):0;if(!f||T>=f)return c;var E=(f-T)/2;return tg(Bd(E),d)+c+tg($d(E),d)}o(eB,"pad");function tB(c,f,d){c=It(c),f=Je(f);var T=f?Qc(c):0;return f&&T<f?c+tg(f-T,d):c}o(tB,"padEnd");function nB(c,f,d){c=It(c),f=Je(f);var T=f?Qc(c):0;return f&&T<f?tg(f-T,d)+c:c}o(nB,"padStart");function iB(c,f,d){return d||f==null?f=0:f&&(f=+f),lk(It(c).replace(Av,""),f||0)}o(iB,"parseInt");function rB(c,f,d){return(d?Li(c,f,d):f===e)?f=1:f=Je(f),eT(It(c),f)}o(rB,"repeat");function oB(){var c=arguments,f=It(c[0]);return c.length<3?f:f.replace(c[1],c[2])}o(oB,"replace");var aB=el(function(c,f,d){return c+(d?"_":"")+f.toLowerCase()});function sB(c,f,d){return d&&typeof d!="number"&&Li(c,f,d)&&(f=d=e),d=d===e?kt:d>>>0,d?(c=It(c),c&&(typeof f=="string"||f!=null&&!ST(f))&&(f=fr(f),!f&&Xc(c))?Ba(Zr(c),0,d):c.split(f,d)):[]}o(sB,"split");var cB=el(function(c,f,d){return c+(d?" ":"")+CT(f)});function lB(c,f,d){return c=It(c),d=d==null?0:Hs(Je(d),0,c.length),f=fr(f),c.slice(d,d+f.length)==f}o(lB,"startsWith");function fB(c,f,d){var T=P.templateSettings;d&&Li(c,f,d)&&(f=e),c=It(c),f=dg({},f,T,qO);var E=dg({},f.imports,T.imports,qO),C=Xn(E),L=Mv(E,C),R,M,Y=0,J=f.interpolate||Cd,ee="__p += '",me=jv((f.escape||Cd).source+"|"+J.source+"|"+(J===fn?$M:Cd).source+"|"+(f.evaluate||Cd).source+"|$","g"),Ne="//# sourceURL="+(Dt.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++y2+"]")+`
272
+ `;c.replace(me,function(ke,st,gt,pr,Ri,dr){return gt||(gt=pr),ee+=c.slice(Y,dr).replace(QM,k2),st&&(R=!0,ee+=`' +
273
273
  __e(`+st+`) +
274
274
  '`),Ri&&(M=!0,ee+=`';
275
275
  `+Ri+`;
276
276
  __p += '`),gt&&(ee+=`' +
277
277
  ((__t = (`+gt+`)) == null ? '' : __t) +
278
278
  '`),Y=dr+ke.length,ke}),ee+=`';
279
- `;var Me=Ft.call(f,"variable")&&f.variable;if(!Me)ee=`with (obj) {
279
+ `;var Me=Dt.call(f,"variable")&&f.variable;if(!Me)ee=`with (obj) {
280
280
  `+ee+`
281
281
  }
282
- `;else if(CM.test(Me))throw new We(a);ee=(M?ee.replace(mn,""):ee).replace(xn,"$1").replace(tt,"$1;"),ee="function("+(Me||"obj")+`) {
282
+ `;else if(jM.test(Me))throw new We(a);ee=(M?ee.replace(mn,""):ee).replace(Cn,"$1").replace(tt,"$1;"),ee="function("+(Me||"obj")+`) {
283
283
  `+(Me?"":`obj || (obj = {});
284
284
  `)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(M?`, __j = Array.prototype.join;
285
285
  function print() { __p += __j.call(arguments, '') }
286
286
  `:`;
287
287
  `)+ee+`return __p
288
- }`;var Ze=LO(function(){return St(x,Ne+"return "+ee).apply(e,L)});if(Ze.source=ee,pT(Ze))throw Ze;return Ze}o(z4,"template");function Y4(c){return Ot(c).toLowerCase()}o(Y4,"toLower");function J4(c){return Ot(c).toUpperCase()}o(J4,"toUpper");function Z4(c,f,d){if(c=Ot(c),c&&(d||f===e))return jx(c);if(!c||!(f=fr(f)))return c;var v=Zr(c),E=Zr(f),x=Ux(v,E),L=$x(v,E)+1;return $a(v,x,L).join("")}o(Z4,"trim");function eB(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.slice(0,Hx(c)+1);if(!c||!(f=fr(f)))return c;var v=Zr(c),E=$x(v,Zr(f))+1;return $a(v,0,E).join("")}o(eB,"trimEnd");function tB(c,f,d){if(c=Ot(c),c&&(d||f===e))return c.replace(pv,"");if(!c||!(f=fr(f)))return c;var v=Zr(c),E=Ux(v,Zr(f));return $a(v,E).join("")}o(tB,"trimStart");function nB(c,f){var d=D,v=ut;if(hn(f)){var E="separator"in f?f.separator:E;d="length"in f?Je(f.length):d,v="omission"in f?fr(f.omission):v}c=Ot(c);var x=c.length;if(Kc(c)){var L=Zr(c);x=L.length}if(d>=x)return c;var R=d-Xc(v);if(R<1)return v;var M=L?$a(L,0,R).join(""):c.slice(0,R);if(E===e)return M+v;if(L&&(R+=M.length-R),dT(E)){if(c.slice(R).search(E)){var Y,J=M;for(E.global||(E=Nv(E.source,Ot(sx.exec(E))+"g")),E.lastIndex=0;Y=E.exec(J);)var ee=Y.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(fr(E),R)!=R){var me=M.lastIndexOf(E);me>-1&&(M=M.slice(0,me))}return M+v}o(nB,"truncate");function iB(c){return c=Ot(c),c&&Ce.test(c)?c.replace(he,R2):c}o(iB,"unescape");var rB=Zc(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),hT=RI("toUpperCase");function NO(c,f,d){return c=Ot(c),f=d?e:f,f===e?x2(c)?_2(c):h2(c):c.match(f)||[]}o(NO,"words");var LO=nt(function(c,f){try{return cr(c,e,f)}catch(d){return pT(d)?d:new We(d)}}),oB=ta(function(c,f){return Rr(f,function(d){d=Co(d),Zo(c,d,fT(c[d],c))}),c});function aB(c){var f=c==null?0:c.length,d=Ve();return c=f?fn(c,function(v){if(typeof v[1]!="function")throw new Fr(r);return[d(v[0]),v[1]]}):[],nt(function(v){for(var E=-1;++E<f;){var x=c[E];if(cr(x[0],this,v))return cr(x[1],this,v)}})}o(aB,"cond");function sB(c){return Rk(_r(c,p))}o(sB,"conforms");function yT(c){return function(){return c}}o(yT,"constant");function cB(c,f){return c==null||c!==c?f:c}o(cB,"defaultTo");var lB=DI(),fB=DI(!0);function Qi(c){return c}o(Qi,"identity");function vT(c){return lI(typeof c=="function"?c:_r(c,p))}o(vT,"iteratee");function uB(c){return uI(_r(c,p))}o(uB,"matches");function pB(c,f){return pI(c,_r(f,p))}o(pB,"matchesProperty");var dB=nt(function(c,f){return function(d){return Gf(d,c,f)}}),gB=nt(function(c,f){return function(d){return Gf(c,d,f)}});function TT(c,f,d){var v=Xn(f),E=$d(f,v);d==null&&!(hn(f)&&(E.length||!v.length))&&(d=f,f=c,c=this,E=$d(f,Xn(f)));var x=!(hn(d)&&"chain"in d)||!!d.chain,L=ia(c);return Rr(E,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var Y=this.__chain__;if(x||Y){var J=c(this.__wrapped__),ee=J.__actions__=Wi(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=Y,J}return M.apply(c,_a([this.value()],arguments))})}),c}o(TT,"mixin");function mB(){return Kn._===this&&(Kn._=U2),this}o(mB,"noConflict");function bT(){}o(bT,"noop");function hB(c){return c=Je(c),nt(function(f){return dI(f,c)})}o(hB,"nthArg");var yB=Yv(fn),vB=Yv(_x),TB=Yv(Av);function RO(c){return rT(c)?Sv(Co(c)):Qk(c)}o(RO,"property");function bB(c){return function(f){return c==null?e:Hs(c,f)}}o(bB,"propertyOf");var EB=VI(),AB=VI(!0);function ET(){return[]}o(ET,"stubArray");function AT(){return!1}o(AT,"stubFalse");function SB(){return{}}o(SB,"stubObject");function PB(){return""}o(PB,"stubString");function CB(){return!0}o(CB,"stubTrue");function xB(c,f){if(c=Je(c),c<1||c>Re)return[];var d=Mt,v=yi(c,Mt);f=Ve(f),c-=Mt;for(var E=xv(v,f);++d<c;)f(d);return E}o(xB,"times");function IB(c){return Xe(c)?fn(c,Co):ur(c)?[c]:Wi(YI(Ot(c)))}o(IB,"toPath");function OB(c){var f=++k2;return Ot(c)+f}o(OB,"uniqueId");var NB=Xd(function(c,f){return c+f},0),LB=Jv("ceil"),RB=Xd(function(c,f){return c/f},1),FB=Jv("floor");function DB(c){return c&&c.length?Ud(c,Qi,Mv):e}o(DB,"max");function _B(c,f){return c&&c.length?Ud(c,Ve(f,2),Mv):e}o(_B,"maxBy");function VB(c){return Mx(c,Qi)}o(VB,"mean");function wB(c,f){return Mx(c,Ve(f,2))}o(wB,"meanBy");function MB(c){return c&&c.length?Ud(c,Qi,$v):e}o(MB,"min");function kB(c,f){return c&&c.length?Ud(c,Ve(f,2),$v):e}o(kB,"minBy");var jB=Xd(function(c,f){return c*f},1),UB=Jv("round"),$B=Xd(function(c,f){return c-f},0);function BB(c){return c&&c.length?Cv(c,Qi):0}o(BB,"sum");function HB(c,f){return c&&c.length?Cv(c,Ve(f,2)):0}return o(HB,"sumBy"),P.after=f$,P.ary=cO,P.assign=Y$,P.assignIn=AO,P.assignInWith=ag,P.assignWith=J$,P.at=Z$,P.before=lO,P.bind=fT,P.bindAll=oB,P.bindKey=fO,P.castArray=A$,P.chain=oO,P.chunk=Rj,P.compact=Fj,P.concat=Dj,P.cond=aB,P.conforms=sB,P.constant=yT,P.countBy=$U,P.create=e4,P.curry=uO,P.curryRight=pO,P.debounce=dO,P.defaults=t4,P.defaultsDeep=n4,P.defer=u$,P.delay=p$,P.difference=_j,P.differenceBy=Vj,P.differenceWith=wj,P.drop=Mj,P.dropRight=kj,P.dropRightWhile=jj,P.dropWhile=Uj,P.fill=$j,P.filter=HU,P.flatMap=KU,P.flatMapDeep=XU,P.flatMapDepth=QU,P.flatten=tO,P.flattenDeep=Bj,P.flattenDepth=Hj,P.flip=d$,P.flow=lB,P.flowRight=fB,P.fromPairs=Gj,P.functions=l4,P.functionsIn=f4,P.groupBy=qU,P.initial=Kj,P.intersection=Xj,P.intersectionBy=Qj,P.intersectionWith=qj,P.invert=p4,P.invertBy=d4,P.invokeMap=YU,P.iteratee=vT,P.keyBy=JU,P.keys=Xn,P.keysIn=Xi,P.map=eg,P.mapKeys=m4,P.mapValues=h4,P.matches=uB,P.matchesProperty=pB,P.memoize=ng,P.merge=y4,P.mergeWith=SO,P.method=dB,P.methodOf=gB,P.mixin=TT,P.negate=ig,P.nthArg=hB,P.omit=T4,P.omitBy=b4,P.once=g$,P.orderBy=ZU,P.over=yB,P.overArgs=m$,P.overEvery=vB,P.overSome=TB,P.partial=uT,P.partialRight=gO,P.partition=e$,P.pick=E4,P.pickBy=PO,P.property=RO,P.propertyOf=bB,P.pull=Zj,P.pullAll=iO,P.pullAllBy=eU,P.pullAllWith=tU,P.pullAt=nU,P.range=EB,P.rangeRight=AB,P.rearg=h$,P.reject=i$,P.remove=iU,P.rest=y$,P.reverse=cT,P.sampleSize=o$,P.set=S4,P.setWith=P4,P.shuffle=a$,P.slice=rU,P.sortBy=l$,P.sortedUniq=uU,P.sortedUniqBy=pU,P.split=X4,P.spread=v$,P.tail=dU,P.take=gU,P.takeRight=mU,P.takeRightWhile=hU,P.takeWhile=yU,P.tap=FU,P.throttle=T$,P.thru=Zd,P.toArray=TO,P.toPairs=CO,P.toPairsIn=xO,P.toPath=IB,P.toPlainObject=EO,P.transform=C4,P.unary=b$,P.union=vU,P.unionBy=TU,P.unionWith=bU,P.uniq=EU,P.uniqBy=AU,P.uniqWith=SU,P.unset=x4,P.unzip=lT,P.unzipWith=rO,P.update=I4,P.updateWith=O4,P.values=nl,P.valuesIn=N4,P.without=PU,P.words=NO,P.wrap=E$,P.xor=CU,P.xorBy=xU,P.xorWith=IU,P.zip=OU,P.zipObject=NU,P.zipObjectDeep=LU,P.zipWith=RU,P.entries=CO,P.entriesIn=xO,P.extend=AO,P.extendWith=ag,TT(P,P),P.add=NB,P.attempt=LO,P.camelCase=D4,P.capitalize=IO,P.ceil=LB,P.clamp=L4,P.clone=S$,P.cloneDeep=C$,P.cloneDeepWith=x$,P.cloneWith=P$,P.conformsTo=I$,P.deburr=OO,P.defaultTo=cB,P.divide=RB,P.endsWith=_4,P.eq=to,P.escape=V4,P.escapeRegExp=w4,P.every=BU,P.find=GU,P.findIndex=ZI,P.findKey=i4,P.findLast=WU,P.findLastIndex=eO,P.findLastKey=r4,P.floor=FB,P.forEach=aO,P.forEachRight=sO,P.forIn=o4,P.forInRight=a4,P.forOwn=s4,P.forOwnRight=c4,P.get=gT,P.gt=O$,P.gte=N$,P.has=u4,P.hasIn=mT,P.head=nO,P.identity=Qi,P.includes=zU,P.indexOf=Wj,P.inRange=R4,P.invoke=g4,P.isArguments=Ks,P.isArray=Xe,P.isArrayBuffer=L$,P.isArrayLike=Ki,P.isArrayLikeObject=In,P.isBoolean=R$,P.isBuffer=Ba,P.isDate=F$,P.isElement=D$,P.isEmpty=_$,P.isEqual=V$,P.isEqualWith=w$,P.isError=pT,P.isFinite=M$,P.isFunction=ia,P.isInteger=mO,P.isLength=rg,P.isMap=hO,P.isMatch=k$,P.isMatchWith=j$,P.isNaN=U$,P.isNative=$$,P.isNil=H$,P.isNull=B$,P.isNumber=yO,P.isObject=hn,P.isObjectLike=Tn,P.isPlainObject=zf,P.isRegExp=dT,P.isSafeInteger=G$,P.isSet=vO,P.isString=og,P.isSymbol=ur,P.isTypedArray=tl,P.isUndefined=W$,P.isWeakMap=K$,P.isWeakSet=X$,P.join=zj,P.kebabCase=M4,P.last=wr,P.lastIndexOf=Yj,P.lowerCase=k4,P.lowerFirst=j4,P.lt=Q$,P.lte=q$,P.max=DB,P.maxBy=_B,P.mean=VB,P.meanBy=wB,P.min=MB,P.minBy=kB,P.stubArray=ET,P.stubFalse=AT,P.stubObject=SB,P.stubString=PB,P.stubTrue=CB,P.multiply=jB,P.nth=Jj,P.noConflict=mB,P.noop=bT,P.now=tg,P.pad=U4,P.padEnd=$4,P.padStart=B4,P.parseInt=H4,P.random=F4,P.reduce=t$,P.reduceRight=n$,P.repeat=G4,P.replace=W4,P.result=A4,P.round=UB,P.runInContext=w,P.sample=r$,P.size=s$,P.snakeCase=K4,P.some=c$,P.sortedIndex=oU,P.sortedIndexBy=aU,P.sortedIndexOf=sU,P.sortedLastIndex=cU,P.sortedLastIndexBy=lU,P.sortedLastIndexOf=fU,P.startCase=Q4,P.startsWith=q4,P.subtract=$B,P.sum=BB,P.sumBy=HB,P.template=z4,P.times=xB,P.toFinite=ra,P.toInteger=Je,P.toLength=bO,P.toLower=Y4,P.toNumber=Mr,P.toSafeInteger=z$,P.toString=Ot,P.toUpper=J4,P.trim=Z4,P.trimEnd=eB,P.trimStart=tB,P.truncate=nB,P.unescape=iB,P.uniqueId=OB,P.upperCase=rB,P.upperFirst=hT,P.each=aO,P.eachRight=sO,P.first=nO,TT(P,function(){var c={};return So(P,function(f,d){Ft.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Rr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:Un(Je(d),0);var v=this.__filtered__&&!f?new pt(this):this.clone();return v.__filtered__?v.__takeCount__=yi(d,v.__takeCount__):v.__views__.push({size:yi(d,Mt),type:c+(v.__dir__<0?"Right":"")}),v},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Rr(["filter","map","takeWhile"],function(c,f){var d=f+1,v=d==an||d==en;pt.prototype[c]=function(E){var x=this.clone();return x.__iteratees__.push({iteratee:Ve(E,3),type:d}),x.__filtered__=x.__filtered__||v,x}}),Rr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Rr(["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(Qi)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return Gf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(ig(Ve(c)))},pt.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(Mt)},So(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],x=v||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,R=v?[1]:arguments,M=L instanceof pt,Y=R[0],J=M||Xe(L),ee=o(function(st){var gt=E.apply(P,_a([st],R));return v&&me?gt[0]:gt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(M=J=!1);var me=this.__chain__,Ne=!!this.__actions__.length,Me=x&&!me,Ze=M&&!Ne;if(!x&&J){L=Ze?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:Zd,args:[ee],thisArg:e}),new Dr(ke,me)}return Me&&Ze?c.apply(this,R):(ke=this.thru(ee),Me?v?ke.value()[0]:ke.value():ke)})}),Rr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Cd[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 x=this.value();return f.apply(Xe(x)?x:[],E)}return this[d](function(L){return f.apply(Xe(L)?L:[],E)})}}),So(pt.prototype,function(c,f){var d=P[f];if(d){var v=d.name+"";Ft.call(zc,v)||(zc[v]=[]),zc[v].push({name:f,func:d})}}),zc[Kd(e,O).name]=[{name:"wrapper",func:e}],pt.prototype.clone=nk,pt.prototype.reverse=ik,pt.prototype.value=rk,P.prototype.at=DU,P.prototype.chain=_U,P.prototype.commit=VU,P.prototype.next=wU,P.prototype.plant=kU,P.prototype.reverse=jU,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=UU,P.prototype.first=P.prototype.head,Mf&&(P.prototype[Mf]=MU),P},"runInContext"),wa=V2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=wa,define(function(){return wa})):ks?((ks.exports=wa)._=wa,vv._=wa):Kn._=wa}).call(tf)});var hV=ze((Gce,mV)=>{var{findIndex:u6}=xp();function p6(e,t){let i=u6(e,a=>a.endOffset===t),r=!1;for(;r===!1;){i++;let a=e[i];if(a===void 0)return null;if(a.tokenType.name!=="SEA_WS")return a}}o(p6,"findNextTextualToken");mV.exports={findNextTextualToken:p6}});var TV=ze((Kce,vV)=>{var yV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function d6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(yV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(d6,"isXMLNamespaceKey");function g6(e){if(typeof e!="string")return;let t=e.match(yV);if(t!==null)return t.groups&&t.groups.prefix||""}o(g6,"getXMLNamespaceKeyPrefix");vV.exports={isXMLNamespaceKey:d6,getXMLNamespaceKeyPrefix:g6}});var EV=ze((Qce,bV)=>{var{findNextTextualToken:m6}=hV(),{isXMLNamespaceKey:h6,getXMLNamespaceKeyPrefix:y6}=TV();bV.exports={findNextTextualToken:m6,isXMLNamespaceKey:h6,getXMLNamespaceKeyPrefix:y6}});var CS=ze((qce,SV)=>{var{reduce:v6,has:AV,isArray:T6}=xp();function b6(e){return v6(e,(n,i,r)=>(r==="parent"||(AV(i,"type")?n.push(i):T6(i)&&i.length>0&&AV(i[0],"type")&&(n=n.concat(i))),n),[])}o(b6,"getAstChildrenReflective");SV.exports={getAstChildrenReflective:b6}});var xS=ze((Yce,PV)=>{PV.exports={DEFAULT_NS:"::DEFAULT"}});var FV=ze((Jce,RV)=>{var{BaseXmlCstVisitor:E6}=PS(),{last:A6,forEach:OV,reduce:S6,map:Ip,pick:OS,sortBy:P6,isEmpty:C6,isArray:NV,assign:x6}=xp(),{findNextTextualToken:I6,isXMLNamespaceKey:O6,getXMLNamespaceKeyPrefix:N6}=EV(),{getAstChildrenReflective:L6}=CS(),{DEFAULT_NS:R6}=xS();function F6(e,t){CV.setState({tokenVector:t});let n=CV.visit(e);return n.rootElement!==_c&&LV(n.rootElement),n}o(F6,"buildAst");var NS=class NS extends E6{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:_c,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&C6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Py(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Ip(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Py(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Ip(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Ip(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:_c,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Ip(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:a}=this.visit(t.content[0]);i.subElements=r,i.textContents=a}return V6(i,t),w6(i,t),M6(i,t,this.tokenVector),Py(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:_c,value:_c,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Cy(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=D6(a.image),r.syntax.value=Cy(a)}return Py(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:_c},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=P6(r,["startOffset"]),s=Ip(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(NS,"CstToAstVisitor");var IS=NS,CV=new IS;function Py(e){let t=L6(e);OV(t,n=>n.parent=e)}o(Py,"setChildrenParent");function LV(e,t=[]){let n=S6(e.attributes,(r,a)=>{if(a.key!==_c&&O6({key:a.key,includeEmptyPrefix:!1})===!0){let s=N6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[R6]=l}}return r},{}),i=Object.create(null);e.namespaces=x6(i,t,n),OV(e.subElements,r=>LV(r,e.namespaces))}o(LV,"updateNamespaces");function Cy(e){return OS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Cy,"toXMLToken");function xV(e){return OS(e,["startOffset","startLine","startColumn"])}o(xV,"startOfXMLToken");function IV(e){return OS(e,["endOffset","endLine","endColumn"])}o(IV,"endOfXMLToken");function Ia(e){return NV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Ia,"exists");function D6(e){return e.substring(1,e.length-1)}o(D6,"stripQuotes");function _6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(_6,"nsToParts");var _c=null;function V6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Cy(n);let i=_6(n.image);i!==null?(e.ns=i.ns,e.name=i.name):e.name=n.image}t.END_NAME!==void 0&&t.END_NAME[0].isInsertedInRecovery!==!0&&(e.syntax.closeName=Cy(t.END_NAME[0]))}o(V6,"handleElementOpenCloseNameRanges");function w6(e,t){if(Ia(t.OPEN)){let n;Ia(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Ia(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...xV(t.OPEN[0]),...IV(n)}),Ia(t.SLASH_OPEN)&&Ia(t.END)&&(e.syntax.closeBody={...xV(t.SLASH_OPEN[0]),...IV(t.END[0])})}}o(w6,"handleElementOpenCloseBodyRanges");function M6(e,t,n){if(Ia(t.Name)){let i=t.Name[0].endOffset+2;if(Ia(t.START_CLOSE)||Ia(t.SLASH_CLOSE)){let r=(Ia(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=NV(t.attribute)?A6(t.attribute).location.endOffset:t.Name[0].endOffset,s=I6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(M6,"handleElementAttributeRanges");RV.exports={buildAst:F6}});var VV=ze((ele,_V)=>{var{forEach:k6,isFunction:nf}=xp(),{getAstChildrenReflective:j6}=CS();function DV(e,t){switch(e.type){case"XMLDocument":{nf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{nf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{nf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{nf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{nf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{nf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=j6(e);k6(n,i=>{DV(i,t)})}o(DV,"accept");_V.exports={accept:DV}});var MV=ze((nle,wV)=>{var{buildAst:U6}=FV(),{accept:$6}=VV(),{DEFAULT_NS:B6}=xS();wV.exports={buildAst:U6,accept:$6,DEFAULT_NS:B6}});var wi={};Xs(wi,{deleteConfigEntityByPath:()=>dY,exportConfig:()=>uY,exportConfigEntityByPath:()=>pY,generateCustomExtension:()=>tx,generateSchema:()=>fY,getApiVersion:()=>yY,getChanges:()=>vM,getGenericSchema:()=>av,getPathToGenericSchema:()=>Rw,getProject:()=>AY,importConfig:()=>gY,importProject:()=>mY,importProjectSchema:()=>hY,isDirectory:()=>TY,log:()=>se,prompts:()=>lY,readDirectory:()=>ax});module.exports=cg(wi);var de=ie(le());var G=ie(le());var Be=o(e=>typeof e=="string","isString"),Yf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),dR=o(e=>e==null?"":""+e,"makeString"),P5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),C5=/###/g,gR=o(e=>e&&e.indexOf("###")>-1?e.replace(C5,"."):e,"cleanKey"),mR=o(e=>!e||Be(e),"canNotTraverseDeeper"),Jf=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(mR(e))return{};let a=gR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return mR(e)?{}:{obj:e,k:gR(i[r])}},"getLastOfPath"),hR=o((e,t,n)=>{let{obj:i,k:r}=Jf(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=Jf(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=Jf(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),x5=o((e,t,n,i)=>{let{obj:r,k:a}=Jf(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),fg=o((e,t)=>{let{obj:n,k:i}=Jf(e,t);if(n)return n[i]},"getPath"),I5=o((e,t,n)=>{let i=fg(e,n);return i!==void 0?i:fg(t,n)},"getPathWithDefaults"),AR=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):AR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),rl=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),O5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},N5=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>O5[t]):e,"escape"),kT=class kT{constructor(t){this.capacity=t,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(t){let n=this.regExpMap.get(t);if(n!==void 0)return n;let i=new RegExp(t);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(t,i),this.regExpQueue.push(t),i}};o(kT,"RegExpCache");var RT=kT,L5=[" ",",","?","!",";"],R5=new RT(20),F5=o((e,t,n)=>{t=t||"",n=n||"";let i=L5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=R5.getRegExp(`(${i.map(s=>s==="?"?"\\?":s).join("|")})`),a=!r.test(e);if(!a){let s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(a=!0)}return a},"looksLikeObjectPath"),FT=o(function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];let i=t.split(n),r=e;for(let a=0;a<i.length;){if(!r||typeof r!="object")return;let s,l="";for(let u=a;u<i.length;++u)if(u!==a&&(l+=n),l+=i[u],s=r[l],s!==void 0){if(["string","number","boolean"].indexOf(typeof s)>-1&&u<i.length-1)continue;a+=u-a+1;break}r=s}return r},"deepFind"),ug=o(e=>e&&e.replace("_","-"),"getCleanedCode"),D5={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},Zf=class Zf{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||D5,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new Zf(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new Zf(this.logger,t)}};o(Zf,"Logger");var DT=Zf,xo=new DT,jT=class jT{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(i=>{this.observers[i]||(this.observers[i]=new Map);let r=this.observers[i].get(n)||0;this.observers[i].set(n,r+1)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t].delete(n)}}emit(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];this.observers[t]&&Array.from(this.observers[t].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l(...i)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(s=>{let[l,u]=s;for(let p=0;p<u;p++)l.apply(l,[t,...i])})}};o(jT,"EventEmitter");var al=jT,UT=class UT extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=fg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:FT(this.data&&this.data[t]&&this.data[t][n],i,a)}addResource(t,n,i,r){let a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},s=a.keySeparator!==void 0?a.keySeparator:this.options.keySeparator,l=[t,n];i&&(l=l.concat(s?i.split(s):i)),t.indexOf(".")>-1&&(l=t.split("."),r=n,n=l[1]),this.addNamespaces(n),hR(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=fg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?AR(u,i,a):u={...u,...i},hR(this.data,l,u),s.silent||this.emit("added",t,n,i)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?{...this.getResource(t,n)}:this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){let n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}};o(UT,"ResourceStore");var pg=UT,SR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,i,r){return e.forEach(a=>{this.processors[a]&&(t=this.processors[a].process(t,n,i,r))}),t}},yR={},hg=class hg extends al{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),P5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=xo.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;let i=this.resolve(t,n);return i&&i.res!==void 0}extractFromKey(t,n){let i=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;i===void 0&&(i=":");let r=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,a=n.ns||this.options.defaultNS||[],s=i&&t.indexOf(i)>-1,l=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!F5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){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),F=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject,U=!Be(T)&&typeof T!="boolean"&&typeof T!="number";if(K&&T&&U&&F.indexOf(O)<0&&!(Be(j)&&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 Pe in T)if(Object.prototype.hasOwnProperty.call(T,Pe)){let D=`${re}${a}${Pe}`;Z[Pe]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Pe]===D&&(Z[Pe]=T[Pe])}T=Z}}else if(K&&Be(j)&&Array.isArray(T))T=T.join(j),T&&(T=this.extendTranslation(T,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Pe=hg.hasDefaultValue(n),D=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ue=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(T)&&Pe&&(ae=!0,T=Ue),this.isValidLookup(T)||(Z=!0,T=s);let Gn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:T,en=Pe&&Ue!==T&&this.options.updateMissing;if(Z||ae||en){if(this.logger.log(en?"updateKey":"missingKey",p,u,s,en?Ue: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 Hi=Pe&&sn!==T?sn:Gn;this.options.missingKeyHandler?this.options.missingKeyHandler(It,u,Mt,Hi,en,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(It,u,Mt,Hi,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}`]||Ue)})}):Oi(Lt,s,Ue))}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=Be(t)&&(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&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let 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=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=SR.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let T=n.count!==void 0&&!Be(n.count),A=T&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",O=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{this.isValidLookup(i)||(l=F,!yR[`${O[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(yR[`${O[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${O.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),O.forEach(j=>{if(this.isValidLookup(i))return;s=j;let K=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,g,j,F,n);else{let ae;T&&(ae=this.pluralResolver.getSuffix(j,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(T&&(K.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(g+ae.replace(re,this.options.pluralSeparator)),A&&K.push(g+Z)),b){let Pe=`${g}${this.options.contextSeparator}${n.context}`;K.push(Pe),T&&(K.push(Pe+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(Pe+ae.replace(re,this.options.pluralSeparator)),A&&K.push(Pe+Z))}}let U;for(;U=K.pop();)this.isValidLookup(i)||(a=U,i=this.getResource(j,F,U,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(hg,"Translator");var dg=hg,NT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),$T=class $T{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=xo.create("languageUtils")}getScriptPartFromCode(t){if(t=ug(t),!t||t.indexOf("-")<0)return null;let n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=ug(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=NT(i[1].toLowerCase()))):i.length===3&&(i[0]=i[0].toLowerCase(),i[1].length===2&&(i[1]=i[1].toUpperCase()),i[0]!=="sgn"&&i[2].length===2&&(i[2]=i[2].toUpperCase()),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=NT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=NT(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o($T,"LanguageUtil");var gg=$T,_5=[{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}],V5={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},w5=["v1","v2","v3"],M5=["v4"],vR={zero:0,one:1,two:2,few:3,many:4,other:5},k5=o(()=>{let e={};return _5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:V5[t.fc]}})}),e},"createRules"),BT=class BT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=xo.create("pluralResolver"),(!this.options.compatibilityJSON||M5.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=k5(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=ug(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>vR[r]-vR[a]).map(r=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${r}`):i.numbers.map(r=>this.getSuffix(t,r,n)):[]}getSuffix(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(t,i);return r?this.shouldUseIntlApi()?`${this.options.prepend}${i.ordinal?`ordinal${this.options.prepend}`:""}${r.select(n)}`:this.getSuffixRetroCompatible(r,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){let i=t.noAbs?t.plurals(n):t.plurals(Math.abs(n)),r=t.numbers[i];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(r===2?r="plural":r===1&&(r=""));let a=o(()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString(),"returnSuffix");return this.options.compatibilityJSON==="v1"?r===1?"":typeof r=="number"?`_plural_${r.toString()}`:a():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}shouldUseIntlApi(){return!w5.includes(this.options.compatibilityJSON)}};o(BT,"PluralResolver");var _T=BT,TR=o(function(e,t,n){let i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=I5(e,t,n);return!a&&r&&Be(n)&&(a=FT(e,n,i),a===void 0&&(a=FT(t,n,i))),a},"deepFindWithDefaults"),LT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),HT=class HT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:T,nestingPrefixEscaped:A,nestingSuffix:b,nestingSuffixEscaped:O,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:K}=t.interpolation;this.escape=n!==void 0?n:N5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?rl(a):s||"{{",this.suffix=l?rl(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=T?rl(T):A||rl("$t("),this.nestingSuffix=b?rl(b):O||rl(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let j=TR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:A}):j}let b=A.split(this.formatSeparator),O=b.shift().trim(),F=b.join(this.formatSeparator).trim();return this.format(TR(n,u,O,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:O})},"handleFormat");this.resetRegExp();let g=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,m=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:o(A=>LT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?LT(this.escape(A)):LT(A),"safeValue")}].forEach(A=>{for(l=0;a=A.regex.exec(t);){let b=a[1].trim();if(s=p(b),s===void 0)if(typeof g=="function"){let F=g(t,a,r);s=Be(F)?F:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=dR(s));let O=A.safeValue(s);if(t=t.replace(a[0],O),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),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&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=dR(a)),a||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${t}`),a=""),p&&(a=u.reduce((g,m)=>this.format(g,m,i.lng,{...i,interpolationkey:r[1].trim()}),a.trim())),t=t.replace(r[0],a),this.regexp.lastIndex=0}return t}};o(HT,"Interpolator");var VT=HT,j5=o(e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].substring(0,i[1].length-1);t==="currency"&&r.indexOf(":")<0?n.currency||(n.currency=r.trim()):t==="relativetime"&&r.indexOf(":")<0?n.range||(n.range=r.trim()):r.split(";").forEach(s=>{if(s){let[l,...u]=s.split(":"),p=u.join(":").trim().replace(/^'+|'+$/g,""),g=l.trim();n[g]||(n[g]=p),p==="false"&&(n[g]=!1),p==="true"&&(n[g]=!0),isNaN(p)||(n[g]=parseInt(p,10))}})}return{formatName:t,formatOptions:n}},"parseFormatStr"),ol=o(e=>{let t={};return(n,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let s=i+JSON.stringify(a),l=t[s];return l||(l=e(ug(i),r),t[s]=l),l(n)}},"createCachedFormatter"),GT=class GT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=xo.create("formatter"),this.options=t,this.formats={number:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:ol((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:ol((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:ol((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:ol((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=ol(n)}format(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=n.split(this.formatSeparator);if(a.length>1&&a[0].indexOf("(")>1&&a[0].indexOf(")")<0&&a.find(l=>l.indexOf(")")>-1)){let l=a.findIndex(u=>u.indexOf(")")>-1);a[0]=[a[0],...a.splice(1,l)].join(this.formatSeparator)}return a.reduce((l,u)=>{let{formatName:p,formatOptions:g}=j5(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(GT,"Formatter");var wT=GT,U5=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),WT=class WT extends al{constructor(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=i,this.languageUtils=i.languageUtils,this.options=r,this.logger=xo.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let 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=>{x5(u.loaded,[a],s),U5(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(WT,"Connector");var MT=WT,bR=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),ER=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),lg=o(()=>{},"noop"),$5=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),eu=class eu extends al{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ER(t),this.services={},this.logger=xo,this.modules={external:[]},$5(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=bR();this.options={...r,...this.options,...ER(n)},this.options.compatibilityAPI!=="v1"&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);let a=o(g=>g?typeof g=="function"?new g:g:null,"createClassOnDemand");if(!this.options.isClone){this.modules.logger?xo.init(a(this.modules.logger),this.options):xo.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=wT);let m=new gg(this.options);this.store=new pg(this.options.resources,this.options);let T=this.services;T.logger=xo,T.resourceStore=this.store,T.languageUtils=m,T.pluralResolver=new _T(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(T.formatter=a(g),T.formatter.init(T,this.options),this.options.interpolation.format=T.formatter.format.bind(T.formatter)),T.interpolator=new VT(this.options),T.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},T.backendConnector=new MT(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),F=1;F<b;F++)O[F-1]=arguments[F];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 dg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,O=new Array(b>1?b-1:0),F=1;F<b;F++)O[F-1]=arguments[F];t.emit(A,...O)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=lg),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let g=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);g.length>0&&g[0]!=="dev"&&(this.options.lng=g[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(g=>{this[g]=function(){return t.store[g](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(g=>{this[g]=function(){return t.store[g](...arguments),t}});let u=Yf(),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]:lg,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Yf();return typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=void 0),t||(t=this.languages),n||(n=this.options.ns),i||(i=lg),this.services.backendConnector.reload(t,n,a=>{r.resolve(),i(a)}),r}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&SR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){let i=this.languages[n];if(!(["cimode","dev"].indexOf(i)>-1)&&this.store.hasLanguageSomeTranslations(i)){this.resolvedLanguage=i;break}}}changeLanguage(t,n){var i=this;this.isLanguageChangingTo=t;let r=Yf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let 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 Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Yf();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Yf();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new gg(bR());return n.indexOf(i.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new eu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:lg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new eu(r);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),["store","services","language"].forEach(l=>{a[l]=this[l]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},i&&(a.store=new pg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new dg(a.services,r),a.translator.on("*",function(l){for(var u=arguments.length,p=new Array(u>1?u-1:0),g=1;g<u;g++)p[g-1]=arguments[g];a.emit(l,...p)}),a.init(r,n),a.translator.options=r,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}};o(eu,"I18n");var mg=eu,q=mg.createInstance();q.createInstance=mg.createInstance;var DY=q.createInstance,_Y=q.dir,VY=q.init,wY=q.loadResources,MY=q.reloadResources,kY=q.use,jY=q.changeLanguage,UY=q.getFixedT,$Y=q.t,BY=q.exists,HY=q.setDefaultNamespace,GY=q.hasLoadedNamespace,WY=q.loadNamespaces,KY=q.loadLanguages;var kF=ie(KT()),jF=ie(zR()),Mg=ie(wF()),Ke=require("@sap-ux/vocabularies-types/vocabularies/UI"),ou=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Vg=ie(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Vg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",EW=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],AW=["sap.fe.core","sap.fe.templates"],pl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),mr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function No(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,Mg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:G.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,Mg.merge)(...n);i=(0,jF.convert)(r)}return i}o(No,"parseAndMergeAndConvert");var ul=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function ub(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(ub,"evaluateCommonLabel");function kg(e,t){let n=e.value;return e.$target&&(n=ub(e.$target.annotations,t,n)),n}o(kg,"getLabelForPropertyPath");function wg(e,t){var r,a;let n,i;return e.Value?typeof e.Value=="string"?i=t&&t.entityProperties.find(s=>s.name===e.Value):(i=t&&t.resolvePath(e.Value.path),i||(i=e.Value.$target)):e.Target&&e.Target.$target&&(e.Target.$target.Value?i=e.Target.$target.Value.$target:e.Target.$target.Label&&(n=e.Target.$target.Label)),(a=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&a.Label&&(n=ub(i.annotations,t,n)),n}o(wg,"getLabelForDataField");function SW(e,t){var n,i;if(typeof e=="string")return e;if(typeof e=="object"&&e.path){let r=t&&t.resolvePath(e.path);if(!r||r.length===0)return;{let a=r[0];if((i=(n=a==null?void 0:a.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return ub(a.annotations,t,s)}}}else return}o(SW,"getLabel");function MF(e,t,n){let i=wg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(MF,"getTitleForDataField");function Ai(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=SW(e.Label,t);switch(e.$Type){case Ke.UIAnnotationTypes.DataField:n=MF(e,t,g);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:i=wg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=wg(e,t),n=g||i||((l=(s=r.Target)==null?void 0:s.$target)==null?void 0:l.Title)||((u=r.Target)==null?void 0:u.value.split("UI.v1.")[1]);break;case 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=wg(e,t),n=i||e.Value.path;break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=MF(r,t,g);break;default:break}return n}catch{return n}}o(Ai,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function fa(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(fa,"getPageTypeV2");function pb(e){if(e.name&&e.name!==G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${G.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return G.PageTypeV4.CustomPage}}o(pb,"getPageTypeV4");function PW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(PW,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function CW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(CW,"getAnnotationFromMetaPath");function xW(e,t,n){var s,l;let i=e[e.length-1],r=CW(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(xW,"determineTargetAnnotation");function IW(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ke.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${G.UIVOCABULARY}`);return e}o(IW,"adjustKey");function OW(e,t,n,i,r=G.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=IW(t,u,a);let g=xW(u,n,e);if(g){let A=r===G.FioriElementsVersion.v2?"::":"#";t=PW(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===G.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(OW,"getKeyAndEntityTypeOfReferenceFacet");function UF(e,t,n,i,r=G.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=ul(e.Target);if(!A){se(i,{severity:G.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:O,stopProcessing:F,namespace:j}=OW(n,l,p,A,r,a);if(F)return;l=b,p=O,u=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(UF,"getSectionFacet");function NW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(NW,"getDecodedPathElement");var db=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),$F=o((e,t,n,i,r,a=!1)=>{if(!t)return;let s=e,l=t.split("/");for(let u=0;u<l.length;u++){let p=l[u];if(p==="[]")continue;let g=NW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=db(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Lo=o((e,t,n,i,r=!1)=>$F(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),BF=o((e,t,n,i,r)=>{$F(e,t,i,r,n)},"setManifestSectionByPathV4");function gb(e){let t,n,i;switch(e.$Type){case Ke.UIAnnotationTypes.DataField:t=ul(e.Value);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:ul(e.Value);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.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=ul(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=ul(e.Value),n=ul(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(gb,"getSchemaKeyOfLineItemRecord");function LW(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(LW,"getUIAnnotationTerm");function RW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?ou.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?ou.CommunicationAnnotationTerms.Address:void 0}o(RW,"getCommunicationAnnotationTerm");function FW(e,t,n){return LW(e,t,n)||RW(e,t)}o(FW,"getAnnotationTerm");function DW(e,t,n,i,r){var p,g,m,T,A,b,O,F,j,K;let a=ii(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(FW(s,a,i)){case Ke.UIAnnotationTerms.Chart:{n[s]={base:G.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:G.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 U=s.split("::");U[U.length-1]=`@${Ke.UIAnnotationTerms.LineItem}`,s=U.join("::")}n[s]={base:G.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:G.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:G.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:G.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:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ou.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ou.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(K=t==null?void 0:t.Target)==null?void 0:K.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(DW,"evaluateTargetAnnotation");function mb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(mb,"getAnnotationPathUsingFullyQualifiedName");function hb(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=UF(e,i,t,s,a,!1);if(l)switch(e.$Type){case Ke.UIAnnotationTypes.ReferenceFacet:{DW(l,e,r,i,t);break}case Ke.UIAnnotationTypes.CollectionFacet:{let p=mb(i,e.fullyQualifiedName),g=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===G.FioriElementsVersion.v4&&se(s,{severity:G.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{hb(m,t,n,i,g.facets,a,s)});break}}}o(hb,"addFacetToConfig");function jg(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(G.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=>{hb(m,t,g,e,r,n,i)})}return r}o(jg,"getObjectPageHeaderFacets");function Ug(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(G.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=>{hb(g,t,p,e,r,n,i)})}return r}o(Ug,"getObjectPageFacets");function yb(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>EW.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>AW.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(yb,"getFEVersionFromManifest");function _W(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(_W,"getMainService");function HF(e){var i,r;let t=_W(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(HF,"getODataVersionFromManifest");function VW(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){se(t,{severity:G.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(fa((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(fa((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(VW,"determineV2Template");function au(e){var i,r,a,s;let t,n=pb(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.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[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(au,"determineV4PageTemplateType");function wW(e){let t;for(let n in e){let i=e[n];if(t=au(i),t)break}return t}o(wW,"determineV4TemplateFromPages");function MW(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:G.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=wW(n);return i||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(MW,"determineV4Template");function vb(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=VW(e,n):t===G.FioriElementsVersion.v4&&(i=MW(e,n)),i}o(vb,"getTemplateTypeFromManifest");function ua(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}])}o(ua,"addSectionTitle");function Ga(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Ga,"addSectionDescription");function dl(e,t,n){var i,r;ua(e,t,n),Ga(e,t,n),!(e!=null&&e.Label)&&(e!=null&&e.Title?t.description=e.Title:(i=e==null?void 0:e.target)!=null&&i.Title?t.description=e.target.Title:(r=e==null?void 0:e.target)!=null&&r.Label&&(t.description=e.target.Label))}o(dl,"addTargetTitleAndSectionDescription");function GF(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(GF,"addChartFacetID");function Ro(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,dl(t,i,n),i}o(Ro,"createDefaultSection");function WF(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(G.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=UF(m,e,t,n,i,!0);return T&&g.push(T),g},s)),s}}o(WF,"getObjectPageFacetSection");var Wa=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),Wa(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),fb=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Dt=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:fb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:fb(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=fb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function $g(e,t,n,i){if(e===G.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 Tb(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(Tb,"findMatchingKeysByAdditionalProperties");function kW(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=Tb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(kW,"fillArrayFromAnyOfReference");function jW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{kW(r,n,t,i)}),i.length===0))return;return i}o(jW,"fillArrayFromPropertyDefinition");function UW(e,t,n,i,r,a,s,l){var p,g,m,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=Fo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(F=>{F!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[F].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let 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(UW,"determineNextDefinitionFromDefinitionArray");function Fo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Fo(e,t,n,i.items,r,a,s),l;let u=jW(i,n,e);if(u)return l=UW(u,e,t,n,r,a,s,i),l}o(Fo,"getNextTargetDefinition");var bb=o((e,t,n)=>{let i=e.slice();return t.forEach((r,a)=>{typeof i[a]>"u"?i[a]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[a]=(0,kF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Bg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(Bg,"convertEnumToCSV");function zi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(zi,"convertActionKeyToStableId");function yn(e){return e==null?void 0:e.split($)[1]}o(yn,"getDefinitionKey");function KF(e){return`#/definitions/${e}`}o(KF,"getDefinitionsRef");function Hg(e){return e instanceof Error?e.message:String(e)}o(Hg,"getErrorMessage");function Ys(e,t){return e==null?void 0:e.includes(t)}o(Ys,"isFeatureSupported");function Do(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Do,"updatePropertyIndices");function Gg(e,t){let n=e;for(let i of t)if(i!==void 0)if(typeof n=="object"&&i in n)n=n[i];else return;return n}o(Gg,"getJSONPropertyByPath");function XF(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(XF,"removeNamespaces");function gl(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(gl,"replaceNamespaces");var Ao=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ie(le());var Yi=ie(le());var zt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Wg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=o((e,t)=>{let n,i=Yi.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function $W(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}o($W,"escapeId");var QF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(QF||{}),qF=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(qF||{});function BW(e,t,n){let i;return e=e.map(function(r){if(r===Yi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Yi.PropertyName.sections)return i=t[a+1],t[a+1]=Qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(BW,"mapBreadcrumbs");var Eb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=BW(t,s,r)),s[0]===Yi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH):t[0]===Yi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),$W(p)},"buildColumnControlId"),Ji=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function HW(e){let t=Yi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(HW,"determinePattern");var Ab=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=HW(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),qn=o((e,t,n)=>{Ab(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(QF);Ab(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(qF);Ab(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Js(){}o(Js,"doNotDelete");var $J=ie(YF());var JF=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(JF,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(JF,e,t)),n}o(zn,"getReflectMetadata");var jr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),ZF=Symbol("childId"),jt=o(e=>Reflect.metadata(ZF,e),"childId"),Kg=o((e,t)=>Reflect.getMetadata(ZF,e,t),"getChildId"),Xg=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),GW=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(GW,e),"descriptionSrcURL");var WW=Symbol("validityMetadataKey"),C=o(e=>Reflect.metadata(WW,e),"validity");function Qg(e,t){let n=`${e} is deprecated`;return t&&t.deprecated&&(n=t.deprecated.since?`${n} since ${t.deprecated.since}`:n,n=t.deprecated.text?`${n}. ${t.deprecated.text}`:n),n}o(Qg,"getTextForDeprecated");var s0=ie(o0()),c0=ie(le());var l0=s0.default.change,a0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function f0(e,t){let n="";try{for(let i in a0)e[i]===void 0&&(e[i]=a0[i]);n=l0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(f0,"createChangeString");function ro(e){try{return l0.parse(e)}catch{return!1}}o(ro,"parseChangeString");function u0(e,t,n,i,r){let a=n.layer?n.layer===c0.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:a};return e[i]!==void 0?t.flex.exportFlexValue?t.flex.exportFlexValue(s,e,i):e[i].toString().startsWith("{")?(s.content.newBinding=e[i],s.type="propertyBindingChange"):s.content.newValue=e[i]:s.content.newValue=null,s}o(u0,"fillFlexChangeContent");function p0(e,t){return f0(e,t)}o(p0,"exportToFlexChange");var Zs=ie(le());function ml(e,t,n,i,r,a){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,a);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}o(ml,"importProperty");function qg(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:Zs.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(qg,"checkDeprecatedProperties");function Sb(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return Sb(n,t)}else return e.title?e.title.startsWith(Zs.FACETTITLEPREFIX)?e.title.split(Zs.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(Sb,"getSectionTitle");function zg(e){let t=e.split(`${Zs.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(zg,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(_o,"removeEmptyStructure");var Ut=require("@sap-ux/vocabularies-types/vocabularies/UI");var pa=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 ec=o(function(e){return Yg(XF(e))},"prepareId");function JW(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(JW,"evaluateConcat");function tc(e){if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if((e==null?void 0:e.$Function)==="odata.concat")return JW(e);if(e&&typeof e=="string")return Yg(e.replace(/ /g,"_"))}o(tc,"getStableIdPartFromValue");var d0=o(function(e){let t="";return typeof e.SemanticObject=="string"?t+=e.SemanticObject:e.SemanticObject.$Path&&(t+=e.SemanticObject.$Path),typeof e.Action=="string"?t+="::"+e.Action:e.Action&&e.Action.$Path&&(t+="::"+e.Action.$Path),e.RequiresContext&&(t+="::RequiresContext"),t},"getStableIdPartFromSemanticObjectAndAction"),da=o(function(e){let t="";if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,ec(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=d0(e),t;if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=ec(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=tc(e.Value)+"::"),t+=e.Action,ec(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataField)return t="DataField::",t+=tc(e.Value),ec(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=tc(e.Value)+"::",t+=d0(e),ec(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=tc(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),ec(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=tc(e.Value),ec(t)},"getStableIdPartFromDataField");var ge=ie(le());var De=ie(le());var Zi=require("@sap-ux/vocabularies-types/vocabularies/UI"),y0=require("path"),v0=ie(qs());var Jg="ResponsiveTableWithMultiSelect<LineItems>",Zg="ResponsiveTableWithInlineDelete<LineItems>",ZW="TreeTable<LineItems>",e8="AnalyticalTable<LineItems>",t8="GridTable<LineItems>",Pb=[Jg,Zg,ZW,e8,t8],g0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],m0="template::",em="template:::ObjectPageAction:::";function n8(e,t,n){e.definitions[De.DefinitionName.LineItems]&&(e.definitions[De.DefinitionName.LineItems].properties.custom={$ref:`${$}${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(n8,"addCustomColumnDefinition");function i8(e,t){let n;return e==="TableColumnActionIntentBased"?n=gb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(i8,"getActionId");function Cb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=i8(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=Ai(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=nc(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(Cb,"handleActionRecord");function r8(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Zi.UIAnnotationTypes.DataFieldForAction||t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(r8,"getColumnActionType");function o8(e,t){let n=[];if(!(e.$Type!==Zi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),r8(t,e,n),n}o(o8,"getActionType");function T0(e,t,n){let i=gb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:Ai(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,sm(r.properties[i],e.lineItemRecord),cm(e.lineItemRecord,r.properties,i)}}o(T0,"generateGenericColumn");function a8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{Cb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&Cb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{Cb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":T0(i,t,r)}}o(a8,"handleAnyAction");function su(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(su,"retrieveNameWithoutVocabularyFromVisualization");function hl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=am(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},T=o8(g,r);T?T.forEach(A=>{a8(A,t,s,m,p,l,r)}):T0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(hl,"addLineItemsType");function s8(e,t,n){var r,a;let i=(a=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:a.leadingProperty;if(i){let s=[...(t==null?void 0:t.entityProperties)||[],...(t==null?void 0:t.navigationProperties)||[]];i.enum=s==null?void 0:s.reduce((l,u)=>(l.includes(u.name)||l.push(u.name),l),[])}}o(s8,"addListReportLeadingProperties");function c8(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let 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)}ga(T,r)}}o(c8,"addTabkeyEnum");function tm(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let a=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let g=JSON.parse((0,v0.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!g||g.Column||g["table:Column"]||g["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!g||!g.Column&&!g["table:Column"]&&!g["table:AnalyticalColumn"]&&!g["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+y0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),ga(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(tm,"addFragmentEnum");function yl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){n8(e,a,s),s8(e,t,s),c8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;tm(e,r,u,"fragmentName",s),tm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),tm(e,r,u,"cellsFragmentName",s),tm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(yl,"addTableColumnExtensions");function b0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(b0,"removeElementsFromEnum");function nm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=mr(n==null?void 0:n.fullyQualifiedName,Zi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=oo(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 E0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(E0,"addEntityPropertiesToEnum");function im(e){var t,n,i,r;return!!((n=(t=e.annotations)==null?void 0:t.Common)!=null&&n.DraftRoot)||!!((r=(i=e.annotations)==null?void 0:i.Common)!=null&&r.DraftNode)}o(im,"isDraftEnabled");function A0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.DeleteRestrictions)==null?void 0:i.Deletable)!==!1}o(A0,"isEntityDeletable");function S0(e){var t,n,i;return((i=(n=(t=e.annotations)==null?void 0:t.Capabilities)==null?void 0:n.UpdateRestrictions)==null?void 0:i.Updatable)!==!1}o(S0,"isEntityUpdatable");function vl(e,t=!1,n){let i=De.DefinitionName.HeaderActionsStandard,r=De.DefinitionName.HeaderActionStandard;t&&(i=De.DefinitionName.ObjectPageHeaderActions,r=De.DefinitionName.ObjectPageHeaderActionStandard);let a=e.definitions[i];a[De.SchemaTag.isViewNode]=!0,a.description="Actions",Object.entries((n||a).properties).forEach(([l,u])=>{let p=u.$ref.split($)[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(vl,"addStandardHeaderActions");function P0(e,t){let n=e.definitions[De.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split($)[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(P0,"addStandardFooterActionsOP");function rm(e){var i,r,a;let t=(i=e.entitySet)==null?void 0:i.entityType,n=(r=t==null?void 0:t.annotations)==null?void 0:r.UI;if(typeof n!="object"||Object.keys(n).length===0){let s=t?q.t("NOUIANNOTATIONS",{entityType:t.name}):q.t("NOENTITYTYPE4SET",{entitySetName:(a=e.entitySet)==null?void 0:a.name});se(e.logger,{severity:De.LogSeverity.Error,message:s})}return{entityType:t,uIAnnotations:n}}o(rm,"getUIAnnotationForEntitySet");function om(e,t,n,i="string"){let r=e!==void 0&&(typeof e!="object"||e[t]!==void 0&&typeof e[t]!==i);return r&&se(n,{severity:De.LogSeverity.Error,message:q.t("TYPEERROR",{propertyName:t,expectedType:i})}),r}o(om,"hasPropertyTypeError");function l8(e,t,n,i){if(e===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(l8,"copyFieldProperties");function f8(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(f8,"determineFieldDefinitionName");function u8(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(u8,"addKeysTagForDataField");function p8(e,t,n){if(e.$Type===Ut.UIAnnotationTypes.DataField||e.$Type===Ut.UIAnnotationTypes.DataFieldWithUrl||e.$Type===Ut.UIAnnotationTypes.DataFieldWithNavigationPath)u8(e,t,n);else if(e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ge.SchemaTag.keys]=[{name:"Target",value:gl(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(p8,"addKeysTagToField");function d8(e){var t,n;return e.$Type===Ut.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===Ut.UIAnnotationTypes.ConnectedFieldsType}o(d8,"isConnectedField");function g8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===Ut.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let T=p[m];if(typeof T=="object"&&"$Type"in T){let A=u.findIndex(b=>b===m);A===-1&&(A=g,g++),xb(e,t,T,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(g8,"addConnectedFields");function C0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(C0,"getFieldsSchemaContainer");function xb(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=da(n),m=s===ge.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,T=f8(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=C0(t,`${e}${ge.DefinitionName.Actions}<${i}>`,u.actions),F=O[m]={$ref:`${$}${T}`};F[ge.SchemaTag.propertyIndex]=parseInt(r)}}else{let O=C0(t,`${e}${ge.DefinitionName.Fields}<${i}>`,u.fields);O[m]={$ref:`${$}${T}`,propertyIndex:parseInt(r)},d8(n)&&(A=g8(e,t,n,a,s))}t.definitions[T]={type:"object",properties:A,description:Ai(n,a.entityType),additionalProperties:!1},p8(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),l8(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(xb,"addField");function m8(e){let t;return e.target&&e.target.qualifier&&e.entityType?t=`${e.entityType.name}::${e.base}::${e.target.qualifier}`:e.entityType?t=`${e.entityType.name}::${e.base}`:t=e.ID,t}o(m8,"determineTargetIdOfForm");function h8(e,t,n,i,r,a){if(e.base===ge.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&xb(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];xb(t,n,l,i,s,e,r)}}o(h8,"addFieldsToFormDefinition");function y8(e,t,n){var i,r;if(e.target){let a=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][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]=mr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(y8,"addTagsToFormDefinition");function lm(e,t,n,i,r,a){if(!t.target)return;let s=m8(t),l=dt(`${e}${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},y8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ge.SchemaTag.isViewNode]=!0,h8(t,e,i,s,r,g),s}o(lm,"handleForm");function Ib(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(Ib,"replaceAlias");function fm(e,t){let n=Ib(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let a,s,l;return r>-1?(a=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${a}`):(a=i,l=e.fullyQualifiedName.split("@")[0],a&&a!==""&&(s=`${l.substring(0,l.length-1)}::${a}`)),{actionName:a,actionId:s,namespace:l}}o(fm,"getActionNameAndId");function x0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ge.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:x0(a.pages,t)}}o(x0,"isFirstObjectPage");function um(e,t,n,i,r){var g,m;e.definitions[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=ii(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&&x0(r,t)&&!im(l)&&P0(e,a),delete e.definitions[ge.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ge.DefinitionName.ObjectPageFooter}<${ge.DefinitionName.ObjectPageFooterActions}>`]}o(um,"addFooterActions");function pm(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=ii(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&&vl(e,!0,l)}o(pm,"addHeaderActions");function dm(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(dm,"addCommonHeaderSchema");function I0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o(I0,"determineEntitySetOfEntityType");var hr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ie(le());function ga(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(ga,"addEnumToSchema");function cu(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)}}ga(r,n)}o(cu,"addEnumForValidAnnotations");function Ka(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];cu(e,r,i)}o(Ka,"addEnumForSingleTabVariant");function O0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];cu(n.entityType,r,i)}o(O0,"addEnumForMultiTabVariant");function N0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ga(r,i)}o(N0,"addEnumForVariantEntitySet");function L0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[hr.UIAnnotationTerms.FieldGroup];cu(e,r,i)}o(L0,"addEnumFieldGroupAnnotationPath");function R0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(R0,"addDefinitionForRelatedFacetKeys");function ic(e){return e.replace("#","::")}o(ic,"getFacetKeyInSchema");function mm(e,t){return`${e}<${ic(t)}>`}o(mm,"getFacetDefinitionKey");function bt(e,t,n,i=!0){let r=t;if(i&&(r=mm(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(bt,"parseSchemaDefinition");function gm(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${hr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,bt(n,t,e,!0)),i}o(gm,"getCustomExtensionDefinitionName");function am(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let O=gm(t,r,a);t.definitions[r].additionalProperties={$ref:O}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,T;try{if(T=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),T.properties={},T.additionalProperties=!1,s){let O=gm(t,r,s);T.additionalProperties={$ref:O}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,b;if(r===et.DefinitionName.LineItems&&t.properties.footer){b=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let O=`${et.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[b].properties.actions.$ref=$+O,A=t.definitions[O]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=mr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[b][et.SchemaTag.annotationPath]=l))),{actions:T,footerActions:A,lineItemPath:l}}o(am,"addCommonLineItemDefinitions");function F0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(F0,"getDataTypeFromAnnotation");function rc(e){var n,i,r;let t;return e!=null&&e.Value?e.Visualization==="UI.VisualizationType/Rating"?t="Rating":e.Visualization==="UI.VisualizationType/Progress"?t="Progress":e.$Type==="com.sap.vocabularies.UI.v1.DataPointType"?t="DataPoint":t=(i=(n=e.Value)==null?void 0:n.$target)==null?void 0:i.type.replace("Edm.",""):(r=e==null?void 0:e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")&&(t=F0(e.$Type)),t}o(rc,"determineDataTypeOfTarget");function oo(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=rc((i=e.Target)==null?void 0:i.$target):e.$target?t=e.$target.type.replace("Edm.",""):(r=e.$Type)!=null&&r.startsWith("com.sap.vocabularies.")?t=F0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(oo,"determineDataType");function sm(e,t){let n=oo(t);n&&(e[et.SchemaTag.dataType]=n)}o(sm,"addDataTypeToDefinition");function Si(e,t){return`${$}${mm(e,t)}`}o(Si,"getFacetDefinitionLink");function Xa(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Xa,"addDefinitionRef");function hm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(hm,"getFacetAnnotationPath");function lu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:Si(a?u:l,t)};let p=bt(a?u:l,t,i,!0);ua(e,p,t),Ga(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(lu,"handleAddressContact");function Ob(e,t,n){typeof e=="object"&&(e[t]=n)}o(Ob,"updateSchemaProperty");function Tl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];Ob(r.properties.fields.items,"enum",i)}o(Tl,"addFieldsType");function v8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(v8,"findFirstSchemaDefinitionKey");function ym(e,t,n,i){var p;let r=t.description,a=t.keys,s=!t.annotationPath;if(t.$ref){let g=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=v8(a,i==null?void 0:i.keyProperties);return u?l=u.value:i!=null&&i.descriptionAsFallback&&r&&(l=r),{const:l,...r&&{description:r},...s&&{custom:s}}}o(ym,"getEnumEntry");function Qa(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=ym(e,u,l,i);r.push(p)}let a=e.definitions[n.definition]||n.schema;if(typeof a=="object")if(n.property){let l=(s=a.properties)==null?void 0:s[n.property];Ob(l,"oneOf",r)}else Ob(a,"oneOf",r)}o(Qa,"addDescriptiveEnumDefinition");function nc(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(nc,"getActionKey");function cm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:tc(e.Value)}];else if(e.$Type===hr.UIAnnotationTypes.DataFieldWithAction||e.$Type===hr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=nc(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===hr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=nc(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:gl(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===hr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=nc(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(cm,"addKeyToDefinition");var bl=ie(le());var D0=[{version:"1.124",distTag:["latest","UI5-2.0","UI5-2.1","UI5-1.124","UI5-1.125","UI5-1.126","UI5-1.127","UI5-1.128","UI5-1.129","UI5-1.130"]},{version:"1.120",distTag:["UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123"]},{version:"1.108",distTag:["UI5-1.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 V0="1.124.12";var w0={name:"@sap/ux-specification",version:V0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.33.14","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.9.11","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.124.12","@sapui5/types":"latest-1.124","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.8.1",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.1","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var qa=class qa{constructor(){qa.distTagsOfSpec.length===0&&(qa.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){qa.distTagsOfSpec=[]}getSpecVersion(){return V0}getDistTagsOfVersion(){let t=[],n=D0,i=this.getSpecVersion();if(i)if(i.startsWith("9.9.9"))t=n[0].distTag;else{i=i.substring(0,i.lastIndexOf("."));let r=n.find(a=>a.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;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("."));qa.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:bl.LogSeverity.Warning,message:a,location:{path:bl.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:bl.LogSeverity.Info,message:i,location:{path:bl.MANIFESTPATH}}),!1}else return!0}};o(qa,"DistTagEvaluator"),qa.distTagsOfSpec=[];var fu=qa;var ue=ie(le());var _n=ie(le());var Pi=ie(le());function M0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(M0,"getCustomPageFullName");function E8(e){let n=M0(e).split(".");return n[n.length-1]}o(E8,"getCustomPageName");function k0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Pi.ViewTypes.XML}o(k0,"getViewType");function A8(e,t){return k0(e,t).toLowerCase()}o(A8,"getViewTypeExtension");function S8(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=M0(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(S8,"getViewPath");function P8(e,t){let n=e.entitySet||E8(e),{viewPath:i,fileName:r}=S8(e,t,[n]),a=A8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(P8,"getCustomPagePath");var Nb=class Nb{constructor(t,n,i,r){this.unhandledControllers=[];let a=Dt(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=k0(t,this.app)===Pi.ViewTypes.XML&&!!t.config;if(t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Dt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(a=t.view)==null?void 0:a.id:void 0,l=Dt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Dt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Pi.PageTypeV4.CustomPage||t.pageType===Pi.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=P8(t,this.app);n.$filePath=i}};o(Nb,"AppProvider");var za=Nb;var lt=ie(le());var El=ie(le());var $n=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),j0=o((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),U0=o((e,t)=>{let n=e;for(let i=0;i<t.split("/").length;i++){let r=t.split("/")[i];i===t.split("/").length-1?delete n[r]:n=n&&n[r]}},"deleteManifestSectionByPathV2");function Lb(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o(Lb,"getNewPageTemplate");function C8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(C8,"findPageInManifest");function x8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=Lb(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:Lb(e[t].pageType)}),!Array.isArray(n.pages))){let i=C8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=Lb(e[t].pageType)),Rb(t,e,i)}}o(x8,"transformPageFromAssociation");function I8(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var a;let r=e.pages[i];if(((a=r.component)==null?void 0:a.name)===El.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===El.PageTypeV2.ListReport||n.pageType===El.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o(I8,"deletePage");function Rb(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===El.PageTypeV2.ListReport&&(n.component.list=!0),i.navigationProperty&&(n.navigationProperty=i.navigationProperty),i.defaultLayoutType?n.defaultLayoutType=i.defaultLayoutType:"defaultLayoutType"in n&&delete n.defaultLayoutType,i.navigation)){for(let r in i.navigation)x8(t,r,n);Array.isArray(n.pages)||I8(n,t,i)}}o(Rb,"transformPageToNewManifestV2");var C1=ie(qs());var bA={};Xs(bA,{ALPAnalyticalTable:()=>TE,ALPGridTable:()=>vE,ALPResponsiveTable:()=>yE,Action:()=>SE,AnalyticalCard:()=>xl,AnalyticalCardSettings:()=>Em,AnalyticalCardSettingsv4:()=>Mb,AnalyticalListPageFilterBar:()=>Kb,AnalyticalTable:()=>hE,BaseCustomSection:()=>Bu,ChartSettings:()=>$E,ChartSettingsType:()=>Db,CommonCardSettings:()=>ts,CommonFilterBar:()=>Au,CommonHeaderFacetSettings:()=>dc,CommonTableSettings:()=>os,CommonTableSettingsForSections:()=>vc,CreateWithFilters:()=>lE,CustomCard:()=>Vb,DataLoadSettings:()=>uE,DateRange:()=>Bb,DefaultDateRange:()=>Hb,DefaultSpanObject:()=>_b,FRAGMENT_DEFINITION:()=>wo,Field:()=>$b,FieldForAction:()=>Yb,Fields4Dialog:()=>pE,Fields4DialogOP:()=>gA,FooterAction:()=>CE,FormAction:()=>zb,GlobalChartSettings:()=>pA,GlobalTableSettings:()=>vA,GridTable:()=>bE,HeaderActionStandard:()=>LE,HeaderSections:()=>qE,KPISettings:()=>BE,LinkListCardSettings:()=>jb,LinklistCard:()=>Tu,ListCard:()=>Cl,ListCardSettings:()=>wb,ListReportFilterBar:()=>Xb,MultiEdit:()=>fE,ObjectPageAnalyticalTable:()=>mA,ObjectPageChart:()=>uA,ObjectPageCustomSectionFragment:()=>Hu,ObjectPageCustomSectionView:()=>Gu,ObjectPageFooterAction:()=>YE,ObjectPageFooterActionStandard:()=>FE,ObjectPageGridTable:()=>hA,ObjectPageHeader:()=>HE,ObjectPageHeaderAction:()=>GE,ObjectPageHeaderActionStandard:()=>RE,ObjectPageHeaderSectionAddress:()=>QE,ObjectPageHeaderSectionChart:()=>KE,ObjectPageHeaderSectionDataPoint:()=>XE,ObjectPageHeaderSectionForm:()=>WE,ObjectPageLayout:()=>ZE,ObjectPageResponsiveTable:()=>Tc,ObjectPageSectionAddressV2:()=>rA,ObjectPageSectionChartV2:()=>nA,ObjectPageSectionContactV2:()=>oA,ObjectPageSectionFormV2:()=>tA,ObjectPageSectionTableV2:()=>iA,ObjectPageSectionV2:()=>eA,ObjectPageSubSectionChartV2:()=>cA,ObjectPageSubSectionContactV2:()=>lA,ObjectPageSubSectionFormV2:()=>sA,ObjectPageSubSectionTableV2:()=>fA,ObjectPageSubSectionV2:()=>aA,ObjectPageToolBarAction:()=>TA,ObjectPageTreeTable:()=>yA,QuickVariantSelection:()=>dE,QuickVariantSelectionOP:()=>dA,QuickVariantSelectionX:()=>gE,ResponsiveTable:()=>cc,SAP_UI_TABLE:()=>Om,SaveAndEditOP:()=>NE,SelectionFieldDateSettings:()=>Gb,SelectionFields:()=>Wb,Share:()=>xE,ShareOP:()=>IE,StackCard:()=>vu,StackCardSettings:()=>kb,TableALP:()=>Rl,TableCard:()=>Il,TableCardSettings:()=>Ub,TableColumn:()=>VE,TableColumnAction:()=>qm,TableColumnActionIntentBased:()=>wE,TableCustomColumn:()=>ME,ToolBar:()=>jE,ToolBarAction:()=>PE,TreeTable:()=>mE,UpAndDownNavigationOP:()=>OE,buildIntentBasedActionId:()=>DE,deleteColumnFromFragment:()=>Rm,deleteType:()=>Dl,exportColorPalette:()=>G0,exportCreateParametersFields:()=>jm,exportCustomColumnsToFragment:()=>sE,exportDateSettingsField:()=>Q0,exportDefaultSpan:()=>W0,exportType:()=>Fl,getChartSectionControlId:()=>b1,getContactSubSectionControlId:()=>A1,getCustomColumnPath:()=>Fm,getFormSectionControlId:()=>T1,getRootCustomColumnFromFragmentJSON:()=>Cu,getSectionControlId:()=>hc,getSmartChartControlId:()=>_u,getSmartTableControlId:()=>sc,getSubSectionControlId:()=>E1,getTableSectionControlId:()=>v1,importCreateParameters:()=>km,importDateSettings:()=>Qb});var Yn=ie(le());var je=o(e=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),$r=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),$0=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),B0=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>Yn.ManifestSection.ovp,"getOVPsettingPath"),xe=o(e=>{let t=[Yn.ManifestSection.ovp];return e.forEach(n=>{n in Yn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var oc=o((e,t)=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),bm=o(e=>{let t=[Yn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Fi=o(e=>{let t=[];return t.push(bm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Ja=o(e=>Fi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ao=o((e,t,n)=>{let i=[];i.push(bm(e));let r=n.replace(Yn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),yr=o((e,t,n)=>ao(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),H0=o((e,t,n)=>ao(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Fb=o(()=>`sap.ui5/extends/extensions/${Yn.v2.SAPUI5_VIEW_EXTENSION}/${Yn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ma=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),`${Fb()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Tm=class Tm{};o(Tm,"ApplicationV2"),h([jt("settings")],Tm.prototype,"settings",2);var vm=Tm,Ur=class Ur{};o(Ur,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Ur.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Ur.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Ur.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.50.0"})],Ur.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.46.0"})],Ur.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.74.0"})],Ur.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Ur.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],Ur.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),C({since:"1.96.0"})],Ur.prototype,"statePreservationMode",2);var Ya=Ur;var uu=ie(le());function O8(e){let t=e.colorPalette,n;if(Array.isArray(t))throw new Error("The array syntax for colorPalette is deprecated and not supported");return t[0]&&typeof t[0]=="object"?(n=t,n.colorPaletteType=uu.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=uu.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:uu.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(O8,"importColorPalette");function G0(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===uu.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(G0,"exportColorPalette");function W0(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(W0,"exportDefaultSpan");var Am=class Am{};o(Am,"ChartSettingsType"),h([y({manifest:{path:o(()=>En()+"/chartSettings","path")}})],Am.prototype,"showDataLabel",2);var Db=Am,Za=class Za{};o(Za,"DefaultSpanObject"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"cols",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"rows",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Za.prototype,"minimumSubTitleRow",2);var _b=Za,Xt=class Xt{};o(Xt,"CommonCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"title",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"category",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>xe(t),"path"),export:W0}})],Xt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"tabs",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Xt.prototype,"customParams",2);var ts=Xt,Al=class Al{};o(Al,"CustomCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"template",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Al.prototype,"settings",2);var Vb=Al,es=class es extends ts{};o(es,"ListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],es.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],es.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],es.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],es.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],es.prototype,"listType",2);var wb=es,pu=class pu{};o(pu,"ListCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],pu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],pu.prototype,"template",2);var Cl=pu,so=class so extends ts{};o(so,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"navigation",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>xe(t),"path"),import:O8,export:G0}})],so.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],so.prototype,"bEnableStableColors",2);var Em=so,Sm=class Sm extends Em{};o(Sm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Sm.prototype,"measureAggregate",2);var Mb=Sm,du=class du{};o(du,"AnalyticalCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],du.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],du.prototype,"template",2);var xl=du,Sl=class Sl extends ts{};o(Sl,"StackCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Sl.prototype,"itemText",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Sl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Sl.prototype,"objectStreamCardsSettings",2);var kb=Sl,gu=class gu{};o(gu,"StackCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],gu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],gu.prototype,"template",2);var vu=gu,Pl=class Pl extends ts{};o(Pl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],Pl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Pl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],Pl.prototype,"staticContent",2);var jb=Pl,mu=class mu{};o(mu,"LinklistCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],mu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],mu.prototype,"template",2);var Tu=mu,hu=class hu extends ts{};o(hu,"TableCardSettings"),h([y({manifest:{path:o(t=>xe(t),"path")}})],hu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],hu.prototype,"enableAddToInsights",2);var Ub=hu,yu=class yu{};o(yu,"TableCard"),h([y({manifest:{path:o(t=>xe(t),"path")}})],yu.prototype,"model",2),h([y({manifest:{path:o(t=>xe(t),"path")}})],yu.prototype,"template",2);var Il=yu;var K0=ie(le());var N8=o((e,t,n,i,r)=>{let a=Qn(n[1],r),s=n.slice(-1)[0];return zt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Pm=class Pm{};o(Pm,"Field"),h([y({flex:{controlId:N8,controlType:o(()=>K0.ControlType.GroupElement,"controlType")},generate:mt})],Pm.prototype,"visible",2);var $b=Pm;var ac=ie(le());function Qb(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(Qb,"importDateSettings");function L8(e,t,n){let i=e!=null&&e[n]?JSON.parse(JSON.stringify(e==null?void 0:e[n])):void 0,r;return n==="selectedValues"&&typeof i=="string"&&(r=i.split(",")),n==="filter"&&typeof i=="object"&&(r=[],i.forEach((a,s)=>{r[s]=a,a.equals&&typeof a.equals=="string"&&(r[s].equals=a.equals.split(","))})),r}o(L8,"importDateSettingsField");function Q0(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];if(n==="selectedValues"&&(e[n]=i.join()),n==="filter")for(let r in i){let a=i[r];e[n][r]=a,a.equals&&Array.isArray(a.equals)&&(e[n][r].equals=a.equals.join())}}o(Q0,"exportDateSettingsField");var Ol=class Ol{};o(Ol,"DateRange"),h([y({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path"),import:Qb,export:Bg}}),C({since:"1.77.0"})],Ol.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+ac.DATESETTINGSPATH,"path")}}),C({since:"1.77.0"})],Ol.prototype,"exclude",2);var Bb=Ol,Cm={controlId:zt,controlType:o(()=>ac.ControlType.SmartFilterBar,"controlType")},bu={path:o((e,t,n)=>`${je(e)}${ac.DATESETTINGSPATH}/fields/${n}`,"path")},X0={...bu,import:L8,export:Q0},xm=class xm{};o(xm,"DefaultDateRange"),h([y({manifest:bu}),C({since:"1.90.0"})],xm.prototype,"operation",2);var Hb=xm,ns=class ns{};o(ns,"SelectionFieldDateSettings"),h([y({manifest:X0}),C({since:"1.77.0"})],ns.prototype,"selectedValues",2),h([y({manifest:bu}),C({since:"1.77.0"})],ns.prototype,"exclude",2),h([y({manifest:bu}),C({since:"1.77.0"})],ns.prototype,"customDateRangeImplementation",2),h([y({manifest:X0}),C({since:"1.77.0"})],ns.prototype,"filter",2),h([y({manifest:bu}),C({since:"1.90.0"})],ns.prototype,"defaultValue",2);var Gb=ns,qb=class qb{};o(qb,"SelectionFields");var Wb=qb,co=class co{};o(co,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"})],co.prototype,"smartVariantManagement",2),h([y({flex:Cm}),C({since:"1.40.0"})],co.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],co.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.52.0"})],co.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:Qb}}),C({since:"1.77.0"})],co.prototype,"dateSettings",2),h([y({flex:Cm}),C({since:"1.28.0"})],co.prototype,"showClearOnFB",2),h([y({flex:Cm}),C({since:"1.38.0"})],co.prototype,"showFilterConfiguration",2),h([y({flex:Cm}),C({since:"1.28.0"})],co.prototype,"showRestoreOnFB",2);var Au=co,Eu=class Eu extends Au{};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")}}),C({since:"1.60.0"})],Eu.prototype,"filterDefaultsFromSelectionVariant",2);var Kb=Eu,Im=class Im extends Au{};o(Im,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),C({since:"1.86.0"})],Im.prototype,"annotationPath",2);var Xb=Im;var Jb=ie(le());var R8=o((e,t,n,i,r)=>{if(i()===Jb.ControlType.Button){let a=n[n.length-1],s=Qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return zt(e,t)},"getFormActionButtonId"),Vo={controlId:R8,controlType:o(()=>Jb.ControlType.Button,"controlType")},is=class is{};o(is,"FormAction"),h([y({flex:Vo,generate:mt})],is.prototype,"visible",2),h([y({flex:Vo})],is.prototype,"tooltip",2),h([y({flex:Vo})],is.prototype,"icon",2),h([y({flex:Vo})],is.prototype,"activeIcon",2),h([y({flex:Vo})],is.prototype,"type",2);var zb=is,rs=class rs{};o(rs,"FieldForAction"),h([y({flex:Vo,generate:mt})],rs.prototype,"visible",2),h([y({flex:Vo})],rs.prototype,"tooltip",2),h([y({flex:Vo})],rs.prototype,"icon",2),h([y({flex:Vo})],rs.prototype,"activeIcon",2),h([y({flex:Vo}),C({since:"1.73.0"})],rs.prototype,"type",2);var Yb=rs;var Et=ie(le()),lo=ie(qs());var nE=require("path"),q8=ie(le()),s1=ie(a1()),c1=require("fs");var z8=(0,nE.join)(__dirname,"templates");var Y8=o((e,t)=>{let n=(0,c1.readFileSync)(e,"utf8");return(0,s1.render)(n,t)},"renderTemplate");var iE=o((e,t)=>{let n={id:e.id,text:e.text,columnKey:e.columnKey,columnIndex:e.columnIndex!==void 0?e.columnIndex.toString():void 0,leadingProperty:e.leadingProperty};return Y8((0,nE.join)(z8,t+".xml"),n)},"getSingleColumnContent"),rE=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=iE(i,t);n=n+`
288
+ }`;var Ze=$I(function(){return St(C,Ne+"return "+ee).apply(e,L)});if(Ze.source=ee,AT(Ze))throw Ze;return Ze}o(fB,"template");function uB(c){return It(c).toLowerCase()}o(uB,"toLower");function pB(c){return It(c).toUpperCase()}o(pB,"toUpper");function dB(c,f,d){if(c=It(c),c&&(d||f===e))return zC(c);if(!c||!(f=fr(f)))return c;var T=Zr(c),E=Zr(f),C=YC(T,E),L=JC(T,E)+1;return Ba(T,C,L).join("")}o(dB,"trim");function gB(c,f,d){if(c=It(c),c&&(d||f===e))return c.slice(0,eO(c)+1);if(!c||!(f=fr(f)))return c;var T=Zr(c),E=JC(T,Zr(f))+1;return Ba(T,0,E).join("")}o(gB,"trimEnd");function mB(c,f,d){if(c=It(c),c&&(d||f===e))return c.replace(Av,"");if(!c||!(f=fr(f)))return c;var T=Zr(c),E=YC(T,Zr(f));return Ba(T,E).join("")}o(mB,"trimStart");function hB(c,f){var d=D,T=ut;if(hn(f)){var E="separator"in f?f.separator:E;d="length"in f?Je(f.length):d,T="omission"in f?fr(f.omission):T}c=It(c);var C=c.length;if(Xc(c)){var L=Zr(c);C=L.length}if(d>=C)return c;var R=d-Qc(T);if(R<1)return T;var M=L?Ba(L,0,R).join(""):c.slice(0,R);if(E===e)return M+T;if(L&&(R+=M.length-R),ST(E)){if(c.slice(R).search(E)){var Y,J=M;for(E.global||(E=jv(E.source,It(vC.exec(E))+"g")),E.lastIndex=0;Y=E.exec(J);)var ee=Y.index;M=M.slice(0,ee===e?R:ee)}}else if(c.indexOf(fr(E),R)!=R){var me=M.lastIndexOf(E);me>-1&&(M=M.slice(0,me))}return M+T}o(hB,"truncate");function yB(c){return c=It(c),c&&xe.test(c)?c.replace(he,W2):c}o(yB,"unescape");var vB=el(function(c,f,d){return c+(d?" ":"")+f.toUpperCase()}),CT=BO("toUpperCase");function UI(c,f,d){return c=It(c),f=d?e:f,f===e?U2(c)?Q2(c):R2(c):c.match(f)||[]}o(UI,"words");var $I=nt(function(c,f){try{return cr(c,e,f)}catch(d){return AT(d)?d:new We(d)}}),TB=ta(function(c,f){return Rr(f,function(d){d=xo(d),Zo(c,d,bT(c[d],c))}),c});function bB(c){var f=c==null?0:c.length,d=Ve();return c=f?un(c,function(T){if(typeof T[1]!="function")throw new Fr(r);return[d(T[0]),T[1]]}):[],nt(function(T){for(var E=-1;++E<f;){var C=c[E];if(cr(C[0],this,T))return cr(C[1],this,T)}})}o(bB,"cond");function EB(c){return Wk(_r(c,p))}o(EB,"conforms");function OT(c){return function(){return c}}o(OT,"constant");function AB(c,f){return c==null||c!==c?f:c}o(AB,"defaultTo");var SB=GO(),PB=GO(!0);function Qi(c){return c}o(Qi,"identity");function IT(c){return bO(typeof c=="function"?c:_r(c,p))}o(IT,"iteratee");function xB(c){return AO(_r(c,p))}o(xB,"matches");function CB(c,f){return SO(c,_r(f,p))}o(CB,"matchesProperty");var OB=nt(function(c,f){return function(d){return Kf(d,c,f)}}),IB=nt(function(c,f){return function(d){return Kf(c,d,f)}});function NT(c,f,d){var T=Xn(f),E=Qd(f,T);d==null&&!(hn(f)&&(E.length||!T.length))&&(d=f,f=c,c=this,E=Qd(f,Xn(f)));var C=!(hn(d)&&"chain"in d)||!!d.chain,L=ia(c);return Rr(E,function(R){var M=f[R];c[R]=M,L&&(c.prototype[R]=function(){var Y=this.__chain__;if(C||Y){var J=c(this.__wrapped__),ee=J.__actions__=Wi(this.__actions__);return ee.push({func:M,args:arguments,thisArg:c}),J.__chain__=Y,J}return M.apply(c,Va([this.value()],arguments))})}),c}o(NT,"mixin");function NB(){return Kn._===this&&(Kn._=ek),this}o(NB,"noConflict");function LT(){}o(LT,"noop");function LB(c){return c=Je(c),nt(function(f){return PO(f,c)})}o(LB,"nthArg");var RB=sT(un),FB=sT(WC),DB=sT(Fv);function BI(c){return gT(c)?Dv(xo(c)):cj(c)}o(BI,"property");function _B(c){return function(f){return c==null?e:Gs(c,f)}}o(_B,"propertyOf");var VB=KO(),wB=KO(!0);function RT(){return[]}o(RT,"stubArray");function FT(){return!1}o(FT,"stubFalse");function MB(){return{}}o(MB,"stubObject");function kB(){return""}o(kB,"stubString");function jB(){return!0}o(jB,"stubTrue");function UB(c,f){if(c=Je(c),c<1||c>Re)return[];var d=kt,T=yi(c,kt);f=Ve(f),c-=kt;for(var E=wv(T,f);++d<c;)f(d);return E}o(UB,"times");function $B(c){return Xe(c)?un(c,xo):ur(c)?[c]:Wi(cI(It(c)))}o($B,"toPath");function BB(c){var f=++J2;return It(c)+f}o(BB,"uniqueId");var HB=eg(function(c,f){return c+f},0),GB=cT("ceil"),WB=eg(function(c,f){return c/f},1),KB=cT("floor");function XB(c){return c&&c.length?Xd(c,Qi,Xv):e}o(XB,"max");function QB(c,f){return c&&c.length?Xd(c,Ve(f,2),Xv):e}o(QB,"maxBy");function qB(c){return QC(c,Qi)}o(qB,"mean");function zB(c,f){return QC(c,Ve(f,2))}o(zB,"meanBy");function YB(c){return c&&c.length?Xd(c,Qi,Yv):e}o(YB,"min");function JB(c,f){return c&&c.length?Xd(c,Ve(f,2),Yv):e}o(JB,"minBy");var ZB=eg(function(c,f){return c*f},1),eH=cT("round"),tH=eg(function(c,f){return c-f},0);function nH(c){return c&&c.length?Vv(c,Qi):0}o(nH,"sum");function iH(c,f){return c&&c.length?Vv(c,Ve(f,2)):0}return o(iH,"sumBy"),P.after=x4,P.ary=TI,P.assign=p$,P.assignIn=DI,P.assignInWith=dg,P.assignWith=d$,P.at=g$,P.before=bI,P.bind=bT,P.bindAll=TB,P.bindKey=EI,P.castArray=M4,P.chain=hI,P.chunk=Wj,P.compact=Kj,P.concat=Xj,P.cond=bB,P.conforms=EB,P.constant=OT,P.countBy=t4,P.create=m$,P.curry=AI,P.curryRight=SI,P.debounce=PI,P.defaults=h$,P.defaultsDeep=y$,P.defer=C4,P.delay=O4,P.difference=Qj,P.differenceBy=qj,P.differenceWith=zj,P.drop=Yj,P.dropRight=Jj,P.dropRightWhile=Zj,P.dropWhile=eU,P.fill=tU,P.filter=i4,P.flatMap=a4,P.flatMapDeep=s4,P.flatMapDepth=c4,P.flatten=pI,P.flattenDeep=nU,P.flattenDepth=iU,P.flip=I4,P.flow=SB,P.flowRight=PB,P.fromPairs=rU,P.functions=P$,P.functionsIn=x$,P.groupBy=l4,P.initial=aU,P.intersection=sU,P.intersectionBy=cU,P.intersectionWith=lU,P.invert=O$,P.invertBy=I$,P.invokeMap=u4,P.iteratee=IT,P.keyBy=p4,P.keys=Xn,P.keysIn=Xi,P.map=sg,P.mapKeys=L$,P.mapValues=R$,P.matches=xB,P.matchesProperty=CB,P.memoize=lg,P.merge=F$,P.mergeWith=_I,P.method=OB,P.methodOf=IB,P.mixin=NT,P.negate=fg,P.nthArg=LB,P.omit=D$,P.omitBy=_$,P.once=N4,P.orderBy=d4,P.over=RB,P.overArgs=L4,P.overEvery=FB,P.overSome=DB,P.partial=ET,P.partialRight=xI,P.partition=g4,P.pick=V$,P.pickBy=VI,P.property=BI,P.propertyOf=_B,P.pull=dU,P.pullAll=gI,P.pullAllBy=gU,P.pullAllWith=mU,P.pullAt=hU,P.range=VB,P.rangeRight=wB,P.rearg=R4,P.reject=y4,P.remove=yU,P.rest=F4,P.reverse=vT,P.sampleSize=b4,P.set=M$,P.setWith=k$,P.shuffle=E4,P.slice=vU,P.sortBy=P4,P.sortedUniq=xU,P.sortedUniqBy=CU,P.split=sB,P.spread=D4,P.tail=OU,P.take=IU,P.takeRight=NU,P.takeRightWhile=LU,P.takeWhile=RU,P.tap=KU,P.throttle=_4,P.thru=ag,P.toArray=LI,P.toPairs=wI,P.toPairsIn=MI,P.toPath=$B,P.toPlainObject=FI,P.transform=j$,P.unary=V4,P.union=FU,P.unionBy=DU,P.unionWith=_U,P.uniq=VU,P.uniqBy=wU,P.uniqWith=MU,P.unset=U$,P.unzip=TT,P.unzipWith=mI,P.update=$$,P.updateWith=B$,P.values=il,P.valuesIn=H$,P.without=kU,P.words=UI,P.wrap=w4,P.xor=jU,P.xorBy=UU,P.xorWith=$U,P.zip=BU,P.zipObject=HU,P.zipObjectDeep=GU,P.zipWith=WU,P.entries=wI,P.entriesIn=MI,P.extend=DI,P.extendWith=dg,NT(P,P),P.add=HB,P.attempt=$I,P.camelCase=X$,P.capitalize=kI,P.ceil=GB,P.clamp=G$,P.clone=k4,P.cloneDeep=U4,P.cloneDeepWith=$4,P.cloneWith=j4,P.conformsTo=B4,P.deburr=jI,P.defaultTo=AB,P.divide=WB,P.endsWith=Q$,P.eq=to,P.escape=q$,P.escapeRegExp=z$,P.every=n4,P.find=r4,P.findIndex=fI,P.findKey=v$,P.findLast=o4,P.findLastIndex=uI,P.findLastKey=T$,P.floor=KB,P.forEach=yI,P.forEachRight=vI,P.forIn=b$,P.forInRight=E$,P.forOwn=A$,P.forOwnRight=S$,P.get=PT,P.gt=H4,P.gte=G4,P.has=C$,P.hasIn=xT,P.head=dI,P.identity=Qi,P.includes=f4,P.indexOf=oU,P.inRange=W$,P.invoke=N$,P.isArguments=Xs,P.isArray=Xe,P.isArrayBuffer=W4,P.isArrayLike=Ki,P.isArrayLikeObject=On,P.isBoolean=K4,P.isBuffer=Ha,P.isDate=X4,P.isElement=Q4,P.isEmpty=q4,P.isEqual=z4,P.isEqualWith=Y4,P.isError=AT,P.isFinite=J4,P.isFunction=ia,P.isInteger=CI,P.isLength=ug,P.isMap=OI,P.isMatch=Z4,P.isMatchWith=e$,P.isNaN=t$,P.isNative=n$,P.isNil=r$,P.isNull=i$,P.isNumber=II,P.isObject=hn,P.isObjectLike=Tn,P.isPlainObject=Jf,P.isRegExp=ST,P.isSafeInteger=o$,P.isSet=NI,P.isString=pg,P.isSymbol=ur,P.isTypedArray=nl,P.isUndefined=a$,P.isWeakMap=s$,P.isWeakSet=c$,P.join=fU,P.kebabCase=Y$,P.last=wr,P.lastIndexOf=uU,P.lowerCase=J$,P.lowerFirst=Z$,P.lt=l$,P.lte=f$,P.max=XB,P.maxBy=QB,P.mean=qB,P.meanBy=zB,P.min=YB,P.minBy=JB,P.stubArray=RT,P.stubFalse=FT,P.stubObject=MB,P.stubString=kB,P.stubTrue=jB,P.multiply=ZB,P.nth=pU,P.noConflict=NB,P.noop=LT,P.now=cg,P.pad=eB,P.padEnd=tB,P.padStart=nB,P.parseInt=iB,P.random=K$,P.reduce=m4,P.reduceRight=h4,P.repeat=rB,P.replace=oB,P.result=w$,P.round=eH,P.runInContext=w,P.sample=T4,P.size=A4,P.snakeCase=aB,P.some=S4,P.sortedIndex=TU,P.sortedIndexBy=bU,P.sortedIndexOf=EU,P.sortedLastIndex=AU,P.sortedLastIndexBy=SU,P.sortedLastIndexOf=PU,P.startCase=cB,P.startsWith=lB,P.subtract=tH,P.sum=nH,P.sumBy=iH,P.template=fB,P.times=UB,P.toFinite=ra,P.toInteger=Je,P.toLength=RI,P.toLower=uB,P.toNumber=Mr,P.toSafeInteger=u$,P.toString=It,P.toUpper=pB,P.trim=dB,P.trimEnd=gB,P.trimStart=mB,P.truncate=hB,P.unescape=yB,P.uniqueId=BB,P.upperCase=vB,P.upperFirst=CT,P.each=yI,P.eachRight=vI,P.first=dI,NT(P,function(){var c={};return So(P,function(f,d){Dt.call(P.prototype,d)||(c[d]=f)}),c}(),{chain:!1}),P.VERSION=t,Rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){P[c].placeholder=P}),Rr(["drop","take"],function(c,f){pt.prototype[c]=function(d){d=d===e?1:Un(Je(d),0);var T=this.__filtered__&&!f?new pt(this):this.clone();return T.__filtered__?T.__takeCount__=yi(d,T.__takeCount__):T.__views__.push({size:yi(d,kt),type:c+(T.__dir__<0?"Right":"")}),T},pt.prototype[c+"Right"]=function(d){return this.reverse()[c](d).reverse()}}),Rr(["filter","map","takeWhile"],function(c,f){var d=f+1,T=d==sn||d==tn;pt.prototype[c]=function(E){var C=this.clone();return C.__iteratees__.push({iteratee:Ve(E,3),type:d}),C.__filtered__=C.__filtered__||T,C}}),Rr(["head","last"],function(c,f){var d="take"+(f?"Right":"");pt.prototype[c]=function(){return this[d](1).value()[0]}}),Rr(["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(Qi)},pt.prototype.find=function(c){return this.filter(c).head()},pt.prototype.findLast=function(c){return this.reverse().find(c)},pt.prototype.invokeMap=nt(function(c,f){return typeof c=="function"?new pt(this):this.map(function(d){return Kf(d,c,f)})}),pt.prototype.reject=function(c){return this.filter(fg(Ve(c)))},pt.prototype.slice=function(c,f){c=Je(c);var d=this;return d.__filtered__&&(c>0||f<0)?new pt(d):(c<0?d=d.takeRight(-c):c&&(d=d.drop(c)),f!==e&&(f=Je(f),d=f<0?d.dropRight(-f):d.take(f-c)),d)},pt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},pt.prototype.toArray=function(){return this.take(kt)},So(pt.prototype,function(c,f){var d=/^(?:filter|find|map|reject)|While$/.test(f),T=/^(?:head|last)$/.test(f),E=P[T?"take"+(f=="last"?"Right":""):f],C=T||/^find/.test(f);E&&(P.prototype[f]=function(){var L=this.__wrapped__,R=T?[1]:arguments,M=L instanceof pt,Y=R[0],J=M||Xe(L),ee=o(function(st){var gt=E.apply(P,Va([st],R));return T&&me?gt[0]:gt},"interceptor");J&&d&&typeof Y=="function"&&Y.length!=1&&(M=J=!1);var me=this.__chain__,Ne=!!this.__actions__.length,Me=C&&!me,Ze=M&&!Ne;if(!C&&J){L=Ze?L:new pt(this);var ke=c.apply(L,R);return ke.__actions__.push({func:ag,args:[ee],thisArg:e}),new Dr(ke,me)}return Me&&Ze?c.apply(this,R):(ke=this.thru(ee),Me?T?ke.value()[0]:ke.value():ke)})}),Rr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Fd[c],d=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",T=/^(?:pop|shift)$/.test(c);P.prototype[c]=function(){var E=arguments;if(T&&!this.__chain__){var C=this.value();return f.apply(Xe(C)?C:[],E)}return this[d](function(L){return f.apply(Xe(L)?L:[],E)})}}),So(pt.prototype,function(c,f){var d=P[f];if(d){var T=d.name+"";Dt.call(Yc,T)||(Yc[T]=[]),Yc[T].push({name:f,func:d})}}),Yc[Zd(e,I).name]=[{name:"wrapper",func:e}],pt.prototype.clone=hk,pt.prototype.reverse=yk,pt.prototype.value=vk,P.prototype.at=XU,P.prototype.chain=QU,P.prototype.commit=qU,P.prototype.next=zU,P.prototype.plant=JU,P.prototype.reverse=ZU,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=e4,P.prototype.first=P.prototype.head,jf&&(P.prototype[jf]=YU),P},"runInContext"),Ma=q2();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Kn._=Ma,define(function(){return Ma})):js?((js.exports=Ma)._=Ma,Iv._=Ma):Kn._=Ma}).call(nf)});var LV=ze((ale,NV)=>{var{findIndex:x6}=Ip();function C6(e,t){let i=x6(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(C6,"findNextTextualToken");NV.exports={findNextTextualToken:C6}});var DV=ze((cle,FV)=>{var RV=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function O6({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(RV);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}o(O6,"isXMLNamespaceKey");function I6(e){if(typeof e!="string")return;let t=e.match(RV);if(t!==null)return t.groups&&t.groups.prefix||""}o(I6,"getXMLNamespaceKeyPrefix");FV.exports={isXMLNamespaceKey:O6,getXMLNamespaceKeyPrefix:I6}});var VV=ze((fle,_V)=>{var{findNextTextualToken:N6}=LV(),{isXMLNamespaceKey:L6,getXMLNamespaceKeyPrefix:R6}=DV();_V.exports={findNextTextualToken:N6,isXMLNamespaceKey:L6,getXMLNamespaceKeyPrefix:R6}});var wS=ze((ule,MV)=>{var{reduce:F6,has:wV,isArray:D6}=Ip();function _6(e){return F6(e,(n,i,r)=>(r==="parent"||(wV(i,"type")?n.push(i):D6(i)&&i.length>0&&wV(i[0],"type")&&(n=n.concat(i))),n),[])}o(_6,"getAstChildrenReflective");MV.exports={getAstChildrenReflective:_6}});var MS=ze((dle,kV)=>{kV.exports={DEFAULT_NS:"::DEFAULT"}});var KV=ze((gle,WV)=>{var{BaseXmlCstVisitor:V6}=VS(),{last:w6,forEach:BV,reduce:M6,map:Np,pick:jS,sortBy:k6,isEmpty:j6,isArray:HV,assign:U6}=Ip(),{findNextTextualToken:$6,isXMLNamespaceKey:B6,getXMLNamespaceKeyPrefix:H6}=VV(),{getAstChildrenReflective:G6}=wS(),{DEFAULT_NS:W6}=MS();function K6(e,t){jV.setState({tokenVector:t});let n=jV.visit(e);return n.rootElement!==Vc&&GV(n.rootElement),n}o(K6,"buildAst");var US=class US extends V6{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:Vc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&j6(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),Ry(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Np(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),Ry(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Np(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Np(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Vc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Np(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 q6(i,t),z6(i,t),Y6(i,t,this.tokenVector),Ry(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Vc,value:Vc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let a=t.Name[0];r.key=a.image,r.syntax.key=Fy(a)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let a=t.STRING[0];r.value=X6(a.image),r.syntax.value=Fy(a)}return Ry(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Vc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let a=k6(r,["startOffset"]),s=Np(a,"image").join("");return i.text=s,i}misc(t,{location:n}){}};o(US,"CstToAstVisitor");var kS=US,jV=new kS;function Ry(e){let t=G6(e);BV(t,n=>n.parent=e)}o(Ry,"setChildrenParent");function GV(e,t=[]){let n=M6(e.attributes,(r,a)=>{if(a.key!==Vc&&B6({key:a.key,includeEmptyPrefix:!1})===!0){let s=H6(a.key);if(a.value){let l=a.value;s!==""?r[s]=l:r[W6]=l}}return r},{}),i=Object.create(null);e.namespaces=U6(i,t,n),BV(e.subElements,r=>GV(r,e.namespaces))}o(GV,"updateNamespaces");function Fy(e){return jS(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}o(Fy,"toXMLToken");function UV(e){return jS(e,["startOffset","startLine","startColumn"])}o(UV,"startOfXMLToken");function $V(e){return jS(e,["endOffset","endLine","endColumn"])}o($V,"endOfXMLToken");function Oa(e){return HV(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}o(Oa,"exists");function X6(e){return e.substring(1,e.length-1)}o(X6,"stripQuotes");function Q6(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}o(Q6,"nsToParts");var Vc=null;function q6(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=Fy(n);let i=Q6(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=Fy(t.END_NAME[0]))}o(q6,"handleElementOpenCloseNameRanges");function z6(e,t){if(Oa(t.OPEN)){let n;Oa(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):Oa(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...UV(t.OPEN[0]),...$V(n)}),Oa(t.SLASH_OPEN)&&Oa(t.END)&&(e.syntax.closeBody={...UV(t.SLASH_OPEN[0]),...$V(t.END[0])})}}o(z6,"handleElementOpenCloseBodyRanges");function Y6(e,t,n){if(Oa(t.Name)){let i=t.Name[0].endOffset+2;if(Oa(t.START_CLOSE)||Oa(t.SLASH_CLOSE)){let r=(Oa(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let a=HV(t.attribute)?w6(t.attribute).location.endOffset:t.Name[0].endOffset,s=$6(n,a);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}o(Y6,"handleElementAttributeRanges");WV.exports={buildAst:K6}});var qV=ze((hle,QV)=>{var{forEach:J6,isFunction:rf}=Ip(),{getAstChildrenReflective:Z6}=wS();function XV(e,t){switch(e.type){case"XMLDocument":{rf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{rf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{rf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{rf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{rf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{rf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=Z6(e);J6(n,i=>{XV(i,t)})}o(XV,"accept");QV.exports={accept:XV}});var YV=ze((vle,zV)=>{var{buildAst:eQ}=KV(),{accept:tQ}=qV(),{DEFAULT_NS:nQ}=MS();zV.exports={buildAst:eQ,accept:tQ,DEFAULT_NS:nQ}});var wi={};Qs(wi,{deleteConfigEntityByPath:()=>NY,exportConfig:()=>OY,exportConfigEntityByPath:()=>IY,generateCustomExtension:()=>pC,generateSchema:()=>CY,getApiVersion:()=>DY,getChanges:()=>FM,getGenericSchema:()=>hv,getPathToGenericSchema:()=>Ww,getProject:()=>kY,importConfig:()=>LY,importProject:()=>RY,importProjectSchema:()=>FY,isDirectory:()=>VY,log:()=>se,prompts:()=>xY,readDirectory:()=>yC});module.exports=mg(wi);var de=ie(le());var G=ie(le());var Be=o(e=>typeof e=="string","isString"),Zf=o(()=>{let e,t,n=new Promise((i,r)=>{e=i,t=r});return n.resolve=e,n.reject=t,n},"defer"),CR=o(e=>e==null?"":""+e,"makeString"),k5=o((e,t,n)=>{e.forEach(i=>{t[i]&&(n[i]=t[i])})},"copy"),j5=/###/g,OR=o(e=>e&&e.indexOf("###")>-1?e.replace(j5,"."):e,"cleanKey"),IR=o(e=>!e||Be(e),"canNotTraverseDeeper"),eu=o((e,t,n)=>{let i=Be(t)?t.split("."):t,r=0;for(;r<i.length-1;){if(IR(e))return{};let a=OR(i[r]);!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={},++r}return IR(e)?{}:{obj:e,k:OR(i[r])}},"getLastOfPath"),NR=o((e,t,n)=>{let{obj:i,k:r}=eu(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=eu(e,s,Object);for(;l.obj===void 0&&s.length;)a=`${s[s.length-1]}.${a}`,s=s.slice(0,s.length-1),l=eu(e,s,Object),l&&l.obj&&typeof l.obj[`${l.k}.${a}`]<"u"&&(l.obj=void 0);l.obj[`${l.k}.${a}`]=n},"setPath"),U5=o((e,t,n,i)=>{let{obj:r,k:a}=eu(e,t,Object);r[a]=r[a]||[],r[a].push(n)},"pushPath"),yg=o((e,t)=>{let{obj:n,k:i}=eu(e,t);if(n)return n[i]},"getPath"),$5=o((e,t,n)=>{let i=yg(e,n);return i!==void 0?i:yg(t,n)},"getPathWithDefaults"),VR=o((e,t,n)=>{for(let i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?Be(e[i])||e[i]instanceof String||Be(t[i])||t[i]instanceof String?n&&(e[i]=t[i]):VR(e[i],t[i],n):e[i]=t[i]);return e},"deepExtend"),ol=o(e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),"regexEscape"),B5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"},H5=o(e=>Be(e)?e.replace(/[&<>"'\/]/g,t=>B5[t]):e,"escape"),QT=class QT{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(QT,"RegExpCache");var $T=QT,G5=[" ",",","?","!",";"],W5=new $T(20),K5=o((e,t,n)=>{t=t||"",n=n||"";let i=G5.filter(s=>t.indexOf(s)<0&&n.indexOf(s)<0);if(i.length===0)return!0;let r=W5.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"),BT=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"),vg=o(e=>e&&e.replace("_","-"),"getCleanedCode"),X5={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)}},tu=class tu{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||X5,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,i,r){return r&&!this.debug?null:(Be(t[0])&&(t[0]=`${i}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new tu(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new tu(this.logger,t)}};o(tu,"Logger");var HT=tu,Co=new HT,qT=class qT{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(qT,"EventEmitter");var sl=qT,zT=class zT extends sl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){let n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=r.keySeparator!==void 0?r.keySeparator:this.options.keySeparator,s=r.ignoreJSONStructure!==void 0?r.ignoreJSONStructure:this.options.ignoreJSONStructure,l;t.indexOf(".")>-1?l=t.split("."):(l=[t,n],i&&(Array.isArray(i)?l.push(...i):Be(i)&&a?l.push(...i.split(a)):l.push(i)));let u=yg(this.data,l);return!u&&!n&&!i&&t.indexOf(".")>-1&&(t=l[0],n=l[1],i=l.slice(2).join(".")),u||!s||!Be(i)?u:BT(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),NR(this.data,l,r),a.silent||this.emit("added",t,n,i,r)}addResources(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let a in i)(Be(i[a])||Array.isArray(i[a]))&&this.addResource(t,n,a,i[a],{silent:!0});r.silent||this.emit("added",t,n,i)}addResourceBundle(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},l=[t,n];t.indexOf(".")>-1&&(l=t.split("."),r=i,i=n,n=l[1]),this.addNamespaces(n);let u=yg(this.data,l)||{};s.skipCopy||(i=JSON.parse(JSON.stringify(i))),r?VR(u,i,a):u={...u,...i},NR(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(zT,"ResourceStore");var Tg=zT,wR={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}},LR={},Sg=class Sg extends sl{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),k5(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Co.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&&!K5(t,i,r);if(s&&!l){let u=t.match(this.interpolator.nestingRegexp);if(u&&u.length>0)return{key:t,namespaces:Be(a)?[a]:a};let p=t.split(i);(i!==r||i===r&&this.options.ns.indexOf(p[0])>-1)&&(a=p.shift()),t=p.join(r)}return{key:t,namespaces:Be(a)?[a]:a}}translate(t,n,i){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n={...n}),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);let r=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,a=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:s,namespaces:l}=this.extractFromKey(t[t.length-1],n),u=l[l.length-1],p=n.lng||this.language,g=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&p.toLowerCase()==="cimode"){if(g){let ae=n.nsSeparator||this.options.nsSeparator;return r?{res:`${u}${ae}${s}`,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:`${u}${ae}${s}`}return r?{res:s,usedKey:s,exactUsedKey:s,usedLng:p,usedNS:u,usedParams:this.getUsedParamsDetails(n)}:s}let m=this.resolve(t,n),v=m&&m.res,A=m&&m.usedKey||s,b=m&&m.exactUsedKey||s,I=Object.prototype.toString.apply(v),F=["[object Number]","[object Function]","[object RegExp]"],j=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,K=!this.i18nFormat||this.i18nFormat.handleAsObject,U=!Be(v)&&typeof v!="boolean"&&typeof v!="number";if(K&&v&&U&&F.indexOf(I)<0&&!(Be(j)&&Array.isArray(v))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let ae=this.options.returnedObjectHandler?this.options.returnedObjectHandler(A,v,{...n,ns:l}):`key '${s} (${this.language})' returned an object instead of string.`;return r?(m.res=ae,m.usedParams=this.getUsedParamsDetails(n),m):ae}if(a){let ae=Array.isArray(v),Z=ae?[]:{},re=ae?b:A;for(let Pe in v)if(Object.prototype.hasOwnProperty.call(v,Pe)){let D=`${re}${a}${Pe}`;Z[Pe]=this.translate(D,{...n,joinArrays:!1,ns:l}),Z[Pe]===D&&(Z[Pe]=v[Pe])}v=Z}}else if(K&&Be(j)&&Array.isArray(v))v=v.join(j),v&&(v=this.extendTranslation(v,t,n,i));else{let ae=!1,Z=!1,re=n.count!==void 0&&!Be(n.count),Pe=Sg.hasDefaultValue(n),D=re?this.pluralResolver.getSuffix(p,n.count,n):"",ut=n.ordinal&&re?this.pluralResolver.getSuffix(p,n.count,{ordinal:!1}):"",yt=re&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),Ue=yt&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${D}`]||n[`defaultValue${ut}`]||n.defaultValue;!this.isValidLookup(v)&&Pe&&(ae=!0,v=Ue),this.isValidLookup(v)||(Z=!0,v=s);let Gn=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&Z?void 0:v,tn=Pe&&Ue!==v&&this.options.updateMissing;if(Z||ae||tn){if(this.logger.log(tn?"updateKey":"missingKey",p,u,s,tn?Ue:v),a){let Ot=this.resolve(s,{...n,keySeparator:!1});Ot&&Ot.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 Rt=[],Re=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&Re&&Re[0])for(let Ot=0;Ot<Re.length;Ot++)Rt.push(Re[Ot]);else this.options.saveMissingTo==="all"?Rt=this.languageUtils.toResolveHierarchy(n.lng||this.language):Rt.push(n.lng||this.language);let Ii=o((Ot,kt,cn)=>{let Hi=Pe&&cn!==v?cn:Gn;this.options.missingKeyHandler?this.options.missingKeyHandler(Ot,u,kt,Hi,tn,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(Ot,u,kt,Hi,tn,n),this.emit("missingKey",Ot,u,kt,v)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&re?Rt.forEach(Ot=>{let kt=this.pluralResolver.getSuffixes(Ot,n);yt&&n[`defaultValue${this.options.pluralSeparator}zero`]&&kt.indexOf(`${this.options.pluralSeparator}zero`)<0&&kt.push(`${this.options.pluralSeparator}zero`),kt.forEach(cn=>{Ii([Ot],s+cn,n[`defaultValue${cn}`]||Ue)})}):Ii(Rt,s,Ue))}v=this.extendTranslation(v,t,n,m,i),Z&&v===s&&this.options.appendNamespaceToMissingKey&&(v=`${u}:${s}`),(Z||ae)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?v=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}:${s}`:s,ae?v:void 0):v=this.options.parseMissingKeyHandler(v))}return r?(m.res=v,m.usedParams=this.getUsedParamsDetails(n),m):v}extendTranslation(t,n,i,r,a){var s=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,{...this.options.interpolation.defaultVariables,...i},i.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!i.skipInterpolation){i.interpolation&&this.interpolator.init({...i,interpolation:{...this.options.interpolation,...i.interpolation}});let p=Be(t)&&(i&&i.interpolation&&i.interpolation.skipOnVariables!==void 0?i.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),g;if(p){let v=t.match(this.interpolator.nestingRegexp);g=v&&v.length}let m=i.replace&&!Be(i.replace)?i.replace:i;if(this.options.interpolation.defaultVariables&&(m={...this.options.interpolation.defaultVariables,...m}),t=this.interpolator.interpolate(t,m,i.lng||this.language||r.usedLng,i),p){let v=t.match(this.interpolator.nestingRegexp),A=v&&v.length;g<A&&(i.nest=!1)}!i.lng&&this.options.compatibilityAPI!=="v1"&&r&&r.res&&(i.lng=this.language||r.usedLng),i.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var v=arguments.length,A=new Array(v),b=0;b<v;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=Be(l)?[l]:l;return t!=null&&u&&u.length&&i.applyPostProcessor!==!1&&(t=wR.handle(u,t,n,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(i)},...i}:i,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i,r,a,s,l;return Be(t)&&(t=[t]),t.forEach(u=>{if(this.isValidLookup(i))return;let p=this.extractFromKey(u,n),g=p.key;r=g;let m=p.namespaces;this.options.fallbackNS&&(m=m.concat(this.options.fallbackNS));let v=n.count!==void 0&&!Be(n.count),A=v&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),b=n.context!==void 0&&(Be(n.context)||typeof n.context=="number")&&n.context!=="",I=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);m.forEach(F=>{this.isValidLookup(i)||(l=F,!LR[`${I[0]}-${F}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(l)&&(LR[`${I[0]}-${F}`]=!0,this.logger.warn(`key "${r}" for languages "${I.join(", ")}" won't get resolved as namespace "${l}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),I.forEach(j=>{if(this.isValidLookup(i))return;s=j;let K=[g];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(K,g,j,F,n);else{let ae;v&&(ae=this.pluralResolver.getSuffix(j,n.count,n));let Z=`${this.options.pluralSeparator}zero`,re=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(v&&(K.push(g+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(g+ae.replace(re,this.options.pluralSeparator)),A&&K.push(g+Z)),b){let Pe=`${g}${this.options.contextSeparator}${n.context}`;K.push(Pe),v&&(K.push(Pe+ae),n.ordinal&&ae.indexOf(re)===0&&K.push(Pe+ae.replace(re,this.options.pluralSeparator)),A&&K.push(Pe+Z))}}let U;for(;U=K.pop();)this.isValidLookup(i)||(a=U,i=this.getResource(j,F,U,n))}))})}),{res:i,usedKey:r,exactUsedKey:a,usedLng:s,usedNS:l}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,i,r):this.resourceStore.getResource(t,n,i,r)}getUsedParamsDetails(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"],i=t.replace&&!Be(t.replace),r=i?t.replace:t;if(i&&typeof t.count<"u"&&(r.count=t.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!i){r={...r};for(let a of n)delete r[a]}return r}static hasDefaultValue(t){let n="defaultValue";for(let i in t)if(Object.prototype.hasOwnProperty.call(t,i)&&n===i.substring(0,n.length)&&t[i]!==void 0)return!0;return!1}};o(Sg,"Translator");var bg=Sg,jT=o(e=>e.charAt(0).toUpperCase()+e.slice(1),"capitalize"),YT=class YT{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Co.create("languageUtils")}getScriptPartFromCode(t){if(t=vg(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=vg(t),!t||t.indexOf("-")<0)return t;let n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(Be(t)&&t.indexOf("-")>-1){if(typeof Intl<"u"&&typeof Intl.getCanonicalLocales<"u")try{let r=Intl.getCanonicalLocales(t)[0];if(r&&this.options.lowerCaseLng&&(r=r.toLowerCase()),r)return r}catch{}let n=["hans","hant","latn","cyrl","cans","mong","arab"],i=t.split("-");return this.options.lowerCaseLng?i=i.map(r=>r.toLowerCase()):i.length===2?(i[0]=i[0].toLowerCase(),i[1]=i[1].toUpperCase(),n.indexOf(i[1].toLowerCase())>-1&&(i[1]=jT(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]=jT(i[1].toLowerCase())),n.indexOf(i[2].toLowerCase())>-1&&(i[2]=jT(i[2].toLowerCase()))),i.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(i=>{if(n)return;let r=this.formatLanguageCode(i);(!this.options.supportedLngs||this.isSupportedCode(r))&&(n=r)}),!n&&this.options.supportedLngs&&t.forEach(i=>{if(n)return;let r=this.getLanguagePartFromCode(i);if(this.isSupportedCode(r))return n=r;n=this.options.supportedLngs.find(a=>{if(a===r)return a;if(!(a.indexOf("-")<0&&r.indexOf("-")<0)&&(a.indexOf("-")>0&&r.indexOf("-")<0&&a.substring(0,a.indexOf("-"))===r||a.indexOf(r)===0&&r.length>1))return a})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),Be(t)&&(t=[t]),Array.isArray(t))return t;if(!n)return t.default||[];let i=t[n];return i||(i=t[this.getScriptPartFromCode(n)]),i||(i=t[this.formatLanguageCode(n)]),i||(i=t[this.getLanguagePartFromCode(n)]),i||(i=t.default),i||[]}toResolveHierarchy(t,n){let i=this.getFallbackCodes(n||this.options.fallbackLng||[],t),r=[],a=o(s=>{s&&(this.isSupportedCode(s)?r.push(s):this.logger.warn(`rejecting language code not found in supportedLngs: ${s}`))},"addCode");return Be(t)&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&a(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&a(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&a(this.getLanguagePartFromCode(t))):Be(t)&&a(this.formatLanguageCode(t)),i.forEach(s=>{r.indexOf(s)<0&&a(this.formatLanguageCode(s))}),r}};o(YT,"LanguageUtil");var Eg=YT,Q5=[{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}],q5={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},z5=["v1","v2","v3"],Y5=["v4"],RR={zero:0,one:1,two:2,few:3,many:4,other:5},J5=o(()=>{let e={};return Q5.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:q5[t.fc]}})}),e},"createRules"),JT=class JT{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Co.create("pluralResolver"),(!this.options.compatibilityJSON||Y5.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=J5(),this.pluralRulesCache={}}addRule(t,n){this.rules[t]=n}clearCache(){this.pluralRulesCache={}}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let i=vg(t==="dev"?"en":t),r=n.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];let s;try{s=new Intl.PluralRules(i,{type:r})}catch{if(!t.match(/-|_/))return;let u=this.languageUtils.getLanguagePartFromCode(t);s=this.getRule(u,n)}return this.pluralRulesCache[a]=s,s}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return this.shouldUseIntlApi()?i&&i.resolvedOptions().pluralCategories.length>1:i&&i.numbers.length>1}getPluralFormsOfKey(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,i).map(r=>`${n}${r}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=this.getRule(t,n);return i?this.shouldUseIntlApi()?i.resolvedOptions().pluralCategories.sort((r,a)=>RR[r]-RR[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!z5.includes(this.options.compatibilityJSON)}};o(JT,"PluralResolver");var GT=JT,FR=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=$5(e,t,n);return!a&&r&&Be(n)&&(a=BT(e,n,i),a===void 0&&(a=BT(t,n,i))),a},"deepFindWithDefaults"),UT=o(e=>e.replace(/\$/g,"$$$$"),"regexSafe"),ZT=class ZT{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});let{escape:n,escapeValue:i,useRawValueToEscape:r,prefix:a,prefixEscaped:s,suffix:l,suffixEscaped:u,formatSeparator:p,unescapeSuffix:g,unescapePrefix:m,nestingPrefix:v,nestingPrefixEscaped:A,nestingSuffix:b,nestingSuffixEscaped:I,nestingOptionsSeparator:F,maxReplaces:j,alwaysFormat:K}=t.interpolation;this.escape=n!==void 0?n:H5,this.escapeValue=i!==void 0?i:!0,this.useRawValueToEscape=r!==void 0?r:!1,this.prefix=a?ol(a):s||"{{",this.suffix=l?ol(l):u||"}}",this.formatSeparator=p||",",this.unescapePrefix=g?"":m||"-",this.unescapeSuffix=this.unescapePrefix?"":g||"",this.nestingPrefix=v?ol(v):A||ol("$t("),this.nestingSuffix=b?ol(b):I||ol(")"),this.nestingOptionsSeparator=F||",",this.maxReplaces=j||1e3,this.alwaysFormat=K!==void 0?K:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let t=o((n,i)=>n&&n.source===i?(n.lastIndex=0,n):new RegExp(i,"g"),"getOrResetRegExp");this.regexp=t(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=t(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=t(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(t,n,i,r){let a,s,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=o(A=>{if(A.indexOf(this.formatSeparator)<0){let j=FR(n,u,A,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(j,void 0,i,{...r,...n,interpolationkey:A}):j}let b=A.split(this.formatSeparator),I=b.shift().trim(),F=b.join(this.formatSeparator).trim();return this.format(FR(n,u,I,this.options.keySeparator,this.options.ignoreJSONStructure),F,i,{...r,...n,interpolationkey:I})},"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=>UT(A),"safeValue")},{regex:this.regexp,safeValue:o(A=>this.escapeValue?UT(this.escape(A)):UT(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 F=g(t,a,r);s=Be(F)?F:""}else if(r&&Object.prototype.hasOwnProperty.call(r,b))s="";else if(m){s=a[0];continue}else this.logger.warn(`missed to pass in variable ${b} for interpolating ${t}`),s="";else!Be(s)&&!this.useRawValueToEscape&&(s=CR(s));let I=A.safeValue(s);if(t=t.replace(a[0],I),m?(A.regex.lastIndex+=s.length,A.regex.lastIndex-=a[0].length):A.regex.lastIndex=0,l++,l>=this.maxReplaces)break}}),t}nest(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,a,s,l=o((u,p)=>{let g=this.nestingOptionsSeparator;if(u.indexOf(g)<0)return u;let m=u.split(new RegExp(`${g}[ ]*{`)),v=`{${m[1]}`;u=m[0],v=this.interpolate(v,s);let A=v.match(/'/g),b=v.match(/"/g);(A&&A.length%2===0&&!b||b.length%2!==0)&&(v=v.replace(/'/g,'"'));try{s=JSON.parse(v),p&&(s={...p,...s})}catch(I){return this.logger.warn(`failed parsing options string in nesting for key ${u}`,I),`${u}${g}${v}`}return s.defaultValue&&s.defaultValue.indexOf(this.prefix)>-1&&delete s.defaultValue,u},"handleHasOptions");for(;r=this.nestingRegexp.exec(t);){let u=[];s={...i},s=s.replace&&!Be(s.replace)?s.replace:s,s.applyPostProcessor=!1,delete s.defaultValue;let p=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let g=r[1].split(this.formatSeparator).map(m=>m.trim());r[1]=g.shift(),u=g,p=!0}if(a=n(l.call(this,r[1].trim(),s),s),a&&r[0]===t&&!Be(a))return a;Be(a)||(a=CR(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(ZT,"Interpolator");var WT=ZT,Z5=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"),al=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(vg(i),r),t[s]=l),l(n)}},"createCachedFormatter"),eb=class eb{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Co.create("formatter"),this.options=t,this.formats={number:al((n,i)=>{let r=new Intl.NumberFormat(n,{...i});return a=>r.format(a)}),currency:al((n,i)=>{let r=new Intl.NumberFormat(n,{...i,style:"currency"});return a=>r.format(a)}),datetime:al((n,i)=>{let r=new Intl.DateTimeFormat(n,{...i});return a=>r.format(a)}),relativetime:al((n,i)=>{let r=new Intl.RelativeTimeFormat(n,{...i});return a=>r.format(a,i.range||"day")}),list:al((n,i)=>{let r=new Intl.ListFormat(n,{...i});return a=>r.format(a)})},this.init(t)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=n.interpolation.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=al(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}=Z5(u);if(this.formats[p]){let m=l;try{let v=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},A=v.locale||v.lng||r.locale||r.lng||i;m=this.formats[p](l,A,{...g,...r,...v})}catch(v){this.logger.warn(v)}return m}else this.logger.warn(`there was no format function for ${p}`);return l},t)}};o(eb,"Formatter");var KT=eb,eG=o((e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},"removePending"),tb=class tb extends sl{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=Co.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(i,r.backend,r)}queueLoad(t,n,i,r){let a={},s={},l={},u={};return t.forEach(p=>{let g=!0;n.forEach(m=>{let v=`${p}|${m}`;!i.reload&&this.store.hasResourceBundle(p,m)?this.state[v]=2:this.state[v]<0||(this.state[v]===1?s[v]===void 0&&(s[v]=!0):(this.state[v]=1,g=!1,s[v]===void 0&&(s[v]=!0),a[v]===void 0&&(a[v]=!0),u[m]===void 0&&(u[m]=!0)))}),g||(l[p]=!0)}),(Object.keys(a).length||Object.keys(s).length)&&this.queue.push({pending:s,pendingCount:Object.keys(s).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(a),pending:Object.keys(s),toLoadLanguages:Object.keys(l),toLoadNamespaces:Object.keys(u)}}loaded(t,n,i){let r=t.split("|"),a=r[0],s=r[1];n&&this.emit("failedLoading",a,s,n),!n&&i&&this.store.addResourceBundle(a,s,i,void 0,void 0,{skipCopy:!0}),this.state[t]=n?-1:2,n&&i&&(this.state[t]=0);let l={};this.queue.forEach(u=>{U5(u.loaded,[a],s),eG(u,t),n&&u.errors.push(n),u.pendingCount===0&&!u.done&&(Object.keys(u.loaded).forEach(p=>{l[p]||(l[p]={});let g=u.loaded[p];g.length&&g.forEach(m=>{l[p][m]===void 0&&(l[p][m]=!0)})}),u.done=!0,u.errors.length?u.callback(u.errors):u.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(u=>!u.done)}read(t,n,i){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,s=arguments.length>5?arguments[5]:void 0;if(!t.length)return s(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:i,tried:r,wait:a,callback:s});return}this.readingCalls++;let l=o((p,g)=>{if(this.readingCalls--,this.waitingReads.length>0){let m=this.waitingReads.shift();this.read(m.lng,m.ns,m.fcName,m.tried,m.wait,m.callback)}if(p&&g&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,i,r+1,a*2,s)},a);return}s(p,g)},"resolver"),u=this.backend[i].bind(this.backend);if(u.length===2){try{let p=u(t,n);p&&typeof p.then=="function"?p.then(g=>l(null,g)).catch(l):l(null,p)}catch(p){l(p)}return}return u(t,n,l)}prepareLoading(t,n){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();Be(t)&&(t=this.languageUtils.toResolveHierarchy(t)),Be(n)&&(n=[n]);let a=this.queueLoad(t,n,i,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(s=>{this.loadOne(s)})}load(t,n,i){this.prepareLoading(t,n,{},i)}reload(t,n,i){this.prepareLoading(t,n,{reload:!0},i)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",i=t.split("|"),r=i[0],a=i[1];this.read(r,a,"read",void 0,void 0,(s,l)=>{s&&this.logger.warn(`${n}loading namespace ${a} for language ${r} failed`,s),!s&&l&&this.logger.log(`${n}loaded namespace ${a} for language ${r}`,l),this.loaded(t,s,l)})}saveMissing(t,n,i,r,a){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${i}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(i==null||i==="")){if(this.backend&&this.backend.create){let u={...s,isUpdate:a},p=this.backend.create.bind(this.backend);if(p.length<6)try{let g;p.length===5?g=p(t,n,i,r,u):g=p(t,n,i,r),g&&typeof g.then=="function"?g.then(m=>l(null,m)).catch(l):l(null,g)}catch(g){l(g)}else p(t,n,i,r,l,u)}!t||!t[0]||this.store.addResource(t[0],n,i,r)}}};o(tb,"Connector");var XT=tb,DR=o(()=>({debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:o(e=>{let t={};if(typeof e[1]=="object"&&(t=e[1]),Be(e[1])&&(t.defaultValue=e[1]),Be(e[2])&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){let n=e[3]||e[2];Object.keys(n).forEach(i=>{t[i]=n[i]})}return t},"overloadTranslationOptionHandler"),interpolation:{escapeValue:!0,format:o(e=>e,"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}),"get"),_R=o(e=>(Be(e.ns)&&(e.ns=[e.ns]),Be(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),Be(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),"transformOptions"),hg=o(()=>{},"noop"),tG=o(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(n=>{typeof e[n]=="function"&&(e[n]=e[n].bind(e))})},"bindMemberFunctions"),nu=class nu extends sl{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=_R(t),this.services={},this.logger=Co,this.modules={external:[]},tG(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof n=="function"&&(i=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(Be(n.ns)?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));let r=DR();this.options={...r,...this.options,..._R(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?Co.init(a(this.modules.logger),this.options):Co.init(null,this.options);let g;this.modules.formatter?g=this.modules.formatter:typeof Intl<"u"&&(g=KT);let m=new Eg(this.options);this.store=new Tg(this.options.resources,this.options);let v=this.services;v.logger=Co,v.resourceStore=this.store,v.languageUtils=m,v.pluralResolver=new GT(m,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),g&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(v.formatter=a(g),v.formatter.init(v,this.options),this.options.interpolation.format=v.formatter.format.bind(v.formatter)),v.interpolator=new WT(this.options),v.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},v.backendConnector=new XT(a(this.modules.backend),v.resourceStore,v,this.options),v.backendConnector.on("*",function(A){for(var b=arguments.length,I=new Array(b>1?b-1:0),F=1;F<b;F++)I[F-1]=arguments[F];t.emit(A,...I)}),this.modules.languageDetector&&(v.languageDetector=a(this.modules.languageDetector),v.languageDetector.init&&v.languageDetector.init(v,this.options.detection,this.options)),this.modules.i18nFormat&&(v.i18nFormat=a(this.modules.i18nFormat),v.i18nFormat.init&&v.i18nFormat.init(this)),this.translator=new bg(this.services,this.options),this.translator.on("*",function(A){for(var b=arguments.length,I=new Array(b>1?b-1:0),F=1;F<b;F++)I[F-1]=arguments[F];t.emit(A,...I)}),this.modules.external.forEach(A=>{A.init&&A.init(this)})}if(this.format=this.options.interpolation.format,i||(i=hg),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=Zf(),p=o(()=>{let g=o((m,v)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),u.resolve(v),i(m,v)},"finish");if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return g(null,this.t.bind(this));this.changeLanguage(this.options.lng,g)},"load");return this.options.resources||!this.options.initImmediate?p():setTimeout(p,0),u}loadResources(t){let i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hg,r=Be(t)?t:this.language;if(typeof t=="function"&&(i=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode"&&(!this.options.preload||this.options.preload.length===0))return i();let a=[],s=o(l=>{if(!l||l==="cimode")return;this.services.languageUtils.toResolveHierarchy(l).forEach(p=>{p!=="cimode"&&a.indexOf(p)<0&&a.push(p)})},"append");r?s(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(u=>s(u)),this.options.preload&&this.options.preload.forEach(l=>s(l)),this.services.backendConnector.load(a,this.options.ns,l=>{!l&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),i(l)})}else i(null)}reloadResources(t,n,i){let r=Zf();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=hg),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"&&wR.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=Zf();this.emit("languageChanging",t);let a=o(u=>{this.language=u,this.languages=this.services.languageUtils.toResolveHierarchy(u),this.resolvedLanguage=void 0,this.setResolvedLanguage(u)},"setLngProps"),s=o((u,p)=>{p?(a(p),this.translator.changeLanguage(p),this.isLanguageChangingTo=void 0,this.emit("languageChanged",p),this.logger.log("languageChanged",p)):this.isLanguageChangingTo=void 0,r.resolve(function(){return i.t(...arguments)}),n&&n(u,function(){return i.t(...arguments)})},"done"),l=o(u=>{!t&&!u&&this.services.languageDetector&&(u=[]);let p=Be(u)?u:this.services.languageUtils.getBestMatchFromCodes(u);p&&(this.language||a(p),this.translator.language||this.translator.changeLanguage(p),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(p)),this.loadResources(p,g=>{s(g,p)})},"setLng");return!t&&this.services.languageDetector&&!this.services.languageDetector.async?l(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(l):this.services.languageDetector.detect(l):l(t),r}getFixedT(t,n,i){var r=this;let a=o(function(s,l){let u;if(typeof l!="object"){for(var p=arguments.length,g=new Array(p>2?p-2:0),m=2;m<p;m++)g[m-2]=arguments[m];u=r.options.overloadTranslationOptionHandler([s,l].concat(g))}else u={...l};u.lng=u.lng||a.lng,u.lngs=u.lngs||a.lngs,u.ns=u.ns||a.ns,u.keyPrefix!==""&&(u.keyPrefix=u.keyPrefix||i||a.keyPrefix);let v=r.options.keySeparator||".",A;return u.keyPrefix&&Array.isArray(s)?A=s.map(b=>`${u.keyPrefix}${v}${b}`):A=u.keyPrefix?`${u.keyPrefix}${v}${s}`:s,r.t(A,u)},"fixedT");return Be(t)?a.lng=t:a.lngs=t,a.ns=n,a.keyPrefix=i,a}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let i=n.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,a=this.languages[this.languages.length-1];if(i.toLowerCase()==="cimode")return!0;let s=o((l,u)=>{let p=this.services.backendConnector.state[`${l}|${u}`];return p===-1||p===0||p===2},"loadNotPending");if(n.precheck){let l=n.precheck(this,s);if(l!==void 0)return l}return!!(this.hasResourceBundle(i,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||s(i,t)&&(!r||s(a,t)))}loadNamespaces(t,n){let i=Zf();return this.options.ns?(Be(t)&&(t=[t]),t.forEach(r=>{this.options.ns.indexOf(r)<0&&this.options.ns.push(r)}),this.loadResources(r=>{i.resolve(),n&&n(r)}),i):(n&&n(),Promise.resolve())}loadLanguages(t,n){let i=Zf();Be(t)&&(t=[t]);let r=this.options.preload||[],a=t.filter(s=>r.indexOf(s)<0&&this.services.languageUtils.isSupportedCode(s));return a.length?(this.options.preload=r.concat(a),this.loadResources(s=>{i.resolve(),n&&n(s)}),i):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";let n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],i=this.services&&this.services.languageUtils||new Eg(DR());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 nu(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:hg,i=t.forkResourceStore;i&&delete t.forkResourceStore;let r={...this.options,...t,isClone:!0},a=new nu(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 Tg(this.store.data,r),a.services.resourceStore=a.store),a.translator=new bg(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(nu,"I18n");var Ag=nu,q=Ag.createInstance();q.createInstance=Ag.createInstance;var qY=q.createInstance,zY=q.dir,YY=q.init,JY=q.loadResources,ZY=q.reloadResources,eJ=q.use,tJ=q.changeLanguage,nJ=q.getFixedT,iJ=q.t,rJ=q.exists,oJ=q.setDefaultNamespace,aJ=q.hasLoadedNamespace,sJ=q.loadNamespaces,cJ=q.loadLanguages;var YF=ie(nb()),JF=ie(lF()),Gg=ie(qF()),Ke=require("@sap-ux/vocabularies-types/vocabularies/UI"),su=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Bg=ie(le());var se=o((e,t,...n)=>{e?t.location?e[t.severity](t.message,{location:t.location,...n}):e[t.severity](t.message,...n):t.location?t.location.range?console.log(`${Bg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Bg.logSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Bg.logSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var $="#/definitions/",_W=[G.v4.FE_TEMPLATE_V4_LIST_REPORT,G.v4.FE_TEMPLATE_V4_ALP,G.v4.FE_TEMPLATE_V4_OBJECT_PAGE,G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE],VW=["sap.fe.core","sap.fe.templates"],ZF="controlProperty",wW="defaultControlProperty",dl=o((e,t)=>t.every(n=>e.includes(n)),"arrayIncludes"),mr=o((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function No(e,t){let n=[],i;if(e&&e.forEach(function(r){try{n.push((0,Gg.parse)(r.fileContent,r.dataSourceUri))}catch(a){return se(t,{severity:G.LogSeverity.Error,message:q.t("ANNOERR"),location:{path:q.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},a),i}}),n.length>0){let r=(0,Gg.merge)(...n);i=(0,JF.convert)(r)}return i}o(No,"parseAndMergeAndConvert");var pl=o(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function Ab(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(Ab,"evaluateCommonLabel");function Wg(e,t){let n=e.value;return e.$target&&(n=Ab(e.$target.annotations,t,n)),n}o(Wg,"getLabelForPropertyPath");function Hg(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=Ab(i.annotations,t,n)),n}o(Hg,"getLabelForDataField");function MW(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 Ab(a.annotations,t,s)}}}else return}o(MW,"getLabel");function zF(e,t,n){let i=Hg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}o(zF,"getTitleForDataField");function Ai(e,t){var s,l,u,p;let n="",i,r,a="";try{let g=MW(e.Label,t);switch(e.$Type){case Ke.UIAnnotationTypes.DataField:n=zF(e,t,g);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:i=Hg(e,t),n=g||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Hg(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=Hg(e,t),n=i||e.Value.path;break;case Ke.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=zF(r,t,g);break;default:break}return n}catch{return n}}o(Ai,"getDataFieldDescription");function dt(e){return e.replace("#","::").replace(/\//g,":2f")}o(dt,"prepareRef");function fa(e){if(e){let t=`${G.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}o(fa,"getPageTypeV2");function Sb(e){if(e.name&&e.name!==G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${G.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===G.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return G.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return G.PageTypeV4.CustomPage}}o(Sb,"getPageTypeV4");function kW(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}o(kW,"getTargetAnnotationName");function ii(e,t){if(!t)return;let n=t.references.find(i=>i.namespace===e);return n||(n=t.references.find(i=>i.alias===e)),n||(n=t.references.find(i=>i.alias.toUpperCase()===e.split("SAP__")[e.split("SAP__").length-1].toUpperCase())),n==null?void 0:n.alias}o(ii,"findAlias");function jW(e){return e.substring(e.lastIndexOf(".")+1,e.length)}o(jW,"getAnnotationFromMetaPath");function UW(e,t,n){var s,l;let i=e[e.length-1],r=jW(i),a=ii(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[a])==null?void 0:l[r]}o(UW,"determineTargetAnnotation");function $W(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?"":"@"}${G.UIVOCABULARY}`);return e}o($W,"adjustKey");function BW(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var m,v;let s=!1,l,u=i.split("/"),p=u.length>1;p&&n&&(n=(m=n.resolvePath(i.substring(0,i.lastIndexOf("/"))))==null?void 0:m.targetType),t=$W(t,u,a);let g=UW(u,n,e);if(g){let A=r===G.FioriElementsVersion.v2?"::":"#";t=kW(g,a).replace("#",A),l=(v=g.fullyQualifiedName)==null?void 0:v.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let A=r===G.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(A)}${A}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}o(BW,"getKeyAndEntityTypeOfReferenceFacet");function e0(e,t,n,i,r=G.FioriElementsVersion.v2,a=!1){var g,m,v;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((g=e.fullyQualifiedName)==null?void 0:g.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(v=e.fullyQualifiedName)==null?void 0:v.split("@")[0],p=t;if(e.$Type!==Ke.UIAnnotationTypes.CollectionFacet&&"Target"in e){let A=pl(e.Target);if(!A){se(i,{severity:G.LogSeverity.Error,message:q.t("NOTARGET",{target:e.Target})});return}let{key:b,entityType:I,stopProcessing:F,namespace:j}=BW(n,l,p,A,r,a);if(F)return;l=b,p=I,u=j}if(l=l.replace(/\//gi,"::"),l)return{key:l,...e.Label&&{label:e.Label.toString()},...e.ID&&{ID:e.ID.toString()},entityType:p,namespace:u}}o(e0,"getSectionFacet");function HW(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}o(HW,"getDecodedPathElement");var Pb=o(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),t0=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=HW(p,n,i);if(r!==void 0&&!a&&l.length-1===u)s[g]=r;else if(!s[g]){if(a)return;s[g]=Pb(l[u+1])}typeof s[g]=="string"&&(!r||u<l.length-1)?s[g]={}:s=s[g]}return s},"resolveManifestPath"),Lo=o((e,t,n,i,r=!1)=>t0(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),n0=o((e,t,n,i,r)=>{t0(e,t,i,r,n)},"setManifestSectionByPathV4");function xb(e){let t,n,i;switch(e.$Type){case Ke.UIAnnotationTypes.DataField:t=pl(e.Value);break;case Ke.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:pl(e.Value);break;case Ke.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${G.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=pl(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=pl(e.Value),n=pl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}o(xb,"getSchemaKeyOfLineItemRecord");function GW(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(GW,"getUIAnnotationTerm");function WW(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?su.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?su.CommunicationAnnotationTerms.Address:void 0}o(WW,"getCommunicationAnnotationTerm");function KW(e,t,n){return GW(e,t,n)||WW(e,t)}o(KW,"getAnnotationTerm");function XW(e,t,n,i,r){var p,g,m,v,A,b,I,F,j,K;let a=ii(G.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(KW(s,a,i)){case Ke.UIAnnotationTerms.Chart:{n[s]={base:G.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:G.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 U=s.split("::");U[U.length-1]=`@${Ke.UIAnnotationTerms.LineItem}`,s=U.join("::")}n[s]={base:G.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:G.FacetBase.Form},n[s].target=(v=t==null?void 0:t.Target)==null?void 0:v.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.DataPoint:{n[s]={base:G.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:G.FacetBase.PresentationVariant},n[s].target=(I=t==null?void 0:t.Target)==null?void 0:I.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ke.UIAnnotationTerms.SelectionPresentationVariant:{n[s]={base:G.FacetBase.SelectionPresentationVariant},n[s].target=(F=t==null?void 0:t.Target)==null?void 0:F.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case su.CommunicationAnnotationTerms.Contact:{n[s]={base:G.FacetBase.Contact},n[s].target=(j=t==null?void 0:t.Target)==null?void 0:j.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case su.CommunicationAnnotationTerms.Address:{n[s]={base:G.FacetBase.Address},n[s].target=(K=t==null?void 0:t.Target)==null?void 0:K.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:G.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",G.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}o(XW,"evaluateTargetAnnotation");function Cb(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}o(Cb,"getAnnotationPathUsingFullyQualifiedName");function Ob(e,t,n,i,r,a=G.FioriElementsVersion.v2,s){var u;let l=e0(e,i,t,s,a,!1);if(l)switch(e.$Type){case Ke.UIAnnotationTypes.ReferenceFacet:{XW(l,e,r,i,t);break}case Ke.UIAnnotationTypes.CollectionFacet:{let p=Cb(i,e.fullyQualifiedName),g=r[l.key]={base:G.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!g.ID&&a===G.FioriElementsVersion.v4&&se(s,{severity:G.LogSeverity.Error,message:q.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{Ob(m,t,n,i,g.facets,a,s)});break}}}o(Ob,"addFacetToConfig");function Kg(e,t,n=G.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let a=ii(G.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=>{Ob(m,t,g,e,r,n,i)})}return r}o(Kg,"getObjectPageHeaderFacets");function Xg(e,t,n=G.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let a=ii(G.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=>{Ob(g,t,p,e,r,n,i)})}return r}o(Xg,"getObjectPageFacets");function Ib(e){var t,n,i,r;if(e[G.ManifestSection.generic]&&Object.keys(e[G.ManifestSection.generic]).length>0||e[G.ManifestSection.ovp]&&Object.keys(e[G.ManifestSection.ovp]).length>0)return G.FioriElementsVersion.v2;{let a=(n=(t=e[G.ManifestSection.ui5])==null?void 0:t.routing)==null?void 0:n.targets,s=(r=(i=e[G.ManifestSection.ui5])==null?void 0:i.dependencies)==null?void 0:r.libs;return a&&Object.keys(a).find(l=>_W.indexOf(a[l].name)>-1)||s&&Object.keys(s).find(l=>VW.indexOf(l)>-1)?G.FioriElementsVersion.v4:void 0}}o(Ib,"getFEVersionFromManifest");function QW(e){var n,i,r,a;let t=typeof((n=e==null?void 0:e[G.ManifestSection.ovp])==null?void 0:n.globalFilterModel)=="string"?e[G.ManifestSection.ovp].globalFilterModel:"";return typeof((a=(r=(i=e==null?void 0:e[G.ManifestSection.ui5])==null?void 0:i.models)==null?void 0:r[t])==null?void 0:a.dataSource)=="string"?e[G.ManifestSection.ui5].models[t].dataSource:void 0}o(QW,"getMainService");function i0(e){var i,r;let t=QW(e);if(!t)return G.OdataVersion.v2;let n=(i=e[G.ManifestSection.app].dataSources)==null?void 0:i[t];return((r=n==null?void 0:n.settings)==null?void 0:r.odataVersion)==="4.0"?G.OdataVersion.v4:G.OdataVersion.v2}o(i0,"getODataVersionFromManifest");function qW(e,t){var i,r;let n;if(e[G.ManifestSection.generic]){let a=e[G.ManifestSection.generic].pages;if(!a){se(t,{severity:G.LogSeverity.Error,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return}for(let s in a){let l=a[s];if(fa((i=l.component)==null?void 0:i.name)===G.PageTypeV2.AnalyticalListPage){n=G.TemplateType.AnalyticalListPageV2;break}else if(fa((r=l.component)==null?void 0:r.name)===G.PageTypeV2.ListReport){n=G.TemplateType.ListReportObjectPageV2;break}}}else n||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.generic}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.generic]}});return n}o(qW,"determineV2Template");function cu(e){var i,r,a,s;let t,n=Sb(e);if(n===G.PageTypeV4.AnalyticalListPage)t=G.TemplateType.AnalyticalListPageV4;else if(n===G.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[G.ALPViewType.Primary]||l[G.ALPViewType.Secondary])?t=G.TemplateType.AnalyticalListPageV4:t=G.TemplateType.ListReportObjectPageV4}else n===G.PageTypeV4.ObjectPage?t=G.TemplateType.ListReportObjectPageV4:[G.PageTypeV4.CustomPage,G.PageTypeV4.FPMCustomPage].includes(n)&&(t=G.TemplateType.FreestylePageV4);return t}o(cu,"determineV4PageTemplateType");function zW(e){let t;for(let n in e){let i=e[n];if(t=cu(i),t)break}return t}o(zW,"determineV4TemplateFromPages");function YW(e,t){let n=e[G.ManifestSection.ui5].routing&&e[G.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return se(t,{severity:G.LogSeverity.Info,message:q.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing"]}}),G.TemplateType.ListReportObjectPageV4;let i=zW(n);return i||se(t,{severity:G.LogSeverity.Error,message:q.t("NOTEMPLATE",{section:G.ManifestSection.ui5}),location:{path:G.MANIFESTPATH,range:[G.ManifestSection.ui5,"routing","targets"]}}),i}o(YW,"determineV4Template");function Nb(e,t,n){let i;return e[G.ManifestSection.ovp]?i=G.TemplateType.OverviewPageV2:t===G.FioriElementsVersion.v2?i=qW(e,n):t===G.FioriElementsVersion.v4&&(i=YW(e,n)),i}o(Nb,"getTemplateTypeFromManifest");function ua(e,t,n){e!=null&&e.ID?(t.title=G.FACETTITLEPREFIX+e.ID,t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[G.SchemaTag.keys]=[{name:G.SchemaKeyName.id,value:n.replace(G.UIVOCABULARYALPHADOT,"")}])}o(ua,"addSectionTitle");function Wa(e,t,n){e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}o(Wa,"addSectionDescription");function gl(e,t,n){var i,r;ua(e,t,n),Wa(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(gl,"addTargetTitleAndSectionDescription");function r0(e,t){var n;e!=null&&e.ID&&((n=t.description)!=null&&n.startsWith("Chart#"))&&(t.description=e.ID)}o(r0,"addChartFacetID");function Ro(e,t,n){let i={type:"object",properties:{},additionalProperties:!1};return i[G.SchemaTag.isViewNode]=!0,i[G.SchemaTag.annotationPath]=t.annotationPath,gl(t,i,n),i}o(Ro,"createDefaultSection");function o0(e,t,n,i=G.FioriElementsVersion.v2,r=!1){var l,u;let a=ii(G.UIVOCABULARY,t),s=[];if(e){let p=a&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[a])==null?void 0:u.Facets);return p&&(s=p.reduce(function(g,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return g;let v=e0(m,e,t,n,i,!0);return v&&g.push(v),g},s)),s}}o(o0,"getObjectPageFacetSection");var Ka=o((e,t,n,i,r,a)=>{if(!t)return;let s=e,l=t.split("/");l.forEach(function(u){let p=a&&a===u?r:u.replace(/\?\?/g,"/");if(!(!s[p]&&(a===u&&(p=a),!s[p]))){if(Object.keys(s[p]).length===0||i&&i[i.length-1]===p&&n){Array.isArray(s)?s.splice(Number(p),1):delete s[p],l.pop(),Ka(e,l.join("/"),n,i,r,a);return}s=s&&s[p]}})},"deleteEmptyStructure"),Eb=o(e=>e===G.SchemaType.FreestylePage?G.PageTypeV2.CustomPage:e===G.SchemaType.FPMCustomPage?G.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),_t=o((e,t,n)=>{let i={filename:"",path:""};switch(e){case G.SchemaType.Application:{i.filename="App",i.path=`./${G.DirName.Schemas}/${i.filename}`;break}case G.SchemaType.ListReport:case G.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:Eb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}case G.PageTypeV4.FPMCustomPage:case G.SchemaType.FPMCustomPage:{i.filename=n?`${G.SchemaType.FPMCustomPage}_${n}`:Eb(G.SchemaType.FPMCustomPage),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}default:{i.filename=Eb(e),i.path=`../${G.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Qg(e,t,n,i){if(e===G.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(Qg,"generatePageId");function Lb(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(Lb,"findMatchingKeysByAdditionalProperties");function JW(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[ZF];if(l)r.includes(n[l])&&i.push(a),n[l]===void 0&&s[wW]&&i.push(a);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=Lb(t,s.additionalProperties,n);(u.some(g=>g in n)||p.length||Object.keys(n).length===0&&u.length)&&i.push(a)}}}o(JW,"fillArrayFromAnyOfReference");function ZW(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split($)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{JW(r,n,t,i)}),i.length===0))return;return i}o(ZW,"fillArrayFromPropertyDefinition");function e8(e,t,n,i,r,a,s,l){var p,g,m,v;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let A=e[e.length-1];if(u.targetDefinition=t.definitions[A],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((g=u==null?void 0:u.targetDefinition)==null?void 0:g.type)==="array")return u=Fo(t,n,i,u.targetDefinition,r,a,s),u;e.length>1&&e.forEach(F=>{F!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[F].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let b=A==null?void 0:A.split("<")[0],I=i||{};u.configObject=a.createInstance(s,b,I,(v=u==null?void 0:u.targetDefinition)==null?void 0:v[ZF])}else u.targetDefinition=l,u.title=u.targetDefinition.title?u.targetDefinition.title:r,u.configObject=i;return u}o(e8,"determineNextDefinitionFromDefinitionArray");function Fo(e,t,n,i,r,a,s){let l;if(i.type==="array")return l=Fo(e,t,n,i.items,r,a,s),l;let u=ZW(i,n,e);if(u)return l=e8(u,e,t,n,r,a,s,i),l}o(Fo,"getNextTargetDefinition");var Rb=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,YF.default)(e[a],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function qg(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}o(qg,"convertEnumToCSV");function zi(e){return e?(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::"):""}o(zi,"convertActionKeyToStableId");function yn(e){return e==null?void 0:e.split($)[1]}o(yn,"getDefinitionKey");function a0(e){return`#/definitions/${e}`}o(a0,"getDefinitionsRef");function zg(e){return e instanceof Error?e.message:String(e)}o(zg,"getErrorMessage");function Js(e,t){return e==null?void 0:e.includes(t)}o(Js,"isFeatureSupported");function Do(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}o(Do,"updatePropertyIndices");function Yg(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(Yg,"getJSONPropertyByPath");function s0(e){return e=e.replace(G.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}o(s0,"removeNamespaces");function ml(e){return e=e.replace(G.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}o(ml,"replaceNamespaces");var Ao=require("@sap-ux/vocabularies-types/vocabularies/UI"),oe=ie(le());var Yi=ie(le());var Yt=o((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Jg=o((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Qn=o((e,t)=>{let n,i=Yi.FACETTITLEPREFIX;return t!==void 0&&t.includes(i)?n=t.split(i)[1]:n=e.replace(new RegExp("/@","g"),"::").replace(/@com.sap/g,"com.sap"),n},"convertSectionId");function t8(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(t8,"escapeId");var c0=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(c0||{}),l0=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(l0||{});function n8(e,t,n){let i;return e=e.map(function(r){if(r===Yi.PropertyName.sections){for(let a=0;a<t.length;a++)if(t[a]===Yi.PropertyName.sections)return i=t[a+1],t[a+1]=Qn(i,n)+"::Table",t[a+1]}return r}),{idBreadcrumbs:e}}o(n8,"mapBreadcrumbs");var Fb=o((e,t,n,i,r)=>{let a="listReport",s=[...n];({idBreadcrumbs:t}=n8(t,s,r)),s[0]===Yi.PropertyName.sections?a=s[1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH):t[0]===Yi.PropertyName.table&&(a=t[0]);let u=s[s.length-1].replace(/::com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,Yi.VOCWITHSLASH).replace("sTarget/@","sTarget::@"),p,g=u.indexOf(":::");return u.startsWith("DataField")&&g>-1?(u=u.replace("/",":2f"),p=`${e}template:::TableColumn:::${u.substring(0,g)}:::sSmartTableId::${a.replace("::Table",":3a:3aTable")}:::${u.substring(g+3)}`):(u=u.replace("/","_"),p=`${e}${t.join("::")}-${u}`),t8(p)},"buildColumnControlId"),Ji=o(e=>{let t=e[e.length-1].split(":::"),n,i,r;return t.length>2?(n=t[0],i=t[1].split("::")[1],r=t[2].split("::")[1]):t.length===2?(n=t[0],r=t[1].split("sAction::")[1]):r=t[0],{actionType:n,semanticObjectId:i,actionId:r}},"getActionBreadcrumbParts");function i8(e){let t=Yi.BINDINGPROPERTYREGEXSTRING;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}o(i8,"determinePattern");var Db=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=i8(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(g=>{s.enum.indexOf(g)===-1&&s.enum.push(g)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete a.description)},"addPatternForBindingChangeOfEnum"),qn=o((e,t,n)=>{Db(e,t,n)},"addPatternForBindingChangeOfEnumLR"),mt=o((e,t,n)=>{let i=Object.values(c0);Db(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),ri=o((e,t,n)=>{let i=Object.values(l0);Db(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function Zs(){}o(Zs,"doNotDelete");var iZ=ie(u0());var p0=Symbol("specificationMetadataKey"),y=o(e=>Reflect.metadata(p0,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(p0,e,t)),n}o(zn,"getReflectMetadata");var jr=o(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),d0=Symbol("childId"),Ut=o(e=>Reflect.metadata(d0,e),"childId"),Zg=o((e,t)=>Reflect.getMetadata(d0,e,t),"getChildId"),em=o(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),r8=Symbol("descriptionSrcURL"),fe=o(e=>Reflect.metadata(r8,e),"descriptionSrcURL");var o8=Symbol("validityMetadataKey"),x=o(e=>Reflect.metadata(o8,e),"validity");function tm(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(tm,"getTextForDeprecated");var E0=ie(T0()),A0=ie(le());var S0=E0.default.change,b0={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function P0(e,t){let n="";try{for(let i in b0)e[i]===void 0&&(e[i]=b0[i]);n=S0.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}o(P0,"createChangeString");function ro(e){try{return S0.parse(e)}catch{return!1}}o(ro,"parseChangeString");function x0(e,t,n,i,r){let a=n.layer?n.layer===A0.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(x0,"fillFlexChangeContent");function C0(e,t){return P0(e,t)}o(C0,"exportToFlexChange");var ec=ie(le());function hl(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(hl,"importProperty");function nm(e,t,n,i){if(t&&e)for(let r in t){let a=e[r];a&&(se(i,{severity:ec.LogSeverity.Warning,message:tm(r,a),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}o(nm,"checkDeprecatedProperties");function _b(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split($)[1]];return _b(n,t)}else return e.title?e.title.startsWith(ec.FACETTITLEPREFIX)?e.title.split(ec.FACETTITLEPREFIX)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}o(_b,"getSectionTitle");function im(e){let t=e.split(`${ec.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}o(im,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}o(_o,"removeEmptyStructure");var $t=require("@sap-ux/vocabularies-types/vocabularies/UI");var pa=require("@sap-ux/vocabularies-types/vocabularies/UI");function rm(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(rm,"replaceSpecialChars");var tc=o(function(e){return rm(s0(e))},"prepareId");function p8(e){let t="";for(let n of e.$Apply)n.Path&&(t&&(t+="::"),t+=n.Path);return t}o(p8,"evaluateConcat");function nc(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 p8(e);if(e&&typeof e=="string")return rm(e.replace(/ /g,"_"))}o(nc,"getStableIdPartFromValue");var O0=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"),da=o(function(e){let t="";if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=O0(e),t;if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=tc(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=nc(e.Value)+"::"),t+=e.Action,tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataField)return t="DataField::",t+=nc(e.Value),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=nc(e.Value)+"::",t+=O0(e),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=nc(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),tc(t);if(e.$Type&&e.$Type===pa.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=nc(e.Value),tc(t)},"getStableIdPartFromDataField");var ge=ie(le());var De=ie(le());var Zi=require("@sap-ux/vocabularies-types/vocabularies/UI"),R0=require("path"),F0=ie(zs());var om="ResponsiveTableWithMultiSelect<LineItems>",am="ResponsiveTableWithInlineDelete<LineItems>",d8="TreeTable<LineItems>",g8="AnalyticalTable<LineItems>",m8="GridTable<LineItems>",Vb=[om,am,d8,g8,m8],I0=["ALPResponsiveTable<LineItems>","ALPGridTable<LineItems>","ALPAnalyticalTable<LineItems>"],N0="template::",sm="template:::ObjectPageAction:::";function h8(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(h8,"addCustomColumnDefinition");function y8(e,t){let n;return e==="TableColumnActionIntentBased"?n=xb(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=dt(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n=dt(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=dt(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}o(y8,"getActionId");function wb(e,t,n,i,r){let a,s=n.lineItemId===De.DefinitionName.LineItems?"":"ObjectPage",l=y8(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(a="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?a="TableColumnAction":(a=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=Ai(n.lineItemRecord,n.entityType);t.properties[l]={$ref:$+u},t.properties[l][De.SchemaTag.propertyIndex]=r;let{key:g,ns:m}=ic(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(wb,"handleActionRecord");function v8(e,t,n){e!==De.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Zi.UIAnnotationTypes.DataFieldForAction||t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}o(v8,"getColumnActionType");function T8(e,t){let n=[];if(!(e.$Type!==Zi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Zi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),v8(t,e,n),n}o(T8,"getActionType");function D0(e,t,n){let i=xb(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:$+De.DefinitionName.TableColumn,description:Ai(e.lineItemRecord,e.entityType)},r.properties[i][De.SchemaTag.propertyIndex]=n,r.properties[i][De.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,gm(r.properties[i],e.lineItemRecord),mm(e.lineItemRecord,r.properties,i)}}o(D0,"generateGenericColumn");function b8(e,t,n,i,r,a,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{wb(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{a&&wb(t,a,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{wb(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":D0(i,t,r)}}o(b8,"handleAnyAction");function lu(e,t){let n=t.value;return n.includes(De.UIVOCABULARYALPHADOT+e)?n.replace(De.UIVOCABULARYALPHADOT,""):""}o(lu,"retrieveNameWithoutVocabularyFromVisualization");function yl(e,t,n,i,r,a){r=r||De.DefinitionName.LineItems;let{actions:s,footerActions:l,lineItemPath:u}=dm(e,t,n,i,r);if(n){let p=0;n.forEach(g=>{let m={lineItemPath:u,lineItemRecord:g,lineItemId:r,entityType:i},v=T8(g,r);v?v.forEach(A=>{b8(A,t,s,m,p,l,r)}):D0(m,t,p),p++})}a&&(t.definitions[r].properties.custom={$ref:`${$}${a}`})}o(yl,"addLineItemsType");function E8(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(E8,"addListReportLeadingProperties");function A8(e,t,n,i){var s,l,u,p,g,m;let r=(l=(s=e.definitions[t])==null?void 0:s.properties)==null?void 0:l.tabKey;if(!n){i&&(r.description="In case of Object Page, the tabkey in manifest is equivalent to the facet ID.",r.enum=[i]);return}let a=(g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:g.variants;if(a){let v=[];for(let A in a){let b=(m=a[A])==null?void 0:m.key;b!==void 0&&!v.includes(b)&&v.push(b)}ga(v,r)}}o(A8,"addTabkeyEnum");function cm(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,F0.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("\\"+R0.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");a.push(m)}}}),ga(a,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}o(cm,"addFragmentEnum");function vl(e,t,n,i,r,a=De.DefinitionName.CustomColumns,s=De.DefinitionName.CustomColumn,l){h8(e,a,s),E8(e,t,s),A8(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;cm(e,r,u,"fragmentName",s),cm(e,r,u,"fragmentName",De.DefinitionName.CustomColumn),cm(e,r,u,"cellsFragmentName",s),cm(e,r,u,"cellsFragmentName",De.DefinitionName.CustomColumn)}o(vl,"addTableColumnExtensions");function _0(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}o(_0,"removeElementsFromEnum");function lm(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=mr(n==null?void 0:n.fullyQualifiedName,Zi.UIAnnotationTerms.SelectionFields);if(r&&(i[De.SchemaTag.annotationPath]=r),!t)return;let a=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${dt(s.value)}>`,p=oo(s);s.type==="PropertyPath"&&(l=Wg(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(lm,"addSelectionFields");function V0(e,t){for(let n of t.entityProperties)e.push(n.name)}o(V0,"addEntityPropertiesToEnum");function fm(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(fm,"isDraftEnabled");function w0(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(w0,"isEntityDeletable");function M0(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(M0,"isEntityUpdatable");function Tl(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(Tl,"addStandardHeaderActions");function k0(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(k0,"addStandardFooterActionsOP");function um(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(um,"getUIAnnotationForEntitySet");function pm(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(pm,"hasPropertyTypeError");function S8(e,t,n,i){if(e===ge.FioriElementsVersion.v4&&t.definitions.Field)switch(n.$Type){case $t.UIAnnotationTypes.DataField:case $t.UIAnnotationTypes.DataFieldForAnnotation:case $t.UIAnnotationTypes.DataFieldWithNavigationPath:case $t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}else if(e===ge.FioriElementsVersion.v2&&t.definitions.Field)switch(n.$Type){case $t.UIAnnotationTypes.DataField:case $t.UIAnnotationTypes.DataFieldForAnnotation:case $t.UIAnnotationTypes.DataFieldWithUrl:{t.definitions[i].properties=t.definitions.Field.properties;break}}}o(S8,"copyFieldProperties");function P8(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(P8,"determineFieldDefinitionName");function x8(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(x8,"addKeysTagForDataField");function C8(e,t,n){if(e.$Type===$t.UIAnnotationTypes.DataField||e.$Type===$t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===$t.UIAnnotationTypes.DataFieldWithNavigationPath)x8(e,t,n);else if(e.$Type===$t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][ge.SchemaTag.keys]=[{name:"Target",value:ml(e.Target.value)}],t.definitions[n][ge.SchemaTag.target]=e.Target.$target.fullyQualifiedName.split("@")[0];else if(e.$Type===$t.UIAnnotationTypes.DataFieldForAction){let i=e.Action.lastIndexOf(".");i===-1?t.definitions[n][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===$t.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(C8,"addKeysTagToField");function O8(e){var t,n;return e.$Type===$t.UIAnnotationTypes.DataFieldForAnnotation&&((n=(t=e.Target)==null?void 0:t.$target)==null?void 0:n.$Type)===$t.UIAnnotationTypes.ConnectedFieldsType}o(O8,"isConnectedField");function I8(e,t,n,i,r){let a=n.Target.$target,s={};if(a.$Type===$t.UIAnnotationTypes.ConnectedFieldsType){let u=(a.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=a.Data,g=u.length;for(let m in p){let v=p[m];if(typeof v=="object"&&"$Type"in v){let A=u.findIndex(b=>b===m);A===-1&&(A=g,g++),Mb(e,t,v,`ConnectedFields::${a.qualifier}`,A.toString(),i,r,void 0,{actions:s,fields:s},a.fullyQualifiedName.split("@")[0])}}}return s}o(I8,"addConnectedFields");function j0(e,t,n){if(n)return n;let i=dt(t);return e.definitions[i].properties}o(j0,"getFieldsSchemaContainer");function Mb(e,t,n,i,r,a,s,l=!0,u={},p=a.entityType.fullyQualifiedName){var b;let g=da(n),m=s===ge.FioriElementsVersion.v2&&g&&g.includes("::")?g.split("::").splice(1).join("::"):g,v=P8(s,g,i,m),A={};if(!(!n||!n.$Type)){if(n.$Type===$t.UIAnnotationTypes.DataFieldForAction||n.$Type===$t.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===ge.SectionType.Section){let I=j0(t,`${e}${ge.DefinitionName.Actions}<${i}>`,u.actions),F=I[m]={$ref:`${$}${v}`};F[ge.SchemaTag.propertyIndex]=parseInt(r)}}else{let I=j0(t,`${e}${ge.DefinitionName.Fields}<${i}>`,u.fields);I[m]={$ref:`${$}${v}`,propertyIndex:parseInt(r)},O8(n)&&(A=I8(e,t,n,a,s))}t.definitions[v]={type:"object",properties:A,description:Ai(n,a.entityType),additionalProperties:!1},C8(n,t,v),t.definitions[v][ge.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[v][ge.SchemaTag.annotationType]=n.$Type,t.definitions[v][ge.SchemaTag.isViewNode]=!0,gm(t.definitions[v],n),S8(s,t,n,v),n.$Type===$t.UIAnnotationTypes.DataFieldForAction&&((b=t.definitions)!=null&&b.FormAction)&&(t.definitions[v].$ref=`${$}${ge.DefinitionName.FormAction}`,delete t.definitions[v].properties)}}o(Mb,"addField");function N8(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(N8,"determineTargetIdOfForm");function L8(e,t,n,i,r,a){if(e.base===ge.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&Mb(t,n,l,i,s,e,r,a)}else for(let s in e.target.Data){let l=e.target.Data[s];Mb(t,n,l,i,s,e,r)}}o(L8,"addFieldsToFormDefinition");function R8(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]=mr(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}o(R8,"addTagsToFormDefinition");function hm(e,t,n,i,r,a){if(!t.target)return;let s=N8(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},R8(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][ge.SchemaTag.isViewNode]=!0,L8(t,e,i,s,r,g),s}o(hm,"handleForm");function kb(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(kb,"replaceAlias");function ym(e,t){let n=kb(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(ym,"getActionNameAndId");function U0(e,t){var n,i;for(let r in e){let a=e[r];return((n=a.component)==null?void 0:n.name)===ge.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===a.entitySet:U0(a.pages,t)}}o(U0,"isFirstObjectPage");function vm(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=ii(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 v=p.fullyQualifiedName.replace(`@${$t.UIAnnotationTerms.Identification}`,`/@${$t.UIAnnotationTerms.Identification}`);a[ge.SchemaTag.annotationPath]=`/${v}`,i(u,e,a,p)}else u&&(a[ge.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${$t.UIAnnotationTerms.Identification}`);n===ge.FioriElementsVersion.v2&&U0(r,t)&&!fm(l)&&k0(e,a),delete e.definitions[ge.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${ge.DefinitionName.ObjectPageFooter}<${ge.DefinitionName.ObjectPageFooterActions}>`]}o(vm,"addFooterActions");function Tm(e,t,n,i,r,a=!1){var m,v;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=ii(ge.UIVOCABULARY,n.serviceAVT),g=p&&((v=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:v.Identification);g?u[ge.SchemaTag.annotationPath]="/"+g.fullyQualifiedName.replace(`@${$t.UIAnnotationTerms.Identification}`,`/@${$t.UIAnnotationTerms.Identification}`):t&&(u[ge.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${$t.UIAnnotationTerms.Identification}`),i(t,e,g,u,n,r),a&&Tl(e,!0,l)}o(Tm,"addHeaderActions");function bm(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}/@${$t.UIAnnotationTerms.HeaderInfo}`)}o(bm,"addCommonHeaderSchema");function $0(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}o($0,"determineEntitySetOfEntityType");var hr=require("@sap-ux/vocabularies-types/vocabularies/UI");var et=ie(le());function ga(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}o(ga,"addEnumToSchema");function fu(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)}}ga(r,n)}o(fu,"addEnumForValidAnnotations");function Xa(e,t,n){let i=t.definitions[n].properties[et.SchemaTag.annotationPath],r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];fu(e,r,i)}o(Xa,"addEnumForSingleTabVariant");function B0(e,t,n){var a;let i=(a=e.definitions[t])==null?void 0:a.properties.annotationPath,r=[hr.UIAnnotationTerms.SelectionVariant,hr.UIAnnotationTerms.SelectionPresentationVariant];fu(n.entityType,r,i)}o(B0,"addEnumForMultiTabVariant");function H0(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(a=>{r.push(a.name)}),ga(r,i)}o(H0,"addEnumForVariantEntitySet");function G0(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[hr.UIAnnotationTerms.FieldGroup];fu(e,r,i)}o(G0,"addEnumFieldGroupAnnotationPath");function W0(e,t,n,i){let r=n.map(a=>{let s=i.find(p=>!!a[p]),l=a[s],u=a.label||a.title;return{const:l,...u&&{description:u},...a.custom&&{custom:a.custom}}});if(r.length){e.definitions[et.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let a of t){let s=e.definitions[a],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${$}${et.DefinitionName.RelatedFacetKeys}`},l]}}}}o(W0,"addDefinitionForRelatedFacetKeys");function rc(e){return e.replace("#","::")}o(rc,"getFacetKeyInSchema");function Am(e,t){return`${e}<${rc(t)}>`}o(Am,"getFacetDefinitionKey");function bt(e,t,n,i=!0){let r=t;if(i&&(r=Am(e,t)),e&&e!==r)try{let a=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[r]=a}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"parseSchemaDefinition",definition:e}))}return n.definitions[r]}o(bt,"parseSchemaDefinition");function Em(e,t,n){let i;return t===et.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${hr.UIAnnotationTerms.LineItem}`?i=`${$}${n}`:(i=`${$}${n}<${t}>`,bt(n,t,e,!0)),i}o(Em,"getCustomExtensionDefinitionName");function dm(e,t,n,i,r,a,s){let l;if(t.definitions[r]={type:"object",properties:{},description:"Columns"},t.definitions[r][et.SchemaTag.isViewNode]=!0,t.definitions[r].additionalProperties=!1,a){let I=Em(t,r,a);t.definitions[r].additionalProperties={$ref:I}}let u=e?et.DefinitionName.ObjectPageToolBar:et.DefinitionName.ToolBar,p=`${u}<${r}>`;try{t.definitions[p]=JSON.parse(JSON.stringify(t.definitions[`${u}`]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${u}`}))}let g=`${et.DefinitionName.Actions}<${dt(r)}>`;t.definitions[p].properties.actions.$ref=$+g;let m=r.startsWith(et.DefinitionName.LineItems)?et.DefinitionName.Actions:et.DefinitionName.ObjectPageToolBarActions,v;try{if(v=t.definitions[g]=JSON.parse(JSON.stringify(t.definitions[m])),v.properties={},v.additionalProperties=!1,s){let I=Em(t,r,s);v.additionalProperties={$ref:I}}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:`${m}`}))}let A,b;if(r===et.DefinitionName.LineItems&&t.properties.footer){b=`${et.DefinitionName.Footer}<${r}>`,t.properties.footer.$ref=`${$}${b}`;try{t.definitions[b]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.GenericFooter]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addCommonLineItemDefinitions",definition:et.DefinitionName.GenericFooter}))}let I=`${et.DefinitionName.FooterActions}<${dt(r)}>`;t.definitions[b].properties.actions.$ref=$+I,A=t.definitions[I]=JSON.parse(JSON.stringify(t.definitions[et.DefinitionName.Actions])),A.properties={},A.additionalProperties=!1}return n&&(l=mr(i==null?void 0:i.fullyQualifiedName,n.term,n.qualifier),l&&(t.definitions[p][et.SchemaTag.annotationPath]=l,A&&(t.definitions[b][et.SchemaTag.annotationPath]=l))),{actions:v,footerActions:A,lineItemPath:l}}o(dm,"addCommonLineItemDefinitions");function K0(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}o(K0,"getDataTypeFromAnnotation");function oc(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=K0(e.$Type)),t}o(oc,"determineDataTypeOfTarget");function oo(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=oc((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=K0(e.$Type):e.type&&(t=e.type),t}catch{return t}}o(oo,"determineDataType");function gm(e,t){let n=oo(t);n&&(e[et.SchemaTag.dataType]=n)}o(gm,"addDataTypeToDefinition");function Si(e,t){return`${$}${Am(e,t)}`}o(Si,"getFacetDefinitionLink");function Qa(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${$}${i}`}o(Qa,"addDefinitionRef");function Sm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${et.UIVOCABULARY}`);t=`/${n}/@${et.UIVOCABULARY}${i}`}return t}o(Sm,"getFacetAnnotationPath");function uu(e,t,n,i,r,a,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${a}${e.base}${s}`;n.properties[t]={$ref:Si(a?u:l,t)};let p=bt(a?u:l,t,i,!0);ua(e,p,t),Wa(e,p,t),p[et.SchemaTag.annotationPath]=e.annotationPath,p[et.SchemaTag.isViewNode]=!0}o(uu,"handleAddressContact");function jb(e,t,n){typeof e=="object"&&(e[t]=n)}o(jb,"updateSchemaProperty");function bl(e,t,n=dt("")){let i=t.entityProperties.map(a=>a.name),r=e.definitions[`${et.DefinitionName.Fields4Dialog}${n}`];jb(r.properties.fields.items,"enum",i)}o(bl,"addFieldsType");function F8(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}o(F8,"findFirstSchemaDefinitionKey");function Pm(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=F8(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(Pm,"getEnumEntry");function qa(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=Pm(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];jb(l,"oneOf",r)}else jb(a,"oneOf",r)}o(qa,"addDescriptiveEnumDefinition");function ic(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(ic,"getActionKey");function mm(e,t,n){var i,r,a;try{if(e.Value)t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.value,value:nc(e.Value)}];else if(e.$Type===hr.UIAnnotationTypes.DataFieldWithAction||e.$Type===hr.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=ic(e.Action,!0);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.action,value:s}],l&&(t[n][et.SchemaTag.target]=l)}else if(e.$Type===hr.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=ic(e.Target.value,!1);t[n][et.SchemaTag.keys]=[{name:et.SchemaKeyName.target,value:ml(s)}],t[n][et.SchemaTag.target]=(a=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:a.split("@")[0]}else if(e.$Type===hr.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===hr.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=ic(s,!0);t[n][et.SchemaTag.keys]=[{name:"SemanticObject",value:e[et.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][et.SchemaTag.target]=u)}}catch{return}}o(mm,"addKeyToDefinition");var El=ie(le());var X0=[{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 q0="1.124.14";var z0={name:"@sap/ux-specification",version:q0,displayName:"SAP Fiori tools - Specification",description:"SAP Fiori tools - Specification",files:["dist","CHANGELOG.md","!dist/scripts"],main:"dist/index-min.js",engines:{node:">= 18.0.0 < 19.0.0 || >= 20.0.0 < 21.0.0 || >= 22.0.0",yarn:">=1.22.19 < 2"},scripts:{"clean:before":"rimraf ./dist ./types ./schemas","clean:doc":"rimraf ./dist/documentation",compile:"tsc --project ./tsconfig.build.json","compile:watch":"tsc --build ./tsconfig.build.json --pretty --watch",bundle:"node esbuild","bundle:dev":"node esbuild --minify=false","bundle:watch":"node esbuild --watch --stats --minify=false",build:"npm-run-all -l -s clean:before -s compile -p create-json-schemas macros copy-templates -p copy-json-schemas htmlV2 htmlV4 -s bundle","build:dev":"npm-run-all -l -s clean:before -s compile -p create-json-schemas copy-templates -s copy-json-schemas bundle:dev","build:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle","build:schemas":"npm-run-all -l -s create-json-schemas copy-json-schemas","build:snap":"yarn build:dev && yarn update-snapshots","create-json-schemas":"ts-node ./scripts/to-json-schema.ts ","copy-json-schemas":'copyfiles "./schemas/**" ./dist',"copy-templates":"copyfiles --flat src/sync/v2/export/templates/** dist/templates",deleteSnapshots:"rimraf **/_file_snapshots_",docuV2:"ts-node ./scripts/extractDocu.ts --version=v2 format=excel",docuV4:"ts-node ./scripts/extractDocu.ts --version=v4 format=excel",htmlV2:"ts-node ./scripts/extractDocu.ts --version=v2 --format=html",htmlV4:"ts-node ./scripts/extractDocu.ts --version=v4 --format=html",lint:"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple","lint:report:jslint":"eslint . --ext .ts -o reports/lint/eslint.jslint.xml -f jslint-xml",macros:"ts-node ./scripts/macros/index.ts",test:"jest && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","test:ci":"jest --ci --forceExit --detectOpenHandles && node ../../scripts/scov.js reports/test/unit/coverage/lcov.info","update-snapshots":"jest --updateSnapshot",watch:"npm-run-all -l -s clean:before -p compile create-json-schemas macros copy-templates -p copy-json-schemas -s bundle:watch","watch:doc":"npm-run-all -l -s clean:doc -s compile -p htmlV2 htmlV4 -s bundle:watch"},publisher:"SAPSE",license:"SEE LICENSE IN LICENSE",dependencies:{"@sap-ux/fe-fpm-writer":"0.33.19","@sap-ux/vocabularies-types":"0.12.0"},devDependencies:{"@sap-ux/annotation-converter":"0.10.3","@sap-ux/edmx-parser":"0.8.2","@sap/ux-specification-types":"1.124.14","@sapui5/types":"latest-1.124","@types/d3":"7.4.3","@types/jquery":"3.5.31","@types/mem-fs-editor":"7.0.7","@ui5/flexibility-utils":"0.1.3","@xml-tools/ast":"5.0.5","@xml-tools/parser":"1.0.11",axios:"1.8.4",copyfiles:"2.4.1",d3:"7.9.0",deepmerge:"4.3.1",ejs:"3.1.10",excel4node:"1.8.2",i18next:"23.16.8",jquery:"3.7.1",jsdom:"25.0.1","lodash.unset":"4.5.2","mem-fs-editor":"9.7.0",path:"0.12.7","reflect-metadata":"0.2.2",semver:"7.7.1","typescript-json-schema":"0.57.0","xml-js":"1.6.11"},husky:{hooks:{"pre-commit":"lint-staged"}},"lint-staged":{},jestSonar:{reportFile:"test-report.xml",reportPath:"reports/test/unit"},"eslint-formatter-multiple":{formatters:[{name:"stylish",output:"console"},{name:"json",output:"file",path:"reports/lint/eslint.json"},{name:"checkstyle",output:"file",path:"reports/lint/eslint.checkstyle.xml"}]}};var za=class za{constructor(){za.distTagsOfSpec.length===0&&(za.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){za.distTagsOfSpec=[]}getSpecVersion(){return q0}getDistTagsOfVersion(){let t=[],n=X0,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("."));za.distTagsOfSpec.findIndex(l=>l.endsWith(s))>-1&&(r=!0)}),!r){let a=q.t("WRONGMINUI5VERSION",{minUI5Version:t});se(n,{severity:El.LogSeverity.Warning,message:a,location:{path:El.MANIFESTPATH}})}}checkVersionName(t,n){if(!t||t.startsWith("$")){let i=q.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});return se(n,{severity:El.LogSeverity.Info,message:i,location:{path:El.MANIFESTPATH}}),!1}else return!0}};o(za,"DistTagEvaluator"),za.distTagsOfSpec=[];var pu=za;var ue=ie(le());var _n=ie(le());var Pi=ie(le());function Y0(e){let t="";return"view"in e&&(t=e.view.name??""),t}o(Y0,"getCustomPageFullName");function V8(e){let n=Y0(e).split(".");return n[n.length-1]}o(V8,"getCustomPageName");function J0(e,t){var i,r;return((i=e==null?void 0:e.view)==null?void 0:i.viewType)||((r=t.settings)==null?void 0:r.viewType)||Pi.ViewTypes.XML}o(J0,"getViewType");function w8(e,t){return J0(e,t).toLowerCase()}o(w8,"getViewTypeExtension");function M8(e,t,n){var p;let i=o(g=>{var m;return(m=g.split(`${t.id}.`)[1])==null?void 0:m.split(".")},"splitViewPath"),r=t.settings,a=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=Y0(e);s.includes(t.id)?n=i(s):a!=null&&a.includes(t.id)&&(n=[...i(a),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}o(M8,"getViewPath");function k8(e,t){let n=e.entitySet||V8(e),{viewPath:i,fileName:r}=M8(e,t,[n]),a=w8(e,t);return[...i,`${r}.view.${a}`].join("/")}o(k8,"getCustomPagePath");var Ub=class Ub{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=J0(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=k8(t,this.app);n.$filePath=i}};o(Ub,"AppProvider");var Ya=Ub;var lt=ie(le());var Al=ie(le());var $n=o((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),Z0=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"),e1=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 $b(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}o($b,"getNewPageTemplate");function j8(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}o(j8,"findPageInManifest");function U8(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=$b(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:$b(e[t].pageType)}),!Array.isArray(n.pages))){let i=j8(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=$b(e[t].pageType)),Bb(t,e,i)}}o(U8,"transformPageFromAssociation");function $8(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)===Al.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Al.PageTypeV2.ListReport||n.pageType===Al.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}o($8,"deletePage");function Bb(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Al.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)U8(t,r,n);Array.isArray(n.pages)||$8(n,t,i)}}o(Bb,"transformPageToNewManifestV2");var j1=ie(zs());var RA={};Qs(RA,{ALPAnalyticalTable:()=>LE,ALPGridTable:()=>NE,ALPResponsiveTable:()=>IE,Action:()=>_E,AnalyticalCard:()=>Ol,AnalyticalCardSettings:()=>Im,AnalyticalCardSettingsv4:()=>Qb,AnalyticalListPageFilterBar:()=>iE,AnalyticalTable:()=>OE,BaseCustomSection:()=>Gu,ChartSettings:()=>JE,ChartSettingsType:()=>Gb,CommonCardSettings:()=>ns,CommonFilterBar:()=>Pu,CommonHeaderFacetSettings:()=>gc,CommonTableSettings:()=>as,CommonTableSettingsForSections:()=>Tc,CreateWithFilters:()=>bE,CustomCard:()=>Kb,DataLoadSettings:()=>AE,DateRange:()=>Zb,DefaultDateRange:()=>eE,DefaultSpanObject:()=>Wb,FRAGMENT_DEFINITION:()=>wo,Field:()=>Jb,FieldForAction:()=>cE,Fields4Dialog:()=>SE,Fields4DialogOP:()=>xA,FooterAction:()=>wE,FormAction:()=>sE,GlobalChartSettings:()=>SA,GlobalTableSettings:()=>NA,GridTable:()=>RE,HeaderActionStandard:()=>$E,HeaderSections:()=>aA,KPISettings:()=>ZE,LinkListCardSettings:()=>zb,LinklistCard:()=>Eu,ListCard:()=>Cl,ListCardSettings:()=>Xb,ListReportFilterBar:()=>rE,MultiEdit:()=>EE,ObjectPageAnalyticalTable:()=>CA,ObjectPageChart:()=>AA,ObjectPageCustomSectionFragment:()=>Wu,ObjectPageCustomSectionView:()=>Ku,ObjectPageFooterAction:()=>cA,ObjectPageFooterActionStandard:()=>HE,ObjectPageGridTable:()=>OA,ObjectPageHeader:()=>eA,ObjectPageHeaderAction:()=>tA,ObjectPageHeaderActionStandard:()=>BE,ObjectPageHeaderSectionAddress:()=>oA,ObjectPageHeaderSectionChart:()=>iA,ObjectPageHeaderSectionDataPoint:()=>rA,ObjectPageHeaderSectionForm:()=>nA,ObjectPageLayout:()=>fA,ObjectPageResponsiveTable:()=>bc,ObjectPageSectionAddressV2:()=>mA,ObjectPageSectionChartV2:()=>dA,ObjectPageSectionContactV2:()=>hA,ObjectPageSectionFormV2:()=>pA,ObjectPageSectionTableV2:()=>gA,ObjectPageSectionV2:()=>uA,ObjectPageSubSectionChartV2:()=>TA,ObjectPageSubSectionContactV2:()=>bA,ObjectPageSubSectionFormV2:()=>vA,ObjectPageSubSectionTableV2:()=>EA,ObjectPageSubSectionV2:()=>yA,ObjectPageToolBarAction:()=>LA,ObjectPageTreeTable:()=>IA,QuickVariantSelection:()=>PE,QuickVariantSelectionOP:()=>PA,QuickVariantSelectionX:()=>xE,ResponsiveTable:()=>lc,SAP_UI_TABLE:()=>Vm,SaveAndEditOP:()=>UE,SelectionFieldDateSettings:()=>tE,SelectionFields:()=>nE,Share:()=>ME,ShareOP:()=>kE,StackCard:()=>bu,StackCardSettings:()=>qb,TableALP:()=>Fl,TableCard:()=>Il,TableCardSettings:()=>Yb,TableColumn:()=>KE,TableColumnAction:()=>nh,TableColumnActionIntentBased:()=>XE,TableCustomColumn:()=>QE,ToolBar:()=>zE,ToolBarAction:()=>VE,TreeTable:()=>CE,UpAndDownNavigationOP:()=>jE,buildIntentBasedActionId:()=>GE,deleteColumnFromFragment:()=>km,deleteType:()=>_l,exportColorPalette:()=>r1,exportCreateParametersFields:()=>Km,exportCustomColumnsToFragment:()=>vE,exportDateSettingsField:()=>c1,exportDefaultSpan:()=>o1,exportType:()=>Dl,getChartSectionControlId:()=>_1,getContactSubSectionControlId:()=>w1,getCustomColumnPath:()=>jm,getFormSectionControlId:()=>D1,getRootCustomColumnFromFragmentJSON:()=>Ou,getSectionControlId:()=>yc,getSmartChartControlId:()=>wu,getSmartTableControlId:()=>cc,getSubSectionControlId:()=>V1,getTableSectionControlId:()=>F1,importCreateParameters:()=>Wm,importDateSettings:()=>oE});var Yn=ie(le());var je=o(e=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),$r=o(e=>je(e)+"/tableSettings","getTableSettingPathV2"),t1=o(e=>je(e)+"/chartSettings","getChartSettingPathV2"),n1=o(e=>je(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var En=o(()=>Yn.ManifestSection.ovp,"getOVPsettingPath"),Ce=o(e=>{let t=[Yn.ManifestSection.ovp];return e.forEach(n=>{n in Yn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var ac=o((e,t)=>`${Yn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),Om=o(e=>{let t=[Yn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Fi=o(e=>{let t=[];return t.push(Om(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Za=o(e=>Fi(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ao=o((e,t,n)=>{let i=[];i.push(Om(e));let r=n.replace(Yn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),yr=o((e,t,n)=>ao(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),i1=o((e,t,n)=>ao(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),Hb=o(()=>`sap.ui5/extends/extensions/${Yn.v2.SAPUI5_VIEW_EXTENSION}/${Yn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),ma=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),`${Hb()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),Cm=class Cm{};o(Cm,"ApplicationV2"),h([Ut("settings")],Cm.prototype,"settings",2);var xm=Cm,Ur=class Ur{};o(Ur,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],Ur.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],Ur.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],Ur.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.50.0"})],Ur.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.46.0"})],Ur.prototype,"forceGlobalRefresh",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.74.0"})],Ur.prototype,"tableColumnVerticalAlignment",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Ur.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Ur.prototype,"draftDiscardConfirmationSettings",2),h([y({manifest:{path:o(()=>Yn.GENERICAPPSETTINGS,"path")}}),x({since:"1.96.0"})],Ur.prototype,"statePreservationMode",2);var Ja=Ur;var du=ie(le());function B8(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=du.ColorPaletteDefinitionType.SemanticColoring):t.dimensionSettings?(n=t,n.colorPaletteType=du.ColorPaletteDefinitionType.MapDimensionValues):n={colorPaletteType:du.ColorPaletteDefinitionType.StableColoring,dimensionValueToColor:t},n}o(B8,"importColorPalette");function r1(e,t,n){let i=JSON.parse(JSON.stringify(t[n]));delete i.colorPaletteType,t[n].colorPaletteType===du.ColorPaletteDefinitionType.StableColoring?e[n]=i.dimensionValueToColor:t[n].colorPaletteType&&(e[n]=i)}o(r1,"exportColorPalette");function o1(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}o(o1,"exportDefaultSpan");var Nm=class Nm{};o(Nm,"ChartSettingsType"),h([y({manifest:{path:o(()=>En()+"/chartSettings","path")}})],Nm.prototype,"showDataLabel",2);var Gb=Nm,es=class es{};o(es,"DefaultSpanObject"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"cols",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"rows",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"showOnlyHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"minimumTitleRow",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],es.prototype,"minimumSubTitleRow",2);var Wb=es,Qt=class Qt{};o(Qt,"CommonCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"entitySet",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"title",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"subTitle",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dataPointAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionPresentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"kpiAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"category",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"dynamicSubtitleAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showFilterInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortBy",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"sortOrder",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"identificationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"selectionAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"presentationAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"enableLocaleCurrencyFormatting",2),h([y({manifest:{path:o(t=>Ce(t),"path"),export:o1}})],Qt.prototype,"defaultSpan",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"requireAppAuthorization",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showSortingInHeader",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"tabs",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"addODataSelect",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"showRefresh",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Qt.prototype,"customParams",2);var ns=Qt,Sl=class Sl{};o(Sl,"CustomCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"template",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Sl.prototype,"settings",2);var Kb=Sl,ts=class ts extends ns{};o(ts,"ListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"imageSupported",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],ts.prototype,"listType",2);var Xb=ts,gu=class gu{};o(gu,"ListCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],gu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],gu.prototype,"template",2);var Cl=gu,so=class so extends ns{};o(so,"AnalyticalCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"chartAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"ignoreSapText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"enableAddToInsights",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"navigation",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"valueSelectionInfo",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"chartProperties",2),h([y({manifest:{path:o(t=>Ce(t),"path"),import:B8,export:r1}})],so.prototype,"colorPalette",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],so.prototype,"bEnableStableColors",2);var Im=so,Lm=class Lm extends Im{};o(Lm,"AnalyticalCardSettingsv4"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Lm.prototype,"measureAggregate",2);var Qb=Lm,mu=class mu{};o(mu,"AnalyticalCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],mu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],mu.prototype,"template",2);var Ol=mu,Pl=class Pl extends ns{};o(Pl,"StackCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"itemText",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"objectStreamCardsNavigationProperty",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Pl.prototype,"objectStreamCardsSettings",2);var qb=Pl,hu=class hu{};o(hu,"StackCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],hu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],hu.prototype,"template",2);var bu=hu,xl=class xl extends ns{};o(xl,"LinkListCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"listFlavor",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"headerAnnotationPath",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],xl.prototype,"staticContent",2);var zb=xl,yu=class yu{};o(yu,"LinklistCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],yu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],yu.prototype,"template",2);var Eu=yu,vu=class vu extends ns{};o(vu,"TableCardSettings"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vu.prototype,"showLineItemDetail",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],vu.prototype,"enableAddToInsights",2);var Yb=vu,Tu=class Tu{};o(Tu,"TableCard"),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tu.prototype,"model",2),h([y({manifest:{path:o(t=>Ce(t),"path")}})],Tu.prototype,"template",2);var Il=Tu;var a1=ie(le());var H8=o((e,t,n,i,r)=>{let a=Qn(n[1],r),s=n.slice(-1)[0];return Yt(e,[a,s,"GroupElement"])},"getSmartFieldControlId"),Rm=class Rm{};o(Rm,"Field"),h([y({flex:{controlId:H8,controlType:o(()=>a1.ControlType.GroupElement,"controlType")},generate:mt})],Rm.prototype,"visible",2);var Jb=Rm;var sc=ie(le());function oE(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(oE,"importDateSettings");function G8(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(G8,"importDateSettingsField");function c1(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(c1,"exportDateSettingsField");var Nl=class Nl{};o(Nl,"DateRange"),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Nl.prototype,"useDateRange",2),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path"),import:oE,export:qg}}),x({since:"1.77.0"})],Nl.prototype,"selectedValues",2),h([y({manifest:{path:o(t=>je(t)+sc.DATESETTINGSPATH,"path")}}),x({since:"1.77.0"})],Nl.prototype,"exclude",2);var Zb=Nl,Fm={controlId:Yt,controlType:o(()=>sc.ControlType.SmartFilterBar,"controlType")},Au={path:o((e,t,n)=>`${je(e)}${sc.DATESETTINGSPATH}/fields/${n}`,"path")},s1={...Au,import:G8,export:c1},Dm=class Dm{};o(Dm,"DefaultDateRange"),h([y({manifest:Au}),x({since:"1.90.0"})],Dm.prototype,"operation",2);var eE=Dm,is=class is{};o(is,"SelectionFieldDateSettings"),h([y({manifest:s1}),x({since:"1.77.0"})],is.prototype,"selectedValues",2),h([y({manifest:Au}),x({since:"1.77.0"})],is.prototype,"exclude",2),h([y({manifest:Au}),x({since:"1.77.0"})],is.prototype,"customDateRangeImplementation",2),h([y({manifest:s1}),x({since:"1.77.0"})],is.prototype,"filter",2),h([y({manifest:Au}),x({since:"1.90.0"})],is.prototype,"defaultValue",2);var tE=is,aE=class aE{};o(aE,"SelectionFields");var nE=aE,co=class co{};o(co,"CommonFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"})],co.prototype,"smartVariantManagement",2),h([y({flex:Fm}),x({since:"1.40.0"})],co.prototype,"liveMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],co.prototype,"variantManagementHidden",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.52.0"})],co.prototype,"subTitleIfVariantMgmtHidden",2),h([y({manifest:{path:o(t=>je(t)+"/filterSettings","path"),import:oE}}),x({since:"1.77.0"})],co.prototype,"dateSettings",2),h([y({flex:Fm}),x({since:"1.28.0"})],co.prototype,"showClearOnFB",2),h([y({flex:Fm}),x({since:"1.38.0"})],co.prototype,"showFilterConfiguration",2),h([y({flex:Fm}),x({since:"1.28.0"})],co.prototype,"showRestoreOnFB",2);var Pu=co,Su=class Su extends Pu{};o(Su,"AnalyticalListPageFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}})],Su.prototype,"showGoButtonOnFilterBar",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],Su.prototype,"filterDefaultsFromSelectionVariant",2);var iE=Su,_m=class _m extends Pu{};o(_m,"ListReportFilterBar"),h([y({manifest:{path:o(t=>je(t),"path")}}),fe("https://ui5.sap.com/sdk/#/topic/49a6ba5b8d6946208322a9f7e16837c2"),x({since:"1.86.0"})],_m.prototype,"annotationPath",2);var rE=_m;var lE=ie(le());var W8=o((e,t,n,i,r)=>{if(i()===lE.ControlType.Button){let a=n[n.length-1],s=Qn(n[1],r);return`${e}action::${a}::${s}::FormAction`}return Yt(e,t)},"getFormActionButtonId"),Vo={controlId:W8,controlType:o(()=>lE.ControlType.Button,"controlType")},rs=class rs{};o(rs,"FormAction"),h([y({flex:Vo,generate:mt})],rs.prototype,"visible",2),h([y({flex:Vo})],rs.prototype,"tooltip",2),h([y({flex:Vo})],rs.prototype,"icon",2),h([y({flex:Vo})],rs.prototype,"activeIcon",2),h([y({flex:Vo})],rs.prototype,"type",2);var sE=rs,os=class os{};o(os,"FieldForAction"),h([y({flex:Vo,generate:mt})],os.prototype,"visible",2),h([y({flex:Vo})],os.prototype,"tooltip",2),h([y({flex:Vo})],os.prototype,"icon",2),h([y({flex:Vo})],os.prototype,"activeIcon",2),h([y({flex:Vo}),x({since:"1.73.0"})],os.prototype,"type",2);var cE=os;var Et=ie(le()),lo=ie(zs());var dE=require("path"),lK=ie(le()),E1=ie(b1()),A1=require("fs");var fK=(0,dE.join)(__dirname,"templates");var uK=o((e,t)=>{let n=(0,A1.readFileSync)(e,"utf8");return(0,E1.render)(n,t)},"renderTemplate");var gE=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 uK((0,dE.join)(fK,t+".xml"),n)},"getSingleColumnContent"),mE=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=gE(i,t);n=n+`
289
289
  `+r}return n+`
290
- </core:FragmentDefinition>`},"getColumnFragmentContent"),oE=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
290
+ </core:FragmentDefinition>`},"getColumnFragmentContent"),hE=o(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
291
291
  <Text text="Placeholder"/>`}),t+`
292
- </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var Nm=require("path");var wo="core:FragmentDefinition",Om="sap.ui.table",aE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Om,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Om,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Om,name:"AnalyticalColumn"}]]),J8=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]]),f1={type:"element",name:"Text",attributes:{text:"Placeholder"}},Z8=JSON.stringify(f1);function eK(e,t){var i;let n=t?(i=e==null?void 0:e[wo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(eK,"getFragmentNamespaces");function l1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(l1,"getTagName");function Lm(e,t,n=e){let i=eK(n,!!(t||n!==e));if(t){let r=aE.get(t);return l1(r,i.get(r.namespace))}else{let r=aE.keys();for(let a of r){let s=aE.get(a),l=i?l1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Lm,"getTagNameFromFragmentJSON");function Cu(e,t=e){let n=Lm(e,void 0,t);return e[n]}o(Cu,"getRootCustomColumnFromFragmentJSON");function tK(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let a=e[t][r];!n.includes(r)&&a!==void 0&&a.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${a.toString()}"`)}return i+="}",i}o(tK,"addP13nData");function u1(e,t){var l,u,p;let n=!1,i=e.customData||e["table:customData"];if(!i)return!1;let r=i["core:CustomData"]._attributes.value,a=JSON.parse(r.substr(1,r.length)),s=t.findIndex(g=>g.columnKey===a.columnKey);return s<0?!1:(n=!0,r=tK(t,s),i["core:CustomData"]._attributes.value=r,!e.Text&&!e.Label&&((l=t[s])!=null&&l.text)&&(e.Text={_attributes:{}}),e.Text&&e.Text._attributes?e.Text._attributes.text=(u=t[s])==null?void 0:u.text:e.Label&&e.Label._attributes&&(e.Label._attributes.text=(p=t[s])==null?void 0:p.text),e._attributes||(e._attributes={}),e._attributes.id=t[s].id,t.splice(s,1),n)}o(u1,"handleFragmentColumn");function nK(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),a=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Et.FRAGMENTNAMEPART+a;for(let u of t){let p=u.dataSourceUri.split(Nm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,lo.xml2json)(u.fileContent,{compact:!0}));try{let m=Lm(g[wo]);m&&(delete g[wo][m],u.fileContent=(0,lo.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(nK,"deleteColumnsFromFragment");function p1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===Z8&&(e.splice(n,1),t-=1,t===0));n++);}o(p1,"deleteNumberOfCells");function iK(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),a=r[r.length-1]+Et.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(a)){let l=JSON.parse((0,lo.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&p1(l.elements[0].elements,u.length),s.fileContent=(0,lo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(iK,"deleteCellsFromFragment");function Rm(e,t,n,i){if(i){nK(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&iK(a,i,n)}}o(Rm,"deleteColumnFromFragment");function rK(e,t,n){let i=e?Object.keys(e).length:0;t.elements[0].elements||(t.elements[0].elements=[]);for(let r=i;r<Object.keys(n).length;r++)t.elements[0].elements.push(f1)}o(rK,"addNewColumnsInFragment");function oK(e,t){let n=JSON.parse((0,lo.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)rK(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,a=n.elements[0].elements;p1(a,r)}e.fileContent=(0,lo.json2xml)(JSON.stringify(n),{spaces:4})}}o(oK,"updateNonEmptyCellsFragment");function aK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(Nm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=oE(n):oK(r,n);break}}return i}o(aK,"updateCellsFragment");function sK(e,t,n,i,r){var g;let a,s,l=t.manifest,u=$n(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(r,{severity: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,Nm.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=$n(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()):U0(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(sK,"exportCustomColumnsToManifest");function cK(e,t,n,i,r){let a=iE(e,t);if(a){let s=JSON.parse((0,lo.xml2json)(a,{compact:!0})),l=Cu(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}o(cK,"insertNewColumnInFragment");function lK(e,t){let n=[];for(let i=0;i<e.length;i++)u1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(lK,"processCustomColumnInArray");function fK(e,t,n){if(e){if(Array.isArray(e))lK(e,t);else if(!u1(e,t)){let r=Lm(n[wo]);r&&(delete n[wo][r],e=void 0)}}return e}o(fK,"maintainExistingColumnInFragment");function uK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=cK(a,i,n,r,s)}return n}o(uK,"insertNewColumnsInFragment");function pK(e,t,n,i,r){let a=!1;if(!e)return a;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(a=!0,s.changeIndicator=Et.ChangeIndicator.Updated,!s.fileContent||s.fileContent.length===0)s.fileContent=rE(i,r);else{let u=JSON.parse((0,lo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Cu(u[wo]),l=fK(l,i,u),l=uK(i,n,l,r,u);let g=Lm(u,r);u[wo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,lo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(pK,"updateColumnsInFragment");function sE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=sK(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),T=l.fragmentName,A=T.substr(i.length+1),b=A.split(".");T=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),j=F?F[F.length-1]:null,K=j?j+Et.FRAGMENTNAMEPART+g:null,U=pK(s,T,A,m,r),ae=!1;if(p?ae=aK(s,K,n):ae=!0,!U){let Z={fileContent:rE(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:oE(n),dataSourceUri:u.replace(T,K),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(sE,"exportCustomColumnsToFragment");var Fm=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=J8.get((u=e.component)==null?void 0:u.name);if(!i){let 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 ai=ie(le());var cE="/multiEdit",sc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+ai.PropertyName.table:zt(e,t),"getSmartTableControlId");function km(e){var i;if(!((i=e.createWithParameterDialog)!=null&&i.fields))return;let t=JSON.parse(JSON.stringify(e.createWithParameterDialog.fields)),n={fields:[]};for(let r in t)n.fields.push(r);return n}o(km,"importCreateParameters");function jm(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(a=>r[a]=e[n][a]||{path:a}),e[n]=r}o(jm,"exportCreateParametersFields");function dK(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(dK,"exportVariants");function gK(e,t){t.variants&&(Object.keys(t.variants).length>0?dK(e,t):delete e.variants)}o(gK,"exportQuickVariantSelectionX");function mK(e){var n,i;if(!e||!e.multiEdit)return;let t=JSON.parse(JSON.stringify(e.multiEdit));return t.ignoredFields=(i=(n=e.multiEdit)==null?void 0:n.ignoredFields)==null?void 0:i.split(","),t}o(mK,"importMultiEdit");var Dm=class Dm{};o(Dm,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Dm.prototype,"strategy",2);var lE=Dm,Nl=class Nl{};o(Nl,"MultiEdit"),h([y({manifest:{path:o(t=>$r(t)+cE,"path")}})],Nl.prototype,"enabled",2),h([y({manifest:{path:o(t=>$r(t)+cE,"path")}})],Nl.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>$r(t)+cE,"path"),export:Bg}})],Nl.prototype,"ignoredFields",2);var fE=Nl;function Ou(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(Ou,"importType");function Fl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Fl,"exportType");function Dl(e){var t;(t=e==null?void 0:e.tableSettings)!=null&&t.type&&delete e.tableSettings.type,e!=null&&e.tableType&&delete e.tableType}o(Dl,"deleteType");var _m=class _m{};o(_m,"DataLoadSettings"),h([y({manifest:{path:o(t=>B0(t),"path")}}),C({since:"1.75.2"})],_m.prototype,"loadDataOnAppLaunch",2);var uE=_m,Vm=class Vm{};o(Vm,"Fields4Dialog"),h([y({manifest:{path:o(t=>$r(t)+"/createWithParameterDialog","path"),export:jm}}),C({since:"1.77.0"})],Vm.prototype,"fields",2);var pE=Vm,xu=class xu{};o(xu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],xu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],xu.prototype,"variants",2);var dE=xu,Ll=class Ll{};o(Ll,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ll.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path")}}),C({since:"1.48.0"})],Ll.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path"),export:gK}}),C({since:"1.48.0"})],Ll.prototype,"variants",2);var gE=Ll,oi=class oi{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(oi,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>$r(t),"path"),import:km}}),C({since:"1.77.0"})],oi.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:zt,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),C({since:"1.38.0"})],oi.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:sc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],oi.prototype,"useExportToExcel",2),h([y({flex:{controlId:sc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],oi.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],oi.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.48.0"})],oi.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),C({since:"1.38.0"})],oi.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),C({since:"1.120.0"})],oi.prototype,"copy",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),C({since:"1.70.0"})],oi.prototype,"selectAll",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),C({since:"1.70.0"})],oi.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.75.2"})],oi.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.42.0"})],oi.prototype,"condensedTableLayout",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.56.0"}),fe("https://ui5.sap.com/sdk/#/topic/3e2b4d212b66481a829ccef1dc0ca16b")],oi.prototype,"enableTableFilterInPageVariant",2),h([jt("toolBar")],oi.prototype,"toolBar",2);var os=oi,Mo=class Mo extends os{};o(Mo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ou,export:Fl,delete:Dl}}),C({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")}}),C({since:"1.54.0"})],Mo.prototype,"createWithFilters",2),h([y({flex:{controlId:sc,controlType:o(()=>ai.ControlType.Table,"controlType")},generate:qn}),C({since:"1.52.0"})],Mo.prototype,"popinLayout",2),h([y({flex:{controlId:sc,controlType:o(()=>ai.ControlType.Table,"controlType")}})],Mo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),C({since:"1.77.0"})],Mo.prototype,"inlineDelete",2),h([y({flex:{controlId:sc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>$r(t),"path"),import:mK}}),C({since:"1.98.0"})],Mo.prototype,"multiEdit",2);var cc=Mo,wm=class wm extends os{};o(wm,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ou,export:Fl,delete:Dl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],wm.prototype,"type",2);var mE=wm,fo=class fo extends os{};o(fo,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ou,export:Fl,delete:Dl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],fo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.78.0"})],fo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],fo.prototype,"createWithFilters",2);var hE=fo,ko=class ko extends os{};o(ko,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ou,export:Fl,delete:Dl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ko.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.60.0"})],ko.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.78.0"})],ko.prototype,"allFiltersAsInParameters",2);var Rl=ko,Mm=class Mm extends Rl{};o(Mm,"ALPResponsiveTable"),h([y({flex:{controlId:sc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],Mm.prototype,"growingThreshold",2);var yE=Mm,EE=class EE extends Rl{};o(EE,"ALPGridTable");var vE=EE,AE=class AE extends Rl{};o(AE,"ALPAnalyticalTable");var TE=AE,Iu=class Iu extends os{};o(Iu,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Ou,export:Fl,delete:Dl}}),C({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Iu.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),C({since:"1.54.0"})],Iu.prototype,"createWithFilters",2);var bE=Iu;var Nu=ie(le());var hK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${zi(i).replace(":2f","::")}`},"getActionButtonId"),yK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),vK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${em}${i}`},"getStandardFooterActionOPButtonId"),DE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${zi(r)}`},"buildIntentBasedActionId"),TK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${zi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),as={controlId:hK,controlType:o(()=>Nu.ControlType.Button,"controlType")},Lu={controlId:yK,controlType:o(()=>Nu.ControlType.Button,"controlType")},d1={controlId:vK,controlType:o(()=>Nu.ControlType.Button,"controlType")},Um={controlId:TK,controlType:o(()=>Nu.ControlType.Button,"controlType")},lc=class lc{};o(lc,"Action"),h([y({flex:as})],lc.prototype,"tooltip",2),h([y({flex:as})],lc.prototype,"icon",2),h([y({flex:as})],lc.prototype,"activeIcon",2),h([y({flex:as})],lc.prototype,"type",2);var SE=lc,fc=class fc{};o(fc,"ToolBarAction"),h([y({flex:as})],fc.prototype,"tooltip",2),h([y({flex:as})],fc.prototype,"icon",2),h([y({flex:as})],fc.prototype,"activeIcon",2),h([y({flex:as})],fc.prototype,"type",2);var PE=fc,uc=class uc{};o(uc,"FooterAction"),h([y({flex:Um})],uc.prototype,"tooltip",2),h([y({flex:Um})],uc.prototype,"icon",2),h([y({flex:Um})],uc.prototype,"activeIcon",2),h([y({flex:Um})],uc.prototype,"type",2);var CE=uc,$m=class $m{};o($m,"Share"),h([y({flex:Lu})],$m.prototype,"visible",2);var xE=$m,Bm=class Bm{};o(Bm,"ShareOP"),h([y({flex:Lu})],Bm.prototype,"visible",2);var IE=Bm,Hm=class Hm{};o(Hm,"UpAndDownNavigationOP"),h([y({flex:Lu})],Hm.prototype,"visible",2);var OE=Hm,Gm=class Gm{};o(Gm,"SaveAndEditOP"),h([y({flex:d1,generate:mt})],Gm.prototype,"visible",2);var NE=Gm,Wm=class Wm{};o(Wm,"HeaderActionStandard"),h([y({flex:Lu})],Wm.prototype,"visible",2);var LE=Wm,Km=class Km{};o(Km,"ObjectPageHeaderActionStandard"),h([y({flex:Lu})],Km.prototype,"visible",2);var RE=Km,Xm=class Xm{};o(Xm,"ObjectPageFooterActionStandard"),h([y({flex:d1})],Xm.prototype,"visible",2);var FE=Xm;var Du=ie(le());var bK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ji(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),EK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ji(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),AK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),_E={controlId:bK,controlType:o(()=>Du.ControlType.TableColumn,"controlType")},Ru={controlId:AK,controlType:o(()=>Du.ControlType.Button,"controlType")},g1={..._E,controlId:EK},Qm={...Ru,controlId:DE},Fu=class Fu{};o(Fu,"TableColumn"),h([y({flex:{controlId:Eb,controlType:o(()=>Du.ControlType.TableColumn,"controlType")}})],Fu.prototype,"width",2),h([y({flex:{controlId:Eb,controlType:o(()=>Du.ControlType.TableColumn,"controlType")},generate:qn})],Fu.prototype,"hAlign",2);var VE=Fu,ha=class ha{};o(ha,"TableColumnAction"),h([y({flex:_E})],ha.prototype,"width",2),h([y({flex:_E,generate:qn})],ha.prototype,"hAlign",2),h([y({flex:Ru})],ha.prototype,"tooltip",2),h([y({flex:Ru})],ha.prototype,"icon",2),h([y({flex:Ru})],ha.prototype,"activeIcon",2),h([y({flex:Ru})],ha.prototype,"type",2);var qm=ha,ya=class ya extends qm{};o(ya,"TableColumnActionIntentBased"),h([y({flex:g1})],ya.prototype,"width",2),h([y({flex:g1,generate:qn})],ya.prototype,"hAlign",2),h([y({flex:Qm})],ya.prototype,"tooltip",2),h([y({flex:Qm})],ya.prototype,"icon",2),h([y({flex:Qm})],ya.prototype,"activeIcon",2),h([y({flex:Qm})],ya.prototype,"type",2);var wE=ya,kE=class kE{};o(kE,"TableCustomColumn");var ME=kE;var UE=class UE{};o(UE,"ToolBar");var jE=UE;var pc=ie(le());var _u=o(e=>e+pc.PropertyName.chart,"getSmartChartControlId"),ss=class ss{};o(ss,"ChartSettings"),h([y({flex:{controlId:_u,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],ss.prototype,"showLegendButton",2),h([y({flex:{controlId:_u,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],ss.prototype,"showDownloadButton",2),h([y({flex:{controlId:_u,controlType:o(()=>pc.ControlType.SmartChart,"controlType")}})],ss.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:_u,controlType:o(()=>pc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],ss.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>$0(t),"path")}}),C({since:"1.81.0"})],ss.prototype,"showDataLabel",2);var $E=ss;var va=class va{};o(va,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>oc(t,i),"path")}})],va.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>oc(t,i),"path")}})],va.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>oc(t,i),"path")}})],va.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>oc(t,i),"path")}})],va.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>oc(t,i),"path")}})],va.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>oc(t,i),"path")}})],va.prototype,"groupId",2);var BE=va;var m1=ie(le());var SK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",zt(e,n)},"getAvatarControlId"),cs=class cs{};o(cs,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.46.0"})],cs.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.46.0"})],cs.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"})],cs.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],cs.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:SK,controlType:o(()=>m1.ControlType.Avatar,"controlType")},generate:mt})],cs.prototype,"displayShape",2);var HE=cs;var zm=ie(le());var PK=o((e,t,n,i)=>{if(i()===zm.ControlType.Button||i()===zm.ControlType.HeaderAction){let r=n[2];return`${e}action::${zi(r)}`}return zt(e,t)},"getActionButtonId"),Vu={controlId:PK,controlType:o(()=>zm.ControlType.HeaderAction,"controlType")},ls=class ls{};o(ls,"ObjectPageHeaderAction"),h([y({flex:Vu,generate:mt})],ls.prototype,"visible",2),h([y({flex:Vu})],ls.prototype,"tooltip",2),h([y({flex:Vu})],ls.prototype,"icon",2),h([y({flex:Vu})],ls.prototype,"activeIcon",2),h([y({flex:Vu})],ls.prototype,"type",2);var GE=ls;var wu=ie(le());var nh="header::headerEditable::",CK=o((e,t,n,i,r)=>`${e}${nh}${r}`,"getDataPointHeaderSectionId"),xK=o((e,t,n,i,r)=>`${e}${nh}${r}::ContactAddress`,"getAddressHeaderSectionId"),IK=o((e,t,n,i,r)=>`${e}${nh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),h1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(wu.FACETTITLEPREFIX)?r.split(wu.FACETTITLEPREFIX)[1]:a;return`${e}${nh}${s}::Form`},"getFormHeaderSectionId"),Mu={controlType:o(()=>wu.ControlType.ObjectPageHeaderSection,"controlType")},Ym=class Ym{};o(Ym,"CommonHeaderFacetSettings"),h([y({flex:{...Mu,controlId:h1},generate:mt})],Ym.prototype,"visible",2);var dc=Ym,Jm=class Jm extends dc{};o(Jm,"ObjectPageHeaderSectionForm"),h([y({flex:{...Mu,controlId:h1}})],Jm.prototype,"visible",2);var WE=Jm,Zm=class Zm extends dc{};o(Zm,"ObjectPageHeaderSectionChart"),h([y({flex:{...Mu,controlId:IK}})],Zm.prototype,"visible",2);var KE=Zm,eh=class eh extends dc{};o(eh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...Mu,controlId:CK}})],eh.prototype,"visible",2);var XE=eh,th=class th extends dc{};o(th,"ObjectPageHeaderSectionAddress"),h([y({flex:{...Mu,controlId:xK}})],th.prototype,"visible",2);var QE=th,zE=class zE{};o(zE,"HeaderSections");var qE=zE;var JE=ie(le());var OK=o((e,t,n,i)=>{if(i()===JE.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${zi(r)}::Determining`}return zt(e,t)},"getFooterActionButtonId"),ku={controlId:OK,controlType:o(()=>JE.ControlType.Button,"controlType")},fs=class fs{};o(fs,"ObjectPageFooterAction"),h([y({flex:ku,generate:mt})],fs.prototype,"visible",2),h([y({flex:ku})],fs.prototype,"tooltip",2),h([y({flex:ku})],fs.prototype,"icon",2),h([y({flex:ku})],fs.prototype,"activeIcon",2),h([y({flex:ku})],fs.prototype,"type",2);var YE=fs;var ju=ie(le());var ih=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",zt(e,n)},"getControlId"),gc=class gc{};o(gc,"ObjectPageLayout"),h([y({flex:{controlId:ih,controlType:o(()=>ju.ControlType.ObjectPageLayout,"controlType")},generate:mt})],gc.prototype,"showHeaderContent",2),h([y({flex:{controlId:ih,controlType:o(()=>ju.ControlType.ObjectPageLayout,"controlType")}})],gc.prototype,"showAnchorBar",2),h([y({flex:{controlId:ih,controlType:o(()=>ju.ControlType.ObjectPageLayout,"controlType")}})],gc.prototype,"useIconTabBar",2),h([y({flex:{controlId:ih,controlType:o(()=>ju.ControlType.ObjectPageLayout,"controlType")}}),C({since:"1.34.0"})],gc.prototype,"alwaysShowContentHeader",2);var ZE=gc;var y1=ie(le());var mc=class mc{};o(mc,"BaseCustomSection"),h([y({manifest:{path:ma,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),C({since:"1.52.0"})],mc.prototype,"relatedFacet",2),h([y({manifest:{path:ma,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),C({since:"1.52.0"})],mc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>ma(t,{},i,y1.ManifestSection.generic),"path")}}),C({since:"1.52.0"})],mc.prototype,"title",2),h([y({manifest:{path:ma}}),C({since:"1.52.0"})],mc.prototype,"className",2);var Bu=mc,Uu=class Uu extends Bu{};o(Uu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:ma}}),C({since:"1.52.0"})],Uu.prototype,"fragmentName",2),h([y({manifest:{path:ma}}),C({since:"1.52.0"})],Uu.prototype,"type",2);var Hu=Uu,$u=class $u extends Bu{};o($u,"ObjectPageCustomSectionView"),h([y({manifest:{path:ma}}),C({since:"1.52.0"})],$u.prototype,"viewName",2),h([y({manifest:{path:ma}}),C({since:"1.52.0"})],$u.prototype,"type",2);var Gu=$u;var er=ie(le());var v1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),er.DefinitionName.Table];return zt(e,s)},"getTableSectionControlId"),T1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return zt(e,s)},"getFormSectionControlId"),b1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return zt(e,s)},"getChartSectionControlId"),hc=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Section"];return zt(e,s)},"getSectionControlId"),E1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"SubSection"];return zt(e,s)},"getSubSectionControlId"),A1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return zt(e,s)},"getContactSubSectionControlId"),rh=class rh{};o(rh,"ObjectPageSectionV2"),h([y({flex:{controlId:hc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],rh.prototype,"visible",2);var eA=rh,oh=class oh{};o(oh,"ObjectPageSectionFormV2"),h([y({flex:{controlId:hc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],oh.prototype,"visible",2);var tA=oh,ah=class ah{};o(ah,"ObjectPageSectionChartV2"),h([y({flex:{controlId:hc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ah.prototype,"visible",2);var nA=ah,sh=class sh{};o(sh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:hc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],sh.prototype,"visible",2);var iA=sh,ch=class ch{};o(ch,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:hc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ch.prototype,"visible",2);var rA=ch,lh=class lh{};o(lh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:hc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],lh.prototype,"visible",2);var oA=lh,fh=class fh{};o(fh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:E1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],fh.prototype,"visible",2);var aA=fh,uh=class uh{};o(uh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:T1,controlType:o(()=>er.ControlType.Group,"controlType")},generate:mt})],uh.prototype,"visible",2);var sA=uh,ph=class ph{};o(ph,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:b1,controlType:o(()=>er.ControlType.SmartChart,"controlType")},generate:mt})],ph.prototype,"visible",2);var cA=ph,dh=class dh{};o(dh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:A1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],dh.prototype,"visible",2);var lA=dh,gh=class gh{};o(gh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:v1,controlType:o(()=>er.ControlType.SmartTable,"controlType")},generate:mt})],gh.prototype,"visible",2);var fA=gh;var mh=class mh{};o(mh,"ObjectPageChart"),h([y({manifest:{path:H0}}),C({since:"1.78.0"})],mh.prototype,"variantManagement",2);var uA=mh,hh=class hh{};o(hh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Fi(t)+"/chartSettings","path")}}),C({since:"1.78.0"})],hh.prototype,"variantManagement",2);var pA=hh;var vr=ie(le());var yc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=vr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=Qn(a[0],r),zt(e,a)},"getSmartTableControlId"),Wu=class Wu{};o(Wu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Wu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),C({since:"1.48.0"})],Wu.prototype,"variants",2);var dA=Wu,yh=class yh{};o(yh,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>yr(t,n,i)+"/createWithParameterDialog","path"),export:jm}}),C({since:"1.77.0"})],yh.prototype,"fields",2);var gA=yh,si=class si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(si,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:yr,import:km}}),C({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:yc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.28.0"})],si.prototype,"editable",2),h([y({flex:{controlId:yc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],si.prototype,"showPasteButton",2),h([y({manifest:{path:yr}}),C({since:"1.54.0"})],si.prototype,"multiSelect",2),h([y({manifest:{path:yr}}),C({since:"1.70.0"})],si.prototype,"selectAll",2),h([y({manifest:{path:yr}}),C({since:"1.70.0"})],si.prototype,"selectionLimit",2),h([y({manifest:{path:ao}}),C({since:"1.63.0"})],si.prototype,"quickVariantSelection",2),h([y({flex:{controlId:yc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.26.0"})],si.prototype,"useExportToExcel",2),h([y({flex:{controlId:yc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),C({since:"1.50.0"})],si.prototype,"exportType",2),h([y({manifest:{path:ao}}),C({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],si.prototype,"createMode",2),h([y({manifest:{path:ao}}),C({since:"1.61.0"})],si.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:yr}}),C({since:"1.78.0"})],si.prototype,"variantManagement",2),h([y({manifest:{path:yr}}),C({since:"1.120.0"})],si.prototype,"copy",2),h([jt("toolBar")],si.prototype,"toolBar",2);var vc=si,us=class us extends vc{};o(us,"ObjectPageResponsiveTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],us.prototype,"type",2),h([y({flex:{controlId:yc,controlType:o(()=>vr.ControlType.Table,"controlType")}})],us.prototype,"includeItemInSelection",2),h([y({flex:{controlId:yc,controlType:o(()=>vr.ControlType.Table,"controlType")},generate:mt}),C({since:"1.52.0"})],us.prototype,"popinLayout",2),h([y({manifest:{path:yr}}),C({since:"1.77.0"})],us.prototype,"inlineDelete",2),h([y({flex:{controlId:yc,controlType:o(()=>vr.ControlType.Table,"controlType")}}),C({since:"1.16.0"})],us.prototype,"growingThreshold",2);var Tc=us,Ku=class Ku extends vc{};o(Ku,"ObjectPageAnalyticalTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Ku.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Ku.prototype,"condensedTableLayout",2);var mA=Ku,Xu=class Xu extends vc{};o(Xu,"ObjectPageGridTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Xu.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Xu.prototype,"condensedTableLayout",2);var hA=Xu,Qu=class Qu extends vc{};o(Qu,"ObjectPageTreeTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Qu.prototype,"type",2),h([y({manifest:{path:ao}}),C({since:"1.67.0"})],Qu.prototype,"condensedTableLayout",2);var yA=Qu,jo=class jo{};o(jo,"GlobalTableSettings"),h([y({manifest:{path:Ja}}),C({since:"1.70.0"})],jo.prototype,"selectAll",2),h([y({manifest:{path:Ja}}),C({since:"1.78.0"})],jo.prototype,"variantManagement",2),h([y({manifest:{path:Ja}}),C({since:"1.120.0"})],jo.prototype,"copy",2),h([y({manifest:{path:Ja}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],jo.prototype,"type",2),h([y({manifest:{path:Ja}}),C({since:"1.54.0"})],jo.prototype,"multiSelect",2),h([y({manifest:{path:Ja}}),C({since:"1.67.0"})],jo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Ja}}),C({since:"1.77.0"})],jo.prototype,"inlineDelete",2);var vA=jo;var S1=ie(le());var NK=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=Qn(n[1],r);return`${e}${s}::action::${zi(a).replace(":2f","::")}`},"getActionButtonId"),qu={controlId:NK,controlType:o(()=>S1.ControlType.Button,"controlType")},ps=class ps{};o(ps,"ObjectPageToolBarAction"),h([y({flex:qu,generate:mt})],ps.prototype,"visible",2),h([y({flex:qu})],ps.prototype,"tooltip",2),h([y({flex:qu})],ps.prototype,"icon",2),h([y({flex:qu})],ps.prototype,"activeIcon",2),h([y({flex:qu})],ps.prototype,"type",2);var TA=ps;var Di=ie(le());function EA(e,t,n,i){if(t.controlType===Di.ControlType.TableColumn||t.controlType===Di.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Di.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Di.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(EA,"addFlexChangeToConfigTableColumn");function vh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Di.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(vh,"addFlexChangeToConfigTable");function Th(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,T,A;let s=ro(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Di.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Di.v2.TableTypeV2.ResponsiveTable)&&!((T=l.controlId)!=null&&T.includes(Di.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Di.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(A=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:A.properties[l.propertyId]}u&&EA(t.table,l,n,i)})}o(Th,"importFlexChangesOfColumn");function ds(e){return e.replace("/","::")}o(ds,"convertActionKey");function AA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(AA,"convertSelector");function LK(e,t,n,i){var a,s,l,u;(((s=(a=i.definitions)==null?void 0:a.ListReportFilterBar)==null?void 0:s.properties[t])||((u=(l=i.definitions)==null?void 0:l.AnalyticalListPageFilterBar)==null?void 0:u.properties[t]))&&(e.filterBar[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}o(LK,"addSmartFilterBarFlex");function RK(e,t){let n=Object.keys(t.definitions).filter(r=>r.startsWith(`${e}`)&&r.includes("<")),i=new Map;return n.forEach(r=>{var l;let a=zi((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(RK,"filterActions");function FK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(FK,"addColumnActionConfigPart");function DK(e){var t,n;return(t=e.controlId)!=null&&t.includes("--template::")?e.controlId.split("--template::")[1]:(n=e.controlId)==null?void 0:n.split("--action::")[1]}o(DK,"getActionId");function _K(e,t,n,i,r){[{name:"HeaderActionStandard",configPart:e.header.actions,id:r},{name:"ObjectPageHeaderActionStandard",configPart:e.header.actions,id:r},{name:"FooterAction",configPart:e.footer.actions,id:r&&r.includes("Determining")&&r.split("::Determining")[0]},{name:"ObjectPageFooterActionStandard",configPart:e.footer.actions,id:r},{name:"ToolBarAction",configPart:e.table.toolBar.actions,id:r},{name:"TableColumnAction",configPart:e.table.columns,id:r}].forEach(s=>{var u,p;let l=RK(s.name,i);if(l.has(s.id)){let g=l.get(s.id),m=(u=g.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&FK(s,e,m);let 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(_K,"addActionFlex");function VK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[lt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[lt.PropertyName.chart],t):e[lt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(VK,"addSmartChartFlex");function bh(e,t,n,i){var r,a;try{let s=ro(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(lt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(lt.PageTypeV2.AnalyticalListPage))switch(s.controlId=AA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{LK(e,l,s,n);break}case lt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case lt.ControlType.Button:{let u=DK(s);u&&_K(e,l,s,n,u);break}case lt.ControlType.SmartChart:{VK(e,l,s,n);break}default:break}}catch(s){se(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(bh,"addFlex");function wK(e,t){if(e==="quickVariantSelectionX"&&t[e])for(let n in t[e].variants){let i=t[e].variants[n];if(i.tableSettings){for(let r in i.tableSettings)i[r]=i.tableSettings[r];delete i.tableSettings}}}o(wK,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=zn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=$n(t,g),ml(p,s,u,e),qg(l,s,g,r)}wK(u,e)}}o(Dn,"transferSettingsOfObject");function Eh(e,t){var r,a,s,l,u,p,g,m,T;let n=e[lt.ManifestSection.generic].pages[t],i=lt.v2.TableTypeV2.ResponsiveTable;return(r=e[lt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[lt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[lt.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((T=n.component)==null?void 0:T.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=lt.v2.TableTypeV2.AnalyticalTable),i}o(Eh,"determineTableType");function P1(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let 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(P1,"evaluateFragmentColumn");function MK(e,t,n,i){let r;if(e===lt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===lt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(MK,"determineCellsFragmentName");function kK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,C1.xml2json)(e[0].fileContent,{compact:!0}))[wo];try{let g=Cu(p);if(g)if((l=t[lt.PropertyName.table])!=null&&l.columns||(t[lt.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)P1(m,n,i,r,t,a,s);else P1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(kK,"analyzeFilteredFragments");function jK(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",T=e[s].fragmentName;if(!T)continue;let A=MK(u,e,p,g),b=T.split(".");T=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let O=i.fragments.filter(F=>F.dataSourceUri.endsWith(T));try{kK(O,n,e,s,g,u,A)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{Th(i,n,F.id,F,r)})}}}o(jK,"processViewExtensions");function _l(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;jK(g,m,e,t,a)}}o(_l,"addFragments");function Ah(e,t,n){if(e.header={actions:{}},n[lt.DefinitionName.HeaderActionsStandard]){let i=n[lt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(lt.PageTypeV2.ListReport,r,{})}}o(Ah,"importHeaderActions");var Qt=ie(le());var I1=ie(le());var SA={};Xs(SA,{ANNOERR:()=>o3,ANNOTATIONFILE:()=>a3,COMPONENTNOTDEFINED:()=>s3,CONTEXTPATHCOULDNOTBERESOLVED:()=>t3,ENTITYSETNOTFOUND:()=>e3,FLEXERROR:()=>y3,INCONSISTENTSCHEMA:()=>x3,INVALIDANCHOR:()=>v3,INVALIDEXTENSION:()=>T3,INVALIDTARGETDEFINITION:()=>E3,MACROS_ANNOTATION_ERROR:()=>P3,NOALP:()=>i3,NOANNOTATIONFORPATH:()=>JK,NOBASEPATH:()=>BK,NOCHARTS:()=>u3,NOENTITYSET:()=>XK,NOENTITYTYPE4SET:()=>QK,NOFE:()=>GK,NOFRAGMENT:()=>b3,NOGENERICSCHEMA:()=>WK,NOID4SECTION:()=>A3,NOLINEITEMANDCHARTS:()=>p3,NOLINEITEMFORPATH:()=>ZK,NOLINEITEMS:()=>f3,NOLR:()=>n3,NOPAGEFORENTITYSET:()=>KK,NOPAGES:()=>HK,NOPRESENTATIONVARIANT:()=>qK,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>zK,NOPRESENTATIONVARIANTFORSPV:()=>YK,NOROUTING:()=>c3,NOROUTINGID:()=>h3,NOTARGET:()=>m3,NOTARGETS:()=>g3,NOTEMPLATE:()=>r3,NOUIANNOTATIONS:()=>l3,NOVISUALIZATIONS:()=>d3,TYPEERROR:()=>C3,UNKNOWNMINUI5VERSION:()=>$K,WRONGMINUI5VERSION:()=>UK,XMLPARSEFAILURE:()=>S3,default:()=>I3});var UK="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",$K="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",BK="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",HK="No pages found in manifest for app with id '{{- appId}}'",GK="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",WK="No generic schema found while generating page schema for {{- pageType}}",KK="No page found in manifest for entitySet '{{- entitySet}}'",XK="No entitySet defined for page '{{- pageName}}'",QK="No entityType could be found for the given entity set '{{- entitySetName}}'",qK="No PresentationVariant defined for '{{- key}}'",zK="No PresentationVariant found for default SelectionPresentationVariant",YK="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",JK="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",ZK="No line item annotation found for path '{{- annotationPath}}'",e3="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",t3="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",n3="No page found in manifest for list report",i3="No page found in manifest for analytical list page",r3="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",o3="Error while parsing annotation files",a3="Annotation file: '{{- file}}'",s3="Component name is not defined for page '{{- pageName}}'",c3="Incomplete manifest definition: no routing defined",l3="No UI Annotation defined for entity type '{{- entityType }}'",f3="UI.LineItem annotation has not been defined",u3="UI.Chart annotation has not been defined",p3="Neither UI.LineItem nor UI.Chart annotation has been defined",d3="Empty Collection for Visualizations",g3="Incomplete manifest definition: no targets defined",m3="Invalid reference: annotation target '{{- target}}' not found",h3="No page found in manifest for routingId '{{- routingId}}'",y3="Error while parsing flex change",v3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",T3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",b3="fragmentName is undefined for columnKey '{{- columnKey}}'",E3="Invalid routing target definition in manifest: '{{- target}}'",A3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",S3="Parsing of XML file failed with error - {{- error}}",P3="Error during resolving annotation for '{{- control}}'",C3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",x3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",I3={WRONGMINUI5VERSION:UK,UNKNOWNMINUI5VERSION:$K,NOBASEPATH:BK,NOPAGES:HK,NOFE:GK,NOGENERICSCHEMA:WK,NOPAGEFORENTITYSET:KK,NOENTITYSET:XK,NOENTITYTYPE4SET:QK,NOPRESENTATIONVARIANT:qK,NOPRESENTATIONVARIANTFORDEFAULTSPV:zK,NOPRESENTATIONVARIANTFORSPV:YK,NOANNOTATIONFORPATH:JK,NOLINEITEMFORPATH:ZK,ENTITYSETNOTFOUND:e3,CONTEXTPATHCOULDNOTBERESOLVED:t3,NOLR:n3,NOALP:i3,NOTEMPLATE:r3,ANNOERR:o3,ANNOTATIONFILE:a3,COMPONENTNOTDEFINED:s3,NOROUTING:c3,NOUIANNOTATIONS:l3,NOLINEITEMS:f3,NOCHARTS:u3,NOLINEITEMANDCHARTS:p3,NOVISUALIZATIONS:d3,NOTARGETS:g3,NOTARGET:m3,NOROUTINGID:h3,FLEXERROR:y3,INVALIDANCHOR:v3,INVALIDEXTENSION:T3,NOFRAGMENT:b3,INVALIDTARGETDEFINITION:E3,NOID4SECTION:A3,XMLPARSEFAILURE:S3,MACROS_ANNOTATION_ERROR:P3,TYPEERROR:C3,INCONSISTENTSCHEMA:x3};function x1(e){e.addResourceBundle(e.language,"translation",SA)}o(x1,"initI18n");function nn(e="en"){q.init({resources:{en:{translation:I1.default}},lng:e,fallbackLng:"en",joinArrays:`
292
+ </core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var wm=require("path");var wo="core:FragmentDefinition",Vm="sap.ui.table",yE=new Map([[Et.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Et.ViewTemplateType.TreeTableColumnsExtension,{namespace:Vm,name:"Column"}],[Et.ViewTemplateType.GridTableColumnsExtension,{namespace:Vm,name:"Column"}],[Et.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Vm,name:"AnalyticalColumn"}]]),pK=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]]),P1={type:"element",name:"Text",attributes:{text:"Placeholder"}},dK=JSON.stringify(P1);function gK(e,t){var i;let n=t?(i=e==null?void 0:e[wo])==null?void 0:i._attributes:e==null?void 0:e._attributes;if(n){let r=new Map;return Object.keys(n).filter(a=>a.startsWith("xmlns")).forEach(a=>{let s=r.get(n[a]);r.set(n[a],s?[...s,a.split(":")[1]||a]:[a.split(":")[1]||a])}),r}else throw new Error("Invalid fragment, please check content")}o(gK,"getFragmentNamespaces");function S1(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}o(S1,"getTagName");function Mm(e,t,n=e){let i=gK(n,!!(t||n!==e));if(t){let r=yE.get(t);return S1(r,i.get(r.namespace))}else{let r=yE.keys();for(let a of r){let s=yE.get(a),l=i?S1(s,i.get(s.namespace)):s.name;if(e[l])return l}}}o(Mm,"getTagNameFromFragmentJSON");function Ou(e,t=e){let n=Mm(e,void 0,t);return e[n]}o(Ou,"getRootCustomColumnFromFragmentJSON");function mK(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(mK,"addP13nData");function x1(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=mK(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(x1,"handleFragmentColumn");function hK(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(wm.sep);if(p[p.length-1]===l){let g=JSON.parse((0,lo.xml2json)(u.fileContent,{compact:!0}));try{let m=Mm(g[wo]);m&&(delete g[wo][m],u.fileContent=(0,lo.json2xml)(JSON.stringify(g),{compact:!0,spaces:4}))}catch{throw new Error(`Invalid fragment ${u.dataSourceUri}, please check content`)}break}}}o(hK,"deleteColumnsFromFragment");function C1(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===dK&&(e.splice(n,1),t-=1,t===0));n++);}o(C1,"deleteNumberOfCells");function yK(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,lo.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&C1(l.elements[0].elements,u.length),s.fileContent=(0,lo.json2xml)(JSON.stringify(l),{spaces:4});break}}o(yK,"deleteCellsFromFragment");function km(e,t,n,i){if(i){hK(e,i,t,n);let r=t.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),a=e[r];a&&yK(a,i,n)}}o(km,"deleteColumnFromFragment");function vK(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(P1)}o(vK,"addNewColumnsInFragment");function TK(e,t){let n=JSON.parse((0,lo.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)vK(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;C1(a,r)}e.fileContent=(0,lo.json2xml)(JSON.stringify(n),{spaces:4})}}o(TK,"updateNonEmptyCellsFragment");function bK(e,t,n){let i=!1;for(let r of e){let a=r.dataSourceUri.split(wm.sep);if(a[a.length-1]===t){i=!0,r.changeIndicator=Et.ChangeIndicator.Updated,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=hE(n):TK(r,n);break}}return i}o(bK,"updateCellsFragment");function EK(e,t,n,i,r){var g;let a,s,l=t.manifest,u=$n(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){se(r,{severity: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,wm.sep))+Et.FRAGMENTNAMEPART+p}if(e.indexOf(Et.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){t.manifestChangeIndicator=Et.ChangeIndicator.Updated;let m=e.replace(Et.ViewTemplateType.ResponsiveTableColumnsExtension,Et.ViewTemplateType.ResponsiveTableCellsExtension),v=$n(l,m),A=n.reduce((b,I)=>I.cellsFragmentName?I:b);A&&A.cellsFragmentName?(v.fragmentName=s=A.cellsFragmentName,v.className=n[0].className,v.type=p.toUpperCase()):e1(l,m)}return{manifestSection:u,lsFilePath:a,cellsFragmentName:s,fragmentType:p}}o(EK,"exportCustomColumnsToManifest");function AK(e,t,n,i,r){let a=gE(e,t);if(a){let s=JSON.parse((0,lo.xml2json)(a,{compact:!0})),l=Ou(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(AK,"insertNewColumnInFragment");function SK(e,t){let n=[];for(let i=0;i<e.length;i++)x1(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}o(SK,"processCustomColumnInArray");function PK(e,t,n){if(e){if(Array.isArray(e))SK(e,t);else if(!x1(e,t)){let r=Mm(n[wo]);r&&(delete n[wo][r],e=void 0)}}return e}o(PK,"maintainExistingColumnInFragment");function xK(e,t,n,i,r){for(let a of e)if(a.fragmentName.endsWith(t)){let s=e.indexOf(a);n=AK(a,i,n,r,s)}return n}o(xK,"insertNewColumnsInFragment");function CK(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=mE(i,r);else{let u=JSON.parse((0,lo.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Ou(u[wo]),l=PK(l,i,u),l=xK(i,n,l,r,u);let g=Mm(u,r);u[wo][g]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,lo.json2xml)(m,{compact:!0,spaces:4}))}break}return a}o(CK,"updateColumnsInFragment");function vE(e,t,n,i,r,a){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:g}=EK(t,e,n,i,a),m=JSON.parse(JSON.stringify(n)),v=l.fragmentName,A=v.substr(i.length+1),b=A.split(".");v=b[b.length-1]+Et.FRAGMENTNAMEPART+g;let F=p==null?void 0:p.split("."),j=F?F[F.length-1]:null,K=j?j+Et.FRAGMENTNAMEPART+g:null,U=CK(s,v,A,m,r),ae=!1;if(p?ae=bK(s,K,n):ae=!0,!U){let Z={fileContent:mE(m,r),dataSourceUri:u,changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}if(!ae){let Z={fileContent:hE(n),dataSourceUri:u.replace(v,K),changeIndicator:Et.ChangeIndicator.Deleted};e.fragments.push(Z)}}o(vE,"exportCustomColumnsToFragment");var jm=o((e,t,n,i)=>{var u,p,g,m;if(!e)return;let r=pK.get((u=e.component)==null?void 0:u.name);if(!i){let v=(m=(g=(p=e.component)==null?void 0:p.settings)==null?void 0:g.tableSettings)==null?void 0:m.type;v||(v="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(v="AnalyticalTable"),i=v+"ColumnsExtension"}let a=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:a}},"getCustomColumnPath");var ai=ie(le());var TE="/multiEdit",cc=o((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+ai.PropertyName.table:Yt(e,t),"getSmartTableControlId");function Wm(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(Wm,"importCreateParameters");function Km(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(Km,"exportCreateParametersFields");function OK(e,t){let n=e.variants||{},i=t.variants||{};Object.keys(n).filter(a=>!Object.keys(i).includes(a)).forEach(a=>{delete n[a]});for(let a in i){let s=i[a],l=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let u in s)l.indexOf(u)!==-1&&(s.tableSettings||(s.tableSettings={}),s.tableSettings[u]=s[u],delete s[u]);n[a]=s}Object.keys(n).length>0&&(e.variants=n)}o(OK,"exportVariants");function IK(e,t){t.variants&&(Object.keys(t.variants).length>0?OK(e,t):delete e.variants)}o(IK,"exportQuickVariantSelectionX");function NK(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(NK,"importMultiEdit");var Um=class Um{};o(Um,"CreateWithFilters"),h([y({manifest:{path:o(t=>je(t)+"/createWithFilters","path")}})],Um.prototype,"strategy",2);var bE=Um,Ll=class Ll{};o(Ll,"MultiEdit"),h([y({manifest:{path:o(t=>$r(t)+TE,"path")}})],Ll.prototype,"enabled",2),h([y({manifest:{path:o(t=>$r(t)+TE,"path")}})],Ll.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>$r(t)+TE,"path"),export:qg}})],Ll.prototype,"ignoredFields",2);var EE=Ll;function Lu(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(Lu,"importType");function Dl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}o(Dl,"exportType");function _l(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(_l,"deleteType");var $m=class $m{};o($m,"DataLoadSettings"),h([y({manifest:{path:o(t=>n1(t),"path")}}),x({since:"1.75.2"})],$m.prototype,"loadDataOnAppLaunch",2);var AE=$m,Bm=class Bm{};o(Bm,"Fields4Dialog"),h([y({manifest:{path:o(t=>$r(t)+"/createWithParameterDialog","path"),export:Km}}),x({since:"1.77.0"})],Bm.prototype,"fields",2);var SE=Bm,Iu=class Iu{};o(Iu,"QuickVariantSelection"),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Iu.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Iu.prototype,"variants",2);var PE=Iu,Rl=class Rl{};o(Rl,"QuickVariantSelectionX"),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Rl.prototype,"showCounts",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path")}}),x({since:"1.48.0"})],Rl.prototype,"enableAutoBinding",2),h([y({manifest:{path:o(t=>je(t)+ai.QUICKVARPATHX,"path"),export:IK}}),x({since:"1.48.0"})],Rl.prototype,"variants",2);var xE=Rl,oi=class oi{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(oi,"CommonTableSettings"),h([y({manifest:{key:"createWithParameterDialog",path:o(t=>$r(t),"path"),import:Wm}}),x({since:"1.77.0"})],oi.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:Yt,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.38.0"})],oi.prototype,"showTablePersonalisation",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],oi.prototype,"useExportToExcel",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],oi.prototype,"exportType",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],oi.prototype,"quickVariantSelection",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.48.0"})],oi.prototype,"quickVariantSelectionX",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.38.0"})],oi.prototype,"multiSelect",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.120.0"})],oi.prototype,"copy",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.70.0"})],oi.prototype,"selectAll",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.70.0"})],oi.prototype,"selectionLimit",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.75.2"})],oi.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.42.0"})],oi.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")],oi.prototype,"enableTableFilterInPageVariant",2),h([Ut("toolBar")],oi.prototype,"toolBar",2);var as=oi,Mo=class Mo extends as{};o(Mo,"ResponsiveTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Lu,export:Dl,delete:_l}}),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")}}),x({since:"1.54.0"})],Mo.prototype,"createWithFilters",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")},generate:qn}),x({since:"1.52.0"})],Mo.prototype,"popinLayout",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}})],Mo.prototype,"includeItemInSelection",2),h([y({manifest:{path:o(t=>$r(t),"path")}}),x({since:"1.77.0"})],Mo.prototype,"inlineDelete",2),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Mo.prototype,"growingThreshold",2),h([y({manifest:{path:o(t=>$r(t),"path"),import:NK}}),x({since:"1.98.0"})],Mo.prototype,"multiEdit",2);var lc=Mo,Hm=class Hm extends as{};o(Hm,"TreeTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Lu,export:Dl,delete:_l}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Hm.prototype,"type",2);var CE=Hm,fo=class fo extends as{};o(fo,"AnalyticalTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Lu,export:Dl,delete:_l}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],fo.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.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")}})],fo.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],fo.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],fo.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],fo.prototype,"allFiltersAsInParameters",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],fo.prototype,"createWithFilters",2);var OE=fo,ko=class ko extends as{};o(ko,"TableALP"),h([y({manifest:{path:o(t=>je(t),"path"),import:Lu,export:Dl,delete:_l}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ko.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"qualifier",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.38.0"}),y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultContentView",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"defaultFilterMode",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.60.0"})],ko.prototype,"contentTitle",2),h([y({manifest:{path:o(t=>je(t),"path")}})],ko.prototype,"autoHide",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.78.0"})],ko.prototype,"allFiltersAsInParameters",2);var Fl=ko,Gm=class Gm extends Fl{};o(Gm,"ALPResponsiveTable"),h([y({flex:{controlId:cc,controlType:o(()=>ai.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],Gm.prototype,"growingThreshold",2);var IE=Gm,FE=class FE extends Fl{};o(FE,"ALPGridTable");var NE=FE,DE=class DE extends Fl{};o(DE,"ALPAnalyticalTable");var LE=DE,Nu=class Nu extends as{};o(Nu,"GridTable"),h([y({manifest:{path:o(t=>je(t),"path"),import:Lu,export:Dl,delete:_l}}),x({since:"1.50.0"}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Nu.prototype,"type",2),h([y({manifest:{path:o(t=>je(t),"path")}}),x({since:"1.54.0"})],Nu.prototype,"createWithFilters",2);var RE=Nu;var Ru=ie(le());var LK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${zi(i).replace(":2f","::")}`},"getActionButtonId"),RK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}template::${i}`},"getStandardActionButtonId"),FK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}${sm}${i}`},"getStandardFooterActionOPButtonId"),GE=o((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Ji(n);return`${e}action::${i}::${zi(r)}`},"buildIntentBasedActionId"),DK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${zi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ss={controlId:LK,controlType:o(()=>Ru.ControlType.Button,"controlType")},Fu={controlId:RK,controlType:o(()=>Ru.ControlType.Button,"controlType")},O1={controlId:FK,controlType:o(()=>Ru.ControlType.Button,"controlType")},Xm={controlId:DK,controlType:o(()=>Ru.ControlType.Button,"controlType")},fc=class fc{};o(fc,"Action"),h([y({flex:ss})],fc.prototype,"tooltip",2),h([y({flex:ss})],fc.prototype,"icon",2),h([y({flex:ss})],fc.prototype,"activeIcon",2),h([y({flex:ss})],fc.prototype,"type",2);var _E=fc,uc=class uc{};o(uc,"ToolBarAction"),h([y({flex:ss})],uc.prototype,"tooltip",2),h([y({flex:ss})],uc.prototype,"icon",2),h([y({flex:ss})],uc.prototype,"activeIcon",2),h([y({flex:ss})],uc.prototype,"type",2);var VE=uc,pc=class pc{};o(pc,"FooterAction"),h([y({flex:Xm})],pc.prototype,"tooltip",2),h([y({flex:Xm})],pc.prototype,"icon",2),h([y({flex:Xm})],pc.prototype,"activeIcon",2),h([y({flex:Xm})],pc.prototype,"type",2);var wE=pc,Qm=class Qm{};o(Qm,"Share"),h([y({flex:Fu})],Qm.prototype,"visible",2);var ME=Qm,qm=class qm{};o(qm,"ShareOP"),h([y({flex:Fu})],qm.prototype,"visible",2);var kE=qm,zm=class zm{};o(zm,"UpAndDownNavigationOP"),h([y({flex:Fu})],zm.prototype,"visible",2);var jE=zm,Ym=class Ym{};o(Ym,"SaveAndEditOP"),h([y({flex:O1,generate:mt})],Ym.prototype,"visible",2);var UE=Ym,Jm=class Jm{};o(Jm,"HeaderActionStandard"),h([y({flex:Fu})],Jm.prototype,"visible",2);var $E=Jm,Zm=class Zm{};o(Zm,"ObjectPageHeaderActionStandard"),h([y({flex:Fu})],Zm.prototype,"visible",2);var BE=Zm,eh=class eh{};o(eh,"ObjectPageFooterActionStandard"),h([y({flex:O1})],eh.prototype,"visible",2);var HE=eh;var Vu=ie(le());var _K=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a}=Ji(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${a}`},"buildColumnActionId"),VK=o((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:a,semanticObjectId:s}=Ji(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${a}`},"buildColumnIntentBasedId"),wK=o((e,t,n)=>{let{actionId:i}=Ji(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),WE={controlId:_K,controlType:o(()=>Vu.ControlType.TableColumn,"controlType")},Du={controlId:wK,controlType:o(()=>Vu.ControlType.Button,"controlType")},I1={...WE,controlId:VK},th={...Du,controlId:GE},_u=class _u{};o(_u,"TableColumn"),h([y({flex:{controlId:Fb,controlType:o(()=>Vu.ControlType.TableColumn,"controlType")}})],_u.prototype,"width",2),h([y({flex:{controlId:Fb,controlType:o(()=>Vu.ControlType.TableColumn,"controlType")},generate:qn})],_u.prototype,"hAlign",2);var KE=_u,ha=class ha{};o(ha,"TableColumnAction"),h([y({flex:WE})],ha.prototype,"width",2),h([y({flex:WE,generate:qn})],ha.prototype,"hAlign",2),h([y({flex:Du})],ha.prototype,"tooltip",2),h([y({flex:Du})],ha.prototype,"icon",2),h([y({flex:Du})],ha.prototype,"activeIcon",2),h([y({flex:Du})],ha.prototype,"type",2);var nh=ha,ya=class ya extends nh{};o(ya,"TableColumnActionIntentBased"),h([y({flex:I1})],ya.prototype,"width",2),h([y({flex:I1,generate:qn})],ya.prototype,"hAlign",2),h([y({flex:th})],ya.prototype,"tooltip",2),h([y({flex:th})],ya.prototype,"icon",2),h([y({flex:th})],ya.prototype,"activeIcon",2),h([y({flex:th})],ya.prototype,"type",2);var XE=ya,qE=class qE{};o(qE,"TableCustomColumn");var QE=qE;var YE=class YE{};o(YE,"ToolBar");var zE=YE;var dc=ie(le());var wu=o(e=>e+dc.PropertyName.chart,"getSmartChartControlId"),cs=class cs{};o(cs,"ChartSettings"),h([y({flex:{controlId:wu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showLegendButton",2),h([y({flex:{controlId:wu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showDownloadButton",2),h([y({flex:{controlId:wu,controlType:o(()=>dc.ControlType.SmartChart,"controlType")}})],cs.prototype,"showChartTypeSelectionButton",2),h([y({flex:{controlId:wu,controlType:o(()=>dc.ControlType.SmartChart,"controlType"),exportFlexValue:o((t,n,i)=>{t.content.newValue=n[i].join()},"exportFlexValue"),importFlexValue:o((t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},"importFlexValue")}})],cs.prototype,"ignoredChartTypes",2),h([y({manifest:{path:o(t=>t1(t),"path")}}),x({since:"1.81.0"})],cs.prototype,"showDataLabel",2);var JE=cs;var va=class va{};o(va,"KPISettings"),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"model",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"entitySet",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"qualifier",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"filterable",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"detailNavigation",2),h([y({manifest:{path:o((t,n,i)=>ac(t,i),"path")}})],va.prototype,"groupId",2);var ZE=va;var N1=ie(le());var MK=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Yt(e,n)},"getAvatarControlId"),ls=class ls{};o(ls,"ObjectPageHeader"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.46.0"})],ls.prototype,"showRelatedApps",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.46.0"})],ls.prototype,"editableHeaderContent",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"})],ls.prototype,"simpleHeaderFacets",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"}),fe("https://ui5.sap.com/#/topic/17dbd5b7a61e4cdcb079062e976cd63f")],ls.prototype,"showHeaderAsCarouselOnDesktop",2),h([y({flex:{controlId:MK,controlType:o(()=>N1.ControlType.Avatar,"controlType")},generate:mt})],ls.prototype,"displayShape",2);var eA=ls;var ih=ie(le());var kK=o((e,t,n,i)=>{if(i()===ih.ControlType.Button||i()===ih.ControlType.HeaderAction){let r=n[2];return`${e}action::${zi(r)}`}return Yt(e,t)},"getActionButtonId"),Mu={controlId:kK,controlType:o(()=>ih.ControlType.HeaderAction,"controlType")},fs=class fs{};o(fs,"ObjectPageHeaderAction"),h([y({flex:Mu,generate:mt})],fs.prototype,"visible",2),h([y({flex:Mu})],fs.prototype,"tooltip",2),h([y({flex:Mu})],fs.prototype,"icon",2),h([y({flex:Mu})],fs.prototype,"activeIcon",2),h([y({flex:Mu})],fs.prototype,"type",2);var tA=fs;var ku=ie(le());var lh="header::headerEditable::",jK=o((e,t,n,i,r)=>`${e}${lh}${r}`,"getDataPointHeaderSectionId"),UK=o((e,t,n,i,r)=>`${e}${lh}${r}::ContactAddress`,"getAddressHeaderSectionId"),$K=o((e,t,n,i,r)=>`${e}${lh}${r}::SmartMicroChartVBox`,"getChartHeaderSectionId"),L1=o((e,t,n,i,r)=>{let a=n[n.length-1].replace(/@com.sap/g,"com.sap"),s=r!=null&&r.includes(ku.FACETTITLEPREFIX)?r.split(ku.FACETTITLEPREFIX)[1]:a;return`${e}${lh}${s}::Form`},"getFormHeaderSectionId"),ju={controlType:o(()=>ku.ControlType.ObjectPageHeaderSection,"controlType")},rh=class rh{};o(rh,"CommonHeaderFacetSettings"),h([y({flex:{...ju,controlId:L1},generate:mt})],rh.prototype,"visible",2);var gc=rh,oh=class oh extends gc{};o(oh,"ObjectPageHeaderSectionForm"),h([y({flex:{...ju,controlId:L1}})],oh.prototype,"visible",2);var nA=oh,ah=class ah extends gc{};o(ah,"ObjectPageHeaderSectionChart"),h([y({flex:{...ju,controlId:$K}})],ah.prototype,"visible",2);var iA=ah,sh=class sh extends gc{};o(sh,"ObjectPageHeaderSectionDataPoint"),h([y({flex:{...ju,controlId:jK}})],sh.prototype,"visible",2);var rA=sh,ch=class ch extends gc{};o(ch,"ObjectPageHeaderSectionAddress"),h([y({flex:{...ju,controlId:UK}})],ch.prototype,"visible",2);var oA=ch,sA=class sA{};o(sA,"HeaderSections");var aA=sA;var lA=ie(le());var BK=o((e,t,n,i)=>{if(i()===lA.ControlType.Button){let{actionId:r}=Ji(n);return`${e}action::${zi(r)}::Determining`}return Yt(e,t)},"getFooterActionButtonId"),Uu={controlId:BK,controlType:o(()=>lA.ControlType.Button,"controlType")},us=class us{};o(us,"ObjectPageFooterAction"),h([y({flex:Uu,generate:mt})],us.prototype,"visible",2),h([y({flex:Uu})],us.prototype,"tooltip",2),h([y({flex:Uu})],us.prototype,"icon",2),h([y({flex:Uu})],us.prototype,"activeIcon",2),h([y({flex:Uu})],us.prototype,"type",2);var cA=us;var $u=ie(le());var fh=o((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Yt(e,n)},"getControlId"),mc=class mc{};o(mc,"ObjectPageLayout"),h([y({flex:{controlId:fh,controlType:o(()=>$u.ControlType.ObjectPageLayout,"controlType")},generate:mt})],mc.prototype,"showHeaderContent",2),h([y({flex:{controlId:fh,controlType:o(()=>$u.ControlType.ObjectPageLayout,"controlType")}})],mc.prototype,"showAnchorBar",2),h([y({flex:{controlId:fh,controlType:o(()=>$u.ControlType.ObjectPageLayout,"controlType")}})],mc.prototype,"useIconTabBar",2),h([y({flex:{controlId:fh,controlType:o(()=>$u.ControlType.ObjectPageLayout,"controlType")}}),x({since:"1.34.0"})],mc.prototype,"alwaysShowContentHeader",2);var fA=mc;var R1=ie(le());var hc=class hc{};o(hc,"BaseCustomSection"),h([y({manifest:{path:ma,export:!1,import:o((t,n)=>n.split("|")[2],"import")}}),x({since:"1.52.0"})],hc.prototype,"relatedFacet",2),h([y({manifest:{path:ma,export:!1,import:o((t,n)=>n.split("|")[0],"import")}}),x({since:"1.52.0"})],hc.prototype,"relativePosition",2),h([y({manifest:{path:o((t,n,i)=>ma(t,{},i,R1.ManifestSection.generic),"path")}}),x({since:"1.52.0"})],hc.prototype,"title",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],hc.prototype,"className",2);var Gu=hc,Bu=class Bu extends Gu{};o(Bu,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Bu.prototype,"fragmentName",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Bu.prototype,"type",2);var Wu=Bu,Hu=class Hu extends Gu{};o(Hu,"ObjectPageCustomSectionView"),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Hu.prototype,"viewName",2),h([y({manifest:{path:ma}}),x({since:"1.52.0"})],Hu.prototype,"type",2);var Ku=Hu;var er=ie(le());var F1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),er.DefinitionName.Table];return Yt(e,s)},"getTableSectionControlId"),D1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"FormGroup"];return Yt(e,s)},"getFormSectionControlId"),_1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Chart"];return Yt(e,s)},"getChartSectionControlId"),yc=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"Section"];return Yt(e,s)},"getSectionControlId"),V1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"SubSection"];return Yt(e,s)},"getSubSectionControlId"),w1=o((e,t,n,i,r)=>{let s=[Qn(n[1],r),"ContactsList"];return Yt(e,s)},"getContactSubSectionControlId"),uh=class uh{};o(uh,"ObjectPageSectionV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],uh.prototype,"visible",2);var uA=uh,ph=class ph{};o(ph,"ObjectPageSectionFormV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],ph.prototype,"visible",2);var pA=ph,dh=class dh{};o(dh,"ObjectPageSectionChartV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],dh.prototype,"visible",2);var dA=dh,gh=class gh{};o(gh,"ObjectPageSectionTableV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],gh.prototype,"visible",2);var gA=gh,mh=class mh{};o(mh,"ObjectPageSectionAddressV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],mh.prototype,"visible",2);var mA=mh,hh=class hh{};o(hh,"ObjectPageSectionContactV2"),h([y({flex:{controlId:yc,controlType:o(()=>er.ControlType.Section,"controlType")},generate:mt})],hh.prototype,"visible",2);var hA=hh,yh=class yh{};o(yh,"ObjectPageSubSectionV2"),h([y({flex:{controlId:V1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],yh.prototype,"visible",2);var yA=yh,vh=class vh{};o(vh,"ObjectPageSubSectionFormV2"),h([y({flex:{controlId:D1,controlType:o(()=>er.ControlType.Group,"controlType")},generate:mt})],vh.prototype,"visible",2);var vA=vh,Th=class Th{};o(Th,"ObjectPageSubSectionChartV2"),h([y({flex:{controlId:_1,controlType:o(()=>er.ControlType.SmartChart,"controlType")},generate:mt})],Th.prototype,"visible",2);var TA=Th,bh=class bh{};o(bh,"ObjectPageSubSectionContactV2"),h([y({flex:{controlId:w1,controlType:o(()=>er.ControlType.SubSection,"controlType")},generate:mt})],bh.prototype,"visible",2);var bA=bh,Eh=class Eh{};o(Eh,"ObjectPageSubSectionTableV2"),h([y({flex:{controlId:F1,controlType:o(()=>er.ControlType.SmartTable,"controlType")},generate:mt})],Eh.prototype,"visible",2);var EA=Eh;var Ah=class Ah{};o(Ah,"ObjectPageChart"),h([y({manifest:{path:i1}}),x({since:"1.78.0"})],Ah.prototype,"variantManagement",2);var AA=Ah,Sh=class Sh{};o(Sh,"GlobalChartSettings"),h([y({manifest:{path:o(t=>Fi(t)+"/chartSettings","path")}}),x({since:"1.78.0"})],Sh.prototype,"variantManagement",2);var SA=Sh;var vr=ie(le());var vc=o((e,t,n,i,r)=>{let a=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=vr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),a.push(s),a[0]=Qn(a[0],r),Yt(e,a)},"getSmartTableControlId"),Xu=class Xu{};o(Xu,"QuickVariantSelectionOP"),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Xu.prototype,"showCounts",2),h([y({manifest:{path:o((t,n,i)=>ao(t,n,i)+vr.QUICKVARPATH,"path")}}),x({since:"1.48.0"})],Xu.prototype,"variants",2);var PA=Xu,Ph=class Ph{};o(Ph,"Fields4DialogOP"),h([y({manifest:{path:o((t,n,i)=>yr(t,n,i)+"/createWithParameterDialog","path"),export:Km}}),x({since:"1.77.0"})],Ph.prototype,"fields",2);var xA=Ph,si=class si{constructor(){this.getDeprecated=o(()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}}),"getDeprecated")}};o(si,"CommonTableSettingsForSections"),h([y({manifest:{key:"createWithParameterDialog",path:yr,import:Wm}}),x({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.28.0"})],si.prototype,"editable",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.95.0"}),fe("https://ui5.sap.com/#/topic/f6a8fd2812d9442a9bba2f6fb296c42e")],si.prototype,"showPasteButton",2),h([y({manifest:{path:yr}}),x({since:"1.54.0"})],si.prototype,"multiSelect",2),h([y({manifest:{path:yr}}),x({since:"1.70.0"})],si.prototype,"selectAll",2),h([y({manifest:{path:yr}}),x({since:"1.70.0"})],si.prototype,"selectionLimit",2),h([y({manifest:{path:ao}}),x({since:"1.63.0"})],si.prototype,"quickVariantSelection",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.26.0"})],si.prototype,"useExportToExcel",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.SmartTable,"controlType")}}),x({since:"1.50.0"})],si.prototype,"exportType",2),h([y({manifest:{path:ao}}),x({since:"1.48.5"}),fe("https://ui5.sap.com/sdk/#/topic/cfb04f0c58e7409992feb4c91aa9410b")],si.prototype,"createMode",2),h([y({manifest:{path:ao}}),x({since:"1.61.0"})],si.prototype,"disableDefaultInlineCreateSort",2),h([y({manifest:{path:yr}}),x({since:"1.78.0"})],si.prototype,"variantManagement",2),h([y({manifest:{path:yr}}),x({since:"1.120.0"})],si.prototype,"copy",2),h([Ut("toolBar")],si.prototype,"toolBar",2);var Tc=si,ps=class ps extends Tc{};o(ps,"ObjectPageResponsiveTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],ps.prototype,"type",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.Table,"controlType")}})],ps.prototype,"includeItemInSelection",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.Table,"controlType")},generate:mt}),x({since:"1.52.0"})],ps.prototype,"popinLayout",2),h([y({manifest:{path:yr}}),x({since:"1.77.0"})],ps.prototype,"inlineDelete",2),h([y({flex:{controlId:vc,controlType:o(()=>vr.ControlType.Table,"controlType")}}),x({since:"1.16.0"})],ps.prototype,"growingThreshold",2);var bc=ps,Qu=class Qu extends Tc{};o(Qu,"ObjectPageAnalyticalTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],Qu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],Qu.prototype,"condensedTableLayout",2);var CA=Qu,qu=class qu extends Tc{};o(qu,"ObjectPageGridTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],qu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],qu.prototype,"condensedTableLayout",2);var OA=qu,zu=class zu extends Tc{};o(zu,"ObjectPageTreeTable"),h([y({manifest:{path:yr}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],zu.prototype,"type",2),h([y({manifest:{path:ao}}),x({since:"1.67.0"})],zu.prototype,"condensedTableLayout",2);var IA=zu,jo=class jo{};o(jo,"GlobalTableSettings"),h([y({manifest:{path:Za}}),x({since:"1.70.0"})],jo.prototype,"selectAll",2),h([y({manifest:{path:Za}}),x({since:"1.78.0"})],jo.prototype,"variantManagement",2),h([y({manifest:{path:Za}}),x({since:"1.120.0"})],jo.prototype,"copy",2),h([y({manifest:{path:Za}}),fe("https://ui5.sap.com/sdk/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],jo.prototype,"type",2),h([y({manifest:{path:Za}}),x({since:"1.54.0"})],jo.prototype,"multiSelect",2),h([y({manifest:{path:Za}}),x({since:"1.67.0"})],jo.prototype,"condensedTableLayout",2),h([y({manifest:{path:Za}}),x({since:"1.77.0"})],jo.prototype,"inlineDelete",2);var NA=jo;var M1=ie(le());var HK=o((e,t,n,i,r)=>{let{actionId:a}=Ji(n),s=Qn(n[1],r);return`${e}${s}::action::${zi(a).replace(":2f","::")}`},"getActionButtonId"),Yu={controlId:HK,controlType:o(()=>M1.ControlType.Button,"controlType")},ds=class ds{};o(ds,"ObjectPageToolBarAction"),h([y({flex:Yu,generate:mt})],ds.prototype,"visible",2),h([y({flex:Yu})],ds.prototype,"tooltip",2),h([y({flex:Yu})],ds.prototype,"icon",2),h([y({flex:Yu})],ds.prototype,"activeIcon",2),h([y({flex:Yu})],ds.prototype,"type",2);var LA=ds;var Di=ie(le());function FA(e,t,n,i){if(t.controlType===Di.ControlType.TableColumn||t.controlType===Di.ControlType.Button){let r=t.controlId.split("-"),a=r[r.length-1],s=t.controlType===Di.ControlType.TableColumn?a.split("template:::TableColumn:::"):[a],l=i?s[s.length-1]:s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",Di.VOCWITHCOLONS),u=n==null?void 0:n.replace(/@/g,":40").replace(/#/g,":23");if(u!=null&&u.startsWith("DataField")?u=u==null?void 0:u.replace("/",":2f"):u=u==null?void 0:u.replace("/","_"),u!==l&&n!==l)return;i?i[t.propertyId]=t.newValue:(e.columns||(e.columns={}),e.columns[n]||(e.columns[n]={}),e.columns[n][t.propertyId]=t.newValue)}}o(FA,"addFlexChangeToConfigTableColumn");function xh(e,t,n){var i;(i=t.controlType)!=null&&i.endsWith(Di.DefinitionName.Table)&&Object.keys(n.properties).indexOf(t.propertyId)>-1&&(e[t.propertyId]=t.newValue)}o(xh,"addFlexChangeToConfigTable");function Ch(e,t,n,i,r="LineItems"){e.flex.forEach(a=>{var p,g,m,v,A;let s=ro(a),l={controlId:s.controlId,propertyId:(p=s.content)==null?void 0:p.property,newValue:(g=s.content)!=null&&g.newBinding?s.content.newBinding:(m=s.content)==null?void 0:m.newValue,controlType:s.controlType,creation:s.creation},u;if(s.controlType===Di.ControlType.TableColumn)u=e.jsonSchema.definitions.TableColumn.properties[l.propertyId];else{let b=(!t.table.type||t.table.type===Di.v2.TableTypeV2.ResponsiveTable)&&!((v=l.controlId)!=null&&v.includes(Di.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(Di.PageTypeV2.AnalyticalListPage)))?"ResponsiveTableWithMultiSelect":t.table.constructor.name;u=(A=e.jsonSchema.definitions[`${b}<${r}>`])==null?void 0:A.properties[l.propertyId]}u&&FA(t.table,l,n,i)})}o(Ch,"importFlexChangesOfColumn");function gs(e){return e.replace("/","::")}o(gs,"convertActionKey");function DA(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}o(DA,"convertSelector");function GK(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(GK,"addSmartFilterBarFlex");function WK(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=zi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=a.indexOf(":::");if(a.startsWith("DataField")&&s>-1){let u=a.split(":::"),p=u.find(v=>v.startsWith("sSemanticObject")),g=u.find(v=>v.startsWith("sAction")),m=g.split("sAction::")[1].replace(":2f","::");if(p){let v=`${p.split("::")[1]}::${m}`,A=`${u[0]}:::${p}:::${g}`;i.set(v,r),i.set(r,A)}else i.set(m,r),i.set(r,a)}else i.set(a.replace(":2f","::"),r),i.set(r,a)}),i}o(WK,"filterActions");function KK(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}o(KK,"addColumnActionConfigPart");function XK(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(XK,"getActionId");function QK(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=WK(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"&&KK(s,e,m);let v=s.configPart[m];((p=i.definitions[g])==null?void 0:p.properties[t])&&v&&(v[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}o(QK,"addActionFlex");function qK(e,t,n,i){var a;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[lt.PropertyName.chart],t);(a=s==null?void 0:s.flex)!=null&&a.importFlexValue?s.flex.importFlexValue(n,e[lt.PropertyName.chart],t):e[lt.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}o(qK,"addSmartChartFlex");function Oh(e,t,n,i){var r,a;try{let s=ro(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(lt.PageTypeV2.ListReport)||(a=s.controlId)!=null&&a.includes(lt.PageTypeV2.AnalyticalListPage))switch(s.controlId=DA(s.controlId),s.controlType){case lt.ControlType.SmartFilterBar:{GK(e,l,s,n);break}case lt.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case lt.ControlType.Button:{let u=XK(s);u&&QK(e,l,s,n,u);break}case lt.ControlType.SmartChart:{qK(e,l,s,n);break}default:break}}catch(s){se(i,{severity:lt.LogSeverity.Error,message:q.t("FLEXERROR")},...s)}}o(Oh,"addFlex");function zK(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(zK,"adjustQuickVariantSelectionX");function Dn(e,t,n,i,r,a){if(!n)return;let s={},l=e.getDeprecated?e.getDeprecated():void 0;if(n.properties)for(let u in n.properties){let p=zn(e,u);if(p!=null&&p.manifest){let g=p.manifest.path([i],t,a);s=$n(t,g),hl(p,s,u,e),nm(l,s,g,r)}zK(u,e)}}o(Dn,"transferSettingsOfObject");function Ih(e,t){var r,a,s,l,u,p,g,m,v;let n=e[lt.ManifestSection.generic].pages[t],i=lt.v2.TableTypeV2.ResponsiveTable;return(r=e[lt.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(a=e[lt.ManifestSection.generic].pages[t].component.settings)==null?void 0:a.tableSettings)!=null&&s.type||(l=e[lt.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((g=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:g.type)||((m=n.component)==null?void 0:m.settings.tableType):((v=n.component)==null?void 0:v.name)==="sap.suite.ui.generic.template.AnalyticalListPage"&&(i=lt.v2.TableTypeV2.AnalyticalTable),i}o(Ih,"determineTableType");function k1(e,t,n,i,r,a,s){var l,u;if(e.customData||e["table:customData"]){let p=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,g=JSON.parse(p.substr(1,p.length)),m=e.Text&&e.Text._attributes&&e.Text._attributes.text;m||(m=e.Label&&e.Label._attributes&&e.Label._attributes.text);let v={...(l=e._attributes)!=null&&l.id?{id:(u=e._attributes)==null?void 0:u.id}:{},...m?{text:m}:{},...g,...g.columnKey?{columnKey:g.columnKey}:{},...g.columnIndex?{columnIndex:Number(g.columnIndex)}:{},...g.leadingProperty?{leadingProperty:g.leadingProperty}:{},className:t[n].className,fragmentName:t[n].fragmentName,...i?{tabKey:i}:{},extensionType:a};s&&(v.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(v)}}o(k1,"evaluateFragmentColumn");function YK(e,t,n,i){let r;if(e===lt.ViewTemplateType.ResponsiveTableColumnsExtension)for(let a of Object.keys(t)){let[s,l,u]=a.split("|");s===lt.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[a].fragmentName)}return r}o(YK,"determineCellsFragmentName");function JK(e,t,n,i,r,a,s){var l;if(e[0]){let p=JSON.parse((0,j1.xml2json)(e[0].fileContent,{compact:!0}))[wo];try{let g=Ou(p);if(g)if((l=t[lt.PropertyName.table])!=null&&l.columns||(t[lt.PropertyName.table].columns={}),Array.isArray(g))for(let m of g)k1(m,n,i,r,t,a,s);else k1(g,n,i,r,t,a,s)}catch{throw new Error(`Invalid fragment ${e[0].dataSourceUri}, please check content`)}}}o(JK,"analyzeFilteredFragments");function ZK(e,t,n,i,r){var a;for(let s of Object.keys(e)){let l=s.split("|"),[u,p]=l,g=l[2];if(u&&p===t){let m=e[s].type?e[s].type.toLowerCase():"xml",v=e[s].fragmentName;if(!v)continue;let A=YK(u,e,p,g),b=v.split(".");v=b[b.length-1]+lt.FRAGMENTNAMEPART+m;let I=i.fragments.filter(F=>F.dataSourceUri.endsWith(v));try{JK(I,n,e,s,g,u,A)}catch(F){i.logger.error(F.message)}(a=n.table.columns)!=null&&a.custom&&n.table.columns.custom.forEach(F=>{Ch(i,n,F.id,F,r)})}}}o(ZK,"processViewExtensions");function Vl(e,t,n,i,r,a="LineItems"){var s,l,u;if(t.fragments&&(u=(l=(s=t.manifest[lt.ManifestSection.ui5])==null?void 0:s.extends)==null?void 0:l.extensions)!=null&&u["sap.ui.viewExtensions"]){let p=lt.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),g=t.manifest[lt.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][p];if(!g)return;let m=r&&r.target?r.target:n.entitySet;ZK(g,m,e,t,a)}}o(Vl,"addFragments");function Nh(e,t,n){if(e.header={actions:{}},n[lt.DefinitionName.HeaderActionsStandard]){let i=n[lt.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(lt.PageTypeV2.ListReport,r,{})}}o(Nh,"importHeaderActions");var qt=ie(le());var $1=ie(le());var _A={};Qs(_A,{ANNOERR:()=>T3,ANNOTATIONFILE:()=>b3,COMPONENTNOTDEFINED:()=>E3,CONTEXTPATHCOULDNOTBERESOLVED:()=>m3,ENTITYSETNOTFOUND:()=>g3,FLEXERROR:()=>R3,INCONSISTENTSCHEMA:()=>U3,INVALIDANCHOR:()=>F3,INVALIDEXTENSION:()=>D3,INVALIDTARGETDEFINITION:()=>V3,MACROS_ANNOTATION_ERROR:()=>k3,NOALP:()=>y3,NOANNOTATIONFORPATH:()=>p3,NOBASEPATH:()=>n3,NOCHARTS:()=>x3,NOENTITYSET:()=>s3,NOENTITYTYPE4SET:()=>c3,NOFE:()=>r3,NOFRAGMENT:()=>_3,NOGENERICSCHEMA:()=>o3,NOID4SECTION:()=>w3,NOLINEITEMANDCHARTS:()=>C3,NOLINEITEMFORPATH:()=>d3,NOLINEITEMS:()=>P3,NOLR:()=>h3,NOPAGEFORENTITYSET:()=>a3,NOPAGES:()=>i3,NOPRESENTATIONVARIANT:()=>l3,NOPRESENTATIONVARIANTFORDEFAULTSPV:()=>f3,NOPRESENTATIONVARIANTFORSPV:()=>u3,NOROUTING:()=>A3,NOROUTINGID:()=>L3,NOTARGET:()=>N3,NOTARGETS:()=>I3,NOTEMPLATE:()=>v3,NOUIANNOTATIONS:()=>S3,NOVISUALIZATIONS:()=>O3,TYPEERROR:()=>j3,UNKNOWNMINUI5VERSION:()=>t3,WRONGMINUI5VERSION:()=>e3,XMLPARSEFAILURE:()=>M3,default:()=>$3});var e3="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",t3="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",n3="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",i3="No pages found in manifest for app with id '{{- appId}}'",r3="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",o3="No generic schema found while generating page schema for {{- pageType}}",a3="No page found in manifest for entitySet '{{- entitySet}}'",s3="No entitySet defined for page '{{- pageName}}'",c3="No entityType could be found for the given entity set '{{- entitySetName}}'",l3="No PresentationVariant defined for '{{- key}}'",f3="No PresentationVariant found for default SelectionPresentationVariant",u3="No PresentationVariant found for SelectionPresentationVariant with qualifier '{{- qualifier}}'",p3="No annotation found for path '{{- annotationPath}}', fall back to standard LineItem",d3="No line item annotation found for path '{{- annotationPath}}'",g3="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",m3="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",h3="No page found in manifest for list report",y3="No page found in manifest for analytical list page",v3="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",T3="Error while parsing annotation files",b3="Annotation file: '{{- file}}'",E3="Component name is not defined for page '{{- pageName}}'",A3="Incomplete manifest definition: no routing defined",S3="No UI Annotation defined for entity type '{{- entityType }}'",P3="UI.LineItem annotation has not been defined",x3="UI.Chart annotation has not been defined",C3="Neither UI.LineItem nor UI.Chart annotation has been defined",O3="Empty Collection for Visualizations",I3="Incomplete manifest definition: no targets defined",N3="Invalid reference: annotation target '{{- target}}' not found",L3="No page found in manifest for routingId '{{- routingId}}'",R3="Error while parsing flex change",F3="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",D3="The extension with ID '{{- id}}' is wrongly defined as a string value in manifest.json",_3="fragmentName is undefined for columnKey '{{- columnKey}}'",V3="Invalid routing target definition in manifest: '{{- target}}'",w3="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",M3="Parsing of XML file failed with error - {{- error}}",k3="Error during resolving annotation for '{{- control}}'",j3="The type of the property '{{- propertyName}}' is not correct, expected type is '{{- expectedType}}'.",U3="Inconsistent schema at '{{- function}}', definition '{{- definition}}' does not exist",$3={WRONGMINUI5VERSION:e3,UNKNOWNMINUI5VERSION:t3,NOBASEPATH:n3,NOPAGES:i3,NOFE:r3,NOGENERICSCHEMA:o3,NOPAGEFORENTITYSET:a3,NOENTITYSET:s3,NOENTITYTYPE4SET:c3,NOPRESENTATIONVARIANT:l3,NOPRESENTATIONVARIANTFORDEFAULTSPV:f3,NOPRESENTATIONVARIANTFORSPV:u3,NOANNOTATIONFORPATH:p3,NOLINEITEMFORPATH:d3,ENTITYSETNOTFOUND:g3,CONTEXTPATHCOULDNOTBERESOLVED:m3,NOLR:h3,NOALP:y3,NOTEMPLATE:v3,ANNOERR:T3,ANNOTATIONFILE:b3,COMPONENTNOTDEFINED:E3,NOROUTING:A3,NOUIANNOTATIONS:S3,NOLINEITEMS:P3,NOCHARTS:x3,NOLINEITEMANDCHARTS:C3,NOVISUALIZATIONS:O3,NOTARGETS:I3,NOTARGET:N3,NOROUTINGID:L3,FLEXERROR:R3,INVALIDANCHOR:F3,INVALIDEXTENSION:D3,NOFRAGMENT:_3,INVALIDTARGETDEFINITION:V3,NOID4SECTION:w3,XMLPARSEFAILURE:M3,MACROS_ANNOTATION_ERROR:k3,TYPEERROR:j3,INCONSISTENTSCHEMA:U3};function U1(e){e.addResourceBundle(e.language,"translation",_A)}o(U1,"initI18n");function rn(e="en"){q.init({resources:{en:{translation:$1.default}},lng:e,fallbackLng:"en",joinArrays:`
293
293
 
294
- `}),x1(q)}o(nn,"initI18n");var $t=ie(le());function bc(e,t,n){var r;let i;for(let a in e){let s=e[a];if(fa((r=s.component)==null?void 0:r.name)===$t.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=bc(s.pages,t,n),i))return n.unshift(a),i}}o(bc,"findObjectPageV2");function Vl(e,t){var n;for(let i in e){let r=e[i];if(fa((n=r.component)==null?void 0:n.name)===$t.PageTypeV2.ListReport)return t.push(i),r}}o(Vl,"findListReportPageV2");function wl(e){if(!e.manifest[$t.ManifestSection.generic]){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOFE"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}let t=e.manifest[$t.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:$t.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}return t}o(wl,"getV2Pages");function Ml(e,t,n){var i;if(!e){se(t,{severity:$t.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:$t.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}}o(Ml,"checkV2Page");function kl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),fa((i=a.component)==null?void 0:i.name)===$t.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:$t.LogSeverity.Error,message:q.t("NOALP"),location:{path:$t.MANIFESTPATH,range:[$t.ManifestSection.generic]}})}o(kl,"findAnalyticalListPage");function PA(e,t){let n=e.split("|");return $t.v2.SectionPosition[n[0]]&&n[1]===t}o(PA,"isAssociatedCustomSection");function O1(e,t){let n=$n(e,`sap.ui5/extends/extensions/${$t.v2.SAPUI5_VIEW_EXTENSION}/${$t.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)PA(r,t)&&(i[r]=n[r]);return i}o(O1,"findCustomSectionExtensions");function O3(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(O3,"removeEmptySettingsOfFooter");function N3(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(N3,"removeEmptySettingsOfFilterBar");function L3(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(L3,"removeEmptySettingsOfToolBar");function Sh(e){L3(e),N3(e),O3(e)}o(Sh,"removeEmptySettings");var xA={};Xs(xA,{AnalyticalListPage:()=>Hr,ListReport:()=>uo,ObjectPage:()=>ci,OverviewPage:()=>Yt,exportFilterSettings:()=>R1,importDateSettingsOVP:()=>N1,importFilterSettings:()=>L1});var Ph=ie(le());var Hr=class{};o(Hr,"AnalyticalListPage"),h([y({flex:{controlId:Wg,controlType:o(()=>Ph.ControlType.DynamicPage,"controlType")}})],Hr.prototype,"fitContent",2),h([jt("table")],Hr.prototype,"table",2),h([jt("template::SmartFilterBar")],Hr.prototype,"filterBar",2),h([jt("analyticalListPageChart")],Hr.prototype,"chart",2),h([jt("analyticalListFooter")],Hr.prototype,"footer",2),Hr=h([jr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Ph.v2.FE_TEMPLATE_V2_ALP})],Hr);var zu=ie(le());var uo=class{};o(uo,"ListReport"),h([y({flex:{controlId:Wg,controlType:o(()=>zu.ControlType.DynamicPage,"controlType")}})],uo.prototype,"fitContent",2),h([jt("listReportFilter")],uo.prototype,"filterBar",2),h([jt("listReport")],uo.prototype,"table",2),h([jt("listReportFooter")],uo.prototype,"footer",2),uo=h([jr({id:zu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:zu.v2.FE_TEMPLATE_V2_LIST_REPORT})],uo);var CA=ie(le());var ci=class{};o(ci,"ObjectPage"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),C({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),h([jt("header")],ci.prototype,"header",2),h([jt("sections")],ci.prototype,"sections",2),h([jt("layout")],ci.prototype,"layout",2),h([y({manifest:{path:o(t=>bm(t),"path")}}),C({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),C({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Js}}),C({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=h([jr({id:CA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:CA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function R3(e,t){for(let n in e.dateSettings.fields){t.fields[n]=e.dateSettings.fields[n];let i=e.dateSettings.fields[n].selectedValues;typeof i=="string"&&(t.fields[n].selectedValues=i.split(","));for(let r in e.dateSettings.fields[n].filter){let a=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=a,a.equals&&typeof a.equals=="string"&&(t.fields[n].filter[r].equals=a.equals.split(","))}}}o(R3,"importDateSettingsFieldsOVP");function N1(e){if(!e||!e.dateSettings)return;let t=JSON.parse(JSON.stringify(e.dateSettings));return typeof e.dateSettings.selectedValues=="string"&&(t.selectedValues=e.dateSettings.selectedValues.split(",")),e.dateSettings.fields&&R3(e,t),t}o(N1,"importDateSettingsOVP");function L1(e){let t={};return t.dateSettings=N1(e.filterSettings),t}o(L1,"importFilterSettings");function F3(e,t,n){for(let i in e.filterSettings[t].fields){let r=e.filterSettings[t].fields[i];if(r.selectedValues&&(n.filterSettings[t].fields[i].selectedValues=r.selectedValues.join()),r.filter)for(let a in r.filter){let s=r.filter[a];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[a].equals=s.equals.join())}}}o(F3,"exportFilterFields");function R1(e,t){e.filterSettings||(e.filterSettings={});let n="dateSettings";t.filterSettings[n]===void 0?delete e.filterSettings[n]:(e.filterSettings[n]=JSON.parse(JSON.stringify(t.filterSettings[n])),t.filterSettings[n].selectedValues&&(e.filterSettings[n].selectedValues=t.filterSettings[n].selectedValues.join()),t.filterSettings[n].fields&&F3(t,n,e))}o(R1,"exportFilterSettings");var Yt=class{};o(Yt,"OverviewPage"),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>En(),"path"),import:L1,export:R1}}),C({since:"1.80.0"})],Yt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Yt.prototype,"resizableLayout",2),Yt=h([jr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Yt);var IA=class IA{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let a=this.controls[r]?this.controls[r]:this.controls[n];return a||(a=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),a?Object.assign(new a,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};o(IA,"MetadataFactory");var jl=IA;var Jn=ie(le());var D3={},_3={Table:cc,ResponsiveTableWithMultiSelect:cc,ResponsiveTableWithInlineDelete:cc},V3={[Jn.v2.CardSettingsType.listCardSettings]:Cl,[Jn.v2.CardSettingsType.listCardSettingsv4]:Cl,[Jn.v2.CardSettingsType.analyticalCardSettings]:xl,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:xl,[Jn.v2.CardSettingsType.stackCardSettings]:vu,[Jn.v2.CardSettingsType.linkListCardSettings]:Tu,[Jn.v2.CardSettingsType.tableCardSettings]:Il,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Il},w3={[Jn.SAPUI5_VIEW_CLASS]:Gu,[Jn.SAPUI5_FRAGMENT_CLASS]:Hu,Table:Tc,ObjectPageResponsiveTableWithMultiSelect:Tc,ObjectPageResponsiveTableWithInlineDelete:Tc},M3={[Jn.PageTypeV2.AnalyticalListPage]:D3,[Jn.PageTypeV2.ListReport]:_3,[Jn.PageTypeV2.ObjectPage]:w3,[Jn.PageTypeV2.OverviewPage]:V3},OA=class OA extends jl{constructor(){super(bA,xA,M3)}};o(OA,"MetadataInstanceFactoryV2");var _i=OA;function k3(e,t,n,i,r){if(e.filterBar=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[Qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(k3,"importFilterBar");function NA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=ro(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};vh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&Th(e,n,s)}o(NA,"importFlexChangesOfTableAndColumns");function j3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[Jg]&&t[Zg]&&(a=JSON.parse(JSON.stringify(t[Jg])),a.properties={...a.properties,...t[Zg].properties}),Dn(n.table,i.manifest,a,r,i.logger),NA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:Qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(j3,"importTable");function U3(e,t,n,i){let r=e.jsonSchema.definitions,a=Eh(e.manifest,i);if(t.table=n.createInstance(Qt.PageTypeV2.ListReport,a,t.table),Ah(t,n,r),j3(a,r,t,e,i),t.table.toolBar=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[Qt.DefinitionName.ToolBarLR],i,e.logger),r[Qt.DefinitionName.ActionsLR])for(let l in r[Qt.DefinitionName.ActionsLR].properties){let u=ds(l);t.table.toolBar.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}k3(t,n,e,r,i),t.footer={actions:{}};let s=r[Qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=ds(l);t.footer.actions[u]=n.createInstance(Qt.PageTypeV2.ListReport,Qt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[Qt.DefinitionName.Action],i,e.logger)}}o(U3,"addSettings");function Ch(e){if(nn(),!wl(e))return;let n=new _i,i=n.createPageInstance(Qt.PageTypeV2.ListReport),r=[],a=Vl(e.manifest[Qt.ManifestSection.generic].pages,r);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return U3(e,i,n,r[0]),e.flex.forEach(s=>{ro(s)&&bh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Qt.PageTypeV2.ListReport),Sh(i),i}o(Ch,"createListReportConfig");var Ct=ie(le());function $3(e,t,n,i){var p,g;let r=Eh(e.manifest,i),a=e.jsonSchema.definitions;Ah(t,n,a),t.table=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),NA(e,s,t),t.table.toolBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[Ct.DefinitionName.ToolBar],i,e.logger),a[Ct.DefinitionName.ActionsLR])for(let m in a[Ct.DefinitionName.ActionsLR].properties){let T=ds(m);t.table.toolBar.actions[T]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.Action),Dn(t.table.toolBar.actions[T],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[Ct.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[Ct.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[Ct.DefinitionName.SelectionFields].properties;for(let T in m){let A=T;t.filterBar.selectionFields[A]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[Ct.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let T=ds(m);t.footer.actions[T]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,Ct.DefinitionName.FooterAction),Dn(t.footer.actions[T],e.manifest,a[Ct.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[Ct.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(Ct.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o($3,"addSettings");function xh(e){if(nn(),!wl(e))return;let n=new _i,i=n.createPageInstance(Ct.PageTypeV2.AnalyticalListPage),r=[],a=kl(e.manifest[Ct.ManifestSection.generic].pages,r,e.logger);if(Ml(a,e.logger,a==null?void 0:a.entitySet),!!a)return $3(e,i,n,r[0]),e.flex.forEach(s=>{ro(s)&&bh(i,s,e.jsonSchema,e.logger)}),_l(i,e,a,Ct.PageTypeV2.AnalyticalListPage),Sh(i),i}o(xh,"createAnalyticalListPageConfig");var Ee=ie(le());var Yu=require("@sap-ux/vocabularies-types/vocabularies/UI");var H3=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function G3(e,t){let n=e[0].split("--"),i=n[n.length-1];if(e[0].indexOf("::action::")>=0||e[0].startsWith("action::"))t=n[0].split("::action::")[0]||n[0].split(`${Yu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ACTIONTITLEPREFIX}${t}`;else if(e[0].indexOf(Yu.UIAnnotationTerms.LineItem)>=0||e[0].indexOf("UI.LineItem")>=0||e[0].indexOf("::Table")>=0)t=n[0].split("::Table")[0].split("::responsiveTable")[0];else{let r=i.split("::");r.length>1?t=r[0]:n[0].indexOf("::")>-1&&(t=n[0].split("::")[0])}return t}o(G3,"getSingleSelectorIdPart");function W3(e){let t,n=e.split(":::");if(n.length===1)t=G3(n,t);else if(e.indexOf("sSmartTableId")>=0){for(let i of n)if(i.startsWith("sSmartTableId")){t=i.split("sSmartTableId::")[1].split("::Table")[0].split("/responsiveTable")[0].replace(`::${Yu.UIAnnotationTerms.LineItem}`,`/@${Yu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}o(W3,"getFacetID");function K3(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=ro(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let T=m[1].replace(/:3a:3a/g,"::");r.exec(T)!==null&&(T=T.split("template:::TableColumn:::")[1]);let A=W3(T);T=AA(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:Ee.LogSeverity.Error,message:q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(K3,"prepareFlexChanges");var X3=o(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace($,"");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 Q3(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&EA(i,t,r)}o(Q3,"addFlexChangeToColumns");function F1(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===Ee.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?Q3(a,p,r.properties,n):vh(n,p,r))}}o(F1,"importFlexChangesOfTable");function q3(e,t){return e.facetId==="template"&&t}o(q3,"isStandardActionFlexChange");var D1=o((e,t,n=!1)=>{if(!n)return t.every(s=>e.includes(s));let i=e.indexOf(t[0]),r=e.length-i>t.length?e.length-1:void 0,a=e.slice(i,r);return a.length===t.length&&t.every(s=>a.includes(s))},"idElementChecker");function z3(e,t,n,i,r,a){var O;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Ee.ControlType.GroupElement&&l,g=((O=t.facetId)==null?void 0:O.includes(Ee.ACTIONTITLEPREFIX))&&!r&&s,m=r&&D1(u,r.split("::"))&&s,T=e.title&&D1(u,e.title.split("::"),!0),A=!t.facetId&&H3.includes(t.controlType),b=q3(t,l);return p||g||m||T||A||b}o(z3,"matchSelector");function Y3(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[Ee.SchemaTag.controlType]))continue;z3(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(Y3,"importFlexChanges");function J3(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ee.LogSeverity.Warning,message:Qg(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(J3,"checkDeprecatedProperties");function Z3(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=$n(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=$n(n.manifest,u))):(u=e.manifest.path(t,{},l),p=$n(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return J3(p,a,n,u),p}o(Z3,"importManifestSetting");function Vi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=zn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let T=n.properties[g].$ref.split($)[1],A=e.jsonSchema.definitions[T];F1(i.flexChanges,g,t,r,A,l)}else F1(i.flexChanges,g,t,r,n);else{let T=(r==null?void 0:r.title)||(r==null?void 0:r.id);Y3(n,t,i.flexChanges,g,T,a)}else m!=null&&m.manifest&&Z3(m,i.pageKeys,e,t,g,s,r)}}o(Vi,"transferSettingsAndFlexChanges");function V1(e,t,n,i){let r=zi(t);switch(e){case"FormAction":{r=`action::${r}::${i}::${n}`;break}case"ObjectPageFooterAction":{r=`action::${r}::Determining`;break}case"ObjectPageToolBarAction":{r=r.includes("sAction::")?`action::${r.split("sAction::")[1]}`:`action::${r.replace(":2f","::")}`;break}case"ObjectPageHeaderActionStandard":{r=`${m0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${em}${r}`;break}}return r.replace(/@/g,"")}o(V1,"getActionId");function eX(e,t,n,i){var r;for(let a in t){let s=t[a].$ref.split($)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[a].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=V1(s,a,"","");e.actions[a]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Vi(n,e[Ee.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(eX,"fillStandardActions");function Ih(e,t,n,i,r,a){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=ds(p),m=V1(s,g,r,a);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Vi(e,n[Ee.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ee.PropertyName.actions][g]).length===0&&delete n[Ee.PropertyName.actions][g]}}eX(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(Ih,"fillActions");function tX(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ee.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Vi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ee.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(tX,"fillFields");function nX(e,t,n){let i;return e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?i=n[`ObjectPage${e}<${t.id}>`]:n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`]&&n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`]&&(i=JSON.parse(JSON.stringify(n[`ObjectPageResponsiveTableWithMultiSelect<${t.id}>`])),i.properties={...i.properties,...n[`ObjectPageResponsiveTableWithInlineDelete<${t.id}>`].properties}),i}o(nX,"prepareTableSchema");function iX(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ee.PropertyName.table]=g;let m=e.jsonSchema.definitions,T=nX(p,t,m);Vi(e,i[t.id],t.schema,r,{title:t.title}),Vi(e,i[t.id][Ee.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");Ih(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}o(iX,"fillTableInConfig");function rX(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?zg(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};_l(n[t],e,i,Ee.PageTypeV2.ObjectPage,l,r)}}o(rX,"fillCustomColumnsInConfig");function oX(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ee.PropertyName.chart]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Vi(e,i[t.id],t.schema,r,{title:t.title}),Vi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}o(oX,"fillChartSection");function aX(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Vi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(aX,"fillHeaderSection");function sX(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Vi(e,n[t.id],t.schema,i,{title:t.title});let a=e.jsonSchema.definitions[`SectionActions${r}`],s=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");a!=null&&a.properties&&Ih(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&tX(e,t,l.properties,n,i),Object.keys(n[t.id].form).length===0&&delete n[t.id].form,Object.keys(n[t.id]).length===0&&delete n[t.id]}o(sX,"fillFormSection");function _1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Vi(e,i[t.id],t.schema,r,t);let a,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?a=s.subsections.properties:a=s,LA(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(_1,"fillSubSection");function LA(e,t,n,i,r){var s;let a=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:X3(t[l]),schema:t[l],title:Sb(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],iX(e,p,n,i,r),rX(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],oX(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],sX(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{p.schema=a[`${p.type}<${l}>`],_1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],aX(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],_1(e,p,n,i,r))}}o(LA,"fillSectionsInConfig");function cX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Vi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(cX,"fillCustomSectionsInConfig");function lX(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Vi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Vi(e,n.globalTableSettings,i[Ee.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.ObjectPageHeader);let r=i[Ee.DefinitionName.ObjectPageHeader]?i[Ee.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Vi(e,n.header,r,t);let a=i[Ee.DefinitionName.ObjectPageHeaderActions];a&&Ih(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&Ih(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Vi(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ee.DefinitionName.HeaderSections];if(l){let T=(g=t.v2Page.component)==null?void 0:g.settings;LA(e,l.properties,T,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ee.DefinitionName.Sections];if(u){let T=(m=t.v2Page.component)==null?void 0:m.settings;LA(e,u.properties,T,n.sections,t)}let p=O1(e.manifest,e.entitySet);return cX(p,n,t,i,e),n}o(lX,"fillConfig");function Oh(e){nn();let t=wl(e);if(!t)return;let n=e.entitySet,i=[],r=bc(t,e.entitySet,i);if(Ml(r,e.logger,n),!r)return;let a=K3(e.flex,n),s=new _i;return lX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Oh,"createObjectPageConfigV2");function Lh(e,t){var n,i;return(n=e.component)!=null&&n.name?$g(fa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Lh,"generateId");function fX(e,t,n,i){e.navigation={};let r=w1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Lh(t.pages[a],a);e.entitySet?e.navigation[s]=r[s].navigationProperty?`${e.entitySet}.${r[s].navigationProperty}`:e.entitySet:e.navigation[s]=r[s].navigationProperty?r[s].navigationProperty:s}}o(fX,"getPageConfigsAndNavigations");function w1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Lh(a,r);if(!s)continue;let l={pageType:fa((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Ch(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=xh(p)}else{let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],entitySet:l.entitySet,fragments:t.fragments,logger:t.logger};l.config=Oh(p)}a.pages&&fX(l,a,t,n)}return n}o(w1,"getPagesAndConfigs");var RA=class RA extends za{constructor(t){nn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Lh(n[i],i),a=new Ya,s=Dt(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,w1(n,t),a)}};o(RA,"V2AppProvider");var Nh=RA;function Ju(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Lh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Ju(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(Ju,"getPages");var Ac=ie(le());var Uo=ie(le());var DA=ie(KT());var _t=ie(le());var uX=["colorPalette","tabs"];function pX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(pX,"createCard");function M1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),M1(e,n.join("|"))}return t}o(M1,"findAvailableId");function Zu(e,t,n,i,r,a,s){i!=null&&i.properties&&FA(e,t,n,i.properties,r,a,s)}o(Zu,"transferManifestEntriesOVP");function Ec(e,t,n,i){return e.createInstance(_t.PageTypeV2.OverviewPage,i,n,t)}o(Ec,"assignReflectMetadataRules");function dX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split($),r=e.appSchema.definitions[i[1]];t=Ec(e.factory,i[1],t,"CustomCard"),Zu(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(dX,"processAnyOfDefinitionsOfOVP");function gX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!uX.includes(i)?t[i]=(0,DA.default)(t[i]||{},r||{},{arrayMerge:bb}):t[i]=r}o(gX,"checkSyncRuleForExport");function mX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=$n(i.manifest,s);if(n in _t.v2.CardSettingsType||n==="settings")l.settings=(0,DA.default)(l.settings||{},r||{},{arrayMerge:bb});else if(r!==void 0){let u=e.manifest.export;gX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(mX,"transferToManifest");function hX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(_t.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Ec(e.factory,i[0],e.currentObject[t],"CustomCard"),pX(t,e.exportResults.manifest[_t.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Zu(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[_t.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[_t.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated)})}o(hX,"transferCards");function yX(e,t){if(t==="cards")hX(e);else{let n=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,_t.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Ec(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],Zu(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],FA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],FA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(yX,"exportOfObject");function FA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!pl(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=zn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=dX(g)):u&&typeof u=="object"&&i[l]&&yX(g,l),p!=null&&p.manifest&&mX(p,a,l,t,u,e)}}o(FA,"processProperties");function vX(e,t,n,i,r,a,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=u0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=p0(p,g);e.exportResults.flexChanges.find(A=>{let b=!1,O=JSON.parse(A);O={content:O.content,selector:O.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(O)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(vX,"evaluateFlexRule");function TX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated}}o(TX,"exportConfigValueToManifest");function bX(e,t,n,i,r){let a=$n(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)TX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,Wa(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(bX,"evaluateManifestRule");function EX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(_t.FACETTITLEPREFIX)?r.split(_t.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(EX,"getManifestPathOfSections");function AX(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}o(AX,"getManifestPathOfTable");function SX(e,t,n,i,r){let a;return t[0]===_t.PropertyName.sections?a=EX(t,a,n,e,r):t[0]===_t.PropertyName.table?a=AX(t,a,n,e,i):t[0]==="keyPerformanceIndicators"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?a=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):a=n.manifest.path(e.pageKeys),a}o(SX,"getManifestPath");function PX(e,t,n,i,r,a,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)vX(e,i,t,r,a,n,s);else if(t.manifest){let u=SX(e,i,t,n,a);bX(e,u,t,s,n)}}o(PX,"evaluateExportRule");function CX(e,t,n){var s;let i=e.split("|"),r=i[1],a=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===a||a===void 0&&u.tabKey===""||a&&t.sectionKey===a)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Rm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(_t.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(_t.ViewTemplateType.ResponsiveTableColumnsExtension,_t.ViewTemplateType.ResponsiveTableCellsExtension);Rm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(CX,"deleteObsoleteColumn");function xX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=j0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=_t.ChangeIndicator.Updated,CX(r,e,n))}o(xX,"deleteObsoleteColumnsFromFragment");function IX(e,t,n,i,r){let a={};for(let s of e){if(!s.className||!s.fragmentName||!s.columnKey||!s.extensionType||t.properties.fragmentName.pattern&&new RegExp(t.properties.fragmentName.pattern).test(s.fragmentName)===!1)continue;let{path:l,viewTemplateType:u}=Fm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o(IX,"clusterConfigColumnsByPath");function k1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in _t.v2.TableColumnExtensionTypeV2){let{path:u}=Fm(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{xX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=IX(t,n,e.v2Page,s,r);for(let u in l)sE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(k1,"transferColumnExtensions");function OX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=M1(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(g)}for(let p=0;p<s.length;p++){let m=a.anyOf.find(A=>{var b;return(b=A.$ref)==null?void 0:b.includes(t[p].constructor.name)}).$ref.split($),T=e.appSchema.definitions[m[m.length-1]];gs(e,t[p],i,[...r,s[p]],T)}let u=$n(e.exportResults.manifest,Fb());for(let p in u)PA(p,l)&&!s.includes(p)&&delete u[p]}o(OX,"transferManifestExtensions");function NX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===_t.PropertyName.table){n=e[i-1];break}return Qn(n,t)}o(NX,"getSectionId");function LX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Fo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);gs(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(LX,"transferIndexTable");function RX(e,t,n,i,r,a){let s,l=zg(e.$ref);l&&(s={target:l,key:NX(t,n)}),k1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(RX,"transferCustomColumns");function FX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Fo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&gs(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(FX,"handleAnyOfDefinitions");function DX(e,t,n,i,r,a,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")OX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){RX(l,t,s,e,n,a);return}else a?gs(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&FX(l,e,s,n==null?void 0:n[r],r,i,t)}o(DX,"transferComplexProperty");function gs(e,t,n,i,r,a){let s;if(r!=null&&r.properties)for(let l in r.properties){if(e.entityPathArray&&e.entityPathArray[i.length]!==l&&!pl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Kg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=Fo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(PX(e,g,t,[...i],p,a,l),LX(s,e,a,l,p,i),s===void 0||typeof s=="object")DX(e,i,t,p,l,T,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){k1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(gs,"transferManifestEntriesAndFlexChange");function j1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Ec(r,i,n[i],s),a.push(i),_A(r,n[i],e,l.properties,a)}o(j1,"transferSettingsOfRef");function _X(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);j1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${Uo.v2.cardTemplateSettingsMap[e.template]}`.split($);j1(i,l,e,t,r,a)}}o(_X,"processPropertiesOfObject");function VX(e,t,n,i,r,a){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=$n(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{ml(s,u,t,e)}catch(p){se(i.logger,{severity:Uo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&_X(e,t,r,i,a,n)}o(VX,"processOvpProperty");function _A(e,t,n,i,r){for(let a in i)VX(t,a,r,n,i,e)}o(_A,"processOvpProperties");function wX(e,t,n){_A(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Uo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Uo.ManifestSection.ovp].cards[i].template,a=Uo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Ec(n,a,{},"CustomCard"),e.cards=Ec(n,a,e.cards,"CustomCard"),_A(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(wX,"addSettings");function Rh(e){let t=new _i,n=t.createPageInstance(Uo.PageTypeV2.OverviewPage);return e.jsonSchema&&wX(n,e,t),n}o(Rh,"createOverviewPageConfig");var VA=class VA extends za{constructor(t){let n={},i=t.manifest[Ac.ManifestSection.ovp],r=new Ya,a=Dt(Ac.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Ac.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Ac.PageTypeV2.OverviewPage,config:Rh(l),entitySet:i.globalFilterEntitySet},p=$g(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(VA,"V2OvpProvider");var Fh=VA;var $o=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ie(le()),U1=require("path");function MX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(MX,"sortByPropertyIndex");function ep(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(MX())}o(ep,"sortPropertiesRecords");function kX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(kX,"getExtensionText");function wA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(wA,"addExtensionToSortedArray");function jX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,g;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((g=n.position)==null?void 0:g.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}o(jX,"addRemainingTargetByBefore");function $1(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=kX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o($1,"getExtensionDetails");function MA(e,t,n,i,r=!1){var l,u;let a=Object.entries(e).length;for(let p of Object.keys(e)){let g=e[p],m=$1(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let T=n.findIndex(A=>A[0]===g.position.anchor);T>-1?(wA(g,n,T,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:wi.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&jX(e,p,g,n,m)}else r&&(wA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?MA(e,t,n,i):s>0&&MA(e,t,n,i,!0)}o(MA,"adjustCustomExtReferringToCustomExt");function UX(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(UX,"getExtensionAnchor");function $X(e,t){var i;let n=[];for(let r in e){let a=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===a);a&&!s&&n.push(r)}return n}o($X,"getLocalExtensionsToSkip");function BX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let T=t[m[0]];if(g(T))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(BX,"getExtensionIndexByMergedApproach");function HX(e,t,n,i,r=!1){return r?BX(e,t,n):n.findIndex(a=>a[0]===i)}o(HX,"getExtensionIndex");function GX(e,t,n,i,r){se(e,{severity:wi.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(GX,"handleInvalidExtension");function Ta(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=$X(l,s);if(!l)return[];for(let p of Object.keys(l)){let g=l[p];if(u!=null&&u.includes(p))continue;let m=$1(g,n,p,te.ActionType.Custom);if(typeof g!="object"){GX(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let T=UX(g,s);if(T){let A=HX(g,e,t,T,a);A>-1&&(wA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&MA(l,n,t,r),t}o(Ta,"addExtensionToArray");function kA(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(kA,"addEnumForProperties");function WX(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];kA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(WX,"addColumnPropertyIndexAndEnum");function Sc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var T,A,b,O;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=ep(l),p=a?a.replace(/::/g,"/"):`@${$o.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=Ta(g,u,i,void 0,n)),WX(u,e,l,i);let m={};u.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(Sc,"addCustomColumnDefinition");function KX(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(KX,"determineActionDefinitionName");function XX(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=nc(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(XX,"addTargetAndKeysOfAction");function QX(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=KX(e),l=Ai(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=Yg(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=Si(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=oo(i),XX(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let T=bt(s,dt(g),e.appSchema);T[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o(QX,"addActionRecordToSchema");function qX(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=da(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:Ai(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=oo(s),g[l]=m,cm(s,g,l)}}o(qX,"addLineItemRecordToSchema");function jA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===$o.UIAnnotationTypes.DataFieldForAction||s.$Type===$o.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))QX(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===$o.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;qX(e,l,u,a,i)}a++})}o(jA,"appendLineItemsToSchema");function Pc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=am(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);jA(e,r,a,void 0,t)}o(Pc,"addLineItemsTypeToSchema");function Cc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,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!==te.DefinitionName.LineItems?r:`@${$o.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;ga(s,b)}}o(Cc,"addFragmentEnumForAnchor");function po(e,t,n=te.DefinitionName.CustomActionPosition){Qa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(po,"addEnumForActionAnchor");function Dh(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===te.v4.FE_TEMPLATE_V4_ALP&&e[s].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Dh,"findPageV4");function B1(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(B1,"alignSchemaWithTemplateType");function ba(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,T,A,b,O,F,j,K,U;let s=e.definitions[r];if(!s)return;let l=ep(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${$o.UIAnnotationTerms.FieldGroup}`:u=`@${$o.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.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=(U=(K=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:K[u])==null?void 0:U.actions,p&&(l=Ta(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(ba,"addCustomActionDefinition");function _h(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,T,A,b,O,F;let a=e.definitions[r];if(!a)return;let s=ep(a),l;[te.DefinitionName.CustomHeaderAction,te.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=(F=(O=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:O.footer)==null?void 0:F.actions,l&&(s=Ta(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,K])=>u[j]=K)}e.definitions[r].properties=u}o(_h,"addHeaderFooterCustomActionDefinition");function xc(e,t,n){let i=Gg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:wi.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Gg(i,[t]);if(!r){se(n,{severity:wi.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(xc,"getManifestPage");function Ic(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,U1.join)(...p,g),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(Ic,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=xc(n,t,i),a=Gg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ic(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function H1(e,t,n,i,r,a,s){var g,m,T,A,b,O,F,j,K,U,ae,Z;let l=ep(t),u=new Map;if(l=l.map(re=>{let Pe=ym(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Pe.const,re[0]),[Pe.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=Ta(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(j=(F=(O=n.options)==null?void 0:O.settings)==null?void 0:F.content)==null?void 0:j.header;re&&"facets"in re&&(l=Ta(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(U=(K=n.options)==null?void 0:K.settings)==null?void 0:U.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=Ta(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Pe])=>{re=u.get(re)||re,p[re]=Pe}),t.properties=p}o(H1,"addCustomSectionDefinition");function G1(e,t,n){var l,u,p;let i=ep(t),r=new Map;i=i.map(g=>{let m=ym(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${$o.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Ta(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(G1,"addCustomFilterFieldDefinition");var _=ie(le()),Oc=require("@sap-ux/vocabularies-types/vocabularies/UI");var zX=["header","filterBar","chart","table"],UA="@UI.LineItem";function $A(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=mr(e.fullyQualifiedName,Oc.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][_.SchemaTag.propertyIndex]=a;let p=oo(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++})}return i}o($A,"addSelectionFields");function YX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Oc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let a={};return Object.keys(t).forEach(s=>{t[s].template||(a[s]=t[s])}),Object.keys(a).length>0?a:void 0}}o(YX,"getVisualFilters");function JX(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}o(JX,"getPropertiesIndex");function ZX(e,t,n,i){var s,l,u,p,g,m;let r=JX(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let T in n){let A=n[T];if(!A.template){let b=a.properties[T]={$ref:Si(_.DefinitionName.VisualFilter,T)},O=r.indexOf(T);O!==-1&&(b[_.SchemaTag.propertyIndex]=O);let F=bt(_.DefinitionName.VisualFilter,T,t);(s=A.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${T}/@${A.visualFilter.valueList}`);let j=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(K=>K.name===T))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();F.description=j||T,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:T}]}}}o(ZX,"addVisualFilters");function e7(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},G1(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&Qa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(e7,"applyCustomFilterFields");function t7(e,t,n,i){var l,u;let r=YX(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},ZX(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=$A(e,t,a,s),e7(t,s,n)}o(t7,"addFilterBar");function W1(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=dt(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=Ai(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],T=a.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};T[_.SchemaTag.propertyIndex]=l,T[_.SchemaTag.annotationType]=u.$Type,T[_.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(W1,"defineActions");function K1(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?gl(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(K1,"findTheRightVisualization");function n7(e,t,n,i){let r="@UI.Chart",a=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:a,chartTitle:s}}o(n7,"analyzeChartAnnotation");function i7(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=K1((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:_.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=UA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(i7,"analyzeSPVforView");function Ul(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=K1(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return i7(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=UA,m=`/${s}/@${Oc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=UA;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:T}=n7(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(Ul,"analyzeViewAnnotation");function r7(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(r7,"addALPChartView");function o7(e,t,n,i,r,a){var j,K,U,ae,Z,re,Pe,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(ae=(U=(K=t==null?void 0:t[0])==null?void 0:K.primary)==null?void 0:U[0])==null?void 0:ae[_.SchemaTag.annotationPath],{targetAnnotation:u}=Ul(l,s,n.serviceAVT,"primary",void 0,n.logger);r7(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,W1(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=Ul((Pe=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Pe[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),T=e.definitions[a];g||i?(T.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,T.properties.columns={$ref:$+_.DefinitionName.LineItems},T.properties.annotationPath[_.SchemaTag.hidden]=!0):T.properties={};let A=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${$}${_.DefinitionName.ALPTable}`):i||(A.properties={}),A[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,O;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],O=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=O=i.split(_.UIVOCABULARYDOT)[1]),b){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};Pc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[O].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Sc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;ba(e,r,n.logger,void 0,F),po(e,F,_.DefinitionName.CustomActionPosition)}o(o7,"addALPViews");function a7(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return W1(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(a7,"addViewChartDefinitions");function s7(e,t,n,i,r,a){let s=a7(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(s7,"addViewChart");function c7(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=bt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Xa(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},Xa(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Pc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(c7,"addViewLineItems");function l7(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(l7,"addTagsToView");function f7(e,t,n){var a;let i=n.entityType,r=e;return t.entitySet&&t.entitySet!==e.name&&(r=(a=n.serviceAVT)==null?void 0:a.entitySets.find(s=>s.name===t.entitySet),i=r.entityType),i}o(f7,"getTargetEntityType");function u7(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Oc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=bt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Xa(l.properties.position,_.DefinitionName.ViewPosition,r),bt(_.DefinitionName.ViewPosition,r,e.appSchema),Sc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;ba(e.appSchema,i,t.logger,p,u,s),bt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,po(e.appSchema,u,g)}o(u7,"addViewCustomExtensions");function p7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)c7(n,t,e,n.targetAnnotation,i),u7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)s7(n,a,n.appSchema,t,n.viewKey,n.title);else if(s.template){let l=s.label||`Custom View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.LRTableView}`}}}o(p7,"addLRViewParts");function d7(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=f7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:T,targetAnnotation:A,namespace:b,title:O}=Ul(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(K=>K.targetTypeName===b))==null?void 0:l.name);let F=dt(u[_.SchemaTag.key]),j={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:O,entitySet:u.entitySet};p7(T,s,j,n,i,m,u),l7(s,F,b,u)}}o(d7,"addLRViews");function g7(e,t,n,i,r,a){var g,m,T,A,b,O,F,j,K,U,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=Ul(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Pe=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${dt(Pe)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],Xa(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},Xa(ut.properties.columns,D),delete s.properties,Xa(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];yt||se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOTARGET",{target:Pe})});let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};Pc(Ue);let an=(T=Pe.split("#"))==null?void 0:T[1],Gn=an?`@${Oc.UIAnnotationTerms.LineItem}#${an}`:`@${Oc.UIAnnotationTerms.LineItem}`;Sc(e,i,t.logger,void 0,D,Gn),Cc(e,D,i,void 0,Gn);let en=`${_.DefinitionName.Actions}<${D}>`,Lt=gm(e,D,_.DefinitionName.CustomTableAction);ba(e,i,t.logger,yn(Lt),en,Gn),po(e,en,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,Xa(s.properties.columns,_.DefinitionName.LineItems);let Pe=(O=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:O.LineItem;!Pe&&!((K=(j=(F=i.options)==null?void 0:F.settings)==null?void 0:j.views)!=null&&K.paths)&&se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};Pc(D),Sc(e,i,t.logger),Cc(e,_.DefinitionName.LineItems,i),Pe&&!((Z=(ae=(U=i.options)==null?void 0:U.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=mr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Pe.term,Pe.qualifier));let ut=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;ba(e,i,t.logger,void 0,ut),po(e,ut,_.DefinitionName.CustomActionPosition)}}o(g7,"adaptTableDefinition");function m7(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(m7,"getDefaultAnnotationPath");function h7(e,t,n,i){var u,p,g,m,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=m7(t,n.entityType,n.templateType),l=B1(e,n);t7(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(g7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],d7(e,r,n,t,l)):(T=(m=t.options)==null?void 0:m.settings)!=null&&T.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(o7(e,r,n,s,t,l),Cc(e,_.DefinitionName.LineItems,t))}o(h7,"addTableAndViews");function y7(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",_h(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;bt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,po(e,i,l)}o(y7,"addHeaderActions");function tp(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,Ka(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:_.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Dh(l,n,e.entitySet,i);if(!u)return r;y7(r,u,e.logger),h7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Do(r,zX),r}o(tp,"generateListReportSchemaV4");var Pr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ie(le());var kV=ie(qs()),jV=ie(MV()),UV=ie(PS());var $V=ie(le()),BV=ie(le());function H6(e,t){var i;let n=e;for(let r of t){let a=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=a==null?void 0:a[r.index]}return n}o(H6,"findElementByXMLPath");function HV(e,t){return e[t]?!1:(e[t]={},!0)}o(HV,"ensureObjectExists");function G6(e,t){let n={},i=yn(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}o(G6,"getPropertiesFromRef");function W6(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=HV(l,i),m=l[i];return Vc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(W6,"traverseDefaultAggregation");function K6(e,t){var n,i,r;return(t==null?void 0:t.defaultAggregation)&&((r=(i=(n=e[t.defaultAggregation])==null?void 0:n.metadata)==null?void 0:i.path)==null?void 0:r.length)===0}o(K6,"isDefaultAggregationAppliable");function Vc(e,t){var g,m;let{schema:n,element:i,contextPath:r,config:a={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=G6(s,n.$ref));for(let T in u){let A=u[T],b=typeof A=="object";if(b&&(p==null?void 0:p.defaultAggregation)===T&&K6(u,p)&&(l=W6(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,F=O.slice(r.length),j=H6(i,F);l=HV(a,T)||l;let K=a[T];l=Vc({fullSchema:e.fullSchema,schema:A,element:j,contextPath:O,config:K,parent:e},t)||l}else l=t(e,A,a,T)||l}return l}o(Vc,"traverseSchema");function rf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,UV.parse)(e.fileContent),s=(0,jV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,kV.xml2js)(e.fileContent)}catch(r){se(n,{severity:BV.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:Hg(r)}),location:{path:e.dataSourceUri}})}return i}o(rf,"parseXML");function of(e){return`${$V.DefinitionName.CustomExtensionFragment}<${e}>`}o(of,"getCustomExtensionFragmentDefinitionKey");function xy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(xy,"getRootElement");var VS=ie(le()),wS=ie(le());var Op=ie(le());function Es(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(Es,"getAttribute");function GV(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(GV,"getNodeByName");function X6(e){let t=e.split("/"),n=[],i;for(let r of t)if(r){if(r.startsWith("@")){i=r;break}n.push(r)}return n.length?{path:n.join("/"),term:i}:{term:e}}o(X6,"resolveMetaPath");function LS(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Es(t,"contextPath")||i.contextPath,a=Es(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let O=X6(a);O.path&&(u=l?O.path:`${u}/${O.path}`,a=O.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((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(LS,"getEntityTypeResolution");function WV(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(WV,"applyAnnotationPath");function Q6(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=Ul(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(g.visualization){let m=g.visualization.split(".")[1];a=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],a!=null&&a.fullyQualifiedName&&(s=mb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(Q6,"getTableLineItemAnnotationData");var KV={"sap.fe.macros.Chart":o(e=>{let t=LS(e);WV(e.schema,t)},"sap.fe.macros.Chart"),"sap.fe.macros.FilterBar":o(e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=LS(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Op.UIVOCABULARY,n),m=g&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[g])==null?void 0:p[r.annotationKey]);$A(r.entityType,i,m,a,r.qualifier)}},"sap.fe.macros.FilterBar"),"sap.fe.macros.Table":o(e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=LS(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(Op.UIVOCABULARY,n);if(WV(t,r),t.annotationPath){let u=Q6(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={isObjectPage:!1,appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Op.DefinitionName.LineItems};jA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var XV=ie(le());var q6=new Map([["filterFields","SelectionField::"]]),z6=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Np={anchor:"anchor",placement:"placement",key:"key"};function Y6(e,t){var n;if(typeof(e==null?void 0:e.additionalProperties)=="object"&&(e!=null&&e.additionalProperties.$ref)){let i=(n=t.definitions)==null?void 0:n[yn(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return Np.anchor in r&&Np.placement in r}return!1}o(Y6,"isCustomExtensionSchema");function QV(e){let t=q6.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=z6.get(e),t&&(n.prefix=t)),n}o(QV,"getAnnotationPrefix");function J6(e,t,n,i){let r=t.properties[n],a=QV(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Es(l,Np.key)||n,p=Es(l,Np.anchor),g=Es(l,Np.placement)||XV.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(J6,"getExtensionData");function Z6(e,t,n){let i={},r=[],a={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=J6(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}Ta(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(Z6,"updatePropertyIndices");function eQ(e,t,n,i){var a;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((a=i==null?void 0:i.metadata)!=null&&a.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Es(e.subElements[s],"key")||r}return r}o(eQ,"getCorrectedAnchorEnumKey");function tQ(e,t,n,i){var a,s;let r=QV(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;Qa(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=eQ(e,m.const,r,t.properties[m.const]))}}o(tQ,"applyEnumsForAnchors");function qV(e,t,n,i){Y6(t,n)&&(i=i||e.name,Z6(e,t,i),tQ(e,t,n,i))}o(qV,"handleExtensions");var ui=[];for(let e=0;e<256;++e)ui.push((e+256).toString(16).slice(1));function zV(e,t=0){return(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase()}o(zV,"unsafeStringify");var YV=require("crypto");var Oy=new Uint8Array(256),Iy=Oy.length;function RS(){return Iy>Oy.length-16&&((0,YV.randomFillSync)(Oy),Iy=0),Oy.slice(Iy,Iy+=16)}o(RS,"rng");var JV=require("crypto"),FS={randomUUID:JV.randomUUID};function nQ(e,t,n){var r;if(FS.randomUUID&&!t&&!e)return FS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??RS();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return zV(i)}o(nQ,"v4");var DS=nQ;var _S="sap.fe.macros",iQ=["id","key","title","text","label","header"];function ZV(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(ZV,"getElementName");function rQ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(rQ,"isElementWithNamespace");function oQ(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:a}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[a]=s}return t}o(oQ,"getDependencies");function aQ(e,t){let n="",i=e.attributes||[];for(let r of iQ){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(aQ,"getViewNodeDescription");function sQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(sQ,"findAvailableName");function ew(e,t){if(e.properties={},e.$ref){let n=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(ew,"prepareSchemaProperties");function cQ(e,t,n){t.properties||ew(t,n);let{properties:i={}}=t;for(let r of e.attributes){let a=i[r.key];a&&a.metadata&&(a.metadata.position=r.position)}}o(cQ,"handleAttributes");function lQ(e){e.type===wS.MacrosPropertyType.Control&&(e.internalId=DS())}o(lQ,"applyIdForMacros");function fQ(e,t,n){var i,r;try{(r=(i=KV)[e])==null||r.call(i,t)}catch{se(n,{severity:VS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(fQ,"callAnnotationHandler");function uQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===wS.MacrosPropertyType.Control&&(e.controlName=n)}o(uQ,"updateMetadataByReference");function pQ(e,t,n,i){var T,A,b,O,F;let r=n.schema;t.properties||ew(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?sQ(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(yn(a.$ref)):g=[`${_S}.${i}`,`${_S}.table.${i}`,`${_S}.filterBar.${i}`];let m=!1;for(let j of g){let K=(F=r.definitions)==null?void 0:F[j];if(typeof K!="object")continue;uQ(u,K,j);let U=aQ(e,i),ae={$ref:KF(j),description:U,propertyIndex:n.index,metadata:u};cQ(e,ae,r),t.properties[p]=ae,m=!0,fQ(j,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(lQ(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=j}return p}o(pQ,"addControlToSchema");function tw(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let a=r.$ref.split($)[1];a&&t.indexOf(a)===-1&&t.push(a)}tw(r,t)}}o(tw,"populateUsedDefinitionKeys");function dQ(e,t){if(typeof t=="object"&&typeof t.additionalProperties=="object"&&t.additionalProperties.$ref){let i=t.additionalProperties.$ref.split(".");if(i[i.length-1]===e.name)return!0}return!1}o(dQ,"isElementAddableToSchema");function gQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!GV(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(gQ,"getDefaultAggregation");function mQ(e,t,n,i){let r={};for(let a=0;a<e.length;a++){let s=e[a],l=!r[s.name];r[s.name]=!0,nw(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:ZV(s),index:a}]},i)}}o(mQ,"handleSubElementsOfXMLNode");function nw(e,t,n,i){var g,m,T;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[yn(t.$ref)]:t;if(rQ(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(T=t.metadata)==null?void 0:T.defaultAggregation;A&&dQ(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),O=pQ(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),tw(t,i));let p=gQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),mQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)qV(A.node,A.schema,n.schema,A.name)}o(nw,"handleXMLNode");function hQ(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}o(hQ,"getMacrosPrefixes");function wc(e,t,n,i){let r=rf(t.file,!0,i),a=[];if(!r)return;nn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:VS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=oQ(l),p=hQ(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let T=l.subElements[m],A=!g[T.name];g[T.name]=!0,nw(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:ZV(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(wc,"generateMacrosSchemaDefinition");function iw(e,t){if(typeof e=="object")for(let n in e){let i=e[n];"template"in i&&i.template&&typeof i.template=="string"&&t.push(i.template),"subSections"in i&&iw(i.subSections,t)}}o(iw,"populateTemplates");function rw(e,t,n,i){var s,l,u;let r=xc(n.manifest,i),a=[];iw(((u=(l=(s=r==null?void 0:r.options)==null?void 0:s.settings.content)==null?void 0:l.body)==null?void 0:u.sections)||{},a);for(let p of a){if(!p)continue;let g={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=of(p);e.definitions[m]=g;let T=Ic(n.fragments,r,n.manifest,"fragment",p);if(T){g.metadata.filePath=T.relativeFilePath;let{properties:A={},definitions:b={}}=wc(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(rw,"resolveFragments");var yQ=["header","layout","sections","footer"],vQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],MS="Custom Action";function kS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=fm(t.item,e),p=da(t.item),g=t.item.fullyQualifiedName.replace(`@${Pr.UIAnnotationTerms.Identification}`,`/@${Pr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,T=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:Ai(t.item,r)};T[N.SchemaTag.isViewNode]=!0,T[N.SchemaTag.dataType]=oo(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(kS,"addSingleHeaderActionV4");function ow(e,t,n,i){let r=`${e}Action`,a=`ObjectPageHeaderAction<${r}>`,s=t.definitions[a]={type:"object",description:`${e}`,additionalProperties:!0};return s[N.SchemaTag.isViewNode]=!0,s[N.SchemaTag.propertyIndex]=i,s[N.SchemaTag.keys]=[],s[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:e}),s[N.SchemaTag.actionType]=N.ActionType.Standard,n.properties[r]={$ref:`${$}${a}`},n.properties[r][N.SchemaTag.propertyIndex]=i,s}o(ow,"addStandardHeaderAction");function aw(e,t,n,i,r,a){let s=da(e.item),l=Ai(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Pr.UIAnnotationTerms.Identification}`,`/@${Pr.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(aw,"addSingleFooterAction");function TQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Pr.UIAnnotationTypes.DataFieldForAction||i.$Type===Pr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(vQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(TQ,"groupByCriticality");function bQ(e,t,n,i,r){for(let a=0;a<e.length;a++)kS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(bQ,"addCriticalActions");function EQ(e,t,n,i,r,a){let s=e.findIndex(l=>{var u,p;return((p=(u=l.item.annotations)==null?void 0:u.UI)==null?void 0:p.IsCopyAction)!==void 0});s>-1&&(kS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(EQ,"addCopyAction");function AQ(e,t,n,i,r,a){for(let s of e)kS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(AQ,"addUncriticalActions");function SQ(e){let t="RelatedApps",n=e.properties[t]={$ref:`${$}${t}`,description:"Related Apps"};n[N.SchemaTag.propertyIndex]=Object.keys(e.properties).length-1,n[N.SchemaTag.artifactType]=N.ArtifactType.Manifest,n[N.SchemaTag.actionType]=N.ActionType.Standard,n[N.SchemaTag.isViewNode]=!0,n[N.SchemaTag.keys]=[{name:N.SchemaKeyName.action,value:t}]}o(SQ,"addRelatedAppsButton");function sw(e,t,n,i){var r,a,s,l;(a=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&a[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[N.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`:e[N.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${N.UIVOCABULARYALPHADOT}${i}`}o(sw,"setAnnotationPathFromEntitySetOrEntityType");function PQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?TQ(n):{};if(bQ(s,r.serviceAVT,t,e,i),r.entitySet){let p=A0(r.entitySet),g=S0(r.entitySet);if(im(r.entitySet)&&g){let m=ow("Edit",t,i,s.length);sw(m,r.entitySet,e,"UpdateHidden")}if(p){let m=ow("Delete",t,i,s.length+1);sw(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;EQ(l,r.serviceAVT,t,e,i,u),AQ(l,r.serviceAVT,t,e,i,u),lw(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),SQ(i)}o(PQ,"addHeaderActionCallBackV4");function CQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Pr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):a.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];aw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];aw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(CQ,"addFooterActionCallBackV4");function xQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Pr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomColumnOP}<${n}>`:N.DefinitionName.CustomColumnOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${N.DefinitionName.CustomColumnOP}<${n}>`;Sc(e,t,r,u,n,i);let p=a?n:N.DefinitionName.PositionOP;bt(N.DefinitionName.PositionOP,p,e,a);let g=a?`${N.DefinitionName.PositionOP}<${n}>`:N.DefinitionName.PositionOP;l.properties.position.$ref=`${$}${g}`,Cc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&kA(m,l)}o(xQ,"addCustomColumnsOP");function IQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Pr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=MS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;ba(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}`,po(e,p,m)}o(IQ,"addTableCustomActionsOP");function lw(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=MS;let a=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.ObjectPageHeaderActions:N.DefinitionName.FooterActions;_h(e,t,i,n,a);let s=n===N.DefinitionName.CustomHeaderActionOP?N.DefinitionName.CustomHeaderActionPositionOP:N.DefinitionName.CustomFooterActionPositionOP;bt(s,s,e,!1),r.properties.position.$ref=`${$}${s}`,po(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(lw,"addHeaderFooterCustomActionsOP");function OQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=MS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;ba(e,t,r,l,u,i),bt(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,po(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(OQ,"addFormCustomActionsOP");function NQ(e,t,n,i,r,a,s){let l=ic(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=Si(N.DefinitionName.ObjectPageToolBar,t),g.properties.quickVariantSelection.$ref=Si(N.DefinitionName.QuickVariantSelectionV4OP,t);let m=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=Si(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Ka(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let T={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Pc(T,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),xQ(n,a,l,t,s),IQ(n,a,l,t,s),g}o(NQ,"handleLineItem");function fw(e,t,n,i,r,a,s){s&&Ny(s,t,N.DefinitionName.ObjectPageSectionTableV4);let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);ua(e,l,ic(t)),Ga(e,l,ic(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.$ref=Si(N.DefinitionName.ObjectPageTable,t);let u=NQ(e,t,n,i,r.serviceAVT,a,r.logger);return{sectionTable:l,table:u}}o(fw,"handleSectionTable");function LQ(e,t,n,i,r,a,s){let l;a===N.SectionType.Section?l=N.DefinitionName.ObjectPageSectionForm:a===N.SectionType.HeaderSection&&(l=N.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:Si(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),ua(e,u,n),Ga(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=lm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=ic(n);bt(N.DefinitionName.CustomFormActionOP,p,r),OQ(r,t,p,g,s)}}o(LQ,"handleFormIdentification");function cw(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);dl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=rc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(cw,"handleHeaderFacet");function RQ(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=s,u=Ai(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:Si(N.DefinitionName.ObjectPageToolBarAction,g),description:u};m[N.SchemaTag.propertyIndex]=a,m[N.SchemaTag.annotationType]=l.$Type;let T=bt(N.DefinitionName.ObjectPageToolBarAction,dt(g),n);T[N.SchemaTag.annotationPath]=hm(l),T[N.SchemaTag.dataType]=oo(l),T.properties={},a++})}return r}o(RQ,"handleChartActions");function FQ(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]=rc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=Si(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=Si(N.DefinitionName.ObjectPageToolBarActions,t);let s=RQ(e,t,n,i);return{chart:r,chartActions:s}}o(FQ,"handleChart");function uw(e,t,n,i,r=e.entityType,a=!1,s){let l=a?N.DefinitionName.CommonHeaderFacetSettings:N.DefinitionName.ObjectPageSectionChart,u=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart;i&&Ny(i,t,l);let p=mm(u,t),g=bt(l,p,n,!1);if(dl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[N.SchemaTag.annotationPath]=hm(e),g.properties.chart.$ref=Si(N.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:T}=FQ(e.target||e,t,n,r);return m[N.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:T}}o(uw,"handleSectionChart");function DQ(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${Ib(r,n.serviceAVT)}`,l=s.split(N.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(DQ,"getVisualizationKeyAndType");function _Q(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(_Q,"getTargetFromNavigation");function VQ(e,t,n){let i=e.target[N.FacetBase.PresentationVariant]?e.target[N.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=DQ(!!r,a,n),p=r?a:_Q(n,s,u),g=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(VQ,"getVisualizationProps");function Ny(e,t,n,i){e.properties[t]={$ref:Si(n,i||t)}}o(Ny,"addPropertyRef");function pw(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(pw,"getSectionPropertyRef");function wQ(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=pw(t,r);Ny(i,l,N.DefinitionName.ObjectPageSectionTableV4,u);let{sectionTable:p,table:g}=fw(e,u,n,{target:r.target,entityType:e.entityType},a,s);p[N.SchemaTag.annotationPath]=e.annotationPath,dl(e,p,t),delete p[N.SchemaTag.isViewNode],g[N.SchemaTag.annotationPath]=`/${r.namespace}/${r.key}`,g[N.SchemaTag.target]=r.namespace}o(wQ,"addPVLineItemSection");function MQ(e,t,n,i,r,a=!1){let s=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=pw(t,r);Ny(i,l,s,u);let{parentChartRef:p}=uw(r.target,u,n,void 0,e.entityType,a,r.namespace);p[N.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ua(e,p,t),GF(e,p)):dl(e,p,t)}o(MQ,"addPVChartSection");function kQ(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){se(a.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=VQ(e,t,a),u=r===N.SectionType.HeaderSection;l&&(l.type.startsWith(N.Visualization.Chart)?MQ(e,t,n,i,l,u):l.type.startsWith(N.Visualization.LineItem)&&wQ(e,t,n,i,l,a,s))}o(kQ,"handleSectionPresentationVariant");function jQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(jQ,"containsCollectionFacet");function UQ(e,t,n){var a;let i=`${N.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[N.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((a=r.properties)==null?void 0:a.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};Ys(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(UQ,"createCustomSubSectionReference");function $Q(e,t,n,i){var a,s,l,u;let r=(u=(l=(s=(a=t.options)==null?void 0:a.settings)==null?void 0:s.content)==null?void 0:l.body)==null?void 0:u.sections;if(r)for(let p in r){let g=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,ba(e,t,i,b,A,p),po(e,A,O)}}o($Q,"applyCustomActionsToCustomSections");function jS(e,t,n,i,r,a,s){var m,T,A,b,O;let l=!1,u;a&&s?(l=!jQ(a),u=UQ(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},H1(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&Qa(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];F.properties={},$Q(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(O=(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],j=F&&"subSections"in F?F.subSections:{};for(let K=g.oneOf.length-1;K>=0;K--){let U=g.oneOf[K];j[U.const]||(U.hidden=!0)}}}o(jS,"applyCustomSections");function BQ(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Ro(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let T in e.facets)US(a,e.facets,T,g,n,r,s,m);u&&jS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(BQ,"handleCollection");function US(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${ic(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:case N.FacetBase.SelectionPresentationVariant:{kQ(u,n,r,i,a,e,s);break}case N.FacetBase.CollectionFacet:{BQ(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];fw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{LQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{cw(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?cw(u,n,i,r,p):a===N.SectionType.Section&&uw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{lu(u,n,i,r,a);break}default:i.properties[n]=Ro(r,u,n)}}o(US,"addSection");function HQ(e,t,n){let i=Ug(e.entityType,e.serviceAVT,N.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[N.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[N.DefinitionName.Sections];for(let a in i)US(e,i,a,r,t,N.SectionType.Section,n);jS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(HQ,"addSections");function GQ(e,t,n,i){let r=jg(n,e.serviceAVT,N.FioriElementsVersion.v4,e.logger),a=t.definitions[N.DefinitionName.HeaderSections];if(a.properties={},a.additionalProperties=!1,!!r){for(let s in r)US(e,r,s,a,t,N.SectionType.HeaderSection,i);jS(a,t,e,i,N.DefinitionName.ObjectPageCustomHeaderSectionFragment),delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[N.DefinitionName.ObjectPageHeaderSectionAddress]}}o(GQ,"addHeaderSections");function WQ(e,t,n){let i=e.entityType;dm(t,i),pm(t,i,e,PQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Pr.UIAnnotationTerms.HeaderFacets}`),GQ(e,t,i,n)}o(WQ,"addHeader");function Lp(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=Dh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(WQ(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Pr.UIAnnotationTerms.Facets}`),Ys(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{rw(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}HQ(e,r,l),um(r,e,N.FioriElementsVersion.v4,CQ),lw(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Do(r,yQ),r}o(Lp,"generateObjectPageSchemaV4");function $S(e,t){return JSON.parse(JSON.stringify(t))}o($S,"generateFreestyleSchemaV4");var Qr=ie(le());function BS(e,t,n,i,r,a,s,l,u){let p=No(n,r),{entitySet:g,entityType:m}=Mc(p,s,t,r),T={templateType:Qr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Lp(T,e,s,l)}o(BS,"generateObjectPageInterfaceV4");function Ly(e,t,n,i,r,a,s){nn();let l=No(i,r),{entitySet:u,entityType:p}=Mc(l,s,n,r),g={templateType:e,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Qr.TemplateType.ListReportObjectPageV4?Qr.v4.FE_TEMPLATE_V4_LIST_REPORT:Qr.v4.FE_TEMPLATE_V4_ALP;return tp(g,t,m,s)}o(Ly,"generateListReportInterfaceV4");function HS(e,t,n,i,r,a){let s=No(n,a),l={templateType:e,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return $S(l,t)}o(HS,"generateFreestyleInterfaceV4");function GS(e,t,n,i,r,a,s){let l={};if(Ys(a,Qr.Features.BuildingBlocks)){let u=No(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?wc(e,p,u,s):{}}return l}o(GS,"generateFPMCustomPageInterfaceV4");var jc=require("@sap-ux/vocabularies-types/vocabularies/UI"),yw=ie(le());var kc=ie(le());var mw=new Map([[kc.PageTypeV2.ListReport,kc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[kc.PageTypeV2.ObjectPage,kc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),dw=o((e,t)=>{let n=["controllerNames","controllerName"];for(let i of n)i in e?t[i]=e[i]:i in t&&delete t[i]},"applyControllerNameProperties"),gw=o(e=>{var t;for(let[n,i]of mw)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let a=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${a}`}return r}},"getExtensionKeyForImport"),KQ=o((e,t)=>{let n="";for(let[r,a]of mw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),hw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${kc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=gw(n);i&&(t[i]={},dw(e[n],t[i]))}return Object.keys(t).length?t:void 0},"import"),export:o((e,t,n)=>{var a;let i=(t==null?void 0:t.id)||"",r=((a=t==null?void 0:t.settings)==null?void 0:a[n])||{};for(let s in r){let l=KQ(s,i);e[l]||(e[l]={}),dw(r[s],e[l])}for(let s in e){let l=gw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Dy=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),_y=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),XQ=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),zr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),Vy=o((e,t,n)=>zr(e)+`/@${jc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),wy=o(e=>zr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),As=o((e,t,n,i)=>zr(e)+`/@${jc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),WS=o((e,t,n,i)=>wy(e)+`/filterFields/${i}`,"getFilterFieldPath"),$i=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),pi=o((e,t,n,i,r)=>r?$i(e,t,n,i,r):zr(e)+`/@${jc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),My=o((e,t,n,i,r)=>pi(e,t,n,i,r)+yw.QUICKVARPATH,"getQuickVariantPath"),nr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),di=o((e,t,n,i,r)=>r?nr(e,t,n,i,r):zr(e)+`/@${jc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Yr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),Cr=o((e,t,n,i,r)=>r?Yr(e,t,n,i,r):zr(e)+`/@${jc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Bi=o((e,t,n,i)=>zr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>zr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>_y(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),ky=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),yo=o((e,t,n,i)=>XQ(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),dn=o((e,t,n)=>zr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),sf=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Ss=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"),cf=o((e,t,n,i,r,a,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=ft(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),Fy=class Fy{};o(Fy,"ApplicationV4"),h([jt("settings")],Fy.prototype,"settings",2);var Ry=Fy,qr=class qr{};o(qr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],qr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],qr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],qr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),C({since:"1.78.0"})],qr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),C({since:"1.56.0"})],qr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],qr.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],qr.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],qr.prototype,"path",2),h([y(hw)],qr.prototype,"controllerExtensions",2);var af=qr;var ye=ie(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=zn(e,g);if(m!=null&&m.manifest){let T=m.manifest.path([i],t,p,...r);l=Lo(t,T,a,p,!0),l&&Object.keys(l).length>0&&(ml(m,l,g,e,a,r),qg(u,l,T,s))}}}o(At,"importSettingsOfObject");var DC={};Xs(DC,{ALPChart:()=>qP,ALPTable:()=>yf,ActionAfterExecutionConfiguration:()=>mC,ActionAfterExecutionConfigurationFooter:()=>pP,ActionAfterExecutionConfigurationForm:()=>hP,ActionAfterExecutionConfigurationOP:()=>qp,ActionAfterExecutionConfigurationObjectPageHeader:()=>xP,ActionAfterExecutionConfigurationToolBarLR:()=>xC,Actions:()=>AC,AdditionalSemanticObject:()=>dC,CommonHeaderFacetSettings:()=>Fs,CommonViewSettings:()=>hf,CustomActionPosition:()=>NC,CustomActionPositionOP:()=>uC,CustomFilterField:()=>qS,CustomFilterFieldPosition:()=>QS,CustomFooterActionOP:()=>mP,CustomFooterActionPositionOP:()=>gP,CustomFormActionOP:()=>AP,CustomHeaderAction:()=>eP,CustomHeaderActionOP:()=>NP,CustomHeaderActionPosition:()=>_p,CustomHeaderActionPositionOP:()=>OP,CustomSectionActionOP:()=>sP,CustomSectionActionPositionOP:()=>aP,CustomTableAction:()=>LC,CustomTableActionOP:()=>pC,FilterBar:()=>KS,FlexSettings:()=>RP,FooterActionV4:()=>dP,FormAction:()=>yP,Header:()=>YS,HeaderActions:()=>zS,HeaderSections:()=>MP,LRChartView:()=>zP,LRTableView:()=>YP,MultiTableModeV4:()=>ZP,ObjectPageCustomHeaderSectionFlexSettings:()=>tP,ObjectPageCustomHeaderSectionFragment:()=>nP,ObjectPageCustomSectionActions:()=>iP,ObjectPageCustomSectionFragment:()=>ff,ObjectPageCustomSubSectionFragment:()=>rP,ObjectPageFooter:()=>lP,ObjectPageFooterActions:()=>cP,ObjectPageForm:()=>TP,ObjectPageFormActions:()=>vP,ObjectPageHeader:()=>PP,ObjectPageHeaderAction:()=>IP,ObjectPageHeaderActions:()=>SP,ObjectPageHeaderSectionAddress:()=>wP,ObjectPageHeaderSectionChart:()=>DP,ObjectPageHeaderSectionContact:()=>VP,ObjectPageHeaderSectionDataPoint:()=>_P,ObjectPageHeaderSectionForm:()=>FP,ObjectPageLayout:()=>GP,ObjectPageTable:()=>Kp,ObjectPageTableColumn:()=>Af,ObjectPageTableColumnAction:()=>aC,ObjectPageToolBarAction:()=>fC,PersonalizationType:()=>KP,PersonalizationTypeOP:()=>rC,Position:()=>vC,PositionOP:()=>sC,QuickVariantSelectionV4:()=>QP,QuickVariantSelectionV4OP:()=>oC,RelatedApps:()=>gC,Table:()=>eC,TableColumn:()=>Jy,TableColumnAction:()=>hC,TableCreationModeOP:()=>iC,TableCustomColumn:()=>bC,TableCustomColumnOP:()=>cC,TableSettings:()=>Wy,TableViewExtension:()=>JP,TableViewSettings:()=>Hp,ToolBar:()=>SC,ToolBarAction:()=>IC,ViewCustomActionPosition:()=>RC,ViewPersonalizationType:()=>XP,ViewPosition:()=>TC,ViewTableColumn:()=>Zy,ViewTableColumnAction:()=>yC,ViewTableCustomAction:()=>FC,ViewTableCustomColumn:()=>EC,ViewToolBarAction:()=>OC,VisualFilter:()=>XS,checkViewOrder:()=>tC,deleteCreationModeProperty:()=>Wp,deletePersonalizationProperty:()=>bo,exportCreationModeProperty:()=>Gp,exportPersonalization:()=>qy,exportPersonalizationProperty:()=>To});function QQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(QQ,"exportVisualFilterValueList");var lf=class lf{};o(lf,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],lf.prototype,"hideFilterBar",2),h([y({manifest:{path:wy}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],lf.prototype,"initialLayout",2),h([y({manifest:{path:wy}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],lf.prototype,"layout",2);var KS=lf,Rp=class Rp{};o(Rp,"VisualFilter"),h([y({manifest:{path:WS}}),C({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Rp.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:QQ,key:"visualFilter"}}),C({since:"1.93.0"})],Rp.prototype,"visualFilterValueList",2);var XS=Rp,Fp=class Fp{};o(Fp,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>As(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Fp.prototype,"placement",2);var QS=Fp,Ps=class Ps{};o(Ps,"CustomFilterField"),h([y({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"label",2),h([y({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"property",2),h([y({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"template",2),h([y({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"required",2),h([y({manifest:{path:As}}),C({since:"1.77.0"})],Ps.prototype,"position",2);var qS=Ps;var JS=class JS{};o(JS,"HeaderActions");var zS=JS,ZS=class ZS{};o(ZS,"Header");var YS=ZS;var Dp=class Dp{};o(Dp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Dp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Dp.prototype,"placement",2);var _p=Dp,Cs=class Cs{};o(Cs,"CustomHeaderAction"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Cs.prototype,"text",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Cs.prototype,"position",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Cs.prototype,"press",2),h([y({manifest:{path:gi},generate:qn}),C({since:"1.84.0"})],Cs.prototype,"visible",2),h([y({manifest:{path:gi},generate:qn}),C({since:"1.84.0"})],Cs.prototype,"enabled",2);var eP=Cs;var jy=class jy{};o(jy,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"flexSettings"),"path")}}),C({since:"1.81.0"})],jy.prototype,"designtime",2);var tP=jy,ir=class ir{};o(ir,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],ir.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>xr(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],ir.prototype,"relativePosition",2),h([y({manifest:{path:xr},generate:ri}),C({since:"1.84.0"})],ir.prototype,"visible",2),h([y({manifest:{path:xr}}),C({since:"1.77.0"})],ir.prototype,"title",2),h([y({manifest:{path:xr}}),C({since:"1.77.0"})],ir.prototype,"subTitle",2),h([y({manifest:{path:xr,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],ir.prototype,"fragmentName",2),h([y({manifest:{path:xr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),C({since:"1.86.0"})],ir.prototype,"templateEdit",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"stashed",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"flexSettings",2),h([y({manifest:{path:xr}}),C({since:"1.81.0"})],ir.prototype,"requestGroupId",2),h([y({manifest:{path:xr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],ir.prototype,"controls",2);var nP=ir;var oP=class oP{};o(oP,"ObjectPageCustomSectionActions");var iP=oP,xs=class xs{};o(xs,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"anchor"}}),C({since:"1.77.0"})],xs.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>sf(t,n,i,"position"),"path"),key:"placement"}}),C({since:"1.77.0"})],xs.prototype,"relativePosition",2),h([y({manifest:{path:sf}}),C({since:"1.77.0"})],xs.prototype,"title",2),h([y({manifest:{path:sf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],xs.prototype,"fragmentName",2),h([y({manifest:{path:sf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],xs.prototype,"controls",2);var ff=xs,Is=class Is extends ff{};o(Is,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"anchor"}}),C({since:"1.77.0"})],Is.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${cf.apply({},t)}/position`,"path"),key:"placement"}}),C({since:"1.77.0"})],Is.prototype,"relativePosition",2),h([y({manifest:{path:cf}}),C({since:"1.77.0"})],Is.prototype,"title",2),h([y({manifest:{path:cf,import:o(t=>t.name||t.template,"import"),key:"template"}}),C({since:"1.77.0"})],Is.prototype,"fragmentName",2),h([y({manifest:{path:cf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),C({since:"1.96.0"})],Is.prototype,"controls",2);var rP=Is;var Vp=class Vp{};o(Vp,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ss(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Vp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ss(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Vp.prototype,"placement",2);var aP=Vp,Os=class Os{};o(Os,"CustomSectionActionOP"),h([y({manifest:{path:Ss}}),C({since:"1.84.0"})],Os.prototype,"text",2),h([y({manifest:{path:Ss}}),C({since:"1.84.0"})],Os.prototype,"position",2),h([y({manifest:{path:Ss}}),C({since:"1.84.0"})],Os.prototype,"press",2),h([y({manifest:{path:Ss},generate:ri}),C({since:"1.84.0"})],Os.prototype,"visible",2),h([y({manifest:{path:Ss},generate:ri}),C({since:"1.84.0"})],Os.prototype,"enabled",2);var sP=Os;var fP=class fP{};o(fP,"ObjectPageFooterActions");var cP=fP,uP=class uP{};o(uP,"ObjectPageFooter");var lP=uP;var wp=class wp{};o(wp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>yo(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)=>yo(t,n,i,r)+"/afterExecution","path")}})],wp.prototype,"enableAutoScroll",2);var pP=wp,Uy=class Uy{};o(Uy,"FooterActionV4"),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Uy.prototype,"afterExecution",2);var dP=Uy,Mp=class Mp{};o(Mp,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Mp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Mp.prototype,"placement",2);var gP=Mp,Ns=class Ns{};o(Ns,"CustomFooterActionOP"),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Ns.prototype,"text",2),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Ns.prototype,"position",2),h([y({manifest:{path:yo}}),C({since:"1.84.0"})],Ns.prototype,"press",2),h([y({manifest:{path:yo},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"visible",2),h([y({manifest:{path:yo},generate:ri}),C({since:"1.84.0"})],Ns.prototype,"enabled",2);var mP=Ns;var kp=class kp{};o(kp,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(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)=>kn(t,n,i,r)+"/afterExecution","path")}})],kp.prototype,"enableAutoScroll",2);var hP=kp,$y=class $y{};o($y,"FormAction"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],$y.prototype,"afterExecution",2);var yP=$y,bP=class bP{};o(bP,"ObjectPageFormActions");var vP=bP,EP=class EP{};o(EP,"ObjectPageForm");var TP=EP;var Ls=class Ls{};o(Ls,"CustomFormActionOP"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ls.prototype,"text",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ls.prototype,"position",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Ls.prototype,"press",2),h([y({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ls.prototype,"visible",2),h([y({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Ls.prototype,"enabled",2);var AP=Ls;var CP=class CP{};o(CP,"ObjectPageHeaderActions");var SP=CP,uf=class uf{};o(uf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],uf.prototype,"editableHeaderContent",2),h([y({manifest:{path:_y}}),C({since:"1.84.0"})],uf.prototype,"visible",2),h([y({manifest:{path:_y}}),C({since:"1.84.0"})],uf.prototype,"anchorBarVisible",2);var PP=uf;var jp=class jp{};o(jp,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],jp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],jp.prototype,"enableAutoScroll",2);var xP=jp,By=class By{};o(By,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],By.prototype,"afterExecution",2);var IP=By,LP=class LP extends _p{};o(LP,"CustomHeaderActionPositionOP");var OP=LP,Rs=class Rs{};o(Rs,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Rs.prototype,"text",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Rs.prototype,"position",2),h([y({manifest:{path:gi}}),C({since:"1.84.0"})],Rs.prototype,"press",2),h([y({manifest:{path:gi},generate:ri}),C({since:"1.84.0"})],Rs.prototype,"visible",2),h([y({manifest:{path:gi},generate:ri}),C({since:"1.84.0"})],Rs.prototype,"enabled",2);var NP=Rs;var Hy=class Hy{};o(Hy,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>Vy(t,n,i)+"/flexSettings","path")}}),C({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],Hy.prototype,"designtime",2);var RP=Hy,Up=class Up{};o(Up,"CommonHeaderFacetSettings"),h([y({manifest:{path:Vy}}),C({since:"1.81.0"})],Up.prototype,"stashed",2),h([y({manifest:{path:Vy}}),C({since:"1.81.0"})],Up.prototype,"flexSettings",2);var Fs=Up,kP=class kP extends Fs{};o(kP,"ObjectPageHeaderSectionForm");var FP=kP,jP=class jP extends Fs{};o(jP,"ObjectPageHeaderSectionChart");var DP=jP,UP=class UP extends Fs{};o(UP,"ObjectPageHeaderSectionDataPoint");var _P=UP,$P=class $P extends Fs{};o($P,"ObjectPageHeaderSectionContact");var VP=$P,BP=class BP extends Fs{};o(BP,"ObjectPageHeaderSectionAddress");var wP=BP,HP=class HP{};o(HP,"HeaderSections");var MP=HP;var Gy=class Gy{};o(Gy,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Gy.prototype,"sectionLayout",2);var GP=Gy;var zy=ie(le());var WP=ie(le());var qQ=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function vo(e,t,n,i,r,a){let s=Dy(e),l=qQ(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[WP.SchemaTag.key]===(a==null?void 0:a.key)||g[WP.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(vo,"getSettingsPathForLRViewsPath");function zQ(e,t,n,i,r,a){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),g=e[u];t===g.key?s[n]=g:p>=i&&p<=r?s[Math.max(0,p+a)]=g:s[u]=g}return s}o(zQ,"fillNewlyOrderedViews");function tC(e,t){let n=t.key,i=e.findIndex(a=>(a==null?void 0:a.key)===n),r=t.index;if(i>-1&&i!==r){let a=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=zQ(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(tC,"checkViewOrder");function qy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(qy,"exportPersonalization");function To(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(To,"exportPersonalizationProperty");function bo(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(bo,"deletePersonalizationProperty");function nC(e,t,n,i,r,a){var l;let s;if(!t||Object.keys(t).length===0){let u=e;Object.keys(u).forEach(p=>{u[p]&&u[p].key===r&&(e[Number(p)]={},s=p)})}if(s){let u=(l=a.table)==null?void 0:l.views;for(let p in u)u[p].index>s&&u[p].index--}}o(nC,"deleteView");function Gp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Gp,"exportCreationModeProperty");function Wp(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(Wp,"deleteCreationModeProperty");function vw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(vw,"importPersonalization");function Tw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Tw,"determineIndexOfView");var pf=class pf{};o(pf,"PersonalizationType"),h([y({manifest:{path:pi,export:To,delete:bo}})],pf.prototype,"column",2),h([y({manifest:{path:pi,export:To,delete:bo}})],pf.prototype,"sort",2),h([y({manifest:{path:pi,export:To,delete:bo}})],pf.prototype,"filter",2);var KP=pf,df=class df{};o(df,"ViewPersonalizationType"),h([y({manifest:{path:$i,export:To,delete:bo}})],df.prototype,"column",2),h([y({manifest:{path:$i,export:To,delete:bo}})],df.prototype,"sort",2),h([y({manifest:{path:pi,export:To,delete:bo}})],df.prototype,"filter",2);var XP=df,gf=class gf{};o(gf,"QuickVariantSelectionV4"),h([y({manifest:{path:My}})],gf.prototype,"paths",2),h([y({manifest:{path:My}})],gf.prototype,"hideTableTitle",2),h([y({manifest:{path:My}})],gf.prototype,"showCounts",2);var QP=gf,rr=class rr{};o(rr,"TableSettings"),h([y({manifest:{path:pi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"type",2),h([y({manifest:{path:pi,import:vw,export:qy}}),C({since:"1.86.0"})],rr.prototype,"personalization",2),h([y({manifest:{path:pi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],rr.prototype,"selectionMode",2),h([y({manifest:{path:pi}}),C({since:"1.84.0"})],rr.prototype,"selectAll",2),h([y({manifest:{path:pi}}),C({since:"1.84.0"})],rr.prototype,"selectionLimit",2),h([y({manifest:{path:pi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],rr.prototype,"enableExport",2),h([y({manifest:{path:pi}}),C({since:"1.84.0"})],rr.prototype,"quickVariantSelection",2),h([y({manifest:{path:pi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],rr.prototype,"condensedTableLayout",2),h([y({manifest:{path:pi}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:pi}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:pi}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"disableCopyToClipboard",2);var Wy=rr,Ky=class Ky{};o(Ky,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:nC}})],Ky.prototype,"annotationPath",2);var qP=Ky,Uc=class Uc{};o(Uc,"CommonViewSettings"),h([y({manifest:{path:vo,delete:Js}})],Uc.prototype,"key",2),h([y({manifest:{path:Dy,import:Tw,export:o((t,n)=>{tC(t,n)},"export"),delete:nC}})],Uc.prototype,"index",2),h([y({manifest:{path:vo,delete:Js}})],Uc.prototype,"annotationPath",2),h([y({manifest:{path:vo}})],Uc.prototype,"entitySet",2);var hf=Uc,or=class or extends hf{};o(or,"TableViewSettings"),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"type",2),h([y({manifest:{path:$i,import:vw}}),C({since:"1.86.0"})],or.prototype,"personalization",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectionMode",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectAll",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"selectionLimit",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],or.prototype,"enableExport",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"})],or.prototype,"quickVariantSelection",2),h([y({manifest:{path:$i}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],or.prototype,"condensedTableLayout",2),h([y({manifest:{path:$i}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:$i}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],or.prototype,"hierarchyQualifier",2),h([y({manifest:{path:$i}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"disableCopyToClipboard",2);var Hp=or;function YQ(e){return Hp}o(YQ,"getTableViewSettings");var $p=class $p extends Hp{};o($p,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Js}})],$p.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],$p.prototype,"initialLoad",2);var yf=$p,Xy=class Xy extends hf{};o(Xy,"LRChartView"),h([y({manifest:{path:vo},generate:qn})],Xy.prototype,"visible",2);var zP=Xy,mf=class mf extends YQ(hf){};o(mf,"LRTableView"),h([y({manifest:{path:vo}})],mf.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:vo}})],mf.prototype,"entitySet",2),h([y({manifest:{path:vo},generate:qn})],mf.prototype,"visible",2);var YP=mf,Ds=class Ds{};o(Ds,"TableViewExtension"),h([y({manifest:{path:vo}})],Ds.prototype,"key",2),h([y({manifest:{path:Dy,import:Tw,export:o((t,n)=>{tC(t,n)},"export"),delete:nC}})],Ds.prototype,"index",2),h([y({manifest:{path:vo}})],Ds.prototype,"label",2),h([y({manifest:{path:vo}})],Ds.prototype,"template",2),h([y({manifest:{path:vo},generate:qn})],Ds.prototype,"visible",2);var JP=Ds,Qy=class Qy{};o(Qy,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],Qy.prototype,"showCounts",2);var ZP=Qy,Bp=class Bp extends Wy{};o(Bp,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Js}})],Bp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Bp.prototype,"initialLoad",2);var eC=Bp;var vf=class vf{};o(vf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Gp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Wp(t,r)},"delete")}})],vf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Gp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Wp(t,r)},"delete")}})],vf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:o((t,n,i)=>{Gp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Wp(t,r)},"delete")}})],vf.prototype,"inlineCreationRowsHiddenInEditMode",2);var iC=vf,Tf=class Tf{};o(Tf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],Tf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],Tf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i),"path"),export:To,delete:bo}})],Tf.prototype,"filter",2);var rC=Tf,bf=class bf{};o(bf,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+zy.QUICKVARPATH,"path")}})],bf.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+zy.QUICKVARPATH,"path")}})],bf.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>dn(t,n,i)+zy.QUICKVARPATH,"path")}})],bf.prototype,"showCounts",2);var oC=bf,mi=class mi{};o(mi,"ObjectPageTable"),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],mi.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")}}),C({since:"1.84.0"})],mi.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:qy}}),C({since:"1.86.0"})],mi.prototype,"personalization",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],mi.prototype,"selectionMode",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],mi.prototype,"selectAll",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],mi.prototype,"selectionLimit",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],mi.prototype,"enableExport",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],mi.prototype,"quickVariantSelection",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],mi.prototype,"condensedTableLayout",2),h([y({manifest:{path:dn}}),C({since:"1.86.0"})],mi.prototype,"enableFullScreen",2),h([y({manifest:{path:dn}}),C({since:"1.84.0"})],mi.prototype,"enablePaste",2),h([y({manifest:{path:dn}}),C({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],mi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:dn}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],mi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:dn}}),C({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],mi.prototype,"disableCopyToClipboard",2);var Kp=mi;var Xp=class Xp{};o(Xp,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Xp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}})],Xp.prototype,"enableAutoScroll",2);var qp=Xp,Ef=class Ef{};o(Ef,"ObjectPageTableColumn"),h([y({manifest:{path:Bi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Ef.prototype,"width",2),h([y({manifest:{path:Bi}}),C({since:"1.85.0"})],Ef.prototype,"availability",2),h([y({manifest:{path:Bi}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Ef.prototype,"widthIncludingColumnHeader",2);var Af=Ef,lC=class lC extends Af{};o(lC,"ObjectPageTableColumnAction");var aC=lC,Qp=class Qp{};o(Qp,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Qp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],Qp.prototype,"placement",2);var sC=Qp,Xo=class Xo{};o(Xo,"TableCustomColumnOP"),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Xo.prototype,"position",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Xo.prototype,"header",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Xo.prototype,"template",2),h([y({manifest:{path:Bi}}),C({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),C({since:"1.84.0"})],Xo.prototype,"availability",2),h([y({manifest:{path:Bi}}),C({since:"1.85.0"})],Xo.prototype,"properties",2);var cC=Xo;var Yy=class Yy{};o(Yy,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],Yy.prototype,"enableOnSelect",2);var fC=Yy,zp=class zp{};o(zp,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],zp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),C({since:"1.84.0"})],zp.prototype,"placement",2);var uC=zp,Oa=class Oa{};o(Oa,"CustomTableActionOP"),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"text",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"position",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"press",2),h([y({manifest:{path:kn}}),C({since:"1.84.0"})],Oa.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Oa.prototype,"visible",2),h([y({manifest:{path:kn},generate:ri}),C({since:"1.84.0"})],Oa.prototype,"enabled",2);var pC=Oa;var Sf=class Sf{};o(Sf,"AdditionalSemanticObject"),h([y({manifest:{path:ky}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.108.0"})],Sf.prototype,"allowedActions",2),h([y({manifest:{path:ky}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Sf.prototype,"unavailableActions",2),h([y({manifest:{path:ky}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),C({since:"1.96.0"})],Sf.prototype,"mapping",2);var dC=Sf,Yp=class Yp{};o(Yp,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Yp.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],Yp.prototype,"additionalSemanticObjects",2);var gC=Yp;var Jp=class Jp{};o(Jp,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Jp.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}})],Jp.prototype,"enableAutoScroll",2);var mC=Jp,Pf=class Pf{};o(Pf,"TableColumn"),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Pf.prototype,"width",2),h([y({manifest:{path:di}}),C({since:"1.85.0"})],Pf.prototype,"availability",2),h([y({manifest:{path:di}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Pf.prototype,"widthIncludingColumnHeader",2);var Jy=Pf,Cf=class Cf{};o(Cf,"ViewTableColumn"),h([y({manifest:{path:nr}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Cf.prototype,"width",2),h([y({manifest:{path:nr}}),C({since:"1.85.0"})],Cf.prototype,"availability",2),h([y({manifest:{path:di}}),C({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Cf.prototype,"widthIncludingColumnHeader",2);var Zy=Cf,ev=class ev extends Jy{};o(ev,"TableColumnAction"),h([y({manifest:{path:di}}),C({since:"1.84.0"})],ev.prototype,"afterExecution",2);var hC=ev,tv=class tv extends Zy{};o(tv,"ViewTableColumnAction"),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],tv.prototype,"afterExecution",2);var yC=tv,Zp=class Zp{};o(Zp,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],Zp.prototype,"placement",2);var vC=Zp,ed=class ed{};o(ed,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],ed.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],ed.prototype,"placement",2);var TC=ed,Qo=class Qo{};o(Qo,"TableCustomColumn"),h([y({manifest:{path:di}}),C({since:"1.84.0"})],Qo.prototype,"position",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],Qo.prototype,"header",2),h([y({manifest:{path:di}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qo.prototype,"width",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],Qo.prototype,"template",2),h([y({manifest:{path:di}}),C({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),h([y({manifest:{path:di}}),C({since:"1.84.0"})],Qo.prototype,"availability",2),h([y({manifest:{path:di}}),C({since:"1.85.0"})],Qo.prototype,"properties",2);var bC=Qo,qo=class qo{};o(qo,"ViewTableCustomColumn"),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],qo.prototype,"position",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],qo.prototype,"header",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],qo.prototype,"width",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],qo.prototype,"template",2),h([y({manifest:{path:nr}}),C({since:"1.86.0"})],qo.prototype,"horizontalAlign",2),h([y({manifest:{path:nr}}),C({since:"1.84.0"})],qo.prototype,"availability",2),h([y({manifest:{path:nr}}),C({since:"1.85.0"})],qo.prototype,"properties",2);var EC=qo;var PC=class PC{};o(PC,"Actions");var AC=PC,CC=class CC{};o(CC,"ToolBar");var SC=CC;var td=class td{};o(td,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],td.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/afterExecution","path")}})],td.prototype,"enableAutoScroll",2);var xC=td,nd=class nd{};o(nd,"ToolBarAction"),h([y({manifest:{path:Cr}})],nd.prototype,"enableOnSelect",2),h([y({manifest:{path:Cr}})],nd.prototype,"afterExecution",2);var IC=nd,id=class id{};o(id,"ViewToolBarAction"),h([y({manifest:{path:Yr}})],id.prototype,"enableOnSelect",2),h([y({manifest:{path:Yr}})],id.prototype,"afterExecution",2);var OC=id,rd=class rd{};o(rd,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Cr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],rd.prototype,"placement",2);var NC=rd,Na=class Na{};o(Na,"CustomTableAction"),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Na.prototype,"text",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Na.prototype,"position",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Na.prototype,"press",2),h([y({manifest:{path:Cr}}),C({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([y({manifest:{path:Cr},generate:qn}),C({since:"1.84.0"})],Na.prototype,"visible",2),h([y({manifest:{path:Cr},generate:qn}),C({since:"1.84.0"})],Na.prototype,"enabled",2);var LC=Na,od=class od{};o(od,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],od.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),C({since:"1.84.0"})],od.prototype,"placement",2);var RC=od,La=class La{};o(La,"ViewTableCustomAction"),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],La.prototype,"text",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],La.prototype,"position",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],La.prototype,"press",2),h([y({manifest:{path:Yr}}),C({since:"1.84.0"})],La.prototype,"requiresSelection",2),h([y({manifest:{path:Yr},generate:qn}),C({since:"1.84.0"})],La.prototype,"visible",2),h([y({manifest:{path:Yr},generate:qn}),C({since:"1.84.0"})],La.prototype,"enabled",2);var FC=La;var MC={};Xs(MC,{FreestylePage:()=>VC,ListReport:()=>Ir,ObjectPage:()=>Eo});function JQ(e){var t,n,i,r;((n=(t=e.paths)==null?void 0:t[0])!=null&&n.primary||(r=(i=e.paths)==null?void 0:i[0])!=null&&r.secondary)&&Object.keys(e).forEach(a=>delete e[a])}o(JQ,"deleteAllALPViews");function ZQ(){}o(ZQ,"doNotExport");function eq(){}o(eq,"doNotImport");var Ir=class{};o(Ir,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:eq,export:ZQ,delete:JQ}})],Ir.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"})],Ir.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Ir.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}})],Ir.prototype,"defaultTemplateAnnotationPath",2),h([jt("header")],Ir.prototype,"header",2),h([jt("fe::FilterBar")],Ir.prototype,"filterBar",2),Ir=h([jr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Ir);var _C=ie(le());var Eo=class{};o(Eo,"ObjectPage"),h([jt("header")],Eo.prototype,"header",2),h([jt("layout")],Eo.prototype,"layout",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),C({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f26d42bea11c4deda82c7a2e00c9bc05")],Eo.prototype,"variantManagement",2),h([jt("sections")],Eo.prototype,"sections",2),Eo=h([jr({id:`${_C.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:_C.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Eo);var wC=class wC{};o(wC,"FreestylePage");var VC=wC;var nv=ie(le());var tq={ALPTableView:yf},nq={ALPTableView:yf},iq={Table:Kp,TableColumn:Af,ObjectPageCustomSectionView:ff,ActionAfterExecutionConfiguration:qp},rq={[nv.PageTypeV4.AnalyticalListPage]:tq,[nv.PageTypeV4.ListReport]:nq,[nv.PageTypeV4.ObjectPage]:iq},kC=class kC extends jl{constructor(){super(DC,MC,rq)}};o(kC,"MetadataInstanceFactoryV4");var Ra=kC;var jC=require("@sap-ux/vocabularies-types/vocabularies/UI");function UC(e,t,n,i,r,a,s){var g,m,T,A,b,O;let l=t.jsonSchema.definitions,u=a&&a!==`@${jC.UIAnnotationTerms.LineItem}`?a:ye.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let K=l[u].properties[F].$ref.split($)[1].split("<")[0];e.columns[F]=n.createInstance(i,K);let U=s||a;At(e.columns[F],t.manifest,l[K],r,[F,U],U,t.logger),_o(e.columns,F)}_o(e,"columns")}else{let F=(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;(!F||F.paths.length<1)&&se(t.logger,{severity:ye.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(UC,"transferColumns");function oq(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])}}_o(t,"visualFilters")}}o(oq,"importVisualFilters");function aq(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=`@${jC.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]),_o(t.toolBar.actions,g)}}}o(aq,"importActions");function $C(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,[]),aq(e,u,n,i,r,a,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}o($C,"transferToolBar");function bw(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ye.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(bw,"determineTargetAnnotationOfView");function sq(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);$C(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[ye.SchemaTag.key],m]),UC(g,e,n,i,r,void 0,m)}}o(sq,"importALPViews");function cq(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(cq,"getViewTypeByDefinition");function lq(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=cq(g),T=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,b=bw(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]}`;$C(e,T,n,i,r,O,b),UC(T,e,n,i,r,O,b)}Object.keys(T).length===0&&delete a[p[0]]}_o(t.table,"views")}o(lq,"importLRViews");function fq(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("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}o(fq,"transferHeaderActions");function uq(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(uq,"importCustomFilterFields");function pq(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,[]),fq(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,[]),oq(e,t.filterBar,n,i,r),uq(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=bw(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),$C(e,t,n,i,r,u),UC(t.table,e,n,i,r,u,p),lq(e,t,n,i,r)}else a===ye.SchemaType.AnalyticalListPage&&sq(e,t,n,i,r)}o(pq,"addSettings");function $c(e,t){if(nn(),!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 Ra,r=i.createPageInstance(ye.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=pb(s);if("name"in s&&(l===ye.PageTypeV4.ListReport||l===ye.PageTypeV4.AnalyticalListPage)){pq(e,r,i,ye.PageTypeV4.ListReport,a,t);break}}return r}o($c,"createListReportConfig");var Te=ie(le()),Bc=require("@sap-ux/vocabularies-types/vocabularies/UI");function dq(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(dq,"isBoolean");function gq(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(gq,"isNumber");function mq(e,t){let n=e.toString();return dq(n,t)?n==="true":gq(n,t)?parseFloat(n):e}o(mq,"convertValue");function hq(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=mq(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(hq,"importProperty");function Ew(e,t,n){let i,r=rf(e.file,!1,n);if(r){let a=xy(r);i={},Vc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},hq)}return i}o(Ew,"convertXmlFileToConfig");function iv(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Bo(t||[],r,n,a),l;return s&&(l=Ew(s,i,e.logger)),l}o(iv,"createCustomPageConfig");function ad(e,t){var T;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=of(t),u=(T=r.definitions)==null?void 0:T[l];if(!r||!u)return;let p=xc(i,a),g=Ic(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=Ew(g,A,s)}return m}o(ad,"createCustomFragmentConfig");function BC(e,t=!1,n){var r,a,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(a=l[0])==null?void 0:a.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}o(BC,"getManifestId");function sd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(sd,"getDefinitionId");function yq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[sd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(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(yq,"fillTableColumnsInConfig");function Pw(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(Pw,"fillSectionActionsInConfig");function vq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${Te.DefinitionName.ObjectPageSectionForm}<${sd(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===Bc.UIAnnotationTypes.DataFieldForAction||O.description==="Custom Action"){let F=yn(O.$ref)||b.split("<")[0];i[n].form.actions[T]=r.createInstance(Te.PageTypeV4.ObjectPage,F),At(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[F],e.routingId,[T.replace("/","??")],a),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}o(vq,"fillFormActionsInConfig");function Aw(e,t,n,i,r,a){var u;let s=a||BC(i,!1,Bc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageTable);let p=`${Te.DefinitionName.ObjectPageTable}<${a?sd(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ToolBar,{actions:{}});let g=e.jsonSchema.definitions[`${Te.DefinitionName.Actions}<${sd(s)}>`];Pw(e,g,i,n,r,s),yq(e,l,n,i,r,s)}}o(Aw,"fillTableInConfig");function Tq(e,t,n,i,r){var l;let a=BC(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(Te.PageTypeV4.ObjectPage,Te.DefinitionName.ObjectPageForm,{actions:{}}),vq(e,s,i,n,r,a))}o(Tq,"fillFormInConfig");function bq(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=ad(e,s.fragmentName);s.controls=u}n[i]=s}o(bq,"fillCustomSubSectionInConfig");function Cw(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(Bc.UIAnnotationTerms.PresentationVariant)&&((s=T.$ref)!=null&&s.startsWith($+Te.DefinitionName.ObjectPageSectionTableV4))){let b=T.$ref.split($)[1];A=BC(b,!0,Bc.UIAnnotationTerms.LineItem),Aw(e,n,i,m,r,A)}else(l=T.$ref)!=null&&l.startsWith($+Te.DefinitionName.ObjectPageSectionTableV4)?Aw(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},Cw(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(`@${Bc.UIAnnotationTerms.FieldGroup}::`))?Tq(e,n,i,m,r):(g=T.$ref)!=null&&g.startsWith($+Te.DefinitionName.ObjectPageCustomSubSectionFragment)&&bq(e,T,i,m,r,a)}}o(Cw,"fillSectionsInConfig");function Eq(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}<${sd(l)}>`];Pw(e,m,l,p,i,l)}let g=u.template;if(g){let m=ad(e,g);p.controls=m}n.sections[l]=p}}o(Eq,"fillCustomSectionsInConfig");function Aq(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=ad(e,g);p.controls=T}let m=u.templateEdit;if(m){let T=ad(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}o(Aq,"fillCustomHeaderSectionsInConfig");function Sq(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(Sq,"fillHeaderFacets");function Pq(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(Pq,"importActionSettingsOfReference");function Sw(e,t,n,i,r,a,s){let l=e.definitions[a];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let g=l.properties[p];typeof g=="object"&&g.$ref&&Pq(g,e,n,u,p,i,r)}}}o(Sw,"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={},Cw(e,e.jsonSchema.definitions[Te.DefinitionName.Sections].properties,r,i.sections,n)),Eq(e,r,i,n),Sq(e.jsonSchema,i,n,e.manifest,e.routingId),Aq(e,r,i,n),Sw(e.jsonSchema,i,n,e.manifest,e.routingId,Te.DefinitionName.ObjectPageHeaderActions,Te.PropertyName.header),Sw(e.jsonSchema,i,n,e.manifest,e.routingId,Te.DefinitionName.FooterActions,Te.PropertyName.footer)),i}o(Cq,"fillObjectPageConfig");function rv(e){if(nn(),!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 Ra;return Cq(e,n,i)}o(rv,"createObjectPageConfigV4");var Ge=ie(le());var HC=[],ov={};function xq(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(xq,"routesSorter");function GC(e,t=[]){if(!Array.isArray(e))return e;let n=e;for(let i of t)n=n.filter(r=>!i.includes(r));return n[0]}o(GC,"resolveTarget");function Iq(e){let t={};e=e.concat().sort(xq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=GC(i.target,n),n.push(i.target)):a=i.target;for(let s of r){let l=s.split("(")[0];t[a]=t[a]?`${t[a]}.${l}`:l}}return t}o(Iq,"populateAssociations");function Oq(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(se(t,{severity:Ge.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(Oq,"determinePageType");function Nq(e){let t=e.target.viewId||e.target.id,n=Dt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=rv(r)}else if(e.page.pageType===Ge.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=iv(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=$c(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=au(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=$c(r,s)}}}o(Nq,"convertSettingsToConfig");function Lq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");HC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");HC.push(t[t.length-1])}}o(Lq,"updateUnhandledControllers");function Rq(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(Rq,"setVariantManagmentAndNavigation");function Fq(e,t,n){var i,r;if(e.options){t.entitySet=(i=e.options.settings)==null?void 0:i.entitySet,t.contextPath=(r=e.options.settings)==null?void 0:r.contextPath;let{entitySet:a,entityType:s}=Mc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(a==null?void 0:a.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}o(Fq,"setEntitySetEntityTypeContextPath");function Dq(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(Dq,"evaluateCustomPageSettings");function _q(e,t,n,i){let r=e.targets[t],a=Oq(r,i.logger,t),s={pageType:a};if(Fq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),ov[t]&&ov[t].indexOf(".")!==-1){let p=ov[t].split(".");s.navigationProperty=p[p.length-1]}Dq(r,s,a),Rq(r,s),Lq(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}};Nq(u)}o(_q,"getSinglePageAndConfig");function xw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}ov=Iq(n.routes||[]);for(let i in n.targets)_q(n,i,t,e);return t}o(xw,"getPagesAndConfigs");function Iw(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return GC(t?t.target:e.routes[0].target)}else return}o(Iw,"getHome");function Ow(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.viewPath&&{path:t.viewPath},...t.path&&{path:t.path}}:{}}o(Ow,"getSettings");function If(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(If,"getPages");var WC=class WC extends za{constructor(t){nn();let n=new af,i=Dt(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,Iw(t.manifest[Ge.ManifestSection.ui5].routing),xw(t),{...Ow(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=HC}};o(WC,"V4AppProvider");var xf=WC;var Nw=require("fs"),Hc=require("path"),Lw=ie(le()),cd=ie(le());var Rw=o((e,t,n=__dirname)=>{let i;switch(t){case cd.SchemaType.Application:{i=`${cd.SchemaType.Application}${e.toUpperCase()}.json`;break}case cd.SchemaType.FPMCustomPage:{i=`${cd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Hc.join)(n,"schemas",e,i);if(n.endsWith((0,Hc.join)("specification","packages","specification")))return(0,Hc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Hc.join)("src","specification")))return(0,Hc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Hc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Vq=o(async e=>new Promise((t,n)=>{(0,Nw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),av=o(async(e,t)=>{try{let n=Rw(e||Lw.FioriElementsVersion.v4,t,__dirname);return await Vq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function wq(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=Dt(r);n[a.filename]=await av(t,r)}return n}o(wq,"getGenericSchemas");function Dw(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Dw,"getAnnotationsForUi");function ld(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(ld,"getEntitySetByEntitySetName");function Mq(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(Mq,"resolveNavigationProperty");function Mc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),a,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(a=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target):((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"?{entityType:a,entitySet:s}=Mq(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(Mc,"getEntityTypeEntitySetFromContextPath");function Fw(e,t,n){let i=Ju(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=ld(a,e.serviceAVT);s||se(e.logger,{severity:ue.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:a})}),e.entitySet=s;let l=Dt(ue.SchemaType.ObjectPage,(s==null?void 0:s.name)||a),u=Dt(ue.SchemaType.ObjectPage);n[l.filename]=fd(e,t[u.filename])}}o(Fw,"generateObjectPageSchemasV2");function kq(e,t,n){var l,u;let i=If(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=If(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}=Mc(s,m,g,e.logger);e.entityType=A,e.entitySet=T;let b=Dt(ue.SchemaType.ListReport,p),O=Dt(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=au(a[p])),n[b.filename]=tp(e,t[O.filename],a[p].name,m)}}o(kq,"generateListReportSchemasV4");function jq(e,t,n){var r;let i=Ju(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=ld(s,e.serviceAVT);let l=Dt(ue.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Dt(ue.SchemaType.ListReport);t[l.filename]=ud(e,n[u.filename])}}o(jq,"generateAppSchemaV2LR");function Uq(e,t,n){var a,s;let i=If(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}=Mc(r,p,u);e.entitySet=m,e.entityType=g;let T=Dt(ue.SchemaType.ObjectPage,l),A=Dt(ue.SchemaType.ObjectPage),b=Dt(ue.SchemaType.FPMCustomPage);n[T.filename]=Lp(e,t[A.filename],p,t[b.filename])}}o(Uq,"generateObjectPageSchemasV4");function $q(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)jq(e,r,t),Fw(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=Ju(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=ld(u,e.serviceAVT);let p=Dt(ue.SchemaType.AnalyticalListPage,((a=e.entitySet)==null?void 0:a.name)||u),g=Dt(ue.SchemaType.AnalyticalListPage);r[p.filename]=pd(e,t[g.filename])}Fw(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=Dt(ue.SchemaType.OverviewPage),l=Dt(ue.SchemaType.OverviewPage);r[s.filename]=dd(t[l.filename],e.manifest)}return{...t,...r}}o($q,"generateAppSchemasV2");function Bq(e,t,n){if(!Ys(e.featureToggles,ue.Features.BuildingBlocks))return;let i=If(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Bo(e.views||[],r,e.manifest,e.logger),l=a.viewId||a.id||r;if(s){let u=Dt(ue.SchemaType.FPMCustomPage,void 0,l),p=Dt(ue.SchemaType.FPMCustomPage);n[u.filename]=wc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(Bq,"generateCustomPageSchemasV4");function Hq(e,t,n){let i={};return n&&(kq(e,t,i),Uq(e,t,i),Bq(e,t,i)),{...t,...i}}o(Hq,"generateAppSchemasV4");async function _w(e,t,n){let i=await wq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?Hq(e,i,t):$q(e,i,t,n)}o(_w,"generateAppSchemas");function Gq(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new Nh(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new xf(e);break;case ue.TemplateType.OverviewPageV2:t=new Fh(e);break;default:t=new xf(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(Gq,"importConfigs");function Vw(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(Vw,"getFileList");async function KC(e){var b,O;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new fu().doesUi5VersionFitDistTags((O=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:O.minUI5Version,i);let u=yb(t),p=No(n,i),g=Dw(p),m=vb(t,u,i),A=await _w({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return Vw(A)}o(KC,"importProjectSchema");async function XC(e){var K,U;nn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new fu().doesUi5VersionFitDistTags((U=(K=t["sap.ui5"])==null?void 0:K.dependencies)==null?void 0:U.minUI5Version,i);let p=yb(t),g=HF(t),m=No(n,i),T=vb(t,p,i),A={templateType:T,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Dw(m),O=await _w(A,b,T),j=Gq({manifest:t,flexChanges:s,appSchemas:O,templateType:T,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return Vw(O,j)}o(XC,"importProjectSchemaAndConfig");var Wq=["header","sections","footer"];function Kq(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(Kq,"addFlexChangeForSection");function Xq(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=fm(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(Xq,"addHeaderActionCallBackV2");function Qq(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let a=da(r).split("::").splice(1).join("::"),s=Ai(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(Qq,"addFooterActionCallBackV2");function qq(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=bc(t[oe.ManifestSection.generic].pages,n,m);return yl(e,T,A,t,l,p,g,a.ID),p}o(qq,"ensureCustomColumnDefinitionExists");function md(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&Kq(e,t,"visible",n)}o(md,"addAppSchemaDefinition");function zq(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(zq,"addSectionReference");function gd(e,t,n,i){let r=dt(`${e}<${t}>`);try{i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e]))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addTableDefinition",definition:`${e}`}))}i.definitions[r].properties.columns.$ref=$+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}>`,Ka(n.entityType,i,`QuickVariant<${t}>`)}o(gd,"addTableDefinition");function Yq(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Ro(n,i,t);let u=n.definitions[l];md(n,u,a,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[oe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${$}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${$}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${$}ObjectPageAnalyticalTable<${t}>`},{$ref:`${$}ObjectPageGridTable<${t}>`},{$ref:`${$}ObjectPageTreeTable<${t}>`}],u[oe.SchemaTag.annotationPath]=i.annotationPath,ua(i,u,t),Ga(i,u,t),gd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),gd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),gd("ObjectPageGridTable",t,i,n),gd("ObjectPageTreeTable",t,i,n),gd("ObjectPageAnalyticalTable",t,i,n);let p,g=I0(i.entityType,e.serviceAVT);g&&(p=qq(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))&&hl(!0,n,T.target,T.entityType,T.ID||m,p)}}o(Yq,"handleLineItem");function Jq(e,t,n,i,r,a=!1){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";md(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(Jq,"handleSubSection");function Zq(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];md(e,a,r,"ObjectPageSectionChartV2")}o(Zq,"handleSectionChart");function ww(e,t,n,i,r,a){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t];md(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=rc(n==null?void 0:n.target)}o(ww,"handleHeaderFacet");function ez(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=rc(n==null?void 0:n.target);r==="Rating"?i.title=`${i.title}::RatingIndicatorVBox`:r==="Progress"?i.title=`${i.title}::ProgressIndicatorVBox`:i.title=`${i.title}::DataPoint`}o(ez,"addDataPointHeaderFacetDataType");function tz(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];return md(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(tz,"handleFormSection");function nz(e,t,n){let i=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageHeaderSection"],[oe.FacetBase.Address,"ObjectPageHeaderSectionAddress"],[oe.FacetBase.Chart,"ObjectPageHeaderSectionChart"],[oe.FacetBase.DataPoint,"ObjectPageHeaderSectionDataPoint"],[oe.FacetBase.Form,"ObjectPageHeaderSectionForm"],[oe.FacetBase.Identification,"ObjectPageHeaderSectionForm"]]),r=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),a=new Map([[oe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[oe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[oe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[oe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[oe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[oe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[oe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return n?i.get(e):t?a.get(e):r.get(e)}o(nz,"getSectionType");function iz(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ao.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(iz,"getReferenceKey");function kw(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=nz(l.base,a,s),p=iz(l,n,u),g=`${u}<${p}>`;switch(zq(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,Jq(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let T in l.facets)kw(e,l.facets,T,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{Yq(e,p,r,l,t,u),Tl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{Zq(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=tz(r,g,l,p,u);lm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{lu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{lu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{ww(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{ww(r,g,l,p,u),ez(r,g,l);break}default:i.properties[n]=Ro(r,l,p)}}o(kw,"addSection");function Mw(e,t,n,i,r,a=!1){if(e)for(let s in t)kw(i,t,s,n,r,!1,a)}o(Mw,"addSectionsFromFacets");function jw(e,t,n){var g,m,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}/@${Ao.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Ug((T=e.entitySet)==null?void 0:T.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=jg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let F in n){let j=n[F];(O=(b=e.entitySet)==null?void 0:b.name)!=null&&O.includes(j.entitySet)?(Mw(l,a,i,e,t),Mw(u,s,r,e,t,!0)):jw(e,t,j.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(jw,"addSections");function rz(e,t,n){dm(e,n),pm(e,n,t,Xq,void 0,!0)}o(rz,"addHeader");function oz(e,t,n,i){let r=WF(t,n,i,void 0,!0);r&&R0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(oz,"addRelatedFacetKeysType");function fd(e,t){var s;nn();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[oe.PropertyName.sections]={$ref:$+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let a=e.manifest[oe.ManifestSection.generic].pages;return a?(rz(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},jw(e,n,a),oz(n,r,e.serviceAVT,e.logger),n.definitions.Sections||(n.definitions.RelatedFacetKeys&&n.definitions.RelatedFacetKeys.oneOf.length?(n.definitions.Sections={type:"object",properties:i,additionalProperties:!1},n.definitions.Sections[oe.SchemaTag.isViewNode]=!0):delete n.properties[oe.PropertyName.sections]),um(n,e,oe.FioriElementsVersion.v2,Qq,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Do(n,Wq),n):(se(e.logger,{severity:oe.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:oe.MANIFESTPATH,range:[oe.ManifestSection.generic]}}),n)}o(fd,"generateObjectPageSchemaV2");var ei=ie(le());var Of=require("@sap-ux/vocabularies-types/vocabularies/UI");var sz=["filterBar","table","footer"],cz=ei.UIVOCABULARYALPHADOT.substring(1);function QC(e,t,n,i){Ka(e,n,"QuickVariant"),O0(n,"QuickVariantX",t),N0(i,n,"QuickVariantX")}o(QC,"addEnumForVariantPaths");function lz(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Of.UIAnnotationTerms.SelectionPresentationVariant,Of.UIAnnotationTerms.SelectionVariant,Of.UIAnnotationTerms.PresentationVariant];cu(e,r,i)}o(lz,"addEnumForFilterBarAnnotationPath");function fz(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Of.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Of.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(cz,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(fz,"getPresentationVariantForLineItem");function uz(e,t,n){if(om(t,"annotationPath",n))return;let i=fz(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=su("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(uz,"getLineItemAnnotation");function ud(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ei.DefinitionName.LineItems},r=$+ei.DefinitionName.ToolBarLR;Pb.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=Vl(e.manifest[ei.ManifestSection.generic].pages,u);vl(n);let g=uz(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let T=mr(a.fullyQualifiedName,g.term,g.qualifier);Pb.forEach(A=>{n.definitions[A][ei.SchemaTag.annotationPath]=T})}hl(!1,n,g,a);let m=s.SelectionFields;if(nm(n,m,a),Tl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],E0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ei.LogSeverity.Error,message:q.t("NOLR"),location:{path:ei.MANIFESTPATH,range:[ei.ManifestSection.generic]}}),n;yl(n,a,p,e.manifest,e.fragments),QC(a,e.entitySet,n,e.serviceAVT),lz(a,n,ei.DefinitionName.ListReportFilterBar),L0(a,n,ei.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Do(n,sz),n}o(ud,"generateListReportSchemaV2");var Zt=ie(le());var pz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function dz(e,t,n){var 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 F=O+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let O=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:Zt.LogSeverity.Error,message:O}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(O){return p=p||su("LineItem",O),g=g||su("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],F=q.t(O);se(n,{severity:Zt.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:T}}o(dz,"getLineItemAndChartAnnotation");function gz(e,t){let n=e.definitions[Zt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Zt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(gz,"addChart");function pd(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[Zt.PropertyName.table].anyOf[0].$ref=$+"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,b0(n.definitions.TableColumnExtensionTypeV2.enum,[Zt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=rm(e);if(s){vl(n);let l=[],u=kl(e.manifest[Zt.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=dz(u,s,e.logger);p&&g0.forEach(T=>{n.definitions[T][Zt.SchemaTag.annotationPath]=mr(a.fullyQualifiedName,p.term,p.qualifier)}),hl(!1,n,p,a),g&&gz(n,g);let m=s.SelectionFields;if(nm(n,m,a),Tl(n,a),!u)return se(e.logger,{severity:Zt.LogSeverity.Error,message:q.t("NOLR"),location:{path:Zt.MANIFESTPATH,range:[Zt.ManifestSection.generic]}}),n;yl(n,a,u,e.manifest,e.fragments),QC(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return Do(n,pz),n}o(pd,"generateAnalyticalListReportSchemaV2");function mz(e){let t=e.properties;return(t.cards&&t.cards.additionalProperties&&t.cards.additionalProperties.anyOf||[]).map(i=>{let r=i.$ref.split("/");return r[r.length-1]})}o(mz,"getCardDefinitionNames");function hz(e,t){let n=t&&t["sap.app"]&&t["sap.app"].dataSources||{},i=Object.keys(n),r=t&&t["sap.ui5"]&&t["sap.ui5"].models||{},a=[];a=a.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},ga(a,s.CardModel);let l=mz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(hz,"addModelsEnum");function Uw(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},hz(n,t),n}o(Uw,"generateOverviewPageSchemaV2");var _s=ie(le());function qC(e,t,n,i,r,a){nn();let s=No(e,t),l={templateType:a,fioriElementsVersion:_s.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=ld(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:_s.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(qC,"prepareGenerationV2");function zC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,_s.TemplateType.ListReportObjectPageV2);return fd(s,e)}o(zC,"generateObjectPageInterfaceV2");function YC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,_s.TemplateType.ListReportObjectPageV2);return ud(s,e)}o(YC,"generateListReportInterfaceV2");function JC(e,t,n,i,r,a){let s=qC(n,a,i,r,t,_s.TemplateType.AnalyticalListPageV2);return pd(s,e)}o(JC,"generateAnalyticalListPageInterfaceV2");function dd(e,t){return Uw(e,t)}o(dd,"generateOVPInterfaceV2");var we=ie(le());var hd=o(e=>({flexChanges:[],manifest:{[we.ManifestSection.generic]:{pages:{}}},manifestChangeIndicator:we.ChangeIndicator.NoChange,fragments:e?e.map(t=>({dataSourceUri:t.dataSourceUri,fileContent:t.fileContent,changeIndicator:we.ChangeIndicator.NoChange})):[]}),"getDefaultExportResult");function $w(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===we.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(we.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}o($w,"getClassesForSingleSection");function Bw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],$w(n,i,t),Bw(n,t)}}o(Bw,"getSubsectionClasses");function yz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],$w(i,r,n),Bw(i,n)}o(yz,"getExportClassesForSections");function vz(e,t){let n=Vl(t.manifest[we.ManifestSection.generic].pages,e);if(!n){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("NOLR"),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}});return}if(!n.component){se(t.logger,{severity:we.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:we.PageTypeV2.ListReport}),location:{path:we.MANIFESTPATH}});return}return n.component.settings||(n.component.settings={}),n}o(vz,"findV2Page");function ZC(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(ZC,"calculateBaseId");function Hw(e,t,n=!1){let i=hd(e.fragments);i.manifest=JSON.parse(JSON.stringify(e.manifest));let r=e.page.config;if(r&&Object.keys(r).length!==0){let a=[],s=vz(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:ZC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};gs(p,u,[],[],e.jsonSchema)}return i}o(Hw,"exportListReportPage");function Gw(e,t,n=!1){let i=e.page.config,r=hd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=kl(e.manifest[we.ManifestSection.generic].pages,a,e.logger);if(!s)return r;if(s.component.settings||(s.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),i&&Object.keys(i).length!==0){let l=new _i,u=l.createPageInstance(we.PageTypeV2.AnalyticalListPage,i),p={v2Page:s,exportResults:r,appId:e.appId,baseId:ZC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};gs(p,u,[],[],e.jsonSchema)}return r}o(Gw,"exportAnalyticalListPage");function Ww(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=hd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=bc(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&&yz(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:ZC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};gs(g,p,[],[],e.jsonSchema)}}return a}o(Ww,"exportObjectPage");var Kw=o(e=>{let t=hd();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new _i,i=n.createPageInstance(we.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Zu(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Tz=o((e,t,n)=>{var s;let i=hd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new vm,e);r.settings=Object.assign(new Ya,e.settings);for(let l in n.definitions.AppSettings.properties){let u=zn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=$n(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Wa(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Rb(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function Xw(e,t){if(e[we.SchemaType.ListReport])return Hw(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return Ww(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return Kw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return Tz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return Gw(e[we.SchemaType.AnalyticalListPage],t)}o(Xw,"exportPageV2");function ex(e,t,n=!1){if(e[we.SchemaType.ListReport])return Hw(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return Ww(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return Kw(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return Gw(e[we.SchemaType.AnalyticalListPage],t,n)}o(ex,"exportConfigEntityByPathV2");var Nf=ie(le()),qw=require("@sap-ux/vocabularies-types/vocabularies/UI");function Qw(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}o(Qw,"updateDependencyLib");function sv(e){let t=e;if(e.indexOf("<")>-1){t=e.substring(e.indexOf("<")+1,e.length-1);let n=e.substring(0,e.lastIndexOf("::")).replace(/::/g,"/");n&&(t=`${n}/${t}`)}return t}o(sv,"extractLastIdPart");function zw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:Nf.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Nf.PropertyName.sections),s=a>-1?sv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${qw.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},g={customExtension:Nf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return tx(g),!0}o(zw,"createNewCustomColumn");var Fa=ie(le());var Jw=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Yw=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function bz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(bz,"initializeRouting");function Ez(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(Ez,"setTargetOptions");function Az(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Fa.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(Az,"calculateQueryPattern");function Zw(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let a;for(let s in n){if(typeof n[s].navigation=="object"){let l=Object.keys(n[s].navigation).find(u=>n[s].navigation[u].route===i);l&&(t=l,a=n[s])}if(a){Zw(e,t,n,s);return}}}o(Zw,"fillNavigationParts");function Sz(e){let t={},n=e==null?void 0:e.split("/");return n&&n.length>0&&n.forEach(i=>{let r=i.substring(0,i.indexOf("({")),a=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=a}),t}o(Sz,"fillParentKeys");function Pz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(Ez(n,a,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=l==null?void 0:l.routePattern;if(!u){let p=[];Zw(p,a,t,r,l==null?void 0:l.contextPath);let g=Sz(e.routePattern);u=Az(p,l,g)}i.routes.push(Jw(u,s.route,s.route))}}}o(Pz,"handlePageNavigation");function Cz(e,t){for(let n in e.targets)if(!t||!t[n]){delete e.targets[n];let i=e.routes.findIndex(r=>r.name===n);i!==-1&&e.routes.splice(i,1)}}o(Cz,"removeDeletedPages");function xz(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=Yw({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Yw({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(a=(r=t.options)==null?void 0:r.settings)==null||delete a.entitySet}o(xz,"transferEntitySetandContextPath");function Iz(e,t,n){let i=e.routes.find(r=>r.target&&r.target.indexOf(t)>-1);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}o(Iz,"updateRouteLayout");function Oz(e,t,n,i){var r;return e.pageType&&![Fa.PageTypeV4.CustomPage,Fa.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Fa.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Fa.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(r=t==null?void 0:t.options)==null?void 0:r.settings,viewName:e.view.name}}}),t}o(Oz,"fillTarget");function eM(e,t,n){var r,a;let i=bz(n[Fa.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(Jw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Oz(u,l,s,t),xz(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(a=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&a.navigation&&(l.options.settings.navigation={}),Pz(u,t,l,i,s),Iz(i,s,u),i.targets[s]=l}return Cz(i,t),i}o(eM,"transformRoutingV4");var Ii=ie(le());var tM=[Ii.FlexibleColumnLayoutAggregations.BeginColumnPages,Ii.FlexibleColumnLayoutAggregations.MidColumnPages,Ii.FlexibleColumnLayoutAggregations.EndColumnPages],nM=o((e,t,n,i=[],r=0)=>{var p;let a=e.routing.routes.find(g=>g.name===n);if(!a)return;typeof a.target=="string"&&(a.target=r<=2?[...i,a.target]:[a.target]);let s=e.routing.targets[n],l=(p=t.pages)==null?void 0:p[n];if(!l)return;"controlAggregation"in l?s.controlAggregation=l.controlAggregation:tM[r]?s.controlAggregation=tM[r]:s.controlAggregation=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)nM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),Nz=o((e,t)=>{e.routing.config.routerClass=Ii.v4.FIORI_FCL_ROUTER_CLASS,nM(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,Qw(e,Ii.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),Lz=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"),iM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Nz(e,t):Lz(e)},"updateFcl");var ne=ie(le()),yd=require("@sap-ux/vocabularies-types/vocabularies/UI");var rM=ie(qs()),cv=ie(le());function Rz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(Rz,"isExportValueEquals");function Fz(e,t){var s;let{element:n,schema:i,parent:r,contextPath:a}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===cv.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=a[a.length-1];l&&r.element.elements.splice(l.index,1)}}o(Fz,"deleteProperty");function oM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:a,element:s}=e,l=!1;if(t.hidden)return!1;if(i in n&&n[i]!==void 0)if(t.isViewNode){s.elements||(s.elements=[]);let g={name:i,type:"element"};return s.elements.push(g),Vc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},oM)}else Rz((u=s.attributes)==null?void 0:u[i],n[i])||(s.attributes||(s.attributes={}),s.attributes[i]=n[i],l=!0);else(p=s.attributes)!=null&&p[i]&&(Fz(e,i),l=!0);return l}o(oM,"exportProperty");function lv(e,t,n,i,r,a){let s=rf(e.file,!1,a);if(s){let l=xy(s);if(Vc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},oM)){let p=(0,rM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:cv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(lv,"getExtensionExportResult");var aM=o((e,t)=>{let{views:n,manifest:i,jsonSchema:r,page:a,logger:s}=e,l={...t,manifest:i},u;return r&&Object.keys(r).length>0&&(u=Bo(n||[],a.name,i,s)),u&&lv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),sM=o((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:a,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,g="fragment";if(i&&Object.keys(i).length>0){let m=xc(u,s[0]);p=Ic(a,m,u,g,t)}if(p){let m=of(t),A={...i.definitions[m],definitions:i.definitions};lv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var cM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],Dz=[...cM,"views","initialLoad","template"],fv=o(e=>{let t=ne.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function _z(e,t,n){var s,l,u,p;let i=`@${yd.UIAnnotationTerms.LineItem}`,r=`@${yd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ne.DefinitionName.TableSPV])==null?void 0:s[ne.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ne.DefinitionName.ALPTable])==null?void 0:u[ne.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ne.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(_z,"determineTargetAnnotationOfTable");function Vz(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ne.DefinitionName.ALPChart])==null?void 0:a[ne.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(Vz,"determineTargetAnnotationOfChart");function wz(e,t,n,i,r){var a;if(e.length===3)t=n=i[ne.SchemaTag.annotationPath]&&i[ne.SchemaTag.annotationPath].substr(i[ne.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ne.SchemaTag.annotationPath])&&l[ne.SchemaTag.annotationPath].substr(l[ne.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(wz,"determineTargetAnnotationBasedOnParentView");function Mz(e,t){var a;let n,i,r=(a=e.appSchema.definitions.MultiTableModeV4)==null?void 0:a.properties[t[2]];if(r)({targetAnnotation:n,targetAnnotationEncoded:i}=wz(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ne.SchemaTag.annotationPath]&&l[ne.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ne.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ne.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(Mz,"determineTargetAnnotationOfView");function kz(e,t,n){let i,r;return e[2].split(`@${ne.UIVOCABULARY}`)[1]?n&&n.indexOf(ne.FACETTITLEPREFIX)>-1?i=r=n.split(ne.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(kz,"determineTargetAnnotationOfHeaderSections");function jz(e,t){let n=e[1].split(`@${ne.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=sv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(jz,"determineTargetAnnotationOfSections");function Uz(e,t,n){let i,r,a=!1;return e[0]===ne.PropertyName.table&&e[1]!==ne.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=_z(e,t,n):e[0]===ne.PropertyName.chart&&t.templateType===ne.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Vz(e,t,n):e[0]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=jz(e,a):e[1]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=kz(e,a,t.title):e[1]===ne.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Mz(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(Uz,"determineTargetAnnotation");function $z(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ne.PropertyName.actions,ne.PropertyName.columns,ne.PropertyName.views,ne.PropertyName.visualFilters,ne.PropertyName.selectionFields].includes(ne.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o($z,"determineKeyForSyncRule");function Bz(e){e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}o(Bz,"createNewObjectInManifest");function lM(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(Bz(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(lM,"transferPropertyToManifest");function Hz(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&cM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&Dz.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let T=t.syncRule.manifest.delete;typeof T=="function"&&(T(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return Wa(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(Hz,"deleteFromManifest");function Gz(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=Uz(e,n.transferParameters,n.configObject),g=$z(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),T=Lo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(T){let A={syncRule:t,manifestSection:T,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&pl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=Hz(e,A,n.transferParameters,T,m,u,l):r=lM(A,n.propertyDefinition,i)}return r}o(Gz,"exportManifestChange");function Wz(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);sM(e.transferParameters,r,n.configObject)}else i.manifest&&Gz(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ne.ChangeIndicator.Updated)}o(Wz,"evaluateExportRule");function Kz(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t?a.push(t.configObject):e.propertyDefinition.anyOf?a.push(n):e.propertyDefinition.type==="array"?a=n:a.push(n),e.index=0;for(let s of a)e.transferParameters.title=t==null?void 0:t.title,ix(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(Kz,"transferSubObject");function Xz(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Lo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(Xz,"createALPTableView");function Qz(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ft(e.transferParameters.pageNameArray)+"/views",r=Lo(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||yd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(Qz,"createALPChartView");function qz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Lo(e.exportResults.manifest,i),a=`@${yd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[a]?r.controlConfiguration[a].filterFields||(r.controlConfiguration[a].filterFields={},n=!0):(r.controlConfiguration[a]={filterFields:{}},n=!0):(r.controlConfiguration={[a]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[a].filterFields;Object.keys(t).forEach(l=>{let u=t[l];s[l]={};for(let p in u)p==="visualFilterValueList"?s[l].visualFilter={valueList:u[p]}:s[l][p]=u[p]})}return n}o(qz,"createVisualFilters");function zz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Lo(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(zz,"createLRTableView");function Yz(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ne.DefinitionName.CustomColumn))i=zw(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ne.DefinitionName.ALPChartView&&e.key===ne.PropertyName.chart&&e.configObject)return Qz(e);if(t===ne.DefinitionName.ALPTableView&&e.key===ne.PropertyName.table&&e.configObject)return Xz(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ne.DefinitionName.LRTableView)||t.startsWith(ne.DefinitionName.LRChartView))?i=zz(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ne.DefinitionName.VisualFilters)&&(i=qz(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(Yz,"createNewElement");function Jz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(Jz,"isDefinitionTraversable");function nx(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Kg(e.configObject,e.key),s=Fo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=Yz(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||Wz(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Jz(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;Kz(e,s,r,p,m)}}o(nx,"transferSortedListEntry");function Zz(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],nx(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,nx(e,i,r),a=!0)}),e.index++})}return a}o(Zz,"transferConfigEntriesWithAnyOfDefinitions");function eY(e,t,n,i){let r=Tb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(eY,"mergeEntriesForInsert");function tY(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ne.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ne.SchemaTag.propertyIndex]-r[1][ne.SchemaTag.propertyIndex])),t}o(tY,"sortProperties");function nY(e,t,n,i,r,a){var l,u;let s=!1;if(e){let p=e.anyOf;if(!p){let g=(l=e.$ref)==null?void 0:l.split($)[1];p=g?(u=t.appSchema.definitions[g])==null?void 0:u.anyOf:void 0}s=Zz(n,p,i,r,a)}return s}o(nY,"checkIfAnyOfDefinition");function ix(e,t,n,i,r,a){if(!(a!=null&&a.properties)&&!(a!=null&&a.additionalProperties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=a.additionalProperties,p=nY(u,e,l,a,n,i),g=tY(a.properties);u!=null&&u.$ref&&eY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!pl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,nx(l,n,i,p),m[1].$ref&&s++)})}o(ix,"transferManifestEntriesAndFlexChange");function fM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ne.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(fM,"getClassesForSingleSection");function uM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],fM(n,i,t),uM(n,t)}}o(uM,"getSubsectionClasses");function iY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],fM(e,r,n),uM(i,n)}o(iY,"getExportClassesForSections");function pM(e,t){let n=Xg(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(pM,"calculateBaseId");var dM=o((e,t,n=!1)=>{var l;let i=fv(e.manifest),r=new Ra,a=r.createPageInstance(ne.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ne.PropertyName.sections]&&iY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:pM(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ne.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return ix(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),rY=o((e,t,n,i,r,a,s=!1)=>{var b,O;let l=fv(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ne.PropertyName.annotationPath]?ne.DefinitionName.ALPTableView:ne.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ne.DefinitionName.LineItems;u.definitions[ne.DefinitionName.TableSPV]&&(m=u.definitions[ne.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let T=u.definitions[`${ne.DefinitionName.Actions}<${m}>`];if((O=g.toolBar)!=null&&O.actions&&T)for(let F in T.properties)g.toolBar.actions[F]=t.createInstance(i,ne.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:pM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return ix(A,n,[],[],[],u),l},"exportListPage"),rx=o((e,t,n,i=!1)=>{let r=new Ra,a=r.createPageInstance(ne.PageTypeV2.ListReport,e.page.config);return rY(e,r,a,ne.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),gM=o((e,t,n=!1)=>rx(e,t,ne.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),oY=o((e,t,n,i,r,a)=>{let s=Lo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=db());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];lM(u,p,{}),!l&&Object.keys(s).length&&BF(r,t,s)},"applyExportRule"),aY=o((e,t,n)=>{var a;let i=fv(t),r=Object.assign(new Ry,e);r.settings=Object.assign(new af,r.settings);for(let s in n.definitions.AppSettings.properties){let l=zn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)oY(l,u,s,e,i.manifest,n);else{let p=Lo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Wa(i.manifest,u,!1))}}}return i.manifest[ne.ManifestSection.ui5].routing=eM(e.home,e.pages,i.manifest),iM(i.manifest[ne.ManifestSection.ui5],e),i},"exportApplicationV4"),mM=o((e,t)=>{if(e[ne.SchemaType.ListReport])return rx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4);if(e[ne.SchemaType.ObjectPage])return dM(e[ne.SchemaType.ObjectPage],t);if(e[ne.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ne.SchemaType.Application];return aY(n,i,r)}else{if(e[ne.SchemaType.AnalyticalListPage])return gM(e[ne.SchemaType.AnalyticalListPage],t);if(e[ne.SchemaType.FPMCustomPage])return aM(e[ne.SchemaType.FPMCustomPage],ne.defaultExportResult)}},"exportPageV4"),sY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=fv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&lv(l,s,i.config,t,"view",a),s},"exportCustomPage"),ox=o((e,t,n=!1)=>{if(e[ne.SchemaType.ListReport])return rx(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4,n);if(e[ne.SchemaType.ObjectPage])return dM(e[ne.SchemaType.ObjectPage],t,n);if(e[ne.SchemaType.AnalyticalListPage])return gM(e[ne.SchemaType.AnalyticalListPage],t,n);if(e[ne.SchemaType.FPMCustomPage])return sY(e[ne.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Bt=require("@sap-ux/fe-fpm-writer");var cY=new Map([[de.CustomExtensionType.CustomPage,Bt.generateCustomPage],[de.CustomExtensionType.CustomColumn,Bt.generateCustomColumn],[de.CustomExtensionType.CustomSection,Bt.generateCustomSection],[de.CustomExtensionType.ObjectPage,Bt.generateObjectPage],[de.CustomExtensionType.ListReport,Bt.generateListReport],[de.CustomExtensionType.CustomAction,Bt.generateCustomAction],[de.CustomExtensionType.CustomView,Bt.generateCustomView],[de.CustomExtensionType.ControllerExtension,Bt.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Bt.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Bt.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Bt.generateCustomHeaderSection]]),lY={api:Bt.PromptsAPI,types:Bt.PromptsType};function fY(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=YC(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=zC(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=dd(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=JC(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=Ly(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=BS(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=Ly(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=HS(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=GS(i,r,a,s,u,e.featureToggles,l)}}return t}o(fY,"generateSchema");function uY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=Xw(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=mM(i,n)}return t}o(uY,"exportConfig");function pY(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=ex(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=ox(i,n)}return t}o(pY,"exportConfigEntityByPath");function dY(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=ex(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=ox(i,n,!0)}return t}o(dY,"deleteConfigEntityByPath");function gY(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Ch(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=Oh(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=Rh(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=$c(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=rv(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=$c(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=iv(n[de.SchemaType.FPMCustomPage]))}return t}o(gY,"importConfig");async function mY(e){return XC(e)}o(mY,"importProject");async function hY(e){return KC(e)}o(hY,"importProjectSchema");function yY(){return{version:"21",fpmWriter:"29",moduleVersion:w0.version}}o(yY,"getApiVersion");function tx(e){let t=cY.get(e.customExtension);if(t&&typeof t=="function")return(0,Bt.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(tx,"generateCustomExtension");var Jr=require("path"),Vs=require("fs");var Lf=o(async e=>new Promise((t,n)=>{(0,Vs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),vY=o(async e=>JSON.parse(await Lf(e)),"readJSON"),ax=o(async e=>new Promise((t,n)=>{(0,Vs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),TY=o(async e=>new Promise(t=>{(0,Vs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),yM=o(async e=>new Promise(t=>{(0,Vs.exists)(e,n=>{t(n)})}),"resourceExists"),bY=o(async e=>vY((0,Jr.join)(e,"manifest.json")),"getManifest"),vM=o(async e=>{let t=[],n=(0,Jr.join)(e,"changes");if(!await yM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await ax(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Lf((0,Jr.join)(n,a)));return t},"getChanges"),hM=o(async(e,t="fragments")=>{let n=[],i=(0,Jr.join)(e,"ext",t);if(!await yM(i))return n;let r=await ax(i);for(let a of r){let s=(0,Jr.join)(i,a),l=await Lf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),EY=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,Jr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await Lf(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,Jr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:A,fileContent:await Lf(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,Jr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Lf(b)})}}return n},"getAnnotations"),AY=o(async e=>{let t=(0,Jr.basename)(e),n=(0,Jr.join)(e,"webapp"),i=await bY(n),r=await EY(i,n),a=await vM(n),s=await hM(n),l=await hM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");Qs(wi,ie(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
294
+ `}),U1(q)}o(rn,"initI18n");var Bt=ie(le());function Ec(e,t,n){var r;let i;for(let a in e){let s=e[a];if(fa((r=s.component)==null?void 0:r.name)===Bt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(a),s;if(s.pages&&(i=Ec(s.pages,t,n),i))return n.unshift(a),i}}o(Ec,"findObjectPageV2");function wl(e,t){var n;for(let i in e){let r=e[i];if(fa((n=r.component)==null?void 0:n.name)===Bt.PageTypeV2.ListReport)return t.push(i),r}}o(wl,"findListReportPageV2");function Ml(e){if(!e.manifest[Bt.ManifestSection.generic]){se(e.logger,{severity:Bt.LogSeverity.Error,message:q.t("NOFE"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}let t=e.manifest[Bt.ManifestSection.generic].pages;if(!t){se(e.logger,{severity:Bt.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}return t}o(Ml,"getV2Pages");function kl(e,t,n){var i;if(!e){se(t,{severity:Bt.LogSeverity.Error,message:q.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;se(t,{severity:Bt.LogSeverity.Error,message:q.t("NOENTITYSET",{pageName:r}),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}}o(kl,"checkV2Page");function jl(e,t,n){var i;for(let r in e){let a=e[r];if(t.push(r),fa((i=a.component)==null?void 0:i.name)===Bt.PageTypeV2.AnalyticalListPage)return a}se(n,{severity:Bt.LogSeverity.Error,message:q.t("NOALP"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}})}o(jl,"findAnalyticalListPage");function VA(e,t){let n=e.split("|");return Bt.v2.SectionPosition[n[0]]&&n[1]===t}o(VA,"isAssociatedCustomSection");function B1(e,t){let n=$n(e,`sap.ui5/extends/extensions/${Bt.v2.SAPUI5_VIEW_EXTENSION}/${Bt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)VA(r,t)&&(i[r]=n[r]);return i}o(B1,"findCustomSectionExtensions");function B3(e){var t;if((t=e.footer)!=null&&t.actions){for(let n in e.footer.actions)Object.keys(e.footer.actions[n]).length===0&&delete e.footer.actions[n];Object.keys(e.footer.actions).length===0&&delete e.footer.actions,Object.keys(e.footer).length===0&&delete e.footer}}o(B3,"removeEmptySettingsOfFooter");function H3(e){var t,n,i;if((t=e.filterBar)!=null&&t.selectionFields){for(let r in e.filterBar.selectionFields)Object.keys(e.filterBar.selectionFields[r]).length===0&&delete e.filterBar.selectionFields[r];((i=Object.keys((n=e.filterBar)==null?void 0:n.selectionFields))==null?void 0:i.length)===0&&delete e.filterBar.selectionFields}}o(H3,"removeEmptySettingsOfFilterBar");function G3(e){var t;if((t=e.table)!=null&&t.toolBar){for(let n in e.table.toolBar.actions)Object.keys(e.table.toolBar.actions[n]).length===0&&delete e.table.toolBar.actions[n];Object.keys(e.table.toolBar.actions).length===0&&delete e.table.toolBar.actions,Object.keys(e.table.toolBar).length===0&&delete e.table.toolBar}}o(G3,"removeEmptySettingsOfToolBar");function Lh(e){G3(e),H3(e),B3(e)}o(Lh,"removeEmptySettings");var MA={};Qs(MA,{AnalyticalListPage:()=>Hr,ListReport:()=>uo,ObjectPage:()=>ci,OverviewPage:()=>Jt,exportFilterSettings:()=>W1,importDateSettingsOVP:()=>H1,importFilterSettings:()=>G1});var Rh=ie(le());var Hr=class{};o(Hr,"AnalyticalListPage"),h([y({flex:{controlId:Jg,controlType:o(()=>Rh.ControlType.DynamicPage,"controlType")}})],Hr.prototype,"fitContent",2),h([Ut("table")],Hr.prototype,"table",2),h([Ut("template::SmartFilterBar")],Hr.prototype,"filterBar",2),h([Ut("analyticalListPageChart")],Hr.prototype,"chart",2),h([Ut("analyticalListFooter")],Hr.prototype,"footer",2),Hr=h([jr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:Rh.v2.FE_TEMPLATE_V2_ALP})],Hr);var Ju=ie(le());var uo=class{};o(uo,"ListReport"),h([y({flex:{controlId:Jg,controlType:o(()=>Ju.ControlType.DynamicPage,"controlType")}})],uo.prototype,"fitContent",2),h([Ut("listReportFilter")],uo.prototype,"filterBar",2),h([Ut("listReport")],uo.prototype,"table",2),h([Ut("listReportFooter")],uo.prototype,"footer",2),uo=h([jr({id:Ju.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Ju.v2.FE_TEMPLATE_V2_LIST_REPORT})],uo);var wA=ie(le());var ci=class{};o(ci,"ObjectPage"),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),h([y({manifest:{path:o(t=>Fi(t),"path")}}),x({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),h([Ut("header")],ci.prototype,"header",2),h([Ut("sections")],ci.prototype,"sections",2),h([Ut("layout")],ci.prototype,"layout",2),h([y({manifest:{path:o(t=>Om(t),"path")}}),x({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("chartSettings"in t)return t.chartSettings},"import"),key:"chartSettings"}}),x({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),h([y({manifest:{path:o(t=>Fi(t),"path"),import:o(t=>{if("tableSettings"in t)return t.tableSettings},"import"),key:"tableSettings",delete:Zs}}),x({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=h([jr({id:wA.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:wA.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function W3(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(W3,"importDateSettingsFieldsOVP");function H1(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&&W3(e,t),t}o(H1,"importDateSettingsOVP");function G1(e){let t={};return t.dateSettings=H1(e.filterSettings),t}o(G1,"importFilterSettings");function K3(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(K3,"exportFilterFields");function W1(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&&K3(t,n,e))}o(W1,"exportFilterSettings");var Jt=class{};o(Jt,"OverviewPage"),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterModel",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterEntityType",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"globalFilterEntitySet",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"showBasicSearch",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"disableErrorPage",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"smartVariantRequired",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"bHeaderExpanded",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"containerLayout",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"showDateInRelativeFormat",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"disableTableCardFlexibility",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"enableLiveFilter",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"enableLazyRendering",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"refreshStrategyOnAppRestore",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"considerAnalyticalParameters",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"refreshIntervalInMinutes",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"useDateRangeType",2),h([y({manifest:{path:o(()=>En(),"path"),import:G1,export:W1}}),x({since:"1.80.0"})],Jt.prototype,"filterSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"dataLoadSettings",2),h([y({manifest:{path:o(()=>En(),"path")}})],Jt.prototype,"resizableLayout",2),Jt=h([jr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Jt);var kA=class kA{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(kA,"MetadataFactory");var Ul=kA;var Jn=ie(le());var X3={},Q3={Table:lc,ResponsiveTableWithMultiSelect:lc,ResponsiveTableWithInlineDelete:lc},q3={[Jn.v2.CardSettingsType.listCardSettings]:Cl,[Jn.v2.CardSettingsType.listCardSettingsv4]:Cl,[Jn.v2.CardSettingsType.analyticalCardSettings]:Ol,[Jn.v2.CardSettingsType.analyticalCardSettingsv4]:Ol,[Jn.v2.CardSettingsType.stackCardSettings]:bu,[Jn.v2.CardSettingsType.linkListCardSettings]:Eu,[Jn.v2.CardSettingsType.tableCardSettings]:Il,[Jn.v2.CardSettingsType.tableCardSettingsv4]:Il},z3={[Jn.SAPUI5_VIEW_CLASS]:Ku,[Jn.SAPUI5_FRAGMENT_CLASS]:Wu,Table:bc,ObjectPageResponsiveTableWithMultiSelect:bc,ObjectPageResponsiveTableWithInlineDelete:bc},Y3={[Jn.PageTypeV2.AnalyticalListPage]:X3,[Jn.PageTypeV2.ListReport]:Q3,[Jn.PageTypeV2.ObjectPage]:z3,[Jn.PageTypeV2.OverviewPage]:q3},jA=class jA extends Ul{constructor(){super(RA,MA,Y3)}};o(jA,"MetadataInstanceFactoryV2");var _i=jA;function J3(e,t,n,i,r){if(e.filterBar=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar),Dn(e.filterBar,n.manifest,i[qt.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let a=i.SelectionFields.properties;for(let s in a){let l=s;e.filterBar.selectionFields[l]=t.createInstance(qt.PageTypeV2.ListReport,"SelectionFieldDateSettings"),Dn(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}o(J3,"importFilterBar");function UA(e,t,n){var a;if(!e.flex)return;e.flex.forEach(s=>{var p,g,m;let l=ro(s),u={controlId:l.controlId,propertyId:(p=l.content)==null?void 0:p.property,newValue:(g=l.content)!=null&&g.newBinding?l.content.newBinding:(m=l.content)==null?void 0:m.newValue,controlType:l.controlType,creation:l.creation};xh(n.table,u,t)});let i=t.properties.columns.$ref.split("/").pop(),r=((a=e.jsonSchema.definitions[i])==null?void 0:a.properties)||{};for(let s in r)s!=="custom"&&Ch(e,n,s)}o(UA,"importFlexChangesOfTableAndColumns");function Z3(e,t,n,i,r){var s;let a;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?a=t[e+"<LineItems>"]:t[om]&&t[am]&&(a=JSON.parse(JSON.stringify(t[om])),a.properties={...a.properties,...t[am].properties}),Dn(n.table,i.manifest,a,r,i.logger),UA(i,a,n),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&se(i.logger,{severity:qt.LogSeverity.Error,message:q.t("NOLINEITEMS")})}o(Z3,"importTable");function eX(e,t,n,i){let r=e.jsonSchema.definitions,a=Ih(e.manifest,i);if(t.table=n.createInstance(qt.PageTypeV2.ListReport,a,t.table),Nh(t,n,r),Z3(a,r,t,e,i),t.table.toolBar=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,r[qt.DefinitionName.ToolBarLR],i,e.logger),r[qt.DefinitionName.ActionsLR])for(let l in r[qt.DefinitionName.ActionsLR].properties){let u=gs(l);t.table.toolBar.actions[u]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.Action),Dn(t.table.toolBar.actions[u],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}J3(t,n,e,r,i),t.footer={actions:{}};let s=r[qt.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=gs(l);t.footer.actions[u]=n.createInstance(qt.PageTypeV2.ListReport,qt.DefinitionName.FooterAction),Dn(t.footer.actions[u],e.manifest,r[qt.DefinitionName.Action],i,e.logger)}}o(eX,"addSettings");function Fh(e){if(rn(),!Ml(e))return;let n=new _i,i=n.createPageInstance(qt.PageTypeV2.ListReport),r=[],a=wl(e.manifest[qt.ManifestSection.generic].pages,r);if(kl(a,e.logger,a==null?void 0:a.entitySet),!!a)return eX(e,i,n,r[0]),e.flex.forEach(s=>{ro(s)&&Oh(i,s,e.jsonSchema,e.logger)}),Vl(i,e,a,qt.PageTypeV2.ListReport),Lh(i),i}o(Fh,"createListReportConfig");var xt=ie(le());function tX(e,t,n,i){var p,g;let r=Ih(e.manifest,i),a=e.jsonSchema.definitions;Nh(t,n,a),t.table=n.createInstance(xt.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table);let s=a[`ALP${r}<LineItems>`];if(Dn(t.table,e.manifest,s,i,e.logger),UA(e,s,t),t.table.toolBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.ToolBar,{actions:{}}),Dn(t.table.toolBar,e.manifest,a[xt.DefinitionName.ToolBar],i,e.logger),a[xt.DefinitionName.ActionsLR])for(let m in a[xt.DefinitionName.ActionsLR].properties){let v=gs(m);t.table.toolBar.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.Action),Dn(t.table.toolBar.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),Dn(t.filterBar,e.manifest,a[xt.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),a[xt.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let m=a[xt.DefinitionName.SelectionFields].properties;for(let v in m){let A=v;t.filterBar.selectionFields[A]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),Dn(t.filterBar.selectionFields[A],e.manifest,a.SelectionFieldDateSettings,i,e.logger,A)}}t.chart=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),Dn(t.chart,e.manifest,a.ChartSettings,i,e.logger),t.footer={actions:{}};let l=a[xt.DefinitionName.FooterActionsLR];if(l)for(let m in l.properties){let v=gs(m);t.footer.actions[v]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,xt.DefinitionName.FooterAction),Dn(t.footer.actions[v],e.manifest,a[xt.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let u=(g=(p=e.manifest[xt.ManifestSection.generic].pages[i].component)==null?void 0:p.settings)==null?void 0:g.keyPerformanceIndicators;u&&Object.keys(u).forEach(m=>{t.keyPerformanceIndicators[m]=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(xt.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),Dn(t.keyPerformanceIndicators[m],e.manifest,a.KPISettings,i,e.logger,m)})}o(tX,"addSettings");function Dh(e){if(rn(),!Ml(e))return;let n=new _i,i=n.createPageInstance(xt.PageTypeV2.AnalyticalListPage),r=[],a=jl(e.manifest[xt.ManifestSection.generic].pages,r,e.logger);if(kl(a,e.logger,a==null?void 0:a.entitySet),!!a)return tX(e,i,n,r[0]),e.flex.forEach(s=>{ro(s)&&Oh(i,s,e.jsonSchema,e.logger)}),Vl(i,e,a,xt.PageTypeV2.AnalyticalListPage),Lh(i),i}o(Dh,"createAnalyticalListPageConfig");var Ee=ie(le());var Zu=require("@sap-ux/vocabularies-types/vocabularies/UI");var iX=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function rX(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=`${Ee.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(rX,"getSingleSelectorIdPart");function oX(e){let t,n=e.split(":::");if(n.length===1)t=rX(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(oX,"getFacetID");function aX(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let g=ro(s),m=g&&((l=g.controlId)==null?void 0:l.split("--"))||[];if(g&&((u=m[0])!=null&&u.includes(Ee.v2.FE_TEMPLATE_V2_OBJECT_PAGE))&&((p=m[0])!=null&&p.endsWith(t))){let v=m[1].replace(/:3a:3a/g,"::");r.exec(v)!==null&&(v=v.split("template:::TableColumn:::")[1]);let A=oX(v);v=DA(v).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${v}::${g.content.property}`]={controlId:v,propertyId:g.content.property,facetId:A,newValue:g.content.newBinding!==void 0?g.content.newBinding:g.content.newValue,controlType:g.controlType,creation:g.creation}}}catch(g){se(n,{severity:Ee.LogSeverity.Error,message:q.t("FLEXERROR")},...g)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}o(aX,"prepareFlexChanges");var sX=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 cX(e,t,n,i){if(Object.keys(e.properties).some(r=>r===t.propertyId))for(let r in n)r!=="custom"&&FA(i,t,r)}o(cX,"addFlexChangeToColumns");function K1(e,t,n,i,r,a){var l;let s=i.title?[i.title.replace(/@/g,"")]:[i.id.replace(/@/g,""),(l=i.id)==null?void 0:l.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let u in e){let p=e[u],g=p.propertyId===t,m=t==="columns"&&p.controlType===Ee.ControlType.TableColumn;(g||m)&&s.indexOf(p==null?void 0:p.facetId)>-1&&(a?cX(a,p,r.properties,n):xh(n,p,r))}}o(K1,"importFlexChangesOfTable");function lX(e,t){return e.facetId==="template"&&t}o(lX,"isStandardActionFlexChange");var X1=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 fX(e,t,n,i,r,a){var I;let s=!1,l=!1;a?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let u=t.controlId.split("::"),p=t.controlType===Ee.ControlType.GroupElement&&l,g=((I=t.facetId)==null?void 0:I.includes(Ee.ACTIONTITLEPREFIX))&&!r&&s,m=r&&X1(u,r.split("::"))&&s,v=e.title&&X1(u,e.title.split("::"),!0),A=!t.facetId&&iX.includes(t.controlType),b=lX(t,l);return p||g||m||v||A||b}o(fX,"matchSelector");function uX(e,t,n,i,r,a){var u;let s=new RegExp(`.*${a}`),l=new RegExp(`.*${r}`);for(let p in n){let g=n[p];if(g.propertyId!==i||g.controlType!==((u=e.properties[g.propertyId])==null?void 0:u[Ee.SchemaTag.controlType]))continue;fX(e,g,s,l,r,a)&&(t[i]=g.newValue)}}o(uX,"importFlexChanges");function pX(e,t,n,i){if(e&&t)for(let r in e){let a=t[r];a&&(se(n.logger,{severity:Ee.LogSeverity.Warning,message:tm(r,a),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}o(pX,"checkDeprecatedProperties");function dX(e,t,n,i,r,a,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=$n(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=$n(n.manifest,u))):(u=e.manifest.path(t,{},l),p=$n(n.manifest,u));let g=e.manifest.import;if(g&&typeof g=="function"){let m=g(p,s==null?void 0:s.id);m!==void 0&&(i[r]=m)}else{let m=e.manifest.key||r;m in p&&(i[r]=p[m])}return pX(p,a,n,u),p}o(dX,"importManifestSetting");function Vi(e,t,n,i,r,a){var u,p;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{},l=e.jsonSchema.definitions.TableColumn;for(let g in n.properties||n){let m=zn(t,g);if(g==="columns"||m!=null&&m.flex)if((u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSectionTableV2")||(p=r==null?void 0:r.type)!=null&&p.startsWith("ObjectPageSubSectionTableV2"))if(g==="columns"){let v=n.properties[g].$ref.split($)[1],A=e.jsonSchema.definitions[v];K1(i.flexChanges,g,t,r,A,l)}else K1(i.flexChanges,g,t,r,n);else{let v=(r==null?void 0:r.title)||(r==null?void 0:r.id);uX(n,t,i.flexChanges,g,v,a)}else m!=null&&m.manifest&&dX(m,i.pageKeys,e,t,g,s,r)}}o(Vi,"transferSettingsAndFlexChanges");function q1(e,t,n,i){let r=zi(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=`${N0}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${sm}${r}`;break}}return r.replace(/@/g,"")}o(q1,"getActionId");function gX(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=q1(s,a,"","");e.actions[a]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Vi(n,e[Ee.PropertyName.actions][a],n.jsonSchema.definitions[l],i,{},u)}}}o(gX,"fillStandardActions");function _h(e,t,n,i,r,a){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};a&&(u.id=a);for(let p in t){let g=gs(p),m=q1(s,g,r,a);m&&(n[Ee.PropertyName.actions][g]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Vi(e,n[Ee.PropertyName.actions][g],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[g]&&Object.keys(n[Ee.PropertyName.actions][g]).length===0&&delete n[Ee.PropertyName.actions][g]}}gX(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}o(_h,"fillActions");function mX(e,t,n,i,r){var s;let a;i[t.id].form.fields={};for(let l in n){a=`${l}::GroupElement`,i[t.id].form.fields[l]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"Field");let u=(s=t.title)!=null&&s.includes(Ee.UIVOCABULARYALPHADOT)?`${t.id.replace(/@/g,"")}::${a}`:`${t.title}::${a}`;Vi(e,i[t.id].form.fields[l],e.jsonSchema.definitions[Ee.DefinitionName.Field],r,{},u),Object.keys(i[t.id].form.fields[l]).length===0&&delete i[t.id].form.fields[l]}Object.keys(i[t.id].form.fields).length===0&&delete i[t.id].form.fields}o(mX,"fillFields");function hX(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(hX,"prepareTableSchema");function yX(e,t,n,i,r){var l,u;let a=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",g=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,`ObjectPage${p}`,{toolBar:{}});i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{table:{}}),i[t.id][Ee.PropertyName.table]=g;let m=e.jsonSchema.definitions,v=hX(p,t,m);Vi(e,i[t.id],t.schema,r,{title:t.title}),Vi(e,i[t.id][Ee.PropertyName.table],v,r,t);let A=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(A!=null&&A.properties){let 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");_h(e,A.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",b)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}o(yX,"fillTableInConfig");function vX(e,t,n,i,r){let a=e.jsonSchema.definitions[t].properties.custom,s=a?im(a.$ref):void 0;if(s){let l={key:t.replace("@",""),target:s};Vl(n[t],e,i,Ee.PageTypeV2.ObjectPage,l,r)}}o(vX,"fillCustomColumnsInConfig");function TX(e,t,n,i,r){let a=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[a];i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{chart:{}}),i[t.id][Ee.PropertyName.chart]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageChart"),(s||r.flexChanges)&&(Vi(e,i[t.id],t.schema,r,{title:t.title}),Vi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}o(TX,"fillChartSection");function bX(e,t,n,i){n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{}),i.flexChanges&&Vi(e,n[t.id],t.schema,i,{title:t.title}),Object.keys(n[t.id]).length===0&&delete n[t.id]}o(bX,"fillHeaderSection");function EX(e,t,n,i){var u;let r=t.schema.properties.form.$ref.split("SectionForm")[1];n[t.id]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{form:{}}),i.flexChanges&&Vi(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&&_h(e,a.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&mX(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(EX,"fillFormSection");function Q1(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Vi(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,$A(e,a,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}o(Q1,"fillSubSection");function $A(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:sX(t[l]),schema:t[l],title:_b(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=a[`${p.type}<${l}>`],yX(e,p,n,i,r),vX(e,u,i,r.v2Page,l);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=a[`${p.type}<${l}>`],TX(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=a[`${p.type}<${l}>`],EX(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}>`],Q1(e,p,n,i,r);break}case"ObjectPageHeaderSectionAddress":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionDataPoint":case"ObjectPageHeaderSectionForm":{p.schema=a[`${p.type}<${l}>`],bX(e,p,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=a[`${p.type}<${l}>`],Q1(e,p,n,i,r))}}o($A,"fillSectionsInConfig");function AX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let a in e){let s="fragmentName"in e[a]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[a]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Vi(r,s,l,n,{id:a}),t.sections.custom.push(s)}}}o(AX,"fillCustomSectionsInConfig");function SX(e,t){var g,m;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Vi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Vi(e,n.globalTableSettings,i[Ee.DefinitionName.GlobalTableSettings],t),Object.keys(n.globalTableSettings).length===0&&delete n.globalTableSettings,n.header=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.ObjectPageHeader);let r=i[Ee.DefinitionName.ObjectPageHeader]?i[Ee.DefinitionName.ObjectPageHeader]:i["ObjectPageHeader<GenericActions>"];Vi(e,n.header,r,t);let a=i[Ee.DefinitionName.ObjectPageHeaderActions];a&&_h(e,a.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&_h(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Vi(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.header.sections={};let l=i[Ee.DefinitionName.HeaderSections];if(l){let v=(g=t.v2Page.component)==null?void 0:g.settings;$A(e,l.properties,v,n.header.sections,t)}Object.keys(n.header.sections).length===0&&delete n.header.sections,n.sections={};let u=i[Ee.DefinitionName.Sections];if(u){let v=(m=t.v2Page.component)==null?void 0:m.settings;$A(e,u.properties,v,n.sections,t)}let p=B1(e.manifest,e.entitySet);return AX(p,n,t,i,e),n}o(SX,"fillConfig");function Vh(e){rn();let t=Ml(e);if(!t)return;let n=e.entitySet,i=[],r=Ec(t,e.entitySet,i);if(kl(r,e.logger,n),!r)return;let a=aX(e.flex,n),s=new _i;return SX(e,{pageKeys:i,flexChanges:a,v2Page:r,factory:s})}o(Vh,"createObjectPageConfigV2");function Mh(e,t){var n,i;return(n=e.component)!=null&&n.name?Qg(fa((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}o(Mh,"generateId");function PX(e,t,n,i){e.navigation={};let r=z1(t.pages,n);for(let a in r){let s=r[a];i[a]=s}for(let a in t.pages){let s=Mh(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(PX,"getPageConfigsAndNavigations");function z1(e,t){var i;let n={};for(let r in e){let a=e[r],s=Mh(a,r);if(!s)continue;let l={pageType:fa((i=a.component)==null?void 0:i.name),entitySet:a.entitySet,...a.navigationProperty&&{navigationProperty:a.navigationProperty},...a.defaultLayoutType&&{defaultLayoutType:a.defaultLayoutType}};n[s]=l;let u=Object.keys(t.appSchemas).find(p=>p.includes(s))||Object.keys(t.appSchemas).find(p=>p.includes(s.slice(0,-1)))||Object.keys(t.appSchemas).find(p=>p.includes(l.pageType));if(u)if(l.pageType===_n.PageTypeV2.ListReport){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Fh(p)}else if(l.pageType===_n.PageTypeV2.AnalyticalListPage){let p={manifest:t.manifest,flex:t.flexChanges,jsonSchema:t.appSchemas[u],fragments:t.fragments,logger:t.logger};l.config=Dh(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=Vh(p)}a.pages&&PX(l,a,t,n)}return n}o(z1,"getPagesAndConfigs");var BA=class BA extends Ya{constructor(t){rn();let n;t.manifest[_n.ManifestSection.generic]?n=t.manifest[_n.ManifestSection.generic].pages:se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOFE"),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}}),n||se(t.logger,{severity:_n.LogSeverity.Error,message:q.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:_n.MANIFESTPATH,range:[_n.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&Mh(n[i],i),a=new Ja,s=_t(_n.SchemaType.Application),l=t.appSchemas[s.filename];Dn(a,t.manifest,l.definitions.AppSettings,void 0),super(t,r,z1(n,t),a)}};o(BA,"V2AppProvider");var wh=BA;function ep(e,t,n){var r,a;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||se(n,{severity:_n.LogSeverity.Error,message:q.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:_n.MANIFESTPATH}}),((a=l.component)==null?void 0:a.name)===t){let u=Mh(l,s);i[u]=l}if(t===_n.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=ep(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}o(ep,"getPages");var Sc=ie(le());var Uo=ie(le());var GA=ie(nb());var Vt=ie(le());var xX=["colorPalette","tabs"];function CX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}o(CX,"createCard");function Y1(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),Y1(e,n.join("|"))}return t}o(Y1,"findAvailableId");function tp(e,t,n,i,r,a,s){i!=null&&i.properties&&HA(e,t,n,i.properties,r,a,s)}o(tp,"transferManifestEntriesOVP");function Ac(e,t,n,i){return e.createInstance(Vt.PageTypeV2.OverviewPage,i,n,t)}o(Ac,"assignReflectMetadataRules");function OX(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=Ac(e.factory,i[1],t,"CustomCard"),tp(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}o(OX,"processAnyOfDefinitionsOfOVP");function IX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!xX.includes(i)?t[i]=(0,GA.default)(t[i]||{},r||{},{arrayMerge:Rb}):t[i]=r}o(IX,"checkSyncRuleForExport");function NX(e,t,n,i,r,a){let s=e.manifest.path([...t,n]),l=$n(i.manifest,s);if(n in Vt.v2.CardSettingsType||n==="settings")l.settings=(0,GA.default)(l.settings||{},r||{},{arrayMerge:Rb});else if(r!==void 0){let u=e.manifest.export;IX(u,l,a,n,r)}else l[n]!==void 0&&delete l[n]}o(NX,"transferToManifest");function LX(e){Object.keys(e.currentObject).forEach(t=>{let n=e.currentObject[t].template,i;Object.values(Vt.v2.CardTemplateType).includes(n)?i=Object.keys(e.appSchema.definitions).filter(r=>{var s;let a=(s=e.appSchema.definitions[r].properties)==null?void 0:s.template;if(a!=null&&a.enum)return a.enum.indexOf(e.currentObject[t].template)>-1;if(a!=null&&a.const)return a.const===e.currentObject[t].template}):i=["CustomCard"],e.currentObject[t]=Ac(e.factory,i[0],e.currentObject[t],"CustomCard"),CX(t,e.exportResults.manifest[Vt.ManifestSection.ovp]),e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,tp(e.currentObject[t],e.exportResults,e.appSchema,e.appSchema.definitions[i[0]],e.factory,["cards",t],e.entityPathArray)}),Object.keys(e.exportResults.manifest[Vt.ManifestSection.ovp].cards).forEach(t=>{e.currentObject[t]||(delete e.exportResults.manifest[Vt.ManifestSection.ovp].cards[t],e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated)})}o(LX,"transferCards");function RX(e,t){if(t==="cards")LX(e);else{let n=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,e.factory,Vt.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let i=e.propertyList[t].$ref.split($);e.currentObject=Ac(e.factory,t,e.currentObject,i[1]),e.pathHierarchy=[...e.pathHierarchy,t],tp(e.currentObject,e.exportResults,e.appSchema,n.targetDefinition,e.factory,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],HA(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],e.factory,e.pathHierarchy,e.entityPathArray)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],HA(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy,e.entityPathArray))}}o(RX,"exportOfObject");function HA(e,t,n,i,r,a,s){for(let l in i){if(l==="description"||s&&a&&s[a.length]!==l&&!dl(a,s)&&a[a.length-1]!=="anyOf")continue;let u=e[l],p=zn(e,l),g={pathHierarchy:a,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t,entityPathArray:s};a[a.length-1]==="anyOf"?(g.currentObject=e[a[a.length-2]],u=OX(g)):u&&typeof u=="object"&&i[l]&&RX(g,l),p!=null&&p.manifest&&NX(p,a,l,t,u,e)}}o(HA,"processProperties");function FX(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=x0(a,n,e.ui5Version,s,u),g=JSON.parse(JSON.stringify(e.exportResults.manifest));g["sap.app"].id=e.appId;let m=C0(p,g);e.exportResults.flexChanges.find(A=>{let b=!1,I=JSON.parse(A);I={content:I.content,selector:I.selector};let F=JSON.parse(m);return F={content:F.content,selector:F.selector},JSON.stringify(I)===JSON.stringify(F)&&(b=!0),b})||e.exportResults.flexChanges.push(m)}o(FX,"evaluateFlexRule");function DX(e,t,n,i,r,a){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[a]===void 0&&(n[a]={},e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated);else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,a):s!==!1&&(n[a]=i[r]),e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated}}o(DX,"exportConfigValueToManifest");function _X(e,t,n,i,r){let a=$n(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)DX(e,n,a,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(a,r,i,s):Object.prototype.hasOwnProperty.call(a,s)&&delete a[s],e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,Ka(e.exportResults.manifest,t,e.deletionRequest,e.entityPathArray)}}o(_X,"evaluateManifestRule");function VX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(Vt.FACETTITLEPREFIX)?r.split(Vt.FACETTITLEPREFIX)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}o(VX,"getManifestPathOfSections");function wX(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(wX,"getManifestPathOfTable");function MX(e,t,n,i,r){let a;return t[0]===Vt.PropertyName.sections?a=VX(t,a,n,e,r):t[0]===Vt.PropertyName.table?a=wX(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(MX,"getManifestPath");function kX(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)FX(e,i,t,r,a,n,s);else if(t.manifest){let u=MX(e,i,t,n,a);_X(e,u,t,s,n)}}o(kX,"evaluateExportRule");function jX(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)&&(km(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(Vt.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(Vt.ViewTemplateType.ResponsiveTableColumnsExtension,Vt.ViewTemplateType.ResponsiveTableCellsExtension);km(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}o(jX,"deleteObsoleteColumn");function UX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=Z0(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&(e.exportResults.manifestChangeIndicator=Vt.ChangeIndicator.Updated,jX(r,e,n))}o(UX,"deleteObsoleteColumnsFromFragment");function $X(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}=jm(n,i,s.tabKey||r,s.extensionType);a[l]||(a[l]={viewTemplateType:u,columns:[]}),a[l].columns.push(s)}return a}o($X,"clusterConfigColumnsByPath");function J1(e,t,n,i){if(!e.v2Page)return;let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in Vt.v2.TableColumnExtensionTypeV2){let{path:u}=jm(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};try{UX(p)}catch(g){e.logger.error(g.message)}}if(t){let l=$X(t,n,e.v2Page,s,r);for(let u in l)vE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}o(J1,"transferColumnExtensions");function BX(e,t,n,i,r,a){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let g=Y1(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($),v=e.appSchema.definitions[m[m.length-1]];ms(e,t[p],i,[...r,s[p]],v)}let u=$n(e.exportResults.manifest,Hb());for(let p in u)VA(p,l)&&!s.includes(p)&&delete u[p]}o(BX,"transferManifestExtensions");function HX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===Vt.PropertyName.table){n=e[i-1];break}return Qn(n,t)}o(HX,"getSectionId");function GX(e,t,n,i,r,a){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Fo(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ms(t,u.configObject,r,[...a,i],u.targetDefinition,l)})}o(GX,"transferIndexTable");function WX(e,t,n,i,r,a){let s,l=im(e.$ref);l&&(s={target:l,key:HX(t,n)}),J1(i,r==null?void 0:r.custom,a.targetDefinition,s)}o(WX,"transferCustomColumns");function KX(e,t,n,i,r,a,s){e.anyOf.forEach(l=>{let u=Fo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ms(t,u.configObject,a,[...s,r],u.targetDefinition,u.title)})}o(KX,"handleAnyOfDefinitions");function XX(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")BX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(a&&r==="custom"){WX(l,t,s,e,n,a);return}else a?ms(e,a.configObject,i,[...t,r],a.targetDefinition,a.title):l.anyOf&&KX(l,e,s,n==null?void 0:n[r],r,i,t)}o(XX,"transferComplexProperty");function ms(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&&!dl(i,e.entityPathArray))continue;s=t==null?void 0:t[l];let u=t&&Zg(t,l),p=u?[...n,u]:n,g=zn(t,l),m=e.propertyDefinition=r.properties[l],v=e.nextDefinition=Fo(e.appSchema,a,s,m,l,e.factory,e.pageType);if(kX(e,g,t,[...i],p,a,l),GX(s,e,a,l,p,i),s===void 0||typeof s=="object")XX(e,i,t,p,l,v,a);else if((m==null?void 0:m.$ref)===$+"TableCustomColumns"){J1(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}o(ms,"transferManifestEntriesAndFlexChange");function Z1(e,t,n,i,r,a){let s=t[t.length-1],l=e.jsonSchema.definitions[s];n[i]=Ac(r,i,n[i],s),a.push(i),WA(r,n[i],e,l.properties,a)}o(Z1,"transferSettingsOfRef");function QX(e,t,n,i,r,a){if(n[t].$ref){e[t]={};let s=n[t].$ref.split($);Z1(i,s,e,t,r,a)}else if(t==="settings"&&n[t].anyOf){e[t]={};let l=`${$}${Uo.v2.cardTemplateSettingsMap[e.template]}`.split($);Z1(i,l,e,t,r,a)}}o(QX,"processPropertiesOfObject");function qX(e,t,n,i,r,a){let s=zn(e,t);if(s!=null&&s.manifest){let l=s.manifest.path([...n,t]),u=$n(i.manifest,l);if(Object.prototype.hasOwnProperty.call(u,t))try{hl(s,u,t,e)}catch(p){se(i.logger,{severity:Uo.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:zg(p)}),location:{path:l}})}}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&QX(e,t,r,i,a,n)}o(qX,"processOvpProperty");function WA(e,t,n,i,r){for(let a in i)qX(t,a,r,n,i,e)}o(WA,"processOvpProperties");function zX(e,t,n){WA(n,e,t,t.jsonSchema.properties,[]),e.cards={},Object.keys(t.manifest[Uo.ManifestSection.ovp].cards).forEach(i=>{let r=t.manifest[Uo.ManifestSection.ovp].cards[i].template,a=Uo.v2.cardTemplateTypeMap[r]??"CustomCard";e.cards[i]=Ac(n,a,{},"CustomCard"),e.cards=Ac(n,a,e.cards,"CustomCard"),WA(n,e.cards[i],t,t.jsonSchema.definitions[a].properties,["cards",i])})}o(zX,"addSettings");function kh(e){let t=new _i,n=t.createPageInstance(Uo.PageTypeV2.OverviewPage);return e.jsonSchema&&zX(n,e,t),n}o(kh,"createOverviewPageConfig");var KA=class KA extends Ya{constructor(t){let n={},i=t.manifest[Sc.ManifestSection.ovp],r=new Ja,a=_t(Sc.SchemaType.Application);Dn(r,t.manifest,t.appSchemas[a.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(g=>g.includes(Sc.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s],logger:t.logger},u={pageType:Sc.PageTypeV2.OverviewPage,config:kh(l),entitySet:i.globalFilterEntitySet},p=Qg(u.pageType,u.entitySet);n[p]=u,super(t,p,n,r)}};o(KA,"V2OvpProvider");var jh=KA;var $o=require("@sap-ux/vocabularies-types/vocabularies/UI");var te=ie(le()),eD=require("path");function YX(){return([e,t],[n,i])=>t[te.SchemaTag.propertyIndex]-i[te.SchemaTag.propertyIndex]}o(YX,"sortByPropertyIndex");function np(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(YX())}o(np,"sortPropertiesRecords");function JX(e){let t;return typeof e=="object"?"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label):typeof e=="string"&&(t=e),t}o(JX,"getExtensionText");function XA(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||te.v4.Placement.After)===te.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}o(XA,"addExtensionToSortedArray");function ZX(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(ZX,"addRemainingTargetByBefore");function tD(e,t,n,i){let r=t.includes(te.DefinitionName.ObjectPageCustomSectionFragment)?`${t}<${n}>`:t,a=JX(e);return{$ref:`${$}${r}`,description:a,keys:[{name:te.SchemaKeyName.key,value:`${n}`}],...i!==void 0&&{actionType:i}}}o(tD,"getExtensionDetails");function QA(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=tD(g,t,p);if((l=g.position)!=null&&l.anchor&&((u=g.position)!=null&&u.placement)){let v=n.findIndex(A=>A[0]===g.position.anchor);v>-1?(XA(g,n,v,p,m),delete e[p]):p===g.position.anchor||Object.keys(e).indexOf(g.position.anchor)===-1?(se(i,{severity:wi.LogSeverity.Error,message:q.t("INVALIDANCHOR",{id:p,anchor:g.position.anchor}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5]}}),n.splice(n.length,0,[p,m]),delete e[p]):r&&ZX(e,p,g,n,m)}else r&&(XA(g,n,n.length,p,m),delete e[p])}let s=Object.entries(e).length;s>0&&a!==s?QA(e,t,n,i):s>0&&QA(e,t,n,i,!0)}o(QA,"adjustCustomExtReferringToCustomExt");function e7(e,t){var r,a;let n=((r=e.position)==null?void 0:r.placement)||te.v4.Placement.After,i=(a=e.position)==null?void 0:a.anchor;if(!i){let s=n===te.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}o(e7,"getExtensionAnchor");function t7(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(t7,"getLocalExtensionsToSkip");function n7(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||te.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let a=o((p,g)=>{for(let m of n){let v=t[m[0]];if(g(v))break;p++}return p},"findNextIndex"),s=0;return i===te.v4.Placement.Before?s=a(0,p=>!p):s=a(-1,p=>{var g,m;return!!(p&&((g=p==null?void 0:p.position)!=null&&g.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==te.v4.Placement.Before))}),s>-1?s:0}o(n7,"getExtensionIndexByMergedApproach");function i7(e,t,n,i,r=!1){return r?n7(e,t,n):n.findIndex(a=>a[0]===i)}o(i7,"getExtensionIndex");function r7(e,t,n,i,r){se(e,{severity:wi.LogSeverity.Error,message:q.t("INVALIDEXTENSION",{id:t}),location:{path:te.MANIFESTPATH}}),n.push([t,i]),delete r[t]}o(r7,"handleInvalidExtension");function Ta(e,t,n,i="template",r,a=!1){let s=[...t],l={...e},u=t7(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=tD(g,n,p,te.ActionType.Custom);if(typeof g!="object"){r7(r,p,t,m,l);continue}if(!(i in g)){delete l[p];continue}let v=e7(g,s);if(v){let A=i7(g,e,t,v,a);A>-1&&(XA(g,t,A,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&QA(l,n,t,r),t}o(Ta,"addExtensionToArray");function qA(e,t){let n=[];for(let i of Object.keys(e.properties))i.indexOf("::")>-1&&n.push(i.substring(i.indexOf("::")+2));t.properties.properties.items.enum=n}o(qA,"addEnumForProperties");function o7(e,t,n,i=te.DefinitionName.CustomColumn){if(i===te.DefinitionName.CustomColumn||i.indexOf(te.DefinitionName.ViewCustomColumn)>-1){let r=t.definitions[i];qA(n,r)}for(let r=0;r<e.length;r++){let a=e[r][1];a[te.SchemaTag.propertyIndex]=r}}o(o7,"addColumnPropertyIndexAndEnum");function Pc(e,t,n,i=te.DefinitionName.CustomColumn,r,a){var v,A,b,I;let s=r||te.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=np(l),p=a?a.replace(/::/g,"/"):`@${$o.UIAnnotationTerms.LineItem}`,g=(I=(b=(A=(v=t.options)==null?void 0:v.settings)==null?void 0:A.controlConfiguration)==null?void 0:b[p])==null?void 0:I.columns;g&&(u=Ta(g,u,i,void 0,n)),o7(u,e,l,i);let m={};u.forEach(([F,j])=>m[F]=j),e.definitions[s].properties=m}o(Pc,"addCustomColumnDefinition");function a7(e){let t;return e.lineItemId.startsWith(te.DefinitionName.LineItemsOfView)?t=te.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(te.DefinitionName.LineItems)?t=te.DefinitionName.ToolBarAction:t=te.DefinitionName.ObjectPageToolBarAction,t}o(a7,"determineActionDefinitionName");function s7(e,t,n){e[te.SchemaTag.keys]=[],t[te.SchemaKeyName.semanticObject]&&e[te.SchemaTag.keys].push({name:te.SchemaKeyName.semanticObject,value:t[te.SchemaKeyName.semanticObject]});let{key:i,ns:r}=ic(n,!0);e[te.SchemaTag.keys].push({name:te.SchemaKeyName.action,value:i}),r&&(e[te.SchemaTag.target]=r)}o(s7,"addTargetAndKeysOfAction");function c7(e,t,n,i,r,a=!0){if(i.Determining===!0)return;let s=a7(e),l=Ai(i,e.entityType),u=i.$Type.split(`${te.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,g=rm(p),m=t.properties[`${u}::${g}`]={description:l};if(a?m.$ref=Si(s,dt(g)):(m.properties={},m.type="object",m.isViewNode=!0),m[te.SchemaTag.propertyIndex]=r,m[te.SchemaTag.dataType]=oo(i),s7(m,i,p),m[te.SchemaTag.annotationType]=i.$Type,a){let v=bt(s,dt(g),e.appSchema);v[te.SchemaTag.annotationPath]=`${n}/${r}`}else m[te.SchemaTag.annotationPath]=`${n}/${r}`}o(c7,"addActionRecordToSchema");function l7(e,t,n,i,r){var u;let a=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ii(te.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=da(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[a]);let g=p.properties,m={description:Ai(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=$+n,m[te.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[te.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[te.SchemaTag.propertyIndex]=i,m[te.SchemaTag.dataType]=oo(s),g[l]=m,mm(s,g,l)}}o(l7,"addLineItemRecordToSchema");function zA(e,t,n,i,r=te.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let a=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===$o.UIAnnotationTypes.DataFieldForAction||s.$Type===$o.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))c7(e,t,n,s,a,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===$o.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;l7(e,l,u,a,i)}a++})}o(zA,"appendLineItemsToSchema");function xc(e,t=te.DefinitionName.TableColumn,n=te.DefinitionName.CustomColumn,i=te.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:a}=dm(e.isObjectPage,e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);zA(e,r,a,void 0,t)}o(xc,"addLineItemsTypeToSchema");function Cc(e,t,n,i=te.DefinitionName.Position,r){var p,g,m,v,A;let a=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(a)for(let b in a)b!=="custom"&&s.push(b);let l=t!==te.DefinitionName.LineItems?r:`@${$o.UIAnnotationTerms.LineItem}`,u=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.controlConfiguration)==null?void 0:v[l])==null?void 0:A.columns;if(u)for(let b in u)s.indexOf(b)===-1&&s.push(b);if(s.length>0){let b=e.definitions[i].properties.anchor;ga(s,b)}}o(Cc,"addFragmentEnumForAnchor");function po(e,t,n=te.DefinitionName.CustomActionPosition){qa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}o(po,"addEnumForActionAnchor");function Uh(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===te.v4.FE_TEMPLATE_V4_ALP&&e[s].name===te.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[s];break}}return r}o(Uh,"findPageV4");function nD(e,t){let n,i=e.properties[te.PropertyName.table];return t.templateType===te.TemplateType.AnalyticalListPageV4?(n=te.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.ALPTableView}`,delete e.definitions[te.DefinitionName.Table],delete e.definitions[te.DefinitionName.LRChartView],delete e.definitions[te.DefinitionName.LRTableView],delete e.definitions[te.DefinitionName.MultiTableModeV4]):t.templateType===te.TemplateType.ListReportObjectPageV4&&(n=te.DefinitionName.Table,delete i.anyOf,i.$ref=`${$}${te.DefinitionName.Table}`,e.definitions[n].properties[te.PropertyName.annotationPath][te.SchemaTag.hidden]=!0,delete e.definitions[te.DefinitionName.ALPTableView],e.properties[te.PropertyName.defaultPath][te.SchemaTag.hidden]=!0),n}o(nD,"alignSchemaWithTemplateType");function ba(e,t,n,i=te.DefinitionName.CustomTableAction,r="",a=""){var g,m,v,A,b,I,F,j,K,U;let s=e.definitions[r];if(!s)return;let l=np(s),u;a?i.indexOf(te.DefinitionName.CustomFormActionOP)!==-1?u=a.replace(/::/g,"#"):u=a.replace(/::/g,"/"):i===te.DefinitionName.CustomFormActionOP?u=`@${$o.UIAnnotationTerms.FieldGroup}`:u=`@${$o.UIAnnotationTerms.LineItem}`;let p;if(r.includes(te.DefinitionName.ObjectPageCustomSectionActions)?p=(I=(b=(A=(v=(m=(g=t.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:b[u])==null?void 0:I.actions:p=(U=(K=(j=(F=t.options)==null?void 0:F.settings)==null?void 0:j.controlConfiguration)==null?void 0:K[u])==null?void 0:U.actions,p&&(l=Ta(p,l,i,"press",n)),l){for(let Z=0;Z<l.length;Z++)l[Z][1][te.SchemaTag.propertyIndex]=Z;let ae={};l.forEach(([Z,re])=>ae[Z]=re),e.definitions[r].properties=ae}}o(ba,"addCustomActionDefinition");function $h(e,t,n,i=te.DefinitionName.CustomHeaderActionOP,r=""){var p,g,m,v,A,b,I,F;let a=e.definitions[r];if(!a)return;let s=np(a),l;[te.DefinitionName.CustomHeaderAction,te.DefinitionName.CustomHeaderActionOP].includes(i)?l=(v=(m=(g=(p=t.options)==null?void 0:p.settings)==null?void 0:g.content)==null?void 0:m.header)==null?void 0:v.actions:l=(F=(I=(b=(A=t.options)==null?void 0:A.settings)==null?void 0:b.content)==null?void 0:I.footer)==null?void 0:F.actions,l&&(s=Ta(l,s,i,"press",n));let u={};if(s){for(let j=0;j<s.length;j++)s[j][1][te.SchemaTag.propertyIndex]=j;s.forEach(([j,K])=>u[j]=K)}e.definitions[r].properties=u}o($h,"addHeaderFooterCustomActionDefinition");function Oc(e,t,n){let i=Yg(e,[te.ManifestSection.ui5,"routing","targets"]);if(!i){se(n,{severity:wi.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}let r=Yg(i,[t]);if(!r){se(n,{severity:wi.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:t}),location:{path:te.MANIFESTPATH,range:[te.ManifestSection.ui5,"routing"]}});return}return r}o(Oc,"getManifestPage");function Ic(e,t,n,i,r){var a,s;if(r){let l=((a=n["sap.app"])==null?void 0:a.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),g=p.pop();g=`${g}.${i}.${u}`;let m=(0,eD.join)(...p,g),v=e.find(A=>A.dataSourceUri.endsWith(m));if(v){let A=(s=t.options)==null?void 0:s.settings;return{file:v,relativeFilePath:m,connection:{contextPath:A==null?void 0:A.contextPath,entitySet:A==null?void 0:A.entitySet}}}}}o(Ic,"getPageCustomExtensionFile");function Bo(e,t,n,i){let r=Oc(n,t,i),a=Yg(r,["options","settings","viewName"]);return r&&typeof a=="string"?Ic(e,r,n,"view",a):void 0}o(Bo,"getPageCustomViewFile");function iD(e,t,n,i,r,a,s){var g,m,v,A,b,I,F,j,K,U,ae,Z;let l=np(t),u=new Map;if(l=l.map(re=>{let Pe=Pm(e,re[1],re[0],{keyProperties:[te.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(Pe.const,re[0]),[Pe.const,re[1]]}),a){let re=(b=(A=(v=(m=(g=n.options)==null?void 0:g.settings)==null?void 0:m.content)==null?void 0:v.body)==null?void 0:A.sections)==null?void 0:b[a];re&&"subSections"in re&&(l=Ta(re.subSections,l,i,"template",s,r))}else if(i.includes(te.DefinitionName.ObjectPageCustomHeaderSectionFragment)){let re=(j=(F=(I=n.options)==null?void 0:I.settings)==null?void 0:F.content)==null?void 0:j.header;re&&"facets"in re&&(l=Ta(re.facets,l,i,"template",s,r))}else{let re=(Z=(ae=(U=(K=n.options)==null?void 0:K.settings)==null?void 0:U.content)==null?void 0:ae.body)==null?void 0:Z.sections;re&&(l=Ta(re,l,i,"template",s,r))}for(let re=0;re<l.length;re++)l[re][1][te.SchemaTag.propertyIndex]=re;let p={};l.forEach(([re,Pe])=>{re=u.get(re)||re,p[re]=Pe}),t.properties=p}o(iD,"addCustomSectionDefinition");function rD(e,t,n){var l,u,p;let i=np(t),r=new Map;i=i.map(g=>{let m=Pm(e,g[1],g[0],{keyProperties:[te.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,g[0]),[m.const,g[1]]});let a=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${$o.UIAnnotationTerms.SelectionFields}`];typeof a=="object"&&"filterFields"in a&&(i=Ta(a.filterFields,i,te.DefinitionName.CustomFilterField,"template"));for(let g=0;g<i.length;g++)i[g][1][te.SchemaTag.propertyIndex]=g;let s={};i.forEach(([g,m])=>{g=r.get(g)||g,s[g]=m}),t.properties=s}o(rD,"addCustomFilterFieldDefinition");var _=ie(le()),Nc=require("@sap-ux/vocabularies-types/vocabularies/UI");var f7=["header","filterBar","chart","table"],YA="@UI.LineItem";function JA(e,t,n,i,r){if(i||(i=t.definitions[_.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[_.SchemaTag.annotationPath]=mr(e.fullyQualifiedName,Nc.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=Wg(s,e)),i.properties[u]={$ref:$+u},i.properties[u][_.SchemaTag.propertyIndex]=a;let p=oo(s);t.definitions[u]={type:"object",properties:{},description:l,additionalProperties:!1,...p&&{dataType:p}},t.definitions[u][_.SchemaTag.isViewNode]=!0,t.definitions[u][_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:`${s.value}`}],((g=s.$target)==null?void 0:g.fullyQualifiedName.indexOf("@"))>-1?t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(m=s.$target)!=null&&m.fullyQualifiedName&&(t.definitions[u][_.SchemaTag.target]=s.$target.fullyQualifiedName.split("/")[0]),t.definitions[u][_.SchemaTag.annotationType]=s==null?void 0:s.type,t.definitions[u][_.SchemaTag.annotationPath]=`${i[_.SchemaTag.annotationPath]}/${a}`,a++})}return i}o(JA,"addSelectionFields");function u7(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Nc.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(u7,"getVisualFilters");function p7(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(p7,"getPropertiesIndex");function d7(e,t,n,i){var s,l,u,p,g,m;let r=p7(i,e),a=t.definitions[_.DefinitionName.VisualFilters];a.properties={};for(let v in n){let A=n[v];if(!A.template){let b=a.properties[v]={$ref:Si(_.DefinitionName.VisualFilter,v)},I=r.indexOf(v);I!==-1&&(b[_.SchemaTag.propertyIndex]=I);let F=bt(_.DefinitionName.VisualFilter,v,t);(s=A.visualFilter)!=null&&s.valueList&&(F[_.SchemaTag.annotationPath]=`${v}/@${A.visualFilter.valueList}`);let j=(m=(g=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(K=>K.name===v))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:g.Label)==null?void 0:m.toString();F.description=j||v,F[_.SchemaTag.keys]=[{name:_.SchemaKeyName.value,value:v}]}}}o(d7,"addVisualFilters");function g7(e,t,n){t.additionalProperties={$ref:`#/definitions/${_.DefinitionName.CustomFilterField}`},rD(e,t,n);let i=e.definitions[_.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&qa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.value,_.SchemaKeyName.key],descriptionAsFallback:!0})}o(g7,"applyCustomFilterFields");function m7(e,t,n,i){var l,u;let r=u7(n),a=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[_.DefinitionName.SelectionFields][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.SelectionFields].properties={},s=t.definitions[_.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},d7(e,t,r,a);else{let p=t.definitions[_.DefinitionName.FilterBar];p.properties.initialLayout[_.SchemaTag.hidden]=!0,p.properties.layout[_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.CompactFilters][_.SchemaTag.hidden]=!0,t.definitions[_.DefinitionName.VisualFilters][_.SchemaTag.hidden]=!0}s=JA(e,t,a,s),g7(t,s,n)}o(m7,"addFilterBar");function oD(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let a=e.definitions[t];a.properties={},a.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${_.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=dt(`${_.DefinitionName.ChartToolBarAction}<${u.Action}>`),g=Ai(u,r),m=u.$Type.split(`${_.UIVOCABULARY}.`)[1],v=a.properties[`${m}::${u.Action}`]={$ref:$+p,description:g};v[_.SchemaTag.propertyIndex]=l,v[_.SchemaTag.annotationType]=u.$Type,v[_.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[_.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][_.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}o(oD,"defineActions");function aD(e,t,n,i){var l;let r,a,s;return e&&(n==="primary"?a=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?a=e.find(u=>u.value.indexOf(_.FacetBase.LineItem)>-1):i?a=e.find(u=>u.value.indexOf(i)>-1):a=e[0],r=typeof(a==null?void 0:a.value)=="string"?ml(a.value):void 0,(l=a==null?void 0:a.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${a.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",_.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}o(aD,"findTheRightVisualization");function h7(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(h7,"analyzeChartAnnotation");function y7(e,t,n,i,r,a){var u;let{visualization:s,targetAnnotation:l}=aD((u=e.PresentationVariant)==null?void 0:u.Visualizations,t,n,i);return s||(se(r,{severity:_.LogSeverity.Error,message:q.t("NOVISUALIZATIONS")}),s=YA,l=`/${t}/`+s.replace("UI",_.UIVOCABULARY)),a=a||`View (${n})`,{visualization:s,targetAnnotation:l,namespace:t,title:a}}o(y7,"analyzeSPVforView");function $l(e,t,n,i,r,a){let s,l,u=e==null?void 0:e.split(`${_.UIVOCABULARY}.`)[1],p=u&&t[u];if(!p)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=p.Text,s=p.fullyQualifiedName.split(_.UIVOCABULARYALPHADOT)[0],u.startsWith("PresentationVariant")){let{visualization:g,targetAnnotation:m}=aD(p.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else{if(u.startsWith("SelectionPresentationVariant"))return y7(p,s,i,r,a,l);if(u.startsWith("SelectionVariant")){let g=YA,m=`/${s}/@${Nc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("LineItem")){let g=YA;p.qualifier&&(g+=`#${p.qualifier}`);let m=e.substring(0,1)==="@"?`/${s}/${e}`:`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:g,targetAnnotation:m,namespace:s,title:l}}else if(u.startsWith("Chart")){let{visualization:g,targetAnnotation:m,chartTitle:v}=h7(s,e,p,i);return{visualization:g,targetAnnotation:m,namespace:s,title:v}}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}o($l,"analyzeViewAnnotation");function v7(e,t,n,i){let r=e.definitions[_.DefinitionName.ALPChartView];if(e.definitions[_.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.isViewNode],n&&(e.definitions[_.DefinitionName.ALPChart][_.SchemaTag.annotationPath]=n),e.definitions[_.DefinitionName.ALPChart].properties.annotationPath[_.SchemaTag.hidden]=!0,r.properties.annotationPath[_.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${$}${_.DefinitionName.ALPChart}`,t){let a=t.split(_.UIVOCABULARYDOT)[1],s=i[a].fullyQualifiedName.split("@");r[_.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[_.SchemaTag.artifactType]=_.ArtifactType.Manifest,r[_.SchemaTag.key]="primary",r[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"primary"}]}o(v7,"addALPChartView");function T7(e,t,n,i,r,a){var j,K,U,ae,Z,re,Pe,D;let s=(j=n.entityType)==null?void 0:j.annotations.UI,l=(ae=(U=(K=t==null?void 0:t[0])==null?void 0:K.primary)==null?void 0:U[0])==null?void 0:ae[_.SchemaTag.annotationPath],{targetAnnotation:u}=$l(l,s,n.serviceAVT,"primary",void 0,n.logger);v7(e,l,u,s);let p="Actions<ALPChart>";e.definitions[_.DefinitionName.ViewChartToolBar].properties.actions.$ref=$+p,oD(e,p,s,u,n.entityType);let{visualization:g,targetAnnotation:m}=$l((Pe=(re=(Z=t==null?void 0:t[0])==null?void 0:Z.secondary)==null?void 0:re[0])==null?void 0:Pe[_.SchemaTag.annotationPath],s,n.serviceAVT,"secondary",void 0,n.logger),v=e.definitions[a];g||i?(v.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,v.properties.columns={$ref:$+_.DefinitionName.LineItems},v.properties.annotationPath[_.SchemaTag.hidden]=!0):v.properties={};let A=e.definitions[_.DefinitionName.ALPTableView];e.definitions[_.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(A)),delete e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.isViewNode],A.additionalProperties=!1,A.description="Table (key: secondary)",A.title="Table",g?(delete A.properties,A.$ref=`${$}${_.DefinitionName.ALPTable}`):i||(A.properties={}),A[_.SchemaTag.artifactType]=_.ArtifactType.Manifest;let b,I;if(g&&g.indexOf(_.FacetBase.LineItem)>-1?(b=g.split(".")[1],I=t[0].secondary[0].annotationPath.split(_.UIVOCABULARYDOT)[1]):i&&(b=I=i.split(_.UIVOCABULARYDOT)[1]),b){let ut={isObjectPage:!1,appSchema:e,lineItemAnnotation:(D=n.entityType)==null?void 0:D.annotations.UI[b],entityType:n.entityType,oDataServiceAVT:n.serviceAVT,lineItemId:_.DefinitionName.LineItems};xc(ut,_.DefinitionName.ViewTableColumn),m&&(e.definitions[_.DefinitionName.ALPTable][_.SchemaTag.annotationPath]=m);let yt=s[I].fullyQualifiedName.split("@");A[_.SchemaTag.annotationPath]=`/${yt[0]}/@${yt[1]}`,A[_.SchemaTag.key]="secondary",A[_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:"secondary"}]}Pc(e,r,n.logger);let F=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;ba(e,r,n.logger,void 0,F),po(e,F,_.DefinitionName.CustomActionPosition)}o(T7,"addALPViews");function b7(e,t){let n=`${_.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][_.SchemaTag.isViewNode],e.appSchema.definitions[n][_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${_.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[_.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${$}${i}`;let r=`${_.DefinitionName.Actions}<${e.viewKey}>`;return oD(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[_.PropertyName.actions].$ref=`${$}${r}`,n}o(b7,"addViewChartDefinitions");function E7(e,t,n,i,r,a){let s=b7(e,t);n.definitions[s].properties.annotationPath[_.SchemaTag.hidden]=!0,n.definitions[s].properties.index[_.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[_.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${$}${s}`,description:a||l,title:l}}o(E7,"addViewChart");function A7(e,t,n,i,r){var m;let a=`${_.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=bt(_.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[_.SchemaTag.isViewNode],l[_.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Qa(l.properties.toolBar,_.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${$}${a}`,description:e.title||u,title:u},Qa(l.properties.columns,s),l.properties.annotationPath[_.SchemaTag.hidden]=!0,l.properties.index[_.SchemaTag.hidden]=!0,l.properties.entitySet[_.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(_.UIVOCABULARYDOT)[1],g={isObjectPage:!1,appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};xc(g,_.DefinitionName.ViewTableColumn,_.DefinitionName.ViewCustomColumn,_.DefinitionName.ViewCustomAction)}o(A7,"addViewLineItems");function S7(e,t,n,i){e.properties[t][_.SchemaTag.isViewNode]=!0,e.properties[t][_.SchemaTag.annotationPath]=n?`/${n}/@${i[_.SchemaTag.annotationPath]}`:void 0,e.properties[t][_.SchemaTag.artifactType]=_.ArtifactType.Manifest,e.properties[t][_.SchemaTag.key]=t,e.properties[t][_.SchemaTag.keys]=[{name:_.SchemaKeyName.key,value:t}]}o(S7,"addTagsToView");function P7(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(P7,"getTargetEntityType");function x7(e,t,n,i){let r=`${_.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Nc.UIAnnotationTerms.LineItem}${n.split(_.Visualization.LineItem)[1]}`,l=bt(_.DefinitionName.ViewCustomColumn,r,e.appSchema);Qa(l.properties.position,_.DefinitionName.ViewPosition,r),bt(_.DefinitionName.ViewPosition,r,e.appSchema),Pc(e.appSchema,i,t.logger,`${_.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Cc(e.appSchema,r,i,`${_.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&delete e.appSchema.definitions.Position;let u=`${_.DefinitionName.Actions}<${r}>`,p=`${_.DefinitionName.ViewCustomAction}<${r}>`;ba(e.appSchema,i,t.logger,p,u,s),bt(_.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let g=`${_.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${$}${g}`,po(e.appSchema,u,g)}o(x7,"addViewCustomExtensions");function C7(e,t,n,i,r,a,s){if((e==null?void 0:e.indexOf(_.Visualization.LineItem))>-1)A7(n,t,e,n.targetAnnotation,i),x7(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)E7(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:`${$}${_.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${$}${_.DefinitionName.LRTableView}`}}}o(C7,"addLRViewParts");function O7(e,t,n,i,r){var l;let a=e.definitions[r];a.properties={annotationPath:a.properties.annotationPath,initialLoad:a.properties.initialLoad,views:a.properties.views};let s=e.definitions.MultiTableModeV4;for(let u of t){if(!u[_.SchemaTag.key])continue;let p,g=P7(n.entitySet,u,n),m=g==null?void 0:g.annotations.UI,{visualization:v,targetAnnotation:A,namespace:b,title:I}=$l(u==null?void 0:u[_.SchemaTag.annotationPath],m,n.serviceAVT,u[_.SchemaTag.key],void 0,n.logger);u.entitySet&&(p=(l=n.entityType.navigationProperties.find(K=>K.targetTypeName===b))==null?void 0:l.name);let F=dt(u[_.SchemaTag.key]),j={viewKey:F,appSchema:e,targetAnnotation:A,navPropName:p,targetEntityType:g,title:I,entitySet:u.entitySet};C7(v,s,j,n,i,m,u),S7(s,F,b,u)}}o(O7,"addLRViews");function I7(e,t,n,i,r,a){var g,m,v,A,b,I,F,j,K,U,ae,Z,re;let s=e.definitions[a],{visualization:l,targetAnnotation:u,namespace:p}=$l(n,(g=t.entityType)==null?void 0:g.annotations.UI,t.serviceAVT,void 0,_.Visualization.LineItem,t.logger);if(l){let Pe=l.split(".")[1],D=`${_.DefinitionName.LineItems}OfSPV::${dt(Pe)}`,ut=e.definitions[`${a}SPV`]=JSON.parse(JSON.stringify(e.definitions[a]));delete ut[_.SchemaTag.isViewNode],Qa(ut.properties.toolBar,_.DefinitionName.ToolBar,D),ut[_.SchemaTag.annotationPath]=u,ut.properties.columns={},Qa(ut.properties.columns,D),delete s.properties,Qa(s,`${a}SPV`),s[_.SchemaTag.annotationPath]=`/${p}/@${n}`;let yt=(m=t.entityType)==null?void 0:m.annotations.UI[Pe];yt||se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOTARGET",{target:Pe})});let Ue={isObjectPage:!1,appSchema:e,lineItemAnnotation:yt,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:D};xc(Ue);let sn=(v=Pe.split("#"))==null?void 0:v[1],Gn=sn?`@${Nc.UIAnnotationTerms.LineItem}#${sn}`:`@${Nc.UIAnnotationTerms.LineItem}`;Pc(e,i,t.logger,void 0,D,Gn),Cc(e,D,i,void 0,Gn);let tn=`${_.DefinitionName.Actions}<${D}>`,Rt=Em(e,D,_.DefinitionName.CustomTableAction);ba(e,i,t.logger,yn(Rt),tn,Gn),po(e,tn,_.DefinitionName.CustomActionPosition)}else{s.properties.toolBar.$ref=`${$}${_.DefinitionName.ToolBarLR}`,Qa(s.properties.columns,_.DefinitionName.LineItems);let Pe=(I=(b=(A=t.entityType)==null?void 0:A.annotations)==null?void 0:b[r])==null?void 0:I.LineItem;!Pe&&!((K=(j=(F=i.options)==null?void 0:F.settings)==null?void 0:j.views)!=null&&K.paths)&&se(t.logger,{severity:_.LogSeverity.Error,message:q.t("NOLINEITEMS")});let D={isObjectPage:!1,appSchema:e,lineItemAnnotation:Pe,entityType:t.entityType,oDataServiceAVT:t.serviceAVT,lineItemId:_.DefinitionName.LineItems};xc(D),Pc(e,i,t.logger),Cc(e,_.DefinitionName.LineItems,i),Pe&&!((Z=(ae=(U=i.options)==null?void 0:U.settings)==null?void 0:ae.views)!=null&&Z.paths)&&(s[_.SchemaTag.annotationPath]=mr((re=t.entityType)==null?void 0:re.fullyQualifiedName,Pe.term,Pe.qualifier));let ut=`${_.DefinitionName.Actions}<${dt(_.DefinitionName.LineItems)}>`;ba(e,i,t.logger,void 0,ut),po(e,ut,_.DefinitionName.CustomActionPosition)}}o(I7,"adaptTableDefinition");function N7(e,t,n){var i,r,a,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===_.TemplateType.ListReportObjectPageV4)){if((a=e.options.settings)!=null&&a.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===_.TemplateType.ListReportObjectPageV4)return((l=(s=t==null?void 0:t.annotations.UI)==null?void 0:s.SelectionPresentationVariant)==null?void 0:l.term)||((p=(u=t==null?void 0:t.annotations.UI)==null?void 0:u.PresentationVariant)==null?void 0:p.term)}}o(N7,"getDefaultAnnotationPath");function L7(e,t,n,i){var u,p,g,m,v;let r=(g=(p=(u=t.options)==null?void 0:u.settings)==null?void 0:p.views)==null?void 0:g.paths,a=n.entityType,s=N7(t,n.entityType,n.templateType),l=nD(e,n);m7(a,e,t,i),n.templateType===_.TemplateType.ListReportObjectPageV4?(I7(e,n,s,t,i,l),r?(delete e.definitions.LineItems,delete e.definitions["ToolBar<LineItems>"],delete e.definitions["Actions<LineItems>"],O7(e,r,n,t,l)):(v=(m=t.options)==null?void 0:m.settings)!=null&&v.views||(e.definitions.MultiTableModeV4.properties={}),e.properties[_.PropertyName.chart][_.SchemaTag.hidden]=!0):n.templateType===_.TemplateType.AnalyticalListPageV4&&(T7(e,r,n,s,t,l),Cc(e,_.DefinitionName.LineItems,t))}o(L7,"addTableAndViews");function R7(e,t,n){let i=_.DefinitionName.HeaderActions,r=e.definitions[i];r[_.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let a=_.DefinitionName.CustomHeaderAction,s=e.definitions[a];s[_.SchemaTag.isViewNode]=!0,s.description="Custom Action",$h(e,t,n,a,i);let l=_.DefinitionName.CustomHeaderActionPosition;bt(l,l,e,!1),s.properties.position.$ref=`${$}${l}`,po(e,i,l)}o(R7,"addHeaderActions");function ip(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),a=e.entityType,s=e.serviceAVT&&ii(_.UIVOCABULARY,e.serviceAVT);if(r.properties[_.PropertyName.defaultTemplateAnnotationPath][_.SchemaTag.hidden]=!0,Xa(a,r,_.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[_.ManifestSection.ui5].routing.targets;if(!l)return se(e.logger,{severity:_.LogSeverity.Error,message:q.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let u=Uh(l,n,e.entitySet,i);if(!u)return r;R7(r,u,e.logger),L7(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Do(r,f7),r}o(ip,"generateListReportSchemaV4");var Pr=require("@sap-ux/vocabularies-types/vocabularies/UI"),N=ie(le());var JV=ie(zs()),ZV=ie(YV()),ew=ie(VS());var tw=ie(le()),nw=ie(le());function iQ(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(iQ,"findElementByXMLPath");function iw(e,t){return e[t]?!1:(e[t]={},!0)}o(iw,"ensureObjectExists");function rQ(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(rQ,"getPropertiesFromRef");function oQ(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:a,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,g=iw(l,i),m=l[i];return wc({fullSchema:u,schema:p[i],element:a,contextPath:s,config:m,parent:e},t)||g}o(oQ,"traverseDefaultAggregation");function aQ(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(aQ,"isDefaultAggregationAppliable");function wc(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=rQ(s,n.$ref));for(let v in u){let A=u[v],b=typeof A=="object";if(b&&(p==null?void 0:p.defaultAggregation)===v&&aQ(u,p)&&(l=oQ(e,t,p)||l,b=!1),!!b)if((m=(g=A.metadata)==null?void 0:g.path)!=null&&m.length){let I=A.metadata.path,F=I.slice(r.length),j=iQ(i,F);l=iw(a,v)||l;let K=a[v];l=wc({fullSchema:e.fullSchema,schema:A,element:j,contextPath:I,config:K,parent:e},t)||l}else l=t(e,A,a,v)||l}return l}o(wc,"traverseSchema");function of(e,t,n){let i;try{if(t){let{cst:r,tokenVector:a}=(0,ew.parse)(e.fileContent),s=(0,ZV.buildAst)(r,a);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,JV.xml2js)(e.fileContent)}catch(r){se(n,{severity:nw.LogSeverity.Error,message:q.t("XMLPARSEFAILURE",{error:zg(r)}),location:{path:e.dataSourceUri}})}return i}o(of,"parseXML");function af(e){return`${tw.DefinitionName.CustomExtensionFragment}<${e}>`}o(af,"getCustomExtensionFragmentDefinitionKey");function Dy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}o(Dy,"getRootElement");var KS=ie(le()),XS=ie(le());var Lp=ie(le());function As(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}o(As,"getAttribute");function rw(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}o(rw,"getNodeByName");function sQ(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(sQ,"resolveMetaPath");function $S(e){var b;let{node:t,serviceAVT:n,connectionContext:i}=e,r=As(t,"contextPath")||i.contextPath,a=As(t,"metaPath"),s=i.entitySet,l=a==null?void 0:a.startsWith("/");if(!r&&!s&&!l)return;let u=r||`/${s}`;if(a){let I=sQ(a);I.path&&(u=l?I.path:`${u}/${I.path}`,a=I.term)}let p=n==null?void 0:n.resolvePath(u),g;switch((b=p==null?void 0:p.target)==null?void 0:b._type){case"EntitySet":{g=p.target.entityType;break}case"NavigationProperty":{g=p.target.targetType;break}case"EntityType":{g=p.target;break}}let m,v=a.split("#");v.length&&(m=v[1]);let A;if(a){let I=a.split(".");I.length&&(A=I[I.length-1])}return g?{entityType:g,metaPath:a,qualifier:m,annotationKey:A}:void 0}o($S,"getEntityTypeResolution");function ow(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}o(ow,"applyAnnotationPath");function cQ(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,a,s;if(r&&i){let g=$l(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=Cb(r,a.fullyQualifiedName))}}if(a)return{lineItem:a,annotationPath:s}}o(cQ,"getTableLineItemAnnotationData");var aw={"sap.fe.macros.Chart":o(e=>{let t=$S(e);ow(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=$S(e),a=(s=t.properties)==null?void 0:s.filterFields;if(typeof a=="object"&&(r!=null&&r.annotationKey)){a.properties||(a.properties={});let g=ii(Lp.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]);JA(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=$S(e),a=t.properties.columns,s=t.properties.actions;if(typeof a=="object"&&typeof s=="object"&&r){a.properties||(a.properties={}),s.properties||(s.properties={});let l=ii(Lp.UIVOCABULARY,n);if(ow(t,r),t.annotationPath){let u=cQ(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:Lp.DefinitionName.LineItems};zA(p,s,t.annotationPath,a)}}},"sap.fe.macros.Table")};var sw=ie(le());var lQ=new Map([["filterFields","SelectionField::"]]),fQ=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Rp={anchor:"anchor",placement:"placement",key:"key"};function uQ(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 Rp.anchor in r&&Rp.placement in r}return!1}o(uQ,"isCustomExtensionSchema");function cw(e){let t=lQ.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=fQ.get(e),t&&(n.prefix=t)),n}o(cw,"getAnnotationPrefix");function pQ(e,t,n,i){let r=t.properties[n],a=cw(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=As(l,Rp.key)||n,p=As(l,Rp.anchor),g=As(l,Rp.placement)||sw.v4.Placement.After,m=a.replace?`${a.prefix}${p}`:p,v={position:{anchor:m in t.properties?m:p,placement:g}};return{key:u,extension:v}}o(pQ,"getExtensionData");function dQ(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}=pQ(e,t,s,n);i[p]=u,a[p]=s}else r.push([s,l])}Ta(i,r,"","position");for(let s=0;s<r.length;s++){let l=r[s][0],u=t.properties[l];r[s][1].$ref==="#/definitions/"&&l in a&&(u=t.properties[a[l]]),u&&(u.propertyIndex=s)}}o(dQ,"updatePropertyIndices");function gQ(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=As(e.subElements[s],"key")||r}return r}o(gQ,"getCorrectedAnchorEnumKey");function mQ(e,t,n,i){var a,s;let r=cw(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;qa(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let g=((s=(a=p.properties)==null?void 0:a[u])==null?void 0:s.oneOf)||[];for(let m of g)typeof m=="object"&&typeof m.const=="string"&&(m.const=gQ(e,m.const,r,t.properties[m.const]))}}o(mQ,"applyEnumsForAnchors");function lw(e,t,n,i){uQ(t,n)&&(i=i||e.name,dQ(e,t,i),mQ(e,t,n,i))}o(lw,"handleExtensions");var ui=[];for(let e=0;e<256;++e)ui.push((e+256).toString(16).slice(1));function fw(e,t=0){return(ui[e[t+0]]+ui[e[t+1]]+ui[e[t+2]]+ui[e[t+3]]+"-"+ui[e[t+4]]+ui[e[t+5]]+"-"+ui[e[t+6]]+ui[e[t+7]]+"-"+ui[e[t+8]]+ui[e[t+9]]+"-"+ui[e[t+10]]+ui[e[t+11]]+ui[e[t+12]]+ui[e[t+13]]+ui[e[t+14]]+ui[e[t+15]]).toLowerCase()}o(fw,"unsafeStringify");var uw=require("crypto");var Vy=new Uint8Array(256),_y=Vy.length;function BS(){return _y>Vy.length-16&&((0,uw.randomFillSync)(Vy),_y=0),Vy.slice(_y,_y+=16)}o(BS,"rng");var pw=require("crypto"),HS={randomUUID:pw.randomUUID};function hQ(e,t,n){var r;if(HS.randomUUID&&!t&&!e)return HS.randomUUID();e=e||{};let i=e.random??((r=e.rng)==null?void 0:r.call(e))??BS();if(i.length<16)throw new Error("Random bytes length must be >= 16");if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){if(n=n||0,n<0||n+16>t.length)throw new RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let a=0;a<16;++a)t[n+a]=i[a];return t}return fw(i)}o(hQ,"v4");var GS=hQ;var WS="sap.fe.macros",yQ=["id","key","title","text","label","header"];function dw(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}o(dw,"getElementName");function vQ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}o(vQ,"isElementWithNamespace");function TQ(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(TQ,"getDependencies");function bQ(e,t){let n="",i=e.attributes||[];for(let r of yQ){let a=i.find(s=>s.key===r);if(a){n=`${r==="id"?"#":""}${a.value}`;break}}return n?`${t} ${n}`:t}o(bQ,"getViewNodeDescription");function EQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}o(EQ,"findAvailableName");function gw(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(gw,"prepareSchemaProperties");function AQ(e,t,n){t.properties||gw(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(AQ,"handleAttributes");function SQ(e){e.type===XS.MacrosPropertyType.Control&&(e.internalId=GS())}o(SQ,"applyIdForMacros");function PQ(e,t,n){var i,r;try{(r=(i=aw)[e])==null||r.call(i,t)}catch{se(n,{severity:KS.LogSeverity.Error,message:q.t("MACROS_ANNOTATION_ERROR",{control:e})})}}o(PQ,"callAnnotationHandler");function xQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===XS.MacrosPropertyType.Control&&(e.controlName=n)}o(xQ,"updateMetadataByReference");function CQ(e,t,n,i){var v,A,b,I,F;let r=n.schema;t.properties||gw(t,r);let a=t.properties[i],s=(v=a==null?void 0:a.metadata)==null?void 0:v.type,l=(A=a==null?void 0:a.metadata)==null?void 0:A.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(I=(b=a==null?void 0:a.metadata)==null?void 0:b.path)!=null&&I.length?EQ(i,t.properties):i,g=[];a!=null&&a.$ref?g.push(yn(a.$ref)):g=[`${WS}.${i}`,`${WS}.table.${i}`,`${WS}.filterBar.${i}`];let m=!1;for(let j of g){let K=(F=r.definitions)==null?void 0:F[j];if(typeof K!="object")continue;xQ(u,K,j);let U=bQ(e,i),ae={$ref:a0(j),description:U,propertyIndex:n.index,metadata:u};AQ(e,ae,r),t.properties[p]=ae,m=!0,PQ(j,{...n,node:e,schema:ae,rootSchema:n.schema},n.logger);break}if(SQ(u),!m)if(a!=null&&a.properties)a.metadata=u;else{let j={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=j}return p}o(CQ,"addControlToSchema");function mw(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)}mw(r,t)}}o(mw,"populateUsedDefinitionKeys");function OQ(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(OQ,"isElementAddableToSchema");function IQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!rw(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}o(IQ,"getDefaultAggregation");function NQ(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,hw(s,t,{...n,isUnique:l,index:a,path:[...n.path,{name:dw(s),index:a}]},i)}}o(NQ,"handleSubElementsOfXMLNode");function hw(e,t,n,i){var g,m,v;let r=[],{macrosPrefixes:a}=n,s=t!=null&&t.$ref?(g=n.schema.definitions)==null?void 0:g[yn(t.$ref)]:t;if(vQ(e,a)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let A=(v=t.metadata)==null?void 0:v.defaultAggregation;A&&OQ(e,t.properties[A])&&(t=t.properties[A]);let b=e.name.split(":"),I=CQ(e,t,n,b[b.length-1]);if(t.properties[I])t=t.properties[I];else return}let{subElements:l=[]}=e,u=t!=null&&t.metadata?t.metadata.controlName:void 0;i&&u&&n.schema.definitions[u]&&i.indexOf(u)===-1&&(i.push(u),mw(t,i));let p=IQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),NQ(l,t,n,i),r.push({node:e,schema:t});for(let A of r)lw(A.node,A.schema,n.schema,A.name)}o(hw,"handleXMLNode");function LQ(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(LQ,"getMacrosPrefixes");function Mc(e,t,n,i){let r=of(t.file,!0,i),a=[];if(!r)return;rn();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){se(i,{severity:KS.LogSeverity.Error,message:q.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=TQ(l),p=LQ(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let g={};for(let m=0;m<l.subElements.length;m++){let v=l.subElements[m],A=!g[v.name];g[v.name]=!0,hw(v,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:A,path:[{name:dw(v),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},a)}for(let m in s.definitions)s.definitions[m].metadata&&!a.includes(m)&&delete s.definitions[m]}return s}o(Mc,"generateMacrosSchemaDefinition");function yw(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&&yw(i.subSections,t)}}o(yw,"populateTemplates");function vw(e,t,n,i){var s,l,u;let r=Oc(n.manifest,i),a=[];yw(((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=af(p);e.definitions[m]=g;let v=Ic(n.fragments,r,n.manifest,"fragment",p);if(v){g.metadata.filePath=v.relativeFilePath;let{properties:A={},definitions:b={}}=Mc(t,v,n.serviceAVT,n.logger)||{};g.properties=A;for(let I in b)e.definitions[I]||(e.definitions[I]=b[I])}}return t}o(vw,"resolveFragments");var RQ=["header","layout","sections","footer"],FQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],QS="Custom Action";function qS(e,t,n,i,r,a,s){let{actionName:l,namespace:u}=ym(t.item,e),p=da(t.item),g=t.item.fullyQualifiedName.replace(`@${Pr.UIAnnotationTerms.Identification}`,`/@${Pr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${dt(p)}>`,v=i.definitions[m]={type:"object",$ref:`${$}${N.DefinitionName.ObjectPageHeaderAction}`,description:Ai(t.item,r)};v[N.SchemaTag.isViewNode]=!0,v[N.SchemaTag.dataType]=oo(t.item),v[N.SchemaTag.propertyIndex]=s,v[N.SchemaTag.keys]=[],t.item[N.SchemaKeyName.semanticObject]&&v[N.SchemaTag.keys].push({name:N.SchemaKeyName.semanticObject,value:t.item[N.SchemaKeyName.semanticObject]}),v[N.SchemaTag.keys].push({name:N.SchemaKeyName.action,value:l}),u&&(i.definitions[m][N.SchemaTag.target]=u),v[N.SchemaTag.actionType]=n,v[N.SchemaTag.annotationPath]=`/${g}`,a.properties[p]={$ref:`${$}${m}`},a.properties[p][N.SchemaTag.propertyIndex]=s}o(qS,"addSingleHeaderActionV4");function Tw(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(Tw,"addStandardHeaderAction");function bw(e,t,n,i,r,a){let s=da(e.item),l=Ai(e.item,n),u=dt(`${N.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${Pr.UIAnnotationTerms.Identification}`,`/@${Pr.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(bw,"addSingleFooterAction");function DQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===Pr.UIAnnotationTypes.DataFieldForAction||i.$Type===Pr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(FQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}o(DQ,"groupByCriticality");function _Q(e,t,n,i,r){for(let a=0;a<e.length;a++)qS(t,e[a],N.ActionType.Criticality,n,i,r,a)}o(_Q,"addCriticalActions");function VQ(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&&(qS(t,e[s],N.ActionType.Copy,n,i,r,a),a++,e.splice(s,1))}o(VQ,"addCopyAction");function wQ(e,t,n,i,r,a){for(let s of e)qS(t,s,N.ActionType.Annotation,n,i,r,a),a++}o(wQ,"addUncriticalActions");function MQ(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(MQ,"addRelatedAppsButton");function Ew(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(Ew,"setAnnotationPathFromEntitySetOrEntityType");function kQ(e,t,n,i,r,a){let{criticalActions:s=[],unCriticalActions:l=[]}=n?DQ(n):{};if(_Q(s,r.serviceAVT,t,e,i),r.entitySet){let p=w0(r.entitySet),g=M0(r.entitySet);if(fm(r.entitySet)&&g){let m=Tw("Edit",t,i,s.length);Ew(m,r.entitySet,e,"UpdateHidden")}if(p){let m=Tw("Delete",t,i,s.length+1);Ew(m,r.entitySet,e,"DeleteHidden")}}let u=s.length+2;VQ(l,r.serviceAVT,t,e,i,u),wQ(l,r.serviceAVT,t,e,i,u),Sw(t,a,N.DefinitionName.CustomHeaderActionOP,r.logger),MQ(i)}o(kQ,"addHeaderActionCallBackV4");function jQ(e,t,n,i){let r=[],a=[];i.forEach((s,l)=>{s.Determining&&s.$Type===Pr.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];bw(l,N.ActionType.Criticality,e,t,n,s)}for(let s=0;s<a.length;s++){let l=a[s];bw(l,N.ActionType.Annotation,e,t,n,r.length+s)}}o(jQ,"addFooterActionCallBackV4");function UQ(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Pr.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}>`;Pc(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}`,Cc(e,n,t,g,i.replace(/::/g,"/"));let m=e.definitions[n];m&&qA(m,l)}o(UQ,"addCustomColumnsOP");function $Q(e,t,n,i,r){let a=n!==N.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${Pr.UIAnnotationTerms.LineItem}`,s=a?`${N.DefinitionName.CustomTableActionOP}<${n}>`:N.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[N.SchemaTag.isViewNode]=!0,l.description=QS;let u=`${N.DefinitionName.CustomTableActionOP}<${n}>`,p=`${N.DefinitionName.Actions}<${dt(n)}>`;ba(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}`,po(e,p,m)}o($Q,"addTableCustomActionsOP");function Sw(e,t,n,i){let r=e.definitions[n];r[N.SchemaTag.isViewNode]=!0,r.description=QS;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}`,po(e,a,s),e.definitions[a]&&(e.definitions[a].additionalProperties={$ref:`${$}${n}`})}o(Sw,"addHeaderFooterCustomActionsOP");function BQ({tableType:e,facetKey:t,facet:n,appSchema:i,lineItemId:r,lineItemFacet:a}){let s=t.lastIndexOf("::"),l=s>-1?t.substring(s+2):t,u=bt(e,t,i);n.entityType&&l&&(u[N.SchemaTag.annotationPath]=`/${n.entityType.fullyQualifiedName}/${l}`),u.properties.columns={$ref:`${$}${r}`},u.properties.toolBar.$ref=Si(N.DefinitionName.ObjectPageToolBar,t),u.properties.quickVariantSelection.$ref=Si(N.DefinitionName.QuickVariantSelectionV4OP,t),u[N.SchemaTag.target]=a.namespace}o(BQ,"addTableDefinition");function HQ(e,t,n,i,r){let a=`${N.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[a];s[N.SchemaTag.isViewNode]=!0,s.description=QS;let l=`${N.DefinitionName.CustomFormActionOP}<${n}>`,u=`${N.DefinitionName.SectionActions}<${dt(n)}>`;ba(e,t,r,l,u,i),bt(N.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${N.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${$}${p}`,po(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${$}${a}`})}o(HQ,"addFormCustomActionsOP");function GQ(e,t,n,i,r,a,s){let l=rc(t);[N.DefinitionName.ObjectPageResponsiveTableV4,N.DefinitionName.ObjectPageAnalyticalTableV4,N.DefinitionName.ObjectPageGridTableV4,N.DefinitionName.ObjectPageTreeTableV4].forEach(m=>{BQ({tableType:m,facetKey:t,facet:e,appSchema:n,lineItemId:l,lineItemFacet:i})});let p=bt(N.DefinitionName.QuickVariantSelectionV4OP,t,n);p.properties.paths.items.$ref=Si(N.DefinitionName.AnnotationPathAsObject,t),bt(N.DefinitionName.AnnotationPathAsObject,t,n),Xa(e.entityType,n,`${N.DefinitionName.AnnotationPathAsObject}<${l}>`);let g={isObjectPage:!0,appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};xc(g,N.DefinitionName.ObjectPageTableColumn,N.DefinitionName.CustomColumnOP,N.DefinitionName.CustomTableActionOP),UQ(n,a,l,t,s),$Q(n,a,l,t,s)}o(GQ,"handleLineItem");function Pw(e,t,n,i,r,a,s){s&&wy(s,t,N.DefinitionName.ObjectPageSectionTableV4);let l=bt(N.DefinitionName.ObjectPageSectionTableV4,t,n);return ua(e,l,rc(t)),Wa(e,l,rc(t)),l[N.SchemaTag.annotationPath]=e.annotationPath,l[N.SchemaTag.target]=e.namespace,l.properties.table.anyOf=l.properties.table.anyOf.map(u=>{let p=u.$ref.split("/").pop();return{$ref:Si(p,t)}}),GQ(e,t,n,i,r.serviceAVT,a,r.logger),l}o(Pw,"handleSectionTable");function WQ(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:Si(l,n)};let u=bt(l,n,r);e.ID||(u.properties={}),ua(e,u,n),Wa(e,u,n),u[N.SchemaTag.annotationPath]=e.annotationPath,u[N.SchemaTag.target]=e.namespace,u[N.SchemaTag.isViewNode]=!0;let p=hm(a,e,u,r,N.FioriElementsVersion.v4,n);if(e.base===N.FacetBase.Form){let g=rc(n);bt(N.DefinitionName.CustomFormActionOP,p,r),HQ(r,t,p,g,s)}}o(WQ,"handleFormIdentification");function Aw(e,t,n,i,r){n.properties[t]={$ref:`${$}${r}`};let a=bt(N.DefinitionName.CommonHeaderFacetSettings,r,i,!1);gl(e,a,t),a[N.SchemaTag.annotationPath]=e.annotationPath,a[N.SchemaTag.target]=e.namespace,a[N.SchemaTag.dataType]=oc(e==null?void 0:e.target),a[N.SchemaTag.isViewNode]=!0}o(Aw,"handleHeaderFacet");function KQ(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=s,u=Ai(l,i),p=l.$Type.split(N.UIVOCABULARYDOT)[1],g=l.Action.replace("/","::"),m=r.properties[`${p}::${l.Action}`]={$ref:Si(N.DefinitionName.ObjectPageToolBarAction,g),description:u};m[N.SchemaTag.propertyIndex]=a,m[N.SchemaTag.annotationType]=l.$Type;let v=bt(N.DefinitionName.ObjectPageToolBarAction,dt(g),n);v[N.SchemaTag.annotationPath]=Sm(l),v[N.SchemaTag.dataType]=oo(l),v.properties={},a++})}return r}o(KQ,"handleChartActions");function XQ(e,t,n,i){let r=bt(N.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[N.SchemaTag.annotationPath]=Sm(e),r[N.SchemaTag.dataType]=oc(e.target||e),r[N.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=Si(N.DefinitionName.ObjectPageToolBar,t);let a=bt(N.DefinitionName.ObjectPageToolBar,t,n);a.properties.actions.$ref=Si(N.DefinitionName.ObjectPageToolBarActions,t);let s=KQ(e,t,n,i);return{chart:r,chartActions:s}}o(XQ,"handleChart");function xw(e,t,n,i,r=e.entityType,a=!1,s){let l=a?N.DefinitionName.CommonHeaderFacetSettings:N.DefinitionName.ObjectPageSectionChart,u=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart;i&&wy(i,t,l);let p=Am(u,t),g=bt(l,p,n,!1);if(gl(e,g,t),a)return delete g.properties.chart,{parentChartRef:g};g[N.SchemaTag.annotationPath]=Sm(e),g.properties.chart.$ref=Si(N.DefinitionName.ObjectPageChart,t);let{chart:m,chartActions:v}=XQ(e.target||e,t,n,r);return m[N.SchemaTag.target]=s,{parentChartRef:g,chart:m,chartActions:v}}o(xw,"handleSectionChart");function QQ(e,t,n){let r=(e?t.fullyQualifiedName:t.targetString).split("@")[1].split("/")[0],s=`@${kb(r,n.serviceAVT)}`,l=s.split(N.UIVOCABULARYDOT)[1];return{key:s,type:l}}o(QQ,"getVisualizationKeyAndType");function qQ(e,t,n){var r,a;return(a=(r=e.entityType.navigationProperties.find(s=>s.name===t).targetType)==null?void 0:r.annotations)==null?void 0:a.UI[n]}o(qQ,"getTargetFromNavigation");function zQ(e,t,n){let i=e.target[N.FacetBase.PresentationVariant]?e.target[N.FacetBase.PresentationVariant].Visualizations:e.target.Visualizations;if(!(i!=null&&i[0]))return;let r=i[0].$target,a=r||i[0],s=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0,{key:l,type:u}=QQ(!!r,a,n),p=r?a:qQ(n,s,u),g=e.target[N.SchemaTag.fullyQualifiedName].split("@")[0];return{key:l,type:u,target:p,namespace:g,navigationPath:s}}o(zQ,"getVisualizationProps");function wy(e,t,n,i){e.properties[t]={$ref:Si(n,i||t)}}o(wy,"addPropertyRef");function Cw(e,t){let n=`${e}<${t.key}>`,i=t.navigationPath?`${t.navigationPath}::${t.key}`:t.key;return{propertyKey:n,navigationKey:i}}o(Cw,"getSectionPropertyRef");function YQ(e,t,n,i,r,a,s){let{propertyKey:l,navigationKey:u}=Cw(t,r);wy(i,l,N.DefinitionName.ObjectPageSectionTableV4,u);let p=Pw(e,u,n,{target:r.target,entityType:e.entityType,annotationPath:`/${r.namespace}/${r.key}`,namespace:r.namespace},a,s);p[N.SchemaTag.annotationPath]=e.annotationPath,gl(e,p,t),delete p[N.SchemaTag.isViewNode]}o(YQ,"addPVLineItemSection");function JQ(e,t,n,i,r,a=!1){let s=a?N.DefinitionName.ObjectPageHeaderSectionChart:N.DefinitionName.ObjectPageSectionChart,{propertyKey:l,navigationKey:u}=Cw(t,r);wy(i,l,s,u);let{parentChartRef:p}=xw(r.target,u,n,void 0,e.entityType,a,r.namespace);p[N.SchemaTag.annotationPath]=e.annotationPath,e!=null&&e.ID||(p.properties={}),a?(ua(e,p,t),r0(e,p)):gl(e,p,t)}o(JQ,"addPVChartSection");function ZQ(e,t,n,i,r,a,s){if(!(e!=null&&e.target)){se(a.logger,{severity:N.LogSeverity.Error,message:q.t("NOPRESENTATIONVARIANT",{key:t})});return}let l=zQ(e,t,a),u=r===N.SectionType.HeaderSection;l&&(l.type.startsWith(N.Visualization.Chart)?JQ(e,t,n,i,l,u):l.type.startsWith(N.Visualization.LineItem)&&YQ(e,t,n,i,l,a,s))}o(ZQ,"handleSectionPresentationVariant");function eq(e){let t=e.facets||{};for(let n in t)if(t[n].base===N.FacetBase.CollectionFacet)return!0;return!1}o(eq,"containsCollectionFacet");function tq(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"}}};Js(n,N.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}o(tq,"createCustomSubSectionReference");function nq(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),v=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 I=`${N.DefinitionName.CustomSectionActionPositionOP}<${p}>`;v.properties.position.$ref=`${$}${I}`,v[N.SchemaTag.isViewNode]=!0,ba(e,t,i,b,A,p),po(e,A,I)}}o(nq,"applyCustomActionsToCustomSections");function zS(e,t,n,i,r,a,s){var m,v,A,b,I;let l=!1,u;a&&s?(l=!eq(a),u=tq(t,s,n.featureToggles)):u=r,e.additionalProperties={$ref:`${$}${u}`},iD(t,e,i,u,l,s,n.logger);let p=t.definitions[u];if(typeof p=="object"&&qa(t,e,{schema:p,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[N.SchemaKeyName.id,N.SchemaKeyName.key],descriptionAsFallback:!0}),u.includes(N.DefinitionName.ObjectPageCustomSectionFragment)){let F=t.definitions[N.DefinitionName.ObjectPageCustomSectionActions];F.properties={},nq(t,i,u,n.logger)}let g=p.properties.relatedFacet;if(u!=null&&u.includes(N.DefinitionName.ObjectPageCustomSubSectionFragment)&&l&&typeof g=="object"){let F=(I=(b=(A=(v=(m=i.options)==null?void 0:m.settings)==null?void 0:v.content)==null?void 0:A.body)==null?void 0:b.sections)==null?void 0:I[s],j=F&&"subSections"in F?F.subSections:{};for(let K=g.oneOf.length-1;K>=0;K--){let U=g.oneOf[K];j[U.const]||(U.hidden=!0)}}}o(zS,"applyCustomSections");function iq(e,t,n,i,r,a,s,l){let u=l===0,p=i.properties[t]=Ro(n,e,t),g={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:g},g[N.SchemaTag.annotationPath]=e.annotationPath,g[N.SchemaTag.target]=e.namespace,g[N.SchemaTag.keys]=[{name:N.SchemaKeyName.id,value:e.ID}],g[N.SchemaTag.isViewNode]=!0;let m=l+1;for(let v in e.facets)YS(a,e.facets,v,g,n,r,s,m);u&&zS(g,n,a,s,N.DefinitionName.ObjectPageCustomSectionFragment,e,t)}o(iq,"handleCollection");function YS(e,t,n,i,r,a,s,l=0){let u=t[n],p=`ObjectPage${a}${u.base}<${rc(n)}>`;switch(u.base){case N.FacetBase.PresentationVariant:case N.FacetBase.SelectionPresentationVariant:{ZQ(u,n,r,i,a,e,s);break}case N.FacetBase.CollectionFacet:{iq(u,n,r,i,a,e,s,l);break}case N.FacetBase.LineItem:{if(a===N.SectionType.Section){let g=t[n];Pw(u,n,r,g,e,s,i)}break}case N.FacetBase.Form:case N.FacetBase.Identification:{WQ(u,s,n,i,r,a,e.logger);break}case N.FacetBase.DataPoint:{Aw(u,n,i,r,p);break}case N.FacetBase.Chart:{a===N.SectionType.HeaderSection?Aw(u,n,i,r,p):a===N.SectionType.Section&&xw(u,n,r,i);break}case N.FacetBase.Address:case N.FacetBase.Contact:{uu(u,n,i,r,a);break}default:i.properties[n]=Ro(r,u,n)}}o(YS,"addSection");function rq(e,t,n){let i=Xg(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)YS(e,i,a,r,t,N.SectionType.Section,n);zS(r,t,e,n,N.DefinitionName.ObjectPageCustomSectionFragment)}o(rq,"addSections");function oq(e,t,n,i){let r=Kg(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)YS(e,r,s,a,t,N.SectionType.HeaderSection,i);zS(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(oq,"addHeaderSections");function aq(e,t,n){let i=e.entityType;bm(t,i),Tm(t,i,e,kQ,n),i&&(t.definitions[N.DefinitionName.HeaderSections][N.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${Pr.UIAnnotationTerms.HeaderFacets}`),oq(e,t,i,n)}o(aq,"addHeader");function Fp(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=Uh(s,N.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(aq(e,r,l),a[N.SchemaTag.isViewNode]=!0,e.entityType&&(a[N.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${Pr.UIAnnotationTerms.Facets}`),Js(e.featureToggles,N.Features.BuildingBlocks)&&i){r.definitions[N.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{vw(r,i,e,l.id)}catch(u){se(e.logger,{severity:N.LogSeverity.Error,message:u})}}rq(e,r,l),vm(r,e,N.FioriElementsVersion.v4,jQ),Sw(r,l,N.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[N.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[N.DefinitionName.GenericColumnsOP],delete r.definitions[N.DefinitionName.GenericSections],delete r.definitions[N.DefinitionName.GenericSubSections],delete r.definitions[N.DefinitionName.ObjectPageChart],delete r.definitions[N.DefinitionName.ObjectPageSectionAddress],delete r.definitions[N.DefinitionName.ObjectPageSectionChart],delete r.definitions[N.DefinitionName.ObjectPageSectionContact],delete r.definitions[N.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[N.DefinitionName.ObjectPageSectionForm],delete r.definitions[N.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[N.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[N.DefinitionName.ObjectPageSubSections],delete r.definitions[N.DefinitionName.ObjectPageTable],delete r.definitions[N.DefinitionName.ObjectPageToolBar],delete r.definitions[N.DefinitionName.ObjectPageToolBarAction],delete r.definitions[N.DefinitionName.ObjectPageToolBarActions],delete r.definitions[N.DefinitionName.QuickVariantSelectionV4OP],Do(r,RQ),r}o(Fp,"generateObjectPageSchemaV4");function JS(e,t){return JSON.parse(JSON.stringify(t))}o(JS,"generateFreestyleSchemaV4");var Qr=ie(le());function ZS(e,t,n,i,r,a,s,l,u){let p=No(n,r),{entitySet:g,entityType:m}=kc(p,s,t,r),v={templateType:Qr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:i,fragments:a,serviceAVT:p,logger:r,entitySet:g,entityType:m,featureToggles:u};return Fp(v,e,s,l)}o(ZS,"generateObjectPageInterfaceV4");function My(e,t,n,i,r,a,s){rn();let l=No(i,r),{entitySet:u,entityType:p}=kc(l,s,n,r),g={templateType:e,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:a,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Qr.TemplateType.ListReportObjectPageV4?Qr.v4.FE_TEMPLATE_V4_LIST_REPORT:Qr.v4.FE_TEMPLATE_V4_ALP;return ip(g,t,m,s)}o(My,"generateListReportInterfaceV4");function eP(e,t,n,i,r,a){let s=No(n,a),l={templateType:e,fioriElementsVersion:Qr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:a};return JS(l,t)}o(eP,"generateFreestyleInterfaceV4");function tP(e,t,n,i,r,a,s){let l={};if(Js(a,Qr.Features.BuildingBlocks)){let u=No(r,s),p=Bo(i||[],t,n,s);l=p!=null&&p.file.fileContent?Mc(e,p,u,s):{}}return l}o(tP,"generateFPMCustomPageInterfaceV4");var Uc=require("@sap-ux/vocabularies-types/vocabularies/UI"),Rw=ie(le());var jc=ie(le());var Nw=new Map([[jc.PageTypeV2.ListReport,jc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[jc.PageTypeV2.ObjectPage,jc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Ow=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"),Iw=o(e=>{var t;for(let[n,i]of Nw)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"),sq=o((e,t)=>{let n="";for(let[r,a]of Nw)e.startsWith(r)&&(n=a);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Lw={manifest:{path:o(()=>`sap.ui5/extends/extensions/${jc.v4.SAPUI5_CONTROLLER_EXTENSION}`,"path"),import:o(e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=Iw(n);i&&(t[i]={},Ow(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=sq(s,i);e[l]||(e[l]={}),Ow(r[s],e[l])}for(let s in e){let l=Iw(s);l&&!r[l]&&delete e[s]}},"export")}};var ft=o(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),Uy=o(e=>ft(e)+"/views/paths","getSettingsPathForLRViewsPaths"),$y=o(e=>ft(e)+"/content/header","getSettingsPathForHeaderOP"),cq=o(e=>ft(e)+"/content/footer","getSettingsPathForFooterOP"),zr=o(e=>ft(e)+"/controlConfiguration","getControlConfigurationPath"),By=o((e,t,n)=>zr(e)+`/@${Uc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),Hy=o(e=>zr(e)+`/@${Uc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ss=o((e,t,n,i)=>zr(e)+`/@${Uc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),nP=o((e,t,n,i)=>Hy(e)+`/filterFields/${i}`,"getFilterFieldPath"),$i=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/tableSettings`:void 0},"getTableSettingsPathForView"),pi=o((e,t,n,i,r)=>r?$i(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),Gy=o((e,t,n,i,r)=>pi(e,t,n,i,r)+Rw.QUICKVARPATH,"getQuickVariantPath"),nr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/columns/${i}`:void 0},"getColumnsPathForView"),di=o((e,t,n,i,r)=>r?nr(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),Yr=o((e,t,n,i,r)=>{let a=r==null?void 0:r.replace(/\//gi,"??");return a?zr(e)+`/${a}/actions/${i}`:void 0},"getActionsPathForView"),xr=o((e,t,n,i,r)=>r?Yr(e,t,n,i,r):zr(e)+`/@${Uc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),Bi=o((e,t,n,i)=>zr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),kn=o((e,t,n,i)=>zr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),gi=o((e,t,n,i)=>$y(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),Wy=o((e,t,n,i)=>ft(e)+`/additionalSemanticObjects/${i.replace("/","??")}`,"getAdditionalSemanticObjectPath"),yo=o((e,t,n,i)=>cq(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Lt=o((e,t,n)=>zr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),cf=o((e,t,n,i)=>{let r=ft(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Ps=o((e,t,n,i)=>ft(e)+`/content/body/sections/${n}/actions/${i}`,"getCustomSectionActionPath"),Cr=o((e,t,n,i)=>{let r=ft(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),lf=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"),jy=class jy{};o(jy,"ApplicationV4"),h([Ut("settings")],jy.prototype,"settings",2);var ky=jy,qr=class qr{};o(qr,"AppSettings"),h([y({manifest:{path:o(()=>"sap.app","path")}})],qr.prototype,"title",2),h([y({manifest:{path:o(()=>"sap.app","path")}})],qr.prototype,"description",2),h([y({manifest:{path:o(()=>"sap.fiori","path")}})],qr.prototype,"cloudDevAdaptationStatus",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}}),x({since:"1.78.0"})],qr.prototype,"flexibleColumnLayout",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}}),x({since:"1.56.0"})],qr.prototype,"flexEnabled",2),h([y({manifest:{path:o(()=>"sap.ui5","path")}})],qr.prototype,"dependencies",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],qr.prototype,"viewType",2),h([y({manifest:{path:o(()=>"sap.ui5/routing/config","path")}})],qr.prototype,"path",2),h([y(Lw)],qr.prototype,"controllerExtensions",2);var sf=qr;var ve=ie(le());function At(e,t,n,i,r,a,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=a&&a.replace(/\//g,"::");for(let g in n.properties){let m=zn(e,g);if(m!=null&&m.manifest){let v=m.manifest.path([i],t,p,...r);l=Lo(t,v,a,p,!0),l&&Object.keys(l).length>0&&(hl(m,l,g,e,a,r),nm(u,l,v,s))}}}o(At,"importSettingsOfObject");var Gx={};Qs(Gx,{ALPChart:()=>ax,ALPTable:()=>vf,ActionAfterExecutionConfiguration:()=>Cx,ActionAfterExecutionConfigurationFooter:()=>SP,ActionAfterExecutionConfigurationForm:()=>OP,ActionAfterExecutionConfigurationOP:()=>nd,ActionAfterExecutionConfigurationObjectPageHeader:()=>MP,ActionAfterExecutionConfigurationToolBarLR:()=>Mx,Actions:()=>Dx,AdditionalSemanticObject:()=>Px,CommonHeaderFacetSettings:()=>Ds,CommonViewSettings:()=>yf,CustomActionPosition:()=>Ux,CustomActionPositionOP:()=>Ax,CustomFilterField:()=>aP,CustomFilterFieldPosition:()=>oP,CustomFooterActionOP:()=>CP,CustomFooterActionPositionOP:()=>xP,CustomFormActionOP:()=>DP,CustomHeaderAction:()=>uP,CustomHeaderActionOP:()=>UP,CustomHeaderActionPosition:()=>wp,CustomHeaderActionPositionOP:()=>jP,CustomSectionActionOP:()=>vP,CustomSectionActionPositionOP:()=>yP,CustomTableAction:()=>$x,CustomTableActionOP:()=>Sx,FilterBar:()=>iP,FlexSettings:()=>BP,FooterActionV4:()=>PP,FormAction:()=>IP,Header:()=>cP,HeaderActions:()=>sP,HeaderSections:()=>QP,LRChartView:()=>sx,LRTableView:()=>cx,MultiTableModeV4:()=>fx,ObjectPageAnalyticalTableV4:()=>Yp,ObjectPageCustomHeaderSectionFlexSettings:()=>pP,ObjectPageCustomHeaderSectionFragment:()=>dP,ObjectPageCustomSectionActions:()=>gP,ObjectPageCustomSectionFragment:()=>uf,ObjectPageCustomSubSectionFragment:()=>mP,ObjectPageFooter:()=>bP,ObjectPageFooterActions:()=>TP,ObjectPageForm:()=>LP,ObjectPageFormActions:()=>NP,ObjectPageGridTableV4:()=>Jp,ObjectPageHeader:()=>VP,ObjectPageHeaderAction:()=>kP,ObjectPageHeaderActions:()=>_P,ObjectPageHeaderSectionAddress:()=>XP,ObjectPageHeaderSectionChart:()=>GP,ObjectPageHeaderSectionContact:()=>KP,ObjectPageHeaderSectionDataPoint:()=>WP,ObjectPageHeaderSectionForm:()=>HP,ObjectPageLayout:()=>tx,ObjectPageResponsiveTableV4:()=>zp,ObjectPageTable:()=>qp,ObjectPageTableColumn:()=>Pf,ObjectPageTableColumnAction:()=>yx,ObjectPageTableRowCountable:()=>Af,ObjectPageToolBarAction:()=>Ex,ObjectPageTreeTableV4:()=>Zp,PersonalizationType:()=>ix,PersonalizationTypeOP:()=>mx,Position:()=>Nx,PositionOP:()=>vx,QuickVariantSelectionV4:()=>ox,QuickVariantSelectionV4OP:()=>hx,RelatedApps:()=>xx,Table:()=>ux,TableColumn:()=>lv,TableColumnAction:()=>Ox,TableCreationModeOP:()=>gx,TableCustomColumn:()=>Rx,TableCustomColumnOP:()=>Tx,TableSettings:()=>Jy,TableViewExtension:()=>lx,TableViewSettings:()=>Wp,ToolBar:()=>_x,ToolBarAction:()=>kx,ViewCustomActionPosition:()=>Bx,ViewPersonalizationType:()=>rx,ViewPosition:()=>Lx,ViewTableColumn:()=>fv,ViewTableColumnAction:()=>Ix,ViewTableCustomAction:()=>Hx,ViewTableCustomColumn:()=>Fx,ViewToolBarAction:()=>jx,VisualFilter:()=>rP,checkViewOrder:()=>px,deleteCreationModeProperty:()=>Xp,deletePersonalizationProperty:()=>bo,exportCreationModeProperty:()=>Kp,exportPersonalization:()=>nv,exportPersonalizationProperty:()=>To});function lq(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}o(lq,"exportVisualFilterValueList");var ff=class ff{};o(ff,"FilterBar"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.99.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bd7590569c74c61a0124c6e370030f6")],ff.prototype,"hideFilterBar",2),h([y({manifest:{path:Hy}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],ff.prototype,"initialLayout",2),h([y({manifest:{path:Hy}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],ff.prototype,"layout",2);var iP=ff,Dp=class Dp{};o(Dp,"VisualFilter"),h([y({manifest:{path:nP}}),x({since:"1.93.0"}),fe("https://ui5.sap.com/sdk/#/topic/33f3d807c10b47d9a8141692d2619dc2")],Dp.prototype,"availability",2),h([y({manifest:{path:nP,import:o(t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},"import"),export:lq,key:"visualFilter"}}),x({since:"1.93.0"})],Dp.prototype,"visualFilterValueList",2);var rP=Dp,_p=class _p{};o(_p,"CustomFilterFieldPosition"),h([y({manifest:{path:o((t,n,i,r)=>Ss(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],_p.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ss(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],_p.prototype,"placement",2);var oP=_p,xs=class xs{};o(xs,"CustomFilterField"),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"label",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"property",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"template",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"required",2),h([y({manifest:{path:Ss}}),x({since:"1.77.0"})],xs.prototype,"position",2);var aP=xs;var lP=class lP{};o(lP,"HeaderActions");var sP=lP,fP=class fP{};o(fP,"Header");var cP=fP;var Vp=class Vp{};o(Vp,"CustomHeaderActionPosition"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Vp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Vp.prototype,"placement",2);var wp=Vp,Cs=class Cs{};o(Cs,"CustomHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Cs.prototype,"press",2),h([y({manifest:{path:gi},generate:qn}),x({since:"1.84.0"})],Cs.prototype,"visible",2),h([y({manifest:{path:gi},generate:qn}),x({since:"1.84.0"})],Cs.prototype,"enabled",2);var uP=Cs;var Ky=class Ky{};o(Ky,"ObjectPageCustomHeaderSectionFlexSettings"),h([y({manifest:{path:o((t,n,i)=>Cr(t,n,i,"flexSettings"),"path")}}),x({since:"1.81.0"})],Ky.prototype,"designtime",2);var pP=Ky,ir=class ir{};o(ir,"ObjectPageCustomHeaderSectionFragment"),h([y({manifest:{path:o((t,n,i)=>Cr(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],ir.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>Cr(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],ir.prototype,"relativePosition",2),h([y({manifest:{path:Cr},generate:ri}),x({since:"1.84.0"})],ir.prototype,"visible",2),h([y({manifest:{path:Cr}}),x({since:"1.77.0"})],ir.prototype,"title",2),h([y({manifest:{path:Cr}}),x({since:"1.77.0"})],ir.prototype,"subTitle",2),h([y({manifest:{path:Cr,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],ir.prototype,"fragmentName",2),h([y({manifest:{path:Cr,import:o(t=>t.templateEdit,"import"),key:"templateEdit"}}),x({since:"1.86.0"})],ir.prototype,"templateEdit",2),h([y({manifest:{path:Cr}}),x({since:"1.81.0"})],ir.prototype,"stashed",2),h([y({manifest:{path:Cr}}),x({since:"1.81.0"})],ir.prototype,"flexSettings",2),h([y({manifest:{path:Cr}}),x({since:"1.81.0"})],ir.prototype,"requestGroupId",2),h([y({manifest:{path:Cr,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],ir.prototype,"controls",2);var dP=ir;var hP=class hP{};o(hP,"ObjectPageCustomSectionActions");var gP=hP,Os=class Os{};o(Os,"ObjectPageCustomSectionFragment"),h([y({manifest:{path:o((t,n,i)=>cf(t,n,i,"position"),"path"),key:"anchor"}}),x({since:"1.77.0"})],Os.prototype,"relatedFacet",2),h([y({manifest:{path:o((t,n,i)=>cf(t,n,i,"position"),"path"),key:"placement"}}),x({since:"1.77.0"})],Os.prototype,"relativePosition",2),h([y({manifest:{path:cf}}),x({since:"1.77.0"})],Os.prototype,"title",2),h([y({manifest:{path:cf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Os.prototype,"fragmentName",2),h([y({manifest:{path:cf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Os.prototype,"controls",2);var uf=Os,Is=class Is extends uf{};o(Is,"ObjectPageCustomSubSectionFragment"),h([y({manifest:{path:o((...t)=>`${lf.apply({},t)}/position`,"path"),key:"anchor"}}),x({since:"1.77.0"})],Is.prototype,"relatedFacet",2),h([y({manifest:{path:o((...t)=>`${lf.apply({},t)}/position`,"path"),key:"placement"}}),x({since:"1.77.0"})],Is.prototype,"relativePosition",2),h([y({manifest:{path:lf}}),x({since:"1.77.0"})],Is.prototype,"title",2),h([y({manifest:{path:lf,import:o(t=>t.name||t.template,"import"),key:"template"}}),x({since:"1.77.0"})],Is.prototype,"fragmentName",2),h([y({manifest:{path:lf,import:!1,export:!1},xml:o(t=>t.fragmentName,"xml")}),x({since:"1.96.0"})],Is.prototype,"controls",2);var mP=Is;var Mp=class Mp{};o(Mp,"CustomSectionActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Ps(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Mp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Ps(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],Mp.prototype,"placement",2);var yP=Mp,Ns=class Ns{};o(Ns,"CustomSectionActionOP"),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"text",2),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"position",2),h([y({manifest:{path:Ps}}),x({since:"1.84.0"})],Ns.prototype,"press",2),h([y({manifest:{path:Ps},generate:ri}),x({since:"1.84.0"})],Ns.prototype,"visible",2),h([y({manifest:{path:Ps},generate:ri}),x({since:"1.84.0"})],Ns.prototype,"enabled",2);var vP=Ns;var EP=class EP{};o(EP,"ObjectPageFooterActions");var TP=EP,AP=class AP{};o(AP,"ObjectPageFooter");var bP=AP;var kp=class kp{};o(kp,"ActionAfterExecutionConfigurationFooter"),h([y({manifest:{path:o((t,n,i,r)=>yo(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)=>yo(t,n,i,r)+"/afterExecution","path")}})],kp.prototype,"enableAutoScroll",2);var SP=kp,Xy=class Xy{};o(Xy,"FooterActionV4"),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Xy.prototype,"afterExecution",2);var PP=Xy,jp=class jp{};o(jp,"CustomFooterActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],jp.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>yo(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],jp.prototype,"placement",2);var xP=jp,Ls=class Ls{};o(Ls,"CustomFooterActionOP"),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"text",2),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"position",2),h([y({manifest:{path:yo}}),x({since:"1.84.0"})],Ls.prototype,"press",2),h([y({manifest:{path:yo},generate:ri}),x({since:"1.84.0"})],Ls.prototype,"visible",2),h([y({manifest:{path:yo},generate:ri}),x({since:"1.84.0"})],Ls.prototype,"enabled",2);var CP=Ls;var Up=class Up{};o(Up,"ActionAfterExecutionConfigurationForm"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],Up.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/afterExecution","path")}})],Up.prototype,"enableAutoScroll",2);var OP=Up,Qy=class Qy{};o(Qy,"FormAction"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Qy.prototype,"afterExecution",2);var IP=Qy,RP=class RP{};o(RP,"ObjectPageFormActions");var NP=RP,FP=class FP{};o(FP,"ObjectPageForm");var LP=FP;var Rs=class Rs{};o(Rs,"CustomFormActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Rs.prototype,"press",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Rs.prototype,"visible",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Rs.prototype,"enabled",2);var DP=Rs;var wP=class wP{};o(wP,"ObjectPageHeaderActions");var _P=wP,pf=class pf{};o(pf,"ObjectPageHeader"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],pf.prototype,"editableHeaderContent",2),h([y({manifest:{path:$y}}),x({since:"1.84.0"})],pf.prototype,"visible",2),h([y({manifest:{path:$y}}),x({since:"1.84.0"})],pf.prototype,"anchorBarVisible",2);var VP=pf;var $p=class $p{};o($p,"ActionAfterExecutionConfigurationObjectPageHeader"),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],$p.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>gi(t,n,i,r)+"/afterExecution","path")}})],$p.prototype,"enableAutoScroll",2);var MP=$p,qy=class qy{};o(qy,"ObjectPageHeaderAction"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],qy.prototype,"afterExecution",2);var kP=qy,$P=class $P extends wp{};o($P,"CustomHeaderActionPositionOP");var jP=$P,Fs=class Fs{};o(Fs,"CustomHeaderActionOP"),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"text",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"position",2),h([y({manifest:{path:gi}}),x({since:"1.84.0"})],Fs.prototype,"press",2),h([y({manifest:{path:gi},generate:ri}),x({since:"1.84.0"})],Fs.prototype,"visible",2),h([y({manifest:{path:gi},generate:ri}),x({since:"1.84.0"})],Fs.prototype,"enabled",2);var UP=Fs;var zy=class zy{};o(zy,"FlexSettings"),h([y({manifest:{path:o((t,n,i)=>By(t,n,i)+"/flexSettings","path")}}),x({since:"1.81.0"}),fe("https://ui5.sap.com/sdk/#/topic/ccd45ba3f0b446a0901b2c9d42b8ad53")],zy.prototype,"designtime",2);var BP=zy,Bp=class Bp{};o(Bp,"CommonHeaderFacetSettings"),h([y({manifest:{path:By}}),x({since:"1.81.0"})],Bp.prototype,"stashed",2),h([y({manifest:{path:By}}),x({since:"1.81.0"})],Bp.prototype,"flexSettings",2);var Ds=Bp,qP=class qP extends Ds{};o(qP,"ObjectPageHeaderSectionForm");var HP=qP,zP=class zP extends Ds{};o(zP,"ObjectPageHeaderSectionChart");var GP=zP,YP=class YP extends Ds{};o(YP,"ObjectPageHeaderSectionDataPoint");var WP=YP,JP=class JP extends Ds{};o(JP,"ObjectPageHeaderSectionContact");var KP=JP,ZP=class ZP extends Ds{};o(ZP,"ObjectPageHeaderSectionAddress");var XP=ZP,ex=class ex{};o(ex,"HeaderSections");var QP=ex;var Yy=class Yy{};o(Yy,"ObjectPageLayout"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/facfea09018d4376acaceddb7e3f03b6")],Yy.prototype,"sectionLayout",2);var tx=Yy;var iv=ie(le());var nx=ie(le());var fq=o((e,t)=>{let n=e;for(let i of t.split("/"))n[i]||(i==="paths"?n[i]=[]:n[i]={}),n=n[i];return n},"getManifestSectionByPathV4");function vo(e,t,n,i,r,a){let s=Uy(e),l=fq(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let g=l[p];if(g&&(g[nx.SchemaTag.key]===(a==null?void 0:a.key)||g[nx.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}o(vo,"getSettingsPathForLRViewsPath");function uq(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(uq,"fillNewlyOrderedViews");function px(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=uq(e,n,r,s,l,a);for(let p of Object.keys(u))e[p]=u[p]}}o(px,"checkViewOrder");function nv(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}o(nv,"exportPersonalization");function To(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}o(To,"exportPersonalizationProperty");function bo(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(bo,"deletePersonalizationProperty");function dx(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(dx,"deleteView");function Kp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}o(Kp,"exportCreationModeProperty");function Xp(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(Xp,"deleteCreationModeProperty");function Fw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}o(Fw,"importPersonalization");function Dw(e,t,n,i){let r=e.findIndex(a=>a.key===i[0]);return r===-1?void 0:r}o(Dw,"determineIndexOfView");var df=class df{};o(df,"PersonalizationType"),h([y({manifest:{path:pi,export:To,delete:bo}})],df.prototype,"column",2),h([y({manifest:{path:pi,export:To,delete:bo}})],df.prototype,"sort",2),h([y({manifest:{path:pi,export:To,delete:bo}})],df.prototype,"filter",2);var ix=df,gf=class gf{};o(gf,"ViewPersonalizationType"),h([y({manifest:{path:$i,export:To,delete:bo}})],gf.prototype,"column",2),h([y({manifest:{path:$i,export:To,delete:bo}})],gf.prototype,"sort",2),h([y({manifest:{path:pi,export:To,delete:bo}})],gf.prototype,"filter",2);var rx=gf,mf=class mf{};o(mf,"QuickVariantSelectionV4"),h([y({manifest:{path:Gy}})],mf.prototype,"paths",2),h([y({manifest:{path:Gy}})],mf.prototype,"hideTableTitle",2),h([y({manifest:{path:Gy}})],mf.prototype,"showCounts",2);var ox=mf,rr=class rr{};o(rr,"TableSettings"),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"type",2),h([y({manifest:{path:pi,import:Fw,export:nv}}),x({since:"1.86.0"})],rr.prototype,"personalization",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/116b5d82e8c545e2a56e1b51b8b0a9bd")],rr.prototype,"selectionMode",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],rr.prototype,"selectAll",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],rr.prototype,"selectionLimit",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],rr.prototype,"enableExport",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"})],rr.prototype,"quickVariantSelection",2),h([y({manifest:{path:pi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],rr.prototype,"condensedTableLayout",2),h([y({manifest:{path:pi}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],rr.prototype,"hierarchyQualifier",2),h([y({manifest:{path:pi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:pi}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],rr.prototype,"disableCopyToClipboard",2);var Jy=rr,Zy=class Zy{};o(Zy,"ALPChart"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/primary/0","path"),delete:dx}})],Zy.prototype,"annotationPath",2);var ax=Zy,$c=class $c{};o($c,"CommonViewSettings"),h([y({manifest:{path:vo,delete:Zs}})],$c.prototype,"key",2),h([y({manifest:{path:Uy,import:Dw,export:o((t,n)=>{px(t,n)},"export"),delete:dx}})],$c.prototype,"index",2),h([y({manifest:{path:vo,delete:Zs}})],$c.prototype,"annotationPath",2),h([y({manifest:{path:vo}})],$c.prototype,"entitySet",2);var yf=$c,or=class or extends yf{};o(or,"TableViewSettings"),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"type",2),h([y({manifest:{path:$i,import:Fw}}),x({since:"1.86.0"})],or.prototype,"personalization",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"selectionMode",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"selectAll",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"selectionLimit",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],or.prototype,"enableExport",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"})],or.prototype,"quickVariantSelection",2),h([y({manifest:{path:$i}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],or.prototype,"condensedTableLayout",2),h([y({manifest:{path:$i}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:$i}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],or.prototype,"hierarchyQualifier",2),h([y({manifest:{path:$i}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],or.prototype,"disableCopyToClipboard",2);var Wp=or;function pq(e){return Wp}o(pq,"getTableViewSettings");var Hp=class Hp extends Wp{};o(Hp,"ALPTable"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Zs}})],Hp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Hp.prototype,"initialLoad",2);var vf=Hp,ev=class ev extends yf{};o(ev,"LRChartView"),h([y({manifest:{path:vo},generate:qn})],ev.prototype,"visible",2);var sx=ev,hf=class hf extends pq(yf){};o(hf,"LRTableView"),h([y({manifest:{path:vo}})],hf.prototype,"keepPreviousPersonalization",2),h([y({manifest:{path:vo}})],hf.prototype,"entitySet",2),h([y({manifest:{path:vo},generate:qn})],hf.prototype,"visible",2);var cx=hf,_s=class _s{};o(_s,"TableViewExtension"),h([y({manifest:{path:vo}})],_s.prototype,"key",2),h([y({manifest:{path:Uy,import:Dw,export:o((t,n)=>{px(t,n)},"export"),delete:dx}})],_s.prototype,"index",2),h([y({manifest:{path:vo}})],_s.prototype,"label",2),h([y({manifest:{path:vo}})],_s.prototype,"template",2),h([y({manifest:{path:vo},generate:qn})],_s.prototype,"visible",2);var lx=_s,tv=class tv{};o(tv,"MultiTableModeV4"),h([y({manifest:{path:o(t=>ft(t)+"/views","path")}})],tv.prototype,"showCounts",2);var fx=tv,Gp=class Gp extends Jy{};o(Gp,"Table"),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/0/secondary/0","path"),delete:Zs}})],Gp.prototype,"annotationPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/#/topic/9f4e1192f1384b85bc160288e17f69c4")],Gp.prototype,"initialLoad",2);var ux=Gp;var Tf=class Tf{};o(Tf,"TableCreationModeOP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Kp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Xp(t,r)},"delete")}})],Tf.prototype,"name",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Kp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Xp(t,r)},"delete")}})],Tf.prototype,"createAtEnd",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:o((t,n,i)=>{Kp(t,n,i)},"export"),delete:o((t,n,i,r)=>{Xp(t,r)},"delete")}})],Tf.prototype,"inlineCreationRowsHiddenInEditMode",2);var gx=Tf,bf=class bf{};o(bf,"PersonalizationTypeOP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],bf.prototype,"column",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],bf.prototype,"sort",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i),"path"),export:To,delete:bo}})],bf.prototype,"filter",2);var mx=bf,Ef=class Ef{};o(Ef,"QuickVariantSelectionV4OP"),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+iv.QUICKVARPATH,"path")}})],Ef.prototype,"paths",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+iv.QUICKVARPATH,"path")}})],Ef.prototype,"hideTableTitle",2),h([y({manifest:{path:o((t,n,i)=>Lt(t,n,i)+iv.QUICKVARPATH,"path")}})],Ef.prototype,"showCounts",2);var hx=Ef,mi=class mi{};o(mi,"ObjectPageTable"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"type",2),h([y({manifest:{path:Lt,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"})],mi.prototype,"creationMode",2),h([y({manifest:{path:Lt,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:nv}}),x({since:"1.86.0"})],mi.prototype,"personalization",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectionMode",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectAll",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"selectionLimit",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/4bab6f2043814257974b52d4dafe1dcd")],mi.prototype,"enableExport",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"quickVariantSelection",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/sdk/#/topic/f3cc057e405c4fd58ee2ed42c557797c")],mi.prototype,"condensedTableLayout",2),h([y({manifest:{path:Lt}}),x({since:"1.86.0"})],mi.prototype,"enableFullScreen",2),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],mi.prototype,"enablePaste",2),h([y({manifest:{path:Lt}}),x({since:"1.117.0"}),fe("https://ui5.sap.com/#/topic/7f844f1021cd4791b8f7408eac7c1cec")],mi.prototype,"hierarchyQualifier",2),h([y({manifest:{path:Lt}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],mi.prototype,"widthIncludingColumnHeader",2),h([y({manifest:{path:Lt}}),x({since:"1.123.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],mi.prototype,"disableCopyToClipboard",2);var qp=mi,Qp=class Qp extends qp{};o(Qp,"ObjectPageTableRowCountable"),h([y({manifest:{path:Lt}}),x({since:"1.120.0"})],Qp.prototype,"rowCountMode",2),h([y({manifest:{path:Lt}}),x({since:"1.120.0"})],Qp.prototype,"rowCount",2);var Af=Qp,rv=class rv extends qp{};o(rv,"ObjectPageResponsiveTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],rv.prototype,"type",2);var zp=rv,ov=class ov extends Af{};o(ov,"ObjectPageAnalyticalTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],ov.prototype,"type",2);var Yp=ov,av=class av extends Af{};o(av,"ObjectPageGridTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],av.prototype,"type",2);var Jp=av,sv=class sv extends Af{};o(sv,"ObjectPageTreeTableV4"),h([y({manifest:{path:Lt}}),x({since:"1.84.0"})],sv.prototype,"type",2);var Zp=sv;var ed=class ed{};o(ed,"ActionAfterExecutionConfigurationOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],ed.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/afterExecution","path")}})],ed.prototype,"enableAutoScroll",2);var nd=ed,Sf=class Sf{};o(Sf,"ObjectPageTableColumn"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Sf.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Sf.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Sf.prototype,"widthIncludingColumnHeader",2);var Pf=Sf,bx=class bx extends Pf{};o(bx,"ObjectPageTableColumnAction");var yx=bx,td=class td{};o(td,"PositionOP"),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>Bi(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],td.prototype,"placement",2);var vx=td,Xo=class Xo{};o(Xo,"TableCustomColumnOP"),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"position",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"header",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Xo.prototype,"width",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"template",2),h([y({manifest:{path:Bi}}),x({since:"1.86.0"})],Xo.prototype,"horizontalAlign",2),h([y({manifest:{path:Bi}}),x({since:"1.84.0"})],Xo.prototype,"availability",2),h([y({manifest:{path:Bi}}),x({since:"1.85.0"})],Xo.prototype,"properties",2);var Tx=Xo;var cv=class cv{};o(cv,"ObjectPageToolBarAction"),h([y({manifest:{path:kn}})],cv.prototype,"enableOnSelect",2);var Ex=cv,id=class id{};o(id,"CustomActionPositionOP"),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r)=>kn(t,n,i,r)+"/position","path")}}),x({since:"1.84.0"})],id.prototype,"placement",2);var Ax=id,Ia=class Ia{};o(Ia,"CustomTableActionOP"),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"text",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"position",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"press",2),h([y({manifest:{path:kn}}),x({since:"1.84.0"})],Ia.prototype,"requiresSelection",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Ia.prototype,"visible",2),h([y({manifest:{path:kn},generate:ri}),x({since:"1.84.0"})],Ia.prototype,"enabled",2);var Sx=Ia;var xf=class xf{};o(xf,"AdditionalSemanticObject"),h([y({manifest:{path:Wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.108.0"})],xf.prototype,"allowedActions",2),h([y({manifest:{path:Wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],xf.prototype,"unavailableActions",2),h([y({manifest:{path:Wy}}),fe("https://ui5.sap.com/sdk/#/topic/8dcfe2e4555f49db8859cb6eb838692e"),x({since:"1.96.0"})],xf.prototype,"mapping",2);var Px=xf,rd=class rd{};o(rd,"RelatedApps"),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],rd.prototype,"showRelatedApps",2),h([y({manifest:{path:ft}})],rd.prototype,"additionalSemanticObjects",2);var xx=rd;var od=class od{};o(od,"ActionAfterExecutionConfiguration"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],od.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/afterExecution","path")}})],od.prototype,"enableAutoScroll",2);var Cx=od,Cf=class Cf{};o(Cf,"TableColumn"),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Cf.prototype,"width",2),h([y({manifest:{path:di}}),x({since:"1.85.0"})],Cf.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Cf.prototype,"widthIncludingColumnHeader",2);var lv=Cf,Of=class Of{};o(Of,"ViewTableColumn"),h([y({manifest:{path:nr}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Of.prototype,"width",2),h([y({manifest:{path:nr}}),x({since:"1.85.0"})],Of.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.120.0"}),fe("https://ui5.sap.com/#/topic/c0f6592a592e47f9bb6d09900de47412")],Of.prototype,"widthIncludingColumnHeader",2);var fv=Of,uv=class uv extends lv{};o(uv,"TableColumnAction"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],uv.prototype,"afterExecution",2);var Ox=uv,pv=class pv extends fv{};o(pv,"ViewTableColumnAction"),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],pv.prototype,"afterExecution",2);var Ix=pv,ad=class ad{};o(ad,"Position"),h([y({manifest:{path:o((t,n,i,r,a)=>di(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],ad.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"})],ad.prototype,"placement",2);var Nx=ad,sd=class sd{};o(sd,"ViewPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],sd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>nr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],sd.prototype,"placement",2);var Lx=sd,Qo=class Qo{};o(Qo,"TableCustomColumn"),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"position",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"header",2),h([y({manifest:{path:di}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],Qo.prototype,"width",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"template",2),h([y({manifest:{path:di}}),x({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),h([y({manifest:{path:di}}),x({since:"1.84.0"})],Qo.prototype,"availability",2),h([y({manifest:{path:di}}),x({since:"1.85.0"})],Qo.prototype,"properties",2);var Rx=Qo,qo=class qo{};o(qo,"ViewTableCustomColumn"),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],qo.prototype,"position",2),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],qo.prototype,"header",2),h([y({manifest:{path:nr}}),x({since:"1.84.0"}),fe("https://ui5.sap.com/api/sap.ui.core.CSSSize")],qo.prototype,"width",2),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],qo.prototype,"template",2),h([y({manifest:{path:nr}}),x({since:"1.86.0"})],qo.prototype,"horizontalAlign",2),h([y({manifest:{path:nr}}),x({since:"1.84.0"})],qo.prototype,"availability",2),h([y({manifest:{path:nr}}),x({since:"1.85.0"})],qo.prototype,"properties",2);var Fx=qo;var Vx=class Vx{};o(Vx,"Actions");var Dx=Vx,wx=class wx{};o(wx,"ToolBar");var _x=wx;var cd=class cd{};o(cd,"ActionAfterExecutionConfigurationToolBarLR"),h([y({manifest:{path:o((t,n,i,r,a)=>xr(t,n,i,r,a)+"/afterExecution","path")}}),fe("https://ui5.sap.com/#/topic/2c65f07f44094012a511d6bd83f50f2d")],cd.prototype,"navigateToInstance",2),h([y({manifest:{path:o((t,n,i,r,a)=>xr(t,n,i,r,a)+"/afterExecution","path")}})],cd.prototype,"enableAutoScroll",2);var Mx=cd,ld=class ld{};o(ld,"ToolBarAction"),h([y({manifest:{path:xr}})],ld.prototype,"enableOnSelect",2),h([y({manifest:{path:xr}})],ld.prototype,"afterExecution",2);var kx=ld,fd=class fd{};o(fd,"ViewToolBarAction"),h([y({manifest:{path:Yr}})],fd.prototype,"enableOnSelect",2),h([y({manifest:{path:Yr}})],fd.prototype,"afterExecution",2);var jx=fd,ud=class ud{};o(ud,"CustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>xr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],ud.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>xr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],ud.prototype,"placement",2);var Ux=ud,Na=class Na{};o(Na,"CustomTableAction"),h([y({manifest:{path:xr}}),x({since:"1.84.0"})],Na.prototype,"text",2),h([y({manifest:{path:xr}}),x({since:"1.84.0"})],Na.prototype,"position",2),h([y({manifest:{path:xr}}),x({since:"1.84.0"})],Na.prototype,"press",2),h([y({manifest:{path:xr}}),x({since:"1.84.0"})],Na.prototype,"requiresSelection",2),h([y({manifest:{path:xr},generate:qn}),x({since:"1.84.0"})],Na.prototype,"visible",2),h([y({manifest:{path:xr},generate:qn}),x({since:"1.84.0"})],Na.prototype,"enabled",2);var $x=Na,pd=class pd{};o(pd,"ViewCustomActionPosition"),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"anchor",2),h([y({manifest:{path:o((t,n,i,r,a)=>Yr(t,n,i,r,a)+"/position","path")}}),x({since:"1.84.0"})],pd.prototype,"placement",2);var Bx=pd,La=class La{};o(La,"ViewTableCustomAction"),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"text",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"position",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"press",2),h([y({manifest:{path:Yr}}),x({since:"1.84.0"})],La.prototype,"requiresSelection",2),h([y({manifest:{path:Yr},generate:qn}),x({since:"1.84.0"})],La.prototype,"visible",2),h([y({manifest:{path:Yr},generate:qn}),x({since:"1.84.0"})],La.prototype,"enabled",2);var Hx=La;var Qx={};Qs(Qx,{FreestylePage:()=>Kx,ListReport:()=>Or,ObjectPage:()=>Eo});function dq(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(dq,"deleteAllALPViews");function gq(){}o(gq,"doNotExport");function mq(){}o(mq,"doNotImport");var Or=class{};o(Or,"ListReport"),h([y({manifest:{path:o(t=>ft(t)+"/views","path"),import:mq,export:gq,delete:dq}})],Or.prototype,"chart",2),h([y({manifest:{path:o(t=>ft(t),"path")}}),x({since:"1.84.0"})],Or.prototype,"variantManagement",2),h([y({manifest:{path:o(t=>ft(t)+"/views/paths/[]/0","path")}}),fe("https://ui5.sap.com/sdk/#/topic/2a9df06673d34f72b238549d49da8bfb")],Or.prototype,"defaultPath",2),h([y({manifest:{path:o(t=>ft(t),"path")}})],Or.prototype,"defaultTemplateAnnotationPath",2),h([Ut("header")],Or.prototype,"header",2),h([Ut("fe::FilterBar")],Or.prototype,"filterBar",2),Or=h([jr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],Or);var Wx=ie(le());var Eo=class{};o(Eo,"ObjectPage"),h([Ut("header")],Eo.prototype,"header",2),h([Ut("layout")],Eo.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")],Eo.prototype,"variantManagement",2),h([Ut("sections")],Eo.prototype,"sections",2),Eo=h([jr({id:`${Wx.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Wx.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Eo);var Xx=class Xx{};o(Xx,"FreestylePage");var Kx=Xx;var Ra=ie(le());var hq={ALPTableView:vf},yq={ALPTableView:vf},vq={[Ra.DefinitionName.ObjectPageResponsiveTableV4]:zp,[Ra.DefinitionName.ObjectPageAnalyticalTableV4]:Yp,[Ra.DefinitionName.ObjectPageGridTableV4]:Jp,[Ra.DefinitionName.ObjectPageTreeTableV4]:Zp,TableColumn:Pf,ObjectPageCustomSectionView:uf,ActionAfterExecutionConfiguration:nd},Tq={[Ra.PageTypeV4.AnalyticalListPage]:hq,[Ra.PageTypeV4.ListReport]:yq,[Ra.PageTypeV4.ObjectPage]:vq},qx=class qx extends Ul{constructor(){super(Gx,Qx,Tq)}};o(qx,"MetadataInstanceFactoryV4");var Fa=qx;var zx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yx(e,t,n,i,r,a,s){var g,m,v,A,b,I;let l=t.jsonSchema.definitions,u=a&&a!==`@${zx.UIAnnotationTerms.LineItem}`?a:ve.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let F in p.properties){let K=l[u].properties[F].$ref.split($)[1].split("<")[0];e.columns[F]=n.createInstance(i,K);let U=s||a;At(e.columns[F],t.manifest,l[K],r,[F,U],U,t.logger),_o(e.columns,F)}_o(e,"columns")}else{let F=(I=(b=(A=(v=(m=(g=t.manifest["sap.ui5"])==null?void 0:g.routing)==null?void 0:m.targets)==null?void 0:v[r])==null?void 0:A.options)==null?void 0:b.settings)==null?void 0:I.views;(!F||F.paths.length<1)&&se(t.logger,{severity:ve.LogSeverity.Error,message:q.t("NOLINEITEMS")})}}o(Yx,"transferColumns");function bq(e,t,n,i,r){let a=e.jsonSchema.definitions,s=a[ve.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])}}_o(t,"visualFilters")}}o(bq,"importVisualFilters");function Eq(e,t,n,i,r,a=ve.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[ve.DefinitionName.LineItems,`${ve.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(a)===-1&&(u=`@${zx.UIAnnotationTerms.LineItem}#${a.split("::").pop()}`);let p=l[`${ve.DefinitionName.Actions}<${a}>`];if(typeof p=="object")for(let g in p.properties){let m=p.properties[g];if(typeof m=="object"&&m.$ref){let v=yn(m.$ref),A=v.split("<")[0];t.toolBar.actions[g]=n.createInstance(i,A),At(t.toolBar.actions[g],e.manifest,l[v],r,[g,u]),_o(t.toolBar.actions,g)}}}o(Eq,"importActions");function Jx(e,t,n,i,r,a=ve.DefinitionName.LineItems,s){let l=n.createInstance(i,ve.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[ve.DefinitionName.ToolBarLR],r,[]),Eq(e,u,n,i,r,a,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}o(Jx,"transferToolBar");function _w(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ve.SchemaTag.annotationPath],r=n?`/${n}/`:"",a=i==null?void 0:i.substr(i.lastIndexOf("@"));return a=r?`${r}${a}`:a,a}o(_w,"determineTargetAnnotationOfView");function Aq(e,t,n,i,r){let a=e.jsonSchema.definitions;t.chart=n.createInstance(i,ve.DefinitionName.ALPChart);let s=a[ve.DefinitionName.ALPChart],l=s[ve.SchemaTag.annotationPath];At(t.chart,e.manifest,s,r,[s[ve.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ve.DefinitionName.ToolBar,{actions:{}}),At(t.chart.toolBar,e.manifest,a[ve.DefinitionName.ViewChartToolBar],r,[]);let u=a[ve.DefinitionName.ALPTable][ve.SchemaTag.annotationPath];if(u){let p=a[ve.DefinitionName.ALPTable],g=t.table=n.createInstance(i,ve.DefinitionName.ALPTable);Jx(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));At(g,e.manifest,p,r,[p[ve.SchemaTag.key],m]),Yx(g,e,n,i,r,void 0,m)}}o(Aq,"importALPViews");function Sq(e){let t;return e.indexOf(ve.DefinitionName.LRTableView)>-1?t=ve.DefinitionName.LRTableView:e.indexOf(ve.DefinitionName.LRChartView)>-1?t=ve.DefinitionName.LRChartView:e===ve.DefinitionName.TableViewExtension&&(t=ve.DefinitionName.TableViewExtension),t}o(Sq,"getViewTypeByDefinition");function Pq(e,t,n,i,r){let a=t.table.views=n.createInstance(i,ve.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;At(a,e.manifest,s[ve.DefinitionName.MultiTableModeV4],r,[]);let l=s[ve.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,g)=>p[1][ve.SchemaTag.propertyIndex]-g[1][ve.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let g=p[1].$ref.split($)[1],m=Sq(g),v=a[p[0]]=n.createInstance(i,m),A=s[g].entitySet,b=_w(s,g,A);if(At(v,e.manifest,s[g],r,[p[0],b]),m===ve.DefinitionName.LRTableView){let I=`${ve.DefinitionName.LineItemsOfView}::${p[0]}`;Jx(e,v,n,i,r,I,b),Yx(v,e,n,i,r,I,b)}Object.keys(v).length===0&&delete a[p[0]]}_o(t.table,"views")}o(Pq,"importLRViews");function xq(e,t,n,i,r){let a=ve.DefinitionName.HeaderActions,s=ve.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],v=yn(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(ve.PageTypeV4.ObjectPage,v),At(t[s].actions[u],i,e.definitions[v],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}o(xq,"transferHeaderActions");function Cq(e,t,n,i){let r=e.jsonSchema.definitions,a={};for(let s of[ve.DefinitionName.SelectionFields,ve.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!==$+ve.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ve.PageTypeV4.ListReport,ve.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(Cq,"importCustomFilterFields");function Oq(e,t,n,i,r,a){if(At(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ve.DefinitionName.Header),At(t.header,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.Header],r,[]),xq(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ve.DefinitionName.FilterBar),At(t.filterBar,e.manifest,e.jsonSchema.definitions[ve.DefinitionName.FilterBar],r,[]),bq(e,t.filterBar,n,i,r),Cq(e,t.filterBar,n,r),a===ve.SchemaType.ListReport){let s=ve.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,ve.DefinitionName.Table);let p=_w(e.jsonSchema.definitions,s);At(t.table,e.manifest,l,r,[s,p]),Jx(e,t,n,i,r,u),Yx(t.table,e,n,i,r,u,p),Pq(e,t,n,i,r)}else a===ve.SchemaType.AnalyticalListPage&&Aq(e,t,n,i,r)}o(Oq,"addSettings");function Bc(e,t){if(rn(),!e.jsonSchema)return;if(!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 n=e.manifest[ve.ManifestSection.ui5].routing.targets;if(!n){se(e.logger,{severity:ve.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ve.MANIFESTPATH,range:[ve.ManifestSection.ui5]}});return}let i=new Fa,r=i.createPageInstance(ve.PageTypeV4.ListReport);for(let a in n){let s=n[a],l=Sb(s);if("name"in s&&(l===ve.PageTypeV4.ListReport||l===ve.PageTypeV4.AnalyticalListPage)){Oq(e,r,i,ve.PageTypeV4.ListReport,a,t);break}}return r}o(Bc,"createListReportConfig");var ye=ie(le()),Hc=require("@sap-ux/vocabularies-types/vocabularies/UI");function Iq(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(Iq,"isBoolean");function Nq(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(Nq,"isNumber");function Lq(e,t){let n=e.toString();return Iq(n,t)?n==="true":Nq(n,t)?parseFloat(n):e}o(Lq,"convertValue");function Rq(e,t,n,i){let{element:r}=e,a=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=Lq(r.attributes[i],t);s!==n[i]&&(n[i]=s,a=!0)}return a}o(Rq,"importProperty");function Vw(e,t,n){let i,r=of(e.file,!1,n);if(r){let a=Dy(r);i={},wc({fullSchema:t,schema:t,element:a,contextPath:[],config:i},Rq)}return i}o(Vw,"convertXmlFileToConfig");function dv(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:a}=e;if(!i||Object.keys(i).length===0)return;let s=Bo(t||[],r,n,a),l;return s&&(l=Vw(s,i,e.logger)),l}o(dv,"createCustomPageConfig");function dd(e,t){var v;let{fragments:n,manifest:i,jsonSchema:r,routingId:a,logger:s}=e,l=af(t),u=(v=r.definitions)==null?void 0:v[l];if(!r||!u)return;let p=Oc(i,a),g=Ic(n||[],p,i,"fragment",t),m;if(g){let A={...u,definitions:r.definitions};m=Vw(g,A,s)}return m}o(dd,"createCustomFragmentConfig");function Zx(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(Zx,"getManifestId");function gd(e){return e.replace(/#/g,"::").replace(/\//g,"::")}o(gd,"getDefinitionId");function Fq(e,t,n,i,r,a){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[gd(a)];if(l)for(let u in l.properties){l.properties[u].$ref.indexOf(ye.DefinitionName.CustomColumnOP)>-1?s=ye.DefinitionName.CustomColumnOP:s=ye.DefinitionName.ObjectPageTableColumn;let g=r.createInstance(ye.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(Fq,"fillTableColumnsInConfig");function kw(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(ye.DefinitionName.CustomSectionActionOP)?g=i.actions:g=i[n].table.toolBar.actions,g[s]=r.createInstance(ye.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(kw,"fillSectionActionsInConfig");function Dq(e,t,n,i,r,a){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageSectionForm}<${gd(a)}>`].properties.form.$ref.split($)[1],g=e.jsonSchema.definitions[l].properties.actions.$ref.split($)[1],m=e.jsonSchema.definitions[g];for(let v in m.properties){let A=m.properties[v],b=yn(A.$ref),I=e.jsonSchema.definitions[b];if(I.annotationType===Hc.UIAnnotationTypes.DataFieldForAction||I.description==="Custom Action"){let F=yn(I.$ref)||b.split("<")[0];i[n].form.actions[v]=r.createInstance(ye.PageTypeV4.ObjectPage,F),At(i[n].form.actions[v],e.manifest,e.jsonSchema.definitions[F],e.routingId,[v.replace("/","??")],a),Object.keys(i[n].form.actions[v]).length===0&&delete i[n].form.actions[v]}}}}o(Dq,"fillFormActionsInConfig");function _q(e){return new Map([["AnalyticalTable",ye.DefinitionName.ObjectPageAnalyticalTableV4],["GridTable",ye.DefinitionName.ObjectPageGridTableV4],["ResponsiveTable",ye.DefinitionName.ObjectPageResponsiveTableV4],["TreeTable",ye.DefinitionName.ObjectPageTreeTableV4]]).get(e)??ye.DefinitionName.ObjectPageResponsiveTableV4}o(_q,"getTableDefinitionNameByType");function ww(e,t,n,i,r,a){var u;let s=a||Zx(i,!1,Hc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){let{tableSettings:p={}}=l,g=p.type,m=_q(g);n[i]={},n[i].table=r.createInstance(ye.PageTypeV4.ObjectPage,m);let v=`${m}<${a?gd(a):i.replace("#","::")}>`;At(n[i].table,e.manifest,e.jsonSchema.definitions[v],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ToolBar,{actions:{}});let A=e.jsonSchema.definitions[`${ye.DefinitionName.Actions}<${gd(s)}>`];kw(e,A,i,n,r,s),Fq(e,l,n,i,r,s)}}o(ww,"fillTableInConfig");function Vq(e,t,n,i,r){var l;let a=Zx(i),s=(l=t.controlConfiguration)==null?void 0:l[a];s&&(n[i]={},n[i].form=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageForm,{actions:{}}),Dq(e,s,i,n,r,a))}o(Vq,"fillFormInConfig");function wq(e,t,n,i,r,a){let s=r.createInstance(ye.PageTypeV4.ObjectPage,ye.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=dd(e,s.fragmentName);s.controls=u}n[i]=s}o(wq,"fillCustomSubSectionInConfig");function jw(e,t,n,i,r,a){var s,l,u,p,g;for(let m in t){let v=t[m],A=m;if(m.includes(Hc.UIAnnotationTerms.PresentationVariant)&&((s=v.$ref)!=null&&s.startsWith($+ye.DefinitionName.ObjectPageSectionTableV4))){let b=v.$ref.split($)[1];A=Zx(b,!0,Hc.UIAnnotationTerms.LineItem),ww(e,n,i,m,r,A)}else(l=v.$ref)!=null&&l.startsWith($+ye.DefinitionName.ObjectPageSectionTableV4)?ww(e,n,i,m,r):v.properties&&v.properties.subsections?(i[m]={subsections:{}},jw(e,v.properties.subsections.properties,n,i[m].subsections,r,m)):(u=v.$ref)!=null&&u.startsWith($+ye.DefinitionName.ObjectPageSectionForm)&&((p=v.$ref)!=null&&p.includes(`@${Hc.UIAnnotationTerms.FieldGroup}::`))?Vq(e,n,i,m,r):(g=v.$ref)!=null&&g.startsWith($+ye.DefinitionName.ObjectPageCustomSubSectionFragment)&&wq(e,v,i,m,r,a)}}o(jw,"fillSectionsInConfig");function Mq(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(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSectionFragment);if(At(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l),u.actions){p.actions=i.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSectionActions,{});let m=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageCustomSectionActions}<${gd(l)}>`];kw(e,m,l,p,i,l)}let g=u.template;if(g){let m=dd(e,g);p.controls=m}n.sections[l]=p}}o(Mq,"fillCustomSectionsInConfig");function kq(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(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomHeaderSectionFragment);At(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let g=u.template;if(g){let v=dd(e,g);p.controls=v}let m=u.templateEdit;if(m){let v=dd(e,m);p.controlsEditMode=v}n.header.sections[l]=p}}o(kq,"fillCustomHeaderSectionsInConfig");function jq(e,t,n,i,r){var s,l;let a=e.definitions[ye.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(ye.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=n.createInstance(ye.PageTypeV4.ObjectPage,g),At(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ye.FACETTITLEPREFIX)[1]))}}}o(jq,"fillHeaderFacets");function Uq(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(ye.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(Uq,"importActionSettingsOfReference");function Mw(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&&Uq(g,e,n,u,p,i,r)}}}o(Mw,"fillHeaderFooterActions");function $q(e,t,n){var a,s;let i=n.createPageInstance(ye.PageTypeV4.ObjectPage),r=t.options&&t.options.settings;return i.header=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageHeader),At(i.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageFooter),At(i.footer,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageLayout),At(i.layout,e.manifest,e.jsonSchema.definitions[ye.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[ye.DefinitionName.Sections]&&(i.sections={},jw(e,e.jsonSchema.definitions[ye.DefinitionName.Sections].properties,r,i.sections,n)),Mq(e,r,i,n),jq(e.jsonSchema,i,n,e.manifest,e.routingId),kq(e,r,i,n),Mw(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.ObjectPageHeaderActions,ye.PropertyName.header),Mw(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.FooterActions,ye.PropertyName.footer)),i}o($q,"fillObjectPageConfig");function gv(e){if(rn(),!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 t=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!t){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){se(e.logger,{severity:ye.LogSeverity.Error,message:q.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let i=new Fa;return $q(e,n,i)}o(gv,"createObjectPageConfigV4");var Ge=ie(le());var eC=[],mv={};function Bq(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(Bq,"routesSorter");function tC(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(tC,"resolveTarget");function Hq(e){let t={};e=e.concat().sort(Bq);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),a;Array.isArray(i.target)?(a=tC(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(Hq,"populateAssociations");function Gq(e,t,n){let i;return e.name?e.name===Ge.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ge.PageTypeV4.FPMCustomPage:e.name.endsWith(Ge.PageTypeV4.ListReport)||e.name.endsWith(Ge.PageTypeV4.AnalyticalListPage)?i=Ge.PageTypeV4.ListReport:e.name.endsWith(Ge.PageTypeV4.ObjectPage)?i=Ge.PageTypeV4.ObjectPage:i=Ge.PageTypeV4.CustomPage:"viewId"in e?i=Ge.PageTypeV4.CustomPage:(se(t,{severity:Ge.LogSeverity.Error,message:q.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ge.MANIFESTPATH,range:[`${Ge.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ge.ViewTypes&&"viewName"in e&&(i=Ge.PageTypeV4.CustomPage)),i}o(Gq,"determinePageType");function Wq(e){let t=e.target.viewId||e.target.id,n=_t(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ge.PageTypeV4.CustomPage)return;let i=Object.keys(e.schemas).find(r=>r.includes(n))||Object.keys(e.schemas).find(r=>r.includes(n.slice(0,-1)))||Object.keys(e.schemas).find(r=>r.includes(e.page.pageType));if(i){if(e.page.pageType===Ge.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=gv(r)}else if(e.page.pageType===Ge.PageTypeV4.FPMCustomPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger,routingId:e.id,fragments:e.extensionFiles.fragments,views:e.extensionFiles.views};e.page.config=dv(r)}else if(e.templateType===Ge.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Bc(r,Ge.SchemaType.ListReport)}else if(e.templateType===Ge.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Bc(r,Ge.SchemaType.AnalyticalListPage)}else if(e.templateType===Ge.TemplateType.FreestylePageV4&&e.page.pageType===Ge.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=cu(e.target)===Ge.TemplateType.AnalyticalListPageV4?Ge.SchemaType.AnalyticalListPage:Ge.SchemaType.ListReport;e.page.config=Bc(r,s)}}}o(Wq,"convertSettingsToConfig");function Kq(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");eC.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");eC.push(t[t.length-1])}}o(Kq,"updateUnhandledControllers");function Xq(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(Xq,"setVariantManagmentAndNavigation");function Qq(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}=kc(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(Qq,"setEntitySetEntityTypeContextPath");function qq(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.viewPath&&{path:e.viewPath},...e.path&&{path:e.path}};else if([Ge.PageTypeV4.CustomPage,Ge.PageTypeV4.FPMCustomPage].includes(n)){let a=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName,s=e.name;!a&&n===Ge.PageTypeV4.CustomPage&&(a=s,s=void 0),t.view={...e.id&&{id:e.id},...a&&{name:a},...s&&{template:s},...e.viewType&&{viewType:e.viewType}}}}o(qq,"evaluateCustomPageSettings");function zq(e,t,n,i){let r=e.targets[t],a=Gq(r,i.logger,t),s={pageType:a};if(Qq(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),mv[t]&&mv[t].indexOf(".")!==-1){let p=mv[t].split(".");s.navigationProperty=p[p.length-1]}qq(r,s,a),Xq(r,s),Kq(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}};Wq(u)}o(zq,"getSinglePageAndConfig");function Uw(e){let t={},n=e.manifest[Ge.ManifestSection.ui5].routing;if(!n||!n.routes){let i=q.t("NOROUTING");return se(e.logger,{severity:Ge.LogSeverity.Error,message:i,location:{path:Ge.MANIFESTPATH,range:[Ge.ManifestSection.ui5]}}),t}mv=Hq(n.routes||[]);for(let i in n.targets)zq(n,i,t,e);return t}o(Uw,"getPagesAndConfigs");function $w(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 tC(t?t.target:e.routes[0].target)}else return}o($w,"getHome");function Bw(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(Bw,"getSettings");function Nf(e,t){let n=e[Ge.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let a=n.targets[r];a.name===t&&(i[r]=a)}return i}o(Nf,"getPages");var nC=class nC extends Ya{constructor(t){rn();let n=new sf,i=_t(Ge.SchemaType.Application),r=t.appSchemas[i.filename];At(n,t.manifest,r.definitions.AppSettings,"",[]),super(t,$w(t.manifest[Ge.ManifestSection.ui5].routing),Uw(t),{...Bw(t.manifest[Ge.ManifestSection.ui5].routing),...n}),this.unhandledControllers=eC}};o(nC,"V4AppProvider");var If=nC;var Hw=require("fs"),Gc=require("path"),Gw=ie(le()),md=ie(le());var Ww=o((e,t,n=__dirname)=>{let i;switch(t){case md.SchemaType.Application:{i=`${md.SchemaType.Application}${e.toUpperCase()}.json`;break}case md.SchemaType.FPMCustomPage:{i=`${md.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Gc.join)(n,"schemas",e,i);if(n.endsWith((0,Gc.join)("specification","packages","specification")))return(0,Gc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Gc.join)("src","specification")))return(0,Gc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Gc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),Yq=o(async e=>new Promise((t,n)=>{(0,Hw.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),hv=o(async(e,t)=>{try{let n=Ww(e||Gw.FioriElementsVersion.v4,t,__dirname);return await Yq(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function Jq(e,t){let n={},i=[];switch(i=[ue.SchemaType.Application],e){case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.AnalyticalListPageV4:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.FreestylePageV4:i.push(ue.SchemaType.FreestylePage),t===ue.FioriElementsVersion.v4&&i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage,ue.SchemaType.FPMCustomPage);break;case ue.TemplateType.ListReportObjectPageV2:i.push(ue.SchemaType.ListReport,ue.SchemaType.ObjectPage);break;case ue.TemplateType.AnalyticalListPageV2:i.push(ue.SchemaType.AnalyticalListPage,ue.SchemaType.ObjectPage);break;case ue.TemplateType.OverviewPageV2:i.push(ue.SchemaType.OverviewPage);break;default:break}for(let r of i){let a=_t(r);n[a.filename]=await hv(t,r)}return n}o(Jq,"getGenericSchemas");function Xw(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ii(ue.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:a,Facets:s}=r.annotations[i];a&&!a.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}o(Xw,"getAnnotationsForUi");function hd(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}o(hd,"getEntitySetByEntitySetName");function Zq(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(Zq,"resolveNavigationProperty");function kc(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}=Zq(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(kc,"getEntityTypeEntitySetFromContextPath");function Kw(e,t,n){let i=ep(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=hd(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]=yd(e,t[u.filename])}}o(Kw,"generateObjectPageSchemasV2");function ez(e,t,n){var l,u;let i=Nf(e.manifest,ue.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Nf(e.manifest,ue.v4.FE_TEMPLATE_V4_ALP),a={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in a){let g=(l=a[p].options.settings)==null?void 0:l.entitySet,m=(u=a[p].options.settings)==null?void 0:u.contextPath,{entitySet:v,entityType:A}=kc(s,m,g,e.logger);e.entityType=A,e.entitySet=v;let b=_t(ue.SchemaType.ListReport,p),I=_t(ue.SchemaType.ListReport);e.templateType===ue.TemplateType.FreestylePageV4&&(e.templateType=cu(a[p])),n[b.filename]=ip(e,t[I.filename],a[p].name,m)}}o(ez,"generateListReportSchemasV4");function tz(e,t,n){var r;let i=ep(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=hd(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]=vd(e,n[u.filename])}}o(tz,"generateAppSchemaV2LR");function nz(e,t,n){var a,s;let i=Nf(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}=kc(r,p,u);e.entitySet=m,e.entityType=g;let v=_t(ue.SchemaType.ObjectPage,l),A=_t(ue.SchemaType.ObjectPage),b=_t(ue.SchemaType.FPMCustomPage);n[v.filename]=Fp(e,t[A.filename],p,t[b.filename])}}o(nz,"generateObjectPageSchemasV4");function iz(e,t,n,i){var a;let r={};if(i===ue.TemplateType.ListReportObjectPageV2&&n)tz(e,r,t),Kw(e,t,r);else if(i===ue.TemplateType.AnalyticalListPageV2&&n){let s=ep(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=hd(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]=Td(e,t[g.filename])}Kw(e,t,r)}else if(i===ue.TemplateType.OverviewPageV2){let s=_t(ue.SchemaType.OverviewPage),l=_t(ue.SchemaType.OverviewPage);r[s.filename]=bd(t[l.filename],e.manifest)}return{...t,...r}}o(iz,"generateAppSchemasV2");function rz(e,t,n){if(!Js(e.featureToggles,ue.Features.BuildingBlocks))return;let i=Nf(e.manifest,ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let a=i[r],s=Bo(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]=Mc(t[p.filename],s,e.serviceAVT,e.logger)}}}o(rz,"generateCustomPageSchemasV4");function oz(e,t,n){let i={};return n&&(ez(e,t,i),nz(e,t,i),rz(e,t,i)),{...t,...i}}o(oz,"generateAppSchemasV4");async function Qw(e,t,n){let i=await Jq(n,e.fioriElementsVersion);return!e.fioriElementsVersion||e.fioriElementsVersion===ue.FioriElementsVersion.v4?oz(e,i,t):iz(e,i,t,n)}o(Qw,"generateAppSchemas");function az(e){let t,n=[];switch(e.templateType){case ue.TemplateType.ListReportObjectPageV2:case ue.TemplateType.AnalyticalListPageV2:t=new wh(e);break;case ue.TemplateType.AnalyticalListPageV4:case ue.TemplateType.ListReportObjectPageV4:case ue.TemplateType.FreestylePageV4:t=new If(e);break;case ue.TemplateType.OverviewPageV2:t=new jh(e);break;default:t=new If(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(az,"importConfigs");function qw(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(qw,"getFileList");async function iC(e){var b,I;rn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,featureToggles:s}=e;new pu().doesUi5VersionFitDistTags((I=(b=t["sap.ui5"])==null?void 0:b.dependencies)==null?void 0:I.minUI5Version,i);let u=Ib(t),p=No(n,i),g=Xw(p),m=Nb(t,u,i),A=await Qw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:a,fioriElementsVersion:u,logger:i,featureToggles:s},g,m);return qw(A)}o(iC,"importProjectSchema");async function rC(e){var K,U;rn();let{manifest:t,annotations:n,logger:i,fragments:r,views:a,flex:s,featureToggles:l}=e;new pu().doesUi5VersionFitDistTags((U=(K=t["sap.ui5"])==null?void 0:K.dependencies)==null?void 0:U.minUI5Version,i);let p=Ib(t),g=i0(t),m=No(n,i),v=Nb(t,p,i),A={templateType:v,manifest:t,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,logger:i,featureToggles:l},b=Xw(m),I=await Qw(A,b,v),j=az({manifest:t,flexChanges:s,appSchemas:I,templateType:v,logger:i,serviceAVT:m,fragments:r,views:a,fioriElementsVersion:p,oDataVersion:g});return qw(I,j)}o(rC,"importProjectSchemaAndConfig");var sz=["header","sections","footer"];function cz(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(cz,"addFlexChangeForSection");function lz(e,t,n,i,r){n==null||n.forEach(a=>{if(!a.Determining&&a.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=ym(a,r.serviceAVT);if(!l)return;let p=a.Label||s,g=`ObjectPageHeaderAction<${dt(l)}>`;t.definitions[g]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=a.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);t.definitions[g][oe.SchemaTag.annotationPath]=`/${m}`,t.definitions[g][oe.SchemaTag.actionType]=oe.ActionType.Annotation,t.definitions[g].description=p,t.definitions[g][oe.SchemaTag.keys]=[{name:oe.SchemaKeyName.action,value:s}],u&&(t.definitions[g][oe.SchemaTag.target]=u),i.properties[l]={$ref:`${$}${g}`}}})}o(lz,"addHeaderActionCallBackV2");function fz(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===Ao.UIAnnotationTypes.DataFieldForAction){let a=da(r).split("::").splice(1).join("::"),s=Ai(r,e),l=dt(`${oe.DefinitionName.ObjectPageFooterAction}<${a}>`),u=r.fullyQualifiedName.replace(`@${Ao.UIAnnotationTerms.Identification}`,`/@${Ao.UIAnnotationTerms.Identification}`);try{t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[oe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`}}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"addFooterActionCallBackV2",definition:"ObjectPageFooterAction"}))}n.properties[a]={$ref:`${$}${l}`}}})}o(fz,"addFooterActionCallBackV2");function uz(e,t,n,i,r,a,s,l){let u,p;if(a.ID&&a.Label?u=a.ID+a.Label.replace(/\s+/g,""):a.ID?u=a.ID:a.Label&&(u=a.Label.replace(/\s+/g,"")),u?p=`${oe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${oe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let g=`${oe.DefinitionName.CustomColumn}<${n}>`;try{e.definitions[g]=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn))}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"ensureCustomColumnDefinitionExists",definition:"TableCustomColumn"}))}let m=[],v=r==null?void 0:r.entityTypes.find(b=>b.name===i),A=Ec(t[oe.ManifestSection.generic].pages,n,m);return vl(e,v,A,t,l,p,g,a.ID),p}o(uz,"ensureCustomColumnDefinitionExists");function Ad(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&cz(e,t,"visible",n)}o(Ad,"addAppSchemaDefinition");function pz(e,t,n){e.properties[t]={$ref:`${$}${n}`}}o(pz,"addSectionReference");function Ed(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}>`,Xa(n.entityType,i,`QuickVariant<${t}>`)}o(Ed,"addTableDefinition");function dz(e,t,n,i,r,a){if(i.base!==oe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${a}<${t}>`;n.definitions[l]=Ro(n,i,t);let u=n.definitions[l];Ad(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),Wa(i,u,t),Ed("ObjectPageResponsiveTableWithMultiSelect",t,i,n),Ed("ObjectPageResponsiveTableWithInlineDelete",t,i,n),Ed("ObjectPageGridTable",t,i,n),Ed("ObjectPageTreeTable",t,i,n),Ed("ObjectPageAnalyticalTable",t,i,n);let p,g=$0(i.entityType,e.serviceAVT);g&&(p=uz(n,e.manifest,g.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r){let v=r[m];v.base===oe.FacetBase.LineItem&&(v.ID===s||m.includes(s))&&yl(!0,n,v.target,v.entityType,v.ID||m,p)}}o(dz,"handleLineItem");function gz(e,t,n,i,r,a=!1){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t],l=a?"ObjectPageHeaderSection":"ObjectPageSubSectionV2";Ad(e,s,r,l),s.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},s.properties.subsections[oe.SchemaTag.isViewNode]=!0}o(gz,"handleSubSection");function mz(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];Ad(e,a,r,"ObjectPageSectionChartV2")}o(mz,"handleSectionChart");function zw(e,t,n,i,r,a){e.definitions[t]=Ro(e,n,i);let s=e.definitions[t];Ad(e,s,r,a||"CommonHeaderFacetSettings"),s[oe.SchemaTag.annotationPath]=n.annotationPath,s[oe.SchemaTag.isViewNode]=!0,s[oe.SchemaTag.dataType]=oc(n==null?void 0:n.target)}o(zw,"handleHeaderFacet");function hz(e,t,n){let i=e.definitions[t],r=i[oe.SchemaTag.dataType]=oc(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(hz,"addDataPointHeaderFacetDataType");function yz(e,t,n,i,r){e.definitions[t]=Ro(e,n,i);let a=e.definitions[t];return Ad(e,a,r,"ObjectPageSectionFormV2"),a[oe.SchemaTag.annotationPath]=n.annotationPath,a[oe.SchemaTag.isViewNode]=!0,a}o(yz,"handleFormSection");function vz(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(vz,"getSectionType");function Tz(e,t,n){let i=e.ID||t;return n==="ObjectPageSectionV2"&&(i=i.replace(`@${Ao.UIAnnotationTerms.Facets}`,e.base)),`${i}`}o(Tz,"getReferenceKey");function Jw(e,t,n,i,r,a=!1,s=!1){let l=t[n],u=vz(l.base,a,s),p=Tz(l,n,u),g=`${u}<${p}>`;switch(pz(i,p,g),u){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":case"ObjectPageHeaderSection":{a=!s,gz(r,g,l,n,u,s);let m=r.definitions[g].properties.subsections;for(let v in l.facets)Jw(e,l.facets,v,m,r,a,s);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{dz(e,p,r,l,t,u),bl(r,l.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{mz(r,g,l,p,u);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let m=yz(r,g,l,p,u);hm(oe.SectionType.Section,l,m,r,oe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{uu(l,p,i,r,oe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{uu(l,p,i,r,oe.SectionType.Section,oe.SectionType.SubSection,"V2");break}case"ObjectPageHeaderSectionForm":case"ObjectPageHeaderSectionChart":case"ObjectPageHeaderSectionAddress":{zw(r,g,l,p,u);break}case"ObjectPageHeaderSectionDataPoint":{zw(r,g,l,p,u),hz(r,g,l);break}default:i.properties[n]=Ro(r,l,p)}}o(Jw,"addSection");function Yw(e,t,n,i,r,a=!1){if(e)for(let s in t)Jw(i,t,s,n,r,!1,a)}o(Yw,"addSectionsFromFacets");function Zw(e,t,n){var g,m,v,A,b,I;let i=t.definitions[oe.DefinitionName.Sections];i[oe.SchemaTag.isViewNode]=!0,(g=e.entitySet)!=null&&g.entityType&&(i[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.Facets}`);let r=t.definitions[oe.DefinitionName.HeaderSections];if(r[oe.SchemaTag.isViewNode]=!0,r.properties||(r.properties={}),r.additionalProperties=!1,(m=e.entitySet)!=null&&m.entityType&&(r[oe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${Ao.UIAnnotationTerms.HeaderFacets}`),!n)return;let a=Xg((v=e.entitySet)==null?void 0:v.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),s=Kg((A=e.entitySet)==null?void 0:A.entityType,e.serviceAVT,oe.FioriElementsVersion.v2,e.logger),l=a&&!!Object.keys(a).length,u=s&&!!Object.keys(s).length;if(!l&&!u)return;for(let F in n){let j=n[F];(I=(b=e.entitySet)==null?void 0:b.name)!=null&&I.includes(j.entitySet)?(Yw(l,a,i,e,t),Yw(u,s,r,e,t,!0)):Zw(e,t,j.pages)}let p=t.definitions.CustomSections;for(let F in p.properties)i.properties[F]=p.properties[F]}o(Zw,"addSections");function bz(e,t,n){bm(e,n),Tm(e,n,t,lz,void 0,!0)}o(bz,"addHeader");function Ez(e,t,n,i){let r=o0(t,n,i,void 0,!0);r&&W0(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}o(Ez,"addRelatedFacetKeysType");function yd(e,t){var s;rn();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?(bz(n,e,r),n.definitions[oe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Zw(e,n,a),Ez(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]),vm(n,e,oe.FioriElementsVersion.v2,fz,a),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.CommonHeaderFacetSettings,delete n.definitions.ObjectPageHeaderSection,delete n.definitions.ObjectPageCustomHeaderSectionFragment,delete n.definitions.ObjectPageSectionFormV2,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.ObjectPageSubSectionV2,delete n.definitions.ObjectPageResponsiveTableWithMultiSelect,delete n.definitions.ObjectPageResponsiveTableWithInlineDelete,delete n.definitions.ObjectPageAnalyticalTable,delete n.definitions.ObjectPageTreeTable,delete n.definitions.ObjectPageGridTable,delete n.definitions.ObjectPageToolBar,delete n.definitions.ObjectPageToolBarActions,delete n.definitions.ObjectPageForm,delete n.definitions.ObjectPageFormFields,delete n.definitions.ObjectPageFormActions,delete n.definitions.FieldPathOP,Do(n,sz),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(yd,"generateObjectPageSchemaV2");var ei=ie(le());var Lf=require("@sap-ux/vocabularies-types/vocabularies/UI");var Sz=["filterBar","table","footer"],Pz=ei.UIVOCABULARYALPHADOT.substring(1);function oC(e,t,n,i){Xa(e,n,"QuickVariant"),B0(n,"QuickVariantX",t),H0(i,n,"QuickVariantX")}o(oC,"addEnumForVariantPaths");function xz(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Lf.UIAnnotationTerms.SelectionPresentationVariant,Lf.UIAnnotationTerms.SelectionVariant,Lf.UIAnnotationTerms.PresentationVariant];fu(e,r,i)}o(xz,"addEnumForFilterBarAnnotationPath");function Cz(e,t,n){let i,r=t==null?void 0:t.annotationPath;if(r){let a=r.includes(Lf.UIAnnotationTerms.SelectionPresentationVariant),s=!a&&r.includes(Lf.UIAnnotationTerms.PresentationVariant);if(a||s){let l=r.replace(Pz,""),u=e[l];u?s?i=u:(i=u.PresentationVariant,i&&i.fullyQualifiedName.includes("SelectionPresentationVariant")&&(i=e.PresentationVariant)):(se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOANNOTATIONFORPATH",{annotationPath:r})}),a&&(i=e.PresentationVariant))}else i=e.PresentationVariant}else i=e.PresentationVariant;return i}o(Cz,"getPresentationVariantForLineItem");function Oz(e,t,n){if(pm(t,"annotationPath",n))return;let i=Cz(e,t,n),r=(i==null?void 0:i.Visualizations)||[],a="";r.some(function(l){return a=lu("LineItem",l),a}),a=a||"LineItem";let s=e[a];return s||se(n,{severity:ei.LogSeverity.Warning,message:q.t("NOLINEITEMFORPATH",{annotationPath:a})}),s}o(Oz,"getLineItemAnnotation");function vd(e,t){var l;let n=JSON.parse(JSON.stringify(t)),i={$ref:$+ei.DefinitionName.LineItems},r=$+ei.DefinitionName.ToolBarLR;Vb.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}=um(e);if(s){let u=[],p=wl(e.manifest[ei.ManifestSection.generic].pages,u);Tl(n);let g=Oz(s,(l=p==null?void 0:p.component)==null?void 0:l.settings,e.logger);if(g){let v=mr(a.fullyQualifiedName,g.term,g.qualifier);Vb.forEach(A=>{n.definitions[A][ei.SchemaTag.annotationPath]=v})}yl(!1,n,g,a);let m=s.SelectionFields;if(lm(n,m,a),bl(n,a),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],V0(n.definitions.MultiEdit.properties.ignoredFields.items.enum,a),!p)return se(e.logger,{severity:ei.LogSeverity.Error,message:q.t("NOLR"),location:{path:ei.MANIFESTPATH,range:[ei.ManifestSection.generic]}}),n;vl(n,a,p,e.manifest,e.fragments),oC(a,e.entitySet,n,e.serviceAVT),xz(a,n,ei.DefinitionName.ListReportFilterBar),G0(a,n,ei.DefinitionName.MultiEditV2),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Do(n,Sz),n}o(vd,"generateListReportSchemaV2");var en=ie(le());var Iz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function Nz(e,t,n){var b;let i=(b=e==null?void 0:e.component)==null?void 0:b.settings;if(pm(i,"qualifier",n))return{lineItemAnnotation:void 0,chartAnnotation:void 0};let r=i==null?void 0:i.qualifier,a=o(function(I){let F=I+(r?"#"+r:"");return t[F]},"getAnnotationWithQualifier"),s=a("SelectionPresentationVariant"),l=s?s.PresentationVariant:a("PresentationVariant");if(s&&!l){let I=r?q.t("NOPRESENTATIONVARIANTFORSPV",{qualifier:r}):q.t("NOPRESENTATIONVARIANTFORDEFAULTSPV");return se(n,{severity:en.LogSeverity.Error,message:I}),{lineItemAnnotation:void 0,chartAnnotation:void 0}}let u=(l==null?void 0:l.Visualizations)||[],p="",g="";u.some(function(I){return p=p||lu("LineItem",I),g=g||lu("Chart",I),p&&g}),p=p||"LineItem",g=g||"Chart";let m=t[p],v=t[g],A=(m||i.quickVariantSelectionX?0:1)+(v?0:2);if(A>0){let I=["NOLINEITEMS","NOCHARTS","NOLINEITEMANDCHARTS"][A-1],F=q.t(I);se(n,{severity:en.LogSeverity.Warning,message:F})}return{lineItemAnnotation:m,chartAnnotation:v}}o(Nz,"getLineItemAndChartAnnotation");function Lz(e,t){let n=e.definitions[en.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[en.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}o(Lz,"addChart");function Td(e,t){let n=JSON.parse(JSON.stringify(t));n.properties[en.PropertyName.table].anyOf[0].$ref=$+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[en.PropertyName.table].anyOf[1].$ref=`${$}ALPGridTable<LineItems>`;try{let l=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));l.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,l.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=l}catch{throw new Error(q.t("INCONSISTENTSCHEMA",{function:"generateAnalyticalListReportSchemaV2",definition:"ALPGridTable"}))}n.properties[en.PropertyName.table].anyOf[2].$ref=`${$}ALPAnalyticalTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));r.properties.columns.$ref=`${$}${en.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${$}${en.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=r,_0(n.definitions.TableColumnExtensionTypeV2.enum,[en.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let{entityType:a,uIAnnotations:s}=um(e);if(s){Tl(n);let l=[],u=jl(e.manifest[en.ManifestSection.generic].pages,l,e.logger),{lineItemAnnotation:p,chartAnnotation:g}=Nz(u,s,e.logger);p&&I0.forEach(v=>{n.definitions[v][en.SchemaTag.annotationPath]=mr(a.fullyQualifiedName,p.term,p.qualifier)}),yl(!1,n,p,a),g&&Lz(n,g);let m=s.SelectionFields;if(lm(n,m,a),bl(n,a),!u)return se(e.logger,{severity:en.LogSeverity.Error,message:q.t("NOLR"),location:{path:en.MANIFESTPATH,range:[en.ManifestSection.generic]}}),n;vl(n,a,u,e.manifest,e.fragments),oC(a,e.entitySet,n,e.serviceAVT),delete n.definitions.ALPGridTable,delete n.definitions.ALPResponsiveTable,delete n.definitions.ALPAnalyticalTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.GenericFooter,delete n.definitions.Actions,delete n.definitions.FieldPath}return Do(n,Iz),n}o(Td,"generateAnalyticalListReportSchemaV2");function Rz(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(Rz,"getCardDefinitionNames");function Fz(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"},ga(a,s.CardModel);let l=Rz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=$+"CardModel"}}o(Fz,"addModelsEnum");function eM(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},Fz(n,t),n}o(eM,"generateOverviewPageSchemaV2");var Vs=ie(le());function aC(e,t,n,i,r,a){rn();let s=No(e,t),l={templateType:a,fioriElementsVersion:Vs.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=hd(r,l.serviceAVT),l.entitySet||se(l.logger,{severity:Vs.LogSeverity.Error,message:q.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}o(aC,"prepareGenerationV2");function sC(e,t,n,i,r,a){let s=aC(n,a,i,r,t,Vs.TemplateType.ListReportObjectPageV2);return yd(s,e)}o(sC,"generateObjectPageInterfaceV2");function cC(e,t,n,i,r,a){let s=aC(n,a,i,r,t,Vs.TemplateType.ListReportObjectPageV2);return vd(s,e)}o(cC,"generateListReportInterfaceV2");function lC(e,t,n,i,r,a){let s=aC(n,a,i,r,t,Vs.TemplateType.AnalyticalListPageV2);return Td(s,e)}o(lC,"generateAnalyticalListPageInterfaceV2");function bd(e,t){return eM(e,t)}o(bd,"generateOVPInterfaceV2");var we=ie(le());var Sd=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 tM(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(tM,"getClassesForSingleSection");function nM(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],tM(n,i,t),nM(n,t)}}o(nM,"getSubsectionClasses");function Dz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],tM(i,r,n),nM(i,n)}o(Dz,"getExportClassesForSections");function _z(e,t){let n=wl(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(_z,"findV2Page");function fC(e,t){let n=em(e);return`${t.appId}::${n.id}::${t.page.entitySet}--`}o(fC,"calculateBaseId");function iM(e,t,n=!1){let i=Sd(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=_z(a,e),l=new _i,u=l.createPageInstance(we.PageTypeV2.ListReport,r),p={v2Page:s,exportResults:i,appId:e.appId,baseId:fC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.ListReport,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(p,u,[],[],e.jsonSchema)}return i}o(iM,"exportListReportPage");function rM(e,t,n=!1){let i=e.page.config,r=Sd(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let a=[],s=jl(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:fC(u,e),appSchema:e.jsonSchema,ui5Version:t,factory:l,pageKeys:a,pageType:we.PageTypeV2.AnalyticalListPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(p,u,[],[],e.jsonSchema)}return r}o(rM,"exportAnalyticalListPage");function oM(e,t,n=!1){let i=e.page.config,r=e.page.entitySet,a=Sd(e.fragments);if(a.manifest=JSON.parse(JSON.stringify(e.manifest)),i){let s=[],l=Ec(e.manifest[we.ManifestSection.generic].pages,r,s);if(!l)return se(e.logger,{severity:we.LogSeverity.Error,message:q.t("NOOBJECTPAGE",{entitySetName:r}),location:{path:we.MANIFESTPATH,range:[we.ManifestSection.generic]}}),a;let u=new _i,p=u.createPageInstance(we.PageTypeV2.ObjectPage,i);if(i.sections&&Dz(i,p,u),Object.keys(i).length!==0){let g={v2Page:l,exportResults:a,appId:e.appId,baseId:fC(p,e),appSchema:e.jsonSchema,ui5Version:t,factory:u,pageKeys:s,pageType:we.PageTypeV2.ObjectPage,logger:e.logger,entityPathArray:e.entityPath,deletionRequest:n};ms(g,p,[],[],e.jsonSchema)}}return a}o(oM,"exportObjectPage");var aM=o(e=>{let t=Sd();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&&tp(i,t,e.jsonSchema,e.jsonSchema,n,[],e.entityPath),t},"exportOverviewPage"),Vz=o((e,t,n)=>{var s;let i=Sd();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new xm,e);r.settings=Object.assign(new Ja,e.settings);for(let l in n.definitions.AppSettings.properties){let u=zn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),g=$n(i.manifest,p);e.settings&&e.settings[l]!==void 0?g[l]=e.settings[l]:(delete g[l],Ka(i.manifest,p,!1))}}let a=(s=i.manifest[we.ManifestSection.generic])==null?void 0:s.pages;return a&&e.pages&&Bb(e.home,e.pages,Object.values(a)[0]),i},"exportApplicationV2");function sM(e,t){if(e[we.SchemaType.ListReport])return iM(e[we.SchemaType.ListReport],t);if(e[we.SchemaType.ObjectPage])return oM(e[we.SchemaType.ObjectPage],t);if(e[we.SchemaType.OverviewPage])return aM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[we.SchemaType.Application];return Vz(n,i,r)}else if(e[we.SchemaType.AnalyticalListPage])return rM(e[we.SchemaType.AnalyticalListPage],t)}o(sM,"exportPageV2");function uC(e,t,n=!1){if(e[we.SchemaType.ListReport])return iM(e[we.SchemaType.ListReport],t,n);if(e[we.SchemaType.ObjectPage])return oM(e[we.SchemaType.ObjectPage],t,n);if(e[we.SchemaType.OverviewPage])return aM(e[we.SchemaType.OverviewPage]);if(e[we.SchemaType.AnalyticalListPage])return rM(e[we.SchemaType.AnalyticalListPage],t,n)}o(uC,"exportConfigEntityByPathV2");var Rf=ie(le()),lM=require("@sap-ux/vocabularies-types/vocabularies/UI");function cM(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(cM,"updateDependencyLib");function yv(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(yv,"extractLastIdPart");function fM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return se(i,{severity:Rf.LogSeverity.Error,message:q.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let a=r.lastIndexOf(Rf.PropertyName.sections),s=a>-1?yv(r[a+1]):void 0,l=s?s.replace(/::/g,"/"):`@${lM.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:Rf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return pC(g),!0}o(fM,"createNewCustomColumn");var Da=ie(le());var pM=o((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),uM=o((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function wz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}o(wz,"initializeRouting");function Mz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}o(Mz,"setTargetOptions");function kz(e,t,n){let i="";return e.forEach((r,a)=>{let s="";t&&t.pageType!==Da.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${a?a+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}o(kz,"calculateQueryPattern");function dM(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){dM(e,t,n,s);return}}}o(dM,"fillNavigationParts");function jz(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(jz,"fillParentKeys");function Uz(e,t,n,i,r){for(let a in e.navigation){let s=e.navigation[a],l=t[s.route];if(Mz(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=[];dM(p,a,t,r,l==null?void 0:l.contextPath);let g=jz(e.routePattern);u=kz(p,l,g)}i.routes.push(pM(u,s.route,s.route))}}}o(Uz,"handlePageNavigation");function $z(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($z,"removeDeletedPages");function Bz(e,t){var n,i,r,a;e.contextPath?(t.options||(t.options=uM({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=uM({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(Bz,"transferEntitySetandContextPath");function Hz(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(Hz,"updateRouteLayout");function Gz(e,t,n,i){var r;return e.pageType&&![Da.PageTypeV4.CustomPage,Da.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(e.pageType!==Da.PageTypeV4.CustomPage||!t||e.view.template)&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Da.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{...t==null?void 0:t.options,settings:{...(r=t==null?void 0:t.options)==null?void 0:r.settings,viewName:e.view.name}}}),t}o(Gz,"fillTarget");function gM(e,t,n){var r,a;let i=wz(n[Da.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.target&&s.target.indexOf(e)>-1)&&i.routes.push(pM(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Gz(u,l,s,t),Bz(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={}),Uz(u,t,l,i,s),Hz(i,s,u),i.targets[s]=l}return $z(i,t),i}o(gM,"transformRoutingV4");var Oi=ie(le());var mM=[Oi.FlexibleColumnLayoutAggregations.BeginColumnPages,Oi.FlexibleColumnLayoutAggregations.MidColumnPages,Oi.FlexibleColumnLayoutAggregations.EndColumnPages],hM=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:mM[r]?s.controlAggregation=mM[r]:s.controlAggregation=Oi.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)hM(e,t,l.navigation[g].route,a.target,r)}},"applyFCLRouting"),Wz=o((e,t)=>{e.routing.config.routerClass=Oi.v4.FIORI_FCL_ROUTER_CLASS,hM(e,t,t.home);let n={viewName:Oi.FIORI_FCL_ROOT_VIEW_NAME,type:Oi.ViewTypes.XML,async:!0,id:Oi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,cM(e,Oi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),Kz=o(e=>{var t;e.rootView&&e.rootView.viewName===Oi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,(t=e.routing)!=null&&t.config&&e.routing.config.routerClass===Oi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass},"disableFcl"),yM=o((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Wz(e,t):Kz(e)},"updateFcl");var ne=ie(le()),Pd=require("@sap-ux/vocabularies-types/vocabularies/UI");var vM=ie(zs()),vv=ie(le());function Xz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}o(Xz,"isExportValueEquals");function Qz(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)===vv.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(Qz,"deleteProperty");function TM(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),wc({fullSchema:a,schema:t,element:g,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},TM)}else Xz((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]&&(Qz(e,i),l=!0);return l}o(TM,"exportProperty");function Tv(e,t,n,i,r,a){let s=of(e.file,!1,a);if(s){let l=Dy(s);if(wc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},TM)){let p=(0,vM.js2xml)(s,{spaces:4}),g={dataSourceUri:e.file.dataSourceUri,fileContent:p,changeIndicator:vv.ChangeIndicator.Updated};r==="view"?t.views=[g]:r==="fragment"&&t.fragments.push(g)}}}o(Tv,"getExtensionExportResult");var bM=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=Bo(n||[],a.name,i,s)),u&&Tv(u,l,a.config,r,"view",s),l},"exportFPMCustomPageConfig"),EM=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=Oc(u,s[0]);p=Ic(a,m,u,g,t)}if(p){let m=af(t),A={...i.definitions[m],definitions:i.definitions};Tv(p,r,n,A,g,l)}},"exportXMLFragmentConfig");var AM=["key","index","label","visible","showCounts","entitySet","keepPreviousPersonalization"],qz=[...AM,"views","initialLoad","template"],bv=o(e=>{let t=ne.defaultExportResult;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function zz(e,t,n){var s,l,u,p;let i=`@${Pd.UIAnnotationTerms.LineItem}`,r=`@${Pd.UIAnnotationTerms.LineItem}`,a=(s=t.appSchema.definitions[ne.DefinitionName.TableSPV])==null?void 0:s[ne.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let g=(u=t.appSchema.definitions[ne.DefinitionName.ALPTable])==null?void 0:u[ne.SchemaTag.annotationPath];i=r=g&&g.substr(g.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ne.PropertyName.table&&a){let g=a.split("/");i=r=g[g.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}o(zz,"determineTargetAnnotationOfTable");function Yz(e,t,n){var a,s;let i,r;if(e.length>1){let l=(a=t.appSchema.definitions[ne.DefinitionName.ALPChart])==null?void 0:a[ne.SchemaTag.annotationPath];i=r=l&&l.substr(l.lastIndexOf("@"))}else i=r=`@${(s=n.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:i,targetAnnotation:r}}o(Yz,"determineTargetAnnotationOfChart");function Jz(e,t,n,i,r){var a;if(e.length===3)t=n=i[ne.SchemaTag.annotationPath]&&i[ne.SchemaTag.annotationPath].substr(i[ne.SchemaTag.annotationPath].lastIndexOf("@"));else if(e.length>3){let s=(a=i.$ref)==null?void 0:a.split($)[1],l=s&&r.appSchema.definitions[s],u=(l==null?void 0:l[ne.SchemaTag.annotationPath])&&l[ne.SchemaTag.annotationPath].substr(l[ne.SchemaTag.annotationPath].lastIndexOf("@"));t=n=l.entitySet?`/${l.entitySet}/${u}`:u}return{targetAnnotation:t,targetAnnotationEncoded:n}}o(Jz,"determineTargetAnnotationBasedOnParentView");function Zz(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}=Jz(t,n,i,r,e));else{let s=e.config[t[0]][t[1]][t[2]].annotationPath,l=e.appSchema.definitions.Table;if(l[ne.SchemaTag.annotationPath]&&l[ne.SchemaTag.annotationPath].endsWith(s)&&l.$ref==="#/definitions/TableSPV"){l=e.appSchema.definitions.TableSPV;let u=l[ne.SchemaTag.annotationPath].split("/");return n=i=u[u.length-1],{targetAnnotation:n,targetAnnotationEncoded:i}}}return delete e.appSchema.definitions.Table[ne.SchemaTag.annotationPath],{targetAnnotation:n,targetAnnotationEncoded:i}}o(Zz,"determineTargetAnnotationOfView");function eY(e,t,n){let i,r;return e[2].split(`@${ne.UIVOCABULARY}`)[1]?n&&n.indexOf(ne.FACETTITLEPREFIX)>-1?i=r=n.split(ne.FACETTITLEPREFIX)[1]:e[2]?i=r=e[2].split("@")[1]:r&&(i=r=r.replace(/::/g,"/")):(t=!0,r=e[2],i=r&&r.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(eY,"determineTargetAnnotationOfHeaderSections");function tY(e,t){let n=e[1].split(`@${ne.UIVOCABULARY}`)[1],i,r;if(e[0]==="sections"&&!n)t=!0,r=e[1],i=r&&r.replace(/::/g,"/");else{let a=yv(e[1]);r=a&&a.replace(/\//g,"::"),i=r&&r.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:r,targetAnnotation:i}}o(tY,"determineTargetAnnotationOfSections");function nY(e,t,n){let i,r,a=!1;return e[0]===ne.PropertyName.table&&e[1]!==ne.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=zz(e,t,n):e[0]===ne.PropertyName.chart&&t.templateType===ne.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Yz(e,t,n):e[0]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=tY(e,a):e[1]===ne.PropertyName.sections?{custom:a,targetAnnotationEncoded:r,targetAnnotation:i}=eY(e,a,t.title):e[1]===ne.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Zz(t,e)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:a}}o(nY,"determineTargetAnnotation");function iY(e){var n;let t=0;for(let i=e.length-1;i>-1;i--){let r=e[i];if([ne.PropertyName.actions,ne.PropertyName.columns,ne.PropertyName.views,ne.PropertyName.visualFilters,ne.PropertyName.selectionFields].includes(ne.PropertyName[r])){t=i+1;break}}return t>0?(n=e[t])==null?void 0:n.replace(/\//gi,"??"):void 0}o(iY,"determineKeyForSyncRule");function rY(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(rY,"createNewObjectInManifest");function SM(e,t,n){var r,a;let i=!1;return t.type!=="array"&&((r=n==null?void 0:n.targetDefinition)==null?void 0:r.type)==="object"&&((a=n==null?void 0:n.targetDefinition)!=null&&a.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&(rY(e),i=!0):e.syncRule.manifest.export!==!1&&(e.syncRule.manifest.export&&typeof e.syncRule.manifest.export=="function"?e.syncRule.manifest.export(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length||!Array.isArray(e.configObject[e.configPropertyKey])&&e.configObject[e.configPropertyKey]===void 0?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey],i=!0),i}o(SM,"transferPropertyToManifest");function oY(e,t,n,i,r,a,s){var p,g,m;let l=!1,u=(p=n.appSchema.definitions.MultiTableModeV4)==null?void 0:p.properties[e[2]];if(e[0]!=="table"||e[1]!=="views"&&!((g=n.config.table)!=null&&g.views)||e[1]==="views"&&((m=n.config.table)!=null&&m.views||!n.config.defaultTemplateAnnotationPath&&e.length===4&&AM.indexOf(t.configPropertyKey)>-1||n.config.defaultTemplateAnnotationPath&&(u!=null&&u.annotationPath)&&!u.annotationPath.endsWith(n.config.defaultTemplateAnnotationPath)||e[1]==="views"&&e.length===4&&qz.indexOf(t.configPropertyKey)>-1))if(t.syncRule.manifest.delete){let v=t.syncRule.manifest.delete;typeof v=="function"&&(v(i,t.configObject,t.configPropertyKey,t.manifestKey,t.syncRuleKey,n.config),l=!0)}else i[t.manifestKey]!==void 0&&(delete i[t.manifestKey],l=!0);return Ka(n.exportResults.manifest,r,n.deletionRequest,n.entityPathArray,a,s),l}o(oY,"deleteFromManifest");function aY(e,t,n,i){let r=!1,a=[...e],s=e.indexOf("subsections");for(;s>-1;)e.splice(s-1,2),s=e.indexOf("subsections");let{targetAnnotationEncoded:l,targetAnnotation:u,custom:p}=nY(e,n.transferParameters,n.configObject),g=iY(e),m=t.manifest.path(n.transferParameters.pageNameArray,n.transferParameters.exportResults.manifest,l,g,u,n.configObject,a),v=Lo(n.transferParameters.exportResults.manifest,m,u,p?void 0:l);if(v){let A={syncRule:t,manifestSection:v,configObject:n.configObject,configPropertyKey:n.key,manifestKey:t.manifest.key||n.key,syncRuleKey:g};n.configObject[n.key]===void 0||n.transferParameters.deletionRequest&&dl([...n.breadcrumbs,n.key],n.transferParameters.entityPathArray)?r=oY(e,A,n.transferParameters,v,m,u,l):r=SM(A,n.propertyDefinition,i)}return r}o(aY,"exportManifestChange");function sY(e,t,n){let i=zn(e.configObject,e.key);if(i)if(i.xml){let r=i.xml(e.configObject);EM(e.transferParameters,r,n.configObject)}else i.manifest&&aY(t,i,e,n)&&(e.transferParameters.exportResults.manifestChangeIndicator=ne.ChangeIndicator.Updated)}o(sY,"evaluateExportRule");function cY(e,t,n,i,r){let a=[];e.propertyDefinition.$ref&&t||e.propertyDefinition.anyOf&&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,gC(e.transferParameters,s,[...i],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}o(cY,"transferSubObject");function lY(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=ft(e.pageNameArray)+"/views",a=Lo(e.exportResults.manifest,r);return!a.paths||Object.keys(a.paths).length===0?(a.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):a.paths[0].secondary||(a.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}o(lY,"createALPTableView");function fY(e){var a,s;let t=!1,n=e.key;if(!e.configObject[n]||Object.keys(e.configObject[n]).length===0)return{newElementCreated:t,stopProcessing:!0};let i=ft(e.transferParameters.pageNameArray)+"/views",r=Lo(e.transferParameters.exportResults.manifest,i);return!r.paths||Object.keys(r.paths).length===0?(r.paths=[{primary:[{annotationPath:e.configObject[n].annotationPath}]}],t=!0):r.paths[0].primary||(r.paths[0].primary=[{annotationPath:e.configObject[n].annotationPath}],t=!0),r.paths[0].secondary||(r.paths[0].secondary=[{annotationPath:((s=(a=e.configObject)==null?void 0:a.table)==null?void 0:s.annotationPath)||Pd.UIAnnotationTerms.LineItem}]),{newElementCreated:t,stopProcessing:!1}}o(fY,"createALPChartView");function uY(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=ft(e.pageNameArray),r=Lo(e.exportResults.manifest,i),a=`@${Pd.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(uY,"createVisualFilters");function pY(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,a=ft(t.pageNameArray)+"/views",s=Lo(t.exportResults.manifest,a),l={key:i.key,annotationPath:i.annotationPath};if(!s.paths||Object.keys(s.paths).length===0)s.paths=[l],r=!0;else{let u=s.paths.findIndex(p=>p.key===i.key||p.key===n);if(u===-1)s.paths.push(l),r=!0;else if(u!==i.index){let p=JSON.parse(JSON.stringify(s.paths[u]));s.paths.splice(u,1),s.paths.splice(e,0,p),r=!0}}return r}o(pY,"createLRTableView");function dY(e,t,n){let i=!1,r=!1;if(t&&!n&&!e.transferParameters.deletionRequest)if(t.startsWith(ne.DefinitionName.CustomColumn))i=fM(e.key,e.transferParameters,e.configObject[e.key],e.transferParameters.logger,e.breadcrumbs);else{if(t===ne.DefinitionName.ALPChartView&&e.key===ne.PropertyName.chart&&e.configObject)return fY(e);if(t===ne.DefinitionName.ALPTableView&&e.key===ne.PropertyName.table&&e.configObject)return lY(e.transferParameters,e.configObject,e.key);e.key&&(t.startsWith(ne.DefinitionName.LRTableView)||t.startsWith(ne.DefinitionName.LRChartView))?i=pY(e.index,e.transferParameters,e.key,e.configObject[e.key]):e.key&&t.startsWith(ne.DefinitionName.VisualFilters)&&(i=uY(e.transferParameters,e.configObject[e.key]))}return{newElementCreated:i,stopProcessing:r}}o(dY,"createNewElement");function gY(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0||!!e.anyOf}o(gY,"isDefinitionTraversable");function dC(e,t,n,i=!1){var g;let r=e.configObject[e.key],a=Zg(e.configObject,e.key),s=Fo(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=dY(e,(g=e.propertyDefinition.$ref)==null?void 0:g.split($)[1],i),p=a?[...t,a]:[...t,e.key];if(l||sY(e,p,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||gY(e.propertyDefinition)&&(s!=null&&s.configObject))&&!u){let m=a?[...n,a]:n;cY(e,s,r,p,m)}}o(dC,"transferSortedListEntry");function mY(e,t,n,i,r){let a=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return a;s.sort((l,u)=>l[1]&&l[1].index-u[1].index),s.forEach(l=>{var u;(u=n.properties)!=null&&u[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],dC(e,i,r),a=!0):typeof l[1]=="object"&&t.forEach(p=>{p.$ref&&(e.key=l[0],e.propertyDefinition=p,dC(e,i,r),a=!0)}),e.index++})}return a}o(mY,"transferConfigEntriesWithAnyOfDefinitions");function hY(e,t,n,i){let r=Lb(e.appSchema,t,i);if(r){n||(n=[]);for(let a of r)n.some(s=>s[0]===a)||n.push([a,t])}}o(hY,"mergeEntriesForInsert");function yY(e){var n;let t=e&&Object.entries(e);return(n=t==null?void 0:t[0])!=null&&n[1][ne.SchemaTag.propertyIndex]&&(t=Object.entries(e).sort((i,r)=>i[1][ne.SchemaTag.propertyIndex]-r[1][ne.SchemaTag.propertyIndex])),t}o(yY,"sortProperties");function vY(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=mY(n,p,i,r,a)}return s}o(vY,"checkIfAnyOfDefinition");function gC(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=vY(u,e,l,a,n,i),g=yY(a.properties);u!=null&&u.$ref&&hY(e,u,g,t),s=0,g&&g.forEach(m=>{e.entityPathArray&&e.entityPathArray[r.length]!==m[0]&&!dl(r,e.entityPathArray)||(l.key=m[0],l.propertyDefinition=m[1],l.index=s,dC(l,n,i,p),m[1].$ref&&s++)})}o(gC,"transferManifestEntriesAndFlexChange");function PM(e,t,n){let i=e.sections;i&&i[t]&&(i[t]=n.createInstance(ne.PageTypeV4.ObjectPage,"ObjectPageCustomSectionView",i[t],i[t].className))}o(PM,"getClassesForSingleSection");function xM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],PM(n,i,t),xM(n,t)}}o(xM,"getSubsectionClasses");function TY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],PM(e,r,n),xM(i,n)}o(TY,"getExportClassesForSections");function CM(e,t){let n=em(e);return`${t.appId}::${n.id}::${t.page.name}--`}o(CM,"calculateBaseId");var OM=o((e,t,n=!1)=>{var l;let i=bv(e.manifest),r=new Fa,a=r.createPageInstance(ne.PageTypeV4.ObjectPage,e.page.config);(l=e.page.config)!=null&&l[ne.PropertyName.sections]&&TY(e.page.config,a,r);let s={exportResults:i,appId:e.appId,appRootPath:e.appRootPath,baseId:CM(a,e),appSchema:e.jsonSchema,config:a,ui5Version:t,factory:r,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:ne.TemplateType.ListReportObjectPageV4,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:n};return gC(s,a,[],[],[],e.jsonSchema),i},"exportObjectPage"),bY=o((e,t,n,i,r,a,s=!1)=>{var b,I;let l=bv(e.manifest),u=e.jsonSchema,p=(b=n.table)!=null&&b[ne.PropertyName.annotationPath]?ne.DefinitionName.ALPTableView:ne.DefinitionName.Table,g=n.table=t.createInstance(i,p,n.table),m=ne.DefinitionName.LineItems;u.definitions[ne.DefinitionName.TableSPV]&&(m=u.definitions[ne.DefinitionName.TableSPV].properties.columns.$ref.split($)[1]);let v=u.definitions[`${ne.DefinitionName.Actions}<${m}>`];if((I=g.toolBar)!=null&&I.actions&&v)for(let F in v.properties)g.toolBar.actions[F]=t.createInstance(i,ne.DefinitionName.ToolBarAction,g.toolBar.actions[F]);let A={exportResults:l,appId:e.appId,appRootPath:e.appRootPath,baseId:CM(n,e),appSchema:e.jsonSchema,config:n,ui5Version:r,factory:t,pageNameArray:[e.page.name],pageType:ne.PageTypeV4.ObjectPage,title:void 0,logger:e.logger,templateType:a,fragments:e.fragments,entityPathArray:e.entityPath,deletionRequest:s};return gC(A,n,[],[],[],u),l},"exportListPage"),mC=o((e,t,n,i=!1)=>{let r=new Fa,a=r.createPageInstance(ne.PageTypeV2.ListReport,e.page.config);return bY(e,r,a,ne.PageTypeV4.ListReport,t,n,i)},"exportListReportPage"),IM=o((e,t,n=!1)=>mC(e,t,ne.TemplateType.AnalyticalListPageV4,n),"exportAnalyticalListPage"),EY=o((e,t,n,i,r,a)=>{let s=Lo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=Pb());let u={syncRule:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=a.definitions.AppSettings.properties[n];SM(u,p,{}),!l&&Object.keys(s).length&&n0(r,t,s)},"applyExportRule"),AY=o((e,t,n)=>{var a;let i=bv(t),r=Object.assign(new ky,e);r.settings=Object.assign(new sf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=zn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)EY(l,u,s,e,i.manifest,n);else{let p=Lo(i.manifest,u);((a=e.settings)==null?void 0:a[s])!==void 0?p[s]=e.settings[s]:s in p&&(delete p[s],Ka(i.manifest,u,!1))}}}return i.manifest[ne.ManifestSection.ui5].routing=gM(e.home,e.pages,i.manifest),yM(i.manifest[ne.ManifestSection.ui5],e),i},"exportApplicationV4"),NM=o((e,t)=>{if(e[ne.SchemaType.ListReport])return mC(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4);if(e[ne.SchemaType.ObjectPage])return OM(e[ne.SchemaType.ObjectPage],t);if(e[ne.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ne.SchemaType.Application];return AY(n,i,r)}else{if(e[ne.SchemaType.AnalyticalListPage])return IM(e[ne.SchemaType.AnalyticalListPage],t);if(e[ne.SchemaType.FPMCustomPage])return bM(e[ne.SchemaType.FPMCustomPage],ne.defaultExportResult)}},"exportPageV4"),SY=o(e=>{let{jsonSchema:t,views:n,page:i,manifest:r,logger:a}=e,s=bv(e.manifest),l;return t&&Object.keys(t).length>0&&(l=Bo(n||[],i.name,r,e.logger)),l&&Tv(l,s,i.config,t,"view",a),s},"exportCustomPage"),hC=o((e,t,n=!1)=>{if(e[ne.SchemaType.ListReport])return mC(e[ne.SchemaType.ListReport],t,ne.TemplateType.ListReportObjectPageV4,n);if(e[ne.SchemaType.ObjectPage])return OM(e[ne.SchemaType.ObjectPage],t,n);if(e[ne.SchemaType.AnalyticalListPage])return IM(e[ne.SchemaType.AnalyticalListPage],t,n);if(e[ne.SchemaType.FPMCustomPage])return SY(e[ne.SchemaType.FPMCustomPage])},"exportConfigEntityByPathV4");var Ht=require("@sap-ux/fe-fpm-writer");var PY=new Map([[de.CustomExtensionType.CustomPage,Ht.generateCustomPage],[de.CustomExtensionType.CustomColumn,Ht.generateCustomColumn],[de.CustomExtensionType.CustomSection,Ht.generateCustomSection],[de.CustomExtensionType.ObjectPage,Ht.generateObjectPage],[de.CustomExtensionType.ListReport,Ht.generateListReport],[de.CustomExtensionType.CustomAction,Ht.generateCustomAction],[de.CustomExtensionType.CustomView,Ht.generateCustomView],[de.CustomExtensionType.ControllerExtension,Ht.generateControllerExtension],[de.CustomExtensionType.CustomSubSection,Ht.generateCustomSubSection],[de.CustomExtensionType.CustomFilterField,Ht.generateCustomFilter],[de.CustomExtensionType.CustomHeaderSection,Ht.generateCustomHeaderSection]]),xY={api:Ht.PromptsAPI,types:Ht.PromptsType};function CY(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=cC(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=sC(i,r,a,s,l,u)}else if(n[de.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[de.SchemaType.OverviewPage];t=bd(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=lC(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=My(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=ZS(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=My(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=eP(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=tP(i,r,a,s,u,e.featureToggles,l)}}return t}o(CY,"generateSchema");function OY(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=sM(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=NM(i,n)}return t}o(OY,"exportConfig");function IY(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=uC(i,n)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=hC(i,n)}return t}o(IY,"exportConfigEntityByPath");function NY(e){let t=de.defaultExportResult,n={ui5Version:e.ui5Version,layer:e.layer};if(e[de.FioriElementsVersion.v2]){let i=e[de.FioriElementsVersion.v2];t=uC(i,n,!0)}else if(e[de.FioriElementsVersion.v4]){let i=e[de.FioriElementsVersion.v4];t=hC(i,n,!0)}return t}o(NY,"deleteConfigEntityByPath");function LY(e){let t;if(e[de.FioriElementsVersion.v2]){let n=e[de.FioriElementsVersion.v2];n[de.SchemaType.ListReport]?t=Fh(n[de.SchemaType.ListReport]):n[de.SchemaType.ObjectPage]?t=Vh(n[de.SchemaType.ObjectPage]):n[de.SchemaType.OverviewPage]?t=kh(n[de.SchemaType.OverviewPage]):n[de.SchemaType.AnalyticalListPage]&&(t=Dh(n[de.SchemaType.AnalyticalListPage]))}else if(e[de.FioriElementsVersion.v4]){let n=e[de.FioriElementsVersion.v4];n[de.SchemaType.ListReport]?t=Bc(n[de.SchemaType.ListReport],de.SchemaType.ListReport):n[de.SchemaType.ObjectPage]?t=gv(n[de.SchemaType.ObjectPage]):n[de.SchemaType.AnalyticalListPage]?t=Bc(n[de.SchemaType.AnalyticalListPage],de.SchemaType.AnalyticalListPage):n[de.SchemaType.FPMCustomPage]&&(t=dv(n[de.SchemaType.FPMCustomPage]))}return t}o(LY,"importConfig");async function RY(e){return rC(e)}o(RY,"importProject");async function FY(e){return iC(e)}o(FY,"importProjectSchema");function DY(){return{version:"21",fpmWriter:"29",moduleVersion:z0.version}}o(DY,"getApiVersion");function pC(e){let t=PY.get(e.customExtension);if(t&&typeof t=="function")return(0,Ht.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}o(pC,"generateCustomExtension");var Jr=require("path"),ws=require("fs");var Ff=o(async e=>new Promise((t,n)=>{(0,ws.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),_Y=o(async e=>JSON.parse(await Ff(e)),"readJSON"),yC=o(async e=>new Promise((t,n)=>{(0,ws.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),VY=o(async e=>new Promise(t=>{(0,ws.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),RM=o(async e=>new Promise(t=>{(0,ws.exists)(e,n=>{t(n)})}),"resourceExists"),wY=o(async e=>_Y((0,Jr.join)(e,"manifest.json")),"getManifest"),FM=o(async e=>{let t=[],n=(0,Jr.join)(e,"changes");if(!await RM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await yC(n);for(let a of r)i.some(s=>a.endsWith(s))&&t.push(await Ff((0,Jr.join)(n,a)));return t},"getChanges"),LM=o(async(e,t="fragments")=>{let n=[],i=(0,Jr.join)(e,"ext",t);if(!await RM(i))return n;let r=await yC(i);for(let a of r){let s=(0,Jr.join)(i,a),l=await Ff(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),MY=o(async(e,t)=>{var r,a,s,l,u,p,g,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(a=i==null?void 0:i.mainService)==null?void 0:a.settings)!=null&&s.localUri){let v=(0,Jr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:v,fileContent:await Ff(v)})}if((u=(l=i==null?void 0:i.mainService)==null?void 0:l.settings)!=null&&u.annotations){for(let v of i.mainService.settings.annotations)if((g=(p=i[v])==null?void 0:p.settings)!=null&&g.localUri){let A=(0,Jr.join)(t,i[v].settings.localUri);n.push({dataSourceUri:A,fileContent:await Ff(A)})}}if(n.length===0)for(let v in i){let A=i[v];if((A==null?void 0:A.type)==="ODataAnnotation"&&((m=A==null?void 0:A.settings)!=null&&m.localUri)){let b=(0,Jr.join)(t,A.settings.localUri);n.push({dataSourceUri:b,fileContent:await Ff(b)})}}return n},"getAnnotations"),kY=o(async e=>{let t=(0,Jr.basename)(e),n=(0,Jr.join)(e,"webapp"),i=await wY(n),r=await MY(i,n),a=await FM(n),s=await LM(n),l=await LM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:a,fragments:s,views:l}},"getProject");qs(wi,ie(le()),module.exports);0&&(module.exports={deleteConfigEntityByPath,exportConfig,exportConfigEntityByPath,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,prompts,readDirectory});
295
295
  /*! Bundled license information:
296
296
 
297
297
  sax/lib/sax.js: