@sap/ux-specification 1.108.21 → 1.108.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +59 -0
- package/dist/documentation/v2/v2-AnalyticalListPage.html +2 -2
- package/dist/documentation/v2/v2-ApplicationV2.html +2 -2
- package/dist/documentation/v2/v2-ListReport.html +2 -2
- package/dist/documentation/v2/v2-ObjectPage.html +2 -2
- package/dist/documentation/v2/v2-OverviewPage.html +2 -2
- package/dist/documentation/v4/v4-ApplicationV4.html +2 -2
- package/dist/documentation/v4/v4-BuildingBlocks.html +2 -2
- package/dist/documentation/v4/v4-FreestylePage.html +2 -2
- package/dist/documentation/v4/v4-ListReport.html +2 -2
- package/dist/documentation/v4/v4-ObjectPage.html +2 -2
- package/dist/index-min.js +41 -41
- package/dist/index-min.js.map +3 -3
- package/dist/package.json +6 -6
- package/dist/schemas/v4/BuildingBlocksConfig.json +6 -1
- package/dist/schemas/v4/ListReportConfig.json +2 -0
- package/dist/src/sync/common/generate/utils.d.ts.map +1 -1
- package/dist/src/sync/common/generate/utils.js +10 -7
- package/dist/src/sync/common/generate/utils.js.map +1 -1
- package/dist/src/sync/common/i18n.json +1 -1
- package/dist/src/sync/common/importProject.d.ts.map +1 -1
- package/dist/src/sync/common/importProject.js +26 -11
- package/dist/src/sync/common/importProject.js.map +1 -1
- package/dist/src/sync/common/utils.d.ts.map +1 -1
- package/dist/src/sync/common/utils.js +10 -10
- package/dist/src/sync/common/utils.js.map +1 -1
- package/dist/src/sync/v2/export/export.d.ts.map +1 -1
- package/dist/src/sync/v2/export/export.js +0 -1
- package/dist/src/sync/v2/export/export.js.map +1 -1
- package/dist/src/sync/v2/generate/objectPage.js +1 -1
- package/dist/src/sync/v2/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.d.ts.map +1 -1
- package/dist/src/sync/v2/import/pages/overviewPage.js +23 -13
- package/dist/src/sync/v2/import/pages/overviewPage.js.map +1 -1
- package/dist/src/sync/v4/generate/fpm-custom-page/generator.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/fpm-custom-page/generator.js +8 -1
- package/dist/src/sync/v4/generate/fpm-custom-page/generator.js.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.d.ts.map +1 -1
- package/dist/src/sync/v4/generate/objectPage.js +14 -12
- package/dist/src/sync/v4/generate/objectPage.js.map +1 -1
- package/dist/src/sync/v4/utils/utils.d.ts.map +1 -1
- package/dist/src/sync/v4/utils/utils.js +71 -51
- package/dist/src/sync/v4/utils/utils.js.map +1 -1
- package/package.json +6 -6
package/dist/index-min.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var J4=Object.create;var fl=Object.defineProperty;var jO=Object.getOwnPropertyDescriptor;var Y4=Object.getOwnPropertyNames;var Q4=Object.getPrototypeOf,z4=Object.prototype.hasOwnProperty;var a=(e,t)=>fl(e,"name",{value:t,configurable:!0});var Xe=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ve=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ec=(e,t)=>{for(var n in t)fl(e,n,{get:t[n],enumerable:!0})},ng=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Y4(t))!z4.call(e,r)&&r!==n&&fl(e,r,{get:()=>t[r],enumerable:!(i=jO(t,r))||i.enumerable});return e},tc=(e,t,n)=>(ng(e,t,"default"),n&&ng(n,t,"default")),te=(e,t,n)=>(n=e!=null?J4(Q4(e)):{},ng(t||!e||!e.__esModule?fl(n,"default",{value:e,enumerable:!0}):n,e)),ig=e=>ng(fl({},"__esModule",{value:!0}),e),y=(e,t,n,i)=>{for(var r=i>1?void 0:i?jO(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&fl(t,n,r),r};var uN=Ve((l6,fN)=>{var iT=Object.defineProperty,q4=Object.getOwnPropertyDescriptor,Z4=Object.getOwnPropertyNames,eB=Object.prototype.hasOwnProperty,rT=a((e,t)=>{for(var n in t)iT(e,n,{get:t[n],enumerable:!0})},"d"),tB=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Z4(t))!eB.call(e,r)&&r!==n&&iT(e,r,{get:()=>t[r],enumerable:!(i=q4(t,r))||i.enumerable});return e},"Ne"),nB=a(e=>tB(iT({},"__esModule",{value:!0}),e),"ze"),$O={};rT($O,{ALPViewType:()=>XO,ActionTitlePrefix:()=>aB,ActionType:()=>QO,ArtifactType:()=>YO,BindingPropertyRegexAsString:()=>sB,ControlType:()=>zO,CustomExtensionType:()=>yC,DATESETTINGSPATH:()=>hB,DataSourceType:()=>pC,DefinitionName:()=>iC,DirName:()=>ZO,DraftDiscardEnabledSettings:()=>cC,ExportArtifacts:()=>KO,FIORI_FCL_ROOT_ID:()=>EB,FIORI_FCL_ROOT_VIEW_NAME:()=>TB,FRAGMENTNAMEPART:()=>yB,FacetBase:()=>tC,FacetTitlePrefix:()=>oB,Features:()=>vC,FileName:()=>eC,FioriElementsVersion:()=>UO,FlexChangeLayer:()=>GO,FlexibleColumnLayoutAggregations:()=>uC,FlexibleColumnLayoutType:()=>WO,GENERICAPPSETTINGS:()=>vB,LogSeverity:()=>mC,LogSeverityLabel:()=>SB,MANIFESTPATH:()=>cB,MacrosPropertyType:()=>sC,ManifestSection:()=>dC,OdataVersion:()=>BO,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>rB,PageType:()=>iB,PageTypeV2:()=>oT,PageTypeV4:()=>aT,PropertyName:()=>rC,QUICKVARPATH:()=>gB,QUICKVARPATHX:()=>mB,SAPUI5_FRAGMENT_CLASS:()=>AB,SAPUI5_VIEW_CLASS:()=>bB,SchemaKeyName:()=>aC,SchemaTag:()=>oC,SchemaType:()=>HO,SectionType:()=>JO,StatePreservationMode:()=>fC,TableColumnVerticalAlignment:()=>lC,TemplateType:()=>hC,UIVOCABULARY:()=>uB,UIVOCABULARYALPHADOT:()=>dB,UIVOCABULARYDOT:()=>pB,VOCWITHCOLONS:()=>fB,VOCWITHSLASH:()=>lB,ViewTemplateType:()=>nC,ViewTypes:()=>gC,Visualization:()=>qO,v2:()=>TC,v4:()=>GC});fN.exports=nB($O);var oT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(oT||{}),aT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(aT||{}),iB={...oT,...aT},rB=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"]]),UO=(e=>(e.v2="v2",e.v4="v4",e))(UO||{}),BO=(e=>(e.v2="v2",e.v4="v4",e))(BO||{}),WO=(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))(WO||{}),GO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(GO||{}),HO=(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))(HO||{}),KO=(e=>(e.flex="flex",e.manifest="manifest",e))(KO||{}),XO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(XO||{}),JO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(JO||{}),YO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(YO||{}),QO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(QO||{}),zO=(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.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))(zO||{}),qO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(qO||{}),ZO=(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))(ZO||{}),eC=(e=>(e.App="app.json",e))(eC||{}),oB="Facet ID: ",aB="Action ID: ",tC=(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.Unknown="",e))(tC||{}),sB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",nC=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(nC||{}),iC=(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))(iC||{}),rC=(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))(rC||{}),oC=(e=>(e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.actionType="actionType",e.dataType="dataType",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.target="target",e.propertyIndex="propertyIndex",e))(oC||{}),aC=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(aC||{}),cB="webapp/manifest.json",lB="/@com.sap.vocabularies",fB="::@com.sap.vocabularies",uB="com.sap.vocabularies.UI.v1",pB="com.sap.vocabularies.UI.v1.",dB="@com.sap.vocabularies.UI.v1.",gB="/quickVariantSelection",mB="/quickVariantSelectionX",hB="/filterSettings/dateSettings",yB=".fragment.",sC=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(sC||{}),cC=(e=>(e.restricted="restricted",e))(cC||{}),lC=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(lC||{}),fC=(e=>(e.persistence="persistence",e.discovery="discovery",e))(fC||{}),uC=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(uC||{}),pC=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(pC||{}),dC=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(dC||{}),vB="sap.ui.generic.app/settings",TB="sap.fe.templates.RootContainer.view.Fcl",EB="appRootView",gC=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(gC||{}),bB="sap.ui.core.mvc.View",AB="sap.ui.core.Fragment",mC=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(mC||{}),SB={error:"Error",warning:"Warning",info:"Information"},hC=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(hC||{}),yC=(e=>(e.CustomPage="CustomPage",e.CustomColumn="CustomColumn",e.CustomSection="CustomSection",e.ObjectPage="ObjectPage",e.CustomAction="CustomAction",e.CustomView="CustomView",e.ControllerExtension="ControllerExtension",e.CustomSubSection="CustomSubSection",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e))(yC||{}),vC=(e=>(e.BuildingBlocks="BuildingBlocks",e))(vC||{}),TC={};rT(TC,{CardSettingsType:()=>AC,CardTemplateType:()=>bC,ChartCardType:()=>EC,ChartType:()=>jC,ContainerLayoutType:()=>WC,CreateMode:()=>BC,DateRangeType:()=>CC,DefaultContentView:()=>MC,DefaultDateRangeValueType:()=>NC,DefaultFilterMode:()=>VC,ExtensionFragmentTypes:()=>UC,FE_TEMPLATE_V2:()=>IB,FE_TEMPLATE_V2_ALP:()=>NB,FE_TEMPLATE_V2_LIST_REPORT:()=>CB,FE_TEMPLATE_V2_OBJECT_PAGE:()=>OB,FilterPathType:()=>RC,IgnoredFieldsType:()=>wC,LinkListFlavorType:()=>OC,ListFlavorType:()=>xC,ListTypeType:()=>PC,LoadDataOnAppLaunchSettings:()=>kC,MeasureAggregateValues:()=>SC,SAPUI5_CONTROLLER_EXTENSION:()=>LB,SAPUI5_VIEW_EXTENSION:()=>RB,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>DB,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>_B,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>FB,SectionPosition:()=>$C,SortOrderType:()=>IC,Strategy:()=>DC,TableColumnExtensionTypeV2:()=>_C,TableTypeV2:()=>FC,cardTemplateSettingsMap:()=>PB,cardTemplateTypeMap:()=>xB,customColumnViewTypes:()=>LC});var EC=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(EC||{}),bC=(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))(bC||{}),xB={"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"},PB={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},AC=(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))(AC||{}),SC=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(SC||{}),xC=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(xC||{}),PC=(e=>(e.extended="extended",e.condensed="condensed",e))(PC||{}),IC=(e=>(e.ascending="ascending",e.descending="descending",e))(IC||{}),OC=(e=>(e.standard="standard",e.carousel="carousel",e))(OC||{}),CC=(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))(CC||{}),NC=(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))(NC||{}),RC=(e=>(e.key="key",e.catgory="category",e))(RC||{}),LC=(e=>(e.XML="XML",e))(LC||{}),FC=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(FC||{}),_C=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(_C||{}),DC=(e=>(e.extension="extension",e))(DC||{}),wC=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(wC||{}),MC=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(MC||{}),VC=(e=>(e.visual="visual",e.compact="compact",e))(VC||{}),kC=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(kC||{}),jC=(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))(jC||{}),$C=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))($C||{}),UC=(e=>(e.XML="XML",e))(UC||{}),BC=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(BC||{}),IB="sap.suite.ui.generic.template",OB="sap.suite.ui.generic.template.ObjectPage",CB="sap.suite.ui.generic.template.ListReport",NB="sap.suite.ui.generic.template.AnalyticalListPage",RB="sap.ui.viewExtensions",LB="sap.ui.controllerExtensions",FB="sap.suite.ui.generic.template.ObjectPage.view.Details",_B="sap.suite.ui.generic.template.ListReport.view.ListReport",DB="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",WC=(e=>(e.fixed="fixed",e.resizable="resizable",e))(WC||{}),GC={};rT(GC,{ActionPlacement:()=>HC,Availability:()=>aN,CustomSectionViewTypesV4:()=>nN,DefaultPathType:()=>YC,FE_TEMPLATE_V4:()=>wB,FE_TEMPLATE_V4_ALP:()=>jB,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>MB,FE_TEMPLATE_V4_LIST_REPORT:()=>kB,FE_TEMPLATE_V4_OBJECT_PAGE:()=>VB,FIORI_FCL_ROUTER_CLASS:()=>UB,FilterFieldPlacement:()=>qC,HorizontalAlign:()=>sN,InitialLayoutType:()=>zC,InitialLoadType:()=>JC,LayoutType:()=>QC,Placement:()=>oN,SAPUI5_CONTROLLER_EXTENSION:()=>WB,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>BB,SAPUI5_FRAGMENT_TYPE_V4:()=>$B,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>HB,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>GB,SectionLayoutType:()=>eN,SectionPosition:()=>tN,SectionPositionV4:()=>rN,SelectType:()=>ZC,SelectionMode:()=>KC,TableCreationModeType:()=>iN,TableTypeV4:()=>XC,VariantManagementTypeListReport:()=>lN,VariantManagementTypeObjectPage:()=>cN});var HC=(e=>(e.After="After",e.Before="Before",e))(HC||{}),KC=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(KC||{}),XC=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(XC||{}),JC=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(JC||{}),YC=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(YC||{}),QC=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QC||{}),zC=(e=>(e.Compact="Compact",e.Visual="Visual",e))(zC||{}),qC=(e=>(e.After="After",e.Before="Before",e))(qC||{}),ZC=(e=>(e.single="single",e.multi="multi",e))(ZC||{}),eN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(eN||{}),tN=(e=>(e.After="After",e.Before="Before",e))(tN||{}),nN=(e=>(e.XML="XML",e))(nN||{}),iN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(iN||{}),wB="sap.fe.templates",MB="sap.fe.core.fpm",VB="sap.fe.templates.ObjectPage",kB="sap.fe.templates.ListReport",jB="sap.fe.templates.AnalyticalListPage",$B="XMLFragment",rN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(rN||{}),UB="sap.f.routing.Router",BB="sap.f",WB="sap.ui.controllerExtensions",GB="sap.fe.templates.ObjectPage.ObjectPageController",HB="sap.fe.templates.ListReport.ListReportController",oN=(e=>(e.After="After",e.Before="Before",e))(oN||{}),aN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(aN||{}),sN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(sN||{}),cN=(e=>(e.None="None",e.Control="Control",e))(cN||{}),lN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(lN||{})});var pN=Ve(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.Features=mi.CustomExtensionType=mi.TemplateType=mi.LogSeverityLabel=mi.LogSeverity=void 0;var KB;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(KB=mi.LogSeverity||(mi.LogSeverity={}));mi.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var XB;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(XB=mi.TemplateType||(mi.TemplateType={}));var JB;(function(e){e.CustomPage="CustomPage",e.CustomColumn="CustomColumn",e.CustomSection="CustomSection",e.ObjectPage="ObjectPage",e.CustomAction="CustomAction",e.CustomView="CustomView",e.ControllerExtension="ControllerExtension",e.CustomSubSection="CustomSubSection",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection"})(JB=mi.CustomExtensionType||(mi.CustomExtensionType={}));var YB;(function(e){e.BuildingBlocks="BuildingBlocks"})(YB=mi.Features||(mi.Features={}))});var jN=Ve((p6,kN)=>{var sT=Object.defineProperty,QB=Object.getOwnPropertyDescriptor,zB=Object.getOwnPropertyNames,qB=Object.prototype.hasOwnProperty,ZB=a((e,t)=>{for(var n in t)sT(e,n,{get:t[n],enumerable:!0})},"h"),eW=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of zB(t))!qB.call(e,r)&&r!==n&&sT(e,r,{get:()=>t[r],enumerable:!(i=QB(t,r))||i.enumerable});return e},"M"),tW=a(e=>eW(sT({},"__esModule",{value:!0}),e),"Q"),dN={};ZB(dN,{CardSettingsType:()=>hN,CardTemplateType:()=>mN,ChartCardType:()=>gN,ChartType:()=>_N,ContainerLayoutType:()=>VN,CreateMode:()=>MN,DateRangeType:()=>AN,DefaultContentView:()=>RN,DefaultDateRangeValueType:()=>SN,DefaultFilterMode:()=>LN,ExtensionFragmentTypes:()=>wN,FE_TEMPLATE_V2:()=>rW,FE_TEMPLATE_V2_ALP:()=>sW,FE_TEMPLATE_V2_LIST_REPORT:()=>aW,FE_TEMPLATE_V2_OBJECT_PAGE:()=>oW,FilterPathType:()=>xN,IgnoredFieldsType:()=>NN,LinkListFlavorType:()=>bN,ListFlavorType:()=>vN,ListTypeType:()=>TN,LoadDataOnAppLaunchSettings:()=>FN,MeasureAggregateValues:()=>yN,SAPUI5_CONTROLLER_EXTENSION:()=>lW,SAPUI5_VIEW_EXTENSION:()=>cW,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>pW,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>uW,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>fW,SectionPosition:()=>DN,SortOrderType:()=>EN,Strategy:()=>CN,TableColumnExtensionTypeV2:()=>ON,TableTypeV2:()=>IN,cardTemplateSettingsMap:()=>iW,cardTemplateTypeMap:()=>nW,customColumnViewTypes:()=>PN});kN.exports=tW(dN);var gN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(gN||{}),mN=(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))(mN||{}),nW={"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"},iW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},hN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(hN||{}),yN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(yN||{}),vN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(vN||{}),TN=(e=>(e.extended="extended",e.condensed="condensed",e))(TN||{}),EN=(e=>(e.ascending="ascending",e.descending="descending",e))(EN||{}),bN=(e=>(e.standard="standard",e.carousel="carousel",e))(bN||{}),AN=(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))(AN||{}),SN=(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))(SN||{}),xN=(e=>(e.key="key",e.catgory="category",e))(xN||{}),PN=(e=>(e.XML="XML",e))(PN||{}),IN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(IN||{}),ON=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(ON||{}),CN=(e=>(e.extension="extension",e))(CN||{}),NN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(NN||{}),RN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(RN||{}),LN=(e=>(e.visual="visual",e.compact="compact",e))(LN||{}),FN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(FN||{}),_N=(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))(_N||{}),DN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(DN||{}),wN=(e=>(e.XML="XML",e))(wN||{}),MN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(MN||{}),rW="sap.suite.ui.generic.template",oW="sap.suite.ui.generic.template.ObjectPage",aW="sap.suite.ui.generic.template.ListReport",sW="sap.suite.ui.generic.template.AnalyticalListPage",cW="sap.ui.viewExtensions",lW="sap.ui.controllerExtensions",fW="sap.suite.ui.generic.template.ObjectPage.view.Details",uW="sap.suite.ui.generic.template.ListReport.view.ListReport",pW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",VN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(VN||{})});var sR=Ve((g6,aR)=>{var cT=Object.defineProperty,dW=Object.getOwnPropertyDescriptor,gW=Object.getOwnPropertyNames,mW=Object.prototype.hasOwnProperty,hW=a((e,t)=>{for(var n in t)cT(e,n,{get:t[n],enumerable:!0})},"w"),yW=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gW(t))!mW.call(e,r)&&r!==n&&cT(e,r,{get:()=>t[r],enumerable:!(i=dW(t,r))||i.enumerable});return e},"R"),vW=a(e=>yW(cT({},"__esModule",{value:!0}),e),"h"),$N={};hW($N,{ActionPlacement:()=>UN,Availability:()=>nR,CustomSectionViewTypesV4:()=>qN,DefaultPathType:()=>HN,FE_TEMPLATE_V4:()=>TW,FE_TEMPLATE_V4_ALP:()=>SW,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>EW,FE_TEMPLATE_V4_LIST_REPORT:()=>AW,FE_TEMPLATE_V4_OBJECT_PAGE:()=>bW,FIORI_FCL_ROUTER_CLASS:()=>PW,FilterFieldPlacement:()=>JN,HorizontalAlign:()=>iR,InitialLayoutType:()=>XN,InitialLoadType:()=>GN,LayoutType:()=>KN,Placement:()=>tR,SAPUI5_CONTROLLER_EXTENSION:()=>OW,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>IW,SAPUI5_FRAGMENT_TYPE_V4:()=>xW,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>NW,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>CW,SectionLayoutType:()=>QN,SectionPosition:()=>zN,SectionPositionV4:()=>eR,SelectType:()=>YN,SelectionMode:()=>BN,TableCreationModeType:()=>ZN,TableTypeV4:()=>WN,VariantManagementTypeListReport:()=>oR,VariantManagementTypeObjectPage:()=>rR});aR.exports=vW($N);var UN=(e=>(e.After="After",e.Before="Before",e))(UN||{}),BN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(BN||{}),WN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(WN||{}),GN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(GN||{}),HN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(HN||{}),KN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(KN||{}),XN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(XN||{}),JN=(e=>(e.After="After",e.Before="Before",e))(JN||{}),YN=(e=>(e.single="single",e.multi="multi",e))(YN||{}),QN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(QN||{}),zN=(e=>(e.After="After",e.Before="Before",e))(zN||{}),qN=(e=>(e.XML="XML",e))(qN||{}),ZN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(ZN||{}),TW="sap.fe.templates",EW="sap.fe.core.fpm",bW="sap.fe.templates.ObjectPage",AW="sap.fe.templates.ListReport",SW="sap.fe.templates.AnalyticalListPage",xW="XMLFragment",eR=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(eR||{}),PW="sap.f.routing.Router",IW="sap.f",OW="sap.ui.controllerExtensions",CW="sap.fe.templates.ObjectPage.ObjectPageController",NW="sap.fe.templates.ListReport.ListReportController",tR=(e=>(e.After="After",e.Before="Before",e))(tR||{}),nR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(nR||{}),iR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(iR||{}),rR=(e=>(e.None="None",e.Control="Control",e))(rR||{}),oR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(oR||{})});var se=Ve(hi=>{"use strict";var cR=hi&&hi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),RW=hi&&hi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lR=hi&&hi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cR(t,e,n)},fR=hi&&hi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&cR(t,e,n);return RW(t,e),t};Object.defineProperty(hi,"__esModule",{value:!0});hi.v4=hi.v2=void 0;lR(uN(),hi);lR(pN(),hi);hi.v2=fR(jN());hi.v4=fR(sR())});var yT=Ve((wq,DR)=>{"use strict";var aG=a(function(t){return sG(t)&&!cG(t)},"isMergeableObject");function sG(e){return!!e&&typeof e=="object"}a(sG,"isNonNullObject");function cG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||uG(e)}a(cG,"isSpecial");var lG=typeof Symbol=="function"&&Symbol.for,fG=lG?Symbol.for("react.element"):60103;function uG(e){return e.$$typeof===fG}a(uG,"isReactElement");function pG(e){return Array.isArray(e)?[]:{}}a(pG,"emptyTarget");function Zf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?gl(pG(e),e,t):e}a(Zf,"cloneUnlessOtherwiseSpecified");function dG(e,t,n){return e.concat(t).map(function(i){return Zf(i,n)})}a(dG,"defaultArrayMerge");function gG(e,t){if(!t.customMerge)return gl;var n=t.customMerge(e);return typeof n=="function"?n:gl}a(gG,"getMergeFunction");function mG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}a(mG,"getEnumerableOwnPropertySymbols");function FR(e){return Object.keys(e).concat(mG(e))}a(FR,"getKeys");function _R(e,t){try{return t in e}catch{return!1}}a(_R,"propertyIsOnObject");function hG(e,t){return _R(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}a(hG,"propertyIsUnsafe");function yG(e,t,n){var i={};return n.isMergeableObject(e)&&FR(e).forEach(function(r){i[r]=Zf(e[r],n)}),FR(t).forEach(function(r){hG(e,r)||(_R(e,r)&&n.isMergeableObject(t[r])?i[r]=gG(r,n)(e[r],t[r],n):i[r]=Zf(t[r],n))}),i}a(yG,"mergeObject");function gl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||dG,n.isMergeableObject=n.isMergeableObject||aG,n.cloneUnlessOtherwiseSpecified=Zf;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):yG(e,t,n):Zf(t,n)}a(gl,"deepmerge");gl.all=a(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return gl(i,r,n)},{})},"deepmergeAll");var vG=gl;DR.exports=vG});var pg=Ve(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.mergeAnnotations=yt.addGetByValue=yt.createIndexedFind=yt.lazy=yt.Decimal=yt.isComplexTypeDefinition=yt.unalias=yt.alias=yt.substringBeforeLast=yt.substringBeforeFirst=yt.splitAtLast=yt.splitAtFirst=yt.defaultReferences=yt.TermToTypes=yt.EnumIsFlag=void 0;var TG=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(yt,"EnumIsFlag",{enumerable:!0,get:function(){return TG.EnumIsFlag}});var EG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(yt,"TermToTypes",{enumerable:!0,get:function(){return EG.TermToTypes}});var bG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(yt,"defaultReferences",{enumerable:!0,get:function(){return bG.VocabularyReferences}});function wR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}a(wR,"splitAt");function MR(e,t){return t<0?e:e.substring(0,t)}a(MR,"substringAt");function ug(e,t){return wR(e,e.indexOf(t))}a(ug,"splitAtFirst");yt.splitAtFirst=ug;function VR(e,t){return wR(e,e.lastIndexOf(t))}a(VR,"splitAtLast");yt.splitAtLast=VR;function AG(e,t){return MR(e,e.indexOf(t))}a(AG,"substringBeforeFirst");yt.substringBeforeFirst=AG;function SG(e,t){return MR(e,e.lastIndexOf(t))}a(SG,"substringBeforeLast");yt.substringBeforeLast=SG;function kR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((o,s)=>(o[s.namespace]=s,o),{})),!t)return t;let[n,i]=VR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[o,s]=ug(t,"@");return`${o}@${kR(e,s)}`}else return t}a(kR,"alias");yt.alias=kR;function vT(e,t,n){var i;let r=a(o=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=ug(o,".");if(!l||l.includes("."))return o;let u=s.startsWith("@"),p=u?s.substring(1):s,d=e.referenceMap[p];return d?u?`@${d.namespace}.${l}`:`${d.namespace}.${l}`:n&&!u?`${n}.${l}`:o},"_unalias");return(i=t==null?void 0:t.split("/").reduce((o,s)=>{let[l,u]=ug(s,"("),p=[r(l)];if(u){let d=u.slice(0,-1);p.push(`(${r(d)})`)}return o.push(p.join("")),o},[]))===null||i===void 0?void 0:i.join("/")}a(vT,"unalias");yt.unalias=vT;function xG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}a(xG,"isComplexTypeDefinition");yt.isComplexTypeDefinition=xG;function PG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}a(PG,"Decimal");yt.Decimal=PG;function IG(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(o){r=o}})}a(IG,"lazy");yt.lazy=IG;function jR(e,t){let n=new Map;return a(function(r){let o=n.get(r);return(o==null?void 0:o[t])===r?o:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}a(jR,"createIndexedFind");yt.createIndexedFind=jR;function OG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:jR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}a(OG,"addGetByValue");yt.addGetByValue=OG;function CG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var o;for(let{target:s,annotations:l}of r){let u=(o=vT(e,s))!==null&&o!==void 0?o:s;n[u]||(n[u]=[]);let p=l.map(d=>{var m;return d.term=(m=vT(e,d.term))!==null&&m!==void 0?m:d.term,d.fullyQualifiedName=d.qualifier?`${u}@${d.term}#${d.qualifier}`:`${u}@${d.term}`,d.__source=i,d}).filter(d=>!n[u].some(m=>m.term===d.term&&m.qualifier===d.qualifier));n[u].push(...p)}return n},{})}a(CG,"mergeAnnotations");yt.mergeAnnotations=CG});var ZR=Ve(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.convert=void 0;var eu=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),ve=pg(),Zr=Symbol("Annotation Target");function fa(e,t){return e[e.length-1]!==t&&e.push(t),e}a(fa,"appendObjectPath");function ur(e,t,n,i){var r,o,s,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let u=n.split("/").reduce((d,m)=>{if(m.includes("@")){let[T,b]=(0,ve.splitAtFirst)(m,"@");d.push(T),d.push(`@${b}`)}else d.push(m);return d},[]);if(t===void 0)u[0].startsWith(`${e.rawSchema.namespace}.`)&&u[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(s=(o=e.getConvertedEntityType(u[0]))!==null&&o!==void 0?o:e.getConvertedComplexType(u[0]))!==null&&s!==void 0?s:e.getConvertedAction(u[0]),u.shift()):t=e.getConvertedEntityContainer();else if(t[Zr]!==void 0)t=t[Zr];else if(t._type==="Property"){let d=(0,ve.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(d))!==null&&l!==void 0?l:e.getConvertedComplexType(d)}let p=u.reduce((d,m)=>{var T,b,E,C,R;let L=a(F=>(d.messages.push({message:F}),d.target=void 0,d),"error");if(d.target===void 0)return d;if(d.objectPath=fa(d.objectPath,d.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[F,U]=e.splitTerm(m),J=(T=d.target.annotations[F.substring(1)])===null||T===void 0?void 0:T[U];return J!==void 0?(d.target=J,d):L(`Annotation '${m.substring(1)}' not found on ${d.target._type} '${d.target.fullyQualifiedName}'`)}if(d.target.$target){let F;if(m==="$AnnotationPath"?F=d.target.value:m==="$Path"&&(F=d.target.path),F!==void 0){let U=ur(e,d.target[Zr],F);return U.objectPath.forEach(J=>{d.objectPath.includes(J)||(d.objectPath=fa(d.objectPath,J))}),d.target=U.target,d.objectPath=fa(d.objectPath,d.target),d}}switch((b=d.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let J=d.target;if(m===""||e.unalias(m)===J.fullyQualifiedName)return d;let re=(C=(E=J.entitySets.by_name(m))!==null&&E!==void 0?E:J.singletons.by_name(m))!==null&&C!==void 0?C:J.actionImports.by_name(m);if(re)return d.target=re,d}break;case"EntitySet":case"Singleton":{let J=d.target;if(m===""||m==="$Type")return d.target=J.entityType,d;if(m==="$")return d;if(m==="$NavigationPropertyBinding"){let Ce=J.navigationPropertyBinding;return d.target=Ce,d}let re=ur(e,J.entityType,m);return d.target=re.target,d.objectPath=re.objectPath.reduce(fa,d.objectPath),d}case"EntityType":{let J=d.target;if(m===""||m==="$Type")return d;let re=J.entityProperties.by_name(m);if(re)return d.target=re,d;let Ce=J.navigationProperties.by_name(m);if(Ce)return d.target=Ce,d;let st=(0,ve.substringBeforeFirst)(e.unalias(m),"("),k=J.actions[st];if(k)return d.target=k,d}break;case"ActionImport":{let J=ur(e,d.target.action,m);return d.target=J.target,d.objectPath=J.objectPath.reduce(fa,d.objectPath),d}case"Action":{let J=d.target;if(m===""||m==="@$ui5.overload"||m==="0")return d;if(m==="$Parameter"&&J.isBound)return d.target=J.parameters,d;let re=(R=J.parameters[m])!==null&&R!==void 0?R:J.parameters.find(Ce=>Ce.name===m);if(re)return d.target=re,d;break}case"Property":{let re=d.target.targetType;if(re!==void 0){let Ce=re.properties.by_name(m);if(Ce)return d.target=Ce,d;let st=re.navigationProperties.by_name(m);if(st)return d.target=st,d}}break;case"ActionParameter":let F=d.target.typeReference;if(F!==void 0){let J=ur(e,F,m);return d.target=J.target,d.objectPath=J.objectPath.reduce(fa,d.objectPath),d}break;case"NavigationProperty":let U=ur(e,d.target.targetType,m);return d.target=U.target,d.objectPath=U.objectPath.reduce(fa,d.objectPath),d;default:if(m==="")return d;if(d.target[m])return d.target=d.target[m],d.objectPath=fa(d.objectPath,d.target),d}return L(`Element '${m}' not found at ${d.target._type} '${d.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(p.messages.forEach(d=>e.logError(d.message)),!p.target)if(i){let d=GR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var J4=Object.create;var ul=Object.defineProperty;var jO=Object.getOwnPropertyDescriptor;var Y4=Object.getOwnPropertyNames;var Q4=Object.getPrototypeOf,z4=Object.prototype.hasOwnProperty;var a=(e,t)=>ul(e,"name",{value:t,configurable:!0});var Xe=(e,t)=>()=>(e&&(t=e(e=0)),t);var Ve=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),ec=(e,t)=>{for(var n in t)ul(e,n,{get:t[n],enumerable:!0})},ng=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Y4(t))!z4.call(e,r)&&r!==n&&ul(e,r,{get:()=>t[r],enumerable:!(i=jO(t,r))||i.enumerable});return e},tc=(e,t,n)=>(ng(e,t,"default"),n&&ng(n,t,"default")),te=(e,t,n)=>(n=e!=null?J4(Q4(e)):{},ng(t||!e||!e.__esModule?ul(n,"default",{value:e,enumerable:!0}):n,e)),ig=e=>ng(ul({},"__esModule",{value:!0}),e),y=(e,t,n,i)=>{for(var r=i>1?void 0:i?jO(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(r=(i?s(t,n,r):s(r))||r);return i&&r&&ul(t,n,r),r};var uN=Ve((p6,fN)=>{var iT=Object.defineProperty,q4=Object.getOwnPropertyDescriptor,Z4=Object.getOwnPropertyNames,eB=Object.prototype.hasOwnProperty,rT=a((e,t)=>{for(var n in t)iT(e,n,{get:t[n],enumerable:!0})},"d"),tB=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Z4(t))!eB.call(e,r)&&r!==n&&iT(e,r,{get:()=>t[r],enumerable:!(i=q4(t,r))||i.enumerable});return e},"Ne"),nB=a(e=>tB(iT({},"__esModule",{value:!0}),e),"ze"),$O={};rT($O,{ALPViewType:()=>XO,ActionTitlePrefix:()=>aB,ActionType:()=>QO,ArtifactType:()=>YO,BindingPropertyRegexAsString:()=>sB,ControlType:()=>zO,CustomExtensionType:()=>yC,DATESETTINGSPATH:()=>hB,DataSourceType:()=>pC,DefinitionName:()=>iC,DirName:()=>ZO,DraftDiscardEnabledSettings:()=>cC,ExportArtifacts:()=>KO,FIORI_FCL_ROOT_ID:()=>EB,FIORI_FCL_ROOT_VIEW_NAME:()=>TB,FRAGMENTNAMEPART:()=>yB,FacetBase:()=>tC,FacetTitlePrefix:()=>oB,Features:()=>vC,FileName:()=>eC,FioriElementsVersion:()=>UO,FlexChangeLayer:()=>GO,FlexibleColumnLayoutAggregations:()=>uC,FlexibleColumnLayoutType:()=>WO,GENERICAPPSETTINGS:()=>vB,LogSeverity:()=>mC,LogSeverityLabel:()=>SB,MANIFESTPATH:()=>cB,MacrosPropertyType:()=>sC,ManifestSection:()=>dC,OdataVersion:()=>BO,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>rB,PageType:()=>iB,PageTypeV2:()=>oT,PageTypeV4:()=>aT,PropertyName:()=>rC,QUICKVARPATH:()=>gB,QUICKVARPATHX:()=>mB,SAPUI5_FRAGMENT_CLASS:()=>AB,SAPUI5_VIEW_CLASS:()=>bB,SchemaKeyName:()=>aC,SchemaTag:()=>oC,SchemaType:()=>HO,SectionType:()=>JO,StatePreservationMode:()=>fC,TableColumnVerticalAlignment:()=>lC,TemplateType:()=>hC,UIVOCABULARY:()=>uB,UIVOCABULARYALPHADOT:()=>dB,UIVOCABULARYDOT:()=>pB,VOCWITHCOLONS:()=>fB,VOCWITHSLASH:()=>lB,ViewTemplateType:()=>nC,ViewTypes:()=>gC,Visualization:()=>qO,v2:()=>TC,v4:()=>GC});fN.exports=nB($O);var oT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(oT||{}),aT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(aT||{}),iB={...oT,...aT},rB=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"]]),UO=(e=>(e.v2="v2",e.v4="v4",e))(UO||{}),BO=(e=>(e.v2="v2",e.v4="v4",e))(BO||{}),WO=(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))(WO||{}),GO=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(GO||{}),HO=(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))(HO||{}),KO=(e=>(e.flex="flex",e.manifest="manifest",e))(KO||{}),XO=(e=>(e.Primary="primary",e.Secondary="secondary",e))(XO||{}),JO=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(JO||{}),YO=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(YO||{}),QO=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(QO||{}),zO=(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.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))(zO||{}),qO=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(qO||{}),ZO=(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))(ZO||{}),eC=(e=>(e.App="app.json",e))(eC||{}),oB="Facet ID: ",aB="Action ID: ",tC=(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.Unknown="",e))(tC||{}),sB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",nC=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(nC||{}),iC=(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))(iC||{}),rC=(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))(rC||{}),oC=(e=>(e.annotationPath="annotationPath",e.annotationType="annotationType",e.artifactType="artifactType",e.controlType="controlType",e.actionType="actionType",e.dataType="dataType",e.fullyQualifiedName="fullyQualifiedName",e.hidden="hidden",e.isViewNode="isViewNode",e.key="key",e.keys="keys",e.target="target",e.propertyIndex="propertyIndex",e))(oC||{}),aC=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(aC||{}),cB="webapp/manifest.json",lB="/@com.sap.vocabularies",fB="::@com.sap.vocabularies",uB="com.sap.vocabularies.UI.v1",pB="com.sap.vocabularies.UI.v1.",dB="@com.sap.vocabularies.UI.v1.",gB="/quickVariantSelection",mB="/quickVariantSelectionX",hB="/filterSettings/dateSettings",yB=".fragment.",sC=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(sC||{}),cC=(e=>(e.restricted="restricted",e))(cC||{}),lC=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(lC||{}),fC=(e=>(e.persistence="persistence",e.discovery="discovery",e))(fC||{}),uC=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(uC||{}),pC=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(pC||{}),dC=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(dC||{}),vB="sap.ui.generic.app/settings",TB="sap.fe.templates.RootContainer.view.Fcl",EB="appRootView",gC=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(gC||{}),bB="sap.ui.core.mvc.View",AB="sap.ui.core.Fragment",mC=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(mC||{}),SB={error:"Error",warning:"Warning",info:"Information"},hC=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(hC||{}),yC=(e=>(e.CustomPage="CustomPage",e.CustomColumn="CustomColumn",e.CustomSection="CustomSection",e.ObjectPage="ObjectPage",e.CustomAction="CustomAction",e.CustomView="CustomView",e.ControllerExtension="ControllerExtension",e.CustomSubSection="CustomSubSection",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection",e))(yC||{}),vC=(e=>(e.BuildingBlocks="BuildingBlocks",e))(vC||{}),TC={};rT(TC,{CardSettingsType:()=>AC,CardTemplateType:()=>bC,ChartCardType:()=>EC,ChartType:()=>jC,ContainerLayoutType:()=>WC,CreateMode:()=>BC,DateRangeType:()=>CC,DefaultContentView:()=>MC,DefaultDateRangeValueType:()=>NC,DefaultFilterMode:()=>VC,ExtensionFragmentTypes:()=>UC,FE_TEMPLATE_V2:()=>IB,FE_TEMPLATE_V2_ALP:()=>NB,FE_TEMPLATE_V2_LIST_REPORT:()=>CB,FE_TEMPLATE_V2_OBJECT_PAGE:()=>OB,FilterPathType:()=>RC,IgnoredFieldsType:()=>wC,LinkListFlavorType:()=>OC,ListFlavorType:()=>xC,ListTypeType:()=>PC,LoadDataOnAppLaunchSettings:()=>kC,MeasureAggregateValues:()=>SC,SAPUI5_CONTROLLER_EXTENSION:()=>LB,SAPUI5_VIEW_EXTENSION:()=>RB,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>DB,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>_B,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>FB,SectionPosition:()=>$C,SortOrderType:()=>IC,Strategy:()=>DC,TableColumnExtensionTypeV2:()=>_C,TableTypeV2:()=>FC,cardTemplateSettingsMap:()=>PB,cardTemplateTypeMap:()=>xB,customColumnViewTypes:()=>LC});var EC=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(EC||{}),bC=(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))(bC||{}),xB={"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"},PB={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},AC=(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))(AC||{}),SC=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(SC||{}),xC=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(xC||{}),PC=(e=>(e.extended="extended",e.condensed="condensed",e))(PC||{}),IC=(e=>(e.ascending="ascending",e.descending="descending",e))(IC||{}),OC=(e=>(e.standard="standard",e.carousel="carousel",e))(OC||{}),CC=(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))(CC||{}),NC=(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))(NC||{}),RC=(e=>(e.key="key",e.catgory="category",e))(RC||{}),LC=(e=>(e.XML="XML",e))(LC||{}),FC=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(FC||{}),_C=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(_C||{}),DC=(e=>(e.extension="extension",e))(DC||{}),wC=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(wC||{}),MC=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(MC||{}),VC=(e=>(e.visual="visual",e.compact="compact",e))(VC||{}),kC=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(kC||{}),jC=(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))(jC||{}),$C=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))($C||{}),UC=(e=>(e.XML="XML",e))(UC||{}),BC=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(BC||{}),IB="sap.suite.ui.generic.template",OB="sap.suite.ui.generic.template.ObjectPage",CB="sap.suite.ui.generic.template.ListReport",NB="sap.suite.ui.generic.template.AnalyticalListPage",RB="sap.ui.viewExtensions",LB="sap.ui.controllerExtensions",FB="sap.suite.ui.generic.template.ObjectPage.view.Details",_B="sap.suite.ui.generic.template.ListReport.view.ListReport",DB="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",WC=(e=>(e.fixed="fixed",e.resizable="resizable",e))(WC||{}),GC={};rT(GC,{ActionPlacement:()=>HC,Availability:()=>aN,CustomSectionViewTypesV4:()=>nN,DefaultPathType:()=>YC,FE_TEMPLATE_V4:()=>wB,FE_TEMPLATE_V4_ALP:()=>jB,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>MB,FE_TEMPLATE_V4_LIST_REPORT:()=>kB,FE_TEMPLATE_V4_OBJECT_PAGE:()=>VB,FIORI_FCL_ROUTER_CLASS:()=>UB,FilterFieldPlacement:()=>qC,HorizontalAlign:()=>sN,InitialLayoutType:()=>zC,InitialLoadType:()=>JC,LayoutType:()=>QC,Placement:()=>oN,SAPUI5_CONTROLLER_EXTENSION:()=>WB,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>BB,SAPUI5_FRAGMENT_TYPE_V4:()=>$B,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>HB,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>GB,SectionLayoutType:()=>eN,SectionPosition:()=>tN,SectionPositionV4:()=>rN,SelectType:()=>ZC,SelectionMode:()=>KC,TableCreationModeType:()=>iN,TableTypeV4:()=>XC,VariantManagementTypeListReport:()=>lN,VariantManagementTypeObjectPage:()=>cN});var HC=(e=>(e.After="After",e.Before="Before",e))(HC||{}),KC=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(KC||{}),XC=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(XC||{}),JC=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(JC||{}),YC=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(YC||{}),QC=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(QC||{}),zC=(e=>(e.Compact="Compact",e.Visual="Visual",e))(zC||{}),qC=(e=>(e.After="After",e.Before="Before",e))(qC||{}),ZC=(e=>(e.single="single",e.multi="multi",e))(ZC||{}),eN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(eN||{}),tN=(e=>(e.After="After",e.Before="Before",e))(tN||{}),nN=(e=>(e.XML="XML",e))(nN||{}),iN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(iN||{}),wB="sap.fe.templates",MB="sap.fe.core.fpm",VB="sap.fe.templates.ObjectPage",kB="sap.fe.templates.ListReport",jB="sap.fe.templates.AnalyticalListPage",$B="XMLFragment",rN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(rN||{}),UB="sap.f.routing.Router",BB="sap.f",WB="sap.ui.controllerExtensions",GB="sap.fe.templates.ObjectPage.ObjectPageController",HB="sap.fe.templates.ListReport.ListReportController",oN=(e=>(e.After="After",e.Before="Before",e))(oN||{}),aN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(aN||{}),sN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(sN||{}),cN=(e=>(e.None="None",e.Control="Control",e))(cN||{}),lN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(lN||{})});var pN=Ve(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.Features=mi.CustomExtensionType=mi.TemplateType=mi.LogSeverityLabel=mi.LogSeverity=void 0;var KB;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(KB=mi.LogSeverity||(mi.LogSeverity={}));mi.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var XB;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(XB=mi.TemplateType||(mi.TemplateType={}));var JB;(function(e){e.CustomPage="CustomPage",e.CustomColumn="CustomColumn",e.CustomSection="CustomSection",e.ObjectPage="ObjectPage",e.CustomAction="CustomAction",e.CustomView="CustomView",e.ControllerExtension="ControllerExtension",e.CustomSubSection="CustomSubSection",e.CustomFilterField="CustomFilterField",e.CustomHeaderSection="CustomHeaderSection"})(JB=mi.CustomExtensionType||(mi.CustomExtensionType={}));var YB;(function(e){e.BuildingBlocks="BuildingBlocks"})(YB=mi.Features||(mi.Features={}))});var jN=Ve((m6,kN)=>{var sT=Object.defineProperty,QB=Object.getOwnPropertyDescriptor,zB=Object.getOwnPropertyNames,qB=Object.prototype.hasOwnProperty,ZB=a((e,t)=>{for(var n in t)sT(e,n,{get:t[n],enumerable:!0})},"h"),eW=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of zB(t))!qB.call(e,r)&&r!==n&&sT(e,r,{get:()=>t[r],enumerable:!(i=QB(t,r))||i.enumerable});return e},"M"),tW=a(e=>eW(sT({},"__esModule",{value:!0}),e),"Q"),dN={};ZB(dN,{CardSettingsType:()=>hN,CardTemplateType:()=>mN,ChartCardType:()=>gN,ChartType:()=>_N,ContainerLayoutType:()=>VN,CreateMode:()=>MN,DateRangeType:()=>AN,DefaultContentView:()=>RN,DefaultDateRangeValueType:()=>SN,DefaultFilterMode:()=>LN,ExtensionFragmentTypes:()=>wN,FE_TEMPLATE_V2:()=>rW,FE_TEMPLATE_V2_ALP:()=>sW,FE_TEMPLATE_V2_LIST_REPORT:()=>aW,FE_TEMPLATE_V2_OBJECT_PAGE:()=>oW,FilterPathType:()=>xN,IgnoredFieldsType:()=>NN,LinkListFlavorType:()=>bN,ListFlavorType:()=>vN,ListTypeType:()=>TN,LoadDataOnAppLaunchSettings:()=>FN,MeasureAggregateValues:()=>yN,SAPUI5_CONTROLLER_EXTENSION:()=>lW,SAPUI5_VIEW_EXTENSION:()=>cW,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>pW,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>uW,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>fW,SectionPosition:()=>DN,SortOrderType:()=>EN,Strategy:()=>CN,TableColumnExtensionTypeV2:()=>ON,TableTypeV2:()=>IN,cardTemplateSettingsMap:()=>iW,cardTemplateTypeMap:()=>nW,customColumnViewTypes:()=>PN});kN.exports=tW(dN);var gN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(gN||{}),mN=(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))(mN||{}),nW={"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"},iW={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},hN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(hN||{}),yN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(yN||{}),vN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(vN||{}),TN=(e=>(e.extended="extended",e.condensed="condensed",e))(TN||{}),EN=(e=>(e.ascending="ascending",e.descending="descending",e))(EN||{}),bN=(e=>(e.standard="standard",e.carousel="carousel",e))(bN||{}),AN=(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))(AN||{}),SN=(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))(SN||{}),xN=(e=>(e.key="key",e.catgory="category",e))(xN||{}),PN=(e=>(e.XML="XML",e))(PN||{}),IN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(IN||{}),ON=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(ON||{}),CN=(e=>(e.extension="extension",e))(CN||{}),NN=(e=>(e.GENERICPROPERTY="GENERICPROPERTY",e))(NN||{}),RN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(RN||{}),LN=(e=>(e.visual="visual",e.compact="compact",e))(LN||{}),FN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(FN||{}),_N=(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))(_N||{}),DN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(DN||{}),wN=(e=>(e.XML="XML",e))(wN||{}),MN=(e=>(e.creationRows="creationRows",e.creationRowsHiddenInEditMode="creationRowsHiddenInEditMode",e.inline="inline",e))(MN||{}),rW="sap.suite.ui.generic.template",oW="sap.suite.ui.generic.template.ObjectPage",aW="sap.suite.ui.generic.template.ListReport",sW="sap.suite.ui.generic.template.AnalyticalListPage",cW="sap.ui.viewExtensions",lW="sap.ui.controllerExtensions",fW="sap.suite.ui.generic.template.ObjectPage.view.Details",uW="sap.suite.ui.generic.template.ListReport.view.ListReport",pW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",VN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(VN||{})});var sR=Ve((y6,aR)=>{var cT=Object.defineProperty,dW=Object.getOwnPropertyDescriptor,gW=Object.getOwnPropertyNames,mW=Object.prototype.hasOwnProperty,hW=a((e,t)=>{for(var n in t)cT(e,n,{get:t[n],enumerable:!0})},"w"),yW=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of gW(t))!mW.call(e,r)&&r!==n&&cT(e,r,{get:()=>t[r],enumerable:!(i=dW(t,r))||i.enumerable});return e},"R"),vW=a(e=>yW(cT({},"__esModule",{value:!0}),e),"h"),$N={};hW($N,{ActionPlacement:()=>UN,Availability:()=>nR,CustomSectionViewTypesV4:()=>qN,DefaultPathType:()=>HN,FE_TEMPLATE_V4:()=>TW,FE_TEMPLATE_V4_ALP:()=>SW,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>EW,FE_TEMPLATE_V4_LIST_REPORT:()=>AW,FE_TEMPLATE_V4_OBJECT_PAGE:()=>bW,FIORI_FCL_ROUTER_CLASS:()=>PW,FilterFieldPlacement:()=>JN,HorizontalAlign:()=>iR,InitialLayoutType:()=>XN,InitialLoadType:()=>GN,LayoutType:()=>KN,Placement:()=>tR,SAPUI5_CONTROLLER_EXTENSION:()=>OW,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>IW,SAPUI5_FRAGMENT_TYPE_V4:()=>xW,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>NW,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>CW,SectionLayoutType:()=>QN,SectionPosition:()=>zN,SectionPositionV4:()=>eR,SelectType:()=>YN,SelectionMode:()=>BN,TableCreationModeType:()=>ZN,TableTypeV4:()=>WN,VariantManagementTypeListReport:()=>oR,VariantManagementTypeObjectPage:()=>rR});aR.exports=vW($N);var UN=(e=>(e.After="After",e.Before="Before",e))(UN||{}),BN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(BN||{}),WN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(WN||{}),GN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(GN||{}),HN=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(HN||{}),KN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(KN||{}),XN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(XN||{}),JN=(e=>(e.After="After",e.Before="Before",e))(JN||{}),YN=(e=>(e.single="single",e.multi="multi",e))(YN||{}),QN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(QN||{}),zN=(e=>(e.After="After",e.Before="Before",e))(zN||{}),qN=(e=>(e.XML="XML",e))(qN||{}),ZN=(e=>(e.NewPage="NewPage",e.InlineCreationRows="InlineCreationRows",e.Inline="Inline",e))(ZN||{}),TW="sap.fe.templates",EW="sap.fe.core.fpm",bW="sap.fe.templates.ObjectPage",AW="sap.fe.templates.ListReport",SW="sap.fe.templates.AnalyticalListPage",xW="XMLFragment",eR=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(eR||{}),PW="sap.f.routing.Router",IW="sap.f",OW="sap.ui.controllerExtensions",CW="sap.fe.templates.ObjectPage.ObjectPageController",NW="sap.fe.templates.ListReport.ListReportController",tR=(e=>(e.After="After",e.Before="Before",e))(tR||{}),nR=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(nR||{}),iR=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(iR||{}),rR=(e=>(e.None="None",e.Control="Control",e))(rR||{}),oR=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(oR||{})});var se=Ve(hi=>{"use strict";var cR=hi&&hi.__createBinding||(Object.create?function(e,t,n,i){i===void 0&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);(!r||("get"in r?!t.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){i===void 0&&(i=n),e[i]=t[n]}),RW=hi&&hi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),lR=hi&&hi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&cR(t,e,n)},fR=hi&&hi.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)&&cR(t,e,n);return RW(t,e),t};Object.defineProperty(hi,"__esModule",{value:!0});hi.v4=hi.v2=void 0;lR(uN(),hi);lR(pN(),hi);hi.v2=fR(jN());hi.v4=fR(sR())});var yT=Ve((kq,DR)=>{"use strict";var aG=a(function(t){return sG(t)&&!cG(t)},"isMergeableObject");function sG(e){return!!e&&typeof e=="object"}a(sG,"isNonNullObject");function cG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||uG(e)}a(cG,"isSpecial");var lG=typeof Symbol=="function"&&Symbol.for,fG=lG?Symbol.for("react.element"):60103;function uG(e){return e.$$typeof===fG}a(uG,"isReactElement");function pG(e){return Array.isArray(e)?[]:{}}a(pG,"emptyTarget");function Zf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?ml(pG(e),e,t):e}a(Zf,"cloneUnlessOtherwiseSpecified");function dG(e,t,n){return e.concat(t).map(function(i){return Zf(i,n)})}a(dG,"defaultArrayMerge");function gG(e,t){if(!t.customMerge)return ml;var n=t.customMerge(e);return typeof n=="function"?n:ml}a(gG,"getMergeFunction");function mG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}a(mG,"getEnumerableOwnPropertySymbols");function FR(e){return Object.keys(e).concat(mG(e))}a(FR,"getKeys");function _R(e,t){try{return t in e}catch{return!1}}a(_R,"propertyIsOnObject");function hG(e,t){return _R(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}a(hG,"propertyIsUnsafe");function yG(e,t,n){var i={};return n.isMergeableObject(e)&&FR(e).forEach(function(r){i[r]=Zf(e[r],n)}),FR(t).forEach(function(r){hG(e,r)||(_R(e,r)&&n.isMergeableObject(t[r])?i[r]=gG(r,n)(e[r],t[r],n):i[r]=Zf(t[r],n))}),i}a(yG,"mergeObject");function ml(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||dG,n.isMergeableObject=n.isMergeableObject||aG,n.cloneUnlessOtherwiseSpecified=Zf;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):yG(e,t,n):Zf(t,n)}a(ml,"deepmerge");ml.all=a(function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(i,r){return ml(i,r,n)},{})},"deepmergeAll");var vG=ml;DR.exports=vG});var pg=Ve(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.mergeAnnotations=yt.addGetByValue=yt.createIndexedFind=yt.lazy=yt.Decimal=yt.isComplexTypeDefinition=yt.unalias=yt.alias=yt.substringBeforeLast=yt.substringBeforeFirst=yt.splitAtLast=yt.splitAtFirst=yt.defaultReferences=yt.TermToTypes=yt.EnumIsFlag=void 0;var TG=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(yt,"EnumIsFlag",{enumerable:!0,get:function(){return TG.EnumIsFlag}});var EG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(yt,"TermToTypes",{enumerable:!0,get:function(){return EG.TermToTypes}});var bG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(yt,"defaultReferences",{enumerable:!0,get:function(){return bG.VocabularyReferences}});function wR(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}a(wR,"splitAt");function MR(e,t){return t<0?e:e.substring(0,t)}a(MR,"substringAt");function ug(e,t){return wR(e,e.indexOf(t))}a(ug,"splitAtFirst");yt.splitAtFirst=ug;function VR(e,t){return wR(e,e.lastIndexOf(t))}a(VR,"splitAtLast");yt.splitAtLast=VR;function AG(e,t){return MR(e,e.indexOf(t))}a(AG,"substringBeforeFirst");yt.substringBeforeFirst=AG;function SG(e,t){return MR(e,e.lastIndexOf(t))}a(SG,"substringBeforeLast");yt.substringBeforeLast=SG;function kR(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((o,s)=>(o[s.namespace]=s,o),{})),!t)return t;let[n,i]=VR(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[o,s]=ug(t,"@");return`${o}@${kR(e,s)}`}else return t}a(kR,"alias");yt.alias=kR;function vT(e,t,n){var i;let r=a(o=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=ug(o,".");if(!l||l.includes("."))return o;let u=s.startsWith("@"),p=u?s.substring(1):s,d=e.referenceMap[p];return d?u?`@${d.namespace}.${l}`:`${d.namespace}.${l}`:n&&!u?`${n}.${l}`:o},"_unalias");return(i=t==null?void 0:t.split("/").reduce((o,s)=>{let[l,u]=ug(s,"("),p=[r(l)];if(u){let d=u.slice(0,-1);p.push(`(${r(d)})`)}return o.push(p.join("")),o},[]))===null||i===void 0?void 0:i.join("/")}a(vT,"unalias");yt.unalias=vT;function xG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}a(xG,"isComplexTypeDefinition");yt.isComplexTypeDefinition=xG;function PG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}a(PG,"Decimal");yt.Decimal=PG;function IG(e,t,n){let i=Symbol("initial"),r=i;Object.defineProperty(e,t,{enumerable:!0,get(){return r===i&&(r=n()),r},set(o){r=o}})}a(IG,"lazy");yt.lazy=IG;function jR(e,t){let n=new Map;return a(function(r){let o=n.get(r);return(o==null?void 0:o[t])===r?o:e.find(s=>{if(!(s!=null&&s.hasOwnProperty(t)))return!1;let l=s[t];return n.set(l,s),l===r})},"find")}a(jR,"createIndexedFind");yt.createIndexedFind=jR;function OG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:jR(e,t)});else throw new Error(`Property '${n}' already exists`);return e}a(OG,"addGetByValue");yt.addGetByValue=OG;function CG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var o;for(let{target:s,annotations:l}of r){let u=(o=vT(e,s))!==null&&o!==void 0?o:s;n[u]||(n[u]=[]);let p=l.map(d=>{var m;return d.term=(m=vT(e,d.term))!==null&&m!==void 0?m:d.term,d.fullyQualifiedName=d.qualifier?`${u}@${d.term}#${d.qualifier}`:`${u}@${d.term}`,d.__source=i,d}).filter(d=>!n[u].some(m=>m.term===d.term&&m.qualifier===d.qualifier));n[u].push(...p)}return n},{})}a(CG,"mergeAnnotations");yt.mergeAnnotations=CG});var ZR=Ve(gg=>{"use strict";Object.defineProperty(gg,"__esModule",{value:!0});gg.convert=void 0;var eu=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),ve=pg(),Zr=Symbol("Annotation Target");function fa(e,t){return e[e.length-1]!==t&&e.push(t),e}a(fa,"appendObjectPath");function ur(e,t,n,i){var r,o,s,l;if(n===void 0)return{target:void 0,objectPath:[],messages:[]};n.startsWith("/")&&(n=n.substring(1),t=void 0);let u=n.split("/").reduce((d,m)=>{if(m.includes("@")){let[T,b]=(0,ve.splitAtFirst)(m,"@");d.push(T),d.push(`@${b}`)}else d.push(m);return d},[]);if(t===void 0)u[0].startsWith(`${e.rawSchema.namespace}.`)&&u[0]!==((r=e.getConvertedEntityContainer())===null||r===void 0?void 0:r.fullyQualifiedName)?(t=(s=(o=e.getConvertedEntityType(u[0]))!==null&&o!==void 0?o:e.getConvertedComplexType(u[0]))!==null&&s!==void 0?s:e.getConvertedAction(u[0]),u.shift()):t=e.getConvertedEntityContainer();else if(t[Zr]!==void 0)t=t[Zr];else if(t._type==="Property"){let d=(0,ve.substringBeforeFirst)(t.fullyQualifiedName,"/");t=(l=e.getConvertedEntityType(d))!==null&&l!==void 0?l:e.getConvertedComplexType(d)}let p=u.reduce((d,m)=>{var T,b,E,C,R;let L=a(F=>(d.messages.push({message:F}),d.target=void 0,d),"error");if(d.target===void 0)return d;if(d.objectPath=fa(d.objectPath,d.target),m.startsWith("@")&&m!=="@$ui5.overload"){let[F,U]=e.splitTerm(m),J=(T=d.target.annotations[F.substring(1)])===null||T===void 0?void 0:T[U];return J!==void 0?(d.target=J,d):L(`Annotation '${m.substring(1)}' not found on ${d.target._type} '${d.target.fullyQualifiedName}'`)}if(d.target.$target){let F;if(m==="$AnnotationPath"?F=d.target.value:m==="$Path"&&(F=d.target.path),F!==void 0){let U=ur(e,d.target[Zr],F);return U.objectPath.forEach(J=>{d.objectPath.includes(J)||(d.objectPath=fa(d.objectPath,J))}),d.target=U.target,d.objectPath=fa(d.objectPath,d.target),d}}switch((b=d.target)===null||b===void 0?void 0:b._type){case"Schema":break;case"EntityContainer":{let J=d.target;if(m===""||e.unalias(m)===J.fullyQualifiedName)return d;let re=(C=(E=J.entitySets.by_name(m))!==null&&E!==void 0?E:J.singletons.by_name(m))!==null&&C!==void 0?C:J.actionImports.by_name(m);if(re)return d.target=re,d}break;case"EntitySet":case"Singleton":{let J=d.target;if(m===""||m==="$Type")return d.target=J.entityType,d;if(m==="$")return d;if(m==="$NavigationPropertyBinding"){let Ce=J.navigationPropertyBinding;return d.target=Ce,d}let re=ur(e,J.entityType,m);return d.target=re.target,d.objectPath=re.objectPath.reduce(fa,d.objectPath),d}case"EntityType":{let J=d.target;if(m===""||m==="$Type")return d;let re=J.entityProperties.by_name(m);if(re)return d.target=re,d;let Ce=J.navigationProperties.by_name(m);if(Ce)return d.target=Ce,d;let st=(0,ve.substringBeforeFirst)(e.unalias(m),"("),k=J.actions[st];if(k)return d.target=k,d}break;case"ActionImport":{let J=ur(e,d.target.action,m);return d.target=J.target,d.objectPath=J.objectPath.reduce(fa,d.objectPath),d}case"Action":{let J=d.target;if(m===""||m==="@$ui5.overload"||m==="0")return d;if(m==="$Parameter"&&J.isBound)return d.target=J.parameters,d;let re=(R=J.parameters[m])!==null&&R!==void 0?R:J.parameters.find(Ce=>Ce.name===m);if(re)return d.target=re,d;break}case"Property":{let re=d.target.targetType;if(re!==void 0){let Ce=re.properties.by_name(m);if(Ce)return d.target=Ce,d;let st=re.navigationProperties.by_name(m);if(st)return d.target=st,d}}break;case"ActionParameter":let F=d.target.typeReference;if(F!==void 0){let J=ur(e,F,m);return d.target=J.target,d.objectPath=J.objectPath.reduce(fa,d.objectPath),d}break;case"NavigationProperty":let U=ur(e,d.target.targetType,m);return d.target=U.target,d.objectPath=U.objectPath.reduce(fa,d.objectPath),d;default:if(m==="")return d;if(d.target[m])return d.target=d.target[m],d.objectPath=fa(d.objectPath,d.target),d}return L(`Element '${m}' not found at ${d.target._type} '${d.target.fullyQualifiedName}'`)},{target:t,objectPath:[],messages:[]});if(p.messages.forEach(d=>e.logError(d.message)),!p.target)if(i){let d=GR(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
2
2
|
`+n+`
|
|
3
3
|
|
|
4
4
|
Hint: Check and correct the path values under the following structure in the metadata (annotation.xml file or CDS annotations for the application):
|
|
@@ -24,9 +24,9 @@ Char: `+O.c),S=new Error(S),O.error=S,ht(O,"onerror",S),O}a(pn,"error");function
|
|
|
24
24
|
Actual: `+O.attribValue);else if(M==="xmlns"&&O.attribValue!==b)Fe(O,"xmlns: prefix must be bound to "+b+`
|
|
25
25
|
Actual: `+O.attribValue);else{var Le=O.tag,ct=O.tags[O.tags.length-1]||O;Le.ns===ct.ns&&(Le.ns=Object.create(ct.ns)),Le.ns[M]=O.attribValue}O.attribList.push([O.attribName,O.attribValue])}else O.tag.attributes[O.attribName]=O.attribValue,Ke(O,"onattribute",{name:O.attribName,value:O.attribValue});O.attribName=O.attribValue=""}a(en,"attrib");function Rn(O,S){if(O.opt.xmlns){var Q=O.tag,M=kn(O.tagName);Q.prefix=M.prefix,Q.local=M.local,Q.uri=Q.ns[M.prefix]||"",Q.prefix&&!Q.uri&&(Fe(O,"Unbound namespace prefix: "+JSON.stringify(O.tagName)),Q.uri=M.prefix);var Le=O.tags[O.tags.length-1]||O;Q.ns&&Le.ns!==Q.ns&&Object.keys(Q.ns).forEach(function(Vt){Ke(O,"onopennamespace",{prefix:Vt,uri:Q.ns[Vt]})});for(var ct=0,je=O.attribList.length;ct<je;ct++){var Et=O.attribList[ct],sn=Et[0],tn=Et[1],Mt=kn(sn,!0),ii=Mt.prefix,ir=Mt.local,cn=ii===""?"":Q.ns[ii]||"",pi={name:sn,value:tn,prefix:ii,local:ir,uri:cn};ii&&ii!=="xmlns"&&!cn&&(Fe(O,"Unbound namespace prefix: "+JSON.stringify(ii)),pi.uri=ii),O.tag.attributes[sn]=pi,Ke(O,"onattribute",pi)}O.attribList.length=0}O.tag.isSelfClosing=!!S,O.sawRoot=!0,O.tags.push(O.tag),Ke(O,"onopentag",O.tag),S||(!O.noscript&&O.tagName.toLowerCase()==="script"?O.state=k.SCRIPT:O.state=k.TEXT,O.tag=null,O.tagName=""),O.attribName=O.attribValue="",O.attribList.length=0}a(Rn,"openTag");function ni(O){if(!O.tagName){Fe(O,"Weird empty close tag."),O.textNode+="</>",O.state=k.TEXT;return}if(O.script){if(O.tagName!=="script"){O.script+="</"+O.tagName+">",O.tagName="",O.state=k.SCRIPT;return}Ke(O,"onscript",O.script),O.script=""}var S=O.tags.length,Q=O.tagName;O.strict||(Q=Q[O.looseCase]());for(var M=Q;S--;){var Le=O.tags[S];if(Le.name!==M)Fe(O,"Unexpected close tag");else break}if(S<0){Fe(O,"Unmatched closing tag: "+O.tagName),O.textNode+="</"+O.tagName+">",O.state=k.TEXT;return}O.tagName=Q;for(var ct=O.tags.length;ct-- >S;){var je=O.tag=O.tags.pop();O.tagName=O.tag.name,Ke(O,"onclosetag",O.tagName);var Et={};for(var sn in je.ns)Et[sn]=je.ns[sn];var tn=O.tags[O.tags.length-1]||O;O.opt.xmlns&&je.ns!==tn.ns&&Object.keys(je.ns).forEach(function(Mt){var ii=je.ns[Mt];Ke(O,"onclosenamespace",{prefix:Mt,uri:ii})})}S===0&&(O.closedRoot=!0),O.tagName=O.attribValue=O.attribName="",O.attribList.length=0,O.state=k.TEXT}a(ni,"closeTag");function Re(O){var S=O.entity,Q=S.toLowerCase(),M,Le="";return O.ENTITIES[S]?O.ENTITIES[S]:O.ENTITIES[Q]?O.ENTITIES[Q]:(S=Q,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),M=parseInt(S,16),Le=M.toString(16)):(S=S.slice(1),M=parseInt(S,10),Le=M.toString(10))),S=S.replace(/^0+/,""),isNaN(M)||Le.toLowerCase()!==S?(Fe(O,"Invalid character entity"),"&"+O.entity+";"):String.fromCodePoint(M))}a(Re,"parseEntity");function Ln(O,S){S==="<"?(O.state=k.OPEN_WAKA,O.startTagPosition=O.position):U(S)||(Fe(O,"Non-whitespace before first tag."),O.textNode=S,O.state=k.TEXT)}a(Ln,"beginWhiteSpace");function Kn(O,S){var Q="";return S<O.length&&(Q=O.charAt(S)),Q}a(Kn,"charAt");function Qe(O){var S=this;if(this.error)throw this.error;if(S.closed)return pn(S,"Cannot write after close. Assign an onready handler.");if(O===null)return Zt(S);typeof O=="object"&&(O=O.toString());for(var Q=0,M="";M=Kn(O,Q++),S.c=M,!!M;)switch(S.trackPosition&&(S.position++,M===`
|
|
26
26
|
`?(S.line++,S.column=0):S.column++),S.state){case k.BEGIN:if(S.state=k.BEGIN_WHITESPACE,M==="\uFEFF")continue;Ln(S,M);continue;case k.BEGIN_WHITESPACE:Ln(S,M);continue;case k.TEXT:if(S.sawRoot&&!S.closedRoot){for(var Le=Q-1;M&&M!=="<"&&M!=="&";)M=Kn(O,Q++),M&&S.trackPosition&&(S.position++,M===`
|
|
27
|
-
`?(S.line++,S.column=0):S.column++);S.textNode+=O.substring(Le,Q-1)}M==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=k.OPEN_WAKA,S.startTagPosition=S.position):(!U(M)&&(!S.sawRoot||S.closedRoot)&&Fe(S,"Text data outside of root node."),M==="&"?S.state=k.TEXT_ENTITY:S.textNode+=M);continue;case k.SCRIPT:M==="<"?S.state=k.SCRIPT_ENDING:S.script+=M;continue;case k.SCRIPT_ENDING:M==="/"?S.state=k.CLOSE_TAG:(S.script+="<"+M,S.state=k.SCRIPT);continue;case k.OPEN_WAKA:if(M==="!")S.state=k.SGML_DECL,S.sgmlDecl="";else if(!U(M))if(Ce(C,M))S.state=k.OPEN_TAG,S.tagName=M;else if(M==="/")S.state=k.CLOSE_TAG,S.tagName="";else if(M==="?")S.state=k.PROC_INST,S.procInstName=S.procInstBody="";else{if(Fe(S,"Unencoded <"),S.startTagPosition+1<S.position){var ct=S.position-S.startTagPosition;M=new Array(ct).join(" ")+M}S.textNode+="<"+M,S.state=k.TEXT}continue;case k.SGML_DECL:(S.sgmlDecl+M).toUpperCase()===d?(Ke(S,"onopencdata"),S.state=k.CDATA,S.sgmlDecl="",S.cdata=""):S.sgmlDecl+M==="--"?(S.state=k.COMMENT,S.comment="",S.sgmlDecl=""):(S.sgmlDecl+M).toUpperCase()===m?(S.state=k.DOCTYPE,(S.doctype||S.sawRoot)&&Fe(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):M===">"?(Ke(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=k.TEXT):(J(M)&&(S.state=k.SGML_DECL_QUOTED),S.sgmlDecl+=M);continue;case k.SGML_DECL_QUOTED:M===S.q&&(S.state=k.SGML_DECL,S.q=""),S.sgmlDecl+=M;continue;case k.DOCTYPE:M===">"?(S.state=k.TEXT,Ke(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=M,M==="["?S.state=k.DOCTYPE_DTD:J(M)&&(S.state=k.DOCTYPE_QUOTED,S.q=M));continue;case k.DOCTYPE_QUOTED:S.doctype+=M,M===S.q&&(S.q="",S.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:S.doctype+=M,M==="]"?S.state=k.DOCTYPE:J(M)&&(S.state=k.DOCTYPE_DTD_QUOTED,S.q=M);continue;case k.DOCTYPE_DTD_QUOTED:S.doctype+=M,M===S.q&&(S.state=k.DOCTYPE_DTD,S.q="");continue;case k.COMMENT:M==="-"?S.state=k.COMMENT_ENDING:S.comment+=M;continue;case k.COMMENT_ENDING:M==="-"?(S.state=k.COMMENT_ENDED,S.comment=Mi(S.opt,S.comment),S.comment&&Ke(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+M,S.state=k.COMMENT);continue;case k.COMMENT_ENDED:M!==">"?(Fe(S,"Malformed comment"),S.comment+="--"+M,S.state=k.COMMENT):S.state=k.TEXT;continue;case k.CDATA:M==="]"?S.state=k.CDATA_ENDING:S.cdata+=M;continue;case k.CDATA_ENDING:M==="]"?S.state=k.CDATA_ENDING_2:(S.cdata+="]"+M,S.state=k.CDATA);continue;case k.CDATA_ENDING_2:M===">"?(S.cdata&&Ke(S,"oncdata",S.cdata),Ke(S,"onclosecdata"),S.cdata="",S.state=k.TEXT):M==="]"?S.cdata+="]":(S.cdata+="]]"+M,S.state=k.CDATA);continue;case k.PROC_INST:M==="?"?S.state=k.PROC_INST_ENDING:U(M)?S.state=k.PROC_INST_BODY:S.procInstName+=M;continue;case k.PROC_INST_BODY:if(!S.procInstBody&&U(M))continue;M==="?"?S.state=k.PROC_INST_ENDING:S.procInstBody+=M;continue;case k.PROC_INST_ENDING:M===">"?(Ke(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=k.TEXT):(S.procInstBody+="?"+M,S.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:Ce(R,M)?S.tagName+=M:(Hn(S),M===">"?Rn(S):M==="/"?S.state=k.OPEN_TAG_SLASH:(U(M)||Fe(S,"Invalid character in tag name"),S.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:M===">"?(Rn(S,!0),ni(S)):(Fe(S,"Forward-slash in opening tag not followed by >"),S.state=k.ATTRIB);continue;case k.ATTRIB:if(U(M))continue;M===">"?Rn(S):M==="/"?S.state=k.OPEN_TAG_SLASH:Ce(C,M)?(S.attribName=M,S.attribValue="",S.state=k.ATTRIB_NAME):Fe(S,"Invalid attribute name");continue;case k.ATTRIB_NAME:M==="="?S.state=k.ATTRIB_VALUE:M===">"?(Fe(S,"Attribute without value"),S.attribValue=S.attribName,en(S),Rn(S)):U(M)?S.state=k.ATTRIB_NAME_SAW_WHITE:Ce(R,M)?S.attribName+=M:Fe(S,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if(M==="=")S.state=k.ATTRIB_VALUE;else{if(U(M))continue;Fe(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Ke(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",M===">"?Rn(S):Ce(C,M)?(S.attribName=M,S.state=k.ATTRIB_NAME):(Fe(S,"Invalid attribute name"),S.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(U(M))continue;J(M)?(S.q=M,S.state=k.ATTRIB_VALUE_QUOTED):(Fe(S,"Unquoted attribute value"),S.state=k.ATTRIB_VALUE_UNQUOTED,S.attribValue=M);continue;case k.ATTRIB_VALUE_QUOTED:if(M!==S.q){M==="&"?S.state=k.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=M;continue}en(S),S.q="",S.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:U(M)?S.state=k.ATTRIB:M===">"?Rn(S):M==="/"?S.state=k.OPEN_TAG_SLASH:Ce(C,M)?(Fe(S,"No whitespace between attributes"),S.attribName=M,S.attribValue="",S.state=k.ATTRIB_NAME):Fe(S,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(!re(M)){M==="&"?S.state=k.ATTRIB_VALUE_ENTITY_U:S.attribValue+=M;continue}en(S),M===">"?Rn(S):S.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(S.tagName)M===">"?ni(S):Ce(R,M)?S.tagName+=M:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=k.SCRIPT):(U(M)||Fe(S,"Invalid tagname in closing tag"),S.state=k.CLOSE_TAG_SAW_WHITE);else{if(U(M))continue;st(C,M)?S.script?(S.script+="</"+M,S.state=k.SCRIPT):Fe(S,"Invalid tagname in closing tag."):S.tagName=M}continue;case k.CLOSE_TAG_SAW_WHITE:if(U(M))continue;M===">"?ni(S):Fe(S,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:var je,Et;switch(S.state){case k.TEXT_ENTITY:je=k.TEXT,Et="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:je=k.ATTRIB_VALUE_QUOTED,Et="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:je=k.ATTRIB_VALUE_UNQUOTED,Et="attribValue";break}if(M===";")if(S.opt.unparsedEntities){var sn=Re(S);S.entity="",S.state=je,S.write(sn)}else S[Et]+=Re(S),S.entity="",S.state=je;else Ce(S.entity.length?F:L,M)?S.entity+=M:(Fe(S,"Invalid character in entity name"),S[Et]+="&"+S.entity+M,S.entity="",S.state=je);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}a(Qe,"write");String.fromCodePoint||function(){var O=String.fromCharCode,S=Math.floor,Q=a(function(){var M=16384,Le=[],ct,je,Et=-1,sn=arguments.length;if(!sn)return"";for(var tn="";++Et<sn;){var Mt=Number(arguments[Et]);if(!isFinite(Mt)||Mt<0||Mt>1114111||S(Mt)!==Mt)throw RangeError("Invalid code point: "+Mt);Mt<=65535?Le.push(Mt):(Mt-=65536,ct=(Mt>>10)+55296,je=Mt%1024+56320,Le.push(ct,je)),(Et+1===sn||Le.length>M)&&(tn+=O.apply(null,Le),Le.length=0)}return tn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Q,configurable:!0,writable:!0}):String.fromCodePoint=Q}()})(typeof vg>"u"?vg.sax={}:vg)});var Tg=Ve((Qq,sL)=>{sL.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var Eg=Ve((zq,cL)=>{var YG=Tg().isArray;cL.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!YG(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}});var RT=Ve((qq,hL)=>{var QG=aL(),zG={on:function(){},parse:function(){}},et=Eg(),ml=Tg().isArray,G,NT=!0,$e;function qG(e){return G=et.copyOptions(e),et.ensureFlagExists("ignoreDeclaration",G),et.ensureFlagExists("ignoreInstruction",G),et.ensureFlagExists("ignoreAttributes",G),et.ensureFlagExists("ignoreText",G),et.ensureFlagExists("ignoreComment",G),et.ensureFlagExists("ignoreCdata",G),et.ensureFlagExists("ignoreDoctype",G),et.ensureFlagExists("compact",G),et.ensureFlagExists("alwaysChildren",G),et.ensureFlagExists("addParent",G),et.ensureFlagExists("trim",G),et.ensureFlagExists("nativeType",G),et.ensureFlagExists("nativeTypeAttributes",G),et.ensureFlagExists("sanitize",G),et.ensureFlagExists("instructionHasAttributes",G),et.ensureFlagExists("captureSpacesBetweenElements",G),et.ensureAlwaysArrayExists(G),et.ensureKeyExists("declaration",G),et.ensureKeyExists("instruction",G),et.ensureKeyExists("attributes",G),et.ensureKeyExists("text",G),et.ensureKeyExists("comment",G),et.ensureKeyExists("cdata",G),et.ensureKeyExists("doctype",G),et.ensureKeyExists("type",G),et.ensureKeyExists("name",G),et.ensureKeyExists("elements",G),et.ensureKeyExists("parent",G),et.checkFnExists("doctype",G),et.checkFnExists("instruction",G),et.checkFnExists("cdata",G),et.checkFnExists("comment",G),et.checkFnExists("text",G),et.checkFnExists("instructionName",G),et.checkFnExists("elementName",G),et.checkFnExists("attributeName",G),et.checkFnExists("attributeValue",G),et.checkFnExists("attributes",G),G}a(qG,"validateOptions");function gL(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}a(gL,"nativeType");function nu(e,t){var n;if(G.compact){if(!$e[G[e+"Key"]]&&(ml(G.alwaysArray)?G.alwaysArray.indexOf(G[e+"Key"])!==-1:G.alwaysArray)&&($e[G[e+"Key"]]=[]),$e[G[e+"Key"]]&&!ml($e[G[e+"Key"]])&&($e[G[e+"Key"]]=[$e[G[e+"Key"]]]),e+"Fn"in G&&typeof t=="string"&&(t=G[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in G||"instructionNameFn"in G)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in G)t[n]=G.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[G.instructionNameFn(n,i,$e)]=i}}ml($e[G[e+"Key"]])?$e[G[e+"Key"]].push(t):$e[G[e+"Key"]]=t}else{$e[G.elementsKey]||($e[G.elementsKey]=[]);var r={};if(r[G.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[G.nameKey]="instructionNameFn"in G?G.instructionNameFn(n,t,$e):n,G.instructionHasAttributes?(r[G.attributesKey]=t[n][G.attributesKey],"instructionFn"in G&&(r[G.attributesKey]=G.instructionFn(r[G.attributesKey],n,$e))):("instructionFn"in G&&(t[n]=G.instructionFn(t[n],n,$e)),r[G.instructionKey]=t[n])}else e+"Fn"in G&&(t=G[e+"Fn"](t,$e)),r[G[e+"Key"]]=t;G.addParent&&(r[G.parentKey]=$e),$e[G.elementsKey].push(r)}}a(nu,"addField");function mL(e){if("attributesFn"in G&&e&&(e=G.attributesFn(e,$e)),(G.trim||"attributeValueFn"in G||"attributeNameFn"in G||G.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(G.trim&&(e[t]=e[t].trim()),G.nativeTypeAttributes&&(e[t]=gL(e[t])),"attributeValueFn"in G&&(e[t]=G.attributeValueFn(e[t],t,$e)),"attributeNameFn"in G)){var n=e[t];delete e[t],e[G.attributeNameFn(t,e[t],$e)]=n}}return e}a(mL,"manipulateAttributes");function ZG(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||G.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=mL(t)}if(e.name.toLowerCase()==="xml"){if(G.ignoreDeclaration)return;$e[G.declarationKey]={},Object.keys(t).length&&($e[G.declarationKey][G.attributesKey]=t),G.addParent&&($e[G.declarationKey][G.parentKey]=$e)}else{if(G.ignoreInstruction)return;G.trim&&(e.body=e.body.trim());var r={};G.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][G.attributesKey]=t):r[e.name]=e.body,nu("instruction",r)}}a(ZG,"onInstruction");function lL(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=mL(t),"elementNameFn"in G&&(e=G.elementNameFn(e,$e)),G.compact){if(n={},!G.ignoreAttributes&&t&&Object.keys(t).length){n[G.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[G.attributesKey][i]=t[i])}!(e in $e)&&(ml(G.alwaysArray)?G.alwaysArray.indexOf(e)!==-1:G.alwaysArray)&&($e[e]=[]),$e[e]&&!ml($e[e])&&($e[e]=[$e[e]]),ml($e[e])?$e[e].push(n):$e[e]=n}else $e[G.elementsKey]||($e[G.elementsKey]=[]),n={},n[G.typeKey]="element",n[G.nameKey]=e,!G.ignoreAttributes&&t&&Object.keys(t).length&&(n[G.attributesKey]=t),G.alwaysChildren&&(n[G.elementsKey]=[]),$e[G.elementsKey].push(n);n[G.parentKey]=$e,$e=n}a(lL,"onStartElement");function fL(e){G.ignoreText||!e.trim()&&!G.captureSpacesBetweenElements||(G.trim&&(e=e.trim()),G.nativeType&&(e=gL(e)),G.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),nu("text",e))}a(fL,"onText");function uL(e){G.ignoreComment||(G.trim&&(e=e.trim()),nu("comment",e))}a(uL,"onComment");function pL(e){var t=$e[G.parentKey];G.addParent||delete $e[G.parentKey],$e=t}a(pL,"onEndElement");function eH(e){G.ignoreCdata||(G.trim&&(e=e.trim()),nu("cdata",e))}a(eH,"onCdata");function tH(e){G.ignoreDoctype||(e=e.replace(/^ /,""),G.trim&&(e=e.trim()),nu("doctype",e))}a(tH,"onDoctype");function dL(e){e.note=e}a(dL,"onError");hL.exports=function(e,t){var n=NT?QG.parser(!0,{}):n=new zG.Parser("UTF-8"),i={};if($e=i,G=qG(t),NT?(n.opt={strictEntities:!0},n.onopentag=lL,n.ontext=fL,n.oncomment=uL,n.onclosetag=pL,n.onerror=dL,n.oncdata=eH,n.ondoctype=tH,n.onprocessinginstruction=ZG):(n.on("startElement",lL),n.on("text",fL),n.on("comment",uL),n.on("endElement",pL),n.on("error",dL)),NT)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[G.elementsKey]){var r=i[G.elementsKey];delete i[G.elementsKey],i[G.elementsKey]=r,delete i.text}return i}});var TL=Ve((e9,vL)=>{var yL=Eg(),nH=RT();function iH(e){var t=yL.copyOptions(e);return yL.ensureSpacesExists(t),t}a(iH,"validateOptions");vL.exports=function(e,t){var n,i,r,o;return n=iH(t),i=nH(e,n),o="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===o?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var FT=Ve((n9,CL)=>{var ot=Eg(),rH=Tg().isArray,vi,Ti;function oH(e){var t=ot.copyOptions(e);return ot.ensureFlagExists("ignoreDeclaration",t),ot.ensureFlagExists("ignoreInstruction",t),ot.ensureFlagExists("ignoreAttributes",t),ot.ensureFlagExists("ignoreText",t),ot.ensureFlagExists("ignoreComment",t),ot.ensureFlagExists("ignoreCdata",t),ot.ensureFlagExists("ignoreDoctype",t),ot.ensureFlagExists("compact",t),ot.ensureFlagExists("indentText",t),ot.ensureFlagExists("indentCdata",t),ot.ensureFlagExists("indentAttributes",t),ot.ensureFlagExists("indentInstruction",t),ot.ensureFlagExists("fullTagEmptyElement",t),ot.ensureFlagExists("noQuotesForNativeAttributes",t),ot.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ot.ensureKeyExists("declaration",t),ot.ensureKeyExists("instruction",t),ot.ensureKeyExists("attributes",t),ot.ensureKeyExists("text",t),ot.ensureKeyExists("comment",t),ot.ensureKeyExists("cdata",t),ot.ensureKeyExists("doctype",t),ot.ensureKeyExists("type",t),ot.ensureKeyExists("name",t),ot.ensureKeyExists("elements",t),ot.checkFnExists("doctype",t),ot.checkFnExists("instruction",t),ot.checkFnExists("cdata",t),ot.checkFnExists("comment",t),ot.checkFnExists("text",t),ot.checkFnExists("instructionName",t),ot.checkFnExists("elementName",t),ot.checkFnExists("attributeName",t),ot.checkFnExists("attributeValue",t),ot.checkFnExists("attributes",t),ot.checkFnExists("fullTagEmptyElement",t),t}a(oH,"validateOptions");function Co(e,t,n){return(!n&&e.spaces?`
|
|
27
|
+
`?(S.line++,S.column=0):S.column++);S.textNode+=O.substring(Le,Q-1)}M==="<"&&!(S.sawRoot&&S.closedRoot&&!S.strict)?(S.state=k.OPEN_WAKA,S.startTagPosition=S.position):(!U(M)&&(!S.sawRoot||S.closedRoot)&&Fe(S,"Text data outside of root node."),M==="&"?S.state=k.TEXT_ENTITY:S.textNode+=M);continue;case k.SCRIPT:M==="<"?S.state=k.SCRIPT_ENDING:S.script+=M;continue;case k.SCRIPT_ENDING:M==="/"?S.state=k.CLOSE_TAG:(S.script+="<"+M,S.state=k.SCRIPT);continue;case k.OPEN_WAKA:if(M==="!")S.state=k.SGML_DECL,S.sgmlDecl="";else if(!U(M))if(Ce(C,M))S.state=k.OPEN_TAG,S.tagName=M;else if(M==="/")S.state=k.CLOSE_TAG,S.tagName="";else if(M==="?")S.state=k.PROC_INST,S.procInstName=S.procInstBody="";else{if(Fe(S,"Unencoded <"),S.startTagPosition+1<S.position){var ct=S.position-S.startTagPosition;M=new Array(ct).join(" ")+M}S.textNode+="<"+M,S.state=k.TEXT}continue;case k.SGML_DECL:(S.sgmlDecl+M).toUpperCase()===d?(Ke(S,"onopencdata"),S.state=k.CDATA,S.sgmlDecl="",S.cdata=""):S.sgmlDecl+M==="--"?(S.state=k.COMMENT,S.comment="",S.sgmlDecl=""):(S.sgmlDecl+M).toUpperCase()===m?(S.state=k.DOCTYPE,(S.doctype||S.sawRoot)&&Fe(S,"Inappropriately located doctype declaration"),S.doctype="",S.sgmlDecl=""):M===">"?(Ke(S,"onsgmldeclaration",S.sgmlDecl),S.sgmlDecl="",S.state=k.TEXT):(J(M)&&(S.state=k.SGML_DECL_QUOTED),S.sgmlDecl+=M);continue;case k.SGML_DECL_QUOTED:M===S.q&&(S.state=k.SGML_DECL,S.q=""),S.sgmlDecl+=M;continue;case k.DOCTYPE:M===">"?(S.state=k.TEXT,Ke(S,"ondoctype",S.doctype),S.doctype=!0):(S.doctype+=M,M==="["?S.state=k.DOCTYPE_DTD:J(M)&&(S.state=k.DOCTYPE_QUOTED,S.q=M));continue;case k.DOCTYPE_QUOTED:S.doctype+=M,M===S.q&&(S.q="",S.state=k.DOCTYPE);continue;case k.DOCTYPE_DTD:S.doctype+=M,M==="]"?S.state=k.DOCTYPE:J(M)&&(S.state=k.DOCTYPE_DTD_QUOTED,S.q=M);continue;case k.DOCTYPE_DTD_QUOTED:S.doctype+=M,M===S.q&&(S.state=k.DOCTYPE_DTD,S.q="");continue;case k.COMMENT:M==="-"?S.state=k.COMMENT_ENDING:S.comment+=M;continue;case k.COMMENT_ENDING:M==="-"?(S.state=k.COMMENT_ENDED,S.comment=Mi(S.opt,S.comment),S.comment&&Ke(S,"oncomment",S.comment),S.comment=""):(S.comment+="-"+M,S.state=k.COMMENT);continue;case k.COMMENT_ENDED:M!==">"?(Fe(S,"Malformed comment"),S.comment+="--"+M,S.state=k.COMMENT):S.state=k.TEXT;continue;case k.CDATA:M==="]"?S.state=k.CDATA_ENDING:S.cdata+=M;continue;case k.CDATA_ENDING:M==="]"?S.state=k.CDATA_ENDING_2:(S.cdata+="]"+M,S.state=k.CDATA);continue;case k.CDATA_ENDING_2:M===">"?(S.cdata&&Ke(S,"oncdata",S.cdata),Ke(S,"onclosecdata"),S.cdata="",S.state=k.TEXT):M==="]"?S.cdata+="]":(S.cdata+="]]"+M,S.state=k.CDATA);continue;case k.PROC_INST:M==="?"?S.state=k.PROC_INST_ENDING:U(M)?S.state=k.PROC_INST_BODY:S.procInstName+=M;continue;case k.PROC_INST_BODY:if(!S.procInstBody&&U(M))continue;M==="?"?S.state=k.PROC_INST_ENDING:S.procInstBody+=M;continue;case k.PROC_INST_ENDING:M===">"?(Ke(S,"onprocessinginstruction",{name:S.procInstName,body:S.procInstBody}),S.procInstName=S.procInstBody="",S.state=k.TEXT):(S.procInstBody+="?"+M,S.state=k.PROC_INST_BODY);continue;case k.OPEN_TAG:Ce(R,M)?S.tagName+=M:(Hn(S),M===">"?Rn(S):M==="/"?S.state=k.OPEN_TAG_SLASH:(U(M)||Fe(S,"Invalid character in tag name"),S.state=k.ATTRIB));continue;case k.OPEN_TAG_SLASH:M===">"?(Rn(S,!0),ni(S)):(Fe(S,"Forward-slash in opening tag not followed by >"),S.state=k.ATTRIB);continue;case k.ATTRIB:if(U(M))continue;M===">"?Rn(S):M==="/"?S.state=k.OPEN_TAG_SLASH:Ce(C,M)?(S.attribName=M,S.attribValue="",S.state=k.ATTRIB_NAME):Fe(S,"Invalid attribute name");continue;case k.ATTRIB_NAME:M==="="?S.state=k.ATTRIB_VALUE:M===">"?(Fe(S,"Attribute without value"),S.attribValue=S.attribName,en(S),Rn(S)):U(M)?S.state=k.ATTRIB_NAME_SAW_WHITE:Ce(R,M)?S.attribName+=M:Fe(S,"Invalid attribute name");continue;case k.ATTRIB_NAME_SAW_WHITE:if(M==="=")S.state=k.ATTRIB_VALUE;else{if(U(M))continue;Fe(S,"Attribute without value"),S.tag.attributes[S.attribName]="",S.attribValue="",Ke(S,"onattribute",{name:S.attribName,value:""}),S.attribName="",M===">"?Rn(S):Ce(C,M)?(S.attribName=M,S.state=k.ATTRIB_NAME):(Fe(S,"Invalid attribute name"),S.state=k.ATTRIB)}continue;case k.ATTRIB_VALUE:if(U(M))continue;J(M)?(S.q=M,S.state=k.ATTRIB_VALUE_QUOTED):(Fe(S,"Unquoted attribute value"),S.state=k.ATTRIB_VALUE_UNQUOTED,S.attribValue=M);continue;case k.ATTRIB_VALUE_QUOTED:if(M!==S.q){M==="&"?S.state=k.ATTRIB_VALUE_ENTITY_Q:S.attribValue+=M;continue}en(S),S.q="",S.state=k.ATTRIB_VALUE_CLOSED;continue;case k.ATTRIB_VALUE_CLOSED:U(M)?S.state=k.ATTRIB:M===">"?Rn(S):M==="/"?S.state=k.OPEN_TAG_SLASH:Ce(C,M)?(Fe(S,"No whitespace between attributes"),S.attribName=M,S.attribValue="",S.state=k.ATTRIB_NAME):Fe(S,"Invalid attribute name");continue;case k.ATTRIB_VALUE_UNQUOTED:if(!re(M)){M==="&"?S.state=k.ATTRIB_VALUE_ENTITY_U:S.attribValue+=M;continue}en(S),M===">"?Rn(S):S.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(S.tagName)M===">"?ni(S):Ce(R,M)?S.tagName+=M:S.script?(S.script+="</"+S.tagName,S.tagName="",S.state=k.SCRIPT):(U(M)||Fe(S,"Invalid tagname in closing tag"),S.state=k.CLOSE_TAG_SAW_WHITE);else{if(U(M))continue;st(C,M)?S.script?(S.script+="</"+M,S.state=k.SCRIPT):Fe(S,"Invalid tagname in closing tag."):S.tagName=M}continue;case k.CLOSE_TAG_SAW_WHITE:if(U(M))continue;M===">"?ni(S):Fe(S,"Invalid characters in closing tag");continue;case k.TEXT_ENTITY:case k.ATTRIB_VALUE_ENTITY_Q:case k.ATTRIB_VALUE_ENTITY_U:var je,Et;switch(S.state){case k.TEXT_ENTITY:je=k.TEXT,Et="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:je=k.ATTRIB_VALUE_QUOTED,Et="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:je=k.ATTRIB_VALUE_UNQUOTED,Et="attribValue";break}if(M===";")if(S.opt.unparsedEntities){var sn=Re(S);S.entity="",S.state=je,S.write(sn)}else S[Et]+=Re(S),S.entity="",S.state=je;else Ce(S.entity.length?F:L,M)?S.entity+=M:(Fe(S,"Invalid character in entity name"),S[Et]+="&"+S.entity+M,S.entity="",S.state=je);continue;default:throw new Error(S,"Unknown state: "+S.state)}return S.position>=S.bufferCheckPosition&&i(S),S}a(Qe,"write");String.fromCodePoint||function(){var O=String.fromCharCode,S=Math.floor,Q=a(function(){var M=16384,Le=[],ct,je,Et=-1,sn=arguments.length;if(!sn)return"";for(var tn="";++Et<sn;){var Mt=Number(arguments[Et]);if(!isFinite(Mt)||Mt<0||Mt>1114111||S(Mt)!==Mt)throw RangeError("Invalid code point: "+Mt);Mt<=65535?Le.push(Mt):(Mt-=65536,ct=(Mt>>10)+55296,je=Mt%1024+56320,Le.push(ct,je)),(Et+1===sn||Le.length>M)&&(tn+=O.apply(null,Le),Le.length=0)}return tn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Q,configurable:!0,writable:!0}):String.fromCodePoint=Q}()})(typeof vg>"u"?vg.sax={}:vg)});var Tg=Ve((Zq,sL)=>{sL.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var Eg=Ve((e9,cL)=>{var YG=Tg().isArray;cL.exports={copyOptions:function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n},ensureFlagExists:function(e,t){(!(e in t)||typeof t[e]!="boolean")&&(t[e]=!1)},ensureSpacesExists:function(e){(!("spaces"in e)||typeof e.spaces!="number"&&typeof e.spaces!="string")&&(e.spaces=0)},ensureAlwaysArrayExists:function(e){(!("alwaysArray"in e)||typeof e.alwaysArray!="boolean"&&!YG(e.alwaysArray))&&(e.alwaysArray=!1)},ensureKeyExists:function(e,t){(!(e+"Key"in t)||typeof t[e+"Key"]!="string")&&(t[e+"Key"]=t.compact?"_"+e:e)},checkFnExists:function(e,t){return e+"Fn"in t}}});var RT=Ve((t9,hL)=>{var QG=aL(),zG={on:function(){},parse:function(){}},tt=Eg(),hl=Tg().isArray,G,NT=!0,$e;function qG(e){return G=tt.copyOptions(e),tt.ensureFlagExists("ignoreDeclaration",G),tt.ensureFlagExists("ignoreInstruction",G),tt.ensureFlagExists("ignoreAttributes",G),tt.ensureFlagExists("ignoreText",G),tt.ensureFlagExists("ignoreComment",G),tt.ensureFlagExists("ignoreCdata",G),tt.ensureFlagExists("ignoreDoctype",G),tt.ensureFlagExists("compact",G),tt.ensureFlagExists("alwaysChildren",G),tt.ensureFlagExists("addParent",G),tt.ensureFlagExists("trim",G),tt.ensureFlagExists("nativeType",G),tt.ensureFlagExists("nativeTypeAttributes",G),tt.ensureFlagExists("sanitize",G),tt.ensureFlagExists("instructionHasAttributes",G),tt.ensureFlagExists("captureSpacesBetweenElements",G),tt.ensureAlwaysArrayExists(G),tt.ensureKeyExists("declaration",G),tt.ensureKeyExists("instruction",G),tt.ensureKeyExists("attributes",G),tt.ensureKeyExists("text",G),tt.ensureKeyExists("comment",G),tt.ensureKeyExists("cdata",G),tt.ensureKeyExists("doctype",G),tt.ensureKeyExists("type",G),tt.ensureKeyExists("name",G),tt.ensureKeyExists("elements",G),tt.ensureKeyExists("parent",G),tt.checkFnExists("doctype",G),tt.checkFnExists("instruction",G),tt.checkFnExists("cdata",G),tt.checkFnExists("comment",G),tt.checkFnExists("text",G),tt.checkFnExists("instructionName",G),tt.checkFnExists("elementName",G),tt.checkFnExists("attributeName",G),tt.checkFnExists("attributeValue",G),tt.checkFnExists("attributes",G),G}a(qG,"validateOptions");function gL(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}a(gL,"nativeType");function nu(e,t){var n;if(G.compact){if(!$e[G[e+"Key"]]&&(hl(G.alwaysArray)?G.alwaysArray.indexOf(G[e+"Key"])!==-1:G.alwaysArray)&&($e[G[e+"Key"]]=[]),$e[G[e+"Key"]]&&!hl($e[G[e+"Key"]])&&($e[G[e+"Key"]]=[$e[G[e+"Key"]]]),e+"Fn"in G&&typeof t=="string"&&(t=G[e+"Fn"](t,$e)),e==="instruction"&&("instructionFn"in G||"instructionNameFn"in G)){for(n in t)if(t.hasOwnProperty(n))if("instructionFn"in G)t[n]=G.instructionFn(t[n],n,$e);else{var i=t[n];delete t[n],t[G.instructionNameFn(n,i,$e)]=i}}hl($e[G[e+"Key"]])?$e[G[e+"Key"]].push(t):$e[G[e+"Key"]]=t}else{$e[G.elementsKey]||($e[G.elementsKey]=[]);var r={};if(r[G.typeKey]=e,e==="instruction"){for(n in t)if(t.hasOwnProperty(n))break;r[G.nameKey]="instructionNameFn"in G?G.instructionNameFn(n,t,$e):n,G.instructionHasAttributes?(r[G.attributesKey]=t[n][G.attributesKey],"instructionFn"in G&&(r[G.attributesKey]=G.instructionFn(r[G.attributesKey],n,$e))):("instructionFn"in G&&(t[n]=G.instructionFn(t[n],n,$e)),r[G.instructionKey]=t[n])}else e+"Fn"in G&&(t=G[e+"Fn"](t,$e)),r[G[e+"Key"]]=t;G.addParent&&(r[G.parentKey]=$e),$e[G.elementsKey].push(r)}}a(nu,"addField");function mL(e){if("attributesFn"in G&&e&&(e=G.attributesFn(e,$e)),(G.trim||"attributeValueFn"in G||"attributeNameFn"in G||G.nativeTypeAttributes)&&e){var t;for(t in e)if(e.hasOwnProperty(t)&&(G.trim&&(e[t]=e[t].trim()),G.nativeTypeAttributes&&(e[t]=gL(e[t])),"attributeValueFn"in G&&(e[t]=G.attributeValueFn(e[t],t,$e)),"attributeNameFn"in G)){var n=e[t];delete e[t],e[G.attributeNameFn(t,e[t],$e)]=n}}return e}a(mL,"manipulateAttributes");function ZG(e){var t={};if(e.body&&(e.name.toLowerCase()==="xml"||G.instructionHasAttributes)){for(var n=/([\w:-]+)\s*=\s*(?:"([^"]*)"|'([^']*)'|(\w+))\s*/g,i;(i=n.exec(e.body))!==null;)t[i[1]]=i[2]||i[3]||i[4];t=mL(t)}if(e.name.toLowerCase()==="xml"){if(G.ignoreDeclaration)return;$e[G.declarationKey]={},Object.keys(t).length&&($e[G.declarationKey][G.attributesKey]=t),G.addParent&&($e[G.declarationKey][G.parentKey]=$e)}else{if(G.ignoreInstruction)return;G.trim&&(e.body=e.body.trim());var r={};G.instructionHasAttributes&&Object.keys(t).length?(r[e.name]={},r[e.name][G.attributesKey]=t):r[e.name]=e.body,nu("instruction",r)}}a(ZG,"onInstruction");function lL(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=mL(t),"elementNameFn"in G&&(e=G.elementNameFn(e,$e)),G.compact){if(n={},!G.ignoreAttributes&&t&&Object.keys(t).length){n[G.attributesKey]={};var i;for(i in t)t.hasOwnProperty(i)&&(n[G.attributesKey][i]=t[i])}!(e in $e)&&(hl(G.alwaysArray)?G.alwaysArray.indexOf(e)!==-1:G.alwaysArray)&&($e[e]=[]),$e[e]&&!hl($e[e])&&($e[e]=[$e[e]]),hl($e[e])?$e[e].push(n):$e[e]=n}else $e[G.elementsKey]||($e[G.elementsKey]=[]),n={},n[G.typeKey]="element",n[G.nameKey]=e,!G.ignoreAttributes&&t&&Object.keys(t).length&&(n[G.attributesKey]=t),G.alwaysChildren&&(n[G.elementsKey]=[]),$e[G.elementsKey].push(n);n[G.parentKey]=$e,$e=n}a(lL,"onStartElement");function fL(e){G.ignoreText||!e.trim()&&!G.captureSpacesBetweenElements||(G.trim&&(e=e.trim()),G.nativeType&&(e=gL(e)),G.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),nu("text",e))}a(fL,"onText");function uL(e){G.ignoreComment||(G.trim&&(e=e.trim()),nu("comment",e))}a(uL,"onComment");function pL(e){var t=$e[G.parentKey];G.addParent||delete $e[G.parentKey],$e=t}a(pL,"onEndElement");function eH(e){G.ignoreCdata||(G.trim&&(e=e.trim()),nu("cdata",e))}a(eH,"onCdata");function tH(e){G.ignoreDoctype||(e=e.replace(/^ /,""),G.trim&&(e=e.trim()),nu("doctype",e))}a(tH,"onDoctype");function dL(e){e.note=e}a(dL,"onError");hL.exports=function(e,t){var n=NT?QG.parser(!0,{}):n=new zG.Parser("UTF-8"),i={};if($e=i,G=qG(t),NT?(n.opt={strictEntities:!0},n.onopentag=lL,n.ontext=fL,n.oncomment=uL,n.onclosetag=pL,n.onerror=dL,n.oncdata=eH,n.ondoctype=tH,n.onprocessinginstruction=ZG):(n.on("startElement",lL),n.on("text",fL),n.on("comment",uL),n.on("endElement",pL),n.on("error",dL)),NT)n.write(e).close();else if(!n.parse(e))throw new Error("XML parsing error: "+n.getError());if(i[G.elementsKey]){var r=i[G.elementsKey];delete i[G.elementsKey],i[G.elementsKey]=r,delete i.text}return i}});var TL=Ve((i9,vL)=>{var yL=Eg(),nH=RT();function iH(e){var t=yL.copyOptions(e);return yL.ensureSpacesExists(t),t}a(iH,"validateOptions");vL.exports=function(e,t){var n,i,r,o;return n=iH(t),i=nH(e,n),o="compact"in n&&n.compact?"_parent":"parent","addParent"in n&&n.addParent?r=JSON.stringify(i,function(s,l){return s===o?"_":l},n.spaces):r=JSON.stringify(i,null,n.spaces),r.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}});var FT=Ve((o9,CL)=>{var ot=Eg(),rH=Tg().isArray,vi,Ti;function oH(e){var t=ot.copyOptions(e);return ot.ensureFlagExists("ignoreDeclaration",t),ot.ensureFlagExists("ignoreInstruction",t),ot.ensureFlagExists("ignoreAttributes",t),ot.ensureFlagExists("ignoreText",t),ot.ensureFlagExists("ignoreComment",t),ot.ensureFlagExists("ignoreCdata",t),ot.ensureFlagExists("ignoreDoctype",t),ot.ensureFlagExists("compact",t),ot.ensureFlagExists("indentText",t),ot.ensureFlagExists("indentCdata",t),ot.ensureFlagExists("indentAttributes",t),ot.ensureFlagExists("indentInstruction",t),ot.ensureFlagExists("fullTagEmptyElement",t),ot.ensureFlagExists("noQuotesForNativeAttributes",t),ot.ensureSpacesExists(t),typeof t.spaces=="number"&&(t.spaces=Array(t.spaces+1).join(" ")),ot.ensureKeyExists("declaration",t),ot.ensureKeyExists("instruction",t),ot.ensureKeyExists("attributes",t),ot.ensureKeyExists("text",t),ot.ensureKeyExists("comment",t),ot.ensureKeyExists("cdata",t),ot.ensureKeyExists("doctype",t),ot.ensureKeyExists("type",t),ot.ensureKeyExists("name",t),ot.ensureKeyExists("elements",t),ot.checkFnExists("doctype",t),ot.checkFnExists("instruction",t),ot.checkFnExists("cdata",t),ot.checkFnExists("comment",t),ot.checkFnExists("text",t),ot.checkFnExists("instructionName",t),ot.checkFnExists("elementName",t),ot.checkFnExists("attributeName",t),ot.checkFnExists("attributeValue",t),ot.checkFnExists("attributes",t),ot.checkFnExists("fullTagEmptyElement",t),t}a(oH,"validateOptions");function Co(e,t,n){return(!n&&e.spaces?`
|
|
28
28
|
`:"")+Array(t+1).join(e.spaces)}a(Co,"writeIndentation");function bg(e,t,n){if(t.ignoreAttributes)return"";"attributesFn"in t&&(e=t.attributesFn(e,Ti,vi));var i,r,o,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,"""),o="attributeNameFn"in t?t.attributeNameFn(i,r,Ti,vi):i,l.push(t.spaces&&t.indentAttributes?Co(t,n+1,!1):" "),l.push(o+"="+s+("attributeValueFn"in t?t.attributeValueFn(r,i,Ti,vi):r)+s));return e&&Object.keys(e).length&&t.spaces&&t.indentAttributes&&l.push(Co(t,n,!1)),l.join("")}a(bg,"writeAttributes");function EL(e,t,n){return vi=e,Ti="xml",t.ignoreDeclaration?"":"<?xml"+bg(e[t.attributesKey],t,n)+"?>"}a(EL,"writeDeclaration");function bL(e,t,n){if(t.ignoreInstruction)return"";var i;for(i in e)if(e.hasOwnProperty(i))break;var r="instructionNameFn"in t?t.instructionNameFn(i,e[i],Ti,vi):i;if(typeof e[i]=="object")return vi=e,Ti=r,"<?"+r+bg(e[i][t.attributesKey],t,n)+"?>";var o=e[i]?e[i]:"";return"instructionFn"in t&&(o=t.instructionFn(o,i,Ti,vi)),"<?"+r+(o?" "+o:"")+"?>"}a(bL,"writeInstruction");function AL(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ti,vi):e)+"-->"}a(AL,"writeComment");function SL(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ti,vi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}a(SL,"writeCdata");function xL(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ti,vi):e)+">"}a(xL,"writeDoctype");function LT(e,t){return t.ignoreText?"":(e=""+e,e=e.replace(/&/g,"&"),e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),"textFn"in t?t.textFn(e,Ti,vi):e)}a(LT,"writeText");function aH(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}a(aH,"hasContent");function sH(e,t,n){vi=e,Ti=e.name;var i=[],r="elementNameFn"in t?t.elementNameFn(e.name,e):e.name;i.push("<"+r),e[t.attributesKey]&&i.push(bg(e[t.attributesKey],t,n));var o=e[t.elementsKey]&&e[t.elementsKey].length||e[t.attributesKey]&&e[t.attributesKey]["xml:space"]==="preserve";return o||("fullTagEmptyElementFn"in t?o=t.fullTagEmptyElementFn(e.name,e):o=t.fullTagEmptyElement),o?(i.push(">"),e[t.elementsKey]&&e[t.elementsKey].length&&(i.push(PL(e[t.elementsKey],t,n+1)),vi=e,Ti=e.name),i.push(t.spaces&&aH(e,t)?`
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}a(sH,"writeElement");function PL(e,t,n,i){return e.reduce(function(r,o){var s=Co(t,n,i&&!r);switch(o.type){case"element":return r+s+sH(o,t,n);case"comment":return r+s+AL(o[t.commentKey],t);case"doctype":return r+s+xL(o[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+SL(o[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+LT(o[t.textKey],t);case"instruction":var l={};return l[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],r+(t.indentInstruction?s:"")+bL(l,t,n)}},"")}a(PL,"writeElements");function IL(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}a(IL,"hasContentCompact");function cH(e,t,n,i,r){vi=e,Ti=t;var o="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?"<"+o+"></"+o+">":"<"+o+"/>";var s=[];if(t){if(s.push("<"+o),typeof e!="object")return s.push(">"+LT(e,n)+"</"+o+">"),s.join("");e[n.attributesKey]&&s.push(bg(e[n.attributesKey],n,i));var l=IL(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(OL(e,n,i+1,!1)),vi=e,Ti=t,t&&s.push((r?Co(n,i,!1):"")+"</"+o+">"),s.join("")}a(cH,"writeElementCompact");function OL(e,t,n,i){var r,o,s,l=[];for(o in e)if(e.hasOwnProperty(o))for(s=rH(e[o])?e[o]:[e[o]],r=0;r<s.length;++r){switch(o){case t.declarationKey:l.push(EL(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Co(t,n,i):"")+bL(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Co(t,n,i):"")+LT(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Co(t,n,i):"")+SL(s[r],t));break;case t.doctypeKey:l.push(Co(t,n,i)+xL(s[r],t));break;case t.commentKey:l.push(Co(t,n,i)+AL(s[r],t));break;default:l.push(Co(t,n,i)+cH(s[r],o,t,n,IL(s[r],t)))}i=i&&!l.length}return l.join("")}a(OL,"writeElementsCompact");CL.exports=function(e,t){t=oH(t);var n=[];return vi=e,Ti="_root_",t.compact?n.push(OL(e,t,0,!0)):(e[t.declarationKey]&&n.push(EL(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(PL(e[t.elementsKey],t,0,!n.length))),n.join("")}});var RL=Ve((r9,NL)=>{var lH=FT();NL.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 lH(n,t)}});var ic=Ve((o9,LL)=>{var fH=RT(),uH=TL(),pH=FT(),dH=RL();LL.exports={xml2js:fH,xml2json:uH,js2xml:pH,json2xml:dH}});var VL=Ve(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.convertEntityTypeAnnotations=Bi.convertPropertyAnnotations=Bi.convertNavigationPropertyAnnotations=Bi.convertEntitySetAnnotations=Bi.convertGenericAnnotations=Bi.convertV2Annotations=void 0;function gH(e,t,n){let i=[];switch(t){case"EntitySet":_L(e,i);break;case"EntityType":ML(e,i);break;case"NavigationProperty":DL(e,n,i);break;case"Property":wL(e,n,i);break;case"Singleton":break;default:break}return FL(e,n,i),i}a(gH,"convertV2Annotations");Bi.convertV2Annotations=gH;function FL(e,t,n){function i(r,o){r&&n.push(o)}if(a(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}]}})}a(FL,"convertGenericAnnotations");Bi.convertGenericAnnotations=FL;function _L(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"]}}]}})}a(_L,"convertEntitySetAnnotations");Bi.convertEntitySetAnnotations=_L;function DL(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}}]}}}]}]}}]}})}a(DL,"convertNavigationPropertyAnnotations");Bi.convertNavigationPropertyAnnotations=DL;function wL(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}]}}]}})}a(wL,"convertPropertyAnnotations");Bi.convertPropertyAnnotations=wL;function ML(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:[]}}]}})}a(ML,"convertEntityTypeAnnotations");Bi.convertEntityTypeAnnotations=ML});var HL=Ve(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.parse=void 0;var mH=ic(),Be=CT(),iu=VL(),$L=/^Collection\((.+)\)$/;function hH(e){return e.Type!==null&&e.Type!==void 0}a(hH,"isV4NavProperty");function yH(e){return e.map(t=>t._attributes.Name)}a(yH,"getEntityTypeKeys");function UL(e,t,n,i){return e.reduce((r,o)=>{let s={_type:"Property",name:o._attributes.Name,fullyQualifiedName:`${n}/${o._attributes.Name}`,type:hl(o._attributes.Type).type};if(o._attributes.MaxLength&&(s.maxLength=parseInt(o._attributes.MaxLength,10)),o._attributes.Precision&&(s.precision=parseInt(o._attributes.Precision,10)),o._attributes.Scale&&(s.scale=parseInt(o._attributes.Scale,10)),o._attributes.Nullable&&(s.nullable=o._attributes.Nullable!=="false"),o._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(o._attributes.DefaultValue,10);break;case"Edm.Decimal":s.defaultValue=parseFloat(o._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=o._attributes.DefaultValue==="true";break;default:s.defaultValue=o._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,iu.convertV2Annotations)(o._attributes,"Property",o._attributes.Name);return l.length>0&&i.push(rc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}a(UL,"parseProperties");function vH(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}a(vH,"parseReferentialConstraint");function TH(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),o=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&o!==void 0){let s=(0,Be.ensureArray)(i.Principal.PropertyRef),l=(0,Be.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(o=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,Be.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:o.type,targetProperty:l[p]._attributes.Name})}}return n},[])}a(TH,"parseV2ReferentialConstraint");function BL(e,t,n,i){return e.reduce((r,o)=>{let s=o._attributes;if(hH(s)){let l=s.Type.match($L),u=l!==null,p=No(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:vH((0,Be.ensureArray)(o.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 d=(0,iu.convertV2Annotations)(s,"NavigationProperty",s.Name);d.length>0&&i.push(rc(`${n}/${s.Name}`,d))}return r},[])}a(BL,"parseNavigationProperties");function EH(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,o=(0,Be.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:o}})}a(EH,"parseAssociationSets");function bH(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Be.ensureArray)(n.End).map(o=>({type:o._attributes.Type,role:o._attributes.Role,multiplicity:o._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:TH((0,Be.ensureArray)(n.ReferentialConstraint),r)}})}a(bH,"parseAssociations");function AH(e,t,n){return e.reduce((i,r)=>{let o=r.Key?yH((0,Be.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=UL((0,Be.ensureArray)(r.Property),o,s,t),p=BL((0,Be.ensureArray)(r.NavigationProperty),r,s,t),d={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,iu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(rc(d.fullyQualifiedName,m)),i.push(d),i},[])}a(AH,"parseEntityTypes");function SH(e,t,n){return e.reduce((i,r)=>{let o=`${n}.${r._attributes.Name}`,{entityProperties:s}=UL((0,Be.ensureArray)(r.Property),[],o,t),l=BL((0,Be.ensureArray)(r.NavigationProperty),r,o,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:o,properties:s,navigationProperties:l}),i},[])}a(SH,"parseComplexTypes");function xH(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},[])}a(xH,"parseTypeDefinitions");function PH(e,t,n,i){return e.map(o=>{let s=Object.fromEntries((0,Be.ensureArray)(o.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:o._attributes.Name,entityTypeName:No(o._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,iu.convertV2Annotations)(o._attributes,"EntitySet",o._attributes.Name);return u.length>0&&i.push(rc(l.fullyQualifiedName,u)),l})}a(PH,"parseEntitySets");function IH(e,t,n,i){return e.map(o=>{let s=Object.fromEntries((0,Be.ensureArray)(o.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:o._attributes.Name,entityTypeName:No(o._attributes.Type),nullable:o._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,iu.convertV2Annotations)(o._attributes,"Singleton",o._attributes.Name);return u.length>0&&i.push(rc(l.fullyQualifiedName,u)),l})}a(IH,"parseSingletons");function kL(e,t,n){return e.map(i=>{let r=(0,Be.ensureArray)(i.Parameter),o=i._attributes.IsBound==="true",s;n?s=r.map(u=>hl(u._attributes.Type).type).join(","):s=o?hl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:o,sourceType:o?hl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:d}=hl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:d,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)),u._attributes.Nullable&&(m.nullable=u._attributes.Nullable!=="false"),m}),returnType:i.ReturnType?hl(i.ReturnType._attributes.Type).type:""}})}a(kL,"parseActions");function OH(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),o=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:o,isFunction:!1,parameters:(0,Be.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${o}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:""}})}a(OH,"parseV2FunctionImport");function jL(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:No(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:No(r)}})}a(jL,"parseActionImports");function CH(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:o,...s}=i,l={};if(o){let u=Object.keys(o).find(d=>d!=="Property");l.name=o.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=GL(s,p,n):u&&(l.value=WL({[u]:o[u]},p,n)),i.Annotation){let d=xg((0,Be.ensureArray)(i.Annotation),p,n);d&&d.length>0&&n.push(rc(p,d))}}return l})}a(CH,"parsePropertyValues");function Sg(e,t,n){let i=xg((0,Be.ensureArray)(e.Annotation),t,n),r={type:e._attributes?No(e._attributes.Type):void 0,propertyValues:CH((0,Be.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}a(Sg,"parseRecord");function da(e,t){return e[t]!=null}a(da,"isExpressionOfType");function Ag(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}}}a(Ag,"parseModelPath");function DT(e,t,n){if(da(e,"Record")){let i=(0,Be.ensureArray)(e.Record).map((r,o)=>Sg(r,t+"/"+o,n));return i.type="Record",i}else if(da(e,"PropertyPath")){let i=(0,Be.ensureArray)(e.PropertyPath).map(r=>Ag(r,"PropertyPath"));return i.type="PropertyPath",i}else if(da(e,"NavigationPropertyPath")){let i=(0,Be.ensureArray)(e.NavigationPropertyPath).map(r=>Ag(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(da(e,"String")){let i=(0,Be.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(da(e,"AnnotationPath")){let i=(0,Be.ensureArray)(e.AnnotationPath).map(r=>Ag(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(da(e,"Path")){let i=(0,Be.ensureArray)(e.Path).map(r=>Ag(r,"Path"));return i.type="Path",i}else if(da(e,"If")){let i=(0,Be.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[]}a(DT,"parseCollection");function WL(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:DT(e.Collection,t,n)};case"Record":return{type:"Record",Record:Sg(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}a(WL,"parseInlineExpression");function GL(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]._text};case"Bool":return{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]._text};case"Collection":return{type:"Collection",Collection:DT(e.Collection,t,n)};case"Record":return{type:"Record",Record:Sg(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported expression type "+r),{type:"Unknown"}}}a(GL,"parseExpression");function NH(e,t,n){let{Term:i,Qualifier:r,...o}=e._attributes,s={term:No(i),qualifier:r},l=`${t}@${No(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),o&&Object.keys(o).length>0&&(s.value=WL(o,l,n)),e.Annotation){let p=xg((0,Be.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return da(e,"Record")?s.record=Sg(e.Record,l,n):da(e,"Collection")?s.collection=DT(e.Collection,l,n):u.length===1?s.value=GL({[u[0]]:e[u[0]]},l,n):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}a(NH,"parseAnnotation");function xg(e,t,n){return e.map(i=>NH(i,t,n))}a(xg,"parseAnnotations");function rc(e,t){return{target:e,annotations:t}}a(rc,"createAnnotationList");function RH(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(rc(No(n._attributes.Target),xg((0,Be.ensureArray)(n.Annotation),n._attributes.Target,t)))})}a(RH,"parseAnnotationLists");function LH(e,t,n){let i=e._attributes.Namespace,r=[],o=AH((0,Be.ensureArray)(e.EntityType),r,i),s=SH((0,Be.ensureArray)(e.ComplexType),r,i),l=xH((0,Be.ensureArray)(e.TypeDefinition),i),u=[],p=[],d=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],b=[];if(e.EntityContainer)if(u=PH((0,Be.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=IH((0,Be.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),d=EH((0,Be.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(OH((0,Be.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")b=b.concat(jL((0,Be.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),b=b.concat(jL((0,Be.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(kL((0,Be.ensureArray)(e.Action),i,!1)),T=T.concat(kL((0,Be.ensureArray)(e.Function),i,!0)));let E=bH((0,Be.ensureArray)(e.Association),i);RH((0,Be.ensureArray)(e.Annotations),r);let C={};return C[n]=r,{associations:E,associationSets:d,annotations:C,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:T,actionImports:b,entityTypes:o}}a(LH,"parseSchema");function FH(e){return e.reduce((t,n)=>((0,Be.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}a(FH,"parseReferences");var _T={};function hl(e){let t=e.match($L),n=t?t[1]:e,i=No(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}a(hl,"unaliasType");function No(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let o=0,s=!0;o<e.length;o++){let l=e[o];if(s&&l==="."){let u=e.substring(r,o);i.push((t=_T[u])!==null&&t!==void 0?t:u),r=o,s=!1}n.includes(l)&&(i.push(e.substring(r,o+1)),r=o+1,s=!0)}return i.push(e.substring(r)),i.join("")}a(No,"unalias");function _H(e){let t=e.reduce((b,E)=>b.concat(E.associations),[]),n=e.reduce((b,E)=>b.concat(E.associationSets),[]),i=e.reduce((b,E)=>b.concat(E.entitySets),[]),r=e.reduce((b,E)=>b.concat(E.singletons),[]),o=e.reduce((b,E)=>b.concat(E.entityTypes),[]),s=e.reduce((b,E)=>b.concat(E.actions),[]),l=e.reduce((b,E)=>b.concat(E.actionImports),[]),u=e.reduce((b,E)=>b.concat(E.complexTypes),[]),p=e.reduce((b,E)=>b.concat(E.typeDefinitions),[]),d={};e.forEach(b=>{d=Object.assign(d,b.annotations)});let m,T;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(m=b.entityContainer,T=b.namespace)}),i.forEach(b=>{let E=o.find(C=>C.fullyQualifiedName===b.entityTypeName);E==null||E.navigationProperties.forEach(C=>{let R=C,L=n.find(F=>F.association===R.relationship);if(L){let F=L.associationEnd.find(U=>U.entitySet!==b.fullyQualifiedName);F&&(b.navigationPropertyBinding[C.name]=F.entitySet)}})}),o.forEach(b=>{b.navigationProperties.forEach(E=>{let C=E,R=t.find(L=>L.fullyQualifiedName===C.relationship);R&&R.referentialConstraints&&R.referentialConstraints.length>0&&(R.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?C.referentialConstraint=R.referentialConstraints:C.referentialConstraint=R.referentialConstraints.map(L=>({sourceTypeName:L.targetTypeName,sourceProperty:L.targetProperty,targetTypeName:L.sourceTypeName,targetProperty:L.sourceProperty})))})}),{associations:t,associationSets:n,annotations:d,entityContainer:m,namespace:T,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:o}}a(_H,"mergeSchemas");function DH(e,t){_T=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{_T[n._attributes.Alias]=n._attributes.Namespace})}a(DH,"createAliasMap");function wH(e,t="serviceFile"){let n=(0,mH.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Be.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),o=FH((0,Be.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));DH(o,r);let s=r.map(u=>LH(u,i,t));return new Be.RawMetadataInstance(t,i,_H(s),o)}a(wH,"parse");Pg.parse=wH});var KL=Ve(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.parse=yl.merge=void 0;var MH=oL();Object.defineProperty(yl,"merge",{enumerable:!0,get:function(){return MH.merge}});var VH=HL();Object.defineProperty(yl,"parse",{enumerable:!0,get:function(){return VH.parse}})});var aF=Ve(()=>{var oF;(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(d,m){Object.defineProperty(u,d,{configurable:!0,writable:!0,value:m}),p&&p(d,m)}}a(r,"makeExporter");function o(){try{return Function("return this;")()}catch{}}a(o,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}a(s,"indirectEvalThis");function l(){return o()||s()}a(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=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,d={create:l?function(){return Gs(Object.create(null))}:u?function(){return Gs({__proto__:null})}:function(){return Gs({})},has:p?function($,W){return i.call($,W)}:function($,W){return W in $},get:p?function($,W){return i.call($,W)?$[W]:void 0}:function($,W){return $[W]}},m=Object.getPrototypeOf(Function),T=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Lf(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ff(),E=typeof WeakMap=="function"?WeakMap:_f(),C=r?Symbol.for("@reflect-metadata:registry"):void 0,R=Vi(),L=Rf(R);function F($,W,Y,ie){if(Re(Y)){if(!ct($))throw new TypeError;if(!Et(W))throw new TypeError;return Xt($,W)}else{if(!ct($))throw new TypeError;if(!Qe(W))throw new TypeError;if(!Qe(ie)&&!Re(ie)&&!Ln(ie))throw new TypeError;return Ln(ie)&&(ie=void 0),Y=Le(Y),Mi($,W,Y,ie)}}a(F,"decorate"),t("decorate",F);function U($,W){function Y(ie,Ne){if(!Qe(ie))throw new TypeError;if(!Re(Ne)&&!sn(Ne))throw new TypeError;kn($,W,ie,Ne)}return a(Y,"decorator"),Y}a(U,"metadata"),t("metadata",U);function J($,W,Y,ie){if(!Qe(Y))throw new TypeError;return Re(ie)||(ie=Le(ie)),kn($,W,Y,ie)}a(J,"defineMetadata"),t("defineMetadata",J);function re($,W,Y){if(!Qe(W))throw new TypeError;return Re(Y)||(Y=Le(Y)),pn($,W,Y)}a(re,"hasMetadata"),t("hasMetadata",re);function Ce($,W,Y){if(!Qe(W))throw new TypeError;return Re(Y)||(Y=Le(Y)),Zt($,W,Y)}a(Ce,"hasOwnMetadata"),t("hasOwnMetadata",Ce);function st($,W,Y){if(!Qe(W))throw new TypeError;return Re(Y)||(Y=Le(Y)),Fe($,W,Y)}a(st,"getMetadata"),t("getMetadata",st);function k($,W,Y){if(!Qe(W))throw new TypeError;return Re(Y)||(Y=Le(Y)),Hn($,W,Y)}a(k,"getOwnMetadata"),t("getOwnMetadata",k);function Ot($,W){if(!Qe($))throw new TypeError;return Re(W)||(W=Le(W)),en($,W)}a(Ot,"getMetadataKeys"),t("getMetadataKeys",Ot);function ht($,W){if(!Qe($))throw new TypeError;return Re(W)||(W=Le(W)),Rn($,W)}a(ht,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ht);function Ke($,W,Y){if(!Qe(W))throw new TypeError;if(Re(Y)||(Y=Le(Y)),!Qe(W))throw new TypeError;Re(Y)||(Y=Le(Y));var ie=Ar(W,Y,!1);return Re(ie)?!1:ie.OrdinaryDeleteMetadata($,W,Y)}a(Ke,"deleteMetadata"),t("deleteMetadata",Ke);function Xt($,W){for(var Y=$.length-1;Y>=0;--Y){var ie=$[Y],Ne=ie(W);if(!Re(Ne)&&!Ln(Ne)){if(!Et(Ne))throw new TypeError;W=Ne}}return W}a(Xt,"DecorateConstructor");function Mi($,W,Y,ie){for(var Ne=$.length-1;Ne>=0;--Ne){var ln=$[Ne],An=ln(W,Y,ie);if(!Re(An)&&!Ln(An)){if(!Qe(An))throw new TypeError;ie=An}}return ie}a(Mi,"DecorateProperty");function pn($,W,Y){var ie=Zt($,W,Y);if(ie)return!0;var Ne=Vt(W);return Ln(Ne)?!1:pn($,Ne,Y)}a(pn,"OrdinaryHasMetadata");function Zt($,W,Y){var ie=Ar(W,Y,!1);return Re(ie)?!1:Q(ie.OrdinaryHasOwnMetadata($,W,Y))}a(Zt,"OrdinaryHasOwnMetadata");function Fe($,W,Y){var ie=Zt($,W,Y);if(ie)return Hn($,W,Y);var Ne=Vt(W);if(!Ln(Ne))return Fe($,Ne,Y)}a(Fe,"OrdinaryGetMetadata");function Hn($,W,Y){var ie=Ar(W,Y,!1);if(!Re(ie))return ie.OrdinaryGetOwnMetadata($,W,Y)}a(Hn,"OrdinaryGetOwnMetadata");function kn($,W,Y,ie){var Ne=Ar(Y,ie,!0);Ne.OrdinaryDefineOwnMetadata($,W,Y,ie)}a(kn,"OrdinaryDefineOwnMetadata");function en($,W){var Y=Rn($,W),ie=Vt($);if(ie===null)return Y;var Ne=en(ie,W);if(Ne.length<=0)return Y;if(Y.length<=0)return Ne;for(var ln=new b,An=[],qe=0,ue=Y;qe<ue.length;qe++){var xe=ue[qe],be=ln.has(xe);be||(ln.add(xe),An.push(xe))}for(var Ie=0,nt=Ne;Ie<nt.length;Ie++){var xe=nt[Ie],be=ln.has(xe);be||(ln.add(xe),An.push(xe))}return An}a(en,"OrdinaryMetadataKeys");function Rn($,W){var Y=Ar($,W,!1);return Y?Y.OrdinaryOwnMetadataKeys($,W):[]}a(Rn,"OrdinaryOwnMetadataKeys");function ni($){if($===null)return 1;switch(typeof $){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return $===null?1:6;default:return 6}}a(ni,"Type");function Re($){return $===void 0}a(Re,"IsUndefined");function Ln($){return $===null}a(Ln,"IsNull");function Kn($){return typeof $=="symbol"}a(Kn,"IsSymbol");function Qe($){return typeof $=="object"?$!==null:typeof $=="function"}a(Qe,"IsObject");function O($,W){switch(ni($)){case 0:return $;case 1:return $;case 2:return $;case 3:return $;case 4:return $;case 5:return $}var Y=W===3?"string":W===5?"number":"default",ie=Mt($,o);if(ie!==void 0){var Ne=ie.call($,Y);if(Qe(Ne))throw new TypeError;return Ne}return S($,Y==="default"?"number":Y)}a(O,"ToPrimitive");function S($,W){if(W==="string"){var Y=$.toString;if(je(Y)){var ie=Y.call($);if(!Qe(ie))return ie}var Ne=$.valueOf;if(je(Ne)){var ie=Ne.call($);if(!Qe(ie))return ie}}else{var Ne=$.valueOf;if(je(Ne)){var ie=Ne.call($);if(!Qe(ie))return ie}var ln=$.toString;if(je(ln)){var ie=ln.call($);if(!Qe(ie))return ie}}throw new TypeError}a(S,"OrdinaryToPrimitive");function Q($){return!!$}a(Q,"ToBoolean");function M($){return""+$}a(M,"ToString");function Le($){var W=O($,3);return Kn(W)?W:M(W)}a(Le,"ToPropertyKey");function ct($){return Array.isArray?Array.isArray($):$ instanceof Object?$ instanceof Array:Object.prototype.toString.call($)==="[object Array]"}a(ct,"IsArray");function je($){return typeof $=="function"}a(je,"IsCallable");function Et($){return typeof $=="function"}a(Et,"IsConstructor");function sn($){switch(ni($)){case 3:return!0;case 4:return!0;default:return!1}}a(sn,"IsPropertyKey");function tn($,W){return $===W||$!==$&&W!==W}a(tn,"SameValueZero");function Mt($,W){var Y=$[W];if(Y!=null){if(!je(Y))throw new TypeError;return Y}}a(Mt,"GetMethod");function ii($){var W=Mt($,s);if(!je(W))throw new TypeError;var Y=W.call($);if(!Qe(Y))throw new TypeError;return Y}a(ii,"GetIterator");function ir($){return $.value}a(ir,"IteratorValue");function cn($){var W=$.next();return W.done?!1:W}a(cn,"IteratorStep");function pi($){var W=$.return;W&&W.call($)}a(pi,"IteratorClose");function Vt($){var W=Object.getPrototypeOf($);if(typeof $!="function"||$===m||W!==m)return W;var Y=$.prototype,ie=Y&&Object.getPrototypeOf(Y);if(ie==null||ie===Object.prototype)return W;var Ne=ie.constructor;return typeof Ne!="function"||Ne===$?W:Ne}a(Vt,"OrdinaryGetPrototypeOf");function Zo(){var $;!Re(C)&&typeof n.Reflect<"u"&&!(C in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&($=Ws(n.Reflect));var W,Y,ie,Ne=new E,ln={registerProvider:An,getProvider:ue,setProvider:be};return ln;function An(Ie){if(!Object.isExtensible(ln))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case $===Ie:break;case Re(W):W=Ie;break;case W===Ie:break;case Re(Y):Y=Ie;break;case Y===Ie:break;default:ie===void 0&&(ie=new b),ie.add(Ie);break}}function qe(Ie,nt){if(!Re(W)){if(W.isProviderFor(Ie,nt))return W;if(!Re(Y)){if(Y.isProviderFor(Ie,nt))return W;if(!Re(ie))for(var kt=ii(ie);;){var nn=cn(kt);if(!nn)return;var rr=ir(nn);if(rr.isProviderFor(Ie,nt))return pi(kt),rr}}}if(!Re($)&&$.isProviderFor(Ie,nt))return $}function ue(Ie,nt){var kt=Ne.get(Ie),nn;return Re(kt)||(nn=kt.get(nt)),Re(nn)&&(nn=qe(Ie,nt),Re(nn)||(Re(kt)&&(kt=new T,Ne.set(Ie,kt)),kt.set(nt,nn))),nn}function xe(Ie){if(Re(Ie))throw new TypeError;return W===Ie||Y===Ie||!Re(ie)&&ie.has(Ie)}function be(Ie,nt,kt){if(!xe(kt))throw new Error("Metadata provider not registered.");var nn=ue(Ie,nt);if(nn!==kt){if(!Re(nn))return!1;var rr=Ne.get(Ie);Re(rr)&&(rr=new T,Ne.set(Ie,rr)),rr.set(nt,kt)}return!0}}a(Zo,"CreateMetadataRegistry");function Vi(){var $;return!Re(C)&&Qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&($=n.Reflect[C]),Re($)&&($=Zo()),!Re(C)&&Qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,C,{enumerable:!1,configurable:!1,writable:!1,value:$}),$}a(Vi,"GetOrCreateMetadataRegistry");function Rf($){var W=new E,Y={isProviderFor:function(xe,be){var Ie=W.get(xe);return Re(Ie)?!1:Ie.has(be)},OrdinaryDefineOwnMetadata:An,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:ln,OrdinaryOwnMetadataKeys:qe,OrdinaryDeleteMetadata:ue};return R.registerProvider(Y),Y;function ie(xe,be,Ie){var nt=W.get(xe),kt=!1;if(Re(nt)){if(!Ie)return;nt=new T,W.set(xe,nt),kt=!0}var nn=nt.get(be);if(Re(nn)){if(!Ie)return;if(nn=new T,nt.set(be,nn),!$.setProvider(xe,be,Y))throw nt.delete(be),kt&&W.delete(xe),new Error("Wrong provider for target.")}return nn}a(ie,"GetOrCreateMetadataMap");function Ne(xe,be,Ie){var nt=ie(be,Ie,!1);return Re(nt)?!1:Q(nt.has(xe))}a(Ne,"OrdinaryHasOwnMetadata");function ln(xe,be,Ie){var nt=ie(be,Ie,!1);if(!Re(nt))return nt.get(xe)}a(ln,"OrdinaryGetOwnMetadata");function An(xe,be,Ie,nt){var kt=ie(Ie,nt,!0);kt.set(xe,be)}a(An,"OrdinaryDefineOwnMetadata");function qe(xe,be){var Ie=[],nt=ie(xe,be,!1);if(Re(nt))return Ie;for(var kt=nt.keys(),nn=ii(kt),rr=0;;){var dd=cn(nn);if(!dd)return Ie.length=rr,Ie;var Hy=ir(dd);try{Ie[rr]=Hy}catch(Df){try{pi(nn)}finally{throw Df}}rr++}}a(qe,"OrdinaryOwnMetadataKeys");function ue(xe,be,Ie){var nt=ie(be,Ie,!1);if(Re(nt)||!nt.delete(xe))return!1;if(nt.size===0){var kt=W.get(be);Re(kt)||(kt.delete(Ie),kt.size===0&&W.delete(kt))}return!0}a(ue,"OrdinaryDeleteMetadata")}a(Rf,"CreateMetadataProvider");function Ws($){var W=$.defineMetadata,Y=$.hasOwnMetadata,ie=$.getOwnMetadata,Ne=$.getOwnMetadataKeys,ln=$.deleteMetadata,An=new E,qe={isProviderFor:function(ue,xe){var be=An.get(ue);return Re(be)?Ne(ue,xe).length?(Re(be)&&(be=new b,An.set(ue,be)),be.add(xe),!0):!1:be.has(xe)},OrdinaryDefineOwnMetadata:W,OrdinaryHasOwnMetadata:Y,OrdinaryGetOwnMetadata:ie,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:ln};return qe}a(Ws,"CreateFallbackProvider");function Ar($,W,Y){var ie=R.getProvider($,W);if(!Re(ie))return ie;if(Y){if(R.setProvider($,W,L))return L;throw new Error("Illegal state.")}}a(Ar,"GetMetadataProvider");function Lf(){var $={},W=[],Y=function(){function qe(ue,xe,be){this._index=0,this._keys=ue,this._values=xe,this._selector=be}return a(qe,"MapIterator"),qe.prototype["@@iterator"]=function(){return this},qe.prototype[s]=function(){return this},qe.prototype.next=function(){var ue=this._index;if(ue>=0&&ue<this._keys.length){var xe=this._selector(this._keys[ue],this._values[ue]);return ue+1>=this._keys.length?(this._index=-1,this._keys=W,this._values=W):this._index++,{value:xe,done:!1}}return{value:void 0,done:!0}},qe.prototype.throw=function(ue){throw this._index>=0&&(this._index=-1,this._keys=W,this._values=W),ue},qe.prototype.return=function(ue){return this._index>=0&&(this._index=-1,this._keys=W,this._values=W),{value:ue,done:!0}},qe}(),ie=function(){function qe(){this._keys=[],this._values=[],this._cacheKey=$,this._cacheIndex=-2}return a(qe,"Map"),Object.defineProperty(qe.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),qe.prototype.has=function(ue){return this._find(ue,!1)>=0},qe.prototype.get=function(ue){var xe=this._find(ue,!1);return xe>=0?this._values[xe]:void 0},qe.prototype.set=function(ue,xe){var be=this._find(ue,!0);return this._values[be]=xe,this},qe.prototype.delete=function(ue){var xe=this._find(ue,!1);if(xe>=0){for(var be=this._keys.length,Ie=xe+1;Ie<be;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,tn(ue,this._cacheKey)&&(this._cacheKey=$,this._cacheIndex=-2),!0}return!1},qe.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=$,this._cacheIndex=-2},qe.prototype.keys=function(){return new Y(this._keys,this._values,Ne)},qe.prototype.values=function(){return new Y(this._keys,this._values,ln)},qe.prototype.entries=function(){return new Y(this._keys,this._values,An)},qe.prototype["@@iterator"]=function(){return this.entries()},qe.prototype[s]=function(){return this.entries()},qe.prototype._find=function(ue,xe){if(!tn(this._cacheKey,ue)){this._cacheIndex=-1;for(var be=0;be<this._keys.length;be++)if(tn(this._keys[be],ue)){this._cacheIndex=be;break}}return this._cacheIndex<0&&xe&&(this._cacheIndex=this._keys.length,this._keys.push(ue),this._values.push(void 0)),this._cacheIndex},qe}();return ie;function Ne(qe,ue){return qe}function ln(qe,ue){return ue}function An(qe,ue){return[qe,ue]}}a(Lf,"CreateMapPolyfill");function Ff(){var $=function(){function W(){this._map=new T}return a(W,"Set"),Object.defineProperty(W.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),W.prototype.has=function(Y){return this._map.has(Y)},W.prototype.add=function(Y){return this._map.set(Y,Y),this},W.prototype.delete=function(Y){return this._map.delete(Y)},W.prototype.clear=function(){this._map.clear()},W.prototype.keys=function(){return this._map.keys()},W.prototype.values=function(){return this._map.keys()},W.prototype.entries=function(){return this._map.entries()},W.prototype["@@iterator"]=function(){return this.keys()},W.prototype[s]=function(){return this.keys()},W}();return $}a(Ff,"CreateSetPolyfill");function _f(){var $=16,W=d.create(),Y=ie();return function(){function ue(){this._key=ie()}return a(ue,"WeakMap"),ue.prototype.has=function(xe){var be=Ne(xe,!1);return be!==void 0?d.has(be,this._key):!1},ue.prototype.get=function(xe){var be=Ne(xe,!1);return be!==void 0?d.get(be,this._key):void 0},ue.prototype.set=function(xe,be){var Ie=Ne(xe,!0);return Ie[this._key]=be,this},ue.prototype.delete=function(xe){var be=Ne(xe,!1);return be!==void 0?delete be[this._key]:!1},ue.prototype.clear=function(){this._key=ie()},ue}();function ie(){var ue;do ue="@@WeakMap@@"+qe();while(d.has(W,ue));return W[ue]=!0,ue}function Ne(ue,xe){if(!i.call(ue,Y)){if(!xe)return;Object.defineProperty(ue,Y,{value:d.create()})}return ue[Y]}function ln(ue,xe){for(var be=0;be<xe;++be)ue[be]=Math.random()*255|0;return ue}function An(ue){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(ue)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(ue)):ln(new Uint8Array(ue),ue):ln(new Array(ue),ue)}function qe(){var ue=An($);ue[6]=ue[6]&79|64,ue[8]=ue[8]&191|128;for(var xe="",be=0;be<$;++be){var Ie=ue[be];(be===4||be===6||be===8)&&(xe+="-"),Ie<16&&(xe+="0"),xe+=Ie.toString(16).toLowerCase()}return xe}}a(_f,"CreateWeakMapPolyfill");function Gs($){return $.__=void 0,delete $.__,$}a(Gs,"MakeDictionary")})})(oF||(oF={}))});var pF=Ve((I9,uF)=>{var o5=0,fF="changeUtils: ";function a5(){return"id-"+new Date().valueOf()+"-"+o5++}a(a5,"uid");function s5(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}a(s5,"appendComponentToReference");function c5(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return s5(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}a(c5,"getFlexReference");function l5(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}a(l5,"getAppVersion");function f5(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}a(f5,"getProjectId");function lF(e){return JSON.stringify({fileName:e.id||a5().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:fF+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})}a(lF,"createString");uF.exports={parse: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(fF,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString: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=c5(t),e.appVersion=l5(t),e.projectId=f5(t,e.reference),lF(e)},toString: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 lF(e)}}});var gF=Ve((C9,dF)=>{dF.exports={change:pF()}});var e0=Ve(ko=>{"use strict";var B5=/[|\\{}()[\]^$+*?.]/g,W5=Object.prototype.hasOwnProperty,ZF=a(function(e,t){return W5.apply(e,[t])},"hasOwn");ko.escapeRegExpChars=function(e){return e?String(e).replace(B5,"\\$&"):""};var G5={"&":"&","<":"<",">":">",'"':""","'":"'"},H5=/[&<>'"]/g;function K5(e){return G5[e]||e}a(K5,"encode_char");var X5=`var _ENCODE_HTML_RULES = {
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}a(sH,"writeElement");function PL(e,t,n,i){return e.reduce(function(r,o){var s=Co(t,n,i&&!r);switch(o.type){case"element":return r+s+sH(o,t,n);case"comment":return r+s+AL(o[t.commentKey],t);case"doctype":return r+s+xL(o[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+SL(o[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+LT(o[t.textKey],t);case"instruction":var l={};return l[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],r+(t.indentInstruction?s:"")+bL(l,t,n)}},"")}a(PL,"writeElements");function IL(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}a(IL,"hasContentCompact");function cH(e,t,n,i,r){vi=e,Ti=t;var o="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?"<"+o+"></"+o+">":"<"+o+"/>";var s=[];if(t){if(s.push("<"+o),typeof e!="object")return s.push(">"+LT(e,n)+"</"+o+">"),s.join("");e[n.attributesKey]&&s.push(bg(e[n.attributesKey],n,i));var l=IL(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(OL(e,n,i+1,!1)),vi=e,Ti=t,t&&s.push((r?Co(n,i,!1):"")+"</"+o+">"),s.join("")}a(cH,"writeElementCompact");function OL(e,t,n,i){var r,o,s,l=[];for(o in e)if(e.hasOwnProperty(o))for(s=rH(e[o])?e[o]:[e[o]],r=0;r<s.length;++r){switch(o){case t.declarationKey:l.push(EL(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Co(t,n,i):"")+bL(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Co(t,n,i):"")+LT(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Co(t,n,i):"")+SL(s[r],t));break;case t.doctypeKey:l.push(Co(t,n,i)+xL(s[r],t));break;case t.commentKey:l.push(Co(t,n,i)+AL(s[r],t));break;default:l.push(Co(t,n,i)+cH(s[r],o,t,n,IL(s[r],t)))}i=i&&!l.length}return l.join("")}a(OL,"writeElementsCompact");CL.exports=function(e,t){t=oH(t);var n=[];return vi=e,Ti="_root_",t.compact?n.push(OL(e,t,0,!0)):(e[t.declarationKey]&&n.push(EL(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(PL(e[t.elementsKey],t,0,!n.length))),n.join("")}});var RL=Ve((s9,NL)=>{var lH=FT();NL.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 lH(n,t)}});var ic=Ve((c9,LL)=>{var fH=RT(),uH=TL(),pH=FT(),dH=RL();LL.exports={xml2js:fH,xml2json:uH,js2xml:pH,json2xml:dH}});var VL=Ve(Bi=>{"use strict";Object.defineProperty(Bi,"__esModule",{value:!0});Bi.convertEntityTypeAnnotations=Bi.convertPropertyAnnotations=Bi.convertNavigationPropertyAnnotations=Bi.convertEntitySetAnnotations=Bi.convertGenericAnnotations=Bi.convertV2Annotations=void 0;function gH(e,t,n){let i=[];switch(t){case"EntitySet":_L(e,i);break;case"EntityType":ML(e,i);break;case"NavigationProperty":DL(e,n,i);break;case"Property":wL(e,n,i);break;case"Singleton":break;default:break}return FL(e,n,i),i}a(gH,"convertV2Annotations");Bi.convertV2Annotations=gH;function FL(e,t,n){function i(r,o){r&&n.push(o)}if(a(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}]}})}a(FL,"convertGenericAnnotations");Bi.convertGenericAnnotations=FL;function _L(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"]}}]}})}a(_L,"convertEntitySetAnnotations");Bi.convertEntitySetAnnotations=_L;function DL(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}}]}}}]}]}}]}})}a(DL,"convertNavigationPropertyAnnotations");Bi.convertNavigationPropertyAnnotations=DL;function wL(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}]}}]}})}a(wL,"convertPropertyAnnotations");Bi.convertPropertyAnnotations=wL;function ML(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:[]}}]}})}a(ML,"convertEntityTypeAnnotations");Bi.convertEntityTypeAnnotations=ML});var HL=Ve(Pg=>{"use strict";Object.defineProperty(Pg,"__esModule",{value:!0});Pg.parse=void 0;var mH=ic(),Be=CT(),iu=VL(),$L=/^Collection\((.+)\)$/;function hH(e){return e.Type!==null&&e.Type!==void 0}a(hH,"isV4NavProperty");function yH(e){return e.map(t=>t._attributes.Name)}a(yH,"getEntityTypeKeys");function UL(e,t,n,i){return e.reduce((r,o)=>{let s={_type:"Property",name:o._attributes.Name,fullyQualifiedName:`${n}/${o._attributes.Name}`,type:yl(o._attributes.Type).type};if(o._attributes.MaxLength&&(s.maxLength=parseInt(o._attributes.MaxLength,10)),o._attributes.Precision&&(s.precision=parseInt(o._attributes.Precision,10)),o._attributes.Scale&&(s.scale=parseInt(o._attributes.Scale,10)),o._attributes.Nullable&&(s.nullable=o._attributes.Nullable!=="false"),o._attributes.DefaultValue)switch(s.type){case"Edm.Int16":case"Edm.Byte":case"Edm.Int32":case"Edm.Int64":s.defaultValue=parseInt(o._attributes.DefaultValue,10);break;case"Edm.Decimal":s.defaultValue=parseFloat(o._attributes.DefaultValue);break;case"Edm.Boolean":s.defaultValue=o._attributes.DefaultValue==="true";break;default:s.defaultValue=o._attributes.DefaultValue;break}r.entityProperties.push(s),t.indexOf(s.name)!==-1&&r.entityKeys.push(s);let l=(0,iu.convertV2Annotations)(o._attributes,"Property",o._attributes.Name);return l.length>0&&i.push(rc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}a(UL,"parseProperties");function vH(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}a(vH,"parseReferentialConstraint");function TH(e,t){return e.reduce((n,i)=>{let r=t.find(s=>s.role===i.Principal._attributes.Role),o=t.find(s=>s.role===i.Dependent._attributes.Role);if(r!==void 0&&o!==void 0){let s=(0,Be.ensureArray)(i.Principal.PropertyRef),l=(0,Be.ensureArray)(i.Dependent.PropertyRef);r.multiplicity!=="1"&&(o=r,r=t.find(u=>u.role===i.Dependent._attributes.Role),l=s,s=(0,Be.ensureArray)(i.Dependent.PropertyRef));for(let u of s){let p=s.indexOf(u);n.push({sourceTypeName:r.type,sourceProperty:u._attributes.Name,targetTypeName:o.type,targetProperty:l[p]._attributes.Name})}}return n},[])}a(TH,"parseV2ReferentialConstraint");function BL(e,t,n,i){return e.reduce((r,o)=>{let s=o._attributes;if(hH(s)){let l=s.Type.match($L),u=l!==null,p=No(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:vH((0,Be.ensureArray)(o.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 d=(0,iu.convertV2Annotations)(s,"NavigationProperty",s.Name);d.length>0&&i.push(rc(`${n}/${s.Name}`,d))}return r},[])}a(BL,"parseNavigationProperties");function EH(e,t,n){return e.map(i=>{let r=`${t}.${i._attributes.Name}`,o=(0,Be.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:o}})}a(EH,"parseAssociationSets");function bH(e,t){return e.map(n=>{let i=`${t}.${n._attributes.Name}`,r=(0,Be.ensureArray)(n.End).map(o=>({type:o._attributes.Type,role:o._attributes.Role,multiplicity:o._attributes.Multiplicity}));return{fullyQualifiedName:i,name:n._attributes.Name,associationEnd:r,referentialConstraints:TH((0,Be.ensureArray)(n.ReferentialConstraint),r)}})}a(bH,"parseAssociations");function AH(e,t,n){return e.reduce((i,r)=>{let o=r.Key?yH((0,Be.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=UL((0,Be.ensureArray)(r.Property),o,s,t),p=BL((0,Be.ensureArray)(r.NavigationProperty),r,s,t),d={_type:"EntityType",name:r._attributes.Name,fullyQualifiedName:s,keys:u,entityProperties:l,actions:{},navigationProperties:p},m=(0,iu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(rc(d.fullyQualifiedName,m)),i.push(d),i},[])}a(AH,"parseEntityTypes");function SH(e,t,n){return e.reduce((i,r)=>{let o=`${n}.${r._attributes.Name}`,{entityProperties:s}=UL((0,Be.ensureArray)(r.Property),[],o,t),l=BL((0,Be.ensureArray)(r.NavigationProperty),r,o,t);return i.push({_type:"ComplexType",name:r._attributes.Name,fullyQualifiedName:o,properties:s,navigationProperties:l}),i},[])}a(SH,"parseComplexTypes");function xH(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},[])}a(xH,"parseTypeDefinitions");function PH(e,t,n,i){return e.map(o=>{let s=Object.fromEntries((0,Be.ensureArray)(o.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"EntitySet",name:o._attributes.Name,entityTypeName:No(o._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,iu.convertV2Annotations)(o._attributes,"EntitySet",o._attributes.Name);return u.length>0&&i.push(rc(l.fullyQualifiedName,u)),l})}a(PH,"parseEntitySets");function IH(e,t,n,i){return e.map(o=>{let s=Object.fromEntries((0,Be.ensureArray)(o.NavigationPropertyBinding).map(p=>[p._attributes.Path,`${t}.${n}/${p._attributes.Target}`])),l={_type:"Singleton",name:o._attributes.Name,entityTypeName:No(o._attributes.Type),nullable:o._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,iu.convertV2Annotations)(o._attributes,"Singleton",o._attributes.Name);return u.length>0&&i.push(rc(l.fullyQualifiedName,u)),l})}a(IH,"parseSingletons");function kL(e,t,n){return e.map(i=>{let r=(0,Be.ensureArray)(i.Parameter),o=i._attributes.IsBound==="true",s;n?s=r.map(u=>yl(u._attributes.Type).type).join(","):s=o?yl(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:o,sourceType:o?yl(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:d}=yl(u._attributes.Type),m={_type:"ActionParameter",fullyQualifiedName:`${l}/${u._attributes.Name}`,name:`${u._attributes.Name}`,type:d,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)),u._attributes.Nullable&&(m.nullable=u._attributes.Nullable!=="false"),m}),returnType:i.ReturnType?yl(i.ReturnType._attributes.Type).type:""}})}a(kL,"parseActions");function OH(e,t,n){return e.map(i=>{let r=t.find(s=>s.name===i._attributes.EntitySet),o=`${n}/${i._attributes.Name}`;return{_type:"Action",name:i._attributes.Name,isBound:!1,sourceType:r?r.entityTypeName:"",fullyQualifiedName:o,isFunction:!1,parameters:(0,Be.ensureArray)(i.Parameter).map(s=>({_type:"ActionParameter",name:s._attributes.Name,fullyQualifiedName:`${o}/${s._attributes.Name}`,type:s._attributes.Type,isCollection:s._attributes.Type.match(/^Collection\(.+\)$/)!==null})),returnType:i._attributes.ReturnType?i._attributes.ReturnType:""}})}a(OH,"parseV2FunctionImport");function jL(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:No(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:No(r)}})}a(jL,"parseActionImports");function CH(e,t,n){return e.map(i=>{let{Annotation:r,_attributes:o,...s}=i,l={};if(o){let u=Object.keys(o).find(d=>d!=="Property");l.name=o.Property;let p=`${t}/${l.name}`;if(s&&Object.keys(s).length>0?l.value=GL(s,p,n):u&&(l.value=WL({[u]:o[u]},p,n)),i.Annotation){let d=xg((0,Be.ensureArray)(i.Annotation),p,n);d&&d.length>0&&n.push(rc(p,d))}}return l})}a(CH,"parsePropertyValues");function Sg(e,t,n){let i=xg((0,Be.ensureArray)(e.Annotation),t,n),r={type:e._attributes?No(e._attributes.Type):void 0,propertyValues:CH((0,Be.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}a(Sg,"parseRecord");function da(e,t){return e[t]!=null}a(da,"isExpressionOfType");function Ag(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}}}a(Ag,"parseModelPath");function DT(e,t,n){if(da(e,"Record")){let i=(0,Be.ensureArray)(e.Record).map((r,o)=>Sg(r,t+"/"+o,n));return i.type="Record",i}else if(da(e,"PropertyPath")){let i=(0,Be.ensureArray)(e.PropertyPath).map(r=>Ag(r,"PropertyPath"));return i.type="PropertyPath",i}else if(da(e,"NavigationPropertyPath")){let i=(0,Be.ensureArray)(e.NavigationPropertyPath).map(r=>Ag(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(da(e,"String")){let i=(0,Be.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(da(e,"AnnotationPath")){let i=(0,Be.ensureArray)(e.AnnotationPath).map(r=>Ag(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(da(e,"Path")){let i=(0,Be.ensureArray)(e.Path).map(r=>Ag(r,"Path"));return i.type="Path",i}else if(da(e,"If")){let i=(0,Be.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[]}a(DT,"parseCollection");function WL(e,t,n){let i=Object.keys(e);if(i.length>1)throw new Error(`Too many expressions defined on a single object ${JSON.stringify(e)}`);let r=i[0];switch(r){case"String":return{type:"String",String:e[r]};case"Bool":return{type:"Bool",Bool:e.Bool==="true"};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal)};case"Date":return{type:"Date",Date:e.Date};case"Int":return{type:"Int",Int:parseInt(e.Int,10)};case"Float":return{type:"Float",Float:parseFloat(e.Float)};case"Path":return{type:"Path",Path:e.Path};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]};case"Collection":return{type:"Collection",Collection:DT(e.Collection,t,n)};case"Record":return{type:"Record",Record:Sg(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported inline expression type "+r),{type:"Unknown"}}}a(WL,"parseInlineExpression");function GL(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]._text};case"Bool":return{type:"Bool",Bool:e.Bool._text==="true"};case"Int":return{type:"Int",Int:parseInt(e.Int._text,10)};case"Decimal":return{type:"Decimal",Decimal:parseFloat(e.Decimal._text)};case"Path":return{type:"Path",Path:e.Path._text};case"PropertyPath":return{type:"PropertyPath",PropertyPath:e.PropertyPath._text};case"NavigationPropertyPath":return{type:"NavigationPropertyPath",NavigationPropertyPath:e.NavigationPropertyPath._text};case"AnnotationPath":return{type:"AnnotationPath",AnnotationPath:e.AnnotationPath._text};case"EnumMember":return{type:"EnumMember",EnumMember:e[r]._text};case"Collection":return{type:"Collection",Collection:DT(e.Collection,t,n)};case"Record":return{type:"Record",Record:Sg(e.Record,t,n)};case"Apply":return{type:"Apply",Apply:e.Apply};case"Null":return{type:"Null"};default:return console.error("Unsupported expression type "+r),{type:"Unknown"}}}a(GL,"parseExpression");function NH(e,t,n){let{Term:i,Qualifier:r,...o}=e._attributes,s={term:No(i),qualifier:r},l=`${t}@${No(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),o&&Object.keys(o).length>0&&(s.value=WL(o,l,n)),e.Annotation){let p=xg((0,Be.ensureArray)(e.Annotation),l,n);p&&p.length>0&&(s.annotations=p)}let u=Object.keys(e).filter(p=>p!=="_attributes"&&p!=="Annotation");return da(e,"Record")?s.record=Sg(e.Record,l,n):da(e,"Collection")?s.collection=DT(e.Collection,l,n):u.length===1?s.value=GL({[u[0]]:e[u[0]]},l,n):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}a(NH,"parseAnnotation");function xg(e,t,n){return e.map(i=>NH(i,t,n))}a(xg,"parseAnnotations");function rc(e,t){return{target:e,annotations:t}}a(rc,"createAnnotationList");function RH(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(rc(No(n._attributes.Target),xg((0,Be.ensureArray)(n.Annotation),n._attributes.Target,t)))})}a(RH,"parseAnnotationLists");function LH(e,t,n){let i=e._attributes.Namespace,r=[],o=AH((0,Be.ensureArray)(e.EntityType),r,i),s=SH((0,Be.ensureArray)(e.ComplexType),r,i),l=xH((0,Be.ensureArray)(e.TypeDefinition),i),u=[],p=[],d=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],b=[];if(e.EntityContainer)if(u=PH((0,Be.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=IH((0,Be.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),d=EH((0,Be.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(OH((0,Be.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")b=b.concat(jL((0,Be.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),b=b.concat(jL((0,Be.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(kL((0,Be.ensureArray)(e.Action),i,!1)),T=T.concat(kL((0,Be.ensureArray)(e.Function),i,!0)));let E=bH((0,Be.ensureArray)(e.Association),i);RH((0,Be.ensureArray)(e.Annotations),r);let C={};return C[n]=r,{associations:E,associationSets:d,annotations:C,entityContainer:m,namespace:i,entitySets:u,singletons:p,complexTypes:s,typeDefinitions:l,actions:T,actionImports:b,entityTypes:o}}a(LH,"parseSchema");function FH(e){return e.reduce((t,n)=>((0,Be.ensureArray)(n["edmx:Include"]).forEach(r=>{t.push({uri:n._attributes.Uri,alias:r._attributes.Alias,namespace:r._attributes.Namespace})}),t),[])}a(FH,"parseReferences");var _T={};function yl(e){let t=e.match($L),n=t?t[1]:e,i=No(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}a(yl,"unaliasType");function No(e){var t;if(!e)return e;let n=["@","/","("],i=[],r=0;for(let o=0,s=!0;o<e.length;o++){let l=e[o];if(s&&l==="."){let u=e.substring(r,o);i.push((t=_T[u])!==null&&t!==void 0?t:u),r=o,s=!1}n.includes(l)&&(i.push(e.substring(r,o+1)),r=o+1,s=!0)}return i.push(e.substring(r)),i.join("")}a(No,"unalias");function _H(e){let t=e.reduce((b,E)=>b.concat(E.associations),[]),n=e.reduce((b,E)=>b.concat(E.associationSets),[]),i=e.reduce((b,E)=>b.concat(E.entitySets),[]),r=e.reduce((b,E)=>b.concat(E.singletons),[]),o=e.reduce((b,E)=>b.concat(E.entityTypes),[]),s=e.reduce((b,E)=>b.concat(E.actions),[]),l=e.reduce((b,E)=>b.concat(E.actionImports),[]),u=e.reduce((b,E)=>b.concat(E.complexTypes),[]),p=e.reduce((b,E)=>b.concat(E.typeDefinitions),[]),d={};e.forEach(b=>{d=Object.assign(d,b.annotations)});let m,T;return e.forEach(b=>{b.entityContainer&&Object.keys(b.entityContainer).length>0&&(m=b.entityContainer,T=b.namespace)}),i.forEach(b=>{let E=o.find(C=>C.fullyQualifiedName===b.entityTypeName);E==null||E.navigationProperties.forEach(C=>{let R=C,L=n.find(F=>F.association===R.relationship);if(L){let F=L.associationEnd.find(U=>U.entitySet!==b.fullyQualifiedName);F&&(b.navigationPropertyBinding[C.name]=F.entitySet)}})}),o.forEach(b=>{b.navigationProperties.forEach(E=>{let C=E,R=t.find(L=>L.fullyQualifiedName===C.relationship);R&&R.referentialConstraints&&R.referentialConstraints.length>0&&(R.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?C.referentialConstraint=R.referentialConstraints:C.referentialConstraint=R.referentialConstraints.map(L=>({sourceTypeName:L.targetTypeName,sourceProperty:L.targetProperty,targetTypeName:L.sourceTypeName,targetProperty:L.sourceProperty})))})}),{associations:t,associationSets:n,annotations:d,entityContainer:m,namespace:T,entitySets:i,singletons:r,complexTypes:u,typeDefinitions:p,actions:s,actionImports:l,entityTypes:o}}a(_H,"mergeSchemas");function DH(e,t){_T=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{_T[n._attributes.Alias]=n._attributes.Namespace})}a(DH,"createAliasMap");function wH(e,t="serviceFile"){let n=(0,mH.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Be.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),o=FH((0,Be.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));DH(o,r);let s=r.map(u=>LH(u,i,t));return new Be.RawMetadataInstance(t,i,_H(s),o)}a(wH,"parse");Pg.parse=wH});var KL=Ve(vl=>{"use strict";Object.defineProperty(vl,"__esModule",{value:!0});vl.parse=vl.merge=void 0;var MH=oL();Object.defineProperty(vl,"merge",{enumerable:!0,get:function(){return MH.merge}});var VH=HL();Object.defineProperty(vl,"parse",{enumerable:!0,get:function(){return VH.parse}})});var aF=Ve(()=>{var oF;(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(d,m){Object.defineProperty(u,d,{configurable:!0,writable:!0,value:m}),p&&p(d,m)}}a(r,"makeExporter");function o(){try{return Function("return this;")()}catch{}}a(o,"functionThis");function s(){try{return(0,eval)("(function() { return this; })()")}catch{}}a(s,"indirectEvalThis");function l(){return o()||s()}a(l,"sloppyModeThis")})(function(t,n){var i=Object.prototype.hasOwnProperty,r=typeof Symbol=="function",o=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,d={create:l?function(){return Gs(Object.create(null))}:u?function(){return Gs({__proto__:null})}:function(){return Gs({})},has:p?function($,W){return i.call($,W)}:function($,W){return W in $},get:p?function($,W){return i.call($,W)?$[W]:void 0}:function($,W){return $[W]}},m=Object.getPrototypeOf(Function),T=typeof Map=="function"&&typeof Map.prototype.entries=="function"?Map:Lf(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Ff(),E=typeof WeakMap=="function"?WeakMap:_f(),C=r?Symbol.for("@reflect-metadata:registry"):void 0,R=Vi(),L=Rf(R);function F($,W,Y,ie){if(Re(Y)){if(!ct($))throw new TypeError;if(!Et(W))throw new TypeError;return Xt($,W)}else{if(!ct($))throw new TypeError;if(!Qe(W))throw new TypeError;if(!Qe(ie)&&!Re(ie)&&!Ln(ie))throw new TypeError;return Ln(ie)&&(ie=void 0),Y=Le(Y),Mi($,W,Y,ie)}}a(F,"decorate"),t("decorate",F);function U($,W){function Y(ie,Ne){if(!Qe(ie))throw new TypeError;if(!Re(Ne)&&!sn(Ne))throw new TypeError;kn($,W,ie,Ne)}return a(Y,"decorator"),Y}a(U,"metadata"),t("metadata",U);function J($,W,Y,ie){if(!Qe(Y))throw new TypeError;return Re(ie)||(ie=Le(ie)),kn($,W,Y,ie)}a(J,"defineMetadata"),t("defineMetadata",J);function re($,W,Y){if(!Qe(W))throw new TypeError;return Re(Y)||(Y=Le(Y)),pn($,W,Y)}a(re,"hasMetadata"),t("hasMetadata",re);function Ce($,W,Y){if(!Qe(W))throw new TypeError;return Re(Y)||(Y=Le(Y)),Zt($,W,Y)}a(Ce,"hasOwnMetadata"),t("hasOwnMetadata",Ce);function st($,W,Y){if(!Qe(W))throw new TypeError;return Re(Y)||(Y=Le(Y)),Fe($,W,Y)}a(st,"getMetadata"),t("getMetadata",st);function k($,W,Y){if(!Qe(W))throw new TypeError;return Re(Y)||(Y=Le(Y)),Hn($,W,Y)}a(k,"getOwnMetadata"),t("getOwnMetadata",k);function Ot($,W){if(!Qe($))throw new TypeError;return Re(W)||(W=Le(W)),en($,W)}a(Ot,"getMetadataKeys"),t("getMetadataKeys",Ot);function ht($,W){if(!Qe($))throw new TypeError;return Re(W)||(W=Le(W)),Rn($,W)}a(ht,"getOwnMetadataKeys"),t("getOwnMetadataKeys",ht);function Ke($,W,Y){if(!Qe(W))throw new TypeError;if(Re(Y)||(Y=Le(Y)),!Qe(W))throw new TypeError;Re(Y)||(Y=Le(Y));var ie=Ar(W,Y,!1);return Re(ie)?!1:ie.OrdinaryDeleteMetadata($,W,Y)}a(Ke,"deleteMetadata"),t("deleteMetadata",Ke);function Xt($,W){for(var Y=$.length-1;Y>=0;--Y){var ie=$[Y],Ne=ie(W);if(!Re(Ne)&&!Ln(Ne)){if(!Et(Ne))throw new TypeError;W=Ne}}return W}a(Xt,"DecorateConstructor");function Mi($,W,Y,ie){for(var Ne=$.length-1;Ne>=0;--Ne){var ln=$[Ne],An=ln(W,Y,ie);if(!Re(An)&&!Ln(An)){if(!Qe(An))throw new TypeError;ie=An}}return ie}a(Mi,"DecorateProperty");function pn($,W,Y){var ie=Zt($,W,Y);if(ie)return!0;var Ne=Vt(W);return Ln(Ne)?!1:pn($,Ne,Y)}a(pn,"OrdinaryHasMetadata");function Zt($,W,Y){var ie=Ar(W,Y,!1);return Re(ie)?!1:Q(ie.OrdinaryHasOwnMetadata($,W,Y))}a(Zt,"OrdinaryHasOwnMetadata");function Fe($,W,Y){var ie=Zt($,W,Y);if(ie)return Hn($,W,Y);var Ne=Vt(W);if(!Ln(Ne))return Fe($,Ne,Y)}a(Fe,"OrdinaryGetMetadata");function Hn($,W,Y){var ie=Ar(W,Y,!1);if(!Re(ie))return ie.OrdinaryGetOwnMetadata($,W,Y)}a(Hn,"OrdinaryGetOwnMetadata");function kn($,W,Y,ie){var Ne=Ar(Y,ie,!0);Ne.OrdinaryDefineOwnMetadata($,W,Y,ie)}a(kn,"OrdinaryDefineOwnMetadata");function en($,W){var Y=Rn($,W),ie=Vt($);if(ie===null)return Y;var Ne=en(ie,W);if(Ne.length<=0)return Y;if(Y.length<=0)return Ne;for(var ln=new b,An=[],Ze=0,ue=Y;Ze<ue.length;Ze++){var xe=ue[Ze],be=ln.has(xe);be||(ln.add(xe),An.push(xe))}for(var Ie=0,nt=Ne;Ie<nt.length;Ie++){var xe=nt[Ie],be=ln.has(xe);be||(ln.add(xe),An.push(xe))}return An}a(en,"OrdinaryMetadataKeys");function Rn($,W){var Y=Ar($,W,!1);return Y?Y.OrdinaryOwnMetadataKeys($,W):[]}a(Rn,"OrdinaryOwnMetadataKeys");function ni($){if($===null)return 1;switch(typeof $){case"undefined":return 0;case"boolean":return 2;case"string":return 3;case"symbol":return 4;case"number":return 5;case"object":return $===null?1:6;default:return 6}}a(ni,"Type");function Re($){return $===void 0}a(Re,"IsUndefined");function Ln($){return $===null}a(Ln,"IsNull");function Kn($){return typeof $=="symbol"}a(Kn,"IsSymbol");function Qe($){return typeof $=="object"?$!==null:typeof $=="function"}a(Qe,"IsObject");function O($,W){switch(ni($)){case 0:return $;case 1:return $;case 2:return $;case 3:return $;case 4:return $;case 5:return $}var Y=W===3?"string":W===5?"number":"default",ie=Mt($,o);if(ie!==void 0){var Ne=ie.call($,Y);if(Qe(Ne))throw new TypeError;return Ne}return S($,Y==="default"?"number":Y)}a(O,"ToPrimitive");function S($,W){if(W==="string"){var Y=$.toString;if(je(Y)){var ie=Y.call($);if(!Qe(ie))return ie}var Ne=$.valueOf;if(je(Ne)){var ie=Ne.call($);if(!Qe(ie))return ie}}else{var Ne=$.valueOf;if(je(Ne)){var ie=Ne.call($);if(!Qe(ie))return ie}var ln=$.toString;if(je(ln)){var ie=ln.call($);if(!Qe(ie))return ie}}throw new TypeError}a(S,"OrdinaryToPrimitive");function Q($){return!!$}a(Q,"ToBoolean");function M($){return""+$}a(M,"ToString");function Le($){var W=O($,3);return Kn(W)?W:M(W)}a(Le,"ToPropertyKey");function ct($){return Array.isArray?Array.isArray($):$ instanceof Object?$ instanceof Array:Object.prototype.toString.call($)==="[object Array]"}a(ct,"IsArray");function je($){return typeof $=="function"}a(je,"IsCallable");function Et($){return typeof $=="function"}a(Et,"IsConstructor");function sn($){switch(ni($)){case 3:return!0;case 4:return!0;default:return!1}}a(sn,"IsPropertyKey");function tn($,W){return $===W||$!==$&&W!==W}a(tn,"SameValueZero");function Mt($,W){var Y=$[W];if(Y!=null){if(!je(Y))throw new TypeError;return Y}}a(Mt,"GetMethod");function ii($){var W=Mt($,s);if(!je(W))throw new TypeError;var Y=W.call($);if(!Qe(Y))throw new TypeError;return Y}a(ii,"GetIterator");function ir($){return $.value}a(ir,"IteratorValue");function cn($){var W=$.next();return W.done?!1:W}a(cn,"IteratorStep");function pi($){var W=$.return;W&&W.call($)}a(pi,"IteratorClose");function Vt($){var W=Object.getPrototypeOf($);if(typeof $!="function"||$===m||W!==m)return W;var Y=$.prototype,ie=Y&&Object.getPrototypeOf(Y);if(ie==null||ie===Object.prototype)return W;var Ne=ie.constructor;return typeof Ne!="function"||Ne===$?W:Ne}a(Vt,"OrdinaryGetPrototypeOf");function Zo(){var $;!Re(C)&&typeof n.Reflect<"u"&&!(C in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&($=Ws(n.Reflect));var W,Y,ie,Ne=new E,ln={registerProvider:An,getProvider:ue,setProvider:be};return ln;function An(Ie){if(!Object.isExtensible(ln))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case $===Ie:break;case Re(W):W=Ie;break;case W===Ie:break;case Re(Y):Y=Ie;break;case Y===Ie:break;default:ie===void 0&&(ie=new b),ie.add(Ie);break}}function Ze(Ie,nt){if(!Re(W)){if(W.isProviderFor(Ie,nt))return W;if(!Re(Y)){if(Y.isProviderFor(Ie,nt))return W;if(!Re(ie))for(var kt=ii(ie);;){var nn=cn(kt);if(!nn)return;var rr=ir(nn);if(rr.isProviderFor(Ie,nt))return pi(kt),rr}}}if(!Re($)&&$.isProviderFor(Ie,nt))return $}function ue(Ie,nt){var kt=Ne.get(Ie),nn;return Re(kt)||(nn=kt.get(nt)),Re(nn)&&(nn=Ze(Ie,nt),Re(nn)||(Re(kt)&&(kt=new T,Ne.set(Ie,kt)),kt.set(nt,nn))),nn}function xe(Ie){if(Re(Ie))throw new TypeError;return W===Ie||Y===Ie||!Re(ie)&&ie.has(Ie)}function be(Ie,nt,kt){if(!xe(kt))throw new Error("Metadata provider not registered.");var nn=ue(Ie,nt);if(nn!==kt){if(!Re(nn))return!1;var rr=Ne.get(Ie);Re(rr)&&(rr=new T,Ne.set(Ie,rr)),rr.set(nt,kt)}return!0}}a(Zo,"CreateMetadataRegistry");function Vi(){var $;return!Re(C)&&Qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&($=n.Reflect[C]),Re($)&&($=Zo()),!Re(C)&&Qe(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,C,{enumerable:!1,configurable:!1,writable:!1,value:$}),$}a(Vi,"GetOrCreateMetadataRegistry");function Rf($){var W=new E,Y={isProviderFor:function(xe,be){var Ie=W.get(xe);return Re(Ie)?!1:Ie.has(be)},OrdinaryDefineOwnMetadata:An,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:ln,OrdinaryOwnMetadataKeys:Ze,OrdinaryDeleteMetadata:ue};return R.registerProvider(Y),Y;function ie(xe,be,Ie){var nt=W.get(xe),kt=!1;if(Re(nt)){if(!Ie)return;nt=new T,W.set(xe,nt),kt=!0}var nn=nt.get(be);if(Re(nn)){if(!Ie)return;if(nn=new T,nt.set(be,nn),!$.setProvider(xe,be,Y))throw nt.delete(be),kt&&W.delete(xe),new Error("Wrong provider for target.")}return nn}a(ie,"GetOrCreateMetadataMap");function Ne(xe,be,Ie){var nt=ie(be,Ie,!1);return Re(nt)?!1:Q(nt.has(xe))}a(Ne,"OrdinaryHasOwnMetadata");function ln(xe,be,Ie){var nt=ie(be,Ie,!1);if(!Re(nt))return nt.get(xe)}a(ln,"OrdinaryGetOwnMetadata");function An(xe,be,Ie,nt){var kt=ie(Ie,nt,!0);kt.set(xe,be)}a(An,"OrdinaryDefineOwnMetadata");function Ze(xe,be){var Ie=[],nt=ie(xe,be,!1);if(Re(nt))return Ie;for(var kt=nt.keys(),nn=ii(kt),rr=0;;){var dd=cn(nn);if(!dd)return Ie.length=rr,Ie;var Hy=ir(dd);try{Ie[rr]=Hy}catch(Df){try{pi(nn)}finally{throw Df}}rr++}}a(Ze,"OrdinaryOwnMetadataKeys");function ue(xe,be,Ie){var nt=ie(be,Ie,!1);if(Re(nt)||!nt.delete(xe))return!1;if(nt.size===0){var kt=W.get(be);Re(kt)||(kt.delete(Ie),kt.size===0&&W.delete(kt))}return!0}a(ue,"OrdinaryDeleteMetadata")}a(Rf,"CreateMetadataProvider");function Ws($){var W=$.defineMetadata,Y=$.hasOwnMetadata,ie=$.getOwnMetadata,Ne=$.getOwnMetadataKeys,ln=$.deleteMetadata,An=new E,Ze={isProviderFor:function(ue,xe){var be=An.get(ue);return Re(be)?Ne(ue,xe).length?(Re(be)&&(be=new b,An.set(ue,be)),be.add(xe),!0):!1:be.has(xe)},OrdinaryDefineOwnMetadata:W,OrdinaryHasOwnMetadata:Y,OrdinaryGetOwnMetadata:ie,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:ln};return Ze}a(Ws,"CreateFallbackProvider");function Ar($,W,Y){var ie=R.getProvider($,W);if(!Re(ie))return ie;if(Y){if(R.setProvider($,W,L))return L;throw new Error("Illegal state.")}}a(Ar,"GetMetadataProvider");function Lf(){var $={},W=[],Y=function(){function Ze(ue,xe,be){this._index=0,this._keys=ue,this._values=xe,this._selector=be}return a(Ze,"MapIterator"),Ze.prototype["@@iterator"]=function(){return this},Ze.prototype[s]=function(){return this},Ze.prototype.next=function(){var ue=this._index;if(ue>=0&&ue<this._keys.length){var xe=this._selector(this._keys[ue],this._values[ue]);return ue+1>=this._keys.length?(this._index=-1,this._keys=W,this._values=W):this._index++,{value:xe,done:!1}}return{value:void 0,done:!0}},Ze.prototype.throw=function(ue){throw this._index>=0&&(this._index=-1,this._keys=W,this._values=W),ue},Ze.prototype.return=function(ue){return this._index>=0&&(this._index=-1,this._keys=W,this._values=W),{value:ue,done:!0}},Ze}(),ie=function(){function Ze(){this._keys=[],this._values=[],this._cacheKey=$,this._cacheIndex=-2}return a(Ze,"Map"),Object.defineProperty(Ze.prototype,"size",{get:function(){return this._keys.length},enumerable:!0,configurable:!0}),Ze.prototype.has=function(ue){return this._find(ue,!1)>=0},Ze.prototype.get=function(ue){var xe=this._find(ue,!1);return xe>=0?this._values[xe]:void 0},Ze.prototype.set=function(ue,xe){var be=this._find(ue,!0);return this._values[be]=xe,this},Ze.prototype.delete=function(ue){var xe=this._find(ue,!1);if(xe>=0){for(var be=this._keys.length,Ie=xe+1;Ie<be;Ie++)this._keys[Ie-1]=this._keys[Ie],this._values[Ie-1]=this._values[Ie];return this._keys.length--,this._values.length--,tn(ue,this._cacheKey)&&(this._cacheKey=$,this._cacheIndex=-2),!0}return!1},Ze.prototype.clear=function(){this._keys.length=0,this._values.length=0,this._cacheKey=$,this._cacheIndex=-2},Ze.prototype.keys=function(){return new Y(this._keys,this._values,Ne)},Ze.prototype.values=function(){return new Y(this._keys,this._values,ln)},Ze.prototype.entries=function(){return new Y(this._keys,this._values,An)},Ze.prototype["@@iterator"]=function(){return this.entries()},Ze.prototype[s]=function(){return this.entries()},Ze.prototype._find=function(ue,xe){if(!tn(this._cacheKey,ue)){this._cacheIndex=-1;for(var be=0;be<this._keys.length;be++)if(tn(this._keys[be],ue)){this._cacheIndex=be;break}}return this._cacheIndex<0&&xe&&(this._cacheIndex=this._keys.length,this._keys.push(ue),this._values.push(void 0)),this._cacheIndex},Ze}();return ie;function Ne(Ze,ue){return Ze}function ln(Ze,ue){return ue}function An(Ze,ue){return[Ze,ue]}}a(Lf,"CreateMapPolyfill");function Ff(){var $=function(){function W(){this._map=new T}return a(W,"Set"),Object.defineProperty(W.prototype,"size",{get:function(){return this._map.size},enumerable:!0,configurable:!0}),W.prototype.has=function(Y){return this._map.has(Y)},W.prototype.add=function(Y){return this._map.set(Y,Y),this},W.prototype.delete=function(Y){return this._map.delete(Y)},W.prototype.clear=function(){this._map.clear()},W.prototype.keys=function(){return this._map.keys()},W.prototype.values=function(){return this._map.keys()},W.prototype.entries=function(){return this._map.entries()},W.prototype["@@iterator"]=function(){return this.keys()},W.prototype[s]=function(){return this.keys()},W}();return $}a(Ff,"CreateSetPolyfill");function _f(){var $=16,W=d.create(),Y=ie();return function(){function ue(){this._key=ie()}return a(ue,"WeakMap"),ue.prototype.has=function(xe){var be=Ne(xe,!1);return be!==void 0?d.has(be,this._key):!1},ue.prototype.get=function(xe){var be=Ne(xe,!1);return be!==void 0?d.get(be,this._key):void 0},ue.prototype.set=function(xe,be){var Ie=Ne(xe,!0);return Ie[this._key]=be,this},ue.prototype.delete=function(xe){var be=Ne(xe,!1);return be!==void 0?delete be[this._key]:!1},ue.prototype.clear=function(){this._key=ie()},ue}();function ie(){var ue;do ue="@@WeakMap@@"+Ze();while(d.has(W,ue));return W[ue]=!0,ue}function Ne(ue,xe){if(!i.call(ue,Y)){if(!xe)return;Object.defineProperty(ue,Y,{value:d.create()})}return ue[Y]}function ln(ue,xe){for(var be=0;be<xe;++be)ue[be]=Math.random()*255|0;return ue}function An(ue){return typeof Uint8Array=="function"?typeof crypto<"u"?crypto.getRandomValues(new Uint8Array(ue)):typeof msCrypto<"u"?msCrypto.getRandomValues(new Uint8Array(ue)):ln(new Uint8Array(ue),ue):ln(new Array(ue),ue)}function Ze(){var ue=An($);ue[6]=ue[6]&79|64,ue[8]=ue[8]&191|128;for(var xe="",be=0;be<$;++be){var Ie=ue[be];(be===4||be===6||be===8)&&(xe+="-"),Ie<16&&(xe+="0"),xe+=Ie.toString(16).toLowerCase()}return xe}}a(_f,"CreateWeakMapPolyfill");function Gs($){return $.__=void 0,delete $.__,$}a(Gs,"MakeDictionary")})})(oF||(oF={}))});var pF=Ve((N9,uF)=>{var o5=0,fF="changeUtils: ";function a5(){return"id-"+new Date().valueOf()+"-"+o5++}a(a5,"uid");function s5(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}a(s5,"appendComponentToReference");function c5(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return s5(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}a(c5,"getFlexReference");function l5(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}a(l5,"getAppVersion");function f5(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}a(f5,"getProjectId");function lF(e){return JSON.stringify({fileName:e.id||a5().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:fF+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})}a(lF,"createString");uF.exports={parse: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(fF,""),content:t.content,sapui5Version:t.support.sapui5Version}},createChangeString: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=c5(t),e.appVersion=l5(t),e.projectId=f5(t,e.reference),lF(e)},toString: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 lF(e)}}});var gF=Ve((L9,dF)=>{dF.exports={change:pF()}});var e0=Ve(ko=>{"use strict";var B5=/[|\\{}()[\]^$+*?.]/g,W5=Object.prototype.hasOwnProperty,ZF=a(function(e,t){return W5.apply(e,[t])},"hasOwn");ko.escapeRegExpChars=function(e){return e?String(e).replace(B5,"\\$&"):""};var G5={"&":"&","<":"<",">":">",'"':""","'":"'"},H5=/[&<>'"]/g;function K5(e){return G5[e]||e}a(K5,"encode_char");var X5=`var _ENCODE_HTML_RULES = {
|
|
30
30
|
"&": "&"
|
|
31
31
|
, "<": "<"
|
|
32
32
|
, ">": ">"
|
|
@@ -38,7 +38,7 @@ function encode_char(c) {
|
|
|
38
38
|
return _ENCODE_HTML_RULES[c] || c;
|
|
39
39
|
};
|
|
40
40
|
`;ko.escapeXML=function(e){return e==null?"":String(e).replace(H5,K5)};function qF(){return Function.prototype.toString.call(this)+`;
|
|
41
|
-
`+X5}a(qF,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(ko.escapeXML,"toString",{value:qF}):ko.escapeXML.toString=qF}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}ko.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)ZF(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};ko.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(!ZF(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};ko.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}};ko.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};ko.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}()});var t0=Ve((
|
|
41
|
+
`+X5}a(qF,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(ko.escapeXML,"toString",{value:qF}):ko.escapeXML.toString=qF}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}ko.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)ZF(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};ko.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(!ZF(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};ko.cache={_data:{},set:function(e,t){this._data[e]=t},get:function(e){return this._data[e]},remove:function(e){delete this._data[e]},reset:function(){this._data={}}};ko.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};ko.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}()});var t0=Ve((YZ,J5)=>{J5.exports={name:"ejs",description:"Embedded JavaScript templates",keywords:["template","engine","ejs"],version:"3.1.9",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:"mocha -u tdd"}}});var f0=Ve(At=>{"use strict";var PE=require("fs"),Eu=require("path"),Pn=e0(),n0=!1,Y5=t0().version,Q5="<",z5=">",q5="%",c0="locals",Z5="ejs",e8="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",l0=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],t8=l0.concat("cache"),i0=/^\uFEFF/,xE=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;At.cache=Pn.cache;At.fileLoader=PE.readFileSync;At.localsName=c0;At.promiseImpl=new Function("return this;")().Promise;At.resolveInclude=function(e,t,n){var i=Eu.dirname,r=Eu.extname,o=Eu.resolve,s=o(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function r0(e,t){var n;if(t.some(function(i){return n=At.resolveInclude(e,i,!0),PE.existsSync(n)}))return n}a(r0,"resolvePaths");function n8(e,t){var n,i,r=t.views,o=/^[A-Za-z]+:\\|^\//.exec(e);if(o&&o.length)e=e.replace(/^\/*/,""),Array.isArray(t.root)?n=r0(e,t.root):n=At.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=At.resolveInclude(e,t.filename),PE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=r0(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}a(n8,"getIncludePath");function bu(e,t){var n,i=e.filename,r=arguments.length>1;if(e.cache){if(!i)throw new Error("cache option requires a filename");if(n=At.cache.get(i),n)return n;r||(t=o0(i).toString().replace(i0,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=o0(i).toString().replace(i0,"")}return n=At.compile(t,e),e.cache&&At.cache.set(i,n),n}a(bu,"handleCache");function i8(e,t,n){var i;if(n){try{i=bu(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof At.promiseImpl=="function")return new At.promiseImpl(function(r,o){try{i=bu(e)(t),r(i)}catch(s){o(s)}});throw new Error("Please provide a callback function")}}a(i8,"tryHandleCache");function o0(e){return At.fileLoader(e)}a(o0,"fileLoader");function r8(e,t){var n=Pn.shallowCopy(Pn.createNullProtoObjWherePossible(),t);if(n.filename=n8(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return bu(n,i.template)}return bu(n)}a(r8,"includeFile");function a0(e,t,n,i,r){var o=t.split(`
|
|
42
42
|
`),s=Math.max(i-3,0),l=Math.min(o.length,i+3),u=r(n),p=o.slice(s,l).map(function(d,m){var T=m+s+1;return(T==i?" >> ":" ")+T+"| "+d}).join(`
|
|
43
43
|
`);throw e.path=u,e.message=(u||"ejs")+":"+i+`
|
|
44
44
|
`+p+`
|
|
@@ -79,7 +79,7 @@ try {
|
|
|
79
79
|
`;break;case Wn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+s0(e)+`))
|
|
80
80
|
`;break;case Wn.modes.RAW:this.source+=" ; __append("+s0(e)+`)
|
|
81
81
|
`;break;case Wn.modes.COMMENT:break;case Wn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&o&&(this.currentLine+=o,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
-
`)}};At.escapeXML=Pn.escapeXML;At.__express=At.renderFile;At.VERSION=Y5;At.name=Z5;typeof window<"u"&&(window.ejs=At)});var zu,tA=Xe(()=>{zu="7.1.1"});function it(e){return e&&e.length===0}function Ri(e){return e==null?[]:Object.keys(e)}function Dn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function Y0(e,t){for(var n=[],i=Ri(e),r=0;r<i.length;r++){var o=i[r];n.push(t.call(null,e[o],o))}return n}function ce(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function In(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(In(i)):t.push(i)}return t}function Ai(e){return it(e)?void 0:e[0]}function Th(e){var t=e&&e.length;return t?e[t-1]:void 0}function me(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Eh(e))for(var i=Ri(e),n=0;n<i.length;n++){var r=i[n],o=e[r];t.call(null,o,r)}else throw Error("non exhaustive match")}function jr(e){return typeof e=="string"}function Si(e){return e===void 0}function lo(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function xs(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function $r(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 Pa(e,t){return $r(e,function(n){return!t(n)})}function dr(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var o=n[r],s=e[o];t(s)&&(i[o]=s)}return i}function Ae(e,t){return Eh(e)?e.hasOwnProperty(t):!1}function Rt(e,t){return Ia(e,function(n){return n===t})!==void 0}function yn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Ps(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Ia(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function Q0(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 on(e,t,n){for(var i=Array.isArray(e),r=i?e:Dn(e),o=i?[]:Ri(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:o[l]);return s}function Oa(e){return Pa(e,function(t){return t==null})}function qu(e,t){t===void 0&&(t=a(function(i){return i},"identity"));var n=[];return on(e,function(i,r){var o=t(r);return Rt(n,o)?i:(n.push(o),i.concat(r))},[])}function
|
|
82
|
+
`)}};At.escapeXML=Pn.escapeXML;At.__express=At.renderFile;At.VERSION=Y5;At.name=Z5;typeof window<"u"&&(window.ejs=At)});var zu,tA=Xe(()=>{zu="7.1.1"});function it(e){return e&&e.length===0}function Ri(e){return e==null?[]:Object.keys(e)}function Dn(e){for(var t=[],n=Object.keys(e),i=0;i<n.length;i++)t.push(e[n[i]]);return t}function Y0(e,t){for(var n=[],i=Ri(e),r=0;r<i.length;r++){var o=i[r];n.push(t.call(null,e[o],o))}return n}function ce(e,t){for(var n=[],i=0;i<e.length;i++)n.push(t.call(null,e[i],i));return n}function In(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];Array.isArray(i)?t=t.concat(In(i)):t.push(i)}return t}function Ai(e){return it(e)?void 0:e[0]}function Th(e){var t=e&&e.length;return t?e[t-1]:void 0}function me(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t.call(null,e[n],n);else if(Eh(e))for(var i=Ri(e),n=0;n<i.length;n++){var r=i[n],o=e[r];t.call(null,o,r)}else throw Error("non exhaustive match")}function jr(e){return typeof e=="string"}function Si(e){return e===void 0}function lo(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function xs(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function $r(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 Pa(e,t){return $r(e,function(n){return!t(n)})}function dr(e,t){for(var n=Object.keys(e),i={},r=0;r<n.length;r++){var o=n[r],s=e[o];t(s)&&(i[o]=s)}return i}function Ae(e,t){return Eh(e)?e.hasOwnProperty(t):!1}function Rt(e,t){return Ia(e,function(n){return n===t})!==void 0}function yn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Ps(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Ia(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function Q0(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 on(e,t,n){for(var i=Array.isArray(e),r=i?e:Dn(e),o=i?[]:Ri(e),s=n,l=0;l<r.length;l++)s=t.call(null,s,r[l],i?l:o[l]);return s}function Oa(e){return Pa(e,function(t){return t==null})}function qu(e,t){t===void 0&&(t=a(function(i){return i},"identity"));var n=[];return on(e,function(i,r){var o=t(r);return Rt(n,o)?i:(n.push(o),i.concat(r))},[])}function Zie(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 fo(e){return e instanceof RegExp}function Eh(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 Mc(e,t){return Pa(e,function(n){return Rt(t,n)})}function bh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function z0(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function ere(e,t){var n=yn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function tre(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 gr(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],o=Ri(r),s=0;s<o.length;s++){var l=o[s];e[l]=r[l]}return e}function u3(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],o=Ri(r),s=0;s<o.length;s++){var l=o[s];Ae(e,l)||(e[l]=r[l])}return e}function Zu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return u3.apply(null,[{}].concat(e))}function q0(e,t){var n={};return me(e,function(i){var r=t(i),o=n[r];o?o.push(i):n[r]=[i]}),n}function nA(e,t){for(var n=Ps(e),i=Ri(t),r=0;r<i.length;r++){var o=i[r],s=t[o];n[o]=s}return n}function Mn(){}function iA(e){return e}function Z0(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 ep(e){console&&console.error&&console.error("Error: "+e)}function Ah(e){console&&console.warn&&console.warn("Warning: "+e)}function rA(){return typeof Map=="function"}function e_(e,t){t.forEach(function(n){var i=n.prototype;Object.getOwnPropertyNames(i).forEach(function(r){if(r!=="constructor"){var o=Object.getOwnPropertyDescriptor(i,r);o&&(o.get||o.set)?Object.defineProperty(e.prototype,r,o):e.prototype[r]=n.prototype[r]}})})}function Sh(toBecomeFast){function FakeConstructor(){}a(FakeConstructor,"FakeConstructor"),FakeConstructor.prototype=toBecomeFast;var fakeInstance=new FakeConstructor;function fakeAccess(){return typeof fakeInstance.bar}return a(fakeAccess,"fakeAccess"),fakeAccess(),fakeAccess(),toBecomeFast;eval(toBecomeFast)}function tp(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 gt=Xe(()=>{a(it,"isEmpty");a(Ri,"keys");a(Dn,"values");a(Y0,"mapValues");a(ce,"map");a(In,"flatten");a(Ai,"first");a(Th,"last");a(me,"forEach");a(jr,"isString");a(Si,"isUndefined");a(lo,"isFunction");a(wn,"drop");a(xs,"dropRight");a($r,"filter");a(Pa,"reject");a(dr,"pick");a(Ae,"has");a(Rt,"contains");a(yn,"cloneArr");a(Ps,"cloneObj");a(Ia,"find");a(Q0,"findAll");a(on,"reduce");a(Oa,"compact");a(qu,"uniq");a(Zie,"partial");a(li,"isArray");a(fo,"isRegExp");a(Eh,"isObject");a(fi,"every");a(Mc,"difference");a(bh,"some");a(z0,"indexOf");a(ere,"sortBy");a(tre,"zipObject");a(gr,"assign");a(u3,"assignNoOverwrite");a(Zu,"defaults");a(q0,"groupBy");a(nA,"merge");a(Mn,"NOOP");a(iA,"IDENTITY");a(Z0,"packArray");a(ep,"PRINT_ERROR");a(Ah,"PRINT_WARNING");a(rA,"isES2015MapSupported");a(e_,"applyMixins");a(Sh,"toFastProperties");a(tp,"peek");a(xh,"timer")});var Ih=Ve((n_,Ph)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Ph=="object"&&Ph.exports?Ph.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:n_,function(){function e(){}a(e,"RegExpParser"),e.prototype.saveState=function(){return{idx:this.idx,input:this.input,groupIdx:this.groupIdx}},e.prototype.restoreState=function(E){this.idx=E.idx,this.input=E.input,this.groupIdx=E.groupIdx},e.prototype.pattern=function(E){this.idx=0,this.input=E,this.groupIdx=0,this.consumeChar("/");var C=this.disjunction();this.consumeChar("/");for(var R={type:"Flags",loc:{begin:this.idx,end:E.length},global:!1,ignoreCase:!1,multiLine:!1,unicode:!1,sticky:!1};this.isRegExpFlag();)switch(this.popChar()){case"g":s(R,"global");break;case"i":s(R,"ignoreCase");break;case"m":s(R,"multiLine");break;case"u":s(R,"unicode");break;case"y":s(R,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:R,value:C,loc:this.loc(0)}},e.prototype.disjunction=function(){var E=[],C=this.idx;for(E.push(this.alternative());this.peekChar()==="|";)this.consumeChar("|"),E.push(this.alternative());return{type:"Disjunction",value:E,loc:this.loc(C)}},e.prototype.alternative=function(){for(var E=[],C=this.idx;this.isTerm();)E.push(this.term());return{type:"Alternative",value:E,loc:this.loc(C)}},e.prototype.term=function(){return this.isAssertion()?this.assertion():this.atom()},e.prototype.assertion=function(){var E=this.idx;switch(this.popChar()){case"^":return{type:"StartAnchor",loc:this.loc(E)};case"$":return{type:"EndAnchor",loc:this.loc(E)};case"\\":switch(this.popChar()){case"b":return{type:"WordBoundary",loc:this.loc(E)};case"B":return{type:"NonWordBoundary",loc:this.loc(E)}}throw Error("Invalid Assertion Escape");case"(":this.consumeChar("?");var C;switch(this.popChar()){case"=":C="Lookahead";break;case"!":C="NegativeLookahead";break}l(C);var R=this.disjunction();return this.consumeChar(")"),{type:C,value:R,loc:this.loc(E)}}u()},e.prototype.quantifier=function(E){var C,R=this.idx;switch(this.popChar()){case"*":C={atLeast:0,atMost:1/0};break;case"+":C={atLeast:1,atMost:1/0};break;case"?":C={atLeast:0,atMost:1};break;case"{":var L=this.integerIncludingZero();switch(this.popChar()){case"}":C={atLeast:L,atMost:L};break;case",":var F;this.isDigit()?(F=this.integerIncludingZero(),C={atLeast:L,atMost:F}):C={atLeast:L,atMost:1/0},this.consumeChar("}");break}if(E===!0&&C===void 0)return;l(C);break}if(!(E===!0&&C===void 0))return l(C),this.peekChar(0)==="?"?(this.consumeChar("?"),C.greedy=!1):C.greedy=!0,C.type="Quantifier",C.loc=this.loc(R),C},e.prototype.atom=function(){var E,C=this.idx;switch(this.peekChar()){case".":E=this.dotAll();break;case"\\":E=this.atomEscape();break;case"[":E=this.characterClass();break;case"(":E=this.group();break}return E===void 0&&this.isPatternCharacter()&&(E=this.patternCharacter()),l(E),E.loc=this.loc(C),this.isQuantifier()&&(E.quantifier=this.quantifier()),E},e.prototype.dotAll=function(){return this.consumeChar("."),{type:"Set",complement:!0,value:[r(`
|
|
83
83
|
`),r("\r"),r("\u2028"),r("\u2029")]}},e.prototype.atomEscape=function(){switch(this.consumeChar("\\"),this.peekChar()){case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":return this.decimalEscapeAtom();case"d":case"D":case"s":case"S":case"w":case"W":return this.characterClassEscape();case"f":case"n":case"r":case"t":case"v":return this.controlEscapeAtom();case"c":return this.controlLetterEscapeAtom();case"0":return this.nulCharacterAtom();case"x":return this.hexEscapeSequenceAtom();case"u":return this.regExpUnicodeEscapeSequenceAtom();default:return this.identityEscapeAtom()}},e.prototype.decimalEscapeAtom=function(){var E=this.positiveInteger();return{type:"GroupBackReference",value:E}},e.prototype.characterClassEscape=function(){var E,C=!1;switch(this.popChar()){case"d":E=d;break;case"D":E=d,C=!0;break;case"s":E=T;break;case"S":E=T,C=!0;break;case"w":E=m;break;case"W":E=m,C=!0;break}return l(E),{type:"Set",value:E,complement:C}},e.prototype.controlEscapeAtom=function(){var E;switch(this.popChar()){case"f":E=r("\f");break;case"n":E=r(`
|
|
84
84
|
`);break;case"r":E=r("\r");break;case"t":E=r(" ");break;case"v":E=r("\v");break}return l(E),{type:"Character",value:E}},e.prototype.controlLetterEscapeAtom=function(){this.consumeChar("c");var E=this.popChar();if(/[a-zA-Z]/.test(E)===!1)throw Error("Invalid ");var C=E.toUpperCase().charCodeAt(0)-64;return{type:"Character",value:C}},e.prototype.nulCharacterAtom=function(){return this.consumeChar("0"),{type:"Character",value:r("\0")}},e.prototype.hexEscapeSequenceAtom=function(){return this.consumeChar("x"),this.parseHexDigits(2)},e.prototype.regExpUnicodeEscapeSequenceAtom=function(){return this.consumeChar("u"),this.parseHexDigits(4)},e.prototype.identityEscapeAtom=function(){var E=this.popChar();return{type:"Character",value:r(E)}},e.prototype.classPatternCharacterAtom=function(){switch(this.peekChar()){case`
|
|
85
85
|
`:case"\r":case"\u2028":case"\u2029":case"\\":case"]":throw Error("TBD");default:var E=this.popChar();return{type:"Character",value:r(E)}}},e.prototype.characterClass=function(){var E=[],C=!1;for(this.consumeChar("["),this.peekChar(0)==="^"&&(this.consumeChar("^"),C=!0);this.isClassAtom();){var R=this.classAtom(),L=R.type==="Character";if(L&&this.isRangeDash()){this.consumeChar("-");var F=this.classAtom(),U=F.type==="Character";if(U){if(F.value<R.value)throw Error("Range out of order in character class");E.push({from:R.value,to:F.value})}else o(R.value,E),E.push(r("-")),o(F.value,E)}else o(R.value,E)}return this.consumeChar("]"),{type:"Set",complement:C,value:E}},e.prototype.classAtom=function(){switch(this.peekChar()){case"]":case`
|
|
@@ -87,7 +87,7 @@ try {
|
|
|
87
87
|
`:case"\r":case"\u2028":case"\u2029":case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":throw Error("TBD");default:return{type:"Character",value:r(E)}}},e.prototype.isRegExpFlag=function(){switch(this.peekChar(0)){case"g":case"i":case"m":case"u":case"y":return!0;default:return!1}},e.prototype.isRangeDash=function(){return this.peekChar()==="-"&&this.isClassAtom(1)},e.prototype.isDigit=function(){return n.test(this.peekChar(0))},e.prototype.isClassAtom=function(E){switch(E===void 0&&(E=0),this.peekChar(E)){case"]":case`
|
|
88
88
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.isTerm=function(){return this.isAtom()||this.isAssertion()},e.prototype.isAtom=function(){if(this.isPatternCharacter())return!0;switch(this.peekChar(0)){case".":case"\\":case"[":case"(":return!0;default:return!1}},e.prototype.isAssertion=function(){switch(this.peekChar(0)){case"^":case"$":return!0;case"\\":switch(this.peekChar(1)){case"b":case"B":return!0;default:return!1}case"(":return this.peekChar(1)==="?"&&(this.peekChar(2)==="="||this.peekChar(2)==="!");default:return!1}},e.prototype.isQuantifier=function(){var E=this.saveState();try{return this.quantifier(!0)!==void 0}catch{return!1}finally{this.restoreState(E)}},e.prototype.isPatternCharacter=function(){switch(this.peekChar()){case"^":case"$":case"\\":case".":case"*":case"+":case"?":case"(":case")":case"[":case"|":case"/":case`
|
|
89
89
|
`:case"\r":case"\u2028":case"\u2029":return!1;default:return!0}},e.prototype.parseHexDigits=function(E){for(var C="",R=0;R<E;R++){var L=this.popChar();if(t.test(L)===!1)throw Error("Expecting a HexDecimal digits");C+=L}var F=parseInt(C,16);return{type:"Character",value:F}},e.prototype.peekChar=function(E){return E===void 0&&(E=0),this.input[this.idx+E]},e.prototype.popChar=function(){var E=this.peekChar(0);return this.consumeChar(),E},e.prototype.consumeChar=function(E){if(E!==void 0&&this.input[this.idx]!==E)throw Error("Expected: '"+E+"' but found: '"+this.input[this.idx]+"' at offset: "+this.idx);if(this.idx>=this.input.length)throw Error("Unexpected end of input");this.idx++},e.prototype.loc=function(E){return{begin:E,end:this.idx}};var t=/[0-9a-fA-F]/,n=/[0-9]/,i=/[1-9]/;function r(E){return E.charCodeAt(0)}a(r,"cc");function o(E,C){E.length!==void 0?E.forEach(function(R){C.push(R)}):C.push(E)}a(o,"insertToSet");function s(E,C){if(E[C]===!0)throw"duplicate flag "+C;E[C]=!0}a(s,"addFlag");function l(E){if(E===void 0)throw Error("Internal Error - Should never get here!")}a(l,"ASSERT_EXISTS");function u(){throw Error("Internal Error - Should never get here!")}a(u,"ASSERT_NEVER_REACH_HERE");var p,d=[];for(p=r("0");p<=r("9");p++)d.push(p);var m=[r("_")].concat(d);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 b(){}return a(b,"BaseRegExpVisitor"),b.prototype.visitChildren=function(E){for(var C in E){var R=E[C];E.hasOwnProperty(C)&&(R.type!==void 0?this.visit(R):Array.isArray(R)&&R.forEach(function(L){this.visit(L)},this))}},b.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},b.prototype.visitPattern=function(E){},b.prototype.visitFlags=function(E){},b.prototype.visitDisjunction=function(E){},b.prototype.visitAlternative=function(E){},b.prototype.visitStartAnchor=function(E){},b.prototype.visitEndAnchor=function(E){},b.prototype.visitWordBoundary=function(E){},b.prototype.visitNonWordBoundary=function(E){},b.prototype.visitLookahead=function(E){},b.prototype.visitNegativeLookahead=function(E){},b.prototype.visitCharacter=function(E){},b.prototype.visitSet=function(E){},b.prototype.visitGroup=function(E){},b.prototype.visitGroupBackReference=function(E){},b.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:b,VERSION:"0.5.0"}})});function Yl(e){var t=e.toString();if(Oh.hasOwnProperty(t))return Oh[t];var n=
|
|
90
|
+
`),r("\r"),r(" "),r("\v"),r(" "),r("\xA0"),r("\u1680"),r("\u2000"),r("\u2001"),r("\u2002"),r("\u2003"),r("\u2004"),r("\u2005"),r("\u2006"),r("\u2007"),r("\u2008"),r("\u2009"),r("\u200A"),r("\u2028"),r("\u2029"),r("\u202F"),r("\u205F"),r("\u3000"),r("\uFEFF")];function b(){}return a(b,"BaseRegExpVisitor"),b.prototype.visitChildren=function(E){for(var C in E){var R=E[C];E.hasOwnProperty(C)&&(R.type!==void 0?this.visit(R):Array.isArray(R)&&R.forEach(function(L){this.visit(L)},this))}},b.prototype.visit=function(E){switch(E.type){case"Pattern":this.visitPattern(E);break;case"Flags":this.visitFlags(E);break;case"Disjunction":this.visitDisjunction(E);break;case"Alternative":this.visitAlternative(E);break;case"StartAnchor":this.visitStartAnchor(E);break;case"EndAnchor":this.visitEndAnchor(E);break;case"WordBoundary":this.visitWordBoundary(E);break;case"NonWordBoundary":this.visitNonWordBoundary(E);break;case"Lookahead":this.visitLookahead(E);break;case"NegativeLookahead":this.visitNegativeLookahead(E);break;case"Character":this.visitCharacter(E);break;case"Set":this.visitSet(E);break;case"Group":this.visitGroup(E);break;case"GroupBackReference":this.visitGroupBackReference(E);break;case"Quantifier":this.visitQuantifier(E);break}this.visitChildren(E)},b.prototype.visitPattern=function(E){},b.prototype.visitFlags=function(E){},b.prototype.visitDisjunction=function(E){},b.prototype.visitAlternative=function(E){},b.prototype.visitStartAnchor=function(E){},b.prototype.visitEndAnchor=function(E){},b.prototype.visitWordBoundary=function(E){},b.prototype.visitNonWordBoundary=function(E){},b.prototype.visitLookahead=function(E){},b.prototype.visitNegativeLookahead=function(E){},b.prototype.visitCharacter=function(E){},b.prototype.visitSet=function(E){},b.prototype.visitGroup=function(E){},b.prototype.visitGroupBackReference=function(E){},b.prototype.visitQuantifier=function(E){},{RegExpParser:e,BaseRegExpVisitor:b,VERSION:"0.5.0"}})});function Yl(e){var t=e.toString();if(Oh.hasOwnProperty(t))return Oh[t];var n=p3.pattern(t);return Oh[t]=n,n}function r_(){Oh={}}var i_,Oh,p3,Ch=Xe(()=>{i_=te(Ih()),Oh={},p3=new i_.RegExpParser;a(Yl,"getRegExpAst");a(r_,"clearRegExpParserCache")});function s_(e,t){t===void 0&&(t=!1);try{var n=Yl(e),i=oA(n.value,{},n.flags.ignoreCase);return i}catch(o){if(o.message===a_)t&&Ah(""+np+(" Unable to optimize: < "+e.toString()+` >
|
|
91
91
|
`)+` Complement Sets cannot be automatically optimized.
|
|
92
92
|
This will disable the lexer's first char optimizations.
|
|
93
93
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#COMPLEMENT for details.`);else{var r="";t&&(r=`
|
|
@@ -95,33 +95,33 @@ try {
|
|
|
95
95
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#REGEXP_PARSING for details.`),ep(np+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
97
|
`)+(" Using the regexp-to-ast library version: "+Rh.VERSION+`
|
|
98
|
-
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function oA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)oA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var o=r[i];switch(o.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=o;switch(s.type){case"Character":Nh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(a_);me(s.value,function(p){if(typeof p=="number")Nh(p,t,n);else{var d=p;if(n===!0)for(var m=d.from;m<=d.to;m++)Nh(m,t,n);else{for(var m=d.from;m<=d.to&&m<Ql;m++)Nh(m,t,n);if(d.to>=Ql)for(var T=d.from>=Ql?d.from:Ql,b=d.to,E=Go(T),C=Go(b),R=E;R<=C;R++)t[R]=R}}});break;case"Group":oA(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"&&aA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Dn(t)}function Nh(e,t,n){var i=Go(e);t[i]=i,n===!0&&
|
|
99
|
-
`;a(s_,"getOptimizedStartCodesIndices");a(oA,"firstCharOptimizedIndices");a(Nh,"addOptimizedIdxToResult");a(
|
|
100
|
-
`],tracer:function(F,U){return U()}});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){
|
|
98
|
+
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function oA(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)oA(e.value[i],t,n);break;case"Alternative":for(var r=e.value,i=0;i<r.length;i++){var o=r[i];switch(o.type){case"EndAnchor":case"GroupBackReference":case"Lookahead":case"NegativeLookahead":case"StartAnchor":case"WordBoundary":case"NonWordBoundary":continue}var s=o;switch(s.type){case"Character":Nh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(a_);me(s.value,function(p){if(typeof p=="number")Nh(p,t,n);else{var d=p;if(n===!0)for(var m=d.from;m<=d.to;m++)Nh(m,t,n);else{for(var m=d.from;m<=d.to&&m<Ql;m++)Nh(m,t,n);if(d.to>=Ql)for(var T=d.from>=Ql?d.from:Ql,b=d.to,E=Go(T),C=Go(b),R=E;R<=C;R++)t[R]=R}}});break;case"Group":oA(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"&&aA(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Dn(t)}function Nh(e,t,n){var i=Go(e);t[i]=i,n===!0&&g3(e,t)}function g3(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Go(i.charCodeAt(0));t[r]=r}else{var o=n.toLowerCase();if(o!==n){var r=Go(o.charCodeAt(0));t[r]=r}}}function o_(e,t){return Ia(e.value,function(n){if(typeof n=="number")return Rt(t,n);var i=n;return Ia(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function aA(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?li(e.value)?fi(e.value,aA):aA(e.value):!1}function Lh(e,t){if(t instanceof RegExp){var n=Yl(t),i=new m3(e);return i.visit(n),i.found}else return Ia(t,function(r){return Rt(e,r.charCodeAt(0))})!==void 0}var Rh,d3,a_,np,m3,c_=Xe(()=>{Rh=te(Ih());gt();Ch();sA();d3=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),a_="Complement Sets are not supported for first char optimization",np=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;a(s_,"getOptimizedStartCodesIndices");a(oA,"firstCharOptimizedIndices");a(Nh,"addOptimizedIdxToResult");a(g3,"handleIgnoreCase");a(o_,"findCode");a(aA,"isWholeOptional");m3=function(e){d3(t,e);function t(n){var i=e.call(this)||this;return i.targetCharCodes=n,i.found=!1,i}return a(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){Rt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?o_(n,this.targetCharCodes)===void 0&&(this.found=!0):o_(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Rh.BaseRegExpVisitor);a(Lh,"canMatchCharCode")});function p_(e,t){t=Zu(t,{useSticky:fA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:function(F,U){return U()}});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){_3()});var i;n("Reject Lexer.NA",function(){i=Pa(e,function(F){return F[Ho]===Li.NA})});var r=!1,o;n("Transform Patterns",function(){r=!1,o=ce(i,function(F){var U=F[Ho];if(fo(U)){var J=U.source;return J.length===1&&J!=="^"&&J!=="$"&&J!=="."&&!U.ignoreCase?J:J.length===2&&J[0]==="\\"&&!Rt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],J[1])?J[1]:t.useSticky?f_(U):l_(U)}else{if(lo(U))return r=!0,{exec:U};if(Ae(U,"exec"))return r=!0,U;if(typeof U=="string"){if(U.length===1)return U;var re=U.replace(/[\\^$.*+?()[\]{}|]/g,"\\$&"),Ce=new RegExp(re);return t.useSticky?f_(Ce):l_(Ce)}else throw Error("non exhaustive match")}})});var s,l,u,p,d;n("misc mapping",function(){s=ce(i,function(F){return F.tokenTypeIdx}),l=ce(i,function(F){var U=F.GROUP;if(U!==Li.SKIPPED){if(jr(U))return U;if(Si(U))return!1;throw Error("non exhaustive match")}}),u=ce(i,function(F){var U=F.LONGER_ALT;if(U){var J=z0(i,U);return J}}),p=ce(i,function(F){return F.PUSH_MODE}),d=ce(i,function(F){return Ae(F,"POP_MODE")})});var m;n("Line Terminator Handling",function(){var F=E_(t.lineTerminatorCharacters);m=ce(i,function(U){return!1}),t.positionTracking!=="onlyOffset"&&(m=ce(i,function(U){if(Ae(U,"LINE_BREAKS"))return U.LINE_BREAKS;if(T_(U,F)===!1)return Lh(F,U.PATTERN)}))});var T,b,E,C;n("Misc Mapping #2",function(){T=ce(i,y_),b=ce(o,L3),E=on(i,function(F,U){var J=U.GROUP;return jr(J)&&J!==Li.SKIPPED&&(F[J]=[]),F},{}),C=ce(o,function(F,U){return{pattern:o[U],longerAlt:u[U],canLineTerminator:m[U],isCustom:T[U],short:b[U],group:l[U],push:p[U],pop:d[U],tokenTypeIdx:s[U],tokenType:i[U]}})});var R=!0,L=[];return t.safeMode||n("First Char Optimization",function(){L=on(i,function(F,U,J){if(typeof U.PATTERN=="string"){var re=U.PATTERN.charCodeAt(0),Ce=Go(re);cA(F,Ce,C[J])}else if(li(U.START_CHARS_HINT)){var st;me(U.START_CHARS_HINT,function(Ot){var ht=typeof Ot=="string"?Ot.charCodeAt(0):Ot,Ke=Go(ht);st!==Ke&&(st=Ke,cA(F,Ke,C[J]))})}else if(fo(U.PATTERN))if(U.PATTERN.unicode)R=!1,t.ensureOptimizations&&ep(""+np+(" 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
103
|
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNICODE_OPTIMIZE`);else{var k=s_(U.PATTERN,t.ensureOptimizations);it(k)&&(R=!1),me(k,function(Ot){cA(F,Ot,C[J])})}else t.ensureOptimizations&&ep(""+np+(" 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`),R=!1;return F},[])}),n("ArrayPacking",function(){L=Z0(L)}),{emptyGroups:E,patternIdxToConfig:C,charCodeToPatternIdxToConfig:L,hasCustom:r,canBeOptimized:R}}function d_(e,t){var n=[],i=
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),R=!1;return F},[])}),n("ArrayPacking",function(){L=Z0(L)}),{emptyGroups:E,patternIdxToConfig:C,charCodeToPatternIdxToConfig:L,hasCustom:r,canBeOptimized:R}}function d_(e,t){var n=[],i=y3(e);n=n.concat(i.errors);var r=v3(i.valid),o=r.valid;return n=n.concat(r.errors),n=n.concat(h3(o)),n=n.concat(I3(o)),n=n.concat(O3(o,t)),n=n.concat(C3(o)),n}function h3(e){var t=[],n=$r(e,function(i){return fo(i[Ho])});return t=t.concat(E3(n)),t=t.concat(S3(n)),t=t.concat(x3(n)),t=t.concat(P3(n)),t=t.concat(b3(n)),t}function y3(e){var t=$r(e,function(r){return!Ae(r,Ho)}),n=ce(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:an.MISSING_PATTERN,tokenTypes:[r]}}),i=Mc(e,t);return{errors:n,valid:i}}function v3(e){var t=$r(e,function(r){var o=r[Ho];return!fo(o)&&!lo(o)&&!Ae(o,"exec")&&!jr(o)}),n=ce(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:an.INVALID_PATTERN,tokenTypes:[r]}}),i=Mc(e,t);return{errors:n,valid:i}}function E3(e){var t=function(r){u_(o,r);function o(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return a(o,"EndAnchorFinder"),o.prototype.visitEndAnchor=function(s){this.found=!0},o}(lA.BaseRegExpVisitor),n=$r(e,function(r){var o=r[Ho];try{var s=Yl(o),l=new t;return l.visit(s),l.found}catch{return T3.test(o.source)}}),i=ce(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:an.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
107
|
+
See sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:an.EOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function b3(e){var t=$r(e,function(i){var r=i[Ho];return r.test("")}),n=ce(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' must not match an empty string",type:an.EMPTY_MATCH_PATTERN,tokenTypes:[i]}});return n}function S3(e){var t=function(r){u_(o,r);function o(){var s=r!==null&&r.apply(this,arguments)||this;return s.found=!1,s}return a(o,"StartAnchorFinder"),o.prototype.visitStartAnchor=function(s){this.found=!0},o}(lA.BaseRegExpVisitor),n=$r(e,function(r){var o=r[Ho];try{var s=Yl(o),l=new t;return l.visit(s),l.found}catch{return A3.test(o.source)}}),i=ce(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:an.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function
|
|
109
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#ANCHORS for details.`,type:an.SOI_ANCHOR_FOUND,tokenTypes:[r]}});return i}function x3(e){var t=$r(e,function(i){var r=i[Ho];return r instanceof RegExp&&(r.multiline||r.global)}),n=ce(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'PATTERN' may NOT contain global('g') or multiline('m')",type:an.UNSUPPORTED_FLAGS_FOUND,tokenTypes:[i]}});return n}function P3(e){var t=[],n=ce(e,function(o){return on(e,function(s,l){return o.PATTERN.source===l.PATTERN.source&&!Rt(t,l)&&l.PATTERN!==Li.NA&&(t.push(l),s.push(l)),s},[])});n=Oa(n);var i=$r(n,function(o){return o.length>1}),r=ce(i,function(o){var s=ce(o,function(u){return u.name}),l=Ai(o).PATTERN;return{message:"The same RegExp pattern ->"+l+"<-"+("has been used in all of the following Token Types: "+s.join(", ")+" <-"),type:an.DUPLICATE_PATTERNS_FOUND,tokenTypes:o}});return r}function I3(e){var t=$r(e,function(i){if(!Ae(i,"GROUP"))return!1;var r=i.GROUP;return r!==Li.SKIPPED&&r!==Li.NA&&!jr(r)}),n=ce(t,function(i){return{message:"Token Type: ->"+i.name+"<- static 'GROUP' can only be Lexer.SKIPPED/Lexer.NA/A String",type:an.INVALID_GROUP_TYPE_FOUND,tokenTypes:[i]}});return n}function O3(e,t){var n=$r(e,function(r){return r.PUSH_MODE!==void 0&&!Rt(t,r.PUSH_MODE)}),i=ce(n,function(r){var o="Token Type: ->"+r.name+"<- static 'PUSH_MODE' value cannot refer to a Lexer Mode ->"+r.PUSH_MODE+"<-which does not exist";return{message:o,type:an.PUSH_MODE_DOES_NOT_EXIST,tokenTypes:[r]}});return i}function C3(e){var t=[],n=on(e,function(i,r,o){var s=r.PATTERN;return s===Li.NA||(jr(s)?i.push({str:s,idx:o,tokenType:r}):fo(s)&&R3(s)&&i.push({str:s.source,idx:o,tokenType:r})),i},[]);return me(e,function(i,r){me(n,function(o){var s=o.str,l=o.idx,u=o.tokenType;if(r<l&&N3(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:an.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function
|
|
111
|
+
See https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#UNREACHABLE`;t.push({message:p,type:an.UNREACHABLE_PATTERN,tokenTypes:[i,u]})}})}),t}function N3(e,t){if(fo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(lo(t))return t(e,0,[],{});if(Ae(t,"exec"))return t.exec(e,0,[],{});if(typeof t=="string")return t===e;throw Error("non exhaustive match")}}function R3(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Ia(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function l_(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function f_(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function g_(e,t,n){var i=[];return Ae(e,Is)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Is+`> property in its definition
|
|
112
112
|
`,type:an.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ae(e,Fh)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Fh+`> property in its definition
|
|
113
113
|
`,type:an.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ae(e,Fh)&&Ae(e,Is)&&!Ae(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+Is+": <"+e.defaultMode+`>which does not exist
|
|
114
114
|
`,type:an.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ae(e,Fh)&&me(e.modes,function(r,o){me(r,function(s,l){Si(s)&&i.push({message:"A Lexer cannot be initialized using an undefined Token Type. Mode:"+("<"+o+"> at index: <"+l+`>
|
|
115
|
-
`),type:an.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function m_(e,t,n){var i=[],r=!1,o=Oa(In(Y0(e.modes,function(u){return u}))),s=Pa(o,function(u){return u[Ho]===Li.NA}),l=E_(n);return t&&me(s,function(u){var p=T_(u,l);if(p!==!1){var d=
|
|
115
|
+
`),type:an.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function m_(e,t,n){var i=[],r=!1,o=Oa(In(Y0(e.modes,function(u){return u}))),s=Pa(o,function(u){return u[Ho]===Li.NA}),l=E_(n);return t&&me(s,function(u){var p=T_(u,l);if(p!==!1){var d=F3(u,p),m={message:d,type:p.issue,tokenType:u};i.push(m)}else Ae(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Lh(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:an.NO_LINE_BREAKS_FLAGS}),i}function h_(e){var t={},n=Ri(e);return me(n,function(i){var r=e[i];if(li(r))t[i]=[];else throw Error("non exhaustive match")}),t}function y_(e){var t=e.PATTERN;if(fo(t))return!1;if(lo(t))return!0;if(Ae(t,"exec"))return!0;if(jr(t))return!1;throw Error("non exhaustive match")}function
|
|
119
|
+
for details.`,type:an.NO_LINE_BREAKS_FLAGS}),i}function h_(e){var t={},n=Ri(e);return me(n,function(i){var r=e[i];if(li(r))t[i]=[];else throw Error("non exhaustive match")}),t}function y_(e){var t=e.PATTERN;if(fo(t))return!1;if(lo(t))return!0;if(Ae(t,"exec"))return!0;if(jr(t))return!1;throw Error("non exhaustive match")}function L3(e){return jr(e)&&e.length===1?e.charCodeAt(0):!1}function T_(e,t){if(Ae(e,"LINE_BREAKS"))return!1;if(fo(e.PATTERN)){try{Lh(t,e.PATTERN)}catch(n){return{issue:an.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if(jr(e.PATTERN))return!1;if(y_(e))return{issue:an.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function F3(e,t){if(t.issue===an.IDENTIFY_TERMINATOR)return`Warning: unable to identify line terminator usage in pattern.
|
|
120
120
|
`+(" The problem is in the <"+e.name+`> Token Type
|
|
121
121
|
`)+(" Root cause: "+t.errMsg+`.
|
|
122
122
|
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#IDENTIFY_TERMINATOR";if(t.issue===an.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 E_(e){var t=ce(e,function(n){return jr(n)&&n.length>0?n.charCodeAt(0):n});return t}function cA(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Go(e){return e<Ql?e:_h[e]}function
|
|
124
|
+
`)+" For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_LINE_BREAK";throw Error("non exhaustive match")}function E_(e){var t=ce(e,function(n){return jr(n)&&n.length>0?n.charCodeAt(0):n});return t}function cA(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Go(e){return e<Ql?e:_h[e]}function _3(){if(it(_h)){_h=new Array(65536);for(var e=0;e<65536;e++)_h[e]=e>255?255+~~(e/255):e}}var lA,u_,Ho,Is,Fh,fA,T3,A3,v_,Ql,_h,sA=Xe(()=>{lA=te(Ih());ip();gt();c_();Ch();u_=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Ho="PATTERN",Is="defaultMode",Fh="modes",fA=typeof new RegExp("(?:)").sticky=="boolean";a(p_,"analyzeTokenTypes");a(d_,"validatePatterns");a(h3,"validateRegExpPattern");a(y3,"findMissingPatterns");a(v3,"findInvalidPatterns");T3=/[^\\][\$]/;a(E3,"findEndOfInputAnchor");a(b3,"findEmptyMatchRegExps");A3=/[^\\[][\^]|^\^/;a(S3,"findStartOfInputAnchor");a(x3,"findUnsupportedFlags");a(P3,"findDuplicatePatterns");a(I3,"findInvalidGroupType");a(O3,"findModesThatDoNotExist");a(C3,"findUnreachablePatterns");a(N3,"testTokenType");a(R3,"noMetaChar");a(l_,"addStartOfInput");a(f_,"addStickyFlag");a(g_,"performRuntimeChecks");a(m_,"performWarningRuntimeChecks");a(h_,"cloneEmptyGroups");a(y_,"isCustomPattern");a(L3,"isShortPattern");v_={test: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},lastIndex:0};a(T_,"checkLineBreaksIssues");a(F3,"buildLineBreakIssueMessage");a(E_,"getCharCodes");a(cA,"addToMapOfArrays");Ql=256;a(Go,"charCodeToOptimizedIndex");_h=[];a(_3,"initCharCodeToOptimizedIndexMap")});function Vc(e,t){var n=e.tokenTypeIdx;return n===t.tokenTypeIdx?!0:t.isParent===!0&&t.categoryMatchesMap[n]===!0}function zl(e,t){return e.tokenTypeIdx===t.tokenTypeIdx}function Ca(e){var t=D3(e);w3(t),V3(t),M3(t),me(t,function(n){n.isParent=n.categoryMatches.length>0})}function D3(e){for(var t=yn(e),n=e,i=!0;i;){n=Oa(In(ce(n,function(o){return o.CATEGORIES})));var r=Mc(n,t);t=t.concat(r),it(r)?i=!1:n=r}return t}function w3(e){me(e,function(t){uA(t)||(S_[b_]=t,t.tokenTypeIdx=b_++),A_(t)&&!li(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),A_(t)||(t.CATEGORIES=[]),k3(t)||(t.categoryMatches=[]),j3(t)||(t.categoryMatchesMap={})})}function M3(e){me(e,function(t){t.categoryMatches=[],me(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(S_[i].tokenTypeIdx)})})}function V3(e){me(e,function(t){x_([],t)})}function x_(e,t){me(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),me(t.CATEGORIES,function(n){var i=e.concat(t);Rt(i,n)||x_(i,n)})}function uA(e){return Ae(e,"tokenTypeIdx")}function A_(e){return Ae(e,"CATEGORIES")}function k3(e){return Ae(e,"categoryMatches")}function j3(e){return Ae(e,"categoryMatchesMap")}function P_(e){return Ae(e,"tokenTypeIdx")}var b_,S_,ql=Xe(()=>{gt();a(Vc,"tokenStructuredMatcher");a(zl,"tokenStructuredMatcherNoCategories");b_=1,S_={};a(Ca,"augmentTokenTypes");a(D3,"expandCategories");a(w3,"assignTokenDefaultProps");a(M3,"assignCategoriesTokensProp");a(V3,"assignCategoriesMapProp");a(x_,"singleAssignCategoriesToksMap");a(uA,"hasShortKeyProperty");a(A_,"hasCategoriesProperty");a(k3,"hasExtendingTokensTypesProperty");a(j3,"hasExtendingTokensTypesMapProperty");a(P_,"isTokenType")});var Dh,pA=Xe(()=>{Dh={buildUnableToPopLexerModeMessage:function(e){return"Unable to pop Lexer Mode after encountering Token ->"+e.image+"<- The Mode Stack is empty"},buildUnexpectedCharactersMessage:function(e,t,n,i,r){return"unexpected character: ->"+e.charAt(t)+"<- at offset: "+t+","+(" skipped "+n+" characters.")}}});var an,rp,Li,ip=Xe(()=>{sA();gt();ql();pA();Ch();(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"})(an||(an={}));rp={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
125
|
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Dh,traceInitPerf:!1,skipValidations:!1};Object.freeze(rp);Li=function(){function e(t,n){var i=this;if(n===void 0&&(n=rp),this.lexerDefinition=t,this.lexerDefinitionErrors=[],this.lexerDefinitionWarning=[],this.patternIdxToConfig={},this.charCodeToPatternIdxToConfig={},this.modes=[],this.emptyGroups={},this.config=void 0,this.trackStartLines=!0,this.trackEndLines=!0,this.hasCustom=!1,this.canModeBeOptimized={},typeof n=="boolean")throw Error(`The second argument to the Lexer constructor is now an ILexerConfig Object.
|
|
126
126
|
a boolean 2nd argument is no longer supported`);this.config=nA(rp,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 o,s=!0;i.TRACE_INIT("Lexer Config handling",function(){if(i.config.lineTerminatorsPattern===rp.lineTerminatorsPattern)i.config.lineTerminatorsPattern=v_;else if(i.config.lineTerminatorCharacters===rp.lineTerminatorCharacters)throw Error(`Error: Missing <lineTerminatorCharacters> property on the Lexer config.
|
|
127
127
|
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#MISSING_LINE_TERM_CHARS`);if(n.safeMode&&n.ensureOptimizations)throw Error('"safeMode" and "ensureOptimizations" flags are mutually exclusive.');i.trackStartLines=/full|onlyStart/i.test(i.config.positionTracking),i.trackEndLines=/full/i.test(i.config.positionTracking),li(t)?(o={modes:{}},o.modes[Is]=yn(t),o[Is]=Is):(s=!1,o=Ps(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(g_(o,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(m_(o,i.trackStartLines,i.config.lineTerminatorCharacters))})),o.modes=o.modes?o.modes:{},me(o.modes,function(d,m){o.modes[m]=Pa(d,function(T){return Si(T)})});var l=Ri(o.modes);if(me(o.modes,function(d,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(d_(d,l))}),it(i.lexerDefinitionErrors)){Ca(d);var T;i.TRACE_INIT("analyzeTokenTypes",function(){T=p_(d,{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=nA(i.emptyGroups,T.emptyGroups),i.hasCustom=T.hasCustom||i.hasCustom,i.canModeBeOptimized[m]=T.canBeOptimized}})}),i.defaultMode=o.defaultMode,!it(i.lexerDefinitionErrors)&&!i.config.deferDefinitionErrorsHandling){var u=ce(i.lexerDefinitionErrors,function(d){return d.message}),p=u.join(`-----------------------
|
|
@@ -130,8 +130,8 @@ a boolean 2nd argument is no longer supported`);this.config=nA(rp,n);var r=this.
|
|
|
130
130
|
Disable the "ensureOptimizations" lexer config flag to silently ignore this and run the lexer in an un-optimized mode.
|
|
131
131
|
Or inspect the console log for details on how to resolve these issues.`)}),i.TRACE_INIT("clearRegExpParserCache",function(){r_()}),i.TRACE_INIT("toFastProperties",function(){Sh(i)})})}return a(e,"Lexer"),e.prototype.tokenize=function(t,n){if(n===void 0&&(n=this.defaultMode),!it(this.lexerDefinitionErrors)){var i=ce(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 o=this.tokenizeInternal(t,n);return o},e.prototype.tokenizeInternal=function(t,n){var i=this,r,o,s,l,u,p,d,m,T,b,E,C,R,L,F,U=t,J=U.length,re=0,Ce=0,st=this.hasCustom?0:Math.floor(t.length/10),k=new Array(st),Ot=[],ht=this.trackStartLines?1:void 0,Ke=this.trackStartLines?1:void 0,Xt=h_(this.emptyGroups),Mi=this.trackStartLines,pn=this.config.lineTerminatorsPattern,Zt=0,Fe=[],Hn=[],kn=[],en=[];Object.freeze(en);var Rn=void 0;function ni(){return Fe}a(ni,"getPossiblePatternsSlow");function Re(Vt){var Zo=Go(Vt),Vi=Hn[Zo];return Vi===void 0?en:Vi}a(Re,"getPossiblePatternsOptimized");var Ln=a(function(Vt){if(kn.length===1&&Vt.tokenType.PUSH_MODE===void 0){var Zo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Vt);Ot.push({offset:Vt.startOffset,line:Vt.startLine!==void 0?Vt.startLine:void 0,column:Vt.startColumn!==void 0?Vt.startColumn:void 0,length:Vt.image.length,message:Zo})}else{kn.pop();var Vi=Th(kn);Fe=i.patternIdxToConfig[Vi],Hn=i.charCodeToPatternIdxToConfig[Vi],Zt=Fe.length;var Rf=i.canModeBeOptimized[Vi]&&i.config.safeMode===!1;Hn&&Rf?Rn=Re:Rn=ni}},"pop_mode");function Kn(Vt){kn.push(Vt),Hn=this.charCodeToPatternIdxToConfig[Vt],Fe=this.patternIdxToConfig[Vt],Zt=Fe.length,Zt=Fe.length;var Zo=this.canModeBeOptimized[Vt]&&this.config.safeMode===!1;Hn&&Zo?Rn=Re:Rn=ni}a(Kn,"push_mode"),Kn.call(this,n);for(var Qe;re<J;){u=null;var O=U.charCodeAt(re),S=Rn(O),Q=S.length;for(r=0;r<Q;r++){Qe=S[r];var M=Qe.pattern;p=null;var Le=Qe.short;if(Le!==!1?O===Le&&(u=M):Qe.isCustom===!0?(F=M.exec(U,re,k,Xt),F!==null?(u=F[0],F.payload!==void 0&&(p=F.payload)):u=null):(this.updateLastIndex(M,re),u=this.match(M,t,re)),u!==null){if(l=Qe.longerAlt,l!==void 0){var ct=Fe[l],je=ct.pattern;d=null,ct.isCustom===!0?(F=je.exec(U,re,k,Xt),F!==null?(s=F[0],F.payload!==void 0&&(d=F.payload)):s=null):(this.updateLastIndex(je,re),s=this.match(je,t,re)),s&&s.length>u.length&&(u=s,p=d,Qe=ct)}break}}if(u!==null){if(m=u.length,T=Qe.group,T!==void 0&&(b=Qe.tokenTypeIdx,E=this.createTokenInstance(u,re,b,Qe.tokenType,ht,Ke,m),this.handlePayload(E,p),T===!1?Ce=this.addToken(k,Ce,E):Xt[T].push(E)),t=this.chopInput(t,m),re=re+m,Ke=this.computeNewColumn(Ke,m),Mi===!0&&Qe.canLineTerminator===!0){var Et=0,sn=void 0,tn=void 0;pn.lastIndex=0;do sn=pn.test(u),sn===!0&&(tn=pn.lastIndex-1,Et++);while(sn===!0);Et!==0&&(ht=ht+Et,Ke=m-tn,this.updateTokenEndLineColumnLocation(E,T,tn,Et,ht,Ke,m))}this.handleModes(Qe,Ln,Kn,E)}else{for(var Mt=re,ii=ht,ir=Ke,cn=!1;!cn&&re<J;)for(R=U.charCodeAt(re),t=this.chopInput(t,1),re++,o=0;o<Zt;o++){var pi=Fe[o],M=pi.pattern,Le=pi.short;if(Le!==!1?U.charCodeAt(re)===Le&&(cn=!0):pi.isCustom===!0?cn=M.exec(U,re,k,Xt)!==null:(this.updateLastIndex(M,re),cn=M.exec(t)!==null),cn===!0)break}C=re-Mt,L=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(U,Mt,C,ii,ir),Ot.push({offset:Mt,line:ii,column:ir,length:C,message:L})}}return this.hasCustom||(k.length=Ce),{tokens:k,groups:Xt,errors:Ot}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var o=t.push;n(r),o!==void 0&&i.call(this,o)}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,o,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=o+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,o,s){return{image:t,startOffset:n,startLine:o,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,o,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:o,endLine:o,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),o=r.time,s=r.value,l=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+o+"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 Ko(e){return dA(e)?e.LABEL:e.name}function D_(e){return e.name}function dA(e){return jr(e.LABEL)&&e.LABEL!==""}function op(e){return
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ae(e,I_)&&(n.CATEGORIES=e[I_]),Ca([n]),Ae(e,O_)&&(n.LABEL=e[O_]),Ae(e,C_)&&(n.GROUP=e[C_]),Ae(e,R_)&&(n.POP_MODE=e[R_]),Ae(e,N_)&&(n.PUSH_MODE=e[N_]),Ae(e,L_)&&(n.LONGER_ALT=e[L_]),Ae(e,F_)&&(n.LINE_BREAKS=e[F_]),Ae(e,__)&&(n.START_CHARS_HINT=e[__]),n}function Os(e,t,n,i,r,o,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:o,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function w_(e,t){return Mc(e,t)}var k3,I_,O_,C_,N_,R_,L_,F_,__,Ur,Cs=Xe(()=>{gt();ip();ql();a(Ko,"tokenLabel");a(D_,"tokenName");a(dA,"hasTokenLabel");k3="parent",I_="categories",O_="label",C_="group",N_="push_mode",R_="pop_mode",L_="longer_alt",F_="line_breaks",__="start_chars_hint";a(op,"createToken");a(j3,"createTokenInternal");Ur=op({name:"EOF",pattern:Li.NA});Ca([Ur]);a(Os,"createTokenInstance");a(w_,"tokenMatcher")});function wh(e){return ce(e,Zl)}function Zl(e){function t(r){return ce(r,Zl)}if(a(t,"convertDefinition"),e instanceof zt)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Kt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof qt)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof On)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Cn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Zl(new pt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof vn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Zl(new pt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof It)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Tn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof pt){var n={type:"Terminal",name:e.terminalType.name,label:Ko(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=fo(i)?i.source:i),n}else{if(e instanceof mr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Na,uo,zt,mr,Kt,qt,On,Cn,It,vn,Tn,pt,Fi=Xe(()=>{gt();Cs();Na=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),uo=function(){function e(t){this._definition=t}return a(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),me(this.definition,function(n){n.accept(t)})},e}(),zt=function(e){Na(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},set:function(n){},enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(uo),mr=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Rule"),t}(uo),Kt=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Alternative"),t}(uo),qt=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Option"),t}(uo),On=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionMandatory"),t}(uo),Cn=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionMandatoryWithSeparator"),t}(uo),It=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Repetition"),t}(uo),vn=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionWithSeparator"),t}(uo),Tn=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(n){this._definition=n},enumerable:!1,configurable:!0}),t}(uo),pt=function(){function e(t){this.idx=1,gr(this,dr(t,function(n){return n!==void 0}))}return a(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();a(wh,"serializeGrammar");a(Zl,"serializeProduction")});function M_(e,t,n){var i=[new qt({definition:[new pt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Vc,Mh=Xe(()=>{gt();Fi();Vc=function(){function e(){}return a(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),me(t.definition,function(r,o){var s=wn(t.definition,o+1);if(r instanceof zt)i.walkProdRef(r,s,n);else if(r instanceof pt)i.walkTerminal(r,s,n);else if(r instanceof Kt)i.walkFlat(r,s,n);else if(r instanceof qt)i.walkOption(r,s,n);else if(r instanceof On)i.walkAtLeastOne(r,s,n);else if(r instanceof Cn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof vn)i.walkManySep(r,s,n);else if(r instanceof It)i.walkMany(r,s,n);else if(r instanceof Tn)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 qt({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=M_(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new qt({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=M_(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,o=n.concat(i);me(t.definition,function(s){var l=new Kt({definition:[s]});r.walk(l,o)})},e}();a(M_,"restForRepetitionWithSeparator")});var Br,ef=Xe(()=>{Fi();Br=function(){function e(){}return a(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case zt:return this.visitNonTerminal(n);case Kt:return this.visitAlternative(n);case qt:return this.visitOption(n);case On:return this.visitRepetitionMandatory(n);case Cn:return this.visitRepetitionMandatoryWithSeparator(n);case vn:return this.visitRepetitionWithSeparator(n);case It:return this.visitRepetition(n);case Tn:return this.visitAlternation(n);case pt:return this.visitTerminal(n);case mr: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 V_(e){return e instanceof Kt||e instanceof qt||e instanceof It||e instanceof On||e instanceof Cn||e instanceof vn||e instanceof pt||e instanceof mr}function tf(e,t){t===void 0&&(t=[]);var n=e instanceof qt||e instanceof It||e instanceof vn;return n?!0:e instanceof Tn?bh(e.definition,function(i){return tf(i,t)}):e instanceof zt&&Rt(t,e)?!1:e instanceof uo?(e instanceof zt&&t.push(e),fi(e.definition,function(i){return tf(i,t)})):!1}function k_(e){return e instanceof Tn}function hr(e){if(e instanceof zt)return"SUBRULE";if(e instanceof qt)return"OPTION";if(e instanceof Tn)return"OR";if(e instanceof On)return"AT_LEAST_ONE";if(e instanceof Cn)return"AT_LEAST_ONE_SEP";if(e instanceof vn)return"MANY_SEP";if(e instanceof It)return"MANY";if(e instanceof pt)return"CONSUME";throw Error("non exhaustive match")}function j_(e){Vh.reset(),e.accept(Vh);var t=Vh.dslMethods;return Vh.reset(),t}var $3,gA,Vh,nf=Xe(()=>{gt();Fi();ef();$3=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(V_,"isSequenceProd");a(tf,"isOptionalProd");a(k_,"isBranchingProd");a(hr,"getProductionDslName");gA=function(e){$3(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 a(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";Ae(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ae(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}(Br),Vh=new gA;a(j_,"collectMethods")});function kc(e){if(e instanceof zt)return kc(e.referencedRule);if(e instanceof pt)return W3(e);if(V_(e))return U3(e);if(k_(e))return B3(e);throw Error("non exhaustive match")}function U3(e){for(var t=[],n=e.definition,i=0,r=n.length>i,o,s=!0;r&&s;)o=n[i],s=tf(o),t=t.concat(kc(o)),i=i+1,r=n.length>i;return qu(t)}function B3(e){var t=ce(e.definition,function(n){return kc(n)});return qu(In(t))}function W3(e){return[e.terminalType]}var mA=Xe(()=>{gt();Fi();nf();a(kc,"first");a(U3,"firstForSequence");a(B3,"firstForBranching");a(W3,"firstForTerminal")});var kh,hA=Xe(()=>{kh="_~IN~_"});function $_(e){var t={};return me(e,function(n){var i=new H3(n).startWalking();gr(t,i)}),t}function K3(e,t){return e.name+t+kh}var G3,H3,U_=Xe(()=>{Mh();mA();gt();hA();Fi();G3=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),H3=function(e){G3(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return a(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 o=K3(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Kt({definition:s}),u=kc(l);this.follows[o]=u},t}(Vc);a($_,"computeAllProdsFollows");a(K3,"buildBetweenProdsFollowPrefix")});var ap,jh,Ns,sp=Xe(()=>{Cs();gt();gt();Fi();nf();ap={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,o=dA(t),s=o?"--> "+Ko(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,o=e.ruleName,s="Expecting: ",l=Ai(n).image,u=`
|
|
133
|
+
`+r)}var o=this.tokenizeInternal(t,n);return o},e.prototype.tokenizeInternal=function(t,n){var i=this,r,o,s,l,u,p,d,m,T,b,E,C,R,L,F,U=t,J=U.length,re=0,Ce=0,st=this.hasCustom?0:Math.floor(t.length/10),k=new Array(st),Ot=[],ht=this.trackStartLines?1:void 0,Ke=this.trackStartLines?1:void 0,Xt=h_(this.emptyGroups),Mi=this.trackStartLines,pn=this.config.lineTerminatorsPattern,Zt=0,Fe=[],Hn=[],kn=[],en=[];Object.freeze(en);var Rn=void 0;function ni(){return Fe}a(ni,"getPossiblePatternsSlow");function Re(Vt){var Zo=Go(Vt),Vi=Hn[Zo];return Vi===void 0?en:Vi}a(Re,"getPossiblePatternsOptimized");var Ln=a(function(Vt){if(kn.length===1&&Vt.tokenType.PUSH_MODE===void 0){var Zo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Vt);Ot.push({offset:Vt.startOffset,line:Vt.startLine!==void 0?Vt.startLine:void 0,column:Vt.startColumn!==void 0?Vt.startColumn:void 0,length:Vt.image.length,message:Zo})}else{kn.pop();var Vi=Th(kn);Fe=i.patternIdxToConfig[Vi],Hn=i.charCodeToPatternIdxToConfig[Vi],Zt=Fe.length;var Rf=i.canModeBeOptimized[Vi]&&i.config.safeMode===!1;Hn&&Rf?Rn=Re:Rn=ni}},"pop_mode");function Kn(Vt){kn.push(Vt),Hn=this.charCodeToPatternIdxToConfig[Vt],Fe=this.patternIdxToConfig[Vt],Zt=Fe.length,Zt=Fe.length;var Zo=this.canModeBeOptimized[Vt]&&this.config.safeMode===!1;Hn&&Zo?Rn=Re:Rn=ni}a(Kn,"push_mode"),Kn.call(this,n);for(var Qe;re<J;){u=null;var O=U.charCodeAt(re),S=Rn(O),Q=S.length;for(r=0;r<Q;r++){Qe=S[r];var M=Qe.pattern;p=null;var Le=Qe.short;if(Le!==!1?O===Le&&(u=M):Qe.isCustom===!0?(F=M.exec(U,re,k,Xt),F!==null?(u=F[0],F.payload!==void 0&&(p=F.payload)):u=null):(this.updateLastIndex(M,re),u=this.match(M,t,re)),u!==null){if(l=Qe.longerAlt,l!==void 0){var ct=Fe[l],je=ct.pattern;d=null,ct.isCustom===!0?(F=je.exec(U,re,k,Xt),F!==null?(s=F[0],F.payload!==void 0&&(d=F.payload)):s=null):(this.updateLastIndex(je,re),s=this.match(je,t,re)),s&&s.length>u.length&&(u=s,p=d,Qe=ct)}break}}if(u!==null){if(m=u.length,T=Qe.group,T!==void 0&&(b=Qe.tokenTypeIdx,E=this.createTokenInstance(u,re,b,Qe.tokenType,ht,Ke,m),this.handlePayload(E,p),T===!1?Ce=this.addToken(k,Ce,E):Xt[T].push(E)),t=this.chopInput(t,m),re=re+m,Ke=this.computeNewColumn(Ke,m),Mi===!0&&Qe.canLineTerminator===!0){var Et=0,sn=void 0,tn=void 0;pn.lastIndex=0;do sn=pn.test(u),sn===!0&&(tn=pn.lastIndex-1,Et++);while(sn===!0);Et!==0&&(ht=ht+Et,Ke=m-tn,this.updateTokenEndLineColumnLocation(E,T,tn,Et,ht,Ke,m))}this.handleModes(Qe,Ln,Kn,E)}else{for(var Mt=re,ii=ht,ir=Ke,cn=!1;!cn&&re<J;)for(R=U.charCodeAt(re),t=this.chopInput(t,1),re++,o=0;o<Zt;o++){var pi=Fe[o],M=pi.pattern,Le=pi.short;if(Le!==!1?U.charCodeAt(re)===Le&&(cn=!0):pi.isCustom===!0?cn=M.exec(U,re,k,Xt)!==null:(this.updateLastIndex(M,re),cn=M.exec(t)!==null),cn===!0)break}C=re-Mt,L=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(U,Mt,C,ii,ir),Ot.push({offset:Mt,line:ii,column:ir,length:C,message:L})}}return this.hasCustom||(k.length=Ce),{tokens:k,groups:Xt,errors:Ot}},e.prototype.handleModes=function(t,n,i,r){if(t.pop===!0){var o=t.push;n(r),o!==void 0&&i.call(this,o)}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,o,s,l){var u,p;n!==void 0&&(u=i===l-1,p=u?-1:0,r===1&&u===!0||(t.endLine=o+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,o,s){return{image:t,startOffset:n,startLine:o,startColumn:s,tokenTypeIdx:i,tokenType:r}},e.prototype.createFullToken=function(t,n,i,r,o,s,l){return{image:t,startOffset:n,endOffset:n+l-1,startLine:o,endLine:o,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),o=r.time,s=r.value,l=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+o+"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 Ko(e){return dA(e)?e.LABEL:e.name}function D_(e){return e.name}function dA(e){return jr(e.LABEL)&&e.LABEL!==""}function op(e){return U3(e)}function U3(e){var t=e.pattern,n={};if(n.name=e.name,Si(t)||(n.PATTERN=t),Ae(e,$3))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ae(e,I_)&&(n.CATEGORIES=e[I_]),Ca([n]),Ae(e,O_)&&(n.LABEL=e[O_]),Ae(e,C_)&&(n.GROUP=e[C_]),Ae(e,R_)&&(n.POP_MODE=e[R_]),Ae(e,N_)&&(n.PUSH_MODE=e[N_]),Ae(e,L_)&&(n.LONGER_ALT=e[L_]),Ae(e,F_)&&(n.LINE_BREAKS=e[F_]),Ae(e,__)&&(n.START_CHARS_HINT=e[__]),n}function Os(e,t,n,i,r,o,s,l){return{image:t,startOffset:n,endOffset:i,startLine:r,endLine:o,startColumn:s,endColumn:l,tokenTypeIdx:e.tokenTypeIdx,tokenType:e}}function w_(e,t){return Vc(e,t)}var $3,I_,O_,C_,N_,R_,L_,F_,__,Ur,Cs=Xe(()=>{gt();ip();ql();a(Ko,"tokenLabel");a(D_,"tokenName");a(dA,"hasTokenLabel");$3="parent",I_="categories",O_="label",C_="group",N_="push_mode",R_="pop_mode",L_="longer_alt",F_="line_breaks",__="start_chars_hint";a(op,"createToken");a(U3,"createTokenInternal");Ur=op({name:"EOF",pattern:Li.NA});Ca([Ur]);a(Os,"createTokenInstance");a(w_,"tokenMatcher")});function wh(e){return ce(e,Zl)}function Zl(e){function t(r){return ce(r,Zl)}if(a(t,"convertDefinition"),e instanceof zt)return{type:"NonTerminal",name:e.nonTerminalName,idx:e.idx};if(e instanceof Kt)return{type:"Alternative",definition:t(e.definition)};if(e instanceof qt)return{type:"Option",idx:e.idx,definition:t(e.definition)};if(e instanceof On)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Cn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Zl(new pt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof vn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Zl(new pt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof It)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof Tn)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof pt){var n={type:"Terminal",name:e.terminalType.name,label:Ko(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=fo(i)?i.source:i),n}else{if(e instanceof mr)return{type:"Rule",name:e.name,orgText:e.orgText,definition:t(e.definition)};throw Error("non exhaustive match")}}var Na,uo,zt,mr,Kt,qt,On,Cn,It,vn,Tn,pt,Fi=Xe(()=>{gt();Cs();Na=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),uo=function(){function e(t){this._definition=t}return a(e,"AbstractProduction"),Object.defineProperty(e.prototype,"definition",{get:function(){return this._definition},set:function(t){this._definition=t},enumerable:!1,configurable:!0}),e.prototype.accept=function(t){t.visit(this),me(this.definition,function(n){n.accept(t)})},e}(),zt=function(e){Na(t,e);function t(n){var i=e.call(this,[])||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"NonTerminal"),Object.defineProperty(t.prototype,"definition",{get:function(){return this.referencedRule!==void 0?this.referencedRule.definition:[]},set:function(n){},enumerable:!1,configurable:!0}),t.prototype.accept=function(n){n.visit(this)},t}(uo),mr=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.orgText="",gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Rule"),t}(uo),Kt=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.ignoreAmbiguities=!1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Alternative"),t}(uo),qt=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Option"),t}(uo),On=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionMandatory"),t}(uo),Cn=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionMandatoryWithSeparator"),t}(uo),It=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Repetition"),t}(uo),vn=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"RepetitionWithSeparator"),t}(uo),Tn=function(e){Na(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,gr(i,dr(n,function(r){return r!==void 0})),i}return a(t,"Alternation"),Object.defineProperty(t.prototype,"definition",{get:function(){return this._definition},set:function(n){this._definition=n},enumerable:!1,configurable:!0}),t}(uo),pt=function(){function e(t){this.idx=1,gr(this,dr(t,function(n){return n!==void 0}))}return a(e,"Terminal"),e.prototype.accept=function(t){t.visit(this)},e}();a(wh,"serializeGrammar");a(Zl,"serializeProduction")});function M_(e,t,n){var i=[new qt({definition:[new pt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var kc,Mh=Xe(()=>{gt();Fi();kc=function(){function e(){}return a(e,"RestWalker"),e.prototype.walk=function(t,n){var i=this;n===void 0&&(n=[]),me(t.definition,function(r,o){var s=wn(t.definition,o+1);if(r instanceof zt)i.walkProdRef(r,s,n);else if(r instanceof pt)i.walkTerminal(r,s,n);else if(r instanceof Kt)i.walkFlat(r,s,n);else if(r instanceof qt)i.walkOption(r,s,n);else if(r instanceof On)i.walkAtLeastOne(r,s,n);else if(r instanceof Cn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof vn)i.walkManySep(r,s,n);else if(r instanceof It)i.walkMany(r,s,n);else if(r instanceof Tn)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 qt({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkAtLeastOneSep=function(t,n,i){var r=M_(t,n,i);this.walk(t,r)},e.prototype.walkMany=function(t,n,i){var r=[new qt({definition:t.definition})].concat(n,i);this.walk(t,r)},e.prototype.walkManySep=function(t,n,i){var r=M_(t,n,i);this.walk(t,r)},e.prototype.walkOr=function(t,n,i){var r=this,o=n.concat(i);me(t.definition,function(s){var l=new Kt({definition:[s]});r.walk(l,o)})},e}();a(M_,"restForRepetitionWithSeparator")});var Br,ef=Xe(()=>{Fi();Br=function(){function e(){}return a(e,"GAstVisitor"),e.prototype.visit=function(t){var n=t;switch(n.constructor){case zt:return this.visitNonTerminal(n);case Kt:return this.visitAlternative(n);case qt:return this.visitOption(n);case On:return this.visitRepetitionMandatory(n);case Cn:return this.visitRepetitionMandatoryWithSeparator(n);case vn:return this.visitRepetitionWithSeparator(n);case It:return this.visitRepetition(n);case Tn:return this.visitAlternation(n);case pt:return this.visitTerminal(n);case mr: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 V_(e){return e instanceof Kt||e instanceof qt||e instanceof It||e instanceof On||e instanceof Cn||e instanceof vn||e instanceof pt||e instanceof mr}function tf(e,t){t===void 0&&(t=[]);var n=e instanceof qt||e instanceof It||e instanceof vn;return n?!0:e instanceof Tn?bh(e.definition,function(i){return tf(i,t)}):e instanceof zt&&Rt(t,e)?!1:e instanceof uo?(e instanceof zt&&t.push(e),fi(e.definition,function(i){return tf(i,t)})):!1}function k_(e){return e instanceof Tn}function hr(e){if(e instanceof zt)return"SUBRULE";if(e instanceof qt)return"OPTION";if(e instanceof Tn)return"OR";if(e instanceof On)return"AT_LEAST_ONE";if(e instanceof Cn)return"AT_LEAST_ONE_SEP";if(e instanceof vn)return"MANY_SEP";if(e instanceof It)return"MANY";if(e instanceof pt)return"CONSUME";throw Error("non exhaustive match")}function j_(e){Vh.reset(),e.accept(Vh);var t=Vh.dslMethods;return Vh.reset(),t}var B3,gA,Vh,nf=Xe(()=>{gt();Fi();ef();B3=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(V_,"isSequenceProd");a(tf,"isOptionalProd");a(k_,"isBranchingProd");a(hr,"getProductionDslName");gA=function(e){B3(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 a(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";Ae(this.dslMethods,i)||(this.dslMethods[i]=[]),this.dslMethods[i].push(n)},t.prototype.visitNonTerminal=function(n){var i=n.nonTerminalName+this.separator+"Terminal";Ae(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}(Br),Vh=new gA;a(j_,"collectMethods")});function jc(e){if(e instanceof zt)return jc(e.referencedRule);if(e instanceof pt)return H3(e);if(V_(e))return W3(e);if(k_(e))return G3(e);throw Error("non exhaustive match")}function W3(e){for(var t=[],n=e.definition,i=0,r=n.length>i,o,s=!0;r&&s;)o=n[i],s=tf(o),t=t.concat(jc(o)),i=i+1,r=n.length>i;return qu(t)}function G3(e){var t=ce(e.definition,function(n){return jc(n)});return qu(In(t))}function H3(e){return[e.terminalType]}var mA=Xe(()=>{gt();Fi();nf();a(jc,"first");a(W3,"firstForSequence");a(G3,"firstForBranching");a(H3,"firstForTerminal")});var kh,hA=Xe(()=>{kh="_~IN~_"});function $_(e){var t={};return me(e,function(n){var i=new X3(n).startWalking();gr(t,i)}),t}function J3(e,t){return e.name+t+kh}var K3,X3,U_=Xe(()=>{Mh();mA();gt();hA();Fi();K3=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),X3=function(e){K3(t,e);function t(n){var i=e.call(this)||this;return i.topProd=n,i.follows={},i}return a(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 o=J3(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Kt({definition:s}),u=jc(l);this.follows[o]=u},t}(kc);a($_,"computeAllProdsFollows");a(J3,"buildBetweenProdsFollowPrefix")});var ap,jh,Ns,sp=Xe(()=>{Cs();gt();gt();Fi();nf();ap={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,o=dA(t),s=o?"--> "+Ko(t)+" <--":"token of type --> "+t.name+" <--",l="Expecting "+s+" but found --> '"+n.image+"' <--";return l},buildNotAllInputParsedMessage:function(e){var t=e.firstRedundant,n=e.ruleName;return"Redundant input, expecting EOF but found: "+t.image},buildNoViableAltMessage:function(e){var t=e.expectedPathsPerAlt,n=e.actual,i=e.previous,r=e.customUserDescription,o=e.ruleName,s="Expecting: ",l=Ai(n).image,u=`
|
|
135
135
|
but found: '`+l+"'";if(r)return s+r+u;var p=on(t,function(b,E){return b.concat(E)},[]),d=ce(p,function(b){return"["+ce(b,function(E){return Ko(E)}).join(", ")+"]"}),m=ce(d,function(b,E){return" "+(E+1)+". "+b}),T=`one of these possible Token sequences:
|
|
136
136
|
`+m.join(`
|
|
137
137
|
`);return s+T+u},buildEarlyExitMessage:function(e){var t=e.expectedIterationPaths,n=e.actual,i=e.customUserDescription,r=e.ruleName,o="Expecting: ",s=Ai(n).image,l=`
|
|
@@ -161,27 +161,27 @@ This could lead to an infinite loop.`;return n},buildTokenNameError:function(e){
|
|
|
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},buildInvalidRuleNameError:function(e){return"deprecated"},buildDuplicateRuleNameError:function(e){var t;e.topLevelRule instanceof mr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n}}});function B_(e,t){var n=new J3(e,t);return n.resolveRefs(),n.errors}var X3,J3,W_=Xe(()=>{yr();gt();ef();X3=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(B_,"resolveGrammar");J3=function(e){X3(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return a(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;me(Dn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Br)});function Uh(e,t,n){n===void 0&&(n=[]),n=yn(n);var i=[],r=0;function o(p){return p.concat(wn(e,r+1))}a(o,"remainingPathWith");function s(p){var d=Uh(o(p),t,n);return i.concat(d)}for(a(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Kt)return s(l.definition);if(l instanceof zt)return s(l.definition);if(l instanceof qt)i=s(l.definition);else if(l instanceof On){var u=l.definition.concat([new It({definition:l.definition})]);return s(u)}else if(l instanceof Cn){var u=[new Kt({definition:l.definition}),new It({definition:[new pt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof vn){var u=l.definition.concat([new It({definition:[new pt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof It){var u=l.definition.concat([new It({definition:l.definition})]);i=s(u)}else{if(l instanceof Tn)return me(l.definition,function(p){it(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof pt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function Bh(e,t,n,i){var r="EXIT_NONE_TERMINAL",o=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,d=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!it(m);){var T=m.pop();if(T===s){l&&Th(m).idx<=p&&m.pop();continue}var b=T.def,E=T.idx,C=T.ruleStack,R=T.occurrenceStack;if(!it(b)){var L=b[0];if(L===r){var F={idx:E,def:wn(b),ruleStack:xs(C),occurrenceStack:xs(R)};m.push(F)}else if(L instanceof pt)if(E<u-1){var U=E+1,J=t[U];if(n(J,L.terminalType)){var F={idx:U,def:wn(b),ruleStack:C,occurrenceStack:R};m.push(F)}}else if(E===u-1)d.push({nextTokenType:L.terminalType,nextTokenOccurrence:L.idx,ruleStack:C,occurrenceStack:R}),l=!0;else throw Error("non exhaustive match");else if(L instanceof zt){var re=yn(C);re.push(L.nonTerminalName);var Ce=yn(R);Ce.push(L.idx);var F={idx:E,def:L.definition.concat(o,wn(b)),ruleStack:re,occurrenceStack:Ce};m.push(F)}else if(L instanceof qt){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:R};m.push(st),m.push(s);var k={idx:E,def:L.definition.concat(wn(b)),ruleStack:C,occurrenceStack:R};m.push(k)}else if(L instanceof On){var Ot=new It({definition:L.definition,idx:L.idx}),ht=L.definition.concat([Ot],wn(b)),F={idx:E,def:ht,ruleStack:C,occurrenceStack:R};m.push(F)}else if(L instanceof Cn){var Ke=new pt({terminalType:L.separator}),Ot=new It({definition:[Ke].concat(L.definition),idx:L.idx}),ht=L.definition.concat([Ot],wn(b)),F={idx:E,def:ht,ruleStack:C,occurrenceStack:R};m.push(F)}else if(L instanceof vn){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:R};m.push(st),m.push(s);var Ke=new pt({terminalType:L.separator}),Xt=new It({definition:[Ke].concat(L.definition),idx:L.idx}),ht=L.definition.concat([Xt],wn(b)),k={idx:E,def:ht,ruleStack:C,occurrenceStack:R};m.push(k)}else if(L instanceof It){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:R};m.push(st),m.push(s);var Xt=new It({definition:L.definition,idx:L.idx}),ht=L.definition.concat([Xt],wn(b)),k={idx:E,def:ht,ruleStack:C,occurrenceStack:R};m.push(k)}else if(L instanceof Tn)for(var Mi=L.definition.length-1;Mi>=0;Mi--){var pn=L.definition[Mi],Zt={idx:E,def:pn.definition.concat(wn(b)),ruleStack:C,occurrenceStack:R};m.push(Zt),m.push(s)}else if(L instanceof Kt)m.push({idx:E,def:L.definition.concat(wn(b)),ruleStack:C,occurrenceStack:R});else if(L instanceof mr)m.push(Q3(L,E,C,R));else throw Error("non exhaustive match")}}return d}function Q3(e,t,n,i){var r=yn(n);r.push(e.name);var o=yn(i);return o.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:o}}var jc,Y3,G_,$h,H_,yA,K_,vA,cp=Xe(()=>{Mh();gt();mA();Fi();jc=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),Y3=function(e){jc(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 a(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=yn(this.path.ruleStack).reverse(),this.occurrenceStack=yn(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 o=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,o)}},t.prototype.updateExpectedNext=function(){it(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(Vc),G_=function(e){jc(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 a(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var o=i.concat(r),s=new Kt({definition:o});this.possibleTokTypes=kc(s),this.found=!0}},t}(Y3),$h=function(e){jc(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 a(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(Vc),H_=function(e){jc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var o=Ai(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof pt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}($h),yA=function(e){jc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var o=Ai(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof pt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}($h),K_=function(e){jc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var o=Ai(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof pt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}($h),vA=function(e){jc(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var o=Ai(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof pt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}($h);a(Uh,"possiblePathsFrom");a(Bh,"nextPossibleTokensAfter");a(Q3,"expandTopLevelRule")});function Y_(e){if(e instanceof qt)return Lt.OPTION;if(e instanceof It)return Lt.REPETITION;if(e instanceof On)return Lt.REPETITION_MANDATORY;if(e instanceof Cn)return Lt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof vn)return Lt.REPETITION_WITH_SEPARATOR;if(e instanceof Tn)return Lt.ALTERNATION;throw Error("non exhaustive match")}function Q_(e,t,n,i,r,o){var s=lp(e,t,n),l=iD(s)?zl:Mc;return o(s,i,l,r)}function z_(e,t,n,i,r,o){var s=fp(e,t,r,n),l=iD(s)?zl:Mc;return o(s[0],l,i)}function q_(e,t,n,i){var r=e.length,o=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ce(u,function(U){return U.GATE}),d=0;d<r;d++){var m=e[d],T=m.length,b=p[d];if(!(b!==void 0&&b.call(this)===!1))e:for(var E=0;E<T;E++){for(var C=m[E],R=C.length,L=0;L<R;L++){var F=this.LA(L+1);if(n(F,C[L])===!1)continue e}return d}}};if(o&&!i){var s=ce(e,function(u){return In(u)}),l=on(s,function(u,p,d){return me(p,function(m){Ae(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=d),me(m.categoryMatches,function(T){Ae(u,T)||(u[T]=d)})}),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],d=p.length;e:for(var m=0;m<d;m++){for(var T=p[m],b=T.length,E=0;E<b;E++){var C=this.LA(E+1);if(n(C,T[E])===!1)continue e}return u}}}}function Z_(e,t,n){var i=fi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var o=In(e);if(o.length===1&&it(o[0].categoryMatches)){var s=o[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=on(o,function(p,d,m){return p[d.tokenTypeIdx]=!0,me(d.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 d=e[p],m=d.length,T=0;T<m;T++){var b=this.LA(T+1);if(t(b,d[T])===!1)continue e}return!0}return!1}}function X_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function TA(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],o=0;o<t.length;o++){var s=t[o];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 q3(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],o=0;o<t.length;o++){var s=t[o];if(r[s]===!0)return!1}return!0}function tD(e,t){for(var n=ce(e,function(d){return Uh([d],1)}),i=X_(n.length),r=ce(n,function(d){var m={};return me(d,function(T){var b=TA(T.partialPath);me(b,function(E){m[E]=!0})}),m}),o=n,s=1;s<=t;s++){var l=o;o=X_(l.length);for(var u=a(function(d){for(var m=l[d],T=0;T<m.length;T++){var b=m[T].partialPath,E=m[T].suffixDef,C=TA(b),R=q3(r,C,d);if(R||it(E)||b.length===t){var L=i[d];if(Wh(L,b)===!1){L.push(b);for(var F=0;F<C.length;F++){var U=C[F];r[d][U]=!0}}}else{var J=Uh(E,s+1,b);o[d]=o[d].concat(J),me(J,function(re){var Ce=TA(re.partialPath);me(Ce,function(st){r[d][st]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function lp(e,t,n,i){var r=new eD(e,Lt.ALTERNATION,i);return t.accept(r),tD(r.result,n)}function fp(e,t,n,i){var r=new eD(e,n);t.accept(r);var o=r.result,s=new z3(t,e,n),l=s.startWalking(),u=new Kt({definition:o}),p=new Kt({definition:l});return tD([u,p],i)}function Wh(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 o=t[r],s=i[r],l=o===s||s.categoryMatchesMap[o.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function nD(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function iD(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return it(i.categoryMatches)})})})}var J_,Lt,z3,eD,up=Xe(()=>{gt();cp();Mh();ql();Fi();ef();J_=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(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"})(Lt||(Lt={}));a(Y_,"getProdType");a(Q_,"buildLookaheadFuncForOr");a(z_,"buildLookaheadFuncForOptionalProd");a(q_,"buildAlternativesLookAheadFunc");a(Z_,"buildSingleAlternativeLookaheadFunction");z3=function(e){J_(t,e);function t(n,i,r){var o=e.call(this)||this;return o.topProd=n,o.targetOccurrence=i,o.targetProdType=r,o}return a(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,o){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(o),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,Lt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Lt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Lt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Lt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Lt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Vc),eD=function(e){J_(t,e);function t(n,i,r){var o=e.call(this)||this;return o.targetOccurrence=n,o.targetProdType=i,o.targetRef=r,o.result=[],o}return a(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,Lt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Lt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Lt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Lt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Lt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Lt.ALTERNATION)},t}(Br);a(X_,"initializeArrayOfArrays");a(TA,"pathToHashKeys");a(q3,"isUniquePrefixHash");a(tD,"lookAheadSequenceFromAlternatives");a(lp,"getLookaheadPathsForOr");a(fp,"getLookaheadPathsForOptionalProd");a(Wh,"containsPath");a(nD,"isStrictPrefixOfPath");a(iD,"areTokenCategoriesNotUsed")});function rD(e,t,n,i,r){var o=ce(e,function(b){return Z3(b,i)}),s=ce(e,function(b){return sD(b,b,i)}),l=[],u=[],p=[];fi(s,it)&&(l=ce(e,function(b){return i7(b,i)}),u=ce(e,function(b){return r7(b,t,i)}),p=s7(e,t,i));var d=f7(e,n,i),m=ce(e,function(b){return a7(b,i)}),T=ce(e,function(b){return n7(b,e,r,i)});return In(o.concat(p,s,l,u,d,m,T))}function Z3(e,t){var n=new t7;e.accept(n);var i=n.allProductions,r=q0(i,e7),o=dr(r,function(l){return l.length>1}),s=ce(Dn(o),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),d=hr(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:u.idx},T=oD(u);return T&&(m.parameter=T),m});return s}function e7(e){return hr(e)+"_#_"+e.idx+"_#_"+oD(e)}function oD(e){return e instanceof pt?e.terminalType.name:e instanceof zt?e.nonTerminalName:""}function n7(e,t,n,i){var r=[],o=on(t,function(l,u){return u.name===e.name?l+1:l},0);if(o>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function aD(e,t,n){var i=[],r;return Rt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function sD(e,t,n,i){i===void 0&&(i=[]);var r=[],o=Gh(t.definition);if(it(o))return[];var s=e.name,l=Rt(o,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=wc(o,i.concat([e])),p=ce(u,function(d){var m=yn(i);return m.push(d),sD(e,d,n,m)});return r.concat(In(p))}function Gh(e){var t=[];if(it(e))return t;var n=Ai(e);if(n instanceof zt)t.push(n.referencedRule);else if(n instanceof Kt||n instanceof qt||n instanceof On||n instanceof Cn||n instanceof vn||n instanceof It)t=t.concat(Gh(n.definition));else if(n instanceof Tn)t=In(ce(n.definition,function(s){return Gh(s.definition)}));else if(!(n instanceof pt))throw Error("non exhaustive match");var i=tf(n),r=e.length>1;if(i&&r){var o=wn(e);return t.concat(Gh(o))}else return t}function i7(e,t){var n=new bA;e.accept(n);var i=n.alternations,r=on(i,function(o,s){var l=xs(s.definition),u=ce(l,function(p,d){var m=Bh([p],[],null,1);return it(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:d}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:d+1}:null});return o.concat(Oa(u))},[]);return r}function r7(e,t,n){var i=new bA;e.accept(i);var r=i.alternations;r=Pa(r,function(s){return s.ignoreAmbiguities===!0});var o=on(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,d=lp(u,e,p,l),m=c7(d,l,e,n),T=l7(d,l,e,n);return s.concat(m,T)},[]);return o}function a7(e,t){var n=new bA;e.accept(n);var i=n.alternations,r=on(i,function(o,s){return s.definition.length>255&&o.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),o},[]);return r}function s7(e,t,n){var i=[];return me(e,function(r){var o=new o7;r.accept(o);var s=o.allProductions;me(s,function(l){var u=Y_(l),p=l.maxLookahead||t,d=l.idx,m=fp(d,r,u,p),T=m[0];if(it(In(T))){var b=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:b,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function c7(e,t,n,i){var r=[],o=on(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||me(u,function(d){var m=[p];me(e,function(T,b){p!==b&&Wh(T,d)&&t.definition[b].ignoreAmbiguities!==!0&&m.push(b)}),m.length>1&&!Wh(r,d)&&(r.push(d),l.push({alts:m,path:d}))}),l},[]),s=ce(o,function(l){var u=ce(l.alts,function(d){return d+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function l7(e,t,n,i){var r=[],o=on(e,function(s,l,u){var p=ce(l,function(d){return{idx:u,path:d}});return s.concat(p)},[]);return me(o,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,d=Q0(o,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&nD(T.path,p)}),m=ce(d,function(T){var b=[T.idx+1,u+1],E=t.idx===0?"":t.idx,C=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:b,prefixPath:T.path});return{message:C,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:b}});r=r.concat(m)}}),r}function f7(e,t,n){var i=[],r=ce(t,function(o){return o.name});return me(e,function(o){var s=o.name;if(Rt(r,s)){var l=n.buildNamespaceConflictError(o);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var EA,t7,bA,o7,AA=Xe(()=>{gt();gt();yr();nf();up();cp();Fi();ef();EA=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(rD,"validateGrammar");a(Z3,"validateDuplicateProductions");a(e7,"identifyProductionForDuplicates");a(oD,"getExtraProductionArgument");t7=function(e){EA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return a(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}(Br);a(n7,"validateRuleDoesNotAlreadyExist");a(aD,"validateRuleIsOverridden");a(sD,"validateNoLeftRecursion");a(Gh,"getFirstNoneTerminal");bA=function(e){EA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return a(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Br);a(i7,"validateEmptyOrAlternative");a(r7,"validateAmbiguousAlternationAlternatives");o7=function(e){EA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return a(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}(Br);a(a7,"validateTooManyAlts");a(s7,"validateSomeNonEmptyLookaheadPath");a(c7,"checkAlternativesAmbiguities");a(l7,"checkPrefixAlternativesAmbiguities");a(f7,"checkTerminalAndNoneTerminalsNameSpace")});function Hh(e){e=Zu(e,{errMsgProvider:jh});var t={};return me(e.rules,function(n){t[n.name]=n}),B_(t,e.errMsgProvider)}function Kh(e){return e=Zu(e,{errMsgProvider:Ns}),rD(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function cD(e){me(e.rules,function(t){var n=new gA;t.accept(n),me(n.dslMethods,function(i){me(i,function(r,o){r.idx=o+1})})})}var SA=Xe(()=>{gt();W_();AA();sp();nf();a(Hh,"resolveGrammar");a(Kh,"validateGrammar");a(cD,"assignOccurrenceIndices")});function Ra(e){return Rt(dD,e.name)}var pp,lD,fD,uD,pD,dD,Xh,rf,Jh,Yh,Qh,of=Xe(()=>{gt();pp=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),lD="MismatchedTokenException",fD="NoViableAltException",uD="EarlyExitException",pD="NotAllInputParsedException",dD=[lD,fD,uD,pD];Object.freeze(dD);a(Ra,"isRecognitionException");Xh=function(e){pp(t,e);function t(n,i){var r=this.constructor,o=e.call(this,n)||this;return o.token=i,o.resyncedTokens=[],Object.setPrototypeOf(o,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,o.constructor),o}return a(t,"RecognitionException"),t}(Error),rf=function(e){pp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=lD,o}return a(t,"MismatchedTokenException"),t}(Xh),Jh=function(e){pp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=fD,o}return a(t,"NoViableAltException"),t}(Xh),Yh=function(e){pp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=pD,r}return a(t,"NotAllInputParsedException"),t}(Xh),Qh=function(e){pp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=uD,o}return a(t,"EarlyExitException"),t}(Xh)});function gD(e){this.name=PA,this.message=e}function u7(e,t,n,i,r,o,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),d=this.getGAstProductions()[p],m=new o(d,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var T=u.token,b=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&T===void 0&&(T=Ur,b=1),this.shouldInRepetitionRecoveryBeTried(T,b,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var xA,PA,mD,IA=Xe(()=>{Cs();gt();of();hA();yr();xA={},PA="InRuleRecoveryException";a(gD,"InRuleRecoveryException");gD.prototype=Error.prototype;mD=function(){function e(){}return a(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ae(t,"recoveryEnabled")?t.recoveryEnabled:zi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=u7)},e.prototype.getTokenToInsert=function(t){var n=Os(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 o=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,d=this.LA(1),m=this.LA(1),T=a(function(){var b=o.LA(0),E=o.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:d,previous:b,ruleName:o.getCurrRuleFullName()}),C=new rf(E,d,o.LA(0));C.resyncedTokens=xs(u),o.SAVE_ERROR(C)},"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 gD("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)||it(n))return!1;var r=this.LA(1),o=Ia(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return o},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 Rt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Rt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return xA;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 ce(n,function(r,o){return o===0?xA:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[o],inRule:t.shortRuleNameToFullName(n[o-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ce(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return In(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===xA)return[Ur];var n=t.ruleName+t.idxInCallingRule+kh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Ur)||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 xs(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,o,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=yn(this.RULE_OCCURRENCE_STACK),o={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return o},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ce(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();a(u7,"attemptInRepetitionRecovery")});function Zh(e,t,n){return n|t|e}var hD,Xo,p7,zh,qh,dp,gp,mp,af,nae,ey=Xe(()=>{hD=4,Xo=8,p7=8,zh=1<<Xo,qh=2<<Xo,dp=3<<Xo,gp=4<<Xo,mp=5<<Xo,af=6<<Xo;a(Zh,"getKeyForAutomaticLookahead");nae=32-p7});var yD,vD=Xe(()=>{up();gt();yr();ey();nf();yD=function(){function e(){}return a(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ae(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:zi.dynamicTokensEnabled,this.maxLookahead=Ae(t,"maxLookahead")?t.maxLookahead:zi.maxLookahead,this.lookAheadFuncsCache=rA()?new Map:[],rA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;me(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=j_(i),o=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,d=r.repetitionWithSeparator;me(o,function(m){var T=m.idx===0?"":m.idx;n.TRACE_INIT(""+hr(m)+T,function(){var b=Q_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=Zh(n.fullRuleNameToShort[i.name],zh,m.idx);n.setLaFuncCache(E,b)})}),me(s,function(m){n.computeLookaheadFunc(i,m.idx,dp,Lt.REPETITION,m.maxLookahead,hr(m))}),me(l,function(m){n.computeLookaheadFunc(i,m.idx,qh,Lt.OPTION,m.maxLookahead,hr(m))}),me(u,function(m){n.computeLookaheadFunc(i,m.idx,gp,Lt.REPETITION_MANDATORY,m.maxLookahead,hr(m))}),me(p,function(m){n.computeLookaheadFunc(i,m.idx,af,Lt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,hr(m))}),me(d,function(m){n.computeLookaheadFunc(i,m.idx,mp,Lt.REPETITION_WITH_SEPARATOR,m.maxLookahead,hr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,o,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=z_(n,t,o||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Zh(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return Z_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return q_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Zh(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 OA(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function CA(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 TD(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function ED(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var bD=Xe(()=>{a(OA,"setNodeLocationOnlyOffset");a(CA,"setNodeLocationFull");a(TD,"addTerminalToCst");a(ED,"addNoneTerminalToCst")});function SD(e){return hp(e.constructor)}function hp(e){var t=e.name;return t||"anonymous"}function NA(e,t){var n=Object.getOwnPropertyDescriptor(e,AD);return Si(n)||n.configurable?(Object.defineProperty(e,AD,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var AD,RA=Xe(()=>{gt();a(SD,"classNameFromInstance");AD="name";a(hp,"functionName");a(NA,"defineNameProp")});function d7(e,t){for(var n=Ri(e),i=n.length,r=0;r<i;r++)for(var o=n[r],s=e[o],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function xD(e,t){var n=a(function(){},"derivedConstructor");NA(n,e+"BaseSemantics");var i={visit:function(r,o){if(li(r)&&(r=r[0]),!Si(r))return this[r.name](r.children,o)},validateVisitor:function(){var r=g7(this,t);if(!it(r)){var o=ce(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+hp(this.constructor)+`>:
|
|
164
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},buildInvalidRuleNameError:function(e){return"deprecated"},buildDuplicateRuleNameError:function(e){var t;e.topLevelRule instanceof mr?t=e.topLevelRule.name:t=e.topLevelRule;var n="Duplicate definition, rule: ->"+t+"<- is already defined in the grammar: ->"+e.grammarName+"<-";return n}}});function B_(e,t){var n=new Q3(e,t);return n.resolveRefs(),n.errors}var Y3,Q3,W_=Xe(()=>{yr();gt();ef();Y3=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(B_,"resolveGrammar");Q3=function(e){Y3(t,e);function t(n,i){var r=e.call(this)||this;return r.nameToTopRule=n,r.errMsgProvider=i,r.errors=[],r}return a(t,"GastRefResolverVisitor"),t.prototype.resolveRefs=function(){var n=this;me(Dn(this.nameToTopRule),function(i){n.currTopLevel=i,i.accept(n)})},t.prototype.visitNonTerminal=function(n){var i=this.nameToTopRule[n.nonTerminalName];if(i)n.referencedRule=i;else{var r=this.errMsgProvider.buildRuleNotFoundError(this.currTopLevel,n);this.errors.push({message:r,type:Gn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Br)});function Uh(e,t,n){n===void 0&&(n=[]),n=yn(n);var i=[],r=0;function o(p){return p.concat(wn(e,r+1))}a(o,"remainingPathWith");function s(p){var d=Uh(o(p),t,n);return i.concat(d)}for(a(s,"getAlternativesForProd");n.length<t&&r<e.length;){var l=e[r];if(l instanceof Kt)return s(l.definition);if(l instanceof zt)return s(l.definition);if(l instanceof qt)i=s(l.definition);else if(l instanceof On){var u=l.definition.concat([new It({definition:l.definition})]);return s(u)}else if(l instanceof Cn){var u=[new Kt({definition:l.definition}),new It({definition:[new pt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof vn){var u=l.definition.concat([new It({definition:[new pt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof It){var u=l.definition.concat([new It({definition:l.definition})]);i=s(u)}else{if(l instanceof Tn)return me(l.definition,function(p){it(p.definition)===!1&&(i=s(p.definition))}),i;if(l instanceof pt)n.push(l.terminalType);else throw Error("non exhaustive match")}r++}return i.push({partialPath:n,suffixDef:wn(e,r)}),i}function Bh(e,t,n,i){var r="EXIT_NONE_TERMINAL",o=[r],s="EXIT_ALTERNATIVE",l=!1,u=t.length,p=u-i-1,d=[],m=[];for(m.push({idx:-1,def:e,ruleStack:[],occurrenceStack:[]});!it(m);){var T=m.pop();if(T===s){l&&Th(m).idx<=p&&m.pop();continue}var b=T.def,E=T.idx,C=T.ruleStack,R=T.occurrenceStack;if(!it(b)){var L=b[0];if(L===r){var F={idx:E,def:wn(b),ruleStack:xs(C),occurrenceStack:xs(R)};m.push(F)}else if(L instanceof pt)if(E<u-1){var U=E+1,J=t[U];if(n(J,L.terminalType)){var F={idx:U,def:wn(b),ruleStack:C,occurrenceStack:R};m.push(F)}}else if(E===u-1)d.push({nextTokenType:L.terminalType,nextTokenOccurrence:L.idx,ruleStack:C,occurrenceStack:R}),l=!0;else throw Error("non exhaustive match");else if(L instanceof zt){var re=yn(C);re.push(L.nonTerminalName);var Ce=yn(R);Ce.push(L.idx);var F={idx:E,def:L.definition.concat(o,wn(b)),ruleStack:re,occurrenceStack:Ce};m.push(F)}else if(L instanceof qt){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:R};m.push(st),m.push(s);var k={idx:E,def:L.definition.concat(wn(b)),ruleStack:C,occurrenceStack:R};m.push(k)}else if(L instanceof On){var Ot=new It({definition:L.definition,idx:L.idx}),ht=L.definition.concat([Ot],wn(b)),F={idx:E,def:ht,ruleStack:C,occurrenceStack:R};m.push(F)}else if(L instanceof Cn){var Ke=new pt({terminalType:L.separator}),Ot=new It({definition:[Ke].concat(L.definition),idx:L.idx}),ht=L.definition.concat([Ot],wn(b)),F={idx:E,def:ht,ruleStack:C,occurrenceStack:R};m.push(F)}else if(L instanceof vn){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:R};m.push(st),m.push(s);var Ke=new pt({terminalType:L.separator}),Xt=new It({definition:[Ke].concat(L.definition),idx:L.idx}),ht=L.definition.concat([Xt],wn(b)),k={idx:E,def:ht,ruleStack:C,occurrenceStack:R};m.push(k)}else if(L instanceof It){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:R};m.push(st),m.push(s);var Xt=new It({definition:L.definition,idx:L.idx}),ht=L.definition.concat([Xt],wn(b)),k={idx:E,def:ht,ruleStack:C,occurrenceStack:R};m.push(k)}else if(L instanceof Tn)for(var Mi=L.definition.length-1;Mi>=0;Mi--){var pn=L.definition[Mi],Zt={idx:E,def:pn.definition.concat(wn(b)),ruleStack:C,occurrenceStack:R};m.push(Zt),m.push(s)}else if(L instanceof Kt)m.push({idx:E,def:L.definition.concat(wn(b)),ruleStack:C,occurrenceStack:R});else if(L instanceof mr)m.push(q3(L,E,C,R));else throw Error("non exhaustive match")}}return d}function q3(e,t,n,i){var r=yn(n);r.push(e.name);var o=yn(i);return o.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:o}}var $c,z3,G_,$h,H_,yA,K_,vA,cp=Xe(()=>{Mh();gt();mA();Fi();$c=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),z3=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 a(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=yn(this.path.ruleStack).reverse(),this.occurrenceStack=yn(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 o=i.concat(r);this.updateExpectedNext(),this.walk(n.referencedRule,o)}},t.prototype.updateExpectedNext=function(){it(this.ruleStack)?(this.nextProductionName="",this.nextProductionOccurrence=0,this.isAtEndOfPath=!0):(this.nextProductionName=this.ruleStack.pop(),this.nextProductionOccurrence=this.occurrenceStack.pop())},t}(kc),G_=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 a(t,"NextAfterTokenWalker"),t.prototype.walkTerminal=function(n,i,r){if(this.isAtEndOfPath&&n.terminalType.name===this.nextTerminalName&&n.idx===this.nextTerminalOccurrence&&!this.found){var o=i.concat(r),s=new Kt({definition:o});this.possibleTokTypes=jc(s),this.found=!0}},t}(z3),$h=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 a(t,"AbstractNextTerminalAfterProductionWalker"),t.prototype.startWalking=function(){return this.walk(this.topRule),this.result},t}(kc),H_=function(e){$c(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterManyWalker"),t.prototype.walkMany=function(n,i,r){if(n.idx===this.occurrence){var o=Ai(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof pt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkMany.call(this,n,i,r)},t}($h),yA=function(e){$c(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterManySepWalker"),t.prototype.walkManySep=function(n,i,r){if(n.idx===this.occurrence){var o=Ai(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof pt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkManySep.call(this,n,i,r)},t}($h),K_=function(e){$c(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterAtLeastOneWalker"),t.prototype.walkAtLeastOne=function(n,i,r){if(n.idx===this.occurrence){var o=Ai(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof pt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOne.call(this,n,i,r)},t}($h),vA=function(e){$c(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return a(t,"NextTerminalAfterAtLeastOneSepWalker"),t.prototype.walkAtLeastOneSep=function(n,i,r){if(n.idx===this.occurrence){var o=Ai(i.concat(r));this.result.isEndOfRule=o===void 0,o instanceof pt&&(this.result.token=o.terminalType,this.result.occurrence=o.idx)}else e.prototype.walkAtLeastOneSep.call(this,n,i,r)},t}($h);a(Uh,"possiblePathsFrom");a(Bh,"nextPossibleTokensAfter");a(q3,"expandTopLevelRule")});function Y_(e){if(e instanceof qt)return Lt.OPTION;if(e instanceof It)return Lt.REPETITION;if(e instanceof On)return Lt.REPETITION_MANDATORY;if(e instanceof Cn)return Lt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof vn)return Lt.REPETITION_WITH_SEPARATOR;if(e instanceof Tn)return Lt.ALTERNATION;throw Error("non exhaustive match")}function Q_(e,t,n,i,r,o){var s=lp(e,t,n),l=iD(s)?zl:Vc;return o(s,i,l,r)}function z_(e,t,n,i,r,o){var s=fp(e,t,r,n),l=iD(s)?zl:Vc;return o(s[0],l,i)}function q_(e,t,n,i){var r=e.length,o=fi(e,function(u){return fi(u,function(p){return p.length===1})});if(t)return function(u){for(var p=ce(u,function(U){return U.GATE}),d=0;d<r;d++){var m=e[d],T=m.length,b=p[d];if(!(b!==void 0&&b.call(this)===!1))e:for(var E=0;E<T;E++){for(var C=m[E],R=C.length,L=0;L<R;L++){var F=this.LA(L+1);if(n(F,C[L])===!1)continue e}return d}}};if(o&&!i){var s=ce(e,function(u){return In(u)}),l=on(s,function(u,p,d){return me(p,function(m){Ae(u,m.tokenTypeIdx)||(u[m.tokenTypeIdx]=d),me(m.categoryMatches,function(T){Ae(u,T)||(u[T]=d)})}),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],d=p.length;e:for(var m=0;m<d;m++){for(var T=p[m],b=T.length,E=0;E<b;E++){var C=this.LA(E+1);if(n(C,T[E])===!1)continue e}return u}}}}function Z_(e,t,n){var i=fi(e,function(p){return p.length===1}),r=e.length;if(i&&!n){var o=In(e);if(o.length===1&&it(o[0].categoryMatches)){var s=o[0],l=s.tokenTypeIdx;return function(){return this.LA(1).tokenTypeIdx===l}}else{var u=on(o,function(p,d,m){return p[d.tokenTypeIdx]=!0,me(d.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 d=e[p],m=d.length,T=0;T<m;T++){var b=this.LA(T+1);if(t(b,d[T])===!1)continue e}return!0}return!1}}function X_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function TA(e){for(var t=[""],n=0;n<e.length;n++){for(var i=e[n],r=[],o=0;o<t.length;o++){var s=t[o];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 e7(e,t,n){for(var i=0;i<e.length;i++)if(i!==n)for(var r=e[i],o=0;o<t.length;o++){var s=t[o];if(r[s]===!0)return!1}return!0}function tD(e,t){for(var n=ce(e,function(d){return Uh([d],1)}),i=X_(n.length),r=ce(n,function(d){var m={};return me(d,function(T){var b=TA(T.partialPath);me(b,function(E){m[E]=!0})}),m}),o=n,s=1;s<=t;s++){var l=o;o=X_(l.length);for(var u=a(function(d){for(var m=l[d],T=0;T<m.length;T++){var b=m[T].partialPath,E=m[T].suffixDef,C=TA(b),R=e7(r,C,d);if(R||it(E)||b.length===t){var L=i[d];if(Wh(L,b)===!1){L.push(b);for(var F=0;F<C.length;F++){var U=C[F];r[d][U]=!0}}}else{var J=Uh(E,s+1,b);o[d]=o[d].concat(J),me(J,function(re){var Ce=TA(re.partialPath);me(Ce,function(st){r[d][st]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function lp(e,t,n,i){var r=new eD(e,Lt.ALTERNATION,i);return t.accept(r),tD(r.result,n)}function fp(e,t,n,i){var r=new eD(e,n);t.accept(r);var o=r.result,s=new Z3(t,e,n),l=s.startWalking(),u=new Kt({definition:o}),p=new Kt({definition:l});return tD([u,p],i)}function Wh(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 o=t[r],s=i[r],l=o===s||s.categoryMatchesMap[o.tokenTypeIdx]!==void 0;if(l===!1)continue e}return!0}}return!1}function nD(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function iD(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return it(i.categoryMatches)})})})}var J_,Lt,Z3,eD,up=Xe(()=>{gt();cp();Mh();ql();Fi();ef();J_=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(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"})(Lt||(Lt={}));a(Y_,"getProdType");a(Q_,"buildLookaheadFuncForOr");a(z_,"buildLookaheadFuncForOptionalProd");a(q_,"buildAlternativesLookAheadFunc");a(Z_,"buildSingleAlternativeLookaheadFunction");Z3=function(e){J_(t,e);function t(n,i,r){var o=e.call(this)||this;return o.topProd=n,o.targetOccurrence=i,o.targetProdType=r,o}return a(t,"RestDefinitionFinderWalker"),t.prototype.startWalking=function(){return this.walk(this.topProd),this.restDef},t.prototype.checkIsTarget=function(n,i,r,o){return n.idx===this.targetOccurrence&&this.targetProdType===i?(this.restDef=r.concat(o),!0):!1},t.prototype.walkOption=function(n,i,r){this.checkIsTarget(n,Lt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Lt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Lt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Lt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Lt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(kc),eD=function(e){J_(t,e);function t(n,i,r){var o=e.call(this)||this;return o.targetOccurrence=n,o.targetProdType=i,o.targetRef=r,o.result=[],o}return a(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,Lt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Lt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Lt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Lt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Lt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Lt.ALTERNATION)},t}(Br);a(X_,"initializeArrayOfArrays");a(TA,"pathToHashKeys");a(e7,"isUniquePrefixHash");a(tD,"lookAheadSequenceFromAlternatives");a(lp,"getLookaheadPathsForOr");a(fp,"getLookaheadPathsForOptionalProd");a(Wh,"containsPath");a(nD,"isStrictPrefixOfPath");a(iD,"areTokenCategoriesNotUsed")});function rD(e,t,n,i,r){var o=ce(e,function(b){return t7(b,i)}),s=ce(e,function(b){return sD(b,b,i)}),l=[],u=[],p=[];fi(s,it)&&(l=ce(e,function(b){return o7(b,i)}),u=ce(e,function(b){return a7(b,t,i)}),p=l7(e,t,i));var d=p7(e,n,i),m=ce(e,function(b){return c7(b,i)}),T=ce(e,function(b){return r7(b,e,r,i)});return In(o.concat(p,s,l,u,d,m,T))}function t7(e,t){var n=new i7;e.accept(n);var i=n.allProductions,r=q0(i,n7),o=dr(r,function(l){return l.length>1}),s=ce(Dn(o),function(l){var u=Ai(l),p=t.buildDuplicateFoundError(e,l),d=hr(u),m={message:p,type:Gn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:u.idx},T=oD(u);return T&&(m.parameter=T),m});return s}function n7(e){return hr(e)+"_#_"+e.idx+"_#_"+oD(e)}function oD(e){return e instanceof pt?e.terminalType.name:e instanceof zt?e.nonTerminalName:""}function r7(e,t,n,i){var r=[],o=on(t,function(l,u){return u.name===e.name?l+1:l},0);if(o>1){var s=i.buildDuplicateRuleNameError({topLevelRule:e,grammarName:n});r.push({message:s,type:Gn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function aD(e,t,n){var i=[],r;return Rt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Gn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function sD(e,t,n,i){i===void 0&&(i=[]);var r=[],o=Gh(t.definition);if(it(o))return[];var s=e.name,l=Rt(o,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Gn.LEFT_RECURSION,ruleName:s});var u=Mc(o,i.concat([e])),p=ce(u,function(d){var m=yn(i);return m.push(d),sD(e,d,n,m)});return r.concat(In(p))}function Gh(e){var t=[];if(it(e))return t;var n=Ai(e);if(n instanceof zt)t.push(n.referencedRule);else if(n instanceof Kt||n instanceof qt||n instanceof On||n instanceof Cn||n instanceof vn||n instanceof It)t=t.concat(Gh(n.definition));else if(n instanceof Tn)t=In(ce(n.definition,function(s){return Gh(s.definition)}));else if(!(n instanceof pt))throw Error("non exhaustive match");var i=tf(n),r=e.length>1;if(i&&r){var o=wn(e);return t.concat(Gh(o))}else return t}function o7(e,t){var n=new bA;e.accept(n);var i=n.alternations,r=on(i,function(o,s){var l=xs(s.definition),u=ce(l,function(p,d){var m=Bh([p],[],null,1);return it(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:d}),type:Gn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:d+1}:null});return o.concat(Oa(u))},[]);return r}function a7(e,t,n){var i=new bA;e.accept(i);var r=i.alternations;r=Pa(r,function(s){return s.ignoreAmbiguities===!0});var o=on(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,d=lp(u,e,p,l),m=f7(d,l,e,n),T=u7(d,l,e,n);return s.concat(m,T)},[]);return o}function c7(e,t){var n=new bA;e.accept(n);var i=n.alternations,r=on(i,function(o,s){return s.definition.length>255&&o.push({message:t.buildTooManyAlternativesError({topLevelRule:e,alternation:s}),type:Gn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),o},[]);return r}function l7(e,t,n){var i=[];return me(e,function(r){var o=new s7;r.accept(o);var s=o.allProductions;me(s,function(l){var u=Y_(l),p=l.maxLookahead||t,d=l.idx,m=fp(d,r,u,p),T=m[0];if(it(In(T))){var b=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:b,type:Gn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function f7(e,t,n,i){var r=[],o=on(e,function(l,u,p){return t.definition[p].ignoreAmbiguities===!0||me(u,function(d){var m=[p];me(e,function(T,b){p!==b&&Wh(T,d)&&t.definition[b].ignoreAmbiguities!==!0&&m.push(b)}),m.length>1&&!Wh(r,d)&&(r.push(d),l.push({alts:m,path:d}))}),l},[]),s=ce(o,function(l){var u=ce(l.alts,function(d){return d+1}),p=i.buildAlternationAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:u,prefixPath:l.path});return{message:p,type:Gn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function u7(e,t,n,i){var r=[],o=on(e,function(s,l,u){var p=ce(l,function(d){return{idx:u,path:d}});return s.concat(p)},[]);return me(o,function(s){var l=t.definition[s.idx];if(l.ignoreAmbiguities!==!0){var u=s.idx,p=s.path,d=Q0(o,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&nD(T.path,p)}),m=ce(d,function(T){var b=[T.idx+1,u+1],E=t.idx===0?"":t.idx,C=i.buildAlternationPrefixAmbiguityError({topLevelRule:n,alternation:t,ambiguityIndices:b,prefixPath:T.path});return{message:C,type:Gn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:b}});r=r.concat(m)}}),r}function p7(e,t,n){var i=[],r=ce(t,function(o){return o.name});return me(e,function(o){var s=o.name;if(Rt(r,s)){var l=n.buildNamespaceConflictError(o);i.push({message:l,type:Gn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var EA,i7,bA,s7,AA=Xe(()=>{gt();gt();yr();nf();up();cp();Fi();ef();EA=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}();a(rD,"validateGrammar");a(t7,"validateDuplicateProductions");a(n7,"identifyProductionForDuplicates");a(oD,"getExtraProductionArgument");i7=function(e){EA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return a(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}(Br);a(r7,"validateRuleDoesNotAlreadyExist");a(aD,"validateRuleIsOverridden");a(sD,"validateNoLeftRecursion");a(Gh,"getFirstNoneTerminal");bA=function(e){EA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.alternations=[],n}return a(t,"OrCollector"),t.prototype.visitAlternation=function(n){this.alternations.push(n)},t}(Br);a(o7,"validateEmptyOrAlternative");a(a7,"validateAmbiguousAlternationAlternatives");s7=function(e){EA(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.allProductions=[],n}return a(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}(Br);a(c7,"validateTooManyAlts");a(l7,"validateSomeNonEmptyLookaheadPath");a(f7,"checkAlternativesAmbiguities");a(u7,"checkPrefixAlternativesAmbiguities");a(p7,"checkTerminalAndNoneTerminalsNameSpace")});function Hh(e){e=Zu(e,{errMsgProvider:jh});var t={};return me(e.rules,function(n){t[n.name]=n}),B_(t,e.errMsgProvider)}function Kh(e){return e=Zu(e,{errMsgProvider:Ns}),rD(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function cD(e){me(e.rules,function(t){var n=new gA;t.accept(n),me(n.dslMethods,function(i){me(i,function(r,o){r.idx=o+1})})})}var SA=Xe(()=>{gt();W_();AA();sp();nf();a(Hh,"resolveGrammar");a(Kh,"validateGrammar");a(cD,"assignOccurrenceIndices")});function Ra(e){return Rt(dD,e.name)}var pp,lD,fD,uD,pD,dD,Xh,rf,Jh,Yh,Qh,of=Xe(()=>{gt();pp=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),lD="MismatchedTokenException",fD="NoViableAltException",uD="EarlyExitException",pD="NotAllInputParsedException",dD=[lD,fD,uD,pD];Object.freeze(dD);a(Ra,"isRecognitionException");Xh=function(e){pp(t,e);function t(n,i){var r=this.constructor,o=e.call(this,n)||this;return o.token=i,o.resyncedTokens=[],Object.setPrototypeOf(o,r.prototype),Error.captureStackTrace&&Error.captureStackTrace(o,o.constructor),o}return a(t,"RecognitionException"),t}(Error),rf=function(e){pp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=lD,o}return a(t,"MismatchedTokenException"),t}(Xh),Jh=function(e){pp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=fD,o}return a(t,"NoViableAltException"),t}(Xh),Yh=function(e){pp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=pD,r}return a(t,"NotAllInputParsedException"),t}(Xh),Qh=function(e){pp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=uD,o}return a(t,"EarlyExitException"),t}(Xh)});function gD(e){this.name=PA,this.message=e}function d7(e,t,n,i,r,o,s){var l=this.getKeyForAutomaticLookahead(i,r),u=this.firstAfterRepMap[l];if(u===void 0){var p=this.getCurrRuleFullName(),d=this.getGAstProductions()[p],m=new o(d,r);u=m.startWalking(),this.firstAfterRepMap[l]=u}var T=u.token,b=u.occurrence,E=u.isEndOfRule;this.RULE_STACK.length===1&&E&&T===void 0&&(T=Ur,b=1),this.shouldInRepetitionRecoveryBeTried(T,b,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var xA,PA,mD,IA=Xe(()=>{Cs();gt();of();hA();yr();xA={},PA="InRuleRecoveryException";a(gD,"InRuleRecoveryException");gD.prototype=Error.prototype;mD=function(){function e(){}return a(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ae(t,"recoveryEnabled")?t.recoveryEnabled:zi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=d7)},e.prototype.getTokenToInsert=function(t){var n=Os(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 o=this,s=this.findReSyncTokenType(),l=this.exportLexerState(),u=[],p=!1,d=this.LA(1),m=this.LA(1),T=a(function(){var b=o.LA(0),E=o.errorMessageProvider.buildMismatchTokenMessage({expected:r,actual:d,previous:b,ruleName:o.getCurrRuleFullName()}),C=new rf(E,d,o.LA(0));C.resyncedTokens=xs(u),o.SAVE_ERROR(C)},"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 gD("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)||it(n))return!1;var r=this.LA(1),o=Ia(n,function(s){return i.tokenMatcher(r,s)})!==void 0;return o},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 Rt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Rt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return xA;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 ce(n,function(r,o){return o===0?xA:{ruleName:t.shortRuleNameToFullName(r),idxInCallingRule:i[o],inRule:t.shortRuleNameToFullName(n[o-1])}})},e.prototype.flattenFollowSet=function(){var t=this,n=ce(this.buildFullFollowKeyStack(),function(i){return t.getFollowSetFromFollowKey(i)});return In(n)},e.prototype.getFollowSetFromFollowKey=function(t){if(t===xA)return[Ur];var n=t.ruleName+t.idxInCallingRule+kh+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Ur)||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 xs(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,o,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=yn(this.RULE_OCCURRENCE_STACK),o={ruleStack:i,occurrenceStack:r,lastTok:t,lastTokOccurrence:n};return o},e.prototype.getHumanReadableRuleStack=function(){var t=this;return ce(this.RULE_STACK,function(n){return t.shortRuleNameToFullName(n)})},e}();a(d7,"attemptInRepetitionRecovery")});function Zh(e,t,n){return n|t|e}var hD,Xo,g7,zh,qh,dp,gp,mp,af,oae,ey=Xe(()=>{hD=4,Xo=8,g7=8,zh=1<<Xo,qh=2<<Xo,dp=3<<Xo,gp=4<<Xo,mp=5<<Xo,af=6<<Xo;a(Zh,"getKeyForAutomaticLookahead");oae=32-g7});var yD,vD=Xe(()=>{up();gt();yr();ey();nf();yD=function(){function e(){}return a(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ae(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:zi.dynamicTokensEnabled,this.maxLookahead=Ae(t,"maxLookahead")?t.maxLookahead:zi.maxLookahead,this.lookAheadFuncsCache=rA()?new Map:[],rA()?(this.getLaFuncFromCache=this.getLaFuncFromMap,this.setLaFuncCache=this.setLaFuncCacheUsingMap):(this.getLaFuncFromCache=this.getLaFuncFromObj,this.setLaFuncCache=this.setLaFuncUsingObj)},e.prototype.preComputeLookaheadFunctions=function(t){var n=this;me(t,function(i){n.TRACE_INIT(i.name+" Rule Lookahead",function(){var r=j_(i),o=r.alternation,s=r.repetition,l=r.option,u=r.repetitionMandatory,p=r.repetitionMandatoryWithSeparator,d=r.repetitionWithSeparator;me(o,function(m){var T=m.idx===0?"":m.idx;n.TRACE_INIT(""+hr(m)+T,function(){var b=Q_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=Zh(n.fullRuleNameToShort[i.name],zh,m.idx);n.setLaFuncCache(E,b)})}),me(s,function(m){n.computeLookaheadFunc(i,m.idx,dp,Lt.REPETITION,m.maxLookahead,hr(m))}),me(l,function(m){n.computeLookaheadFunc(i,m.idx,qh,Lt.OPTION,m.maxLookahead,hr(m))}),me(u,function(m){n.computeLookaheadFunc(i,m.idx,gp,Lt.REPETITION_MANDATORY,m.maxLookahead,hr(m))}),me(p,function(m){n.computeLookaheadFunc(i,m.idx,af,Lt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,hr(m))}),me(d,function(m){n.computeLookaheadFunc(i,m.idx,mp,Lt.REPETITION_WITH_SEPARATOR,m.maxLookahead,hr(m))})})})},e.prototype.computeLookaheadFunc=function(t,n,i,r,o,s){var l=this;this.TRACE_INIT(""+s+(n===0?"":n),function(){var u=z_(n,t,o||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Zh(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return Z_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return q_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Zh(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 OA(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function CA(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 TD(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function ED(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var bD=Xe(()=>{a(OA,"setNodeLocationOnlyOffset");a(CA,"setNodeLocationFull");a(TD,"addTerminalToCst");a(ED,"addNoneTerminalToCst")});function SD(e){return hp(e.constructor)}function hp(e){var t=e.name;return t||"anonymous"}function NA(e,t){var n=Object.getOwnPropertyDescriptor(e,AD);return Si(n)||n.configurable?(Object.defineProperty(e,AD,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var AD,RA=Xe(()=>{gt();a(SD,"classNameFromInstance");AD="name";a(hp,"functionName");a(NA,"defineNameProp")});function m7(e,t){for(var n=Ri(e),i=n.length,r=0;r<i;r++)for(var o=n[r],s=e[o],l=s.length,u=0;u<l;u++){var p=s[u];p.tokenTypeIdx===void 0&&this[p.name](p.children,t)}}function xD(e,t){var n=a(function(){},"derivedConstructor");NA(n,e+"BaseSemantics");var i={visit:function(r,o){if(li(r)&&(r=r[0]),!Si(r))return this[r.name](r.children,o)},validateVisitor:function(){var r=h7(this,t);if(!it(r)){var o=ce(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+hp(this.constructor)+`>:
|
|
165
165
|
`+(""+o.join(`
|
|
166
166
|
|
|
167
167
|
`).replace(/\n/g,`
|
|
168
|
-
`)))}}};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function PD(e,t,n){var i=a(function(){},"derivedConstructor");NA(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return me(t,function(o){r[o]=
|
|
168
|
+
`)))}}};return n.prototype=i,n.prototype.constructor=n,n._RULE_NAMES=t,n}function PD(e,t,n){var i=a(function(){},"derivedConstructor");NA(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return me(t,function(o){r[o]=m7}),i.prototype=r,i.prototype.constructor=i,i}function h7(e,t){var n=y7(e,t),i=T7(e,t);return n.concat(i)}function y7(e,t){var n=ce(t,function(i){if(!lo(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+hp(e.constructor)+" CST Visitor.",type:ty.MISSING_METHOD,methodName:i}});return Oa(n)}function T7(e,t){var n=[];for(var i in e)lo(e[i])&&!Rt(v7,i)&&!Rt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+hp(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:ty.REDUNDANT_METHOD,methodName:i});return n}var ty,h7,ID=Xe(()=>{gt();RA();a(d7,"defaultVisit");a(xD,"createBaseSemanticVisitorConstructor");a(PD,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(ty||(ty={}));a(g7,"validateVisitor");a(m7,"validateMissingCstMethods");h7=["constructor","visit","validateVisitor"];a(y7,"validateRedundantMethods")});var OD,CD=Xe(()=>{bD();gt();ID();yr();OD=function(){function e(){}return a(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ae(t,"nodeLocationTracking")?t.nodeLocationTracking:zi.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=CA,this.setNodeLocationFromNode=CA,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=OA,this.setNodeLocationFromNode=OA,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];TD(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];ED(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=xD(this.className,Ri(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=PD(this.className,Ri(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 ND,RD=Xe(()=>{yr();ND=function(){function e(){}return a(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set: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},enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):sf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?sf: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 LD,FD=Xe(()=>{gt();of();yr();sp();AA();Fi();LD=function(){function e(){}return a(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=cf),Rt(this.definedRulesNames,t)){var r=Ns.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),o={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(o)}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=cf);var r=[];r=r.concat(aD(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var o=this.defineRule(t,n,i);return this[t]=o,o},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(Ra(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return wh(Dn(this.gastProductionsCache))},e}()});var _D,DD=Xe(()=>{gt();ey();of();up();cp();yr();IA();Cs();ql();RA();_D=function(){function e(){}return a(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=SD(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=zl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ae(n,"serializedGrammar"))throw Error(`The Parser's configuration can no longer contain a <serializedGrammar> property.
|
|
170
|
+
`,type:ty.REDUNDANT_METHOD,methodName:i});return n}var ty,v7,ID=Xe(()=>{gt();RA();a(m7,"defaultVisit");a(xD,"createBaseSemanticVisitorConstructor");a(PD,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(ty||(ty={}));a(h7,"validateVisitor");a(y7,"validateMissingCstMethods");v7=["constructor","visit","validateVisitor"];a(T7,"validateRedundantMethods")});var OD,CD=Xe(()=>{bD();gt();ID();yr();OD=function(){function e(){}return a(e,"TreeBuilder"),e.prototype.initTreeBuilder=function(t){if(this.CST_STACK=[],this.outputCst=t.outputCst,this.nodeLocationTracking=Ae(t,"nodeLocationTracking")?t.nodeLocationTracking:zi.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=CA,this.setNodeLocationFromNode=CA,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=OA,this.setNodeLocationFromNode=OA,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];TD(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];ED(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=xD(this.className,Ri(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=PD(this.className,Ri(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 ND,RD=Xe(()=>{yr();ND=function(){function e(){}return a(e,"LexerAdapter"),e.prototype.initLexerAdapter=function(){this.tokVector=[],this.tokVectorLength=0,this.currIdx=-1},Object.defineProperty(e.prototype,"input",{get:function(){return this.tokVector},set: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},enumerable:!1,configurable:!0}),e.prototype.SKIP_TOKEN=function(){return this.currIdx<=this.tokVector.length-2?(this.consumeToken(),this.LA(1)):sf},e.prototype.LA=function(t){var n=this.currIdx+t;return n<0||this.tokVectorLength<=n?sf: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 LD,FD=Xe(()=>{gt();of();yr();sp();AA();Fi();LD=function(){function e(){}return a(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=cf),Rt(this.definedRulesNames,t)){var r=Ns.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),o={message:r,type:Gn.DUPLICATE_RULE_NAME,ruleName:t};this.definitionErrors.push(o)}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=cf);var r=[];r=r.concat(aD(t,this.definedRulesNames,this.className)),this.definitionErrors.push.apply(this.definitionErrors,r);var o=this.defineRule(t,n,i);return this[t]=o,o},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(Ra(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return wh(Dn(this.gastProductionsCache))},e}()});var _D,DD=Xe(()=>{gt();ey();of();up();cp();yr();IA();Cs();ql();RA();_D=function(){function e(){}return a(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=SD(this),this.shortRuleNameToFull={},this.fullRuleNameToShort={},this.ruleShortNameIdx=256,this.tokenMatcher=zl,this.definedRulesNames=[],this.tokensMap={},this.isBackTrackingStack=[],this.RULE_STACK=[],this.RULE_OCCURRENCE_STACK=[],this.gastProductionsCache={},Ae(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(it(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=on(t,function(s,l){return s[l.name]=l,s},{});else if(Ae(t,"modes")&&fi(In(Dn(t.modes)),P_)){var i=In(Dn(t.modes)),r=qu(i);this.tokensMap=on(r,function(s,l){return s[l.name]=l,s},{})}else if(Eh(t))this.tokensMap=Ps(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=Ur;var o=fi(Dn(t),function(s){return it(s.categoryMatches)});this.tokenMatcher=o?zl:
|
|
177
|
-
Make sure that all grammar rule definitions are done before 'performSelfAnalysis' is called.`);var r=Ae(i,"resyncEnabled")?i.resyncEnabled:cf.resyncEnabled,o=Ae(i,"recoveryValueFunc")?i.recoveryValueFunc:cf.recoveryValueFunc,s=this.ruleShortNameIdx<<hD+Xo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(d){try{if(this.outputCst===!0){n.apply(this,d);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,d)}catch(T){return this.invokeRuleCatch(T,r,o)}finally{this.ruleFinallyStateUpdate()}}a(l,"invokeRuleWithTry");var u;u=a(function(d,m){return d===void 0&&(d=0),this.ruleInvocationStateUpdate(s,t,d),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,o=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ra(t)){var s=t;if(o){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(qh,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(o.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(gp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(o.call(this)===!0)for(var p=this.doSingleRepetition(s);o.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,Lt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],o,gp,t,K_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(af,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,o=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){o.call(this);for(var u=a(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,o,vA],u,af,t,vA)}else throw this.raiseEarlyExitException(t,Lt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;o.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],o,dp,t,H_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(mp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,o=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){o.call(this);for(var u=a(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,o,yA],u,mp,t,yA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,o){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,o],i,af,t,o)},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(zh,n),r=li(t)?t:t.DEF,o=this.getLaFuncFromCache(i),s=o.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 Yh(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var o=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,o),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 Ra(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 o=this.LA(1);this.tokenMatcher(o,t)===!0?(this.consumeToken(),r=o):this.consumeInternalError(t,o,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,o=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new rf(r,n,o))},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(o){throw o.name===PA?i:o}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=yn(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),Ur)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var wD,MD=Xe(()=>{of();gt();up();yr();wD=function(){function e(){}return a(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ae(t,"errorMessageProvider")?t.errorMessageProvider:zi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ra(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:yn(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:function(){return yn(this._errors)},set:function(t){this._errors=t},enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),o=this.getGAstProductions()[r],s=fp(t,o,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var d=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new Qh(d,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],o=lp(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:o,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Jh(p,this.LA(1),u))},e}()});var VD,kD=Xe(()=>{cp();gt();VD=function(){function e(){}return a(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Si(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Bh([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],o=new G_(r,t).startWalking();return o},e}()});function yp(e,t,n,i){i===void 0&&(i=!1),ny(n);var r=tp(this.recordingProdStack),o=lo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ae(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),o.call(this),r.definition.push(s),this.recordingProdStack.pop(),iy}function T7(e,t){var n=this;ny(t);var i=tp(this.recordingProdStack),r=li(e)===!1,o=r===!1?e:e.DEF,s=new Tn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ae(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=bh(o,function(u){return lo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),me(o,function(u){var p=new Kt({definition:[]});s.definition.push(p),Ae(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ae(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),iy}function UD(e){return e===0?"":""+e}function ny(e){if(e<0||e>$D){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
-
`+("Idx value must be a none negative value smaller than "+($D+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var iy,jD,$D,BD,WD,
|
|
179
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(WD);
|
|
176
|
+
For Further details.`)}if(li(t))this.tokensMap=on(t,function(s,l){return s[l.name]=l,s},{});else if(Ae(t,"modes")&&fi(In(Dn(t.modes)),P_)){var i=In(Dn(t.modes)),r=qu(i);this.tokensMap=on(r,function(s,l){return s[l.name]=l,s},{})}else if(Eh(t))this.tokensMap=Ps(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=Ur;var o=fi(Dn(t),function(s){return it(s.categoryMatches)});this.tokenMatcher=o?zl:Vc,Ca(Dn(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=Ae(i,"resyncEnabled")?i.resyncEnabled:cf.resyncEnabled,o=Ae(i,"recoveryValueFunc")?i.recoveryValueFunc:cf.recoveryValueFunc,s=this.ruleShortNameIdx<<hD+Xo;this.ruleShortNameIdx++,this.shortRuleNameToFull[s]=t,this.fullRuleNameToShort[t]=s;function l(d){try{if(this.outputCst===!0){n.apply(this,d);var m=this.CST_STACK[this.CST_STACK.length-1];return this.cstPostRule(m),m}else return n.apply(this,d)}catch(T){return this.invokeRuleCatch(T,r,o)}finally{this.ruleFinallyStateUpdate()}}a(l,"invokeRuleWithTry");var u;u=a(function(d,m){return d===void 0&&(d=0),this.ruleInvocationStateUpdate(s,t,d),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,o=n&&!this.isBackTracking()&&this.recoveryEnabled;if(Ra(t)){var s=t;if(o){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(qh,n);return this.optionInternalLogic(t,n,i)},e.prototype.optionInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(t.DEF!==void 0){if(s=t.DEF,l=t.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=t;if(o.call(this)===!0)return s.call(this)},e.prototype.atLeastOneInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(gp,t);return this.atLeastOneInternalLogic(t,n,i)},e.prototype.atLeastOneInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookAheadFunc")}}else s=n;if(o.call(this)===!0)for(var p=this.doSingleRepetition(s);o.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);else throw this.raiseEarlyExitException(t,Lt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],o,gp,t,K_)},e.prototype.atLeastOneSepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(af,t);this.atLeastOneSepFirstInternalLogic(t,n,i)},e.prototype.atLeastOneSepFirstInternalLogic=function(t,n,i){var r=this,o=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){o.call(this);for(var u=a(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,o,vA],u,af,t,vA)}else throw this.raiseEarlyExitException(t,Lt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dp,t);return this.manyInternalLogic(t,n,i)},e.prototype.manyInternalLogic=function(t,n,i){var r=this,o=this.getLaFuncFromCache(i),s,l;if(n.DEF!==void 0){if(s=n.DEF,l=n.GATE,l!==void 0){var u=o;o=a(function(){return l.call(r)&&u.call(r)},"lookaheadFunction")}}else s=n;for(var p=!0;o.call(this)===!0&&p===!0;)p=this.doSingleRepetition(s);this.attemptInRepetitionRecovery(this.manyInternal,[t,n],o,dp,t,H_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(mp,t);this.manySepFirstInternalLogic(t,n,i)},e.prototype.manySepFirstInternalLogic=function(t,n,i){var r=this,o=n.DEF,s=n.SEP,l=this.getLaFuncFromCache(i);if(l.call(this)===!0){o.call(this);for(var u=a(function(){return r.tokenMatcher(r.LA(1),s)},"separatorLookAheadFunc");this.tokenMatcher(this.LA(1),s)===!0;)this.CONSUME(s),o.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,s,u,o,yA],u,mp,t,yA)}},e.prototype.repetitionSepSecondInternal=function(t,n,i,r,o){for(;i();)this.CONSUME(n),r.call(this);this.attemptInRepetitionRecovery(this.repetitionSepSecondInternal,[t,n,i,r,o],i,af,t,o)},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(zh,n),r=li(t)?t:t.DEF,o=this.getLaFuncFromCache(i),s=o.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 Yh(n,t))}},e.prototype.subruleInternal=function(t,n,i){var r;try{var o=i!==void 0?i.ARGS:void 0;return r=t.call(this,n,o),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 Ra(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 o=this.LA(1);this.tokenMatcher(o,t)===!0?(this.consumeToken(),r=o):this.consumeInternalError(t,o,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,o=this.LA(0);throw i!==void 0&&i.ERR_MSG?r=i.ERR_MSG:r=this.errorMessageProvider.buildMismatchTokenMessage({expected:t,actual:n,previous:o,ruleName:this.getCurrRuleFullName()}),this.SAVE_ERROR(new rf(r,n,o))},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(o){throw o.name===PA?i:o}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=yn(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),Ur)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var wD,MD=Xe(()=>{of();gt();up();yr();wD=function(){function e(){}return a(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ae(t,"errorMessageProvider")?t.errorMessageProvider:zi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Ra(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:yn(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:function(){return yn(this._errors)},set:function(t){this._errors=t},enumerable:!1,configurable:!0}),e.prototype.raiseEarlyExitException=function(t,n,i){for(var r=this.getCurrRuleFullName(),o=this.getGAstProductions()[r],s=fp(t,o,n,this.maxLookahead),l=s[0],u=[],p=1;p<=this.maxLookahead;p++)u.push(this.LA(p));var d=this.errorMessageProvider.buildEarlyExitMessage({expectedIterationPaths:l,actual:u,previous:this.LA(0),customUserDescription:i,ruleName:r});throw this.SAVE_ERROR(new Qh(d,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],o=lp(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:o,actual:s,previous:u,customUserDescription:n,ruleName:this.getCurrRuleFullName()});throw this.SAVE_ERROR(new Jh(p,this.LA(1),u))},e}()});var VD,kD=Xe(()=>{cp();gt();VD=function(){function e(){}return a(e,"ContentAssist"),e.prototype.initContentAssist=function(){},e.prototype.computeContentAssist=function(t,n){var i=this.gastProductionsCache[t];if(Si(i))throw Error("Rule ->"+t+"<- does not exist in this grammar.");return Bh([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],o=new G_(r,t).startWalking();return o},e}()});function yp(e,t,n,i){i===void 0&&(i=!1),ny(n);var r=tp(this.recordingProdStack),o=lo(t)?t:t.DEF,s=new e({definition:[],idx:n});return i&&(s.separator=t.SEP),Ae(t,"MAX_LOOKAHEAD")&&(s.maxLookahead=t.MAX_LOOKAHEAD),this.recordingProdStack.push(s),o.call(this),r.definition.push(s),this.recordingProdStack.pop(),iy}function b7(e,t){var n=this;ny(t);var i=tp(this.recordingProdStack),r=li(e)===!1,o=r===!1?e:e.DEF,s=new Tn({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ae(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=bh(o,function(u){return lo(u.GATE)});return s.hasPredicates=l,i.definition.push(s),me(o,function(u){var p=new Kt({definition:[]});s.definition.push(p),Ae(u,"IGNORE_AMBIGUITIES")?p.ignoreAmbiguities=u.IGNORE_AMBIGUITIES:Ae(u,"GATE")&&(p.ignoreAmbiguities=!0),n.recordingProdStack.push(p),u.ALT.call(n),n.recordingProdStack.pop()}),iy}function UD(e){return e===0?"":""+e}function ny(e){if(e<0||e>$D){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+($D+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var iy,jD,$D,BD,WD,E7,GD,HD=Xe(()=>{gt();Fi();ip();ql();Cs();yr();ey();iy={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(iy);jD=!0,$D=Math.pow(2,Xo)-1,BD=op({name:"RECORDING_PHASE_TOKEN",pattern:Li.NA});Ca([BD]);WD=Os(BD,`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(WD);E7={name:`This CSTNode indicates the Parser is in Recording Phase
|
|
180
180
|
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,children:{}},GD=function(){function e(){}return a(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=a(function(r){var o=r>0?r:"";t["CONSUME"+o]=function(s,l){return this.consumeInternalRecord(s,r,l)},t["SUBRULE"+o]=function(s,l){return this.subruleInternalRecord(s,r,l)},t["OPTION"+o]=function(s){return this.optionInternalRecord(s,r)},t["OR"+o]=function(s){return this.orInternalRecord(s,r)},t["MANY"+o]=function(s){this.manyInternalRecord(r,s)},t["MANY_SEP"+o]=function(s){this.manySepFirstInternalRecord(r,s)},t["AT_LEAST_ONE"+o]=function(s){this.atLeastOneInternalRecord(r,s)},t["AT_LEAST_ONE_SEP"+o]=function(s){this.atLeastOneSepFirstInternalRecord(r,s)}},"_loop_1"),i=0;i<10;i++)n(i);t.consume=function(r,o,s){return this.consumeInternalRecord(o,r,s)},t.subrule=function(r,o,s){return this.subruleInternalRecord(o,r,s)},t.option=function(r,o){return this.optionInternalRecord(o,r)},t.or=function(r,o){return this.orInternalRecord(o,r)},t.many=function(r,o){this.manyInternalRecord(r,o)},t.atLeastOne=function(r,o){this.atLeastOneInternalRecord(r,o)},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 sf},e.prototype.topLevelRuleRecord=function(t,n){try{var i=new mr({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 yp.call(this,qt,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){yp.call(this,On,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){yp.call(this,Cn,n,t,jD)},e.prototype.manyInternalRecord=function(t,n){yp.call(this,It,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){yp.call(this,vn,n,t,jD)},e.prototype.orInternalRecord=function(t,n){return
|
|
183
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var o=tp(this.recordingProdStack),s=t.ruleName,l=new zt({idx:n,nonTerminalName:s,referencedRule:void 0});return o.definition.push(l),this.outputCst?
|
|
184
|
-
inside top level rule: <`+this.recordingProdStack[0].name+">"));throw r.KNOWN_RECORDER_ERROR=!0,r}var o=tp(this.recordingProdStack),s=new pt({idx:n,terminalType:t});return o.definition.push(s),WD},e}();a(yp,"recordProd");a(
|
|
182
|
+
https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording`}catch{throw r}throw r}},e.prototype.optionInternalRecord=function(t,n){return yp.call(this,qt,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){yp.call(this,On,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){yp.call(this,Cn,n,t,jD)},e.prototype.manyInternalRecord=function(t,n){yp.call(this,It,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){yp.call(this,vn,n,t,jD)},e.prototype.orInternalRecord=function(t,n){return b7.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(ny(n),!t||Ae(t,"ruleName")===!1){var r=new Error("<SUBRULE"+UD(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 o=tp(this.recordingProdStack),s=t.ruleName,l=new zt({idx:n,nonTerminalName:s,referencedRule:void 0});return o.definition.push(l),this.outputCst?E7:iy},e.prototype.consumeInternalRecord=function(t,n,i){if(ny(n),!uA(t)){var r=new Error("<CONSUME"+UD(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 o=tp(this.recordingProdStack),s=new pt({idx:n,terminalType:t});return o.definition.push(s),WD},e}();a(yp,"recordProd");a(b7,"recordOrProd");a(UD,"getIdxSuffix");a(ny,"assertMethodIdxIsValid")});var KD,XD=Xe(()=>{gt();yr();KD=function(){function e(){}return a(e,"PerformanceTracer"),e.prototype.initPerformanceTracer=function(t){if(Ae(t,"traceInitPerf")){var n=t.traceInitPerf,i=typeof n=="number";this.traceInitMaxIdent=i?n:1/0,this.traceInitPerf=i?n>0:n}else this.traceInitMaxIdent=0,this.traceInitPerf=zi.traceInitPerf;this.traceInitIndent=-1},e.prototype.TRACE_INIT=function(t,n){if(this.traceInitPerf===!0){this.traceInitIndent++;var i=new Array(this.traceInitIndent+1).join(" ");this.traceInitIndent<this.traceInitMaxIdent&&console.log(i+"--> <"+t+">");var r=xh(n),o=r.time,s=r.value,l=o>10?console.warn:console.log;return this.traceInitIndent<this.traceInitMaxIdent&&l(i+"<-- <"+t+"> time: "+o+"ms"),this.traceInitIndent--,s}else return n()},e}()});function YD(e){return e===void 0&&(e=void 0),function(){return e}}var JD,sf,zi,cf,Gn,LA,QD,zD,yr=Xe(()=>{gt();U_();Cs();sp();SA();IA();vD();CD();RD();FD();DD();MD();kD();HD();XD();JD=function(){var e=a(function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,r){i.__proto__=r}||function(i,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])},e(t,n)},"extendStatics");return function(t,n){e(t,n);function i(){this.constructor=t}a(i,"__"),t.prototype=n===null?Object.create(n):(i.prototype=n.prototype,new i)}}(),sf=Os(Ur,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(sf);zi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:ap,nodeLocationTracking:"none",traceInitPerf:!1,skipValidations:!1}),cf=Object.freeze({recoveryValueFunc:function(){},resyncEnabled:!0});(function(e){e[e.INVALID_RULE_NAME=0]="INVALID_RULE_NAME",e[e.DUPLICATE_RULE_NAME=1]="DUPLICATE_RULE_NAME",e[e.INVALID_RULE_OVERRIDE=2]="INVALID_RULE_OVERRIDE",e[e.DUPLICATE_PRODUCTIONS=3]="DUPLICATE_PRODUCTIONS",e[e.UNRESOLVED_SUBRULE_REF=4]="UNRESOLVED_SUBRULE_REF",e[e.LEFT_RECURSION=5]="LEFT_RECURSION",e[e.NONE_LAST_EMPTY_ALT=6]="NONE_LAST_EMPTY_ALT",e[e.AMBIGUOUS_ALTS=7]="AMBIGUOUS_ALTS",e[e.CONFLICT_TOKENS_RULES_NAMESPACE=8]="CONFLICT_TOKENS_RULES_NAMESPACE",e[e.INVALID_TOKEN_NAME=9]="INVALID_TOKEN_NAME",e[e.NO_NON_EMPTY_LOOKAHEAD=10]="NO_NON_EMPTY_LOOKAHEAD",e[e.AMBIGUOUS_PREFIX_ALTS=11]="AMBIGUOUS_PREFIX_ALTS",e[e.TOO_MANY_ALTS=12]="TOO_MANY_ALTS"})(Gn||(Gn={}));a(YD,"EMPTY_ALT");LA=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),Ae(n,"ignoredIssues"))throw new Error(`The <ignoredIssues> IParserConfig property has been deprecated.
|
|
185
185
|
Please use the <IGNORE_AMBIGUITIES> flag on the relevant DSL method instead.
|
|
186
186
|
See: https://sap.github.io/chevrotain/docs/guide/resolving_grammar_errors.html#IGNORING_AMBIGUITIES
|
|
187
187
|
For further details.`);this.skipValidations=Ae(n,"skipValidations")?n.skipValidations:zi.skipValidations}return a(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(){Sh(t)}),t.TRACE_INIT("Grammar Recording",function(){try{t.enableRecording(),me(t.definedRulesNames,function(o){var s=t[o],l=s.originalGrammarAction,u=void 0;t.TRACE_INIT(o+" Rule",function(){u=t.topLevelRuleRecord(o,l)}),t.gastProductionsCache[o]=u})}finally{t.disableRecording()}});var r=[];if(t.TRACE_INIT("Grammar Resolving",function(){r=Hh({rules:Dn(t.gastProductionsCache)}),t.definitionErrors.push.apply(t.definitionErrors,r)}),t.TRACE_INIT("Grammar Validations",function(){if(it(r)&&t.skipValidations===!1){var o=Kh({rules:Dn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Dn(t.tokensMap),errMsgProvider:Ns,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,o)}}),it(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var o=$_(Dn(t.gastProductionsCache));t.resyncFollows=o}),t.TRACE_INIT("ComputeLookaheadFunctions",function(){t.preComputeLookaheadFunctions(Dn(t.gastProductionsCache))})),!e.DEFER_DEFINITION_ERRORS_HANDLING&&!it(t.definitionErrors))throw n=ce(t.definitionErrors,function(o){return o.message}),new Error(`Parser Definition Errors detected:
|
|
@@ -249,7 +249,7 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
249
249
|
|
|
250
250
|
const $ = this
|
|
251
251
|
|
|
252
|
-
`+
|
|
252
|
+
`+A7(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,15 +260,15 @@ function `+e.name+`(tokenVocabulary, config) {
|
|
|
260
260
|
// inheritance as implemented in javascript in the previous decade... :(
|
|
261
261
|
`+e.name+`.prototype = Object.create(chevrotain.CstParser.prototype)
|
|
262
262
|
`+e.name+".prototype.constructor = "+e.name+`
|
|
263
|
-
`;return t}function
|
|
264
|
-
`)}function
|
|
265
|
-
`;a(t1,"genUmdModule");a(n1,"genWrapperFunction");a(i1,"genClass");a(
|
|
263
|
+
`;return t}function A7(e){var t=ce(e,function(n){return S7(n,1)});return t.join(`
|
|
264
|
+
`)}function S7(e,t){var n=_i(t,'$.RULE("'+e.name+'", function() {')+ti;return n+=ry(e.definition,t+1),n+=_i(t+1,"})")+ti,n}function x7(e,t){var n=e.terminalType.name;return _i(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ti)}function P7(e,t){return _i(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ti)}function I7(e,t){var n=_i(t,"$.OR"+e.idx+"([")+ti,i=ce(e.definition,function(r){return O7(r,t+1)});return n+=i.join(","+ti),n+=ti+_i(t,"])"+ti),n}function O7(e,t){var n=_i(t,"{")+ti;return n+=_i(t+1,"ALT: function() {")+ti,n+=ry(e.definition,t+1),n+=_i(t+1,"}")+ti,n+=_i(t,"}"),n}function C7(e,t){if(e instanceof zt)return P7(e,t);if(e instanceof qt)return vp("OPTION",e,t);if(e instanceof On)return vp("AT_LEAST_ONE",e,t);if(e instanceof Cn)return vp("AT_LEAST_ONE_SEP",e,t);if(e instanceof vn)return vp("MANY_SEP",e,t);if(e instanceof It)return vp("MANY",e,t);if(e instanceof Tn)return I7(e,t);if(e instanceof pt)return x7(e,t);if(e instanceof Kt)return ry(e.definition,t);throw Error("non exhaustive match")}function vp(e,t,n){var i=_i(n,"$."+(e+t.idx)+"(");return t.separator?(i+="{"+ti,i+=_i(n+1,"SEP: this.tokensMap."+t.separator.name)+","+ti,i+="DEF: "+e1(t.definition,n+2)+ti,i+=_i(n,"}")+ti):i+=e1(t.definition,n+1),i+=_i(n,")")+ti,i}function e1(e,t){var n="function() {"+ti;return n+=ry(e,t),n+=_i(t,"}")+ti,n}function ry(e,t){var n="";return me(e,function(i){n+=C7(i,t+1)}),n}function _i(e,t){var n=Array(e*4+1).join(" ");return n+t}var ti,r1=Xe(()=>{gt();Fi();ti=`
|
|
265
|
+
`;a(t1,"genUmdModule");a(n1,"genWrapperFunction");a(i1,"genClass");a(A7,"genAllRules");a(S7,"genRule");a(x7,"genTerminal");a(P7,"genNonTerminal");a(I7,"genAlternation");a(O7,"genSingleAlt");a(C7,"genProd");a(vp,"genDSLRule");a(e1,"genDefFunction");a(ry,"genDefinition");a(_i,"indent")});function o1(e){var t=n1({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(ay(),ig(oy)))}}function a1(e){return t1({name:e.name,rules:e.rules})}var s1=Xe(()=>{r1();a(o1,"generateParserFactory");a(a1,"generateParserModule")});var oy={};ec(oy,{Alternation:()=>Tn,Alternative:()=>Kt,CstParser:()=>QD,EMPTY_ALT:()=>YD,EOF:()=>Ur,EarlyExitException:()=>Qh,EmbeddedActionsParser:()=>zD,GAstVisitor:()=>Br,Lexer:()=>Li,LexerDefinitionErrorType:()=>an,MismatchedTokenException:()=>rf,NoViableAltException:()=>Jh,NonTerminal:()=>zt,NotAllInputParsedException:()=>Yh,Option:()=>qt,Parser:()=>R7,ParserDefinitionErrorType:()=>Gn,Repetition:()=>It,RepetitionMandatory:()=>On,RepetitionMandatoryWithSeparator:()=>Cn,RepetitionWithSeparator:()=>vn,Rule:()=>mr,Terminal:()=>pt,VERSION:()=>zu,assignOccurrenceIndices:()=>cD,clearCache:()=>N7,createSyntaxDiagramsCode:()=>qD,createToken:()=>op,createTokenInstance:()=>Os,defaultGrammarResolverErrorProvider:()=>jh,defaultGrammarValidatorErrorProvider:()=>Ns,defaultLexerErrorProvider:()=>Dh,defaultParserErrorProvider:()=>ap,generateParserFactory:()=>o1,generateParserModule:()=>a1,isRecognitionException:()=>Ra,resolveGrammar:()=>Hh,serializeGrammar:()=>wh,serializeProduction:()=>Zl,tokenLabel:()=>Ko,tokenMatcher:()=>w_,tokenName:()=>D_,validateGrammar:()=>Kh});function N7(){console.warn(`The clearCache function was 'soft' removed from the Chevrotain API.
|
|
266
266
|
It performs no action other than printing this message.
|
|
267
|
-
Please avoid using it as it will be completely removed in the future`)}var
|
|
268
|
-
See: https://sap.github.io/chevrotain/docs/changes/BREAKING_CHANGES.html#_7-0-0`)}return a(e,"Parser"),e}()});var DA=Ve((
|
|
269
|
-
`],lineTerminatorsPattern:/\n|\r\n/g});d1.exports={xmlLexer:z7,tokensDictionary:f1}});var m1=Ve((cce,g1)=>{var{CstParser:q7,tokenMatcher:Z7}=(ay(),ig(oy)),{tokensDictionary:xt}=DA(),MA=class MA extends q7{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:()=>t.LA(1).image==="SYSTEM",ALT:()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})}},{GATE:()=>t.LA(1).image==="PUBLIC",ALT:()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})}}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:()=>t.SUBRULE(t.element)},{ALT:()=>t.SUBRULE(t.chardata)},{ALT:()=>t.SUBRULE(t.reference)},{ALT:()=>t.CONSUME(xt.CData)},{ALT:()=>t.CONSUME(xt.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(xt.Comment)}])})}),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:()=>{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:()=>{t.CONSUME(xt.SLASH_CLOSE)}}])}),t.RULE("reference",()=>{t.OR([{ALT:()=>t.CONSUME(xt.EntityRef)},{ALT:()=>t.CONSUME(xt.CharRef)}])}),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:()=>t.CONSUME(xt.TEXT)},{ALT:()=>t.CONSUME(xt.SEA_WS)}])}),t.RULE("misc",()=>{t.OR([{ALT:()=>t.CONSUME(xt.Comment)},{ALT:()=>t.CONSUME(xt.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(xt.SEA_WS)}])}),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(o=>Z7(n,o));if(r!==void 0)return r;n=this.LA(i),i++}}};a(MA,"Parser");var wA=MA,eJ=new wA;g1.exports={xmlParser:eJ}});var VA=Ve((fce,h1)=>{var{xmlLexer:tJ}=DA(),{xmlParser:sy}=m1();h1.exports={parse:a(function(t){let n=tJ.tokenize(t);return sy.input=n.tokens,{cst:sy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:sy.errors}},"parse"),BaseXmlCstVisitor:sy.getBaseCstVisitorConstructor()}});var bp=Ve((ff,Ep)=>{(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",o="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,d=2,m=4,T=1,b=2,E=1,C=2,R=4,L=8,F=16,U=32,J=64,re=128,Ce=256,st=512,k=30,Ot="...",ht=800,Ke=16,Xt=1,Mi=2,pn=3,Zt=1/0,Fe=9007199254740991,Hn=17976931348623157e292,kn=NaN,en=4294967295,Rn=en-1,ni=en>>>1,Re=[["ary",re],["bind",E],["bindKey",C],["curry",L],["curryRight",F],["flip",st],["partial",U],["partialRight",J],["rearg",Ce]],Ln="[object Arguments]",Kn="[object Array]",Qe="[object AsyncFunction]",O="[object Boolean]",S="[object Date]",Q="[object DOMException]",M="[object Error]",Le="[object Function]",ct="[object GeneratorFunction]",je="[object Map]",Et="[object Number]",sn="[object Null]",tn="[object Object]",Mt="[object Promise]",ii="[object Proxy]",ir="[object RegExp]",cn="[object Set]",pi="[object String]",Vt="[object Symbol]",Zo="[object Undefined]",Vi="[object WeakMap]",Rf="[object WeakSet]",Ws="[object ArrayBuffer]",Ar="[object DataView]",Lf="[object Float32Array]",Ff="[object Float64Array]",_f="[object Int8Array]",Gs="[object Int16Array]",$="[object Int32Array]",W="[object Uint8Array]",Y="[object Uint8ClampedArray]",ie="[object Uint16Array]",Ne="[object Uint32Array]",ln=/\b__p \+= '';/g,An=/\b(__p \+=) '' \+/g,qe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ue=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,be=RegExp(ue.source),Ie=RegExp(xe.source),nt=/<%-([\s\S]+?)%>/g,kt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dd=/^\w*$/,Hy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Df=/[\\^$.*+?()[\]{}|]/g,SM=RegExp(Df.source),Ky=/^\s+/,xM=/\s/,PM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,IM=/\{\n\/\* \[wrapped with (.+)\] \*/,OM=/,? & /,CM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,NM=/[()=,{}\[\]\/\s]/,RM=/\\(\\)?/g,LM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dP=/\w*$/,FM=/^[-+]0x[0-9a-f]+$/i,_M=/^0b[01]+$/i,DM=/^\[object .+?Constructor\]$/,wM=/^0o[0-7]+$/i,MM=/^(?:0|[1-9]\d*)$/,VM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gd=/($^)/,kM=/['\n\r\u2028\u2029\\]/g,md="\\ud800-\\udfff",jM="\\u0300-\\u036f",$M="\\ufe20-\\ufe2f",UM="\\u20d0-\\u20ff",gP=jM+$M+UM,mP="\\u2700-\\u27bf",hP="a-z\\xdf-\\xf6\\xf8-\\xff",BM="\\xac\\xb1\\xd7\\xf7",WM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",GM="\\u2000-\\u206f",HM=" \\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",yP="A-Z\\xc0-\\xd6\\xd8-\\xde",vP="\\ufe0e\\ufe0f",TP=BM+WM+GM+HM,Xy="['\u2019]",KM="["+md+"]",EP="["+TP+"]",hd="["+gP+"]",bP="\\d+",XM="["+mP+"]",AP="["+hP+"]",SP="[^"+md+TP+bP+mP+hP+yP+"]",Jy="\\ud83c[\\udffb-\\udfff]",JM="(?:"+hd+"|"+Jy+")",xP="[^"+md+"]",Yy="(?:\\ud83c[\\udde6-\\uddff]){2}",Qy="[\\ud800-\\udbff][\\udc00-\\udfff]",zc="["+yP+"]",PP="\\u200d",IP="(?:"+AP+"|"+SP+")",YM="(?:"+zc+"|"+SP+")",OP="(?:"+Xy+"(?:d|ll|m|re|s|t|ve))?",CP="(?:"+Xy+"(?:D|LL|M|RE|S|T|VE))?",NP=JM+"?",RP="["+vP+"]?",QM="(?:"+PP+"(?:"+[xP,Yy,Qy].join("|")+")"+RP+NP+")*",zM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",LP=RP+NP+QM,ZM="(?:"+[XM,Yy,Qy].join("|")+")"+LP,eV="(?:"+[xP+hd+"?",hd,Yy,Qy,KM].join("|")+")",tV=RegExp(Xy,"g"),nV=RegExp(hd,"g"),zy=RegExp(Jy+"(?="+Jy+")|"+eV+LP,"g"),iV=RegExp([zc+"?"+AP+"+"+OP+"(?="+[EP,zc,"$"].join("|")+")",YM+"+"+CP+"(?="+[EP,zc+IP,"$"].join("|")+")",zc+"?"+IP+"+"+OP,zc+"+"+CP,qM,zM,bP,ZM].join("|"),"g"),rV=RegExp("["+PP+md+gP+vP+"]"),oV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,aV=["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"],sV=-1,Jt={};Jt[Lf]=Jt[Ff]=Jt[_f]=Jt[Gs]=Jt[$]=Jt[W]=Jt[Y]=Jt[ie]=Jt[Ne]=!0,Jt[Ln]=Jt[Kn]=Jt[Ws]=Jt[O]=Jt[Ar]=Jt[S]=Jt[M]=Jt[Le]=Jt[je]=Jt[Et]=Jt[tn]=Jt[ir]=Jt[cn]=Jt[pi]=Jt[Vi]=!1;var Wt={};Wt[Ln]=Wt[Kn]=Wt[Ws]=Wt[Ar]=Wt[O]=Wt[S]=Wt[Lf]=Wt[Ff]=Wt[_f]=Wt[Gs]=Wt[$]=Wt[je]=Wt[Et]=Wt[tn]=Wt[ir]=Wt[cn]=Wt[pi]=Wt[Vt]=Wt[W]=Wt[Y]=Wt[ie]=Wt[Ne]=!0,Wt[M]=Wt[Le]=Wt[Vi]=!1;var cV={\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"},lV={"&":"&","<":"<",">":">",'"':""","'":"'"},fV={"&":"&","<":"<",">":">",""":'"',"'":"'"},uV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pV=parseFloat,dV=parseInt,FP=typeof global=="object"&&global&&global.Object===Object&&global,gV=typeof self=="object"&&self&&self.Object===Object&&self,Xn=FP||gV||Function("return this")(),qy=typeof ff=="object"&&ff&&!ff.nodeType&&ff,Hs=qy&&typeof Ep=="object"&&Ep&&!Ep.nodeType&&Ep,_P=Hs&&Hs.exports===qy,Zy=_P&&FP.process,Sr=function(){try{var V=Hs&&Hs.require&&Hs.require("util").types;return V||Zy&&Zy.binding&&Zy.binding("util")}catch{}}(),DP=Sr&&Sr.isArrayBuffer,wP=Sr&&Sr.isDate,MP=Sr&&Sr.isMap,VP=Sr&&Sr.isRegExp,kP=Sr&&Sr.isSet,jP=Sr&&Sr.isTypedArray;function or(V,X,H){switch(H.length){case 0:return V.call(X);case 1:return V.call(X,H[0]);case 2:return V.call(X,H[0],H[1]);case 3:return V.call(X,H[0],H[1],H[2])}return V.apply(X,H)}a(or,"apply");function mV(V,X,H,he){for(var Ge=-1,bt=V==null?0:V.length;++Ge<bt;){var jn=V[Ge];X(he,jn,H(jn),V)}return he}a(mV,"arrayAggregator");function xr(V,X){for(var H=-1,he=V==null?0:V.length;++H<he&&X(V[H],H,V)!==!1;);return V}a(xr,"arrayEach");function hV(V,X){for(var H=V==null?0:V.length;H--&&X(V[H],H,V)!==!1;);return V}a(hV,"arrayEachRight");function $P(V,X){for(var H=-1,he=V==null?0:V.length;++H<he;)if(!X(V[H],H,V))return!1;return!0}a($P,"arrayEvery");function ka(V,X){for(var H=-1,he=V==null?0:V.length,Ge=0,bt=[];++H<he;){var jn=V[H];X(jn,H,V)&&(bt[Ge++]=jn)}return bt}a(ka,"arrayFilter");function yd(V,X){var H=V==null?0:V.length;return!!H&&qc(V,X,0)>-1}a(yd,"arrayIncludes");function ev(V,X,H){for(var he=-1,Ge=V==null?0:V.length;++he<Ge;)if(H(X,V[he]))return!0;return!1}a(ev,"arrayIncludesWith");function rn(V,X){for(var H=-1,he=V==null?0:V.length,Ge=Array(he);++H<he;)Ge[H]=X(V[H],H,V);return Ge}a(rn,"arrayMap");function ja(V,X){for(var H=-1,he=X.length,Ge=V.length;++H<he;)V[Ge+H]=X[H];return V}a(ja,"arrayPush");function tv(V,X,H,he){var Ge=-1,bt=V==null?0:V.length;for(he&&bt&&(H=V[++Ge]);++Ge<bt;)H=X(H,V[Ge],Ge,V);return H}a(tv,"arrayReduce");function yV(V,X,H,he){var Ge=V==null?0:V.length;for(he&&Ge&&(H=V[--Ge]);Ge--;)H=X(H,V[Ge],Ge,V);return H}a(yV,"arrayReduceRight");function nv(V,X){for(var H=-1,he=V==null?0:V.length;++H<he;)if(X(V[H],H,V))return!0;return!1}a(nv,"arraySome");var vV=iv("length");function TV(V){return V.split("")}a(TV,"asciiToArray");function EV(V){return V.match(CM)||[]}a(EV,"asciiWords");function UP(V,X,H){var he;return H(V,function(Ge,bt,jn){if(X(Ge,bt,jn))return he=bt,!1}),he}a(UP,"baseFindKey");function vd(V,X,H,he){for(var Ge=V.length,bt=H+(he?1:-1);he?bt--:++bt<Ge;)if(X(V[bt],bt,V))return bt;return-1}a(vd,"baseFindIndex");function qc(V,X,H){return X===X?FV(V,X,H):vd(V,BP,H)}a(qc,"baseIndexOf");function bV(V,X,H,he){for(var Ge=H-1,bt=V.length;++Ge<bt;)if(he(V[Ge],X))return Ge;return-1}a(bV,"baseIndexOfWith");function BP(V){return V!==V}a(BP,"baseIsNaN");function WP(V,X){var H=V==null?0:V.length;return H?ov(V,X)/H:kn}a(WP,"baseMean");function iv(V){return function(X){return X==null?e:X[V]}}a(iv,"baseProperty");function rv(V){return function(X){return V==null?e:V[X]}}a(rv,"basePropertyOf");function GP(V,X,H,he,Ge){return Ge(V,function(bt,jn,jt){H=he?(he=!1,bt):X(H,bt,jn,jt)}),H}a(GP,"baseReduce");function AV(V,X){var H=V.length;for(V.sort(X);H--;)V[H]=V[H].value;return V}a(AV,"baseSortBy");function ov(V,X){for(var H,he=-1,Ge=V.length;++he<Ge;){var bt=X(V[he]);bt!==e&&(H=H===e?bt:H+bt)}return H}a(ov,"baseSum");function av(V,X){for(var H=-1,he=Array(V);++H<V;)he[H]=X(H);return he}a(av,"baseTimes");function SV(V,X){return rn(X,function(H){return[H,V[H]]})}a(SV,"baseToPairs");function HP(V){return V&&V.slice(0,YP(V)+1).replace(Ky,"")}a(HP,"baseTrim");function ar(V){return function(X){return V(X)}}a(ar,"baseUnary");function sv(V,X){return rn(X,function(H){return V[H]})}a(sv,"baseValues");function wf(V,X){return V.has(X)}a(wf,"cacheHas");function KP(V,X){for(var H=-1,he=V.length;++H<he&&qc(X,V[H],0)>-1;);return H}a(KP,"charsStartIndex");function XP(V,X){for(var H=V.length;H--&&qc(X,V[H],0)>-1;);return H}a(XP,"charsEndIndex");function xV(V,X){for(var H=V.length,he=0;H--;)V[H]===X&&++he;return he}a(xV,"countHolders");var PV=rv(cV),IV=rv(lV);function OV(V){return"\\"+uV[V]}a(OV,"escapeStringChar");function CV(V,X){return V==null?e:V[X]}a(CV,"getValue");function Zc(V){return rV.test(V)}a(Zc,"hasUnicode");function NV(V){return oV.test(V)}a(NV,"hasUnicodeWord");function RV(V){for(var X,H=[];!(X=V.next()).done;)H.push(X.value);return H}a(RV,"iteratorToArray");function cv(V){var X=-1,H=Array(V.size);return V.forEach(function(he,Ge){H[++X]=[Ge,he]}),H}a(cv,"mapToArray");function JP(V,X){return function(H){return V(X(H))}}a(JP,"overArg");function $a(V,X){for(var H=-1,he=V.length,Ge=0,bt=[];++H<he;){var jn=V[H];(jn===X||jn===u)&&(V[H]=u,bt[Ge++]=H)}return bt}a($a,"replaceHolders");function Td(V){var X=-1,H=Array(V.size);return V.forEach(function(he){H[++X]=he}),H}a(Td,"setToArray");function LV(V){var X=-1,H=Array(V.size);return V.forEach(function(he){H[++X]=[he,he]}),H}a(LV,"setToPairs");function FV(V,X,H){for(var he=H-1,Ge=V.length;++he<Ge;)if(V[he]===X)return he;return-1}a(FV,"strictIndexOf");function _V(V,X,H){for(var he=H+1;he--;)if(V[he]===X)return he;return he}a(_V,"strictLastIndexOf");function el(V){return Zc(V)?wV(V):vV(V)}a(el,"stringSize");function Xr(V){return Zc(V)?MV(V):TV(V)}a(Xr,"stringToArray");function YP(V){for(var X=V.length;X--&&xM.test(V.charAt(X)););return X}a(YP,"trimmedEndIndex");var DV=rv(fV);function wV(V){for(var X=zy.lastIndex=0;zy.test(V);)++X;return X}a(wV,"unicodeSize");function MV(V){return V.match(zy)||[]}a(MV,"unicodeToArray");function VV(V){return V.match(iV)||[]}a(VV,"unicodeWords");var kV=a(function V(X){X=X==null?Xn:Ua.defaults(Xn.Object(),X,Ua.pick(Xn,aV));var H=X.Array,he=X.Date,Ge=X.Error,bt=X.Function,jn=X.Math,jt=X.Object,lv=X.RegExp,jV=X.String,Pr=X.TypeError,Ed=H.prototype,$V=bt.prototype,tl=jt.prototype,bd=X["__core-js_shared__"],Ad=$V.toString,Ct=tl.hasOwnProperty,UV=0,QP=function(){var c=/[^.]+$/.exec(bd&&bd.keys&&bd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Sd=tl.toString,BV=Ad.call(jt),WV=Xn._,GV=lv("^"+Ad.call(Ct).replace(Df,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xd=_P?X.Buffer:e,Ba=X.Symbol,Pd=X.Uint8Array,zP=xd?xd.allocUnsafe:e,Id=JP(jt.getPrototypeOf,jt),qP=jt.create,ZP=tl.propertyIsEnumerable,Od=Ed.splice,eI=Ba?Ba.isConcatSpreadable:e,Mf=Ba?Ba.iterator:e,Ks=Ba?Ba.toStringTag:e,Cd=function(){try{var c=zs(jt,"defineProperty");return c({},"",{}),c}catch{}}(),HV=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,KV=he&&he.now!==Xn.Date.now&&he.now,XV=X.setTimeout!==Xn.setTimeout&&X.setTimeout,Nd=jn.ceil,Rd=jn.floor,fv=jt.getOwnPropertySymbols,JV=xd?xd.isBuffer:e,tI=X.isFinite,YV=Ed.join,QV=JP(jt.keys,jt),$n=jn.max,di=jn.min,zV=he.now,qV=X.parseInt,nI=jn.random,ZV=Ed.reverse,uv=zs(X,"DataView"),Vf=zs(X,"Map"),pv=zs(X,"Promise"),nl=zs(X,"Set"),kf=zs(X,"WeakMap"),jf=zs(jt,"create"),Ld=kf&&new kf,il={},ek=qs(uv),tk=qs(Vf),nk=qs(pv),ik=qs(nl),rk=qs(kf),Fd=Ba?Ba.prototype:e,$f=Fd?Fd.valueOf:e,iI=Fd?Fd.toString:e;function x(c){if(dn(c)&&!He(c)&&!(c instanceof lt)){if(c instanceof Ir)return c;if(Ct.call(c,"__wrapped__"))return rO(c)}return new Ir(c)}a(x,"lodash");var rl=function(){function c(){}return a(c,"object"),function(f){if(!fn(f))return{};if(qP)return qP(f);c.prototype=f;var g=new c;return c.prototype=e,g}}();function _d(){}a(_d,"baseLodash");function Ir(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}a(Ir,"LodashWrapper"),x.templateSettings={escape:nt,evaluate:kt,interpolate:nn,variable:"",imports:{_:x}},x.prototype=_d.prototype,x.prototype.constructor=x,Ir.prototype=rl(_d.prototype),Ir.prototype.constructor=Ir;function lt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=en,this.__views__=[]}a(lt,"LazyWrapper");function ok(){var c=new lt(this.__wrapped__);return c.__actions__=ki(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=ki(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=ki(this.__views__),c}a(ok,"lazyClone");function ak(){if(this.__filtered__){var c=new lt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}a(ak,"lazyReverse");function sk(){var c=this.__wrapped__.value(),f=this.__dir__,g=He(c),h=f<0,A=g?c.length:0,P=E2(0,A,this.__views__),N=P.start,D=P.end,j=D-N,z=h?D:N-1,q=this.__iteratees__,Z=q.length,de=0,Oe=di(j,this.__takeCount__);if(!g||!h&&A==j&&Oe==j)return OI(c,this.__actions__);var De=[];e:for(;j--&&de<Oe;){z+=f;for(var ze=-1,we=c[z];++ze<Z;){var rt=q[ze],ut=rt.iteratee,lr=rt.type,Oi=ut(we);if(lr==Mi)we=Oi;else if(!Oi){if(lr==Xt)continue e;break e}}De[de++]=we}return De}a(sk,"lazyValue"),lt.prototype=rl(_d.prototype),lt.prototype.constructor=lt;function Xs(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var h=c[f];this.set(h[0],h[1])}}a(Xs,"Hash");function ck(){this.__data__=jf?jf(null):{},this.size=0}a(ck,"hashClear");function lk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}a(lk,"hashDelete");function fk(c){var f=this.__data__;if(jf){var g=f[c];return g===s?e:g}return Ct.call(f,c)?f[c]:e}a(fk,"hashGet");function uk(c){var f=this.__data__;return jf?f[c]!==e:Ct.call(f,c)}a(uk,"hashHas");function pk(c,f){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=jf&&f===e?s:f,this}a(pk,"hashSet"),Xs.prototype.clear=ck,Xs.prototype.delete=lk,Xs.prototype.get=fk,Xs.prototype.has=uk,Xs.prototype.set=pk;function ea(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var h=c[f];this.set(h[0],h[1])}}a(ea,"ListCache");function dk(){this.__data__=[],this.size=0}a(dk,"listCacheClear");function gk(c){var f=this.__data__,g=Dd(f,c);if(g<0)return!1;var h=f.length-1;return g==h?f.pop():Od.call(f,g,1),--this.size,!0}a(gk,"listCacheDelete");function mk(c){var f=this.__data__,g=Dd(f,c);return g<0?e:f[g][1]}a(mk,"listCacheGet");function hk(c){return Dd(this.__data__,c)>-1}a(hk,"listCacheHas");function yk(c,f){var g=this.__data__,h=Dd(g,c);return h<0?(++this.size,g.push([c,f])):g[h][1]=f,this}a(yk,"listCacheSet"),ea.prototype.clear=dk,ea.prototype.delete=gk,ea.prototype.get=mk,ea.prototype.has=hk,ea.prototype.set=yk;function ta(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var h=c[f];this.set(h[0],h[1])}}a(ta,"MapCache");function vk(){this.size=0,this.__data__={hash:new Xs,map:new(Vf||ea),string:new Xs}}a(vk,"mapCacheClear");function Tk(c){var f=Kd(this,c).delete(c);return this.size-=f?1:0,f}a(Tk,"mapCacheDelete");function Ek(c){return Kd(this,c).get(c)}a(Ek,"mapCacheGet");function bk(c){return Kd(this,c).has(c)}a(bk,"mapCacheHas");function Ak(c,f){var g=Kd(this,c),h=g.size;return g.set(c,f),this.size+=g.size==h?0:1,this}a(Ak,"mapCacheSet"),ta.prototype.clear=vk,ta.prototype.delete=Tk,ta.prototype.get=Ek,ta.prototype.has=bk,ta.prototype.set=Ak;function Js(c){var f=-1,g=c==null?0:c.length;for(this.__data__=new ta;++f<g;)this.add(c[f])}a(Js,"SetCache");function Sk(c){return this.__data__.set(c,s),this}a(Sk,"setCacheAdd");function xk(c){return this.__data__.has(c)}a(xk,"setCacheHas"),Js.prototype.add=Js.prototype.push=Sk,Js.prototype.has=xk;function Jr(c){var f=this.__data__=new ea(c);this.size=f.size}a(Jr,"Stack");function Pk(){this.__data__=new ea,this.size=0}a(Pk,"stackClear");function Ik(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}a(Ik,"stackDelete");function Ok(c){return this.__data__.get(c)}a(Ok,"stackGet");function Ck(c){return this.__data__.has(c)}a(Ck,"stackHas");function Nk(c,f){var g=this.__data__;if(g instanceof ea){var h=g.__data__;if(!Vf||h.length<n-1)return h.push([c,f]),this.size=++g.size,this;g=this.__data__=new ta(h)}return g.set(c,f),this.size=g.size,this}a(Nk,"stackSet"),Jr.prototype.clear=Pk,Jr.prototype.delete=Ik,Jr.prototype.get=Ok,Jr.prototype.has=Ck,Jr.prototype.set=Nk;function rI(c,f){var g=He(c),h=!g&&Zs(c),A=!g&&!h&&Xa(c),P=!g&&!h&&!A&&cl(c),N=g||h||A||P,D=N?av(c.length,jV):[],j=D.length;for(var z in c)(f||Ct.call(c,z))&&!(N&&(z=="length"||A&&(z=="offset"||z=="parent")||P&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||oa(z,j)))&&D.push(z);return D}a(rI,"arrayLikeKeys");function oI(c){var f=c.length;return f?c[Sv(0,f-1)]:e}a(oI,"arraySample");function Rk(c,f){return Xd(ki(c),Ys(f,0,c.length))}a(Rk,"arraySampleSize");function Lk(c){return Xd(ki(c))}a(Lk,"arrayShuffle");function dv(c,f,g){(g!==e&&!Yr(c[f],g)||g===e&&!(f in c))&&na(c,f,g)}a(dv,"assignMergeValue");function Uf(c,f,g){var h=c[f];(!(Ct.call(c,f)&&Yr(h,g))||g===e&&!(f in c))&&na(c,f,g)}a(Uf,"assignValue");function Dd(c,f){for(var g=c.length;g--;)if(Yr(c[g][0],f))return g;return-1}a(Dd,"assocIndexOf");function Fk(c,f,g,h){return Wa(c,function(A,P,N){f(h,A,g(A),N)}),h}a(Fk,"baseAggregator");function aI(c,f){return c&&So(f,Jn(f),c)}a(aI,"baseAssign");function _k(c,f){return c&&So(f,$i(f),c)}a(_k,"baseAssignIn");function na(c,f,g){f=="__proto__"&&Cd?Cd(c,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[f]=g}a(na,"baseAssignValue");function gv(c,f){for(var g=-1,h=f.length,A=H(h),P=c==null;++g<h;)A[g]=P?e:Jv(c,f[g]);return A}a(gv,"baseAt");function Ys(c,f,g){return c===c&&(g!==e&&(c=c<=g?c:g),f!==e&&(c=c>=f?c:f)),c}a(Ys,"baseClamp");function Or(c,f,g,h,A,P){var N,D=f&p,j=f&d,z=f&m;if(g&&(N=A?g(c,h,A,P):g(c)),N!==e)return N;if(!fn(c))return c;var q=He(c);if(q){if(N=A2(c),!D)return ki(c,N)}else{var Z=gi(c),de=Z==Le||Z==ct;if(Xa(c))return RI(c,D);if(Z==tn||Z==Ln||de&&!A){if(N=j||de?{}:YI(c),!D)return j?f2(c,_k(N,c)):l2(c,aI(N,c))}else{if(!Wt[Z])return A?c:{};N=S2(c,Z,D)}}P||(P=new Jr);var Oe=P.get(c);if(Oe)return Oe;P.set(c,N),xO(c)?c.forEach(function(we){N.add(Or(we,f,g,we,c,P))}):AO(c)&&c.forEach(function(we,rt){N.set(rt,Or(we,f,g,rt,c,P))});var De=z?j?Dv:_v:j?$i:Jn,ze=q?e:De(c);return xr(ze||c,function(we,rt){ze&&(rt=we,we=c[rt]),Uf(N,rt,Or(we,f,g,rt,c,P))}),N}a(Or,"baseClone");function Dk(c){var f=Jn(c);return function(g){return sI(g,c,f)}}a(Dk,"baseConforms");function sI(c,f,g){var h=g.length;if(c==null)return!h;for(c=jt(c);h--;){var A=g[h],P=f[A],N=c[A];if(N===e&&!(A in c)||!P(N))return!1}return!0}a(sI,"baseConformsTo");function cI(c,f,g){if(typeof c!="function")throw new Pr(r);return Jf(function(){c.apply(e,g)},f)}a(cI,"baseDelay");function Bf(c,f,g,h){var A=-1,P=yd,N=!0,D=c.length,j=[],z=f.length;if(!D)return j;g&&(f=rn(f,ar(g))),h?(P=ev,N=!1):f.length>=n&&(P=wf,N=!1,f=new Js(f));e:for(;++A<D;){var q=c[A],Z=g==null?q:g(q);if(q=h||q!==0?q:0,N&&Z===Z){for(var de=z;de--;)if(f[de]===Z)continue e;j.push(q)}else P(f,Z,h)||j.push(q)}return j}a(Bf,"baseDifference");var Wa=wI(Ao),lI=wI(hv,!0);function wk(c,f){var g=!0;return Wa(c,function(h,A,P){return g=!!f(h,A,P),g}),g}a(wk,"baseEvery");function wd(c,f,g){for(var h=-1,A=c.length;++h<A;){var P=c[h],N=f(P);if(N!=null&&(D===e?N===N&&!cr(N):g(N,D)))var D=N,j=P}return j}a(wd,"baseExtremum");function Mk(c,f,g,h){var A=c.length;for(g=Je(g),g<0&&(g=-g>A?0:A+g),h=h===e||h>A?A:Je(h),h<0&&(h+=A),h=g>h?0:IO(h);g<h;)c[g++]=f;return c}a(Mk,"baseFill");function fI(c,f){var g=[];return Wa(c,function(h,A,P){f(h,A,P)&&g.push(h)}),g}a(fI,"baseFilter");function ri(c,f,g,h,A){var P=-1,N=c.length;for(g||(g=P2),A||(A=[]);++P<N;){var D=c[P];f>0&&g(D)?f>1?ri(D,f-1,g,h,A):ja(A,D):h||(A[A.length]=D)}return A}a(ri,"baseFlatten");var mv=MI(),uI=MI(!0);function Ao(c,f){return c&&mv(c,f,Jn)}a(Ao,"baseForOwn");function hv(c,f){return c&&uI(c,f,Jn)}a(hv,"baseForOwnRight");function Md(c,f){return ka(f,function(g){return aa(c[g])})}a(Md,"baseFunctions");function Qs(c,f){f=Ha(f,c);for(var g=0,h=f.length;c!=null&&g<h;)c=c[xo(f[g++])];return g&&g==h?c:e}a(Qs,"baseGet");function pI(c,f,g){var h=f(c);return He(c)?h:ja(h,g(c))}a(pI,"baseGetAllKeys");function Pi(c){return c==null?c===e?Zo:sn:Ks&&Ks in jt(c)?T2(c):F2(c)}a(Pi,"baseGetTag");function yv(c,f){return c>f}a(yv,"baseGt");function Vk(c,f){return c!=null&&Ct.call(c,f)}a(Vk,"baseHas");function kk(c,f){return c!=null&&f in jt(c)}a(kk,"baseHasIn");function jk(c,f,g){return c>=di(f,g)&&c<$n(f,g)}a(jk,"baseInRange");function vv(c,f,g){for(var h=g?ev:yd,A=c[0].length,P=c.length,N=P,D=H(P),j=1/0,z=[];N--;){var q=c[N];N&&f&&(q=rn(q,ar(f))),j=di(q.length,j),D[N]=!g&&(f||A>=120&&q.length>=120)?new Js(N&&q):e}q=c[0];var Z=-1,de=D[0];e:for(;++Z<A&&z.length<j;){var Oe=q[Z],De=f?f(Oe):Oe;if(Oe=g||Oe!==0?Oe:0,!(de?wf(de,De):h(z,De,g))){for(N=P;--N;){var ze=D[N];if(!(ze?wf(ze,De):h(c[N],De,g)))continue e}de&&de.push(De),z.push(Oe)}}return z}a(vv,"baseIntersection");function $k(c,f,g,h){return Ao(c,function(A,P,N){f(h,g(A),P,N)}),h}a($k,"baseInverter");function Wf(c,f,g){f=Ha(f,c),c=ZI(c,f);var h=c==null?c:c[xo(Nr(f))];return h==null?e:or(h,c,g)}a(Wf,"baseInvoke");function dI(c){return dn(c)&&Pi(c)==Ln}a(dI,"baseIsArguments");function Uk(c){return dn(c)&&Pi(c)==Ws}a(Uk,"baseIsArrayBuffer");function Bk(c){return dn(c)&&Pi(c)==S}a(Bk,"baseIsDate");function Gf(c,f,g,h,A){return c===f?!0:c==null||f==null||!dn(c)&&!dn(f)?c!==c&&f!==f:Wk(c,f,g,h,Gf,A)}a(Gf,"baseIsEqual");function Wk(c,f,g,h,A,P){var N=He(c),D=He(f),j=N?Kn:gi(c),z=D?Kn:gi(f);j=j==Ln?tn:j,z=z==Ln?tn:z;var q=j==tn,Z=z==tn,de=j==z;if(de&&Xa(c)){if(!Xa(f))return!1;N=!0,q=!1}if(de&&!q)return P||(P=new Jr),N||cl(c)?KI(c,f,g,h,A,P):h2(c,f,j,g,h,A,P);if(!(g&T)){var Oe=q&&Ct.call(c,"__wrapped__"),De=Z&&Ct.call(f,"__wrapped__");if(Oe||De){var ze=Oe?c.value():c,we=De?f.value():f;return P||(P=new Jr),A(ze,we,g,h,P)}}return de?(P||(P=new Jr),y2(c,f,g,h,A,P)):!1}a(Wk,"baseIsEqualDeep");function Gk(c){return dn(c)&&gi(c)==je}a(Gk,"baseIsMap");function Tv(c,f,g,h){var A=g.length,P=A,N=!h;if(c==null)return!P;for(c=jt(c);A--;){var D=g[A];if(N&&D[2]?D[1]!==c[D[0]]:!(D[0]in c))return!1}for(;++A<P;){D=g[A];var j=D[0],z=c[j],q=D[1];if(N&&D[2]){if(z===e&&!(j in c))return!1}else{var Z=new Jr;if(h)var de=h(z,q,j,c,f,Z);if(!(de===e?Gf(q,z,T|b,h,Z):de))return!1}}return!0}a(Tv,"baseIsMatch");function gI(c){if(!fn(c)||O2(c))return!1;var f=aa(c)?GV:DM;return f.test(qs(c))}a(gI,"baseIsNative");function Hk(c){return dn(c)&&Pi(c)==ir}a(Hk,"baseIsRegExp");function Kk(c){return dn(c)&&gi(c)==cn}a(Kk,"baseIsSet");function Xk(c){return dn(c)&&Zd(c.length)&&!!Jt[Pi(c)]}a(Xk,"baseIsTypedArray");function mI(c){return typeof c=="function"?c:c==null?Ui:typeof c=="object"?He(c)?vI(c[0],c[1]):yI(c):VO(c)}a(mI,"baseIteratee");function Ev(c){if(!Xf(c))return QV(c);var f=[];for(var g in jt(c))Ct.call(c,g)&&g!="constructor"&&f.push(g);return f}a(Ev,"baseKeys");function Jk(c){if(!fn(c))return L2(c);var f=Xf(c),g=[];for(var h in c)h=="constructor"&&(f||!Ct.call(c,h))||g.push(h);return g}a(Jk,"baseKeysIn");function bv(c,f){return c<f}a(bv,"baseLt");function hI(c,f){var g=-1,h=ji(c)?H(c.length):[];return Wa(c,function(A,P,N){h[++g]=f(A,P,N)}),h}a(hI,"baseMap");function yI(c){var f=Mv(c);return f.length==1&&f[0][2]?zI(f[0][0],f[0][1]):function(g){return g===c||Tv(g,c,f)}}a(yI,"baseMatches");function vI(c,f){return kv(c)&&QI(f)?zI(xo(c),f):function(g){var h=Jv(g,c);return h===e&&h===f?Yv(g,c):Gf(f,h,T|b)}}a(vI,"baseMatchesProperty");function Vd(c,f,g,h,A){c!==f&&mv(f,function(P,N){if(A||(A=new Jr),fn(P))Yk(c,f,N,g,Vd,h,A);else{var D=h?h($v(c,N),P,N+"",c,f,A):e;D===e&&(D=P),dv(c,N,D)}},$i)}a(Vd,"baseMerge");function Yk(c,f,g,h,A,P,N){var D=$v(c,g),j=$v(f,g),z=N.get(j);if(z){dv(c,g,z);return}var q=P?P(D,j,g+"",c,f,N):e,Z=q===e;if(Z){var de=He(j),Oe=!de&&Xa(j),De=!de&&!Oe&&cl(j);q=j,de||Oe||De?He(D)?q=D:Sn(D)?q=ki(D):Oe?(Z=!1,q=RI(j,!0)):De?(Z=!1,q=LI(j,!0)):q=[]:Yf(j)||Zs(j)?(q=D,Zs(D)?q=OO(D):(!fn(D)||aa(D))&&(q=YI(j))):Z=!1}Z&&(N.set(j,q),A(q,j,h,P,N),N.delete(j)),dv(c,g,q)}a(Yk,"baseMergeDeep");function TI(c,f){var g=c.length;if(g)return f+=f<0?g:0,oa(f,g)?c[f]:e}a(TI,"baseNth");function EI(c,f,g){f.length?f=rn(f,function(P){return He(P)?function(N){return Qs(N,P.length===1?P[0]:P)}:P}):f=[Ui];var h=-1;f=rn(f,ar(_e()));var A=hI(c,function(P,N,D){var j=rn(f,function(z){return z(P)});return{criteria:j,index:++h,value:P}});return AV(A,function(P,N){return c2(P,N,g)})}a(EI,"baseOrderBy");function Qk(c,f){return bI(c,f,function(g,h){return Yv(c,h)})}a(Qk,"basePick");function bI(c,f,g){for(var h=-1,A=f.length,P={};++h<A;){var N=f[h],D=Qs(c,N);g(D,N)&&Hf(P,Ha(N,c),D)}return P}a(bI,"basePickBy");function zk(c){return function(f){return Qs(f,c)}}a(zk,"basePropertyDeep");function Av(c,f,g,h){var A=h?bV:qc,P=-1,N=f.length,D=c;for(c===f&&(f=ki(f)),g&&(D=rn(c,ar(g)));++P<N;)for(var j=0,z=f[P],q=g?g(z):z;(j=A(D,q,j,h))>-1;)D!==c&&Od.call(D,j,1),Od.call(c,j,1);return c}a(Av,"basePullAll");function AI(c,f){for(var g=c?f.length:0,h=g-1;g--;){var A=f[g];if(g==h||A!==P){var P=A;oa(A)?Od.call(c,A,1):Iv(c,A)}}return c}a(AI,"basePullAt");function Sv(c,f){return c+Rd(nI()*(f-c+1))}a(Sv,"baseRandom");function qk(c,f,g,h){for(var A=-1,P=$n(Nd((f-c)/(g||1)),0),N=H(P);P--;)N[h?P:++A]=c,c+=g;return N}a(qk,"baseRange");function xv(c,f){var g="";if(!c||f<1||f>Fe)return g;do f%2&&(g+=c),f=Rd(f/2),f&&(c+=c);while(f);return g}a(xv,"baseRepeat");function Ze(c,f){return Uv(qI(c,f,Ui),c+"")}a(Ze,"baseRest");function Zk(c){return oI(ll(c))}a(Zk,"baseSample");function e2(c,f){var g=ll(c);return Xd(g,Ys(f,0,g.length))}a(e2,"baseSampleSize");function Hf(c,f,g,h){if(!fn(c))return c;f=Ha(f,c);for(var A=-1,P=f.length,N=P-1,D=c;D!=null&&++A<P;){var j=xo(f[A]),z=g;if(j==="__proto__"||j==="constructor"||j==="prototype")return c;if(A!=N){var q=D[j];z=h?h(q,j,D):e,z===e&&(z=fn(q)?q:oa(f[A+1])?[]:{})}Uf(D,j,z),D=D[j]}return c}a(Hf,"baseSet");var SI=Ld?function(c,f){return Ld.set(c,f),c}:Ui,t2=Cd?function(c,f){return Cd(c,"toString",{configurable:!0,enumerable:!1,value:zv(f),writable:!0})}:Ui;function n2(c){return Xd(ll(c))}a(n2,"baseShuffle");function Cr(c,f,g){var h=-1,A=c.length;f<0&&(f=-f>A?0:A+f),g=g>A?A:g,g<0&&(g+=A),A=f>g?0:g-f>>>0,f>>>=0;for(var P=H(A);++h<A;)P[h]=c[h+f];return P}a(Cr,"baseSlice");function i2(c,f){var g;return Wa(c,function(h,A,P){return g=f(h,A,P),!g}),!!g}a(i2,"baseSome");function kd(c,f,g){var h=0,A=c==null?h:c.length;if(typeof f=="number"&&f===f&&A<=ni){for(;h<A;){var P=h+A>>>1,N=c[P];N!==null&&!cr(N)&&(g?N<=f:N<f)?h=P+1:A=P}return A}return Pv(c,f,Ui,g)}a(kd,"baseSortedIndex");function Pv(c,f,g,h){var A=0,P=c==null?0:c.length;if(P===0)return 0;f=g(f);for(var N=f!==f,D=f===null,j=cr(f),z=f===e;A<P;){var q=Rd((A+P)/2),Z=g(c[q]),de=Z!==e,Oe=Z===null,De=Z===Z,ze=cr(Z);if(N)var we=h||De;else z?we=De&&(h||de):D?we=De&&de&&(h||!Oe):j?we=De&&de&&!Oe&&(h||!ze):Oe||ze?we=!1:we=h?Z<=f:Z<f;we?A=q+1:P=q}return di(P,Rn)}a(Pv,"baseSortedIndexBy");function xI(c,f){for(var g=-1,h=c.length,A=0,P=[];++g<h;){var N=c[g],D=f?f(N):N;if(!g||!Yr(D,j)){var j=D;P[A++]=N===0?0:N}}return P}a(xI,"baseSortedUniq");function PI(c){return typeof c=="number"?c:cr(c)?kn:+c}a(PI,"baseToNumber");function sr(c){if(typeof c=="string")return c;if(He(c))return rn(c,sr)+"";if(cr(c))return iI?iI.call(c):"";var f=c+"";return f=="0"&&1/c==-Zt?"-0":f}a(sr,"baseToString");function Ga(c,f,g){var h=-1,A=yd,P=c.length,N=!0,D=[],j=D;if(g)N=!1,A=ev;else if(P>=n){var z=f?null:g2(c);if(z)return Td(z);N=!1,A=wf,j=new Js}else j=f?[]:D;e:for(;++h<P;){var q=c[h],Z=f?f(q):q;if(q=g||q!==0?q:0,N&&Z===Z){for(var de=j.length;de--;)if(j[de]===Z)continue e;f&&j.push(Z),D.push(q)}else A(j,Z,g)||(j!==D&&j.push(Z),D.push(q))}return D}a(Ga,"baseUniq");function Iv(c,f){return f=Ha(f,c),c=ZI(c,f),c==null||delete c[xo(Nr(f))]}a(Iv,"baseUnset");function II(c,f,g,h){return Hf(c,f,g(Qs(c,f)),h)}a(II,"baseUpdate");function jd(c,f,g,h){for(var A=c.length,P=h?A:-1;(h?P--:++P<A)&&f(c[P],P,c););return g?Cr(c,h?0:P,h?P+1:A):Cr(c,h?P+1:0,h?A:P)}a(jd,"baseWhile");function OI(c,f){var g=c;return g instanceof lt&&(g=g.value()),tv(f,function(h,A){return A.func.apply(A.thisArg,ja([h],A.args))},g)}a(OI,"baseWrapperValue");function Ov(c,f,g){var h=c.length;if(h<2)return h?Ga(c[0]):[];for(var A=-1,P=H(h);++A<h;)for(var N=c[A],D=-1;++D<h;)D!=A&&(P[A]=Bf(P[A]||N,c[D],f,g));return Ga(ri(P,1),f,g)}a(Ov,"baseXor");function CI(c,f,g){for(var h=-1,A=c.length,P=f.length,N={};++h<A;){var D=h<P?f[h]:e;g(N,c[h],D)}return N}a(CI,"baseZipObject");function Cv(c){return Sn(c)?c:[]}a(Cv,"castArrayLikeObject");function Nv(c){return typeof c=="function"?c:Ui}a(Nv,"castFunction");function Ha(c,f){return He(c)?c:kv(c,f)?[c]:iO(Pt(c))}a(Ha,"castPath");var r2=Ze;function Ka(c,f,g){var h=c.length;return g=g===e?h:g,!f&&g>=h?c:Cr(c,f,g)}a(Ka,"castSlice");var NI=HV||function(c){return Xn.clearTimeout(c)};function RI(c,f){if(f)return c.slice();var g=c.length,h=zP?zP(g):new c.constructor(g);return c.copy(h),h}a(RI,"cloneBuffer");function Rv(c){var f=new c.constructor(c.byteLength);return new Pd(f).set(new Pd(c)),f}a(Rv,"cloneArrayBuffer");function o2(c,f){var g=f?Rv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}a(o2,"cloneDataView");function a2(c){var f=new c.constructor(c.source,dP.exec(c));return f.lastIndex=c.lastIndex,f}a(a2,"cloneRegExp");function s2(c){return $f?jt($f.call(c)):{}}a(s2,"cloneSymbol");function LI(c,f){var g=f?Rv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}a(LI,"cloneTypedArray");function FI(c,f){if(c!==f){var g=c!==e,h=c===null,A=c===c,P=cr(c),N=f!==e,D=f===null,j=f===f,z=cr(f);if(!D&&!z&&!P&&c>f||P&&N&&j&&!D&&!z||h&&N&&j||!g&&j||!A)return 1;if(!h&&!P&&!z&&c<f||z&&g&&A&&!h&&!P||D&&g&&A||!N&&A||!j)return-1}return 0}a(FI,"compareAscending");function c2(c,f,g){for(var h=-1,A=c.criteria,P=f.criteria,N=A.length,D=g.length;++h<N;){var j=FI(A[h],P[h]);if(j){if(h>=D)return j;var z=g[h];return j*(z=="desc"?-1:1)}}return c.index-f.index}a(c2,"compareMultiple");function _I(c,f,g,h){for(var A=-1,P=c.length,N=g.length,D=-1,j=f.length,z=$n(P-N,0),q=H(j+z),Z=!h;++D<j;)q[D]=f[D];for(;++A<N;)(Z||A<P)&&(q[g[A]]=c[A]);for(;z--;)q[D++]=c[A++];return q}a(_I,"composeArgs");function DI(c,f,g,h){for(var A=-1,P=c.length,N=-1,D=g.length,j=-1,z=f.length,q=$n(P-D,0),Z=H(q+z),de=!h;++A<q;)Z[A]=c[A];for(var Oe=A;++j<z;)Z[Oe+j]=f[j];for(;++N<D;)(de||A<P)&&(Z[Oe+g[N]]=c[A++]);return Z}a(DI,"composeArgsRight");function ki(c,f){var g=-1,h=c.length;for(f||(f=H(h));++g<h;)f[g]=c[g];return f}a(ki,"copyArray");function So(c,f,g,h){var A=!g;g||(g={});for(var P=-1,N=f.length;++P<N;){var D=f[P],j=h?h(g[D],c[D],D,g,c):e;j===e&&(j=c[D]),A?na(g,D,j):Uf(g,D,j)}return g}a(So,"copyObject");function l2(c,f){return So(c,Vv(c),f)}a(l2,"copySymbols");function f2(c,f){return So(c,XI(c),f)}a(f2,"copySymbolsIn");function $d(c,f){return function(g,h){var A=He(g)?mV:Fk,P=f?f():{};return A(g,c,_e(h,2),P)}}a($d,"createAggregator");function ol(c){return Ze(function(f,g){var h=-1,A=g.length,P=A>1?g[A-1]:e,N=A>2?g[2]:e;for(P=c.length>3&&typeof P=="function"?(A--,P):e,N&&Ii(g[0],g[1],N)&&(P=A<3?e:P,A=1),f=jt(f);++h<A;){var D=g[h];D&&c(f,D,h,P)}return f})}a(ol,"createAssigner");function wI(c,f){return function(g,h){if(g==null)return g;if(!ji(g))return c(g,h);for(var A=g.length,P=f?A:-1,N=jt(g);(f?P--:++P<A)&&h(N[P],P,N)!==!1;);return g}}a(wI,"createBaseEach");function MI(c){return function(f,g,h){for(var A=-1,P=jt(f),N=h(f),D=N.length;D--;){var j=N[c?D:++A];if(g(P[j],j,P)===!1)break}return f}}a(MI,"createBaseFor");function u2(c,f,g){var h=f&E,A=Kf(c);function P(){var N=this&&this!==Xn&&this instanceof P?A:c;return N.apply(h?g:this,arguments)}return a(P,"wrapper"),P}a(u2,"createBind");function VI(c){return function(f){f=Pt(f);var g=Zc(f)?Xr(f):e,h=g?g[0]:f.charAt(0),A=g?Ka(g,1).join(""):f.slice(1);return h[c]()+A}}a(VI,"createCaseFirst");function al(c){return function(f){return tv(wO(DO(f).replace(tV,"")),c,"")}}a(al,"createCompounder");function Kf(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 g=rl(c.prototype),h=c.apply(g,f);return fn(h)?h:g}}a(Kf,"createCtor");function p2(c,f,g){var h=Kf(c);function A(){for(var P=arguments.length,N=H(P),D=P,j=sl(A);D--;)N[D]=arguments[D];var z=P<3&&N[0]!==j&&N[P-1]!==j?[]:$a(N,j);if(P-=z.length,P<g)return BI(c,f,Ud,A.placeholder,e,N,z,e,e,g-P);var q=this&&this!==Xn&&this instanceof A?h:c;return or(q,this,N)}return a(A,"wrapper"),A}a(p2,"createCurry");function kI(c){return function(f,g,h){var A=jt(f);if(!ji(f)){var P=_e(g,3);f=Jn(f),g=a(function(D){return P(A[D],D,A)},"predicate")}var N=c(f,g,h);return N>-1?A[P?f[N]:N]:e}}a(kI,"createFind");function jI(c){return ra(function(f){var g=f.length,h=g,A=Ir.prototype.thru;for(c&&f.reverse();h--;){var P=f[h];if(typeof P!="function")throw new Pr(r);if(A&&!N&&Hd(P)=="wrapper")var N=new Ir([],!0)}for(h=N?h:g;++h<g;){P=f[h];var D=Hd(P),j=D=="wrapper"?wv(P):e;j&&jv(j[0])&&j[1]==(re|L|U|Ce)&&!j[4].length&&j[9]==1?N=N[Hd(j[0])].apply(N,j[3]):N=P.length==1&&jv(P)?N[D]():N.thru(P)}return function(){var z=arguments,q=z[0];if(N&&z.length==1&&He(q))return N.plant(q).value();for(var Z=0,de=g?f[Z].apply(this,z):q;++Z<g;)de=f[Z].call(this,de);return de}})}a(jI,"createFlow");function Ud(c,f,g,h,A,P,N,D,j,z){var q=f&re,Z=f&E,de=f&C,Oe=f&(L|F),De=f&st,ze=de?e:Kf(c);function we(){for(var rt=arguments.length,ut=H(rt),lr=rt;lr--;)ut[lr]=arguments[lr];if(Oe)var Oi=sl(we),fr=xV(ut,Oi);if(h&&(ut=_I(ut,h,A,Oe)),P&&(ut=DI(ut,P,N,Oe)),rt-=fr,Oe&&rt<z){var xn=$a(ut,Oi);return BI(c,f,Ud,we.placeholder,g,ut,xn,D,j,z-rt)}var Qr=Z?g:this,ca=de?Qr[c]:c;return rt=ut.length,D?ut=_2(ut,D):De&&rt>1&&ut.reverse(),q&&j<rt&&(ut.length=j),this&&this!==Xn&&this instanceof we&&(ca=ze||Kf(ca)),ca.apply(Qr,ut)}return a(we,"wrapper"),we}a(Ud,"createHybrid");function $I(c,f){return function(g,h){return $k(g,c,f(h),{})}}a($I,"createInverter");function Bd(c,f){return function(g,h){var A;if(g===e&&h===e)return f;if(g!==e&&(A=g),h!==e){if(A===e)return h;typeof g=="string"||typeof h=="string"?(g=sr(g),h=sr(h)):(g=PI(g),h=PI(h)),A=c(g,h)}return A}}a(Bd,"createMathOperation");function Lv(c){return ra(function(f){return f=rn(f,ar(_e())),Ze(function(g){var h=this;return c(f,function(A){return or(A,h,g)})})})}a(Lv,"createOver");function Wd(c,f){f=f===e?" ":sr(f);var g=f.length;if(g<2)return g?xv(f,c):f;var h=xv(f,Nd(c/el(f)));return Zc(f)?Ka(Xr(h),0,c).join(""):h.slice(0,c)}a(Wd,"createPadding");function d2(c,f,g,h){var A=f&E,P=Kf(c);function N(){for(var D=-1,j=arguments.length,z=-1,q=h.length,Z=H(q+j),de=this&&this!==Xn&&this instanceof N?P:c;++z<q;)Z[z]=h[z];for(;j--;)Z[z++]=arguments[++D];return or(de,A?g:this,Z)}return a(N,"wrapper"),N}a(d2,"createPartial");function UI(c){return function(f,g,h){return h&&typeof h!="number"&&Ii(f,g,h)&&(g=h=e),f=sa(f),g===e?(g=f,f=0):g=sa(g),h=h===e?f<g?1:-1:sa(h),qk(f,g,h,c)}}a(UI,"createRange");function Gd(c){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=Rr(f),g=Rr(g)),c(f,g)}}a(Gd,"createRelationalOperation");function BI(c,f,g,h,A,P,N,D,j,z){var q=f&L,Z=q?N:e,de=q?e:N,Oe=q?P:e,De=q?e:P;f|=q?U:J,f&=~(q?J:U),f&R||(f&=~(E|C));var ze=[c,f,A,Oe,Z,De,de,D,j,z],we=g.apply(e,ze);return jv(c)&&eO(we,ze),we.placeholder=h,tO(we,c,f)}a(BI,"createRecurry");function Fv(c){var f=jn[c];return function(g,h){if(g=Rr(g),h=h==null?0:di(Je(h),292),h&&tI(g)){var A=(Pt(g)+"e").split("e"),P=f(A[0]+"e"+(+A[1]+h));return A=(Pt(P)+"e").split("e"),+(A[0]+"e"+(+A[1]-h))}return f(g)}}a(Fv,"createRound");var g2=nl&&1/Td(new nl([,-0]))[1]==Zt?function(c){return new nl(c)}:eT;function WI(c){return function(f){var g=gi(f);return g==je?cv(f):g==cn?LV(f):SV(f,c(f))}}a(WI,"createToPairs");function ia(c,f,g,h,A,P,N,D){var j=f&C;if(!j&&typeof c!="function")throw new Pr(r);var z=h?h.length:0;if(z||(f&=~(U|J),h=A=e),N=N===e?N:$n(Je(N),0),D=D===e?D:Je(D),z-=A?A.length:0,f&J){var q=h,Z=A;h=A=e}var de=j?e:wv(c),Oe=[c,f,g,h,A,q,Z,P,N,D];if(de&&R2(Oe,de),c=Oe[0],f=Oe[1],g=Oe[2],h=Oe[3],A=Oe[4],D=Oe[9]=Oe[9]===e?j?0:c.length:$n(Oe[9]-z,0),!D&&f&(L|F)&&(f&=~(L|F)),!f||f==E)var De=u2(c,f,g);else f==L||f==F?De=p2(c,f,D):(f==U||f==(E|U))&&!A.length?De=d2(c,f,g,h):De=Ud.apply(e,Oe);var ze=de?SI:eO;return tO(ze(De,Oe),c,f)}a(ia,"createWrap");function GI(c,f,g,h){return c===e||Yr(c,tl[g])&&!Ct.call(h,g)?f:c}a(GI,"customDefaultsAssignIn");function HI(c,f,g,h,A,P){return fn(c)&&fn(f)&&(P.set(f,c),Vd(c,f,e,HI,P),P.delete(f)),c}a(HI,"customDefaultsMerge");function m2(c){return Yf(c)?e:c}a(m2,"customOmitClone");function KI(c,f,g,h,A,P){var N=g&T,D=c.length,j=f.length;if(D!=j&&!(N&&j>D))return!1;var z=P.get(c),q=P.get(f);if(z&&q)return z==f&&q==c;var Z=-1,de=!0,Oe=g&b?new Js:e;for(P.set(c,f),P.set(f,c);++Z<D;){var De=c[Z],ze=f[Z];if(h)var we=N?h(ze,De,Z,f,c,P):h(De,ze,Z,c,f,P);if(we!==e){if(we)continue;de=!1;break}if(Oe){if(!nv(f,function(rt,ut){if(!wf(Oe,ut)&&(De===rt||A(De,rt,g,h,P)))return Oe.push(ut)})){de=!1;break}}else if(!(De===ze||A(De,ze,g,h,P))){de=!1;break}}return P.delete(c),P.delete(f),de}a(KI,"equalArrays");function h2(c,f,g,h,A,P,N){switch(g){case Ar:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ws:return!(c.byteLength!=f.byteLength||!P(new Pd(c),new Pd(f)));case O:case S:case Et:return Yr(+c,+f);case M:return c.name==f.name&&c.message==f.message;case ir:case pi:return c==f+"";case je:var D=cv;case cn:var j=h&T;if(D||(D=Td),c.size!=f.size&&!j)return!1;var z=N.get(c);if(z)return z==f;h|=b,N.set(c,f);var q=KI(D(c),D(f),h,A,P,N);return N.delete(c),q;case Vt:if($f)return $f.call(c)==$f.call(f)}return!1}a(h2,"equalByTag");function y2(c,f,g,h,A,P){var N=g&T,D=_v(c),j=D.length,z=_v(f),q=z.length;if(j!=q&&!N)return!1;for(var Z=j;Z--;){var de=D[Z];if(!(N?de in f:Ct.call(f,de)))return!1}var Oe=P.get(c),De=P.get(f);if(Oe&&De)return Oe==f&&De==c;var ze=!0;P.set(c,f),P.set(f,c);for(var we=N;++Z<j;){de=D[Z];var rt=c[de],ut=f[de];if(h)var lr=N?h(ut,rt,de,f,c,P):h(rt,ut,de,c,f,P);if(!(lr===e?rt===ut||A(rt,ut,g,h,P):lr)){ze=!1;break}we||(we=de=="constructor")}if(ze&&!we){var Oi=c.constructor,fr=f.constructor;Oi!=fr&&"constructor"in c&&"constructor"in f&&!(typeof Oi=="function"&&Oi instanceof Oi&&typeof fr=="function"&&fr instanceof fr)&&(ze=!1)}return P.delete(c),P.delete(f),ze}a(y2,"equalObjects");function ra(c){return Uv(qI(c,e,sO),c+"")}a(ra,"flatRest");function _v(c){return pI(c,Jn,Vv)}a(_v,"getAllKeys");function Dv(c){return pI(c,$i,XI)}a(Dv,"getAllKeysIn");var wv=Ld?function(c){return Ld.get(c)}:eT;function Hd(c){for(var f=c.name+"",g=il[f],h=Ct.call(il,f)?g.length:0;h--;){var A=g[h],P=A.func;if(P==null||P==c)return A.name}return f}a(Hd,"getFuncName");function sl(c){var f=Ct.call(x,"placeholder")?x:c;return f.placeholder}a(sl,"getHolder");function _e(){var c=x.iteratee||qv;return c=c===qv?mI:c,arguments.length?c(arguments[0],arguments[1]):c}a(_e,"getIteratee");function Kd(c,f){var g=c.__data__;return I2(f)?g[typeof f=="string"?"string":"hash"]:g.map}a(Kd,"getMapData");function Mv(c){for(var f=Jn(c),g=f.length;g--;){var h=f[g],A=c[h];f[g]=[h,A,QI(A)]}return f}a(Mv,"getMatchData");function zs(c,f){var g=CV(c,f);return gI(g)?g:e}a(zs,"getNative");function T2(c){var f=Ct.call(c,Ks),g=c[Ks];try{c[Ks]=e;var h=!0}catch{}var A=Sd.call(c);return h&&(f?c[Ks]=g:delete c[Ks]),A}a(T2,"getRawTag");var Vv=fv?function(c){return c==null?[]:(c=jt(c),ka(fv(c),function(f){return ZP.call(c,f)}))}:tT,XI=fv?function(c){for(var f=[];c;)ja(f,Vv(c)),c=Id(c);return f}:tT,gi=Pi;(uv&&gi(new uv(new ArrayBuffer(1)))!=Ar||Vf&&gi(new Vf)!=je||pv&&gi(pv.resolve())!=Mt||nl&&gi(new nl)!=cn||kf&&gi(new kf)!=Vi)&&(gi=a(function(c){var f=Pi(c),g=f==tn?c.constructor:e,h=g?qs(g):"";if(h)switch(h){case ek:return Ar;case tk:return je;case nk:return Mt;case ik:return cn;case rk:return Vi}return f},"getTag"));function E2(c,f,g){for(var h=-1,A=g.length;++h<A;){var P=g[h],N=P.size;switch(P.type){case"drop":c+=N;break;case"dropRight":f-=N;break;case"take":f=di(f,c+N);break;case"takeRight":c=$n(c,f-N);break}}return{start:c,end:f}}a(E2,"getView");function b2(c){var f=c.match(IM);return f?f[1].split(OM):[]}a(b2,"getWrapDetails");function JI(c,f,g){f=Ha(f,c);for(var h=-1,A=f.length,P=!1;++h<A;){var N=xo(f[h]);if(!(P=c!=null&&g(c,N)))break;c=c[N]}return P||++h!=A?P:(A=c==null?0:c.length,!!A&&Zd(A)&&oa(N,A)&&(He(c)||Zs(c)))}a(JI,"hasPath");function A2(c){var f=c.length,g=new c.constructor(f);return f&&typeof c[0]=="string"&&Ct.call(c,"index")&&(g.index=c.index,g.input=c.input),g}a(A2,"initCloneArray");function YI(c){return typeof c.constructor=="function"&&!Xf(c)?rl(Id(c)):{}}a(YI,"initCloneObject");function S2(c,f,g){var h=c.constructor;switch(f){case Ws:return Rv(c);case O:case S:return new h(+c);case Ar:return o2(c,g);case Lf:case Ff:case _f:case Gs:case $:case W:case Y:case ie:case Ne:return LI(c,g);case je:return new h;case Et:case pi:return new h(c);case ir:return a2(c);case cn:return new h;case Vt:return s2(c)}}a(S2,"initCloneByTag");function x2(c,f){var g=f.length;if(!g)return c;var h=g-1;return f[h]=(g>1?"& ":"")+f[h],f=f.join(g>2?", ":" "),c.replace(PM,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var R7,ay=Xe(()=>{tA();yr();ip();Cs();sp();of();pA();Fi();Fi();ef();SA();ZD();s1();a(N7,"clearCache");R7=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 a(e,"Parser"),e}()});var DA=Ve((lce,d1)=>{var{createToken:L7,Lexer:FA}=(ay(),ig(oy)),l1={},lf=l1;function _A(e,t){l1[e]=typeof t=="string"?t:t.source}a(_A,"FRAGMENT");function Tp(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)}a(Tp,"makePattern");var F7=[],f1={};function En(e){let t=L7(e);return F7.push(t),f1[e.name]=t,t}a(En,"createToken");_A("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");_A("NameChar",Tp`${lf.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);_A("Name",Tp`${lf.NameStartChar}(${lf.NameChar})*`);var c1=En({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),_7=En({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),D7=En({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),w7=En({name:"DTD",pattern:/<!.*?>/,group:FA.SKIPPED}),M7=En({name:"EntityRef",pattern:Tp`&${lf.Name};`}),V7=En({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),k7=En({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),j7=En({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),u1=En({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),$7=En({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[u1]}),U7=En({name:"PROCESSING_INSTRUCTION",pattern:Tp`<\\?${lf.Name}.*\\?>`}),p1=En({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),B7=En({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[p1]}),W7=En({name:"TEXT",pattern:/[^<&]+/}),G7=En({name:"CLOSE",pattern:/>/,pop_mode:!0}),H7=En({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),K7=En({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),X7=En({name:"SLASH",pattern:/\//}),J7=En({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),Y7=En({name:"EQUALS",pattern:/=/}),Q7=En({name:"Name",pattern:Tp`${lf.Name}`}),z7=En({name:"S",pattern:/[ \t\r\n]/,group:FA.SKIPPED}),q7={defaultMode:"OUTSIDE",modes:{OUTSIDE:[c1,_7,D7,w7,M7,V7,k7,j7,u1,U7,p1,W7],INSIDE:[c1,$7,B7,G7,H7,K7,X7,Y7,J7,Q7,z7]}},Z7=new FA(q7,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});d1.exports={xmlLexer:Z7,tokensDictionary:f1}});var m1=Ve((uce,g1)=>{var{CstParser:eJ,tokenMatcher:tJ}=(ay(),ig(oy)),{tokensDictionary:xt}=DA(),MA=class MA extends eJ{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:()=>t.LA(1).image==="SYSTEM",ALT:()=>{t.CONSUME2(xt.Name,{LABEL:"System"}),t.CONSUME(xt.STRING,{LABEL:"SystemLiteral"})}},{GATE:()=>t.LA(1).image==="PUBLIC",ALT:()=>{t.CONSUME3(xt.Name,{LABEL:"Public"}),t.CONSUME2(xt.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(xt.STRING,{LABEL:"SystemLiteral"})}}])}),t.RULE("content",()=>{t.MANY(()=>{t.OR([{ALT:()=>t.SUBRULE(t.element)},{ALT:()=>t.SUBRULE(t.chardata)},{ALT:()=>t.SUBRULE(t.reference)},{ALT:()=>t.CONSUME(xt.CData)},{ALT:()=>t.CONSUME(xt.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(xt.Comment)}])})}),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:()=>{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:()=>{t.CONSUME(xt.SLASH_CLOSE)}}])}),t.RULE("reference",()=>{t.OR([{ALT:()=>t.CONSUME(xt.EntityRef)},{ALT:()=>t.CONSUME(xt.CharRef)}])}),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:()=>t.CONSUME(xt.TEXT)},{ALT:()=>t.CONSUME(xt.SEA_WS)}])}),t.RULE("misc",()=>{t.OR([{ALT:()=>t.CONSUME(xt.Comment)},{ALT:()=>t.CONSUME(xt.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(xt.SEA_WS)}])}),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(o=>tJ(n,o));if(r!==void 0)return r;n=this.LA(i),i++}}};a(MA,"Parser");var wA=MA,nJ=new wA;g1.exports={xmlParser:nJ}});var VA=Ve((dce,h1)=>{var{xmlLexer:iJ}=DA(),{xmlParser:sy}=m1();h1.exports={parse:a(function(t){let n=iJ.tokenize(t);return sy.input=n.tokens,{cst:sy.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:sy.errors}},"parse"),BaseXmlCstVisitor:sy.getBaseCstVisitorConstructor()}});var bp=Ve((ff,Ep)=>{(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",o="Invalid `variable` option passed into `_.template`",s="__lodash_hash_undefined__",l=500,u="__lodash_placeholder__",p=1,d=2,m=4,T=1,b=2,E=1,C=2,R=4,L=8,F=16,U=32,J=64,re=128,Ce=256,st=512,k=30,Ot="...",ht=800,Ke=16,Xt=1,Mi=2,pn=3,Zt=1/0,Fe=9007199254740991,Hn=17976931348623157e292,kn=NaN,en=4294967295,Rn=en-1,ni=en>>>1,Re=[["ary",re],["bind",E],["bindKey",C],["curry",L],["curryRight",F],["flip",st],["partial",U],["partialRight",J],["rearg",Ce]],Ln="[object Arguments]",Kn="[object Array]",Qe="[object AsyncFunction]",O="[object Boolean]",S="[object Date]",Q="[object DOMException]",M="[object Error]",Le="[object Function]",ct="[object GeneratorFunction]",je="[object Map]",Et="[object Number]",sn="[object Null]",tn="[object Object]",Mt="[object Promise]",ii="[object Proxy]",ir="[object RegExp]",cn="[object Set]",pi="[object String]",Vt="[object Symbol]",Zo="[object Undefined]",Vi="[object WeakMap]",Rf="[object WeakSet]",Ws="[object ArrayBuffer]",Ar="[object DataView]",Lf="[object Float32Array]",Ff="[object Float64Array]",_f="[object Int8Array]",Gs="[object Int16Array]",$="[object Int32Array]",W="[object Uint8Array]",Y="[object Uint8ClampedArray]",ie="[object Uint16Array]",Ne="[object Uint32Array]",ln=/\b__p \+= '';/g,An=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ue=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,be=RegExp(ue.source),Ie=RegExp(xe.source),nt=/<%-([\s\S]+?)%>/g,kt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,rr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,dd=/^\w*$/,Hy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Df=/[\\^$.*+?()[\]{}|]/g,SM=RegExp(Df.source),Ky=/^\s+/,xM=/\s/,PM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,IM=/\{\n\/\* \[wrapped with (.+)\] \*/,OM=/,? & /,CM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,NM=/[()=,{}\[\]\/\s]/,RM=/\\(\\)?/g,LM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,dP=/\w*$/,FM=/^[-+]0x[0-9a-f]+$/i,_M=/^0b[01]+$/i,DM=/^\[object .+?Constructor\]$/,wM=/^0o[0-7]+$/i,MM=/^(?:0|[1-9]\d*)$/,VM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,gd=/($^)/,kM=/['\n\r\u2028\u2029\\]/g,md="\\ud800-\\udfff",jM="\\u0300-\\u036f",$M="\\ufe20-\\ufe2f",UM="\\u20d0-\\u20ff",gP=jM+$M+UM,mP="\\u2700-\\u27bf",hP="a-z\\xdf-\\xf6\\xf8-\\xff",BM="\\xac\\xb1\\xd7\\xf7",WM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",GM="\\u2000-\\u206f",HM=" \\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",yP="A-Z\\xc0-\\xd6\\xd8-\\xde",vP="\\ufe0e\\ufe0f",TP=BM+WM+GM+HM,Xy="['\u2019]",KM="["+md+"]",EP="["+TP+"]",hd="["+gP+"]",bP="\\d+",XM="["+mP+"]",AP="["+hP+"]",SP="[^"+md+TP+bP+mP+hP+yP+"]",Jy="\\ud83c[\\udffb-\\udfff]",JM="(?:"+hd+"|"+Jy+")",xP="[^"+md+"]",Yy="(?:\\ud83c[\\udde6-\\uddff]){2}",Qy="[\\ud800-\\udbff][\\udc00-\\udfff]",qc="["+yP+"]",PP="\\u200d",IP="(?:"+AP+"|"+SP+")",YM="(?:"+qc+"|"+SP+")",OP="(?:"+Xy+"(?:d|ll|m|re|s|t|ve))?",CP="(?:"+Xy+"(?:D|LL|M|RE|S|T|VE))?",NP=JM+"?",RP="["+vP+"]?",QM="(?:"+PP+"(?:"+[xP,Yy,Qy].join("|")+")"+RP+NP+")*",zM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",LP=RP+NP+QM,ZM="(?:"+[XM,Yy,Qy].join("|")+")"+LP,eV="(?:"+[xP+hd+"?",hd,Yy,Qy,KM].join("|")+")",tV=RegExp(Xy,"g"),nV=RegExp(hd,"g"),zy=RegExp(Jy+"(?="+Jy+")|"+eV+LP,"g"),iV=RegExp([qc+"?"+AP+"+"+OP+"(?="+[EP,qc,"$"].join("|")+")",YM+"+"+CP+"(?="+[EP,qc+IP,"$"].join("|")+")",qc+"?"+IP+"+"+OP,qc+"+"+CP,qM,zM,bP,ZM].join("|"),"g"),rV=RegExp("["+PP+md+gP+vP+"]"),oV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,aV=["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"],sV=-1,Jt={};Jt[Lf]=Jt[Ff]=Jt[_f]=Jt[Gs]=Jt[$]=Jt[W]=Jt[Y]=Jt[ie]=Jt[Ne]=!0,Jt[Ln]=Jt[Kn]=Jt[Ws]=Jt[O]=Jt[Ar]=Jt[S]=Jt[M]=Jt[Le]=Jt[je]=Jt[Et]=Jt[tn]=Jt[ir]=Jt[cn]=Jt[pi]=Jt[Vi]=!1;var Wt={};Wt[Ln]=Wt[Kn]=Wt[Ws]=Wt[Ar]=Wt[O]=Wt[S]=Wt[Lf]=Wt[Ff]=Wt[_f]=Wt[Gs]=Wt[$]=Wt[je]=Wt[Et]=Wt[tn]=Wt[ir]=Wt[cn]=Wt[pi]=Wt[Vt]=Wt[W]=Wt[Y]=Wt[ie]=Wt[Ne]=!0,Wt[M]=Wt[Le]=Wt[Vi]=!1;var cV={\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"},lV={"&":"&","<":"<",">":">",'"':""","'":"'"},fV={"&":"&","<":"<",">":">",""":'"',"'":"'"},uV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},pV=parseFloat,dV=parseInt,FP=typeof global=="object"&&global&&global.Object===Object&&global,gV=typeof self=="object"&&self&&self.Object===Object&&self,Xn=FP||gV||Function("return this")(),qy=typeof ff=="object"&&ff&&!ff.nodeType&&ff,Hs=qy&&typeof Ep=="object"&&Ep&&!Ep.nodeType&&Ep,_P=Hs&&Hs.exports===qy,Zy=_P&&FP.process,Sr=function(){try{var V=Hs&&Hs.require&&Hs.require("util").types;return V||Zy&&Zy.binding&&Zy.binding("util")}catch{}}(),DP=Sr&&Sr.isArrayBuffer,wP=Sr&&Sr.isDate,MP=Sr&&Sr.isMap,VP=Sr&&Sr.isRegExp,kP=Sr&&Sr.isSet,jP=Sr&&Sr.isTypedArray;function or(V,X,H){switch(H.length){case 0:return V.call(X);case 1:return V.call(X,H[0]);case 2:return V.call(X,H[0],H[1]);case 3:return V.call(X,H[0],H[1],H[2])}return V.apply(X,H)}a(or,"apply");function mV(V,X,H,he){for(var Ge=-1,bt=V==null?0:V.length;++Ge<bt;){var jn=V[Ge];X(he,jn,H(jn),V)}return he}a(mV,"arrayAggregator");function xr(V,X){for(var H=-1,he=V==null?0:V.length;++H<he&&X(V[H],H,V)!==!1;);return V}a(xr,"arrayEach");function hV(V,X){for(var H=V==null?0:V.length;H--&&X(V[H],H,V)!==!1;);return V}a(hV,"arrayEachRight");function $P(V,X){for(var H=-1,he=V==null?0:V.length;++H<he;)if(!X(V[H],H,V))return!1;return!0}a($P,"arrayEvery");function ka(V,X){for(var H=-1,he=V==null?0:V.length,Ge=0,bt=[];++H<he;){var jn=V[H];X(jn,H,V)&&(bt[Ge++]=jn)}return bt}a(ka,"arrayFilter");function yd(V,X){var H=V==null?0:V.length;return!!H&&Zc(V,X,0)>-1}a(yd,"arrayIncludes");function ev(V,X,H){for(var he=-1,Ge=V==null?0:V.length;++he<Ge;)if(H(X,V[he]))return!0;return!1}a(ev,"arrayIncludesWith");function rn(V,X){for(var H=-1,he=V==null?0:V.length,Ge=Array(he);++H<he;)Ge[H]=X(V[H],H,V);return Ge}a(rn,"arrayMap");function ja(V,X){for(var H=-1,he=X.length,Ge=V.length;++H<he;)V[Ge+H]=X[H];return V}a(ja,"arrayPush");function tv(V,X,H,he){var Ge=-1,bt=V==null?0:V.length;for(he&&bt&&(H=V[++Ge]);++Ge<bt;)H=X(H,V[Ge],Ge,V);return H}a(tv,"arrayReduce");function yV(V,X,H,he){var Ge=V==null?0:V.length;for(he&&Ge&&(H=V[--Ge]);Ge--;)H=X(H,V[Ge],Ge,V);return H}a(yV,"arrayReduceRight");function nv(V,X){for(var H=-1,he=V==null?0:V.length;++H<he;)if(X(V[H],H,V))return!0;return!1}a(nv,"arraySome");var vV=iv("length");function TV(V){return V.split("")}a(TV,"asciiToArray");function EV(V){return V.match(CM)||[]}a(EV,"asciiWords");function UP(V,X,H){var he;return H(V,function(Ge,bt,jn){if(X(Ge,bt,jn))return he=bt,!1}),he}a(UP,"baseFindKey");function vd(V,X,H,he){for(var Ge=V.length,bt=H+(he?1:-1);he?bt--:++bt<Ge;)if(X(V[bt],bt,V))return bt;return-1}a(vd,"baseFindIndex");function Zc(V,X,H){return X===X?FV(V,X,H):vd(V,BP,H)}a(Zc,"baseIndexOf");function bV(V,X,H,he){for(var Ge=H-1,bt=V.length;++Ge<bt;)if(he(V[Ge],X))return Ge;return-1}a(bV,"baseIndexOfWith");function BP(V){return V!==V}a(BP,"baseIsNaN");function WP(V,X){var H=V==null?0:V.length;return H?ov(V,X)/H:kn}a(WP,"baseMean");function iv(V){return function(X){return X==null?e:X[V]}}a(iv,"baseProperty");function rv(V){return function(X){return V==null?e:V[X]}}a(rv,"basePropertyOf");function GP(V,X,H,he,Ge){return Ge(V,function(bt,jn,jt){H=he?(he=!1,bt):X(H,bt,jn,jt)}),H}a(GP,"baseReduce");function AV(V,X){var H=V.length;for(V.sort(X);H--;)V[H]=V[H].value;return V}a(AV,"baseSortBy");function ov(V,X){for(var H,he=-1,Ge=V.length;++he<Ge;){var bt=X(V[he]);bt!==e&&(H=H===e?bt:H+bt)}return H}a(ov,"baseSum");function av(V,X){for(var H=-1,he=Array(V);++H<V;)he[H]=X(H);return he}a(av,"baseTimes");function SV(V,X){return rn(X,function(H){return[H,V[H]]})}a(SV,"baseToPairs");function HP(V){return V&&V.slice(0,YP(V)+1).replace(Ky,"")}a(HP,"baseTrim");function ar(V){return function(X){return V(X)}}a(ar,"baseUnary");function sv(V,X){return rn(X,function(H){return V[H]})}a(sv,"baseValues");function wf(V,X){return V.has(X)}a(wf,"cacheHas");function KP(V,X){for(var H=-1,he=V.length;++H<he&&Zc(X,V[H],0)>-1;);return H}a(KP,"charsStartIndex");function XP(V,X){for(var H=V.length;H--&&Zc(X,V[H],0)>-1;);return H}a(XP,"charsEndIndex");function xV(V,X){for(var H=V.length,he=0;H--;)V[H]===X&&++he;return he}a(xV,"countHolders");var PV=rv(cV),IV=rv(lV);function OV(V){return"\\"+uV[V]}a(OV,"escapeStringChar");function CV(V,X){return V==null?e:V[X]}a(CV,"getValue");function el(V){return rV.test(V)}a(el,"hasUnicode");function NV(V){return oV.test(V)}a(NV,"hasUnicodeWord");function RV(V){for(var X,H=[];!(X=V.next()).done;)H.push(X.value);return H}a(RV,"iteratorToArray");function cv(V){var X=-1,H=Array(V.size);return V.forEach(function(he,Ge){H[++X]=[Ge,he]}),H}a(cv,"mapToArray");function JP(V,X){return function(H){return V(X(H))}}a(JP,"overArg");function $a(V,X){for(var H=-1,he=V.length,Ge=0,bt=[];++H<he;){var jn=V[H];(jn===X||jn===u)&&(V[H]=u,bt[Ge++]=H)}return bt}a($a,"replaceHolders");function Td(V){var X=-1,H=Array(V.size);return V.forEach(function(he){H[++X]=he}),H}a(Td,"setToArray");function LV(V){var X=-1,H=Array(V.size);return V.forEach(function(he){H[++X]=[he,he]}),H}a(LV,"setToPairs");function FV(V,X,H){for(var he=H-1,Ge=V.length;++he<Ge;)if(V[he]===X)return he;return-1}a(FV,"strictIndexOf");function _V(V,X,H){for(var he=H+1;he--;)if(V[he]===X)return he;return he}a(_V,"strictLastIndexOf");function tl(V){return el(V)?wV(V):vV(V)}a(tl,"stringSize");function Xr(V){return el(V)?MV(V):TV(V)}a(Xr,"stringToArray");function YP(V){for(var X=V.length;X--&&xM.test(V.charAt(X)););return X}a(YP,"trimmedEndIndex");var DV=rv(fV);function wV(V){for(var X=zy.lastIndex=0;zy.test(V);)++X;return X}a(wV,"unicodeSize");function MV(V){return V.match(zy)||[]}a(MV,"unicodeToArray");function VV(V){return V.match(iV)||[]}a(VV,"unicodeWords");var kV=a(function V(X){X=X==null?Xn:Ua.defaults(Xn.Object(),X,Ua.pick(Xn,aV));var H=X.Array,he=X.Date,Ge=X.Error,bt=X.Function,jn=X.Math,jt=X.Object,lv=X.RegExp,jV=X.String,Pr=X.TypeError,Ed=H.prototype,$V=bt.prototype,nl=jt.prototype,bd=X["__core-js_shared__"],Ad=$V.toString,Ct=nl.hasOwnProperty,UV=0,QP=function(){var c=/[^.]+$/.exec(bd&&bd.keys&&bd.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),Sd=nl.toString,BV=Ad.call(jt),WV=Xn._,GV=lv("^"+Ad.call(Ct).replace(Df,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),xd=_P?X.Buffer:e,Ba=X.Symbol,Pd=X.Uint8Array,zP=xd?xd.allocUnsafe:e,Id=JP(jt.getPrototypeOf,jt),qP=jt.create,ZP=nl.propertyIsEnumerable,Od=Ed.splice,eI=Ba?Ba.isConcatSpreadable:e,Mf=Ba?Ba.iterator:e,Ks=Ba?Ba.toStringTag:e,Cd=function(){try{var c=zs(jt,"defineProperty");return c({},"",{}),c}catch{}}(),HV=X.clearTimeout!==Xn.clearTimeout&&X.clearTimeout,KV=he&&he.now!==Xn.Date.now&&he.now,XV=X.setTimeout!==Xn.setTimeout&&X.setTimeout,Nd=jn.ceil,Rd=jn.floor,fv=jt.getOwnPropertySymbols,JV=xd?xd.isBuffer:e,tI=X.isFinite,YV=Ed.join,QV=JP(jt.keys,jt),$n=jn.max,di=jn.min,zV=he.now,qV=X.parseInt,nI=jn.random,ZV=Ed.reverse,uv=zs(X,"DataView"),Vf=zs(X,"Map"),pv=zs(X,"Promise"),il=zs(X,"Set"),kf=zs(X,"WeakMap"),jf=zs(jt,"create"),Ld=kf&&new kf,rl={},ek=qs(uv),tk=qs(Vf),nk=qs(pv),ik=qs(il),rk=qs(kf),Fd=Ba?Ba.prototype:e,$f=Fd?Fd.valueOf:e,iI=Fd?Fd.toString:e;function x(c){if(dn(c)&&!He(c)&&!(c instanceof lt)){if(c instanceof Ir)return c;if(Ct.call(c,"__wrapped__"))return rO(c)}return new Ir(c)}a(x,"lodash");var ol=function(){function c(){}return a(c,"object"),function(f){if(!fn(f))return{};if(qP)return qP(f);c.prototype=f;var g=new c;return c.prototype=e,g}}();function _d(){}a(_d,"baseLodash");function Ir(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}a(Ir,"LodashWrapper"),x.templateSettings={escape:nt,evaluate:kt,interpolate:nn,variable:"",imports:{_:x}},x.prototype=_d.prototype,x.prototype.constructor=x,Ir.prototype=ol(_d.prototype),Ir.prototype.constructor=Ir;function lt(c){this.__wrapped__=c,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=en,this.__views__=[]}a(lt,"LazyWrapper");function ok(){var c=new lt(this.__wrapped__);return c.__actions__=ki(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=ki(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=ki(this.__views__),c}a(ok,"lazyClone");function ak(){if(this.__filtered__){var c=new lt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}a(ak,"lazyReverse");function sk(){var c=this.__wrapped__.value(),f=this.__dir__,g=He(c),h=f<0,A=g?c.length:0,P=E2(0,A,this.__views__),N=P.start,D=P.end,j=D-N,z=h?D:N-1,q=this.__iteratees__,Z=q.length,de=0,Oe=di(j,this.__takeCount__);if(!g||!h&&A==j&&Oe==j)return OI(c,this.__actions__);var De=[];e:for(;j--&&de<Oe;){z+=f;for(var ze=-1,we=c[z];++ze<Z;){var rt=q[ze],ut=rt.iteratee,lr=rt.type,Oi=ut(we);if(lr==Mi)we=Oi;else if(!Oi){if(lr==Xt)continue e;break e}}De[de++]=we}return De}a(sk,"lazyValue"),lt.prototype=ol(_d.prototype),lt.prototype.constructor=lt;function Xs(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var h=c[f];this.set(h[0],h[1])}}a(Xs,"Hash");function ck(){this.__data__=jf?jf(null):{},this.size=0}a(ck,"hashClear");function lk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}a(lk,"hashDelete");function fk(c){var f=this.__data__;if(jf){var g=f[c];return g===s?e:g}return Ct.call(f,c)?f[c]:e}a(fk,"hashGet");function uk(c){var f=this.__data__;return jf?f[c]!==e:Ct.call(f,c)}a(uk,"hashHas");function pk(c,f){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=jf&&f===e?s:f,this}a(pk,"hashSet"),Xs.prototype.clear=ck,Xs.prototype.delete=lk,Xs.prototype.get=fk,Xs.prototype.has=uk,Xs.prototype.set=pk;function ea(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var h=c[f];this.set(h[0],h[1])}}a(ea,"ListCache");function dk(){this.__data__=[],this.size=0}a(dk,"listCacheClear");function gk(c){var f=this.__data__,g=Dd(f,c);if(g<0)return!1;var h=f.length-1;return g==h?f.pop():Od.call(f,g,1),--this.size,!0}a(gk,"listCacheDelete");function mk(c){var f=this.__data__,g=Dd(f,c);return g<0?e:f[g][1]}a(mk,"listCacheGet");function hk(c){return Dd(this.__data__,c)>-1}a(hk,"listCacheHas");function yk(c,f){var g=this.__data__,h=Dd(g,c);return h<0?(++this.size,g.push([c,f])):g[h][1]=f,this}a(yk,"listCacheSet"),ea.prototype.clear=dk,ea.prototype.delete=gk,ea.prototype.get=mk,ea.prototype.has=hk,ea.prototype.set=yk;function ta(c){var f=-1,g=c==null?0:c.length;for(this.clear();++f<g;){var h=c[f];this.set(h[0],h[1])}}a(ta,"MapCache");function vk(){this.size=0,this.__data__={hash:new Xs,map:new(Vf||ea),string:new Xs}}a(vk,"mapCacheClear");function Tk(c){var f=Kd(this,c).delete(c);return this.size-=f?1:0,f}a(Tk,"mapCacheDelete");function Ek(c){return Kd(this,c).get(c)}a(Ek,"mapCacheGet");function bk(c){return Kd(this,c).has(c)}a(bk,"mapCacheHas");function Ak(c,f){var g=Kd(this,c),h=g.size;return g.set(c,f),this.size+=g.size==h?0:1,this}a(Ak,"mapCacheSet"),ta.prototype.clear=vk,ta.prototype.delete=Tk,ta.prototype.get=Ek,ta.prototype.has=bk,ta.prototype.set=Ak;function Js(c){var f=-1,g=c==null?0:c.length;for(this.__data__=new ta;++f<g;)this.add(c[f])}a(Js,"SetCache");function Sk(c){return this.__data__.set(c,s),this}a(Sk,"setCacheAdd");function xk(c){return this.__data__.has(c)}a(xk,"setCacheHas"),Js.prototype.add=Js.prototype.push=Sk,Js.prototype.has=xk;function Jr(c){var f=this.__data__=new ea(c);this.size=f.size}a(Jr,"Stack");function Pk(){this.__data__=new ea,this.size=0}a(Pk,"stackClear");function Ik(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}a(Ik,"stackDelete");function Ok(c){return this.__data__.get(c)}a(Ok,"stackGet");function Ck(c){return this.__data__.has(c)}a(Ck,"stackHas");function Nk(c,f){var g=this.__data__;if(g instanceof ea){var h=g.__data__;if(!Vf||h.length<n-1)return h.push([c,f]),this.size=++g.size,this;g=this.__data__=new ta(h)}return g.set(c,f),this.size=g.size,this}a(Nk,"stackSet"),Jr.prototype.clear=Pk,Jr.prototype.delete=Ik,Jr.prototype.get=Ok,Jr.prototype.has=Ck,Jr.prototype.set=Nk;function rI(c,f){var g=He(c),h=!g&&Zs(c),A=!g&&!h&&Xa(c),P=!g&&!h&&!A&&ll(c),N=g||h||A||P,D=N?av(c.length,jV):[],j=D.length;for(var z in c)(f||Ct.call(c,z))&&!(N&&(z=="length"||A&&(z=="offset"||z=="parent")||P&&(z=="buffer"||z=="byteLength"||z=="byteOffset")||oa(z,j)))&&D.push(z);return D}a(rI,"arrayLikeKeys");function oI(c){var f=c.length;return f?c[Sv(0,f-1)]:e}a(oI,"arraySample");function Rk(c,f){return Xd(ki(c),Ys(f,0,c.length))}a(Rk,"arraySampleSize");function Lk(c){return Xd(ki(c))}a(Lk,"arrayShuffle");function dv(c,f,g){(g!==e&&!Yr(c[f],g)||g===e&&!(f in c))&&na(c,f,g)}a(dv,"assignMergeValue");function Uf(c,f,g){var h=c[f];(!(Ct.call(c,f)&&Yr(h,g))||g===e&&!(f in c))&&na(c,f,g)}a(Uf,"assignValue");function Dd(c,f){for(var g=c.length;g--;)if(Yr(c[g][0],f))return g;return-1}a(Dd,"assocIndexOf");function Fk(c,f,g,h){return Wa(c,function(A,P,N){f(h,A,g(A),N)}),h}a(Fk,"baseAggregator");function aI(c,f){return c&&So(f,Jn(f),c)}a(aI,"baseAssign");function _k(c,f){return c&&So(f,$i(f),c)}a(_k,"baseAssignIn");function na(c,f,g){f=="__proto__"&&Cd?Cd(c,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[f]=g}a(na,"baseAssignValue");function gv(c,f){for(var g=-1,h=f.length,A=H(h),P=c==null;++g<h;)A[g]=P?e:Jv(c,f[g]);return A}a(gv,"baseAt");function Ys(c,f,g){return c===c&&(g!==e&&(c=c<=g?c:g),f!==e&&(c=c>=f?c:f)),c}a(Ys,"baseClamp");function Or(c,f,g,h,A,P){var N,D=f&p,j=f&d,z=f&m;if(g&&(N=A?g(c,h,A,P):g(c)),N!==e)return N;if(!fn(c))return c;var q=He(c);if(q){if(N=A2(c),!D)return ki(c,N)}else{var Z=gi(c),de=Z==Le||Z==ct;if(Xa(c))return RI(c,D);if(Z==tn||Z==Ln||de&&!A){if(N=j||de?{}:YI(c),!D)return j?f2(c,_k(N,c)):l2(c,aI(N,c))}else{if(!Wt[Z])return A?c:{};N=S2(c,Z,D)}}P||(P=new Jr);var Oe=P.get(c);if(Oe)return Oe;P.set(c,N),xO(c)?c.forEach(function(we){N.add(Or(we,f,g,we,c,P))}):AO(c)&&c.forEach(function(we,rt){N.set(rt,Or(we,f,g,rt,c,P))});var De=z?j?Dv:_v:j?$i:Jn,ze=q?e:De(c);return xr(ze||c,function(we,rt){ze&&(rt=we,we=c[rt]),Uf(N,rt,Or(we,f,g,rt,c,P))}),N}a(Or,"baseClone");function Dk(c){var f=Jn(c);return function(g){return sI(g,c,f)}}a(Dk,"baseConforms");function sI(c,f,g){var h=g.length;if(c==null)return!h;for(c=jt(c);h--;){var A=g[h],P=f[A],N=c[A];if(N===e&&!(A in c)||!P(N))return!1}return!0}a(sI,"baseConformsTo");function cI(c,f,g){if(typeof c!="function")throw new Pr(r);return Jf(function(){c.apply(e,g)},f)}a(cI,"baseDelay");function Bf(c,f,g,h){var A=-1,P=yd,N=!0,D=c.length,j=[],z=f.length;if(!D)return j;g&&(f=rn(f,ar(g))),h?(P=ev,N=!1):f.length>=n&&(P=wf,N=!1,f=new Js(f));e:for(;++A<D;){var q=c[A],Z=g==null?q:g(q);if(q=h||q!==0?q:0,N&&Z===Z){for(var de=z;de--;)if(f[de]===Z)continue e;j.push(q)}else P(f,Z,h)||j.push(q)}return j}a(Bf,"baseDifference");var Wa=wI(Ao),lI=wI(hv,!0);function wk(c,f){var g=!0;return Wa(c,function(h,A,P){return g=!!f(h,A,P),g}),g}a(wk,"baseEvery");function wd(c,f,g){for(var h=-1,A=c.length;++h<A;){var P=c[h],N=f(P);if(N!=null&&(D===e?N===N&&!cr(N):g(N,D)))var D=N,j=P}return j}a(wd,"baseExtremum");function Mk(c,f,g,h){var A=c.length;for(g=Je(g),g<0&&(g=-g>A?0:A+g),h=h===e||h>A?A:Je(h),h<0&&(h+=A),h=g>h?0:IO(h);g<h;)c[g++]=f;return c}a(Mk,"baseFill");function fI(c,f){var g=[];return Wa(c,function(h,A,P){f(h,A,P)&&g.push(h)}),g}a(fI,"baseFilter");function ri(c,f,g,h,A){var P=-1,N=c.length;for(g||(g=P2),A||(A=[]);++P<N;){var D=c[P];f>0&&g(D)?f>1?ri(D,f-1,g,h,A):ja(A,D):h||(A[A.length]=D)}return A}a(ri,"baseFlatten");var mv=MI(),uI=MI(!0);function Ao(c,f){return c&&mv(c,f,Jn)}a(Ao,"baseForOwn");function hv(c,f){return c&&uI(c,f,Jn)}a(hv,"baseForOwnRight");function Md(c,f){return ka(f,function(g){return aa(c[g])})}a(Md,"baseFunctions");function Qs(c,f){f=Ha(f,c);for(var g=0,h=f.length;c!=null&&g<h;)c=c[xo(f[g++])];return g&&g==h?c:e}a(Qs,"baseGet");function pI(c,f,g){var h=f(c);return He(c)?h:ja(h,g(c))}a(pI,"baseGetAllKeys");function Pi(c){return c==null?c===e?Zo:sn:Ks&&Ks in jt(c)?T2(c):F2(c)}a(Pi,"baseGetTag");function yv(c,f){return c>f}a(yv,"baseGt");function Vk(c,f){return c!=null&&Ct.call(c,f)}a(Vk,"baseHas");function kk(c,f){return c!=null&&f in jt(c)}a(kk,"baseHasIn");function jk(c,f,g){return c>=di(f,g)&&c<$n(f,g)}a(jk,"baseInRange");function vv(c,f,g){for(var h=g?ev:yd,A=c[0].length,P=c.length,N=P,D=H(P),j=1/0,z=[];N--;){var q=c[N];N&&f&&(q=rn(q,ar(f))),j=di(q.length,j),D[N]=!g&&(f||A>=120&&q.length>=120)?new Js(N&&q):e}q=c[0];var Z=-1,de=D[0];e:for(;++Z<A&&z.length<j;){var Oe=q[Z],De=f?f(Oe):Oe;if(Oe=g||Oe!==0?Oe:0,!(de?wf(de,De):h(z,De,g))){for(N=P;--N;){var ze=D[N];if(!(ze?wf(ze,De):h(c[N],De,g)))continue e}de&&de.push(De),z.push(Oe)}}return z}a(vv,"baseIntersection");function $k(c,f,g,h){return Ao(c,function(A,P,N){f(h,g(A),P,N)}),h}a($k,"baseInverter");function Wf(c,f,g){f=Ha(f,c),c=ZI(c,f);var h=c==null?c:c[xo(Nr(f))];return h==null?e:or(h,c,g)}a(Wf,"baseInvoke");function dI(c){return dn(c)&&Pi(c)==Ln}a(dI,"baseIsArguments");function Uk(c){return dn(c)&&Pi(c)==Ws}a(Uk,"baseIsArrayBuffer");function Bk(c){return dn(c)&&Pi(c)==S}a(Bk,"baseIsDate");function Gf(c,f,g,h,A){return c===f?!0:c==null||f==null||!dn(c)&&!dn(f)?c!==c&&f!==f:Wk(c,f,g,h,Gf,A)}a(Gf,"baseIsEqual");function Wk(c,f,g,h,A,P){var N=He(c),D=He(f),j=N?Kn:gi(c),z=D?Kn:gi(f);j=j==Ln?tn:j,z=z==Ln?tn:z;var q=j==tn,Z=z==tn,de=j==z;if(de&&Xa(c)){if(!Xa(f))return!1;N=!0,q=!1}if(de&&!q)return P||(P=new Jr),N||ll(c)?KI(c,f,g,h,A,P):h2(c,f,j,g,h,A,P);if(!(g&T)){var Oe=q&&Ct.call(c,"__wrapped__"),De=Z&&Ct.call(f,"__wrapped__");if(Oe||De){var ze=Oe?c.value():c,we=De?f.value():f;return P||(P=new Jr),A(ze,we,g,h,P)}}return de?(P||(P=new Jr),y2(c,f,g,h,A,P)):!1}a(Wk,"baseIsEqualDeep");function Gk(c){return dn(c)&&gi(c)==je}a(Gk,"baseIsMap");function Tv(c,f,g,h){var A=g.length,P=A,N=!h;if(c==null)return!P;for(c=jt(c);A--;){var D=g[A];if(N&&D[2]?D[1]!==c[D[0]]:!(D[0]in c))return!1}for(;++A<P;){D=g[A];var j=D[0],z=c[j],q=D[1];if(N&&D[2]){if(z===e&&!(j in c))return!1}else{var Z=new Jr;if(h)var de=h(z,q,j,c,f,Z);if(!(de===e?Gf(q,z,T|b,h,Z):de))return!1}}return!0}a(Tv,"baseIsMatch");function gI(c){if(!fn(c)||O2(c))return!1;var f=aa(c)?GV:DM;return f.test(qs(c))}a(gI,"baseIsNative");function Hk(c){return dn(c)&&Pi(c)==ir}a(Hk,"baseIsRegExp");function Kk(c){return dn(c)&&gi(c)==cn}a(Kk,"baseIsSet");function Xk(c){return dn(c)&&Zd(c.length)&&!!Jt[Pi(c)]}a(Xk,"baseIsTypedArray");function mI(c){return typeof c=="function"?c:c==null?Ui:typeof c=="object"?He(c)?vI(c[0],c[1]):yI(c):VO(c)}a(mI,"baseIteratee");function Ev(c){if(!Xf(c))return QV(c);var f=[];for(var g in jt(c))Ct.call(c,g)&&g!="constructor"&&f.push(g);return f}a(Ev,"baseKeys");function Jk(c){if(!fn(c))return L2(c);var f=Xf(c),g=[];for(var h in c)h=="constructor"&&(f||!Ct.call(c,h))||g.push(h);return g}a(Jk,"baseKeysIn");function bv(c,f){return c<f}a(bv,"baseLt");function hI(c,f){var g=-1,h=ji(c)?H(c.length):[];return Wa(c,function(A,P,N){h[++g]=f(A,P,N)}),h}a(hI,"baseMap");function yI(c){var f=Mv(c);return f.length==1&&f[0][2]?zI(f[0][0],f[0][1]):function(g){return g===c||Tv(g,c,f)}}a(yI,"baseMatches");function vI(c,f){return kv(c)&&QI(f)?zI(xo(c),f):function(g){var h=Jv(g,c);return h===e&&h===f?Yv(g,c):Gf(f,h,T|b)}}a(vI,"baseMatchesProperty");function Vd(c,f,g,h,A){c!==f&&mv(f,function(P,N){if(A||(A=new Jr),fn(P))Yk(c,f,N,g,Vd,h,A);else{var D=h?h($v(c,N),P,N+"",c,f,A):e;D===e&&(D=P),dv(c,N,D)}},$i)}a(Vd,"baseMerge");function Yk(c,f,g,h,A,P,N){var D=$v(c,g),j=$v(f,g),z=N.get(j);if(z){dv(c,g,z);return}var q=P?P(D,j,g+"",c,f,N):e,Z=q===e;if(Z){var de=He(j),Oe=!de&&Xa(j),De=!de&&!Oe&&ll(j);q=j,de||Oe||De?He(D)?q=D:Sn(D)?q=ki(D):Oe?(Z=!1,q=RI(j,!0)):De?(Z=!1,q=LI(j,!0)):q=[]:Yf(j)||Zs(j)?(q=D,Zs(D)?q=OO(D):(!fn(D)||aa(D))&&(q=YI(j))):Z=!1}Z&&(N.set(j,q),A(q,j,h,P,N),N.delete(j)),dv(c,g,q)}a(Yk,"baseMergeDeep");function TI(c,f){var g=c.length;if(g)return f+=f<0?g:0,oa(f,g)?c[f]:e}a(TI,"baseNth");function EI(c,f,g){f.length?f=rn(f,function(P){return He(P)?function(N){return Qs(N,P.length===1?P[0]:P)}:P}):f=[Ui];var h=-1;f=rn(f,ar(_e()));var A=hI(c,function(P,N,D){var j=rn(f,function(z){return z(P)});return{criteria:j,index:++h,value:P}});return AV(A,function(P,N){return c2(P,N,g)})}a(EI,"baseOrderBy");function Qk(c,f){return bI(c,f,function(g,h){return Yv(c,h)})}a(Qk,"basePick");function bI(c,f,g){for(var h=-1,A=f.length,P={};++h<A;){var N=f[h],D=Qs(c,N);g(D,N)&&Hf(P,Ha(N,c),D)}return P}a(bI,"basePickBy");function zk(c){return function(f){return Qs(f,c)}}a(zk,"basePropertyDeep");function Av(c,f,g,h){var A=h?bV:Zc,P=-1,N=f.length,D=c;for(c===f&&(f=ki(f)),g&&(D=rn(c,ar(g)));++P<N;)for(var j=0,z=f[P],q=g?g(z):z;(j=A(D,q,j,h))>-1;)D!==c&&Od.call(D,j,1),Od.call(c,j,1);return c}a(Av,"basePullAll");function AI(c,f){for(var g=c?f.length:0,h=g-1;g--;){var A=f[g];if(g==h||A!==P){var P=A;oa(A)?Od.call(c,A,1):Iv(c,A)}}return c}a(AI,"basePullAt");function Sv(c,f){return c+Rd(nI()*(f-c+1))}a(Sv,"baseRandom");function qk(c,f,g,h){for(var A=-1,P=$n(Nd((f-c)/(g||1)),0),N=H(P);P--;)N[h?P:++A]=c,c+=g;return N}a(qk,"baseRange");function xv(c,f){var g="";if(!c||f<1||f>Fe)return g;do f%2&&(g+=c),f=Rd(f/2),f&&(c+=c);while(f);return g}a(xv,"baseRepeat");function et(c,f){return Uv(qI(c,f,Ui),c+"")}a(et,"baseRest");function Zk(c){return oI(fl(c))}a(Zk,"baseSample");function e2(c,f){var g=fl(c);return Xd(g,Ys(f,0,g.length))}a(e2,"baseSampleSize");function Hf(c,f,g,h){if(!fn(c))return c;f=Ha(f,c);for(var A=-1,P=f.length,N=P-1,D=c;D!=null&&++A<P;){var j=xo(f[A]),z=g;if(j==="__proto__"||j==="constructor"||j==="prototype")return c;if(A!=N){var q=D[j];z=h?h(q,j,D):e,z===e&&(z=fn(q)?q:oa(f[A+1])?[]:{})}Uf(D,j,z),D=D[j]}return c}a(Hf,"baseSet");var SI=Ld?function(c,f){return Ld.set(c,f),c}:Ui,t2=Cd?function(c,f){return Cd(c,"toString",{configurable:!0,enumerable:!1,value:zv(f),writable:!0})}:Ui;function n2(c){return Xd(fl(c))}a(n2,"baseShuffle");function Cr(c,f,g){var h=-1,A=c.length;f<0&&(f=-f>A?0:A+f),g=g>A?A:g,g<0&&(g+=A),A=f>g?0:g-f>>>0,f>>>=0;for(var P=H(A);++h<A;)P[h]=c[h+f];return P}a(Cr,"baseSlice");function i2(c,f){var g;return Wa(c,function(h,A,P){return g=f(h,A,P),!g}),!!g}a(i2,"baseSome");function kd(c,f,g){var h=0,A=c==null?h:c.length;if(typeof f=="number"&&f===f&&A<=ni){for(;h<A;){var P=h+A>>>1,N=c[P];N!==null&&!cr(N)&&(g?N<=f:N<f)?h=P+1:A=P}return A}return Pv(c,f,Ui,g)}a(kd,"baseSortedIndex");function Pv(c,f,g,h){var A=0,P=c==null?0:c.length;if(P===0)return 0;f=g(f);for(var N=f!==f,D=f===null,j=cr(f),z=f===e;A<P;){var q=Rd((A+P)/2),Z=g(c[q]),de=Z!==e,Oe=Z===null,De=Z===Z,ze=cr(Z);if(N)var we=h||De;else z?we=De&&(h||de):D?we=De&&de&&(h||!Oe):j?we=De&&de&&!Oe&&(h||!ze):Oe||ze?we=!1:we=h?Z<=f:Z<f;we?A=q+1:P=q}return di(P,Rn)}a(Pv,"baseSortedIndexBy");function xI(c,f){for(var g=-1,h=c.length,A=0,P=[];++g<h;){var N=c[g],D=f?f(N):N;if(!g||!Yr(D,j)){var j=D;P[A++]=N===0?0:N}}return P}a(xI,"baseSortedUniq");function PI(c){return typeof c=="number"?c:cr(c)?kn:+c}a(PI,"baseToNumber");function sr(c){if(typeof c=="string")return c;if(He(c))return rn(c,sr)+"";if(cr(c))return iI?iI.call(c):"";var f=c+"";return f=="0"&&1/c==-Zt?"-0":f}a(sr,"baseToString");function Ga(c,f,g){var h=-1,A=yd,P=c.length,N=!0,D=[],j=D;if(g)N=!1,A=ev;else if(P>=n){var z=f?null:g2(c);if(z)return Td(z);N=!1,A=wf,j=new Js}else j=f?[]:D;e:for(;++h<P;){var q=c[h],Z=f?f(q):q;if(q=g||q!==0?q:0,N&&Z===Z){for(var de=j.length;de--;)if(j[de]===Z)continue e;f&&j.push(Z),D.push(q)}else A(j,Z,g)||(j!==D&&j.push(Z),D.push(q))}return D}a(Ga,"baseUniq");function Iv(c,f){return f=Ha(f,c),c=ZI(c,f),c==null||delete c[xo(Nr(f))]}a(Iv,"baseUnset");function II(c,f,g,h){return Hf(c,f,g(Qs(c,f)),h)}a(II,"baseUpdate");function jd(c,f,g,h){for(var A=c.length,P=h?A:-1;(h?P--:++P<A)&&f(c[P],P,c););return g?Cr(c,h?0:P,h?P+1:A):Cr(c,h?P+1:0,h?A:P)}a(jd,"baseWhile");function OI(c,f){var g=c;return g instanceof lt&&(g=g.value()),tv(f,function(h,A){return A.func.apply(A.thisArg,ja([h],A.args))},g)}a(OI,"baseWrapperValue");function Ov(c,f,g){var h=c.length;if(h<2)return h?Ga(c[0]):[];for(var A=-1,P=H(h);++A<h;)for(var N=c[A],D=-1;++D<h;)D!=A&&(P[A]=Bf(P[A]||N,c[D],f,g));return Ga(ri(P,1),f,g)}a(Ov,"baseXor");function CI(c,f,g){for(var h=-1,A=c.length,P=f.length,N={};++h<A;){var D=h<P?f[h]:e;g(N,c[h],D)}return N}a(CI,"baseZipObject");function Cv(c){return Sn(c)?c:[]}a(Cv,"castArrayLikeObject");function Nv(c){return typeof c=="function"?c:Ui}a(Nv,"castFunction");function Ha(c,f){return He(c)?c:kv(c,f)?[c]:iO(Pt(c))}a(Ha,"castPath");var r2=et;function Ka(c,f,g){var h=c.length;return g=g===e?h:g,!f&&g>=h?c:Cr(c,f,g)}a(Ka,"castSlice");var NI=HV||function(c){return Xn.clearTimeout(c)};function RI(c,f){if(f)return c.slice();var g=c.length,h=zP?zP(g):new c.constructor(g);return c.copy(h),h}a(RI,"cloneBuffer");function Rv(c){var f=new c.constructor(c.byteLength);return new Pd(f).set(new Pd(c)),f}a(Rv,"cloneArrayBuffer");function o2(c,f){var g=f?Rv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}a(o2,"cloneDataView");function a2(c){var f=new c.constructor(c.source,dP.exec(c));return f.lastIndex=c.lastIndex,f}a(a2,"cloneRegExp");function s2(c){return $f?jt($f.call(c)):{}}a(s2,"cloneSymbol");function LI(c,f){var g=f?Rv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}a(LI,"cloneTypedArray");function FI(c,f){if(c!==f){var g=c!==e,h=c===null,A=c===c,P=cr(c),N=f!==e,D=f===null,j=f===f,z=cr(f);if(!D&&!z&&!P&&c>f||P&&N&&j&&!D&&!z||h&&N&&j||!g&&j||!A)return 1;if(!h&&!P&&!z&&c<f||z&&g&&A&&!h&&!P||D&&g&&A||!N&&A||!j)return-1}return 0}a(FI,"compareAscending");function c2(c,f,g){for(var h=-1,A=c.criteria,P=f.criteria,N=A.length,D=g.length;++h<N;){var j=FI(A[h],P[h]);if(j){if(h>=D)return j;var z=g[h];return j*(z=="desc"?-1:1)}}return c.index-f.index}a(c2,"compareMultiple");function _I(c,f,g,h){for(var A=-1,P=c.length,N=g.length,D=-1,j=f.length,z=$n(P-N,0),q=H(j+z),Z=!h;++D<j;)q[D]=f[D];for(;++A<N;)(Z||A<P)&&(q[g[A]]=c[A]);for(;z--;)q[D++]=c[A++];return q}a(_I,"composeArgs");function DI(c,f,g,h){for(var A=-1,P=c.length,N=-1,D=g.length,j=-1,z=f.length,q=$n(P-D,0),Z=H(q+z),de=!h;++A<q;)Z[A]=c[A];for(var Oe=A;++j<z;)Z[Oe+j]=f[j];for(;++N<D;)(de||A<P)&&(Z[Oe+g[N]]=c[A++]);return Z}a(DI,"composeArgsRight");function ki(c,f){var g=-1,h=c.length;for(f||(f=H(h));++g<h;)f[g]=c[g];return f}a(ki,"copyArray");function So(c,f,g,h){var A=!g;g||(g={});for(var P=-1,N=f.length;++P<N;){var D=f[P],j=h?h(g[D],c[D],D,g,c):e;j===e&&(j=c[D]),A?na(g,D,j):Uf(g,D,j)}return g}a(So,"copyObject");function l2(c,f){return So(c,Vv(c),f)}a(l2,"copySymbols");function f2(c,f){return So(c,XI(c),f)}a(f2,"copySymbolsIn");function $d(c,f){return function(g,h){var A=He(g)?mV:Fk,P=f?f():{};return A(g,c,_e(h,2),P)}}a($d,"createAggregator");function al(c){return et(function(f,g){var h=-1,A=g.length,P=A>1?g[A-1]:e,N=A>2?g[2]:e;for(P=c.length>3&&typeof P=="function"?(A--,P):e,N&&Ii(g[0],g[1],N)&&(P=A<3?e:P,A=1),f=jt(f);++h<A;){var D=g[h];D&&c(f,D,h,P)}return f})}a(al,"createAssigner");function wI(c,f){return function(g,h){if(g==null)return g;if(!ji(g))return c(g,h);for(var A=g.length,P=f?A:-1,N=jt(g);(f?P--:++P<A)&&h(N[P],P,N)!==!1;);return g}}a(wI,"createBaseEach");function MI(c){return function(f,g,h){for(var A=-1,P=jt(f),N=h(f),D=N.length;D--;){var j=N[c?D:++A];if(g(P[j],j,P)===!1)break}return f}}a(MI,"createBaseFor");function u2(c,f,g){var h=f&E,A=Kf(c);function P(){var N=this&&this!==Xn&&this instanceof P?A:c;return N.apply(h?g:this,arguments)}return a(P,"wrapper"),P}a(u2,"createBind");function VI(c){return function(f){f=Pt(f);var g=el(f)?Xr(f):e,h=g?g[0]:f.charAt(0),A=g?Ka(g,1).join(""):f.slice(1);return h[c]()+A}}a(VI,"createCaseFirst");function sl(c){return function(f){return tv(wO(DO(f).replace(tV,"")),c,"")}}a(sl,"createCompounder");function Kf(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 g=ol(c.prototype),h=c.apply(g,f);return fn(h)?h:g}}a(Kf,"createCtor");function p2(c,f,g){var h=Kf(c);function A(){for(var P=arguments.length,N=H(P),D=P,j=cl(A);D--;)N[D]=arguments[D];var z=P<3&&N[0]!==j&&N[P-1]!==j?[]:$a(N,j);if(P-=z.length,P<g)return BI(c,f,Ud,A.placeholder,e,N,z,e,e,g-P);var q=this&&this!==Xn&&this instanceof A?h:c;return or(q,this,N)}return a(A,"wrapper"),A}a(p2,"createCurry");function kI(c){return function(f,g,h){var A=jt(f);if(!ji(f)){var P=_e(g,3);f=Jn(f),g=a(function(D){return P(A[D],D,A)},"predicate")}var N=c(f,g,h);return N>-1?A[P?f[N]:N]:e}}a(kI,"createFind");function jI(c){return ra(function(f){var g=f.length,h=g,A=Ir.prototype.thru;for(c&&f.reverse();h--;){var P=f[h];if(typeof P!="function")throw new Pr(r);if(A&&!N&&Hd(P)=="wrapper")var N=new Ir([],!0)}for(h=N?h:g;++h<g;){P=f[h];var D=Hd(P),j=D=="wrapper"?wv(P):e;j&&jv(j[0])&&j[1]==(re|L|U|Ce)&&!j[4].length&&j[9]==1?N=N[Hd(j[0])].apply(N,j[3]):N=P.length==1&&jv(P)?N[D]():N.thru(P)}return function(){var z=arguments,q=z[0];if(N&&z.length==1&&He(q))return N.plant(q).value();for(var Z=0,de=g?f[Z].apply(this,z):q;++Z<g;)de=f[Z].call(this,de);return de}})}a(jI,"createFlow");function Ud(c,f,g,h,A,P,N,D,j,z){var q=f&re,Z=f&E,de=f&C,Oe=f&(L|F),De=f&st,ze=de?e:Kf(c);function we(){for(var rt=arguments.length,ut=H(rt),lr=rt;lr--;)ut[lr]=arguments[lr];if(Oe)var Oi=cl(we),fr=xV(ut,Oi);if(h&&(ut=_I(ut,h,A,Oe)),P&&(ut=DI(ut,P,N,Oe)),rt-=fr,Oe&&rt<z){var xn=$a(ut,Oi);return BI(c,f,Ud,we.placeholder,g,ut,xn,D,j,z-rt)}var Qr=Z?g:this,ca=de?Qr[c]:c;return rt=ut.length,D?ut=_2(ut,D):De&&rt>1&&ut.reverse(),q&&j<rt&&(ut.length=j),this&&this!==Xn&&this instanceof we&&(ca=ze||Kf(ca)),ca.apply(Qr,ut)}return a(we,"wrapper"),we}a(Ud,"createHybrid");function $I(c,f){return function(g,h){return $k(g,c,f(h),{})}}a($I,"createInverter");function Bd(c,f){return function(g,h){var A;if(g===e&&h===e)return f;if(g!==e&&(A=g),h!==e){if(A===e)return h;typeof g=="string"||typeof h=="string"?(g=sr(g),h=sr(h)):(g=PI(g),h=PI(h)),A=c(g,h)}return A}}a(Bd,"createMathOperation");function Lv(c){return ra(function(f){return f=rn(f,ar(_e())),et(function(g){var h=this;return c(f,function(A){return or(A,h,g)})})})}a(Lv,"createOver");function Wd(c,f){f=f===e?" ":sr(f);var g=f.length;if(g<2)return g?xv(f,c):f;var h=xv(f,Nd(c/tl(f)));return el(f)?Ka(Xr(h),0,c).join(""):h.slice(0,c)}a(Wd,"createPadding");function d2(c,f,g,h){var A=f&E,P=Kf(c);function N(){for(var D=-1,j=arguments.length,z=-1,q=h.length,Z=H(q+j),de=this&&this!==Xn&&this instanceof N?P:c;++z<q;)Z[z]=h[z];for(;j--;)Z[z++]=arguments[++D];return or(de,A?g:this,Z)}return a(N,"wrapper"),N}a(d2,"createPartial");function UI(c){return function(f,g,h){return h&&typeof h!="number"&&Ii(f,g,h)&&(g=h=e),f=sa(f),g===e?(g=f,f=0):g=sa(g),h=h===e?f<g?1:-1:sa(h),qk(f,g,h,c)}}a(UI,"createRange");function Gd(c){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=Rr(f),g=Rr(g)),c(f,g)}}a(Gd,"createRelationalOperation");function BI(c,f,g,h,A,P,N,D,j,z){var q=f&L,Z=q?N:e,de=q?e:N,Oe=q?P:e,De=q?e:P;f|=q?U:J,f&=~(q?J:U),f&R||(f&=~(E|C));var ze=[c,f,A,Oe,Z,De,de,D,j,z],we=g.apply(e,ze);return jv(c)&&eO(we,ze),we.placeholder=h,tO(we,c,f)}a(BI,"createRecurry");function Fv(c){var f=jn[c];return function(g,h){if(g=Rr(g),h=h==null?0:di(Je(h),292),h&&tI(g)){var A=(Pt(g)+"e").split("e"),P=f(A[0]+"e"+(+A[1]+h));return A=(Pt(P)+"e").split("e"),+(A[0]+"e"+(+A[1]-h))}return f(g)}}a(Fv,"createRound");var g2=il&&1/Td(new il([,-0]))[1]==Zt?function(c){return new il(c)}:eT;function WI(c){return function(f){var g=gi(f);return g==je?cv(f):g==cn?LV(f):SV(f,c(f))}}a(WI,"createToPairs");function ia(c,f,g,h,A,P,N,D){var j=f&C;if(!j&&typeof c!="function")throw new Pr(r);var z=h?h.length:0;if(z||(f&=~(U|J),h=A=e),N=N===e?N:$n(Je(N),0),D=D===e?D:Je(D),z-=A?A.length:0,f&J){var q=h,Z=A;h=A=e}var de=j?e:wv(c),Oe=[c,f,g,h,A,q,Z,P,N,D];if(de&&R2(Oe,de),c=Oe[0],f=Oe[1],g=Oe[2],h=Oe[3],A=Oe[4],D=Oe[9]=Oe[9]===e?j?0:c.length:$n(Oe[9]-z,0),!D&&f&(L|F)&&(f&=~(L|F)),!f||f==E)var De=u2(c,f,g);else f==L||f==F?De=p2(c,f,D):(f==U||f==(E|U))&&!A.length?De=d2(c,f,g,h):De=Ud.apply(e,Oe);var ze=de?SI:eO;return tO(ze(De,Oe),c,f)}a(ia,"createWrap");function GI(c,f,g,h){return c===e||Yr(c,nl[g])&&!Ct.call(h,g)?f:c}a(GI,"customDefaultsAssignIn");function HI(c,f,g,h,A,P){return fn(c)&&fn(f)&&(P.set(f,c),Vd(c,f,e,HI,P),P.delete(f)),c}a(HI,"customDefaultsMerge");function m2(c){return Yf(c)?e:c}a(m2,"customOmitClone");function KI(c,f,g,h,A,P){var N=g&T,D=c.length,j=f.length;if(D!=j&&!(N&&j>D))return!1;var z=P.get(c),q=P.get(f);if(z&&q)return z==f&&q==c;var Z=-1,de=!0,Oe=g&b?new Js:e;for(P.set(c,f),P.set(f,c);++Z<D;){var De=c[Z],ze=f[Z];if(h)var we=N?h(ze,De,Z,f,c,P):h(De,ze,Z,c,f,P);if(we!==e){if(we)continue;de=!1;break}if(Oe){if(!nv(f,function(rt,ut){if(!wf(Oe,ut)&&(De===rt||A(De,rt,g,h,P)))return Oe.push(ut)})){de=!1;break}}else if(!(De===ze||A(De,ze,g,h,P))){de=!1;break}}return P.delete(c),P.delete(f),de}a(KI,"equalArrays");function h2(c,f,g,h,A,P,N){switch(g){case Ar:if(c.byteLength!=f.byteLength||c.byteOffset!=f.byteOffset)return!1;c=c.buffer,f=f.buffer;case Ws:return!(c.byteLength!=f.byteLength||!P(new Pd(c),new Pd(f)));case O:case S:case Et:return Yr(+c,+f);case M:return c.name==f.name&&c.message==f.message;case ir:case pi:return c==f+"";case je:var D=cv;case cn:var j=h&T;if(D||(D=Td),c.size!=f.size&&!j)return!1;var z=N.get(c);if(z)return z==f;h|=b,N.set(c,f);var q=KI(D(c),D(f),h,A,P,N);return N.delete(c),q;case Vt:if($f)return $f.call(c)==$f.call(f)}return!1}a(h2,"equalByTag");function y2(c,f,g,h,A,P){var N=g&T,D=_v(c),j=D.length,z=_v(f),q=z.length;if(j!=q&&!N)return!1;for(var Z=j;Z--;){var de=D[Z];if(!(N?de in f:Ct.call(f,de)))return!1}var Oe=P.get(c),De=P.get(f);if(Oe&&De)return Oe==f&&De==c;var ze=!0;P.set(c,f),P.set(f,c);for(var we=N;++Z<j;){de=D[Z];var rt=c[de],ut=f[de];if(h)var lr=N?h(ut,rt,de,f,c,P):h(rt,ut,de,c,f,P);if(!(lr===e?rt===ut||A(rt,ut,g,h,P):lr)){ze=!1;break}we||(we=de=="constructor")}if(ze&&!we){var Oi=c.constructor,fr=f.constructor;Oi!=fr&&"constructor"in c&&"constructor"in f&&!(typeof Oi=="function"&&Oi instanceof Oi&&typeof fr=="function"&&fr instanceof fr)&&(ze=!1)}return P.delete(c),P.delete(f),ze}a(y2,"equalObjects");function ra(c){return Uv(qI(c,e,sO),c+"")}a(ra,"flatRest");function _v(c){return pI(c,Jn,Vv)}a(_v,"getAllKeys");function Dv(c){return pI(c,$i,XI)}a(Dv,"getAllKeysIn");var wv=Ld?function(c){return Ld.get(c)}:eT;function Hd(c){for(var f=c.name+"",g=rl[f],h=Ct.call(rl,f)?g.length:0;h--;){var A=g[h],P=A.func;if(P==null||P==c)return A.name}return f}a(Hd,"getFuncName");function cl(c){var f=Ct.call(x,"placeholder")?x:c;return f.placeholder}a(cl,"getHolder");function _e(){var c=x.iteratee||qv;return c=c===qv?mI:c,arguments.length?c(arguments[0],arguments[1]):c}a(_e,"getIteratee");function Kd(c,f){var g=c.__data__;return I2(f)?g[typeof f=="string"?"string":"hash"]:g.map}a(Kd,"getMapData");function Mv(c){for(var f=Jn(c),g=f.length;g--;){var h=f[g],A=c[h];f[g]=[h,A,QI(A)]}return f}a(Mv,"getMatchData");function zs(c,f){var g=CV(c,f);return gI(g)?g:e}a(zs,"getNative");function T2(c){var f=Ct.call(c,Ks),g=c[Ks];try{c[Ks]=e;var h=!0}catch{}var A=Sd.call(c);return h&&(f?c[Ks]=g:delete c[Ks]),A}a(T2,"getRawTag");var Vv=fv?function(c){return c==null?[]:(c=jt(c),ka(fv(c),function(f){return ZP.call(c,f)}))}:tT,XI=fv?function(c){for(var f=[];c;)ja(f,Vv(c)),c=Id(c);return f}:tT,gi=Pi;(uv&&gi(new uv(new ArrayBuffer(1)))!=Ar||Vf&&gi(new Vf)!=je||pv&&gi(pv.resolve())!=Mt||il&&gi(new il)!=cn||kf&&gi(new kf)!=Vi)&&(gi=a(function(c){var f=Pi(c),g=f==tn?c.constructor:e,h=g?qs(g):"";if(h)switch(h){case ek:return Ar;case tk:return je;case nk:return Mt;case ik:return cn;case rk:return Vi}return f},"getTag"));function E2(c,f,g){for(var h=-1,A=g.length;++h<A;){var P=g[h],N=P.size;switch(P.type){case"drop":c+=N;break;case"dropRight":f-=N;break;case"take":f=di(f,c+N);break;case"takeRight":c=$n(c,f-N);break}}return{start:c,end:f}}a(E2,"getView");function b2(c){var f=c.match(IM);return f?f[1].split(OM):[]}a(b2,"getWrapDetails");function JI(c,f,g){f=Ha(f,c);for(var h=-1,A=f.length,P=!1;++h<A;){var N=xo(f[h]);if(!(P=c!=null&&g(c,N)))break;c=c[N]}return P||++h!=A?P:(A=c==null?0:c.length,!!A&&Zd(A)&&oa(N,A)&&(He(c)||Zs(c)))}a(JI,"hasPath");function A2(c){var f=c.length,g=new c.constructor(f);return f&&typeof c[0]=="string"&&Ct.call(c,"index")&&(g.index=c.index,g.input=c.input),g}a(A2,"initCloneArray");function YI(c){return typeof c.constructor=="function"&&!Xf(c)?ol(Id(c)):{}}a(YI,"initCloneObject");function S2(c,f,g){var h=c.constructor;switch(f){case Ws:return Rv(c);case O:case S:return new h(+c);case Ar:return o2(c,g);case Lf:case Ff:case _f:case Gs:case $:case W:case Y:case ie:case Ne:return LI(c,g);case je:return new h;case Et:case pi:return new h(c);case ir:return a2(c);case cn:return new h;case Vt:return s2(c)}}a(S2,"initCloneByTag");function x2(c,f){var g=f.length;if(!g)return c;var h=g-1;return f[h]=(g>1?"& ":"")+f[h],f=f.join(g>2?", ":" "),c.replace(PM,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
|
-
`)}a(x2,"insertWrapDetails");function P2(c){return He(c)||Zs(c)||!!(eI&&c&&c[eI])}a(P2,"isFlattenable");function oa(c,f){var g=typeof c;return f=f??Fe,!!f&&(g=="number"||g!="symbol"&&MM.test(c))&&c>-1&&c%1==0&&c<f}a(oa,"isIndex");function Ii(c,f,g){if(!fn(g))return!1;var h=typeof f;return(h=="number"?ji(g)&&oa(f,g.length):h=="string"&&f in g)?Yr(g[f],c):!1}a(Ii,"isIterateeCall");function kv(c,f){if(He(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||cr(c)?!0:dd.test(c)||!rr.test(c)||f!=null&&c in jt(f)}a(kv,"isKey");function I2(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}a(I2,"isKeyable");function jv(c){var f=Hd(c),g=x[f];if(typeof g!="function"||!(f in lt.prototype))return!1;if(c===g)return!0;var h=wv(g);return!!h&&c===h[0]}a(jv,"isLaziable");function O2(c){return!!QP&&QP in c}a(O2,"isMasked");var C2=bd?aa:nT;function Xf(c){var f=c&&c.constructor,g=typeof f=="function"&&f.prototype||tl;return c===g}a(Xf,"isPrototype");function QI(c){return c===c&&!fn(c)}a(QI,"isStrictComparable");function zI(c,f){return function(g){return g==null?!1:g[c]===f&&(f!==e||c in jt(g))}}a(zI,"matchesStrictComparable");function N2(c){var f=zd(c,function(h){return g.size===l&&g.clear(),h}),g=f.cache;return f}a(N2,"memoizeCapped");function R2(c,f){var g=c[1],h=f[1],A=g|h,P=A<(E|C|re),N=h==re&&g==L||h==re&&g==Ce&&c[7].length<=f[8]||h==(re|Ce)&&f[7].length<=f[8]&&g==L;if(!(P||N))return c;h&E&&(c[2]=f[2],A|=g&E?0:R);var D=f[3];if(D){var j=c[3];c[3]=j?_I(j,D,f[4]):D,c[4]=j?$a(c[3],u):f[4]}return D=f[5],D&&(j=c[5],c[5]=j?DI(j,D,f[6]):D,c[6]=j?$a(c[5],u):f[6]),D=f[7],D&&(c[7]=D),h&re&&(c[8]=c[8]==null?f[8]:di(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=A,c}a(R2,"mergeData");function L2(c){var f=[];if(c!=null)for(var g in jt(c))f.push(g);return f}a(L2,"nativeKeysIn");function F2(c){return Sd.call(c)}a(F2,"objectToString");function qI(c,f,g){return f=$n(f===e?c.length-1:f,0),function(){for(var h=arguments,A=-1,P=$n(h.length-f,0),N=H(P);++A<P;)N[A]=h[f+A];A=-1;for(var D=H(f+1);++A<f;)D[A]=h[A];return D[f]=g(N),or(c,this,D)}}a(qI,"overRest");function ZI(c,f){return f.length<2?c:Qs(c,Cr(f,0,-1))}a(ZI,"parent");function _2(c,f){for(var g=c.length,h=di(f.length,g),A=ki(c);h--;){var P=f[h];c[h]=oa(P,g)?A[P]:e}return c}a(_2,"reorder");function $v(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}a($v,"safeGet");var eO=nO(SI),Jf=XV||function(c,f){return Xn.setTimeout(c,f)},Uv=nO(t2);function tO(c,f,g){var h=f+"";return Uv(c,x2(h,D2(b2(h),g)))}a(tO,"setWrapToString");function nO(c){var f=0,g=0;return function(){var h=zV(),A=Ke-(h-g);if(g=h,A>0){if(++f>=ht)return arguments[0]}else f=0;return c.apply(e,arguments)}}a(nO,"shortOut");function Xd(c,f){var g=-1,h=c.length,A=h-1;for(f=f===e?h:f;++g<f;){var P=Sv(g,A),N=c[P];c[P]=c[g],c[g]=N}return c.length=f,c}a(Xd,"shuffleSelf");var iO=N2(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(Hy,function(g,h,A,P){f.push(A?P.replace(RM,"$1"):h||g)}),f});function xo(c){if(typeof c=="string"||cr(c))return c;var f=c+"";return f=="0"&&1/c==-Zt?"-0":f}a(xo,"toKey");function qs(c){if(c!=null){try{return Ad.call(c)}catch{}try{return c+""}catch{}}return""}a(qs,"toSource");function D2(c,f){return xr(Re,function(g){var h="_."+g[0];f&g[1]&&!yd(c,h)&&c.push(h)}),c.sort()}a(D2,"updateWrapDetails");function rO(c){if(c instanceof lt)return c.clone();var f=new Ir(c.__wrapped__,c.__chain__);return f.__actions__=ki(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}a(rO,"wrapperClone");function w2(c,f,g){(g?Ii(c,f,g):f===e)?f=1:f=$n(Je(f),0);var h=c==null?0:c.length;if(!h||f<1)return[];for(var A=0,P=0,N=H(Nd(h/f));A<h;)N[P++]=Cr(c,A,A+=f);return N}a(w2,"chunk");function M2(c){for(var f=-1,g=c==null?0:c.length,h=0,A=[];++f<g;){var P=c[f];P&&(A[h++]=P)}return A}a(M2,"compact");function V2(){var c=arguments.length;if(!c)return[];for(var f=H(c-1),g=arguments[0],h=c;h--;)f[h-1]=arguments[h];return ja(He(g)?ki(g):[g],ri(f,1))}a(V2,"concat");var k2=Ze(function(c,f){return Sn(c)?Bf(c,ri(f,1,Sn,!0)):[]}),j2=Ze(function(c,f){var g=Nr(f);return Sn(g)&&(g=e),Sn(c)?Bf(c,ri(f,1,Sn,!0),_e(g,2)):[]}),$2=Ze(function(c,f){var g=Nr(f);return Sn(g)&&(g=e),Sn(c)?Bf(c,ri(f,1,Sn,!0),e,g):[]});function U2(c,f,g){var h=c==null?0:c.length;return h?(f=g||f===e?1:Je(f),Cr(c,f<0?0:f,h)):[]}a(U2,"drop");function B2(c,f,g){var h=c==null?0:c.length;return h?(f=g||f===e?1:Je(f),f=h-f,Cr(c,0,f<0?0:f)):[]}a(B2,"dropRight");function W2(c,f){return c&&c.length?jd(c,_e(f,3),!0,!0):[]}a(W2,"dropRightWhile");function G2(c,f){return c&&c.length?jd(c,_e(f,3),!0):[]}a(G2,"dropWhile");function H2(c,f,g,h){var A=c==null?0:c.length;return A?(g&&typeof g!="number"&&Ii(c,f,g)&&(g=0,h=A),Mk(c,f,g,h)):[]}a(H2,"fill");function oO(c,f,g){var h=c==null?0:c.length;if(!h)return-1;var A=g==null?0:Je(g);return A<0&&(A=$n(h+A,0)),vd(c,_e(f,3),A)}a(oO,"findIndex");function aO(c,f,g){var h=c==null?0:c.length;if(!h)return-1;var A=h-1;return g!==e&&(A=Je(g),A=g<0?$n(h+A,0):di(A,h-1)),vd(c,_e(f,3),A,!0)}a(aO,"findLastIndex");function sO(c){var f=c==null?0:c.length;return f?ri(c,1):[]}a(sO,"flatten");function K2(c){var f=c==null?0:c.length;return f?ri(c,Zt):[]}a(K2,"flattenDeep");function X2(c,f){var g=c==null?0:c.length;return g?(f=f===e?1:Je(f),ri(c,f)):[]}a(X2,"flattenDepth");function J2(c){for(var f=-1,g=c==null?0:c.length,h={};++f<g;){var A=c[f];h[A[0]]=A[1]}return h}a(J2,"fromPairs");function cO(c){return c&&c.length?c[0]:e}a(cO,"head");function Y2(c,f,g){var h=c==null?0:c.length;if(!h)return-1;var A=g==null?0:Je(g);return A<0&&(A=$n(h+A,0)),qc(c,f,A)}a(Y2,"indexOf");function Q2(c){var f=c==null?0:c.length;return f?Cr(c,0,-1):[]}a(Q2,"initial");var z2=Ze(function(c){var f=rn(c,Cv);return f.length&&f[0]===c[0]?vv(f):[]}),q2=Ze(function(c){var f=Nr(c),g=rn(c,Cv);return f===Nr(g)?f=e:g.pop(),g.length&&g[0]===c[0]?vv(g,_e(f,2)):[]}),Z2=Ze(function(c){var f=Nr(c),g=rn(c,Cv);return f=typeof f=="function"?f:e,f&&g.pop(),g.length&&g[0]===c[0]?vv(g,e,f):[]});function ej(c,f){return c==null?"":YV.call(c,f)}a(ej,"join");function Nr(c){var f=c==null?0:c.length;return f?c[f-1]:e}a(Nr,"last");function tj(c,f,g){var h=c==null?0:c.length;if(!h)return-1;var A=h;return g!==e&&(A=Je(g),A=A<0?$n(h+A,0):di(A,h-1)),f===f?_V(c,f,A):vd(c,BP,A,!0)}a(tj,"lastIndexOf");function nj(c,f){return c&&c.length?TI(c,Je(f)):e}a(nj,"nth");var ij=Ze(lO);function lO(c,f){return c&&c.length&&f&&f.length?Av(c,f):c}a(lO,"pullAll");function rj(c,f,g){return c&&c.length&&f&&f.length?Av(c,f,_e(g,2)):c}a(rj,"pullAllBy");function oj(c,f,g){return c&&c.length&&f&&f.length?Av(c,f,e,g):c}a(oj,"pullAllWith");var aj=ra(function(c,f){var g=c==null?0:c.length,h=gv(c,f);return AI(c,rn(f,function(A){return oa(A,g)?+A:A}).sort(FI)),h});function sj(c,f){var g=[];if(!(c&&c.length))return g;var h=-1,A=[],P=c.length;for(f=_e(f,3);++h<P;){var N=c[h];f(N,h,c)&&(g.push(N),A.push(h))}return AI(c,A),g}a(sj,"remove");function Bv(c){return c==null?c:ZV.call(c)}a(Bv,"reverse");function cj(c,f,g){var h=c==null?0:c.length;return h?(g&&typeof g!="number"&&Ii(c,f,g)?(f=0,g=h):(f=f==null?0:Je(f),g=g===e?h:Je(g)),Cr(c,f,g)):[]}a(cj,"slice");function lj(c,f){return kd(c,f)}a(lj,"sortedIndex");function fj(c,f,g){return Pv(c,f,_e(g,2))}a(fj,"sortedIndexBy");function uj(c,f){var g=c==null?0:c.length;if(g){var h=kd(c,f);if(h<g&&Yr(c[h],f))return h}return-1}a(uj,"sortedIndexOf");function pj(c,f){return kd(c,f,!0)}a(pj,"sortedLastIndex");function dj(c,f,g){return Pv(c,f,_e(g,2),!0)}a(dj,"sortedLastIndexBy");function gj(c,f){var g=c==null?0:c.length;if(g){var h=kd(c,f,!0)-1;if(Yr(c[h],f))return h}return-1}a(gj,"sortedLastIndexOf");function mj(c){return c&&c.length?xI(c):[]}a(mj,"sortedUniq");function hj(c,f){return c&&c.length?xI(c,_e(f,2)):[]}a(hj,"sortedUniqBy");function yj(c){var f=c==null?0:c.length;return f?Cr(c,1,f):[]}a(yj,"tail");function vj(c,f,g){return c&&c.length?(f=g||f===e?1:Je(f),Cr(c,0,f<0?0:f)):[]}a(vj,"take");function Tj(c,f,g){var h=c==null?0:c.length;return h?(f=g||f===e?1:Je(f),f=h-f,Cr(c,f<0?0:f,h)):[]}a(Tj,"takeRight");function Ej(c,f){return c&&c.length?jd(c,_e(f,3),!1,!0):[]}a(Ej,"takeRightWhile");function bj(c,f){return c&&c.length?jd(c,_e(f,3)):[]}a(bj,"takeWhile");var Aj=Ze(function(c){return Ga(ri(c,1,Sn,!0))}),Sj=Ze(function(c){var f=Nr(c);return Sn(f)&&(f=e),Ga(ri(c,1,Sn,!0),_e(f,2))}),xj=Ze(function(c){var f=Nr(c);return f=typeof f=="function"?f:e,Ga(ri(c,1,Sn,!0),e,f)});function Pj(c){return c&&c.length?Ga(c):[]}a(Pj,"uniq");function Ij(c,f){return c&&c.length?Ga(c,_e(f,2)):[]}a(Ij,"uniqBy");function Oj(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ga(c,e,f):[]}a(Oj,"uniqWith");function Wv(c){if(!(c&&c.length))return[];var f=0;return c=ka(c,function(g){if(Sn(g))return f=$n(g.length,f),!0}),av(f,function(g){return rn(c,iv(g))})}a(Wv,"unzip");function fO(c,f){if(!(c&&c.length))return[];var g=Wv(c);return f==null?g:rn(g,function(h){return or(f,e,h)})}a(fO,"unzipWith");var Cj=Ze(function(c,f){return Sn(c)?Bf(c,f):[]}),Nj=Ze(function(c){return Ov(ka(c,Sn))}),Rj=Ze(function(c){var f=Nr(c);return Sn(f)&&(f=e),Ov(ka(c,Sn),_e(f,2))}),Lj=Ze(function(c){var f=Nr(c);return f=typeof f=="function"?f:e,Ov(ka(c,Sn),e,f)}),Fj=Ze(Wv);function _j(c,f){return CI(c||[],f||[],Uf)}a(_j,"zipObject");function Dj(c,f){return CI(c||[],f||[],Hf)}a(Dj,"zipObjectDeep");var wj=Ze(function(c){var f=c.length,g=f>1?c[f-1]:e;return g=typeof g=="function"?(c.pop(),g):e,fO(c,g)});function uO(c){var f=x(c);return f.__chain__=!0,f}a(uO,"chain");function Mj(c,f){return f(c),c}a(Mj,"tap");function Jd(c,f){return f(c)}a(Jd,"thru");var Vj=ra(function(c){var f=c.length,g=f?c[0]:0,h=this.__wrapped__,A=a(function(P){return gv(P,c)},"interceptor");return f>1||this.__actions__.length||!(h instanceof lt)||!oa(g)?this.thru(A):(h=h.slice(g,+g+(f?1:0)),h.__actions__.push({func:Jd,args:[A],thisArg:e}),new Ir(h,this.__chain__).thru(function(P){return f&&!P.length&&P.push(e),P}))});function kj(){return uO(this)}a(kj,"wrapperChain");function jj(){return new Ir(this.value(),this.__chain__)}a(jj,"wrapperCommit");function $j(){this.__values__===e&&(this.__values__=PO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}a($j,"wrapperNext");function Uj(){return this}a(Uj,"wrapperToIterator");function Bj(c){for(var f,g=this;g instanceof _d;){var h=rO(g);h.__index__=0,h.__values__=e,f?A.__wrapped__=h:f=h;var A=h;g=g.__wrapped__}return A.__wrapped__=c,f}a(Bj,"wrapperPlant");function Wj(){var c=this.__wrapped__;if(c instanceof lt){var f=c;return this.__actions__.length&&(f=new lt(this)),f=f.reverse(),f.__actions__.push({func:Jd,args:[Bv],thisArg:e}),new Ir(f,this.__chain__)}return this.thru(Bv)}a(Wj,"wrapperReverse");function Gj(){return OI(this.__wrapped__,this.__actions__)}a(Gj,"wrapperValue");var Hj=$d(function(c,f,g){Ct.call(c,g)?++c[g]:na(c,g,1)});function Kj(c,f,g){var h=He(c)?$P:wk;return g&&Ii(c,f,g)&&(f=e),h(c,_e(f,3))}a(Kj,"every");function Xj(c,f){var g=He(c)?ka:fI;return g(c,_e(f,3))}a(Xj,"filter");var Jj=kI(oO),Yj=kI(aO);function Qj(c,f){return ri(Yd(c,f),1)}a(Qj,"flatMap");function zj(c,f){return ri(Yd(c,f),Zt)}a(zj,"flatMapDeep");function qj(c,f,g){return g=g===e?1:Je(g),ri(Yd(c,f),g)}a(qj,"flatMapDepth");function pO(c,f){var g=He(c)?xr:Wa;return g(c,_e(f,3))}a(pO,"forEach");function dO(c,f){var g=He(c)?hV:lI;return g(c,_e(f,3))}a(dO,"forEachRight");var Zj=$d(function(c,f,g){Ct.call(c,g)?c[g].push(f):na(c,g,[f])});function e$(c,f,g,h){c=ji(c)?c:ll(c),g=g&&!h?Je(g):0;var A=c.length;return g<0&&(g=$n(A+g,0)),eg(c)?g<=A&&c.indexOf(f,g)>-1:!!A&&qc(c,f,g)>-1}a(e$,"includes");var t$=Ze(function(c,f,g){var h=-1,A=typeof f=="function",P=ji(c)?H(c.length):[];return Wa(c,function(N){P[++h]=A?or(f,N,g):Wf(N,f,g)}),P}),n$=$d(function(c,f,g){na(c,g,f)});function Yd(c,f){var g=He(c)?rn:hI;return g(c,_e(f,3))}a(Yd,"map");function i$(c,f,g,h){return c==null?[]:(He(f)||(f=f==null?[]:[f]),g=h?e:g,He(g)||(g=g==null?[]:[g]),EI(c,f,g))}a(i$,"orderBy");var r$=$d(function(c,f,g){c[g?0:1].push(f)},function(){return[[],[]]});function o$(c,f,g){var h=He(c)?tv:GP,A=arguments.length<3;return h(c,_e(f,4),g,A,Wa)}a(o$,"reduce");function a$(c,f,g){var h=He(c)?yV:GP,A=arguments.length<3;return h(c,_e(f,4),g,A,lI)}a(a$,"reduceRight");function s$(c,f){var g=He(c)?ka:fI;return g(c,qd(_e(f,3)))}a(s$,"reject");function c$(c){var f=He(c)?oI:Zk;return f(c)}a(c$,"sample");function l$(c,f,g){(g?Ii(c,f,g):f===e)?f=1:f=Je(f);var h=He(c)?Rk:e2;return h(c,f)}a(l$,"sampleSize");function f$(c){var f=He(c)?Lk:n2;return f(c)}a(f$,"shuffle");function u$(c){if(c==null)return 0;if(ji(c))return eg(c)?el(c):c.length;var f=gi(c);return f==je||f==cn?c.size:Ev(c).length}a(u$,"size");function p$(c,f,g){var h=He(c)?nv:i2;return g&&Ii(c,f,g)&&(f=e),h(c,_e(f,3))}a(p$,"some");var d$=Ze(function(c,f){if(c==null)return[];var g=f.length;return g>1&&Ii(c,f[0],f[1])?f=[]:g>2&&Ii(f[0],f[1],f[2])&&(f=[f[0]]),EI(c,ri(f,1),[])}),Qd=KV||function(){return Xn.Date.now()};function g$(c,f){if(typeof f!="function")throw new Pr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}a(g$,"after");function gO(c,f,g){return f=g?e:f,f=c&&f==null?c.length:f,ia(c,re,e,e,e,e,f)}a(gO,"ary");function mO(c,f){var g;if(typeof f!="function")throw new Pr(r);return c=Je(c),function(){return--c>0&&(g=f.apply(this,arguments)),c<=1&&(f=e),g}}a(mO,"before");var Gv=Ze(function(c,f,g){var h=E;if(g.length){var A=$a(g,sl(Gv));h|=U}return ia(c,h,f,g,A)}),hO=Ze(function(c,f,g){var h=E|C;if(g.length){var A=$a(g,sl(hO));h|=U}return ia(f,h,c,g,A)});function yO(c,f,g){f=g?e:f;var h=ia(c,L,e,e,e,e,e,f);return h.placeholder=yO.placeholder,h}a(yO,"curry");function vO(c,f,g){f=g?e:f;var h=ia(c,F,e,e,e,e,e,f);return h.placeholder=vO.placeholder,h}a(vO,"curryRight");function TO(c,f,g){var h,A,P,N,D,j,z=0,q=!1,Z=!1,de=!0;if(typeof c!="function")throw new Pr(r);f=Rr(f)||0,fn(g)&&(q=!!g.leading,Z="maxWait"in g,P=Z?$n(Rr(g.maxWait)||0,f):P,de="trailing"in g?!!g.trailing:de);function Oe(xn){var Qr=h,ca=A;return h=A=e,z=xn,N=c.apply(ca,Qr),N}a(Oe,"invokeFunc");function De(xn){return z=xn,D=Jf(rt,f),q?Oe(xn):N}a(De,"leadingEdge");function ze(xn){var Qr=xn-j,ca=xn-z,kO=f-Qr;return Z?di(kO,P-ca):kO}a(ze,"remainingWait");function we(xn){var Qr=xn-j,ca=xn-z;return j===e||Qr>=f||Qr<0||Z&&ca>=P}a(we,"shouldInvoke");function rt(){var xn=Qd();if(we(xn))return ut(xn);D=Jf(rt,ze(xn))}a(rt,"timerExpired");function ut(xn){return D=e,de&&h?Oe(xn):(h=A=e,N)}a(ut,"trailingEdge");function lr(){D!==e&&NI(D),z=0,h=j=A=D=e}a(lr,"cancel");function Oi(){return D===e?N:ut(Qd())}a(Oi,"flush");function fr(){var xn=Qd(),Qr=we(xn);if(h=arguments,A=this,j=xn,Qr){if(D===e)return De(j);if(Z)return NI(D),D=Jf(rt,f),Oe(j)}return D===e&&(D=Jf(rt,f)),N}return a(fr,"debounced"),fr.cancel=lr,fr.flush=Oi,fr}a(TO,"debounce");var m$=Ze(function(c,f){return cI(c,1,f)}),h$=Ze(function(c,f,g){return cI(c,Rr(f)||0,g)});function y$(c){return ia(c,st)}a(y$,"flip");function zd(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Pr(r);var g=a(function(){var h=arguments,A=f?f.apply(this,h):h[0],P=g.cache;if(P.has(A))return P.get(A);var N=c.apply(this,h);return g.cache=P.set(A,N)||P,N},"memoized");return g.cache=new(zd.Cache||ta),g}a(zd,"memoize"),zd.Cache=ta;function qd(c){if(typeof c!="function")throw new Pr(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)}}a(qd,"negate");function v$(c){return mO(2,c)}a(v$,"once");var T$=r2(function(c,f){f=f.length==1&&He(f[0])?rn(f[0],ar(_e())):rn(ri(f,1),ar(_e()));var g=f.length;return Ze(function(h){for(var A=-1,P=di(h.length,g);++A<P;)h[A]=f[A].call(this,h[A]);return or(c,this,h)})}),Hv=Ze(function(c,f){var g=$a(f,sl(Hv));return ia(c,U,e,f,g)}),EO=Ze(function(c,f){var g=$a(f,sl(EO));return ia(c,J,e,f,g)}),E$=ra(function(c,f){return ia(c,Ce,e,e,e,f)});function b$(c,f){if(typeof c!="function")throw new Pr(r);return f=f===e?f:Je(f),Ze(c,f)}a(b$,"rest");function A$(c,f){if(typeof c!="function")throw new Pr(r);return f=f==null?0:$n(Je(f),0),Ze(function(g){var h=g[f],A=Ka(g,0,f);return h&&ja(A,h),or(c,this,A)})}a(A$,"spread");function S$(c,f,g){var h=!0,A=!0;if(typeof c!="function")throw new Pr(r);return fn(g)&&(h="leading"in g?!!g.leading:h,A="trailing"in g?!!g.trailing:A),TO(c,f,{leading:h,maxWait:f,trailing:A})}a(S$,"throttle");function x$(c){return gO(c,1)}a(x$,"unary");function P$(c,f){return Hv(Nv(f),c)}a(P$,"wrap");function I$(){if(!arguments.length)return[];var c=arguments[0];return He(c)?c:[c]}a(I$,"castArray");function O$(c){return Or(c,m)}a(O$,"clone");function C$(c,f){return f=typeof f=="function"?f:e,Or(c,m,f)}a(C$,"cloneWith");function N$(c){return Or(c,p|m)}a(N$,"cloneDeep");function R$(c,f){return f=typeof f=="function"?f:e,Or(c,p|m,f)}a(R$,"cloneDeepWith");function L$(c,f){return f==null||sI(c,f,Jn(f))}a(L$,"conformsTo");function Yr(c,f){return c===f||c!==c&&f!==f}a(Yr,"eq");var F$=Gd(yv),_$=Gd(function(c,f){return c>=f}),Zs=dI(function(){return arguments}())?dI:function(c){return dn(c)&&Ct.call(c,"callee")&&!ZP.call(c,"callee")},He=H.isArray,D$=DP?ar(DP):Uk;function ji(c){return c!=null&&Zd(c.length)&&!aa(c)}a(ji,"isArrayLike");function Sn(c){return dn(c)&&ji(c)}a(Sn,"isArrayLikeObject");function w$(c){return c===!0||c===!1||dn(c)&&Pi(c)==O}a(w$,"isBoolean");var Xa=JV||nT,M$=wP?ar(wP):Bk;function V$(c){return dn(c)&&c.nodeType===1&&!Yf(c)}a(V$,"isElement");function k$(c){if(c==null)return!0;if(ji(c)&&(He(c)||typeof c=="string"||typeof c.splice=="function"||Xa(c)||cl(c)||Zs(c)))return!c.length;var f=gi(c);if(f==je||f==cn)return!c.size;if(Xf(c))return!Ev(c).length;for(var g in c)if(Ct.call(c,g))return!1;return!0}a(k$,"isEmpty");function j$(c,f){return Gf(c,f)}a(j$,"isEqual");function $$(c,f,g){g=typeof g=="function"?g:e;var h=g?g(c,f):e;return h===e?Gf(c,f,e,g):!!h}a($$,"isEqualWith");function Kv(c){if(!dn(c))return!1;var f=Pi(c);return f==M||f==Q||typeof c.message=="string"&&typeof c.name=="string"&&!Yf(c)}a(Kv,"isError");function U$(c){return typeof c=="number"&&tI(c)}a(U$,"isFinite");function aa(c){if(!fn(c))return!1;var f=Pi(c);return f==Le||f==ct||f==Qe||f==ii}a(aa,"isFunction");function bO(c){return typeof c=="number"&&c==Je(c)}a(bO,"isInteger");function Zd(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Fe}a(Zd,"isLength");function fn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}a(fn,"isObject");function dn(c){return c!=null&&typeof c=="object"}a(dn,"isObjectLike");var AO=MP?ar(MP):Gk;function B$(c,f){return c===f||Tv(c,f,Mv(f))}a(B$,"isMatch");function W$(c,f,g){return g=typeof g=="function"?g:e,Tv(c,f,Mv(f),g)}a(W$,"isMatchWith");function G$(c){return SO(c)&&c!=+c}a(G$,"isNaN");function H$(c){if(C2(c))throw new Ge(i);return gI(c)}a(H$,"isNative");function K$(c){return c===null}a(K$,"isNull");function X$(c){return c==null}a(X$,"isNil");function SO(c){return typeof c=="number"||dn(c)&&Pi(c)==Et}a(SO,"isNumber");function Yf(c){if(!dn(c)||Pi(c)!=tn)return!1;var f=Id(c);if(f===null)return!0;var g=Ct.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&Ad.call(g)==BV}a(Yf,"isPlainObject");var Xv=VP?ar(VP):Hk;function J$(c){return bO(c)&&c>=-Fe&&c<=Fe}a(J$,"isSafeInteger");var xO=kP?ar(kP):Kk;function eg(c){return typeof c=="string"||!He(c)&&dn(c)&&Pi(c)==pi}a(eg,"isString");function cr(c){return typeof c=="symbol"||dn(c)&&Pi(c)==Vt}a(cr,"isSymbol");var cl=jP?ar(jP):Xk;function Y$(c){return c===e}a(Y$,"isUndefined");function Q$(c){return dn(c)&&gi(c)==Vi}a(Q$,"isWeakMap");function z$(c){return dn(c)&&Pi(c)==Rf}a(z$,"isWeakSet");var q$=Gd(bv),Z$=Gd(function(c,f){return c<=f});function PO(c){if(!c)return[];if(ji(c))return eg(c)?Xr(c):ki(c);if(Mf&&c[Mf])return RV(c[Mf]());var f=gi(c),g=f==je?cv:f==cn?Td:ll;return g(c)}a(PO,"toArray");function sa(c){if(!c)return c===0?c:0;if(c=Rr(c),c===Zt||c===-Zt){var f=c<0?-1:1;return f*Hn}return c===c?c:0}a(sa,"toFinite");function Je(c){var f=sa(c),g=f%1;return f===f?g?f-g:f:0}a(Je,"toInteger");function IO(c){return c?Ys(Je(c),0,en):0}a(IO,"toLength");function Rr(c){if(typeof c=="number")return c;if(cr(c))return kn;if(fn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=fn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=HP(c);var g=_M.test(c);return g||wM.test(c)?dV(c.slice(2),g?2:8):FM.test(c)?kn:+c}a(Rr,"toNumber");function OO(c){return So(c,$i(c))}a(OO,"toPlainObject");function eU(c){return c?Ys(Je(c),-Fe,Fe):c===0?c:0}a(eU,"toSafeInteger");function Pt(c){return c==null?"":sr(c)}a(Pt,"toString");var tU=ol(function(c,f){if(Xf(f)||ji(f)){So(f,Jn(f),c);return}for(var g in f)Ct.call(f,g)&&Uf(c,g,f[g])}),CO=ol(function(c,f){So(f,$i(f),c)}),tg=ol(function(c,f,g,h){So(f,$i(f),c,h)}),nU=ol(function(c,f,g,h){So(f,Jn(f),c,h)}),iU=ra(gv);function rU(c,f){var g=rl(c);return f==null?g:aI(g,f)}a(rU,"create");var oU=Ze(function(c,f){c=jt(c);var g=-1,h=f.length,A=h>2?f[2]:e;for(A&&Ii(f[0],f[1],A)&&(h=1);++g<h;)for(var P=f[g],N=$i(P),D=-1,j=N.length;++D<j;){var z=N[D],q=c[z];(q===e||Yr(q,tl[z])&&!Ct.call(c,z))&&(c[z]=P[z])}return c}),aU=Ze(function(c){return c.push(e,HI),or(NO,e,c)});function sU(c,f){return UP(c,_e(f,3),Ao)}a(sU,"findKey");function cU(c,f){return UP(c,_e(f,3),hv)}a(cU,"findLastKey");function lU(c,f){return c==null?c:mv(c,_e(f,3),$i)}a(lU,"forIn");function fU(c,f){return c==null?c:uI(c,_e(f,3),$i)}a(fU,"forInRight");function uU(c,f){return c&&Ao(c,_e(f,3))}a(uU,"forOwn");function pU(c,f){return c&&hv(c,_e(f,3))}a(pU,"forOwnRight");function dU(c){return c==null?[]:Md(c,Jn(c))}a(dU,"functions");function gU(c){return c==null?[]:Md(c,$i(c))}a(gU,"functionsIn");function Jv(c,f,g){var h=c==null?e:Qs(c,f);return h===e?g:h}a(Jv,"get");function mU(c,f){return c!=null&&JI(c,f,Vk)}a(mU,"has");function Yv(c,f){return c!=null&&JI(c,f,kk)}a(Yv,"hasIn");var hU=$I(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=Sd.call(f)),c[f]=g},zv(Ui)),yU=$I(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=Sd.call(f)),Ct.call(c,f)?c[f].push(g):c[f]=[g]},_e),vU=Ze(Wf);function Jn(c){return ji(c)?rI(c):Ev(c)}a(Jn,"keys");function $i(c){return ji(c)?rI(c,!0):Jk(c)}a($i,"keysIn");function TU(c,f){var g={};return f=_e(f,3),Ao(c,function(h,A,P){na(g,f(h,A,P),h)}),g}a(TU,"mapKeys");function EU(c,f){var g={};return f=_e(f,3),Ao(c,function(h,A,P){na(g,A,f(h,A,P))}),g}a(EU,"mapValues");var bU=ol(function(c,f,g){Vd(c,f,g)}),NO=ol(function(c,f,g,h){Vd(c,f,g,h)}),AU=ra(function(c,f){var g={};if(c==null)return g;var h=!1;f=rn(f,function(P){return P=Ha(P,c),h||(h=P.length>1),P}),So(c,Dv(c),g),h&&(g=Or(g,p|d|m,m2));for(var A=f.length;A--;)Iv(g,f[A]);return g});function SU(c,f){return RO(c,qd(_e(f)))}a(SU,"omitBy");var xU=ra(function(c,f){return c==null?{}:Qk(c,f)});function RO(c,f){if(c==null)return{};var g=rn(Dv(c),function(h){return[h]});return f=_e(f),bI(c,g,function(h,A){return f(h,A[0])})}a(RO,"pickBy");function PU(c,f,g){f=Ha(f,c);var h=-1,A=f.length;for(A||(A=1,c=e);++h<A;){var P=c==null?e:c[xo(f[h])];P===e&&(h=A,P=g),c=aa(P)?P.call(c):P}return c}a(PU,"result");function IU(c,f,g){return c==null?c:Hf(c,f,g)}a(IU,"set");function OU(c,f,g,h){return h=typeof h=="function"?h:e,c==null?c:Hf(c,f,g,h)}a(OU,"setWith");var LO=WI(Jn),FO=WI($i);function CU(c,f,g){var h=He(c),A=h||Xa(c)||cl(c);if(f=_e(f,4),g==null){var P=c&&c.constructor;A?g=h?new P:[]:fn(c)?g=aa(P)?rl(Id(c)):{}:g={}}return(A?xr:Ao)(c,function(N,D,j){return f(g,N,D,j)}),g}a(CU,"transform");function NU(c,f){return c==null?!0:Iv(c,f)}a(NU,"unset");function RU(c,f,g){return c==null?c:II(c,f,Nv(g))}a(RU,"update");function LU(c,f,g,h){return h=typeof h=="function"?h:e,c==null?c:II(c,f,Nv(g),h)}a(LU,"updateWith");function ll(c){return c==null?[]:sv(c,Jn(c))}a(ll,"values");function FU(c){return c==null?[]:sv(c,$i(c))}a(FU,"valuesIn");function _U(c,f,g){return g===e&&(g=f,f=e),g!==e&&(g=Rr(g),g=g===g?g:0),f!==e&&(f=Rr(f),f=f===f?f:0),Ys(Rr(c),f,g)}a(_U,"clamp");function DU(c,f,g){return f=sa(f),g===e?(g=f,f=0):g=sa(g),c=Rr(c),jk(c,f,g)}a(DU,"inRange");function wU(c,f,g){if(g&&typeof g!="boolean"&&Ii(c,f,g)&&(f=g=e),g===e&&(typeof f=="boolean"?(g=f,f=e):typeof c=="boolean"&&(g=c,c=e)),c===e&&f===e?(c=0,f=1):(c=sa(c),f===e?(f=c,c=0):f=sa(f)),c>f){var h=c;c=f,f=h}if(g||c%1||f%1){var A=nI();return di(c+A*(f-c+pV("1e-"+((A+"").length-1))),f)}return Sv(c,f)}a(wU,"random");var MU=al(function(c,f,g){return f=f.toLowerCase(),c+(g?_O(f):f)});function _O(c){return Qv(Pt(c).toLowerCase())}a(_O,"capitalize");function DO(c){return c=Pt(c),c&&c.replace(VM,PV).replace(nV,"")}a(DO,"deburr");function VU(c,f,g){c=Pt(c),f=sr(f);var h=c.length;g=g===e?h:Ys(Je(g),0,h);var A=g;return g-=f.length,g>=0&&c.slice(g,A)==f}a(VU,"endsWith");function kU(c){return c=Pt(c),c&&Ie.test(c)?c.replace(xe,IV):c}a(kU,"escape");function jU(c){return c=Pt(c),c&&SM.test(c)?c.replace(Df,"\\$&"):c}a(jU,"escapeRegExp");var $U=al(function(c,f,g){return c+(g?"-":"")+f.toLowerCase()}),UU=al(function(c,f,g){return c+(g?" ":"")+f.toLowerCase()}),BU=VI("toLowerCase");function WU(c,f,g){c=Pt(c),f=Je(f);var h=f?el(c):0;if(!f||h>=f)return c;var A=(f-h)/2;return Wd(Rd(A),g)+c+Wd(Nd(A),g)}a(WU,"pad");function GU(c,f,g){c=Pt(c),f=Je(f);var h=f?el(c):0;return f&&h<f?c+Wd(f-h,g):c}a(GU,"padEnd");function HU(c,f,g){c=Pt(c),f=Je(f);var h=f?el(c):0;return f&&h<f?Wd(f-h,g)+c:c}a(HU,"padStart");function KU(c,f,g){return g||f==null?f=0:f&&(f=+f),qV(Pt(c).replace(Ky,""),f||0)}a(KU,"parseInt");function XU(c,f,g){return(g?Ii(c,f,g):f===e)?f=1:f=Je(f),xv(Pt(c),f)}a(XU,"repeat");function JU(){var c=arguments,f=Pt(c[0]);return c.length<3?f:f.replace(c[1],c[2])}a(JU,"replace");var YU=al(function(c,f,g){return c+(g?"_":"")+f.toLowerCase()});function QU(c,f,g){return g&&typeof g!="number"&&Ii(c,f,g)&&(f=g=e),g=g===e?en:g>>>0,g?(c=Pt(c),c&&(typeof f=="string"||f!=null&&!Xv(f))&&(f=sr(f),!f&&Zc(c))?Ka(Xr(c),0,g):c.split(f,g)):[]}a(QU,"split");var zU=al(function(c,f,g){return c+(g?" ":"")+Qv(f)});function qU(c,f,g){return c=Pt(c),g=g==null?0:Ys(Je(g),0,c.length),f=sr(f),c.slice(g,g+f.length)==f}a(qU,"startsWith");function ZU(c,f,g){var h=x.templateSettings;g&&Ii(c,f,g)&&(f=e),c=Pt(c),f=tg({},f,h,GI);var A=tg({},f.imports,h.imports,GI),P=Jn(A),N=sv(A,P),D,j,z=0,q=f.interpolate||gd,Z="__p += '",de=lv((f.escape||gd).source+"|"+q.source+"|"+(q===nn?LM:gd).source+"|"+(f.evaluate||gd).source+"|$","g"),Oe="//# sourceURL="+(Ct.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sV+"]")+`
|
|
271
|
+
`)}a(x2,"insertWrapDetails");function P2(c){return He(c)||Zs(c)||!!(eI&&c&&c[eI])}a(P2,"isFlattenable");function oa(c,f){var g=typeof c;return f=f??Fe,!!f&&(g=="number"||g!="symbol"&&MM.test(c))&&c>-1&&c%1==0&&c<f}a(oa,"isIndex");function Ii(c,f,g){if(!fn(g))return!1;var h=typeof f;return(h=="number"?ji(g)&&oa(f,g.length):h=="string"&&f in g)?Yr(g[f],c):!1}a(Ii,"isIterateeCall");function kv(c,f){if(He(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||cr(c)?!0:dd.test(c)||!rr.test(c)||f!=null&&c in jt(f)}a(kv,"isKey");function I2(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}a(I2,"isKeyable");function jv(c){var f=Hd(c),g=x[f];if(typeof g!="function"||!(f in lt.prototype))return!1;if(c===g)return!0;var h=wv(g);return!!h&&c===h[0]}a(jv,"isLaziable");function O2(c){return!!QP&&QP in c}a(O2,"isMasked");var C2=bd?aa:nT;function Xf(c){var f=c&&c.constructor,g=typeof f=="function"&&f.prototype||nl;return c===g}a(Xf,"isPrototype");function QI(c){return c===c&&!fn(c)}a(QI,"isStrictComparable");function zI(c,f){return function(g){return g==null?!1:g[c]===f&&(f!==e||c in jt(g))}}a(zI,"matchesStrictComparable");function N2(c){var f=zd(c,function(h){return g.size===l&&g.clear(),h}),g=f.cache;return f}a(N2,"memoizeCapped");function R2(c,f){var g=c[1],h=f[1],A=g|h,P=A<(E|C|re),N=h==re&&g==L||h==re&&g==Ce&&c[7].length<=f[8]||h==(re|Ce)&&f[7].length<=f[8]&&g==L;if(!(P||N))return c;h&E&&(c[2]=f[2],A|=g&E?0:R);var D=f[3];if(D){var j=c[3];c[3]=j?_I(j,D,f[4]):D,c[4]=j?$a(c[3],u):f[4]}return D=f[5],D&&(j=c[5],c[5]=j?DI(j,D,f[6]):D,c[6]=j?$a(c[5],u):f[6]),D=f[7],D&&(c[7]=D),h&re&&(c[8]=c[8]==null?f[8]:di(c[8],f[8])),c[9]==null&&(c[9]=f[9]),c[0]=f[0],c[1]=A,c}a(R2,"mergeData");function L2(c){var f=[];if(c!=null)for(var g in jt(c))f.push(g);return f}a(L2,"nativeKeysIn");function F2(c){return Sd.call(c)}a(F2,"objectToString");function qI(c,f,g){return f=$n(f===e?c.length-1:f,0),function(){for(var h=arguments,A=-1,P=$n(h.length-f,0),N=H(P);++A<P;)N[A]=h[f+A];A=-1;for(var D=H(f+1);++A<f;)D[A]=h[A];return D[f]=g(N),or(c,this,D)}}a(qI,"overRest");function ZI(c,f){return f.length<2?c:Qs(c,Cr(f,0,-1))}a(ZI,"parent");function _2(c,f){for(var g=c.length,h=di(f.length,g),A=ki(c);h--;){var P=f[h];c[h]=oa(P,g)?A[P]:e}return c}a(_2,"reorder");function $v(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}a($v,"safeGet");var eO=nO(SI),Jf=XV||function(c,f){return Xn.setTimeout(c,f)},Uv=nO(t2);function tO(c,f,g){var h=f+"";return Uv(c,x2(h,D2(b2(h),g)))}a(tO,"setWrapToString");function nO(c){var f=0,g=0;return function(){var h=zV(),A=Ke-(h-g);if(g=h,A>0){if(++f>=ht)return arguments[0]}else f=0;return c.apply(e,arguments)}}a(nO,"shortOut");function Xd(c,f){var g=-1,h=c.length,A=h-1;for(f=f===e?h:f;++g<f;){var P=Sv(g,A),N=c[P];c[P]=c[g],c[g]=N}return c.length=f,c}a(Xd,"shuffleSelf");var iO=N2(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(Hy,function(g,h,A,P){f.push(A?P.replace(RM,"$1"):h||g)}),f});function xo(c){if(typeof c=="string"||cr(c))return c;var f=c+"";return f=="0"&&1/c==-Zt?"-0":f}a(xo,"toKey");function qs(c){if(c!=null){try{return Ad.call(c)}catch{}try{return c+""}catch{}}return""}a(qs,"toSource");function D2(c,f){return xr(Re,function(g){var h="_."+g[0];f&g[1]&&!yd(c,h)&&c.push(h)}),c.sort()}a(D2,"updateWrapDetails");function rO(c){if(c instanceof lt)return c.clone();var f=new Ir(c.__wrapped__,c.__chain__);return f.__actions__=ki(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}a(rO,"wrapperClone");function w2(c,f,g){(g?Ii(c,f,g):f===e)?f=1:f=$n(Je(f),0);var h=c==null?0:c.length;if(!h||f<1)return[];for(var A=0,P=0,N=H(Nd(h/f));A<h;)N[P++]=Cr(c,A,A+=f);return N}a(w2,"chunk");function M2(c){for(var f=-1,g=c==null?0:c.length,h=0,A=[];++f<g;){var P=c[f];P&&(A[h++]=P)}return A}a(M2,"compact");function V2(){var c=arguments.length;if(!c)return[];for(var f=H(c-1),g=arguments[0],h=c;h--;)f[h-1]=arguments[h];return ja(He(g)?ki(g):[g],ri(f,1))}a(V2,"concat");var k2=et(function(c,f){return Sn(c)?Bf(c,ri(f,1,Sn,!0)):[]}),j2=et(function(c,f){var g=Nr(f);return Sn(g)&&(g=e),Sn(c)?Bf(c,ri(f,1,Sn,!0),_e(g,2)):[]}),$2=et(function(c,f){var g=Nr(f);return Sn(g)&&(g=e),Sn(c)?Bf(c,ri(f,1,Sn,!0),e,g):[]});function U2(c,f,g){var h=c==null?0:c.length;return h?(f=g||f===e?1:Je(f),Cr(c,f<0?0:f,h)):[]}a(U2,"drop");function B2(c,f,g){var h=c==null?0:c.length;return h?(f=g||f===e?1:Je(f),f=h-f,Cr(c,0,f<0?0:f)):[]}a(B2,"dropRight");function W2(c,f){return c&&c.length?jd(c,_e(f,3),!0,!0):[]}a(W2,"dropRightWhile");function G2(c,f){return c&&c.length?jd(c,_e(f,3),!0):[]}a(G2,"dropWhile");function H2(c,f,g,h){var A=c==null?0:c.length;return A?(g&&typeof g!="number"&&Ii(c,f,g)&&(g=0,h=A),Mk(c,f,g,h)):[]}a(H2,"fill");function oO(c,f,g){var h=c==null?0:c.length;if(!h)return-1;var A=g==null?0:Je(g);return A<0&&(A=$n(h+A,0)),vd(c,_e(f,3),A)}a(oO,"findIndex");function aO(c,f,g){var h=c==null?0:c.length;if(!h)return-1;var A=h-1;return g!==e&&(A=Je(g),A=g<0?$n(h+A,0):di(A,h-1)),vd(c,_e(f,3),A,!0)}a(aO,"findLastIndex");function sO(c){var f=c==null?0:c.length;return f?ri(c,1):[]}a(sO,"flatten");function K2(c){var f=c==null?0:c.length;return f?ri(c,Zt):[]}a(K2,"flattenDeep");function X2(c,f){var g=c==null?0:c.length;return g?(f=f===e?1:Je(f),ri(c,f)):[]}a(X2,"flattenDepth");function J2(c){for(var f=-1,g=c==null?0:c.length,h={};++f<g;){var A=c[f];h[A[0]]=A[1]}return h}a(J2,"fromPairs");function cO(c){return c&&c.length?c[0]:e}a(cO,"head");function Y2(c,f,g){var h=c==null?0:c.length;if(!h)return-1;var A=g==null?0:Je(g);return A<0&&(A=$n(h+A,0)),Zc(c,f,A)}a(Y2,"indexOf");function Q2(c){var f=c==null?0:c.length;return f?Cr(c,0,-1):[]}a(Q2,"initial");var z2=et(function(c){var f=rn(c,Cv);return f.length&&f[0]===c[0]?vv(f):[]}),q2=et(function(c){var f=Nr(c),g=rn(c,Cv);return f===Nr(g)?f=e:g.pop(),g.length&&g[0]===c[0]?vv(g,_e(f,2)):[]}),Z2=et(function(c){var f=Nr(c),g=rn(c,Cv);return f=typeof f=="function"?f:e,f&&g.pop(),g.length&&g[0]===c[0]?vv(g,e,f):[]});function ej(c,f){return c==null?"":YV.call(c,f)}a(ej,"join");function Nr(c){var f=c==null?0:c.length;return f?c[f-1]:e}a(Nr,"last");function tj(c,f,g){var h=c==null?0:c.length;if(!h)return-1;var A=h;return g!==e&&(A=Je(g),A=A<0?$n(h+A,0):di(A,h-1)),f===f?_V(c,f,A):vd(c,BP,A,!0)}a(tj,"lastIndexOf");function nj(c,f){return c&&c.length?TI(c,Je(f)):e}a(nj,"nth");var ij=et(lO);function lO(c,f){return c&&c.length&&f&&f.length?Av(c,f):c}a(lO,"pullAll");function rj(c,f,g){return c&&c.length&&f&&f.length?Av(c,f,_e(g,2)):c}a(rj,"pullAllBy");function oj(c,f,g){return c&&c.length&&f&&f.length?Av(c,f,e,g):c}a(oj,"pullAllWith");var aj=ra(function(c,f){var g=c==null?0:c.length,h=gv(c,f);return AI(c,rn(f,function(A){return oa(A,g)?+A:A}).sort(FI)),h});function sj(c,f){var g=[];if(!(c&&c.length))return g;var h=-1,A=[],P=c.length;for(f=_e(f,3);++h<P;){var N=c[h];f(N,h,c)&&(g.push(N),A.push(h))}return AI(c,A),g}a(sj,"remove");function Bv(c){return c==null?c:ZV.call(c)}a(Bv,"reverse");function cj(c,f,g){var h=c==null?0:c.length;return h?(g&&typeof g!="number"&&Ii(c,f,g)?(f=0,g=h):(f=f==null?0:Je(f),g=g===e?h:Je(g)),Cr(c,f,g)):[]}a(cj,"slice");function lj(c,f){return kd(c,f)}a(lj,"sortedIndex");function fj(c,f,g){return Pv(c,f,_e(g,2))}a(fj,"sortedIndexBy");function uj(c,f){var g=c==null?0:c.length;if(g){var h=kd(c,f);if(h<g&&Yr(c[h],f))return h}return-1}a(uj,"sortedIndexOf");function pj(c,f){return kd(c,f,!0)}a(pj,"sortedLastIndex");function dj(c,f,g){return Pv(c,f,_e(g,2),!0)}a(dj,"sortedLastIndexBy");function gj(c,f){var g=c==null?0:c.length;if(g){var h=kd(c,f,!0)-1;if(Yr(c[h],f))return h}return-1}a(gj,"sortedLastIndexOf");function mj(c){return c&&c.length?xI(c):[]}a(mj,"sortedUniq");function hj(c,f){return c&&c.length?xI(c,_e(f,2)):[]}a(hj,"sortedUniqBy");function yj(c){var f=c==null?0:c.length;return f?Cr(c,1,f):[]}a(yj,"tail");function vj(c,f,g){return c&&c.length?(f=g||f===e?1:Je(f),Cr(c,0,f<0?0:f)):[]}a(vj,"take");function Tj(c,f,g){var h=c==null?0:c.length;return h?(f=g||f===e?1:Je(f),f=h-f,Cr(c,f<0?0:f,h)):[]}a(Tj,"takeRight");function Ej(c,f){return c&&c.length?jd(c,_e(f,3),!1,!0):[]}a(Ej,"takeRightWhile");function bj(c,f){return c&&c.length?jd(c,_e(f,3)):[]}a(bj,"takeWhile");var Aj=et(function(c){return Ga(ri(c,1,Sn,!0))}),Sj=et(function(c){var f=Nr(c);return Sn(f)&&(f=e),Ga(ri(c,1,Sn,!0),_e(f,2))}),xj=et(function(c){var f=Nr(c);return f=typeof f=="function"?f:e,Ga(ri(c,1,Sn,!0),e,f)});function Pj(c){return c&&c.length?Ga(c):[]}a(Pj,"uniq");function Ij(c,f){return c&&c.length?Ga(c,_e(f,2)):[]}a(Ij,"uniqBy");function Oj(c,f){return f=typeof f=="function"?f:e,c&&c.length?Ga(c,e,f):[]}a(Oj,"uniqWith");function Wv(c){if(!(c&&c.length))return[];var f=0;return c=ka(c,function(g){if(Sn(g))return f=$n(g.length,f),!0}),av(f,function(g){return rn(c,iv(g))})}a(Wv,"unzip");function fO(c,f){if(!(c&&c.length))return[];var g=Wv(c);return f==null?g:rn(g,function(h){return or(f,e,h)})}a(fO,"unzipWith");var Cj=et(function(c,f){return Sn(c)?Bf(c,f):[]}),Nj=et(function(c){return Ov(ka(c,Sn))}),Rj=et(function(c){var f=Nr(c);return Sn(f)&&(f=e),Ov(ka(c,Sn),_e(f,2))}),Lj=et(function(c){var f=Nr(c);return f=typeof f=="function"?f:e,Ov(ka(c,Sn),e,f)}),Fj=et(Wv);function _j(c,f){return CI(c||[],f||[],Uf)}a(_j,"zipObject");function Dj(c,f){return CI(c||[],f||[],Hf)}a(Dj,"zipObjectDeep");var wj=et(function(c){var f=c.length,g=f>1?c[f-1]:e;return g=typeof g=="function"?(c.pop(),g):e,fO(c,g)});function uO(c){var f=x(c);return f.__chain__=!0,f}a(uO,"chain");function Mj(c,f){return f(c),c}a(Mj,"tap");function Jd(c,f){return f(c)}a(Jd,"thru");var Vj=ra(function(c){var f=c.length,g=f?c[0]:0,h=this.__wrapped__,A=a(function(P){return gv(P,c)},"interceptor");return f>1||this.__actions__.length||!(h instanceof lt)||!oa(g)?this.thru(A):(h=h.slice(g,+g+(f?1:0)),h.__actions__.push({func:Jd,args:[A],thisArg:e}),new Ir(h,this.__chain__).thru(function(P){return f&&!P.length&&P.push(e),P}))});function kj(){return uO(this)}a(kj,"wrapperChain");function jj(){return new Ir(this.value(),this.__chain__)}a(jj,"wrapperCommit");function $j(){this.__values__===e&&(this.__values__=PO(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}a($j,"wrapperNext");function Uj(){return this}a(Uj,"wrapperToIterator");function Bj(c){for(var f,g=this;g instanceof _d;){var h=rO(g);h.__index__=0,h.__values__=e,f?A.__wrapped__=h:f=h;var A=h;g=g.__wrapped__}return A.__wrapped__=c,f}a(Bj,"wrapperPlant");function Wj(){var c=this.__wrapped__;if(c instanceof lt){var f=c;return this.__actions__.length&&(f=new lt(this)),f=f.reverse(),f.__actions__.push({func:Jd,args:[Bv],thisArg:e}),new Ir(f,this.__chain__)}return this.thru(Bv)}a(Wj,"wrapperReverse");function Gj(){return OI(this.__wrapped__,this.__actions__)}a(Gj,"wrapperValue");var Hj=$d(function(c,f,g){Ct.call(c,g)?++c[g]:na(c,g,1)});function Kj(c,f,g){var h=He(c)?$P:wk;return g&&Ii(c,f,g)&&(f=e),h(c,_e(f,3))}a(Kj,"every");function Xj(c,f){var g=He(c)?ka:fI;return g(c,_e(f,3))}a(Xj,"filter");var Jj=kI(oO),Yj=kI(aO);function Qj(c,f){return ri(Yd(c,f),1)}a(Qj,"flatMap");function zj(c,f){return ri(Yd(c,f),Zt)}a(zj,"flatMapDeep");function qj(c,f,g){return g=g===e?1:Je(g),ri(Yd(c,f),g)}a(qj,"flatMapDepth");function pO(c,f){var g=He(c)?xr:Wa;return g(c,_e(f,3))}a(pO,"forEach");function dO(c,f){var g=He(c)?hV:lI;return g(c,_e(f,3))}a(dO,"forEachRight");var Zj=$d(function(c,f,g){Ct.call(c,g)?c[g].push(f):na(c,g,[f])});function e$(c,f,g,h){c=ji(c)?c:fl(c),g=g&&!h?Je(g):0;var A=c.length;return g<0&&(g=$n(A+g,0)),eg(c)?g<=A&&c.indexOf(f,g)>-1:!!A&&Zc(c,f,g)>-1}a(e$,"includes");var t$=et(function(c,f,g){var h=-1,A=typeof f=="function",P=ji(c)?H(c.length):[];return Wa(c,function(N){P[++h]=A?or(f,N,g):Wf(N,f,g)}),P}),n$=$d(function(c,f,g){na(c,g,f)});function Yd(c,f){var g=He(c)?rn:hI;return g(c,_e(f,3))}a(Yd,"map");function i$(c,f,g,h){return c==null?[]:(He(f)||(f=f==null?[]:[f]),g=h?e:g,He(g)||(g=g==null?[]:[g]),EI(c,f,g))}a(i$,"orderBy");var r$=$d(function(c,f,g){c[g?0:1].push(f)},function(){return[[],[]]});function o$(c,f,g){var h=He(c)?tv:GP,A=arguments.length<3;return h(c,_e(f,4),g,A,Wa)}a(o$,"reduce");function a$(c,f,g){var h=He(c)?yV:GP,A=arguments.length<3;return h(c,_e(f,4),g,A,lI)}a(a$,"reduceRight");function s$(c,f){var g=He(c)?ka:fI;return g(c,qd(_e(f,3)))}a(s$,"reject");function c$(c){var f=He(c)?oI:Zk;return f(c)}a(c$,"sample");function l$(c,f,g){(g?Ii(c,f,g):f===e)?f=1:f=Je(f);var h=He(c)?Rk:e2;return h(c,f)}a(l$,"sampleSize");function f$(c){var f=He(c)?Lk:n2;return f(c)}a(f$,"shuffle");function u$(c){if(c==null)return 0;if(ji(c))return eg(c)?tl(c):c.length;var f=gi(c);return f==je||f==cn?c.size:Ev(c).length}a(u$,"size");function p$(c,f,g){var h=He(c)?nv:i2;return g&&Ii(c,f,g)&&(f=e),h(c,_e(f,3))}a(p$,"some");var d$=et(function(c,f){if(c==null)return[];var g=f.length;return g>1&&Ii(c,f[0],f[1])?f=[]:g>2&&Ii(f[0],f[1],f[2])&&(f=[f[0]]),EI(c,ri(f,1),[])}),Qd=KV||function(){return Xn.Date.now()};function g$(c,f){if(typeof f!="function")throw new Pr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}a(g$,"after");function gO(c,f,g){return f=g?e:f,f=c&&f==null?c.length:f,ia(c,re,e,e,e,e,f)}a(gO,"ary");function mO(c,f){var g;if(typeof f!="function")throw new Pr(r);return c=Je(c),function(){return--c>0&&(g=f.apply(this,arguments)),c<=1&&(f=e),g}}a(mO,"before");var Gv=et(function(c,f,g){var h=E;if(g.length){var A=$a(g,cl(Gv));h|=U}return ia(c,h,f,g,A)}),hO=et(function(c,f,g){var h=E|C;if(g.length){var A=$a(g,cl(hO));h|=U}return ia(f,h,c,g,A)});function yO(c,f,g){f=g?e:f;var h=ia(c,L,e,e,e,e,e,f);return h.placeholder=yO.placeholder,h}a(yO,"curry");function vO(c,f,g){f=g?e:f;var h=ia(c,F,e,e,e,e,e,f);return h.placeholder=vO.placeholder,h}a(vO,"curryRight");function TO(c,f,g){var h,A,P,N,D,j,z=0,q=!1,Z=!1,de=!0;if(typeof c!="function")throw new Pr(r);f=Rr(f)||0,fn(g)&&(q=!!g.leading,Z="maxWait"in g,P=Z?$n(Rr(g.maxWait)||0,f):P,de="trailing"in g?!!g.trailing:de);function Oe(xn){var Qr=h,ca=A;return h=A=e,z=xn,N=c.apply(ca,Qr),N}a(Oe,"invokeFunc");function De(xn){return z=xn,D=Jf(rt,f),q?Oe(xn):N}a(De,"leadingEdge");function ze(xn){var Qr=xn-j,ca=xn-z,kO=f-Qr;return Z?di(kO,P-ca):kO}a(ze,"remainingWait");function we(xn){var Qr=xn-j,ca=xn-z;return j===e||Qr>=f||Qr<0||Z&&ca>=P}a(we,"shouldInvoke");function rt(){var xn=Qd();if(we(xn))return ut(xn);D=Jf(rt,ze(xn))}a(rt,"timerExpired");function ut(xn){return D=e,de&&h?Oe(xn):(h=A=e,N)}a(ut,"trailingEdge");function lr(){D!==e&&NI(D),z=0,h=j=A=D=e}a(lr,"cancel");function Oi(){return D===e?N:ut(Qd())}a(Oi,"flush");function fr(){var xn=Qd(),Qr=we(xn);if(h=arguments,A=this,j=xn,Qr){if(D===e)return De(j);if(Z)return NI(D),D=Jf(rt,f),Oe(j)}return D===e&&(D=Jf(rt,f)),N}return a(fr,"debounced"),fr.cancel=lr,fr.flush=Oi,fr}a(TO,"debounce");var m$=et(function(c,f){return cI(c,1,f)}),h$=et(function(c,f,g){return cI(c,Rr(f)||0,g)});function y$(c){return ia(c,st)}a(y$,"flip");function zd(c,f){if(typeof c!="function"||f!=null&&typeof f!="function")throw new Pr(r);var g=a(function(){var h=arguments,A=f?f.apply(this,h):h[0],P=g.cache;if(P.has(A))return P.get(A);var N=c.apply(this,h);return g.cache=P.set(A,N)||P,N},"memoized");return g.cache=new(zd.Cache||ta),g}a(zd,"memoize"),zd.Cache=ta;function qd(c){if(typeof c!="function")throw new Pr(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)}}a(qd,"negate");function v$(c){return mO(2,c)}a(v$,"once");var T$=r2(function(c,f){f=f.length==1&&He(f[0])?rn(f[0],ar(_e())):rn(ri(f,1),ar(_e()));var g=f.length;return et(function(h){for(var A=-1,P=di(h.length,g);++A<P;)h[A]=f[A].call(this,h[A]);return or(c,this,h)})}),Hv=et(function(c,f){var g=$a(f,cl(Hv));return ia(c,U,e,f,g)}),EO=et(function(c,f){var g=$a(f,cl(EO));return ia(c,J,e,f,g)}),E$=ra(function(c,f){return ia(c,Ce,e,e,e,f)});function b$(c,f){if(typeof c!="function")throw new Pr(r);return f=f===e?f:Je(f),et(c,f)}a(b$,"rest");function A$(c,f){if(typeof c!="function")throw new Pr(r);return f=f==null?0:$n(Je(f),0),et(function(g){var h=g[f],A=Ka(g,0,f);return h&&ja(A,h),or(c,this,A)})}a(A$,"spread");function S$(c,f,g){var h=!0,A=!0;if(typeof c!="function")throw new Pr(r);return fn(g)&&(h="leading"in g?!!g.leading:h,A="trailing"in g?!!g.trailing:A),TO(c,f,{leading:h,maxWait:f,trailing:A})}a(S$,"throttle");function x$(c){return gO(c,1)}a(x$,"unary");function P$(c,f){return Hv(Nv(f),c)}a(P$,"wrap");function I$(){if(!arguments.length)return[];var c=arguments[0];return He(c)?c:[c]}a(I$,"castArray");function O$(c){return Or(c,m)}a(O$,"clone");function C$(c,f){return f=typeof f=="function"?f:e,Or(c,m,f)}a(C$,"cloneWith");function N$(c){return Or(c,p|m)}a(N$,"cloneDeep");function R$(c,f){return f=typeof f=="function"?f:e,Or(c,p|m,f)}a(R$,"cloneDeepWith");function L$(c,f){return f==null||sI(c,f,Jn(f))}a(L$,"conformsTo");function Yr(c,f){return c===f||c!==c&&f!==f}a(Yr,"eq");var F$=Gd(yv),_$=Gd(function(c,f){return c>=f}),Zs=dI(function(){return arguments}())?dI:function(c){return dn(c)&&Ct.call(c,"callee")&&!ZP.call(c,"callee")},He=H.isArray,D$=DP?ar(DP):Uk;function ji(c){return c!=null&&Zd(c.length)&&!aa(c)}a(ji,"isArrayLike");function Sn(c){return dn(c)&&ji(c)}a(Sn,"isArrayLikeObject");function w$(c){return c===!0||c===!1||dn(c)&&Pi(c)==O}a(w$,"isBoolean");var Xa=JV||nT,M$=wP?ar(wP):Bk;function V$(c){return dn(c)&&c.nodeType===1&&!Yf(c)}a(V$,"isElement");function k$(c){if(c==null)return!0;if(ji(c)&&(He(c)||typeof c=="string"||typeof c.splice=="function"||Xa(c)||ll(c)||Zs(c)))return!c.length;var f=gi(c);if(f==je||f==cn)return!c.size;if(Xf(c))return!Ev(c).length;for(var g in c)if(Ct.call(c,g))return!1;return!0}a(k$,"isEmpty");function j$(c,f){return Gf(c,f)}a(j$,"isEqual");function $$(c,f,g){g=typeof g=="function"?g:e;var h=g?g(c,f):e;return h===e?Gf(c,f,e,g):!!h}a($$,"isEqualWith");function Kv(c){if(!dn(c))return!1;var f=Pi(c);return f==M||f==Q||typeof c.message=="string"&&typeof c.name=="string"&&!Yf(c)}a(Kv,"isError");function U$(c){return typeof c=="number"&&tI(c)}a(U$,"isFinite");function aa(c){if(!fn(c))return!1;var f=Pi(c);return f==Le||f==ct||f==Qe||f==ii}a(aa,"isFunction");function bO(c){return typeof c=="number"&&c==Je(c)}a(bO,"isInteger");function Zd(c){return typeof c=="number"&&c>-1&&c%1==0&&c<=Fe}a(Zd,"isLength");function fn(c){var f=typeof c;return c!=null&&(f=="object"||f=="function")}a(fn,"isObject");function dn(c){return c!=null&&typeof c=="object"}a(dn,"isObjectLike");var AO=MP?ar(MP):Gk;function B$(c,f){return c===f||Tv(c,f,Mv(f))}a(B$,"isMatch");function W$(c,f,g){return g=typeof g=="function"?g:e,Tv(c,f,Mv(f),g)}a(W$,"isMatchWith");function G$(c){return SO(c)&&c!=+c}a(G$,"isNaN");function H$(c){if(C2(c))throw new Ge(i);return gI(c)}a(H$,"isNative");function K$(c){return c===null}a(K$,"isNull");function X$(c){return c==null}a(X$,"isNil");function SO(c){return typeof c=="number"||dn(c)&&Pi(c)==Et}a(SO,"isNumber");function Yf(c){if(!dn(c)||Pi(c)!=tn)return!1;var f=Id(c);if(f===null)return!0;var g=Ct.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&Ad.call(g)==BV}a(Yf,"isPlainObject");var Xv=VP?ar(VP):Hk;function J$(c){return bO(c)&&c>=-Fe&&c<=Fe}a(J$,"isSafeInteger");var xO=kP?ar(kP):Kk;function eg(c){return typeof c=="string"||!He(c)&&dn(c)&&Pi(c)==pi}a(eg,"isString");function cr(c){return typeof c=="symbol"||dn(c)&&Pi(c)==Vt}a(cr,"isSymbol");var ll=jP?ar(jP):Xk;function Y$(c){return c===e}a(Y$,"isUndefined");function Q$(c){return dn(c)&&gi(c)==Vi}a(Q$,"isWeakMap");function z$(c){return dn(c)&&Pi(c)==Rf}a(z$,"isWeakSet");var q$=Gd(bv),Z$=Gd(function(c,f){return c<=f});function PO(c){if(!c)return[];if(ji(c))return eg(c)?Xr(c):ki(c);if(Mf&&c[Mf])return RV(c[Mf]());var f=gi(c),g=f==je?cv:f==cn?Td:fl;return g(c)}a(PO,"toArray");function sa(c){if(!c)return c===0?c:0;if(c=Rr(c),c===Zt||c===-Zt){var f=c<0?-1:1;return f*Hn}return c===c?c:0}a(sa,"toFinite");function Je(c){var f=sa(c),g=f%1;return f===f?g?f-g:f:0}a(Je,"toInteger");function IO(c){return c?Ys(Je(c),0,en):0}a(IO,"toLength");function Rr(c){if(typeof c=="number")return c;if(cr(c))return kn;if(fn(c)){var f=typeof c.valueOf=="function"?c.valueOf():c;c=fn(f)?f+"":f}if(typeof c!="string")return c===0?c:+c;c=HP(c);var g=_M.test(c);return g||wM.test(c)?dV(c.slice(2),g?2:8):FM.test(c)?kn:+c}a(Rr,"toNumber");function OO(c){return So(c,$i(c))}a(OO,"toPlainObject");function eU(c){return c?Ys(Je(c),-Fe,Fe):c===0?c:0}a(eU,"toSafeInteger");function Pt(c){return c==null?"":sr(c)}a(Pt,"toString");var tU=al(function(c,f){if(Xf(f)||ji(f)){So(f,Jn(f),c);return}for(var g in f)Ct.call(f,g)&&Uf(c,g,f[g])}),CO=al(function(c,f){So(f,$i(f),c)}),tg=al(function(c,f,g,h){So(f,$i(f),c,h)}),nU=al(function(c,f,g,h){So(f,Jn(f),c,h)}),iU=ra(gv);function rU(c,f){var g=ol(c);return f==null?g:aI(g,f)}a(rU,"create");var oU=et(function(c,f){c=jt(c);var g=-1,h=f.length,A=h>2?f[2]:e;for(A&&Ii(f[0],f[1],A)&&(h=1);++g<h;)for(var P=f[g],N=$i(P),D=-1,j=N.length;++D<j;){var z=N[D],q=c[z];(q===e||Yr(q,nl[z])&&!Ct.call(c,z))&&(c[z]=P[z])}return c}),aU=et(function(c){return c.push(e,HI),or(NO,e,c)});function sU(c,f){return UP(c,_e(f,3),Ao)}a(sU,"findKey");function cU(c,f){return UP(c,_e(f,3),hv)}a(cU,"findLastKey");function lU(c,f){return c==null?c:mv(c,_e(f,3),$i)}a(lU,"forIn");function fU(c,f){return c==null?c:uI(c,_e(f,3),$i)}a(fU,"forInRight");function uU(c,f){return c&&Ao(c,_e(f,3))}a(uU,"forOwn");function pU(c,f){return c&&hv(c,_e(f,3))}a(pU,"forOwnRight");function dU(c){return c==null?[]:Md(c,Jn(c))}a(dU,"functions");function gU(c){return c==null?[]:Md(c,$i(c))}a(gU,"functionsIn");function Jv(c,f,g){var h=c==null?e:Qs(c,f);return h===e?g:h}a(Jv,"get");function mU(c,f){return c!=null&&JI(c,f,Vk)}a(mU,"has");function Yv(c,f){return c!=null&&JI(c,f,kk)}a(Yv,"hasIn");var hU=$I(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=Sd.call(f)),c[f]=g},zv(Ui)),yU=$I(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=Sd.call(f)),Ct.call(c,f)?c[f].push(g):c[f]=[g]},_e),vU=et(Wf);function Jn(c){return ji(c)?rI(c):Ev(c)}a(Jn,"keys");function $i(c){return ji(c)?rI(c,!0):Jk(c)}a($i,"keysIn");function TU(c,f){var g={};return f=_e(f,3),Ao(c,function(h,A,P){na(g,f(h,A,P),h)}),g}a(TU,"mapKeys");function EU(c,f){var g={};return f=_e(f,3),Ao(c,function(h,A,P){na(g,A,f(h,A,P))}),g}a(EU,"mapValues");var bU=al(function(c,f,g){Vd(c,f,g)}),NO=al(function(c,f,g,h){Vd(c,f,g,h)}),AU=ra(function(c,f){var g={};if(c==null)return g;var h=!1;f=rn(f,function(P){return P=Ha(P,c),h||(h=P.length>1),P}),So(c,Dv(c),g),h&&(g=Or(g,p|d|m,m2));for(var A=f.length;A--;)Iv(g,f[A]);return g});function SU(c,f){return RO(c,qd(_e(f)))}a(SU,"omitBy");var xU=ra(function(c,f){return c==null?{}:Qk(c,f)});function RO(c,f){if(c==null)return{};var g=rn(Dv(c),function(h){return[h]});return f=_e(f),bI(c,g,function(h,A){return f(h,A[0])})}a(RO,"pickBy");function PU(c,f,g){f=Ha(f,c);var h=-1,A=f.length;for(A||(A=1,c=e);++h<A;){var P=c==null?e:c[xo(f[h])];P===e&&(h=A,P=g),c=aa(P)?P.call(c):P}return c}a(PU,"result");function IU(c,f,g){return c==null?c:Hf(c,f,g)}a(IU,"set");function OU(c,f,g,h){return h=typeof h=="function"?h:e,c==null?c:Hf(c,f,g,h)}a(OU,"setWith");var LO=WI(Jn),FO=WI($i);function CU(c,f,g){var h=He(c),A=h||Xa(c)||ll(c);if(f=_e(f,4),g==null){var P=c&&c.constructor;A?g=h?new P:[]:fn(c)?g=aa(P)?ol(Id(c)):{}:g={}}return(A?xr:Ao)(c,function(N,D,j){return f(g,N,D,j)}),g}a(CU,"transform");function NU(c,f){return c==null?!0:Iv(c,f)}a(NU,"unset");function RU(c,f,g){return c==null?c:II(c,f,Nv(g))}a(RU,"update");function LU(c,f,g,h){return h=typeof h=="function"?h:e,c==null?c:II(c,f,Nv(g),h)}a(LU,"updateWith");function fl(c){return c==null?[]:sv(c,Jn(c))}a(fl,"values");function FU(c){return c==null?[]:sv(c,$i(c))}a(FU,"valuesIn");function _U(c,f,g){return g===e&&(g=f,f=e),g!==e&&(g=Rr(g),g=g===g?g:0),f!==e&&(f=Rr(f),f=f===f?f:0),Ys(Rr(c),f,g)}a(_U,"clamp");function DU(c,f,g){return f=sa(f),g===e?(g=f,f=0):g=sa(g),c=Rr(c),jk(c,f,g)}a(DU,"inRange");function wU(c,f,g){if(g&&typeof g!="boolean"&&Ii(c,f,g)&&(f=g=e),g===e&&(typeof f=="boolean"?(g=f,f=e):typeof c=="boolean"&&(g=c,c=e)),c===e&&f===e?(c=0,f=1):(c=sa(c),f===e?(f=c,c=0):f=sa(f)),c>f){var h=c;c=f,f=h}if(g||c%1||f%1){var A=nI();return di(c+A*(f-c+pV("1e-"+((A+"").length-1))),f)}return Sv(c,f)}a(wU,"random");var MU=sl(function(c,f,g){return f=f.toLowerCase(),c+(g?_O(f):f)});function _O(c){return Qv(Pt(c).toLowerCase())}a(_O,"capitalize");function DO(c){return c=Pt(c),c&&c.replace(VM,PV).replace(nV,"")}a(DO,"deburr");function VU(c,f,g){c=Pt(c),f=sr(f);var h=c.length;g=g===e?h:Ys(Je(g),0,h);var A=g;return g-=f.length,g>=0&&c.slice(g,A)==f}a(VU,"endsWith");function kU(c){return c=Pt(c),c&&Ie.test(c)?c.replace(xe,IV):c}a(kU,"escape");function jU(c){return c=Pt(c),c&&SM.test(c)?c.replace(Df,"\\$&"):c}a(jU,"escapeRegExp");var $U=sl(function(c,f,g){return c+(g?"-":"")+f.toLowerCase()}),UU=sl(function(c,f,g){return c+(g?" ":"")+f.toLowerCase()}),BU=VI("toLowerCase");function WU(c,f,g){c=Pt(c),f=Je(f);var h=f?tl(c):0;if(!f||h>=f)return c;var A=(f-h)/2;return Wd(Rd(A),g)+c+Wd(Nd(A),g)}a(WU,"pad");function GU(c,f,g){c=Pt(c),f=Je(f);var h=f?tl(c):0;return f&&h<f?c+Wd(f-h,g):c}a(GU,"padEnd");function HU(c,f,g){c=Pt(c),f=Je(f);var h=f?tl(c):0;return f&&h<f?Wd(f-h,g)+c:c}a(HU,"padStart");function KU(c,f,g){return g||f==null?f=0:f&&(f=+f),qV(Pt(c).replace(Ky,""),f||0)}a(KU,"parseInt");function XU(c,f,g){return(g?Ii(c,f,g):f===e)?f=1:f=Je(f),xv(Pt(c),f)}a(XU,"repeat");function JU(){var c=arguments,f=Pt(c[0]);return c.length<3?f:f.replace(c[1],c[2])}a(JU,"replace");var YU=sl(function(c,f,g){return c+(g?"_":"")+f.toLowerCase()});function QU(c,f,g){return g&&typeof g!="number"&&Ii(c,f,g)&&(f=g=e),g=g===e?en:g>>>0,g?(c=Pt(c),c&&(typeof f=="string"||f!=null&&!Xv(f))&&(f=sr(f),!f&&el(c))?Ka(Xr(c),0,g):c.split(f,g)):[]}a(QU,"split");var zU=sl(function(c,f,g){return c+(g?" ":"")+Qv(f)});function qU(c,f,g){return c=Pt(c),g=g==null?0:Ys(Je(g),0,c.length),f=sr(f),c.slice(g,g+f.length)==f}a(qU,"startsWith");function ZU(c,f,g){var h=x.templateSettings;g&&Ii(c,f,g)&&(f=e),c=Pt(c),f=tg({},f,h,GI);var A=tg({},f.imports,h.imports,GI),P=Jn(A),N=sv(A,P),D,j,z=0,q=f.interpolate||gd,Z="__p += '",de=lv((f.escape||gd).source+"|"+q.source+"|"+(q===nn?LM:gd).source+"|"+(f.evaluate||gd).source+"|$","g"),Oe="//# sourceURL="+(Ct.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++sV+"]")+`
|
|
272
272
|
`;c.replace(de,function(we,rt,ut,lr,Oi,fr){return ut||(ut=lr),Z+=c.slice(z,fr).replace(kM,OV),rt&&(D=!0,Z+=`' +
|
|
273
273
|
__e(`+rt+`) +
|
|
274
274
|
'`),Oi&&(j=!0,Z+=`';
|
|
@@ -279,20 +279,20 @@ __p += '`),ut&&(Z+=`' +
|
|
|
279
279
|
`;var De=Ct.call(f,"variable")&&f.variable;if(!De)Z=`with (obj) {
|
|
280
280
|
`+Z+`
|
|
281
281
|
}
|
|
282
|
-
`;else if(NM.test(De))throw new Ge(o);Z=(j?Z.replace(ln,""):Z).replace(An,"$1").replace(
|
|
282
|
+
`;else if(NM.test(De))throw new Ge(o);Z=(j?Z.replace(ln,""):Z).replace(An,"$1").replace(Ze,"$1;"),Z="function("+(De||"obj")+`) {
|
|
283
283
|
`+(De?"":`obj || (obj = {});
|
|
284
284
|
`)+"var __t, __p = ''"+(D?", __e = _.escape":"")+(j?`, __j = Array.prototype.join;
|
|
285
285
|
function print() { __p += __j.call(arguments, '') }
|
|
286
286
|
`:`;
|
|
287
287
|
`)+Z+`return __p
|
|
288
|
-
}`;var ze=MO(function(){return bt(P,Oe+"return "+Z).apply(e,N)});if(ze.source=Z,Kv(ze))throw ze;return ze}a(ZU,"template");function e4(c){return Pt(c).toLowerCase()}a(e4,"toLower");function t4(c){return Pt(c).toUpperCase()}a(t4,"toUpper");function n4(c,f,g){if(c=Pt(c),c&&(g||f===e))return HP(c);if(!c||!(f=sr(f)))return c;var h=Xr(c),A=Xr(f),P=KP(h,A),N=XP(h,A)+1;return Ka(h,P,N).join("")}a(n4,"trim");function i4(c,f,g){if(c=Pt(c),c&&(g||f===e))return c.slice(0,YP(c)+1);if(!c||!(f=sr(f)))return c;var h=Xr(c),A=XP(h,Xr(f))+1;return Ka(h,0,A).join("")}a(i4,"trimEnd");function r4(c,f,g){if(c=Pt(c),c&&(g||f===e))return c.replace(Ky,"");if(!c||!(f=sr(f)))return c;var h=Xr(c),A=KP(h,Xr(f));return Ka(h,A).join("")}a(r4,"trimStart");function o4(c,f){var g=k,h=Ot;if(fn(f)){var A="separator"in f?f.separator:A;g="length"in f?Je(f.length):g,h="omission"in f?sr(f.omission):h}c=Pt(c);var P=c.length;if(Zc(c)){var N=Xr(c);P=N.length}if(g>=P)return c;var D=g-el(h);if(D<1)return h;var j=N?Ka(N,0,D).join(""):c.slice(0,D);if(A===e)return j+h;if(N&&(D+=j.length-D),Xv(A)){if(c.slice(D).search(A)){var z,q=j;for(A.global||(A=lv(A.source,Pt(dP.exec(A))+"g")),A.lastIndex=0;z=A.exec(q);)var Z=z.index;j=j.slice(0,Z===e?D:Z)}}else if(c.indexOf(sr(A),D)!=D){var de=j.lastIndexOf(A);de>-1&&(j=j.slice(0,de))}return j+h}a(o4,"truncate");function a4(c){return c=Pt(c),c&&be.test(c)?c.replace(ue,DV):c}a(a4,"unescape");var s4=al(function(c,f,g){return c+(g?" ":"")+f.toUpperCase()}),Qv=VI("toUpperCase");function wO(c,f,g){return c=Pt(c),f=g?e:f,f===e?NV(c)?VV(c):EV(c):c.match(f)||[]}a(wO,"words");var MO=Ze(function(c,f){try{return or(c,e,f)}catch(g){return Kv(g)?g:new Ge(g)}}),c4=ra(function(c,f){return xr(f,function(g){g=xo(g),na(c,g,Gv(c[g],c))}),c});function l4(c){var f=c==null?0:c.length,g=_e();return c=f?rn(c,function(h){if(typeof h[1]!="function")throw new Pr(r);return[g(h[0]),h[1]]}):[],Ze(function(h){for(var A=-1;++A<f;){var P=c[A];if(or(P[0],this,h))return or(P[1],this,h)}})}a(l4,"cond");function f4(c){return Dk(Or(c,p))}a(f4,"conforms");function zv(c){return function(){return c}}a(zv,"constant");function u4(c,f){return c==null||c!==c?f:c}a(u4,"defaultTo");var p4=jI(),d4=jI(!0);function Ui(c){return c}a(Ui,"identity");function qv(c){return mI(typeof c=="function"?c:Or(c,p))}a(qv,"iteratee");function g4(c){return yI(Or(c,p))}a(g4,"matches");function m4(c,f){return vI(c,Or(f,p))}a(m4,"matchesProperty");var h4=Ze(function(c,f){return function(g){return Wf(g,c,f)}}),y4=Ze(function(c,f){return function(g){return Wf(c,g,f)}});function Zv(c,f,g){var h=Jn(f),A=Md(f,h);g==null&&!(fn(f)&&(A.length||!h.length))&&(g=f,f=c,c=this,A=Md(f,Jn(f)));var P=!(fn(g)&&"chain"in g)||!!g.chain,N=aa(c);return xr(A,function(D){var j=f[D];c[D]=j,N&&(c.prototype[D]=function(){var z=this.__chain__;if(P||z){var q=c(this.__wrapped__),Z=q.__actions__=ki(this.__actions__);return Z.push({func:j,args:arguments,thisArg:c}),q.__chain__=z,q}return j.apply(c,ja([this.value()],arguments))})}),c}a(Zv,"mixin");function T4(){return Xn._===this&&(Xn._=WV),this}a(T4,"noConflict");function eT(){}a(eT,"noop");function E4(c){return c=Je(c),Ze(function(f){return TI(f,c)})}a(E4,"nthArg");var b4=Lv(rn),A4=Lv($P),S4=Lv(nv);function VO(c){return kv(c)?iv(xo(c)):zk(c)}a(VO,"property");function x4(c){return function(f){return c==null?e:Qs(c,f)}}a(x4,"propertyOf");var P4=UI(),I4=UI(!0);function tT(){return[]}a(tT,"stubArray");function nT(){return!1}a(nT,"stubFalse");function O4(){return{}}a(O4,"stubObject");function C4(){return""}a(C4,"stubString");function N4(){return!0}a(N4,"stubTrue");function R4(c,f){if(c=Je(c),c<1||c>Fe)return[];var g=en,h=di(c,en);f=_e(f),c-=en;for(var A=av(h,f);++g<c;)f(g);return A}a(R4,"times");function L4(c){return He(c)?rn(c,xo):cr(c)?[c]:ki(iO(Pt(c)))}a(L4,"toPath");function F4(c){var f=++UV;return Pt(c)+f}a(F4,"uniqueId");var _4=Bd(function(c,f){return c+f},0),D4=Fv("ceil"),w4=Bd(function(c,f){return c/f},1),M4=Fv("floor");function V4(c){return c&&c.length?wd(c,Ui,yv):e}a(V4,"max");function k4(c,f){return c&&c.length?wd(c,_e(f,2),yv):e}a(k4,"maxBy");function j4(c){return WP(c,Ui)}a(j4,"mean");function $4(c,f){return WP(c,_e(f,2))}a($4,"meanBy");function U4(c){return c&&c.length?wd(c,Ui,bv):e}a(U4,"min");function B4(c,f){return c&&c.length?wd(c,_e(f,2),bv):e}a(B4,"minBy");var W4=Bd(function(c,f){return c*f},1),G4=Fv("round"),H4=Bd(function(c,f){return c-f},0);function K4(c){return c&&c.length?ov(c,Ui):0}a(K4,"sum");function X4(c,f){return c&&c.length?ov(c,_e(f,2)):0}return a(X4,"sumBy"),x.after=g$,x.ary=gO,x.assign=tU,x.assignIn=CO,x.assignInWith=tg,x.assignWith=nU,x.at=iU,x.before=mO,x.bind=Gv,x.bindAll=c4,x.bindKey=hO,x.castArray=I$,x.chain=uO,x.chunk=w2,x.compact=M2,x.concat=V2,x.cond=l4,x.conforms=f4,x.constant=zv,x.countBy=Hj,x.create=rU,x.curry=yO,x.curryRight=vO,x.debounce=TO,x.defaults=oU,x.defaultsDeep=aU,x.defer=m$,x.delay=h$,x.difference=k2,x.differenceBy=j2,x.differenceWith=$2,x.drop=U2,x.dropRight=B2,x.dropRightWhile=W2,x.dropWhile=G2,x.fill=H2,x.filter=Xj,x.flatMap=Qj,x.flatMapDeep=zj,x.flatMapDepth=qj,x.flatten=sO,x.flattenDeep=K2,x.flattenDepth=X2,x.flip=y$,x.flow=p4,x.flowRight=d4,x.fromPairs=J2,x.functions=dU,x.functionsIn=gU,x.groupBy=Zj,x.initial=Q2,x.intersection=z2,x.intersectionBy=q2,x.intersectionWith=Z2,x.invert=hU,x.invertBy=yU,x.invokeMap=t$,x.iteratee=qv,x.keyBy=n$,x.keys=Jn,x.keysIn=$i,x.map=Yd,x.mapKeys=TU,x.mapValues=EU,x.matches=g4,x.matchesProperty=m4,x.memoize=zd,x.merge=bU,x.mergeWith=NO,x.method=h4,x.methodOf=y4,x.mixin=Zv,x.negate=qd,x.nthArg=E4,x.omit=AU,x.omitBy=SU,x.once=v$,x.orderBy=i$,x.over=b4,x.overArgs=T$,x.overEvery=A4,x.overSome=S4,x.partial=Hv,x.partialRight=EO,x.partition=r$,x.pick=xU,x.pickBy=RO,x.property=VO,x.propertyOf=x4,x.pull=ij,x.pullAll=lO,x.pullAllBy=rj,x.pullAllWith=oj,x.pullAt=aj,x.range=P4,x.rangeRight=I4,x.rearg=E$,x.reject=s$,x.remove=sj,x.rest=b$,x.reverse=Bv,x.sampleSize=l$,x.set=IU,x.setWith=OU,x.shuffle=f$,x.slice=cj,x.sortBy=d$,x.sortedUniq=mj,x.sortedUniqBy=hj,x.split=QU,x.spread=A$,x.tail=yj,x.take=vj,x.takeRight=Tj,x.takeRightWhile=Ej,x.takeWhile=bj,x.tap=Mj,x.throttle=S$,x.thru=Jd,x.toArray=PO,x.toPairs=LO,x.toPairsIn=FO,x.toPath=L4,x.toPlainObject=OO,x.transform=CU,x.unary=x$,x.union=Aj,x.unionBy=Sj,x.unionWith=xj,x.uniq=Pj,x.uniqBy=Ij,x.uniqWith=Oj,x.unset=NU,x.unzip=Wv,x.unzipWith=fO,x.update=RU,x.updateWith=LU,x.values=ll,x.valuesIn=FU,x.without=Cj,x.words=wO,x.wrap=P$,x.xor=Nj,x.xorBy=Rj,x.xorWith=Lj,x.zip=Fj,x.zipObject=_j,x.zipObjectDeep=Dj,x.zipWith=wj,x.entries=LO,x.entriesIn=FO,x.extend=CO,x.extendWith=tg,Zv(x,x),x.add=_4,x.attempt=MO,x.camelCase=MU,x.capitalize=_O,x.ceil=D4,x.clamp=_U,x.clone=O$,x.cloneDeep=N$,x.cloneDeepWith=R$,x.cloneWith=C$,x.conformsTo=L$,x.deburr=DO,x.defaultTo=u4,x.divide=w4,x.endsWith=VU,x.eq=Yr,x.escape=kU,x.escapeRegExp=jU,x.every=Kj,x.find=Jj,x.findIndex=oO,x.findKey=sU,x.findLast=Yj,x.findLastIndex=aO,x.findLastKey=cU,x.floor=M4,x.forEach=pO,x.forEachRight=dO,x.forIn=lU,x.forInRight=fU,x.forOwn=uU,x.forOwnRight=pU,x.get=Jv,x.gt=F$,x.gte=_$,x.has=mU,x.hasIn=Yv,x.head=cO,x.identity=Ui,x.includes=e$,x.indexOf=Y2,x.inRange=DU,x.invoke=vU,x.isArguments=Zs,x.isArray=He,x.isArrayBuffer=D$,x.isArrayLike=ji,x.isArrayLikeObject=Sn,x.isBoolean=w$,x.isBuffer=Xa,x.isDate=M$,x.isElement=V$,x.isEmpty=k$,x.isEqual=j$,x.isEqualWith=$$,x.isError=Kv,x.isFinite=U$,x.isFunction=aa,x.isInteger=bO,x.isLength=Zd,x.isMap=AO,x.isMatch=B$,x.isMatchWith=W$,x.isNaN=G$,x.isNative=H$,x.isNil=X$,x.isNull=K$,x.isNumber=SO,x.isObject=fn,x.isObjectLike=dn,x.isPlainObject=Yf,x.isRegExp=Xv,x.isSafeInteger=J$,x.isSet=xO,x.isString=eg,x.isSymbol=cr,x.isTypedArray=cl,x.isUndefined=Y$,x.isWeakMap=Q$,x.isWeakSet=z$,x.join=ej,x.kebabCase=$U,x.last=Nr,x.lastIndexOf=tj,x.lowerCase=UU,x.lowerFirst=BU,x.lt=q$,x.lte=Z$,x.max=V4,x.maxBy=k4,x.mean=j4,x.meanBy=$4,x.min=U4,x.minBy=B4,x.stubArray=tT,x.stubFalse=nT,x.stubObject=O4,x.stubString=C4,x.stubTrue=N4,x.multiply=W4,x.nth=nj,x.noConflict=T4,x.noop=eT,x.now=Qd,x.pad=WU,x.padEnd=GU,x.padStart=HU,x.parseInt=KU,x.random=wU,x.reduce=o$,x.reduceRight=a$,x.repeat=XU,x.replace=JU,x.result=PU,x.round=G4,x.runInContext=V,x.sample=c$,x.size=u$,x.snakeCase=YU,x.some=p$,x.sortedIndex=lj,x.sortedIndexBy=fj,x.sortedIndexOf=uj,x.sortedLastIndex=pj,x.sortedLastIndexBy=dj,x.sortedLastIndexOf=gj,x.startCase=zU,x.startsWith=qU,x.subtract=H4,x.sum=K4,x.sumBy=X4,x.template=ZU,x.times=R4,x.toFinite=sa,x.toInteger=Je,x.toLength=IO,x.toLower=e4,x.toNumber=Rr,x.toSafeInteger=eU,x.toString=Pt,x.toUpper=t4,x.trim=n4,x.trimEnd=i4,x.trimStart=r4,x.truncate=o4,x.unescape=a4,x.uniqueId=F4,x.upperCase=s4,x.upperFirst=Qv,x.each=pO,x.eachRight=dO,x.first=cO,Zv(x,function(){var c={};return Ao(x,function(f,g){Ct.call(x.prototype,g)||(c[g]=f)}),c}(),{chain:!1}),x.VERSION=t,xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){x[c].placeholder=x}),xr(["drop","take"],function(c,f){lt.prototype[c]=function(g){g=g===e?1:$n(Je(g),0);var h=this.__filtered__&&!f?new lt(this):this.clone();return h.__filtered__?h.__takeCount__=di(g,h.__takeCount__):h.__views__.push({size:di(g,en),type:c+(h.__dir__<0?"Right":"")}),h},lt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),xr(["filter","map","takeWhile"],function(c,f){var g=f+1,h=g==Xt||g==pn;lt.prototype[c]=function(A){var P=this.clone();return P.__iteratees__.push({iteratee:_e(A,3),type:g}),P.__filtered__=P.__filtered__||h,P}}),xr(["head","last"],function(c,f){var g="take"+(f?"Right":"");lt.prototype[c]=function(){return this[g](1).value()[0]}}),xr(["initial","tail"],function(c,f){var g="drop"+(f?"":"Right");lt.prototype[c]=function(){return this.__filtered__?new lt(this):this[g](1)}}),lt.prototype.compact=function(){return this.filter(Ui)},lt.prototype.find=function(c){return this.filter(c).head()},lt.prototype.findLast=function(c){return this.reverse().find(c)},lt.prototype.invokeMap=Ze(function(c,f){return typeof c=="function"?new lt(this):this.map(function(g){return Wf(g,c,f)})}),lt.prototype.reject=function(c){return this.filter(qd(_e(c)))},lt.prototype.slice=function(c,f){c=Je(c);var g=this;return g.__filtered__&&(c>0||f<0)?new lt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),f!==e&&(f=Je(f),g=f<0?g.dropRight(-f):g.take(f-c)),g)},lt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},lt.prototype.toArray=function(){return this.take(en)},Ao(lt.prototype,function(c,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),h=/^(?:head|last)$/.test(f),A=x[h?"take"+(f=="last"?"Right":""):f],P=h||/^find/.test(f);A&&(x.prototype[f]=function(){var N=this.__wrapped__,D=h?[1]:arguments,j=N instanceof lt,z=D[0],q=j||He(N),Z=a(function(rt){var ut=A.apply(x,ja([rt],D));return h&&de?ut[0]:ut},"interceptor");q&&g&&typeof z=="function"&&z.length!=1&&(j=q=!1);var de=this.__chain__,Oe=!!this.__actions__.length,De=P&&!de,ze=j&&!Oe;if(!P&&q){N=ze?N:new lt(this);var we=c.apply(N,D);return we.__actions__.push({func:Jd,args:[Z],thisArg:e}),new Ir(we,de)}return De&&ze?c.apply(this,D):(we=this.thru(Z),De?h?we.value()[0]:we.value():we)})}),xr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Ed[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",h=/^(?:pop|shift)$/.test(c);x.prototype[c]=function(){var A=arguments;if(h&&!this.__chain__){var P=this.value();return f.apply(He(P)?P:[],A)}return this[g](function(N){return f.apply(He(N)?N:[],A)})}}),Ao(lt.prototype,function(c,f){var g=x[f];if(g){var h=g.name+"";Ct.call(il,h)||(il[h]=[]),il[h].push({name:f,func:g})}}),il[Ud(e,C).name]=[{name:"wrapper",func:e}],lt.prototype.clone=ok,lt.prototype.reverse=ak,lt.prototype.value=sk,x.prototype.at=Vj,x.prototype.chain=kj,x.prototype.commit=jj,x.prototype.next=$j,x.prototype.plant=Bj,x.prototype.reverse=Wj,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=Gj,x.prototype.first=x.prototype.head,Mf&&(x.prototype[Mf]=Uj),x},"runInContext"),Ua=kV();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Ua,define(function(){return Ua})):Hs?((Hs.exports=Ua)._=Ua,qy._=Ua):Xn._=Ua}).call(ff)});var v1=Ve((dce,y1)=>{var{findIndex:nJ}=bp();function iJ(e,t){let i=nJ(e,o=>o.endOffset===t),r=!1;for(;r===!1;){i++;let o=e[i];if(o===void 0)return null;if(o.tokenType.name!=="SEA_WS")return o}}a(iJ,"findNextTextualToken");y1.exports={findNextTextualToken:iJ}});var b1=Ve((mce,E1)=>{var T1=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function rJ({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(T1);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}a(rJ,"isXMLNamespaceKey");function oJ(e){if(typeof e!="string")return;let t=e.match(T1);if(t!==null)return t.groups&&t.groups.prefix||""}a(oJ,"getXMLNamespaceKeyPrefix");E1.exports={isXMLNamespaceKey:rJ,getXMLNamespaceKeyPrefix:oJ}});var S1=Ve((yce,A1)=>{var{findNextTextualToken:aJ}=v1(),{isXMLNamespaceKey:sJ,getXMLNamespaceKeyPrefix:cJ}=b1();A1.exports={findNextTextualToken:aJ,isXMLNamespaceKey:sJ,getXMLNamespaceKeyPrefix:cJ}});var kA=Ve((vce,P1)=>{var{reduce:lJ,has:x1,isArray:fJ}=bp();function uJ(e){return lJ(e,(n,i,r)=>(r==="parent"||(x1(i,"type")?n.push(i):fJ(i)&&i.length>0&&x1(i[0],"type")&&(n=n.concat(i))),n),[])}a(uJ,"getAstChildrenReflective");P1.exports={getAstChildrenReflective:uJ}});var jA=Ve((Ece,I1)=>{I1.exports={DEFAULT_NS:"::DEFAULT"}});var D1=Ve((bce,_1)=>{var{BaseXmlCstVisitor:pJ}=VA(),{last:dJ,forEach:R1,reduce:gJ,map:Ap,pick:UA,sortBy:mJ,isEmpty:hJ,isArray:L1,assign:yJ}=bp(),{findNextTextualToken:vJ,isXMLNamespaceKey:TJ,getXMLNamespaceKeyPrefix:EJ}=S1(),{getAstChildrenReflective:bJ}=kA(),{DEFAULT_NS:AJ}=jA();function SJ(e,t){O1.setState({tokenVector:t});let n=O1.visit(e);return n.rootElement!==$c&&F1(n.rootElement),n}a(SJ,"buildAst");var BA=class BA extends pJ{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&&hJ(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),cy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Ap(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),cy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Ap(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Ap(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=Ap(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:o}=this.visit(t.content[0]);i.subElements=r,i.textContents=o}return IJ(i,t),OJ(i,t),CJ(i,t,this.tokenVector),cy(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 o=t.Name[0];r.key=o.image,r.syntax.key=ly(o)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let o=t.STRING[0];r.value=xJ(o.image),r.syntax.value=ly(o)}return cy(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 o=mJ(r,["startOffset"]),s=Ap(o,"image").join("");return i.text=s,i}misc(t,{location:n}){}};a(BA,"CstToAstVisitor");var $A=BA,O1=new $A;function cy(e){let t=bJ(e);R1(t,n=>n.parent=e)}a(cy,"setChildrenParent");function F1(e,t=[]){let n=gJ(e.attributes,(r,o)=>{if(o.key!==$c&&TJ({key:o.key,includeEmptyPrefix:!1})===!0){let s=EJ(o.key);if(o.value){let l=o.value;s!==""?r[s]=l:r[AJ]=l}}return r},{}),i=Object.create(null);e.namespaces=yJ(i,t,n),R1(e.subElements,r=>F1(r,e.namespaces))}a(F1,"updateNamespaces");function ly(e){return UA(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}a(ly,"toXMLToken");function C1(e){return UA(e,["startOffset","startLine","startColumn"])}a(C1,"startOfXMLToken");function N1(e){return UA(e,["endOffset","endLine","endColumn"])}a(N1,"endOfXMLToken");function La(e){return L1(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}a(La,"exists");function xJ(e){return e.substring(1,e.length-1)}a(xJ,"stripQuotes");function PJ(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}a(PJ,"nsToParts");var $c=null;function IJ(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=ly(n);let i=PJ(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=ly(t.END_NAME[0]))}a(IJ,"handleElementOpenCloseNameRanges");function OJ(e,t){if(La(t.OPEN)){let n;La(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):La(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...C1(t.OPEN[0]),...N1(n)}),La(t.SLASH_OPEN)&&La(t.END)&&(e.syntax.closeBody={...C1(t.SLASH_OPEN[0]),...N1(t.END[0])})}}a(OJ,"handleElementOpenCloseBodyRanges");function CJ(e,t,n){if(La(t.Name)){let i=t.Name[0].endOffset+2;if(La(t.START_CLOSE)||La(t.SLASH_CLOSE)){let r=(La(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let o=L1(t.attribute)?dJ(t.attribute).location.endOffset:t.Name[0].endOffset,s=vJ(n,o);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}a(CJ,"handleElementAttributeRanges");_1.exports={buildAst:SJ}});var V1=Ve((Sce,M1)=>{var{forEach:NJ,isFunction:uf}=bp(),{getAstChildrenReflective:RJ}=kA();function w1(e,t){switch(e.type){case"XMLDocument":{uf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{uf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{uf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{uf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{uf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{uf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=RJ(e);NJ(n,i=>{w1(i,t)})}a(w1,"accept");M1.exports={accept:w1}});var j1=Ve((Pce,k1)=>{var{buildAst:LJ}=D1(),{accept:FJ}=V1(),{DEFAULT_NS:_J}=jA();k1.exports={buildAst:LJ,accept:FJ,DEFAULT_NS:_J}});var GA=Ve((Hce,q1)=>{var XJ=require("crypto");q1.exports=a(function(){return XJ.randomBytes(16)},"nodeRNG")});var HA=Ve((Xce,ew)=>{var Z1=[];for(Pp=0;Pp<256;++Pp)Z1[Pp]=(Pp+256).toString(16).substr(1);var Pp;function JJ(e,t){var n=t||0,i=Z1;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}a(JJ,"bytesToUuid");ew.exports=JJ});var iw=Ve((Yce,nw)=>{var YJ=GA(),QJ=HA(),tw,KA,XA=0,JA=0;function zJ(e,t,n){var i=t&&n||0,r=t||[];e=e||{};var o=e.node||tw,s=e.clockseq!==void 0?e.clockseq:KA;if(o==null||s==null){var l=YJ();o==null&&(o=tw=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),s==null&&(s=KA=(l[6]<<8|l[7])&16383)}var u=e.msecs!==void 0?e.msecs:new Date().getTime(),p=e.nsecs!==void 0?e.nsecs:JA+1,d=u-XA+(p-JA)/1e4;if(d<0&&e.clockseq===void 0&&(s=s+1&16383),(d<0||u>XA)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");XA=u,JA=p,KA=s,u+=122192928e5;var m=((u&268435455)*1e4+p)%4294967296;r[i++]=m>>>24&255,r[i++]=m>>>16&255,r[i++]=m>>>8&255,r[i++]=m&255;var T=u/4294967296*1e4&268435455;r[i++]=T>>>8&255,r[i++]=T&255,r[i++]=T>>>24&15|16,r[i++]=T>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(var b=0;b<6;++b)r[i+b]=o[b];return t||QJ(r)}a(zJ,"v1");nw.exports=zJ});var ow=Ve((zce,rw)=>{var qJ=GA(),ZJ=HA();function eY(e,t,n){var i=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var r=e.random||(e.rng||qJ)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t)for(var o=0;o<16;++o)t[i+o]=r[o];return t||ZJ(r)}a(eY,"v4");rw.exports=eY});var cw=Ve((Zce,sw)=>{var tY=iw(),aw=ow(),YA=aw;YA.v1=tY;YA.v4=aw;sw.exports=YA});var pr={};ec(pr,{exportConfig:()=>qz,generateCustomExtension:()=>cP,generateSchema:()=>zz,getApiVersion:()=>n6,getChanges:()=>AM,getGenericSchema:()=>By,getPathToGenericSchema:()=>Uw,getProject:()=>s6,importConfig:()=>Zz,importProject:()=>e6,importProjectSchema:()=>t6,isDirectory:()=>r6,log:()=>oe,readDirectory:()=>pP});module.exports=ig(pr);var Se=te(se());var K=te(se());function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}a(oi,"_typeof");function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(Lr,"_classCallCheck");function lT(e,t){if(oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(oi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a(lT,"toPrimitive");function Qf(e){var t=lT(e,"string");return oi(t)=="symbol"?t:String(t)}a(Qf,"toPropertyKey");function uR(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Qf(i.key),i)}}a(uR,"_defineProperties");function Fr(e,t,n){return t&&uR(e.prototype,t),n&&uR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}a(Fr,"_createClass");function zr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a(zr,"_assertThisInitialized");function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():a(function(i,r){return i.__proto__=r,i},"_setPrototypeOf"),zf(e,t)}a(zf,"_setPrototypeOf");function ul(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zf(e,t)}a(ul,"_inherits");function nc(e,t){if(t&&(oi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zr(e)}a(nc,"_possibleConstructorReturn");function _r(e){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():a(function(n){return n.__proto__||Object.getPrototypeOf(n)},"_getPrototypeOf"),_r(e)}a(_r,"_getPrototypeOf");function Po(e,t,n){return t=Qf(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a(Po,"_defineProperty");function fT(e){if(Array.isArray(e))return e}a(fT,"_arrayWithHoles");function uT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}a(uT,"_iterableToArray");function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}a(rg,"_arrayLikeToArray");function pT(e,t){if(e){if(typeof e=="string")return rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rg(e,t)}}a(pT,"_unsupportedIterableToArray");function dT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
289
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(dT,"_nonIterableRest");function gT(e){return fT(e)||uT(e)||pT(e)||dT()}a(gT,"_toArray");function pR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(pR,"ownKeys$6");function dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(dR,"_objectSpread$6");var LW={type:"logger",log:a(function(t){this.output("log",t)},"log"),warn:a(function(t){this.output("warn",t)},"warn"),error:a(function(t){this.output("error",t)},"error"),output:a(function(t,n){console&&console[t]&&console[t].apply(console,n)},"output")},FW=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Lr(this,e),this.init(t,n)}return a(e,"Logger"),Fr(e,[{key:"init",value:a(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=n||LW,this.options=i,this.debug=i.debug},"init")},{key:"setDebug",value:a(function(n){this.debug=n},"setDebug")},{key:"log",value:a(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"log","",!0)},"log")},{key:"warn",value:a(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","",!0)},"warn")},{key:"error",value:a(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"error","")},"error")},{key:"deprecate",value:a(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)},"deprecate")},{key:"forward",value:a(function(n,i,r,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(r).concat(this.prefix," ").concat(n[0])),this.logger[i](n))},"forward")},{key:"create",value:a(function(n){return new e(this.logger,dR(dR({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))},"create")},{key:"clone",value:a(function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)},"clone")}]),e}(),Oo=new FW,Ja=function(){function e(){Lr(this,e),this.observers={}}return a(e,"EventEmitter"),Fr(e,[{key:"on",value:a(function(n,i){var r=this;return n.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(i)}),this},"on")},{key:"off",value:a(function(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(r){return r!==i})}},"off")},{key:"emit",value:a(function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(u){u.apply(u,[n].concat(r))})}},"emit")}]),e}();function qf(){var e,t,n=new Promise(function(i,r){e=i,t=r});return n.resolve=e,n.reject=t,n}a(qf,"defer");function gR(e){return e==null?"":""+e}a(gR,"makeString");function _W(e,t,n){e.forEach(function(i){t[i]&&(n[i]=t[i])})}a(_W,"copy");function hT(e,t,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}a(i,"cleanKey");function r(){return!e||typeof e=="string"}a(r,"canNotTraverseDeeper");for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(r())return{};var s=i(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return r()?{}:{obj:e,k:i(o.shift())}}a(hT,"getLastOfPath");function mR(e,t,n){var i=hT(e,t,Object),r=i.obj,o=i.k;r[o]=n}a(mR,"setPath");function DW(e,t,n,i){var r=hT(e,t,Object),o=r.obj,s=r.k;o[s]=o[s]||[],i&&(o[s]=o[s].concat(n)),i||o[s].push(n)}a(DW,"pushPath");function sg(e,t){var n=hT(e,t),i=n.obj,r=n.k;if(i)return i[r]}a(sg,"getPath");function wW(e,t,n){var i=sg(e,n);return i!==void 0?i:sg(t,n)}a(wW,"getPathWithDefaults");function RR(e,t,n){for(var i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):RR(e[i],t[i],n):e[i]=t[i]);return e}a(RR,"deepExtend");function pl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}a(pl,"regexEscape");var MW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function VW(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return MW[t]}):e}a(VW,"escape");var fg=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,kW=[" ",",","?","!",";"];function jW(e,t,n){t=t||"",n=n||"";var i=kW.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(i.length===0)return!0;var r=new RegExp("(".concat(i.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!r.test(e);if(!o){var s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(o=!0)}return o}a(jW,"looksLikeObjectPath");function cg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,o=0;o<i.length;++o){if(!r||typeof r[i[o]]=="string"&&o+1<i.length)return;if(r[i[o]]===void 0){for(var s=2,l=i.slice(o,o+s).join(n),u=r[l];u===void 0&&i.length>o+s;)s++,l=i.slice(o,o+s).join(n),u=r[l];if(u===void 0)return;if(u===null)return null;if(t.endsWith(l)){if(typeof u=="string")return u;if(l&&typeof u[l]=="string")return u[l]}var p=i.slice(o+s).join(n);return p?cg(u,p,n):void 0}r=r[i[o]]}return r}}a(cg,"deepFind");function hR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(hR,"ownKeys$5");function og(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(og,"_objectSpread$5");function $W(e){var t=UW();return a(function(){var i=_r(e),r;if(t){var o=_r(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return nc(this,r)},"_createSuperInternal")}a($W,"_createSuper$3");function UW(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}a(UW,"_isNativeReflectConstruct$3");var BW=function(e){ul(n,e);var t=$W(n);function n(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Lr(this,n),r=t.call(this),fg&&Ja.call(zr(r)),r.data=i||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return a(n,"ResourceStore"),Fr(n,[{key:"addNamespaces",value:a(function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)},"addNamespaces")},{key:"removeNamespaces",value:a(function(r){var o=this.options.ns.indexOf(r);o>-1&&this.options.ns.splice(o,1)},"removeNamespaces")},{key:"getResource",value:a(function(r,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,p=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,d=[r,o];s&&typeof s!="string"&&(d=d.concat(s)),s&&typeof s=="string"&&(d=d.concat(u?s.split(u):s)),r.indexOf(".")>-1&&(d=r.split("."));var m=sg(this.data,d);return m||!p||typeof s!="string"?m:cg(this.data&&this.data[r]&&this.data[r][o],s,u)},"getResource")},{key:"addResource",value:a(function(r,o,s,l){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,d=[r,o];s&&(d=d.concat(p?s.split(p):s)),r.indexOf(".")>-1&&(d=r.split("."),l=o,o=d[1]),this.addNamespaces(o),mR(this.data,d,l),u.silent||this.emit("added",r,o,s,l)},"addResource")},{key:"addResources",value:a(function(r,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in s)(typeof s[u]=="string"||Object.prototype.toString.apply(s[u])==="[object Array]")&&this.addResource(r,o,u,s[u],{silent:!0});l.silent||this.emit("added",r,o,s)},"addResources")},{key:"addResourceBundle",value:a(function(r,o,s,l,u){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},d=[r,o];r.indexOf(".")>-1&&(d=r.split("."),l=s,s=o,o=d[1]),this.addNamespaces(o);var m=sg(this.data,d)||{};l?RR(m,s,u):m=og(og({},m),s),mR(this.data,d,m),p.silent||this.emit("added",r,o,s)},"addResourceBundle")},{key:"removeResourceBundle",value:a(function(r,o){this.hasResourceBundle(r,o)&&delete this.data[r][o],this.removeNamespaces(o),this.emit("removed",r,o)},"removeResourceBundle")},{key:"hasResourceBundle",value:a(function(r,o){return this.getResource(r,o)!==void 0},"hasResourceBundle")},{key:"getResourceBundle",value:a(function(r,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?og(og({},{}),this.getResource(r,o)):this.getResource(r,o)},"getResourceBundle")},{key:"getDataByLanguage",value:a(function(r){return this.data[r]},"getDataByLanguage")},{key:"hasLanguageSomeTranslations",value:a(function(r){var o=this.getDataByLanguage(r),s=o&&Object.keys(o)||[];return!!s.find(function(l){return o[l]&&Object.keys(o[l]).length>0})},"hasLanguageSomeTranslations")},{key:"toJSON",value:a(function(){return this.data},"toJSON")}]),n}(Ja),LR={processors:{},addPostProcessor:a(function(t){this.processors[t.name]=t},"addPostProcessor"),handle:a(function(t,n,i,r,o){var s=this;return t.forEach(function(l){s.processors[l]&&(n=s.processors[l].process(n,i,r,o))}),n},"handle")};function yR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(yR,"ownKeys$4");function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(yi,"_objectSpread$4");function WW(e){var t=GW();return a(function(){var i=_r(e),r;if(t){var o=_r(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return nc(this,r)},"_createSuperInternal")}a(WW,"_createSuper$2");function GW(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}a(GW,"_isNativeReflectConstruct$2");var vR={},TR=function(e){ul(n,e);var t=WW(n);function n(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Lr(this,n),r=t.call(this),fg&&Ja.call(zr(r)),_W(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,zr(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Oo.create("translator"),r}return a(n,"Translator"),Fr(n,[{key:"changeLanguage",value:a(function(r){r&&(this.language=r)},"changeLanguage")},{key:"exists",value:a(function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var s=this.resolve(r,o);return s&&s.res!==void 0},"exists")},{key:"extractFromKey",value:a(function(r,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],p=s&&r.indexOf(s)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!jW(r,s,l);if(p&&!d){var m=r.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:r,namespaces:u};var T=r.split(s);(s!==l||s===l&&this.options.ns.indexOf(T[0])>-1)&&(u=T.shift()),r=T.join(l)}return typeof u=="string"&&(u=[u]),{key:r,namespaces:u}},"extractFromKey")},{key:"translate",value:a(function(r,o,s){var l=this;if(oi(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),oi(o)==="object"&&(o=yi({},o)),o||(o={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=this.extractFromKey(r[r.length-1],o),m=d.key,T=d.namespaces,b=T[T.length-1],E=o.lng||this.language,C=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(E&&E.toLowerCase()==="cimode"){if(C){var R=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(b).concat(R).concat(m),usedKey:m,exactUsedKey:m,usedLng:E,usedNS:b}:"".concat(b).concat(R).concat(m)}return u?{res:m,usedKey:m,exactUsedKey:m,usedLng:E,usedNS:b}:m}var L=this.resolve(r,o),F=L&&L.res,U=L&&L.usedKey||m,J=L&&L.exactUsedKey||m,re=Object.prototype.toString.apply(F),Ce=["[object Number]","[object Function]","[object RegExp]"],st=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,Ot=typeof F!="string"&&typeof F!="boolean"&&typeof F!="number";if(k&&F&&Ot&&Ce.indexOf(re)<0&&!(typeof st=="string"&&re==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ht=this.options.returnedObjectHandler?this.options.returnedObjectHandler(U,F,yi(yi({},o),{},{ns:T})):"key '".concat(m," (").concat(this.language,")' returned an object instead of string.");return u?(L.res=ht,L):ht}if(p){var Ke=re==="[object Array]",Xt=Ke?[]:{},Mi=Ke?J:U;for(var pn in F)if(Object.prototype.hasOwnProperty.call(F,pn)){var Zt="".concat(Mi).concat(p).concat(pn);Xt[pn]=this.translate(Zt,yi(yi({},o),{joinArrays:!1,ns:T})),Xt[pn]===Zt&&(Xt[pn]=F[pn])}F=Xt}}else if(k&&typeof st=="string"&&re==="[object Array]")F=F.join(st),F&&(F=this.extendTranslation(F,r,o,s));else{var Fe=!1,Hn=!1,kn=o.count!==void 0&&typeof o.count!="string",en=n.hasDefaultValue(o),Rn=kn?this.pluralResolver.getSuffix(E,o.count,o):"",ni=o["defaultValue".concat(Rn)]||o.defaultValue;!this.isValidLookup(F)&&en&&(Fe=!0,F=ni),this.isValidLookup(F)||(Hn=!0,F=m);var Re=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ln=Re&&Hn?void 0:F,Kn=en&&ni!==F&&this.options.updateMissing;if(Hn||Fe||Kn){if(this.logger.log(Kn?"updateKey":"missingKey",E,b,m,Kn?ni:F),p){var Qe=this.resolve(m,yi(yi({},o),{},{keySeparator:!1}));Qe&&Qe.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.")}var O=[],S=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&S&&S[0])for(var Q=0;Q<S.length;Q++)O.push(S[Q]);else this.options.saveMissingTo==="all"?O=this.languageUtils.toResolveHierarchy(o.lng||this.language):O.push(o.lng||this.language);var M=a(function(ct,je,Et){var sn=en&&Et!==F?Et:Ln;l.options.missingKeyHandler?l.options.missingKeyHandler(ct,b,je,sn,Kn,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(ct,b,je,sn,Kn,o),l.emit("missingKey",ct,b,je,F)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&kn?O.forEach(function(Le){l.pluralResolver.getSuffixes(Le,o).forEach(function(ct){M([Le],m+ct,o["defaultValue".concat(ct)]||ni)})}):M(O,m,ni))}F=this.extendTranslation(F,r,o,L,s),Hn&&F===m&&this.options.appendNamespaceToMissingKey&&(F="".concat(b,":").concat(m)),(Hn||Fe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?F=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(b,":").concat(m):m,Fe?F:void 0):F=this.options.parseMissingKeyHandler(F))}return u?(L.res=F,L):F},"translate")},{key:"extendTranslation",value:a(function(r,o,s,l,u){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,yi(yi({},this.options.interpolation.defaultVariables),s),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(yi(yi({},s),{interpolation:yi(yi({},this.options.interpolation),s.interpolation)}));var d=typeof r=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(d){var T=r.match(this.interpolator.nestingRegexp);m=T&&T.length}var b=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(b=yi(yi({},this.options.interpolation.defaultVariables),b)),r=this.interpolator.interpolate(r,b,s.lng||this.language,s),d){var E=r.match(this.interpolator.nestingRegexp),C=E&&E.length;m<C&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(s.lng=l.usedLng),s.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var F=arguments.length,U=new Array(F),J=0;J<F;J++)U[J]=arguments[J];return u&&u[0]===U[0]&&!s.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(U[0]," in key: ").concat(o[0])),null):p.translate.apply(p,U.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var R=s.postProcess||this.options.postProcess,L=typeof R=="string"?[R]:R;return r!=null&&L&&L.length&&s.applyPostProcessor!==!1&&(r=LR.handle(L,r,o,this.options&&this.options.postProcessPassResolved?yi({i18nResolved:l},s):s,this)),r},"extendTranslation")},{key:"resolve",value:a(function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,u,p,d,m;return typeof r=="string"&&(r=[r]),r.forEach(function(T){if(!o.isValidLookup(l)){var b=o.extractFromKey(T,s),E=b.key;u=E;var C=b.namespaces;o.options.fallbackNS&&(C=C.concat(o.options.fallbackNS));var R=s.count!==void 0&&typeof s.count!="string",L=R&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),F=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",U=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);C.forEach(function(J){o.isValidLookup(l)||(m=J,!vR["".concat(U[0],"-").concat(J)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(m)&&(vR["".concat(U[0],"-").concat(J)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(U.join(", "),`" won't get resolved as namespace "`).concat(m,'" 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!!!")),U.forEach(function(re){if(!o.isValidLookup(l)){d=re;var Ce=[E];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(Ce,E,re,J,s);else{var st;R&&(st=o.pluralResolver.getSuffix(re,s.count,s));var k="".concat(o.options.pluralSeparator,"zero");if(R&&(Ce.push(E+st),L&&Ce.push(E+k)),F){var Ot="".concat(E).concat(o.options.contextSeparator).concat(s.context);Ce.push(Ot),R&&(Ce.push(Ot+st),L&&Ce.push(Ot+k))}}for(var ht;ht=Ce.pop();)o.isValidLookup(l)||(p=ht,l=o.getResource(re,J,ht,s))}}))})}}),{res:l,usedKey:u,exactUsedKey:p,usedLng:d,usedNS:m}},"resolve")},{key:"isValidLookup",value:a(function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")},"isValidLookup")},{key:"getResource",value:a(function(r,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,o,s,l):this.resourceStore.getResource(r,o,s,l)},"getResource")}],[{key:"hasDefaultValue",value:a(function(r){var o="defaultValue";for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&o===s.substring(0,o.length)&&r[s]!==void 0)return!0;return!1},"hasDefaultValue")}]),n}(Ja);function mT(e){return e.charAt(0).toUpperCase()+e.slice(1)}a(mT,"capitalize");var ER=function(){function e(t){Lr(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Oo.create("languageUtils")}return a(e,"LanguageUtil"),Fr(e,[{key:"getScriptPartFromCode",value:a(function(n){if(!n||n.indexOf("-")<0)return null;var i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))},"getScriptPartFromCode")},{key:"getLanguagePartFromCode",value:a(function(n){if(!n||n.indexOf("-")<0)return n;var i=n.split("-");return this.formatLanguageCode(i[0])},"getLanguagePartFromCode")},{key:"formatLanguageCode",value:a(function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var i=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=mT(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=mT(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=mT(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n},"formatLanguageCode")},{key:"isSupportedCode",value:a(function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1},"isSupportedCode")},{key:"getBestMatchFromCodes",value:a(function(n){var i=this;if(!n)return null;var r;return n.forEach(function(o){if(!r){var s=i.formatLanguageCode(o);(!i.options.supportedLngs||i.isSupportedCode(s))&&(r=s)}}),!r&&this.options.supportedLngs&&n.forEach(function(o){if(!r){var s=i.getLanguagePartFromCode(o);if(i.isSupportedCode(s))return r=s;r=i.options.supportedLngs.find(function(l){if(l===s)return l;if(!(l.indexOf("-")<0&&s.indexOf("-")<0)&&l.indexOf(s)===0)return l})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r},"getBestMatchFromCodes")},{key:"getFallbackCodes",value:a(function(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!i)return n.default||[];var r=n[i];return r||(r=n[this.getScriptPartFromCode(i)]),r||(r=n[this.formatLanguageCode(i)]),r||(r=n[this.getLanguagePartFromCode(i)]),r||(r=n.default),r||[]},"getFallbackCodes")},{key:"toResolveHierarchy",value:a(function(n,i){var r=this,o=this.getFallbackCodes(i||this.options.fallbackLng||[],n),s=[],l=a(function(p){p&&(r.isSupportedCode(p)?s.push(p):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))},"addCode");return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),o.forEach(function(u){s.indexOf(u)<0&&l(r.formatLanguageCode(u))}),s},"toResolveHierarchy")}]),e}(),HW=[{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}],KW={1:a(function(t){return+(t>1)},"_"),2:a(function(t){return+(t!=1)},"_"),3:a(function(t){return 0},"_"),4:a(function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},"_"),5:a(function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},"_"),6:a(function(t){return t==1?0:t>=2&&t<=4?1:2},"_"),7:a(function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},"_"),8:a(function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},"_"),9:a(function(t){return+(t>=2)},"_"),10:a(function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},"_"),11:a(function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},"_"),12:a(function(t){return+(t%10!=1||t%100==11)},"_"),13:a(function(t){return+(t!==0)},"_"),14:a(function(t){return t==1?0:t==2?1:t==3?2:3},"_"),15:a(function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},"_"),16:a(function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},"_"),17:a(function(t){return t==1||t%10==1&&t%100!=11?0:1},"_"),18:a(function(t){return t==0?0:t==1?1:2},"_"),19:a(function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},"_"),20:a(function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},"_"),21:a(function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},"_"),22:a(function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3},"_")},XW=["v1","v2","v3"],bR={zero:0,one:1,two:2,few:3,many:4,other:5};function JW(){var e={};return HW.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:KW[t.fc]}})}),e}a(JW,"createRules");var YW=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Lr(this,e),this.languageUtils=t,this.options=n,this.logger=Oo.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(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=JW()}return a(e,"PluralResolver"),Fr(e,[{key:"addRule",value:a(function(n,i){this.rules[n]=i},"addRule")},{key:"getRule",value:a(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]},"getRule")},{key:"needsPlural",value:a(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(n,i);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1},"needsPlural")},{key:"getPluralFormsOfKey",value:a(function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,r).map(function(o){return"".concat(i).concat(o)})},"getPluralFormsOfKey")},{key:"getSuffixes",value:a(function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,l){return bR[s]-bR[l]}).map(function(s){return"".concat(i.options.prepend).concat(s)}):o.numbers.map(function(s){return i.getSuffix(n,s,r)}):[]},"getSuffixes")},{key:"getSuffix",value:a(function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(i)):this.getSuffixRetroCompatible(o,i):(this.logger.warn("no plural rule found for: ".concat(n)),"")},"getSuffix")},{key:"getSuffixRetroCompatible",value:a(function(n,i){var r=this,o=n.noAbs?n.plurals(i):n.plurals(Math.abs(i)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var l=a(function(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()},"returnSuffix");return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()},"getSuffixRetroCompatible")},{key:"shouldUseIntlApi",value:a(function(){return!XW.includes(this.options.compatibilityJSON)},"shouldUseIntlApi")}]),e}();function AR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(AR,"ownKeys$3");function qr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(qr,"_objectSpread$3");function SR(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=wW(e,t,n);return!o&&r&&typeof n=="string"&&(o=cg(e,n,i),o===void 0&&(o=cg(t,n,i))),o}a(SR,"deepFindWithDefaults");var QW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lr(this,e),this.logger=Oo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return a(e,"Interpolator"),Fr(e,[{key:"init",value:a(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var i=n.interpolation;this.escape=i.escape!==void 0?i.escape:VW,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?pl(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?pl(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?pl(i.nestingPrefix):i.nestingPrefixEscaped||pl("$t("),this.nestingSuffix=i.nestingSuffix?pl(i.nestingSuffix):i.nestingSuffixEscaped||pl(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()},"init")},{key:"reset",value:a(function(){this.options&&this.init(this.options)},"reset")},{key:"resetRegExp",value:a(function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var i="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(i,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")},"resetRegExp")},{key:"interpolate",value:a(function(n,i,r,o){var s=this,l,u,p,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(R){return R.replace(/\$/g,"$$$$")}a(m,"regexSafe");var T=a(function(L){if(L.indexOf(s.formatSeparator)<0){var F=SR(i,d,L,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(F,void 0,r,qr(qr(qr({},o),i),{},{interpolationkey:L})):F}var U=L.split(s.formatSeparator),J=U.shift().trim(),re=U.join(s.formatSeparator).trim();return s.format(SR(i,d,J,s.options.keySeparator,s.options.ignoreJSONStructure),re,r,qr(qr(qr({},o),i),{},{interpolationkey:J}))},"handleFormat");this.resetRegExp();var b=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,E=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,C=[{regex:this.regexpUnescape,safeValue:a(function(L){return m(L)},"safeValue")},{regex:this.regexp,safeValue:a(function(L){return s.escapeValue?m(s.escape(L)):m(L)},"safeValue")}];return C.forEach(function(R){for(p=0;l=R.regex.exec(n);){var L=l[1].trim();if(u=T(L),u===void 0)if(typeof b=="function"){var F=b(n,l,o);u=typeof F=="string"?F:""}else if(o&&Object.prototype.hasOwnProperty.call(o,L))u="";else if(E){u=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(L," for interpolating ").concat(n)),u="";else typeof u!="string"&&!s.useRawValueToEscape&&(u=gR(u));var U=R.safeValue(u);if(n=n.replace(l[0],U),E?(R.regex.lastIndex+=u.length,R.regex.lastIndex-=l[0].length):R.regex.lastIndex=0,p++,p>=s.maxReplaces)break}}),n},"interpolate")},{key:"nest",value:a(function(n,i){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,l,u;function p(b,E){var C=this.nestingOptionsSeparator;if(b.indexOf(C)<0)return b;var R=b.split(new RegExp("".concat(C,"[ ]*{"))),L="{".concat(R[1]);b=R[0],L=this.interpolate(L,u);var F=L.match(/'/g),U=L.match(/"/g);(F&&F.length%2===0&&!U||U.length%2!==0)&&(L=L.replace(/'/g,'"'));try{u=JSON.parse(L),E&&(u=qr(qr({},E),u))}catch(J){return this.logger.warn("failed parsing options string in nesting for key ".concat(b),J),"".concat(b).concat(C).concat(L)}return delete u.defaultValue,b}for(a(p,"handleHasOptions");s=this.nestingRegexp.exec(n);){var d=[];u=qr({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var m=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var T=s[1].split(this.formatSeparator).map(function(b){return b.trim()});s[1]=T.shift(),d=T,m=!0}if(l=i(p.call(this,s[1].trim(),u),u),l&&s[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=gR(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),m&&(l=d.reduce(function(b,E){return r.format(b,E,o.lng,qr(qr({},o),{},{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n},"nest")}]),e}();function xR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(xR,"ownKeys$2");function la(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(la,"_objectSpread$2");function zW(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);if(t==="currency"&&r.indexOf(":")<0)n.currency||(n.currency=r.trim());else if(t==="relativetime"&&r.indexOf(":")<0)n.range||(n.range=r.trim());else{var o=r.split(";");o.forEach(function(s){if(s){var l=s.split(":"),u=gT(l),p=u[0],d=u.slice(1),m=d.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=m),m==="false"&&(n[p.trim()]=!1),m==="true"&&(n[p.trim()]=!0),isNaN(m)||(n[p.trim()]=parseInt(m,10))}})}}return{formatName:t,formatOptions:n}}a(zW,"parseFormatStr");function dl(e){var t={};return a(function(i,r,o){var s=r+JSON.stringify(o),l=t[s];return l||(l=e(r,o),t[s]=l),l(i)},"invokeFormatter")}a(dl,"createCachedFormatter");var qW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lr(this,e),this.logger=Oo.create("formatter"),this.options=t,this.formats={number:dl(function(n,i){var r=new Intl.NumberFormat(n,la({},i));return function(o){return r.format(o)}}),currency:dl(function(n,i){var r=new Intl.NumberFormat(n,la(la({},i),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:dl(function(n,i){var r=new Intl.DateTimeFormat(n,la({},i));return function(o){return r.format(o)}}),relativetime:dl(function(n,i){var r=new Intl.RelativeTimeFormat(n,la({},i));return function(o){return r.format(o,i.range||"day")}}),list:dl(function(n,i){var r=new Intl.ListFormat(n,la({},i));return function(o){return r.format(o)}})},this.init(t)}return a(e,"Formatter"),Fr(e,[{key:"init",value:a(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=i.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","},"init")},{key:"add",value:a(function(n,i){this.formats[n.toLowerCase().trim()]=i},"add")},{key:"addCached",value:a(function(n,i){this.formats[n.toLowerCase().trim()]=dl(i)},"addCached")},{key:"format",value:a(function(n,i,r){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=i.split(this.formatSeparator),u=l.reduce(function(p,d){var m=zW(d),T=m.formatName,b=m.formatOptions;if(o.formats[T]){var E=p;try{var C=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},R=C.locale||C.lng||s.locale||s.lng||r;E=o.formats[T](p,R,la(la(la({},b),s),C))}catch(L){o.logger.warn(L)}return E}else o.logger.warn("there was no format function for ".concat(T));return p},n);return u},"format")}]),e}();function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(PR,"ownKeys$1");function IR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(IR,"_objectSpread$1");function ZW(e){var t=eG();return a(function(){var i=_r(e),r;if(t){var o=_r(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return nc(this,r)},"_createSuperInternal")}a(ZW,"_createSuper$1");function eG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}a(eG,"_isNativeReflectConstruct$1");function tG(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}a(tG,"removePending");var nG=function(e){ul(n,e);var t=ZW(n);function n(i,r,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Lr(this,n),s=t.call(this),fg&&Ja.call(zr(s)),s.backend=i,s.store=r,s.services=o,s.languageUtils=o.languageUtils,s.options=l,s.logger=Oo.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=l.maxParallelReads||10,s.readingCalls=0,s.maxRetries=l.maxRetries>=0?l.maxRetries:5,s.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,l.backend,l),s}return a(n,"Connector"),Fr(n,[{key:"queueLoad",value:a(function(r,o,s,l){var u=this,p={},d={},m={},T={};return r.forEach(function(b){var E=!0;o.forEach(function(C){var R="".concat(b,"|").concat(C);!s.reload&&u.store.hasResourceBundle(b,C)?u.state[R]=2:u.state[R]<0||(u.state[R]===1?d[R]===void 0&&(d[R]=!0):(u.state[R]=1,E=!1,d[R]===void 0&&(d[R]=!0),p[R]===void 0&&(p[R]=!0),T[C]===void 0&&(T[C]=!0)))}),E||(m[b]=!0)}),(Object.keys(p).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(p),pending:Object.keys(d),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(T)}},"queueLoad")},{key:"loaded",value:a(function(r,o,s){var l=r.split("|"),u=l[0],p=l[1];o&&this.emit("failedLoading",u,p,o),s&&this.store.addResourceBundle(u,p,s),this.state[r]=o?-1:2;var d={};this.queue.forEach(function(m){DW(m.loaded,[u],p),tG(m,r),o&&m.errors.push(o),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(function(T){d[T]||(d[T]={});var b=m.loaded[T];b.length&&b.forEach(function(E){d[T][E]===void 0&&(d[T][E]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(function(m){return!m.done})},"loaded")},{key:"read",value:a(function(r,o,s){var l=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!r.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:o,fcName:s,tried:u,wait:p,callback:d});return}this.readingCalls++;var m=a(function(C,R){if(l.readingCalls--,l.waitingReads.length>0){var L=l.waitingReads.shift();l.read(L.lng,L.ns,L.fcName,L.tried,L.wait,L.callback)}if(C&&R&&u<l.maxRetries){setTimeout(function(){l.read.call(l,r,o,s,u+1,p*2,d)},p);return}d(C,R)},"resolver"),T=this.backend[s].bind(this.backend);if(T.length===2){try{var b=T(r,o);b&&typeof b.then=="function"?b.then(function(E){return m(null,E)}).catch(m):m(null,b)}catch(E){m(E)}return}return T(r,o,m)},"read")},{key:"prepareLoading",value:a(function(r,o){var s=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=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."),u&&u();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(r,o,l,u);if(!p.toLoad.length)return p.pending.length||u(),null;p.toLoad.forEach(function(d){s.loadOne(d)})},"prepareLoading")},{key:"load",value:a(function(r,o,s){this.prepareLoading(r,o,{},s)},"load")},{key:"reload",value:a(function(r,o,s){this.prepareLoading(r,o,{reload:!0},s)},"reload")},{key:"loadOne",value:a(function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=r.split("|"),u=l[0],p=l[1];this.read(u,p,"read",void 0,void 0,function(d,m){d&&o.logger.warn("".concat(s,"loading namespace ").concat(p," for language ").concat(u," failed"),d),!d&&m&&o.logger.log("".concat(s,"loaded namespace ").concat(p," for language ").concat(u),m),o.loaded(r,d,m)})},"loadOne")},{key:"saveMissing",value:a(function(r,o,s,l,u){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(s,'" as the namespace "').concat(o,'" 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(!(s==null||s==="")){if(this.backend&&this.backend.create){var m=IR(IR({},p),{},{isUpdate:u}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var b;T.length===5?b=T(r,o,s,l,m):b=T(r,o,s,l),b&&typeof b.then=="function"?b.then(function(E){return d(null,E)}).catch(d):d(null,b)}catch(E){d(E)}else T(r,o,s,l,d,m)}!r||!r[0]||this.store.addResource(r[0],o,s,l)}},"saveMissing")}]),n}(Ja);function OR(){return{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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a(function(t){var n={};if(oi(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),oi(t[2])==="object"||oi(t[3])==="object"){var i=t[3]||t[2];Object.keys(i).forEach(function(r){n[r]=i[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:a(function(t,n,i,r){return t},"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}a(OR,"get");function CR(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}a(CR,"transformOptions");function NR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(NR,"ownKeys");function Io(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(Io,"_objectSpread");function iG(e){var t=rG();return a(function(){var i=_r(e),r;if(t){var o=_r(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return nc(this,r)},"_createSuperInternal")}a(iG,"_createSuper");function rG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}a(rG,"_isNativeReflectConstruct");function ag(){}a(ag,"noop");function oG(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}a(oG,"bindMemberFunctions");var lg=function(e){ul(n,e);var t=iG(n);function n(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Lr(this,n),i=t.call(this),fg&&Ja.call(zr(i)),i.options=CR(r),i.services={},i.logger=Oo,i.modules={external:[]},oG(zr(i)),o&&!i.isInitialized&&!r.isClone){if(!i.options.initImmediate)return i.init(r,o),nc(i,zr(i));setTimeout(function(){i.init(r,o)},0)}return i}return a(n,"I18n"),Fr(n,[{key:"init",value:a(function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var l=OR();this.options=Io(Io(Io({},l),this.options),CR(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Io(Io({},l.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(L){return L?typeof L=="function"?new L:L:null}if(a(u,"createClassOnDemand"),!this.options.isClone){this.modules.logger?Oo.init(u(this.modules.logger),this.options):Oo.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=qW);var d=new ER(this.options);this.store=new BW(this.options.resources,this.options);var m=this.services;m.logger=Oo,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new YW(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(m.formatter=u(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new QW(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new nG(u(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(L){for(var F=arguments.length,U=new Array(F>1?F-1:0),J=1;J<F;J++)U[J-1]=arguments[J];r.emit.apply(r,[L].concat(U))}),this.modules.languageDetector&&(m.languageDetector=u(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=u(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new TR(this.services,this.options),this.translator.on("*",function(L){for(var F=arguments.length,U=new Array(F>1?F-1:0),J=1;J<F;J++)U[J-1]=arguments[J];r.emit.apply(r,[L].concat(U))}),this.modules.external.forEach(function(L){L.init&&L.init(r)})}if(this.format=this.options.interpolation.format,s||(s=ag),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var b=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];b.forEach(function(L){r[L]=function(){var F;return(F=r.store)[L].apply(F,arguments)}});var E=["addResource","addResources","addResourceBundle","removeResourceBundle"];E.forEach(function(L){r[L]=function(){var F;return(F=r.store)[L].apply(F,arguments),r}});var C=qf(),R=a(function(){var F=a(function(J,re){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),C.resolve(re),s(J,re)},"finish");if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return F(null,r.t.bind(r));r.changeLanguage(r.options.lng,F)},"load");return this.options.resources||!this.options.initImmediate?R():setTimeout(R,0),C},"init")},{key:"loadResources",value:a(function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ag,l=s,u=typeof r=="string"?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return l();var p=[],d=a(function(b){if(b){var E=o.services.languageUtils.toResolveHierarchy(b);E.forEach(function(C){p.indexOf(C)<0&&p.push(C)})}},"append");if(u)d(u);else{var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.forEach(function(T){return d(T)})}this.options.preload&&this.options.preload.forEach(function(T){return d(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(T)})}else l(null)},"loadResources")},{key:"reloadResources",value:a(function(r,o,s){var l=qf();return r||(r=this.languages),o||(o=this.options.ns),s||(s=ag),this.services.backendConnector.reload(r,o,function(u){l.resolve(),s(u)}),l},"reloadResources")},{key:"use",value:a(function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&LR.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this},"use")},{key:"setResolvedLanguage",value:a(function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var o=0;o<this.languages.length;o++){var s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}},"setResolvedLanguage")},{key:"changeLanguage",value:a(function(r,o){var s=this;this.isLanguageChangingTo=r;var l=qf();this.emit("languageChanging",r);var u=a(function(T){s.language=T,s.languages=s.services.languageUtils.toResolveHierarchy(T),s.resolvedLanguage=void 0,s.setResolvedLanguage(T)},"setLngProps"),p=a(function(T,b){b?(u(b),s.translator.changeLanguage(b),s.isLanguageChangingTo=void 0,s.emit("languageChanged",b),s.logger.log("languageChanged",b)):s.isLanguageChangingTo=void 0,l.resolve(function(){return s.t.apply(s,arguments)}),o&&o(T,function(){return s.t.apply(s,arguments)})},"done"),d=a(function(T){!r&&!T&&s.services.languageDetector&&(T=[]);var b=typeof T=="string"?T:s.services.languageUtils.getBestMatchFromCodes(T);b&&(s.language||u(b),s.translator.language||s.translator.changeLanguage(b),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(b)),s.loadResources(b,function(E){p(E,b)})},"setLng");return!r&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(r),l},"changeLanguage")},{key:"getFixedT",value:a(function(r,o,s){var l=this,u=a(function p(d,m){var T;if(oi(m)!=="object"){for(var b=arguments.length,E=new Array(b>2?b-2:0),C=2;C<b;C++)E[C-2]=arguments[C];T=l.options.overloadTranslationOptionHandler([d,m].concat(E))}else T=Io({},m);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||s||p.keyPrefix;var R=l.options.keySeparator||".",L;return T.keyPrefix&&Array.isArray(d)?L=d.map(function(F){return"".concat(T.keyPrefix).concat(R).concat(F)}):L=T.keyPrefix?"".concat(T.keyPrefix).concat(R).concat(d):d,l.t(L,T)},"fixedT");return typeof r=="string"?u.lng=r:u.lngs=r,u.ns=o,u.keyPrefix=s,u},"getFixedT")},{key:"t",value:a(function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)},"t")},{key:"exists",value:a(function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)},"exists")},{key:"setDefaultNamespace",value:a(function(r){this.options.defaultNS=r},"setDefaultNamespace")},{key:"hasLoadedNamespace",value:a(function(r){var o=this,s=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;var l=s.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var d=a(function(b,E){var C=o.services.backendConnector.state["".concat(b,"|").concat(E)];return C===-1||C===2},"loadNotPending");if(s.precheck){var m=s.precheck(this,d);if(m!==void 0)return m}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(l,r)&&(!u||d(p,r)))},"hasLoadedNamespace")},{key:"loadNamespaces",value:a(function(r,o){var s=this,l=qf();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(u){s.options.ns.indexOf(u)<0&&s.options.ns.push(u)}),this.loadResources(function(u){l.resolve(),o&&o(u)}),l):(o&&o(),Promise.resolve())},"loadNamespaces")},{key:"loadLanguages",value:a(function(r,o){var s=qf();typeof r=="string"&&(r=[r]);var l=this.options.preload||[],u=r.filter(function(p){return l.indexOf(p)<0});return u.length?(this.options.preload=l.concat(u),this.loadResources(function(p){s.resolve(),o&&o(p)}),s):(o&&o(),Promise.resolve())},"loadLanguages")},{key:"dir",value:a(function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var o=["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"],s=this.services&&this.services.languageUtils||new ER(OR());return o.indexOf(s.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"},"dir")},{key:"cloneInstance",value:a(function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ag,l=Io(Io(Io({},this.options),o),{isClone:!0}),u=new n(l);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var p=["store","services","language"];return p.forEach(function(d){u[d]=r[d]}),u.services=Io({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new TR(u.services,u.options),u.translator.on("*",function(d){for(var m=arguments.length,T=new Array(m>1?m-1:0),b=1;b<m;b++)T[b-1]=arguments[b];u.emit.apply(u,[d].concat(T))}),u.init(l,s),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u},"cloneInstance")},{key:"toJSON",value:a(function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}},"toJSON")}]),n}(Ja);Po(lg,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new lg(e,t)});var ee=lg.createInstance();ee.createInstance=lg.createInstance;var Tq=ee.createInstance,Eq=ee.dir,bq=ee.init,Aq=ee.loadResources,Sq=ee.reloadResources,xq=ee.use,Pq=ee.changeLanguage,Iq=ee.getFixedT,Oq=ee.t,Cq=ee.exists,Nq=ee.setDefaultNamespace,Rq=ee.hasLoadedNamespace,Lq=ee.loadNamespaces,Fq=ee.loadLanguages;var JL=te(yT()),YL=te(rL()),Cg=te(KL()),Ye=require("@sap-ux/vocabularies-types/vocabularies/UI"),ru=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Ig=te(se());var oe=a((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(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var B="#/definitions/",eo=a((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Ro(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Cg.parse)(r.fileContent,r.dataSourceUri))}catch(o){return oe(t,{severity:K.LogSeverity.Error,message:ee.t("ANNOERR"),location:{path:ee.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},o),i}}),n.length>0&&(i=(0,YL.convert)((0,Cg.merge)(...n))),i}a(Ro,"parseAndMergeAndConvert");var vl=a(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function MT(e,t,n){var i,r,o,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=(o=e.Common)==null?void 0:o.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}a(MT,"evaluateCommonLabel");function Ng(e,t){let n=e.value;return e.$target&&(n=MT(e.$target.annotations,t,n)),n}a(Ng,"getLabelForPropertyPath");function Og(e,t){var r,o;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)),(o=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&o.Label&&(n=MT(i.annotations,t,n)),n}a(Og,"getLabelForDataField");function kH(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 o=r[0];if((i=(n=o==null?void 0:o.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return MT(o.annotations,t,s)}}}else return}a(kH,"getLabel");function XL(e,t,n){let i=Og(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}a(XL,"getTitleForDataField");function Ei(e,t){var o,s,l;let n="",i,r;try{let u=kH(e.Label,t);switch(e.$Type){case Ye.UIAnnotationTypes.DataField:r=e,n=XL(r,t,u);break;case Ye.UIAnnotationTypes.DataFieldWithUrl:r=e,i=Og(e,t),n=u||i||(typeof r.Value=="string"?r.Value:r.Value.path);break;case Ye.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Og(e,t),n=u||i||((s=(o=r.Target)==null?void 0:o.$target)==null?void 0:s.Title)||((l=r.Target)==null?void 0:l.value.split("UI.v1.")[1]);break;case Ye.UIAnnotationTypes.DataFieldForAction:case Ye.UIAnnotationTypes.DataFieldWithAction:case Ye.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,u?n=typeof u=="string"?u:r.Action:n=e.Action;break;case Ye.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:r=e,i=Og(e,t),n=i||r.Value.path;break;case Ye.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=XL(r,t,u);break;default:break}return n}catch{return n}}a(Ei,"getDataFieldDescription");function ft(e){return e.replace("#","::").replace(/\//g,":2f")}a(ft,"prepareRef");function ga(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}a(ga,"getPageTypeV2");function VT(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}a(VT,"getPageTypeV4");function jH(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}a(jH,"getTargetAnnotationName");function ai(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}a(ai,"findAlias");function $H(e){return e.substring(e.lastIndexOf(".")+1,e.length)}a($H,"getAnnotationFromMetaPath");function UH(e,t,n){var s;let i=e[e.length-1],r=$H(i),o=ai(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(s=t==null?void 0:t.annotations[o])==null?void 0:s[r]}a(UH,"determineTargetAnnotation");function BH(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ye.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}a(BH,"adjustKey");function WH(e,t,n,i,r=K.FioriElementsVersion.v2,o=!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=BH(t,u,o);let d=UH(u,n,e);if(d){let b=r===K.FioriElementsVersion.v2?"::":"#";t=jH(d,o).replace("#",b),l=(T=d.fullyQualifiedName)==null?void 0:T.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let b=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}a(WH,"getKeyAndEntityTypeOfReferenceFacet");function QL(e,t,n,i,r=K.FioriElementsVersion.v2,o=!1){var d,m,T;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((d=e.fullyQualifiedName)==null?void 0:d.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(T=e.fullyQualifiedName)==null?void 0:T.split("@")[0],p=t;if(e.$Type!==Ye.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=vl(e.Target);if(!b){oe(i,{severity:K.LogSeverity.Error,message:ee.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:C,stopProcessing:R,namespace:L}=WH(n,l,p,b,r,o);if(R)return;l=E,p=C,u=L}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}}a(QL,"getSectionFacet");function GH(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}a(GH,"getDecodedPathElement");var kT=a(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),zL=a((e,t,n,i,r,o=!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 d=GH(p,n,i);if(r!==void 0&&!o&&l.length-1===u)s[d]=r;else if(!s[d]){if(o)return;s[d]=kT(l[u+1])}s=s[d]}return s},"resolveManifestPath"),Lo=a((e,t,n,i,r=!1)=>zL(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),qL=a((e,t,n,i,r)=>{zL(e,t,i,r,n)},"setManifestSectionByPathV4");function jT(e){let t,n,i;switch(e.$Type){case Ye.UIAnnotationTypes.DataField:t=vl(e.Value);break;case Ye.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:vl(e.Value);break;case Ye.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Ye.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ft(e.Action)}`);break;case Ye.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=vl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Ye.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ft(e.Action)}`);break;case Ye.UIAnnotationTypes.DataFieldWithNavigationPath:i=vl(e.Value),n=vl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}a(jT,"getSchemaKeyOfLineItemRecord");function HH(e,t,n){return e.includes(Ye.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Ye.UIAnnotationTerms.Chart:e.includes(Ye.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Ye.UIAnnotationTerms.Identification:n&&e.includes(Ye.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Ye.UIAnnotationTerms.LineItem:e.includes(Ye.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Ye.UIAnnotationTerms.FieldGroup:e.includes(Ye.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Ye.UIAnnotationTerms.DataPoint:e.includes(Ye.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Ye.UIAnnotationTerms.PresentationVariant:void 0}a(HH,"getUIAnnotationTerm");function KH(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?ru.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?ru.CommunicationAnnotationTerms.Address:void 0}a(KH,"getCommunicationAnnotationTerm");function XH(e,t,n){return HH(e,t,n)||KH(e,t)}a(XH,"getAnnotationTerm");function JH(e,t,n,i,r){var p,d,m,T,b,E,C,R,L;let o=ai(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(XH(s,o,i)){case Ye.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.LineItem:{if(!s.includes(Ye.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let F=s.split("::");F[F.length-1]=`@${Ye.UIAnnotationTerms.LineItem}`,s=F.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(C=t==null?void 0:t.Target)==null?void 0:C.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ru.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(R=t==null?void 0:t.Target)==null?void 0:R.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ru.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}a(JH,"evaluateTargetAnnotation");function $T(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}a($T,"getAnnotationPathUsingFullyQualifiedName");function UT(e,t,n,i,r,o=K.FioriElementsVersion.v2,s){var u;let l=QL(e,i,t,s,o,!1);if(l)switch(e.$Type){case Ye.UIAnnotationTypes.ReferenceFacet:{JH(l,e,r,i,t);break}case Ye.UIAnnotationTypes.CollectionFacet:{let p=$T(i,e.fullyQualifiedName),d=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!d.ID&&o===K.FioriElementsVersion.v4&&oe(s,{severity:K.LogSeverity.Error,message:ee.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{UT(m,t,n,i,d.facets,o,s)});break}}}a(UT,"addFacetToConfig");function ZL(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let o=ai(K.UIVOCABULARY,t),s=o&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),d=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{UT(m,t,d,e,r,n,i)})}return r}a(ZL,"getObjectPageHeaderFacets");function Rg(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let o=ai(K.UIVOCABULARY,t),s=o&&((l=e==null?void 0:e.annotations[o])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(d=>{UT(d,t,p,e,r,n,i)})}return r}a(Rg,"getObjectPageFacets");function BT(e){return e[K.ManifestSection.generic]||e[K.ManifestSection.ovp]?K.FioriElementsVersion.v2:K.FioriElementsVersion.v4}a(BT,"getVersionFromManifest");function YH(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let o=e[K.ManifestSection.generic].pages;if(!o){oe(t,{severity:K.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in o){let l=o[s];if(ga((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(ga((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||oe(t,{severity:K.LogSeverity.Error,message:ee.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}a(YH,"determineV2Template");function ou(e){var i,r,o,s;let t,n=VT(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(o=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:o.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}a(ou,"determineV4PageTemplateType");function QH(e){let t;for(let n in e){let i=e[n];if(t=ou(i),t)break}return t}a(QH,"determineV4TemplateFromPages");function zH(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return oe(t,{severity:K.LogSeverity.Info,message:ee.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=QH(n);return i||oe(t,{severity:K.LogSeverity.Error,message:ee.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}a(zH,"determineV4Template");function WT(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=YH(e,n):t===K.FioriElementsVersion.v4?i=zH(e,n):i||oe(n,{severity:K.LogSeverity.Error,message:ee.t("NOFE"),location:{path:K.MANIFESTPATH}}),i}a(WT,"getTemplateTypeFromManifest");function ma(e,t,n){e!=null&&e.ID?(t.title=K.FacetTitlePrefix+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}a(ma,"addSectionTitleAndDescription");function au(e,t,n){var i;ma(e,t,n),e!=null&&e.Label?t.description=e==null?void 0: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)}a(au,"addTargetTitleAndSectionDescription");function ha(e,t,n){if(!t)return;let i;return e.definitions.ObjectPageSection?i=JSON.parse(JSON.stringify(e.definitions.ObjectPageSection)):(i={type:"object",properties:{},additionalProperties:!1},i[K.SchemaTag.isViewNode]=!0),i[K.SchemaTag.annotationPath]=t.annotationPath,ma(t,i,n),i}a(ha,"createDefaultSection");function Lg(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let o=ai(K.UIVOCABULARY,t),s=[];if(e){let p=o&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:u.Facets);return p&&(s=p.reduce(function(d,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return d;let T=QL(m,e,t,n,i,!0);return T&&d.push(T),d},s)),s}}a(Lg,"getObjectPageFacetSection");var Qa=a((e,t,n,i)=>{if(!t)return;let r=e,o=t.split("/");o.forEach(function(s){let l=i&&i===s?n:s.replace(/\?\?/g,"/");if(r[l]){if(Object.keys(r[l]).length===0){Array.isArray(r)?r.splice(Number(l),1):delete r[l],o.pop(),Qa(e,o.join("/"),n,i);return}r=r&&r[l]}})},"deleteEmptyStructure"),wT=a(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Nt=a((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:wT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:wT(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=wT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Fg(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let o=n&&n.split(".");return o&&o[o.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}a(Fg,"generatePageId");function GT(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(B)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let o=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u])&&o.push(s)}return o}a(GT,"findMatchingKeysByAdditionalProperties");function qH(e,t,n,i){let r=e.$ref;if(!r)return;let o=r.split(B)[1],s=t.definitions[o];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(o);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=GT(t,s.additionalProperties,n);(u.some(d=>d in n)||p.length)&&i.push(o)}}}a(qH,"fillArrayFromAnyOfReference");function ZH(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(B)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{qH(r,n,t,i)}),i.length===0))return;return i}a(ZH,"fillArrayFromPropertyDefinition");function e5(e,t,n,i,r,o,s,l){var p,d,m,T;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((d=u==null?void 0:u.targetDefinition)==null?void 0:d.type)==="array")return u=Fo(t,n,i,u.targetDefinition,r,o,s),u;e.length>1&&e.forEach(R=>{R!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[R].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=b==null?void 0:b.split("<")[0],C=i||{};u.configObject=o.createInstance(s,E,C,(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}a(e5,"determineNextDefinitionFromDefinitionArray");function Fo(e,t,n,i,r,o,s){let l;if(i.type==="array")return l=Fo(e,t,n,i.items,r,o,s),l;let u=ZH(i,n,e);if(u)return l=e5(u,e,t,n,r,o,s,i),l}a(Fo,"getNextTargetDefinition");var HT=a((e,t,n)=>{let i=e.slice();return t.forEach((r,o)=>{typeof i[o]>"u"?i[o]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[o]=(0,JL.default)(e[o],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function _g(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}a(_g,"convertEnumToCSV");function Wi(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}a(Wi,"convertActionKeyToStableId");function un(e){return e==null?void 0:e.split(B)[1]}a(un,"getDefinitionKey");function eF(e){return`#/definitions/${e}`}a(eF,"getDefinitionsRef");function tF(e){return e instanceof Error?e.message:String(e)}a(tF,"getErrorMessage");function oc(e,t){return e==null?void 0:e.includes(t)}a(oc,"isFeatureSupported");function _o(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}a(_o,"updatePropertyIndices");function Dg(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}a(Dg,"getJSONPropertyByPath");function nF(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}a(nF,"removeNamespaces");function Tl(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}a(Tl,"replaceNamespaces");var qo=require("@sap-ux/vocabularies-types/vocabularies/UI"),fe=te(se());var bi=te(se());var Gt=a((e,t)=>e+t.join("::"),"buildControlIdFromParent"),wg=a((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Yn=a((e,t)=>{let n,i=bi.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 t5(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}a(t5,"escapeId");var iF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(iF||{}),rF=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(rF||{});function n5(e,t,n){let i;return e=e.map(function(r){if(r===bi.PropertyName.sections){for(let o=0;o<t.length;o++)if(t[o]===bi.PropertyName.sections&&(i=t[o+1],i.indexOf(bi.FacetBase.LineItem)!==-1))return t[o+1]=Yn(i,n)+"::Table",t[o+1]}return r}),{idBreadcrumbs:e}}a(n5,"mapBreadcrumbs");var KT=a((e,t,n,i,r)=>{let o="listReport",s=[...n];({idBreadcrumbs:t}=n5(t,s,r)),s[0]===bi.PropertyName.sections?o=s[1].replace(/::com.sap.vocabularies/g,bi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,bi.VOCWITHSLASH):t[0]===bi.PropertyName.table&&(o=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,bi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,bi.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),u,p=l.indexOf(":::");return l.startsWith("DataField")&&p>-1?u=`${e}template:::TableColumn:::${l.substring(0,p)}:::sSmartTableId::${o.replace("::Table",":3a:3aTable")}:::${l.substring(p+3)}`:u=`${e}${t.join("::")}-${l}`,t5(u)},"buildColumnControlId"),Gi=a(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 i5(e){let t=bi.BindingPropertyRegexAsString;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}a(i5,"determinePattern");var XT=a((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let o=r[n],s=o,l=o.$ref?e.definitions[o.$ref.split(B)[1]]:o,u=o.description?o.description:l.description,p=i5(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(d=>{s.enum.indexOf(d)===-1&&s.enum.push(d)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete o.description)},"addPatternForBindingChangeOfEnum"),Qn=a((e,t,n)=>{XT(e,t,n)},"addPatternForBindingChangeOfEnumLR"),dt=a((e,t,n)=>{let i=Object.values(iF);XT(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),Hi=a((e,t,n)=>{let i=Object.values(rF);XT(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function ac(){}a(ac,"doNotDelete");var S9=te(aF());var sF=Symbol("specificationMetadataKey"),v=a(e=>Reflect.metadata(sF,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(sF,e,t)),n}a(zn,"getReflectMetadata");var Dr=a(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),cF=Symbol("childId"),Ft=a(e=>Reflect.metadata(cF,e),"childId"),Mg=a((e,t)=>Reflect.getMetadata(cF,e,t),"getChildId"),sc=a(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),r5=Symbol("validityMetadataKey"),I=a(e=>Reflect.metadata(r5,e),"validity");function Vg(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}a(Vg,"getTextForDeprecated");var hF=te(gF()),yF=te(se());var vF=hF.default.change,mF={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function TF(e,t){let n="";try{for(let i in mF)e[i]===void 0&&(e[i]=mF[i]);n=vF.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}a(TF,"createChangeString");function za(e){try{return vF.parse(e)}catch{return!1}}a(za,"parseChangeString");function kg(e,t,n,i,r){let o=n.layer?n.layer===yF.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:o};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}a(kg,"fillFlexChangeContent");function Te(e,t){return TF(e,t)}a(Te,"exportToFlexChange");var cc=te(se());function El(e,t,n,i,r,o){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,o);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}a(El,"importProperty");function jg(e,t,n,i){if(t&&e)for(let r in t){let o=e[r];o&&(oe(i,{severity:cc.LogSeverity.Warning,message:Vg(r,o),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}a(jg,"checkDeprecatedProperties");function JT(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(B)[1]];return JT(n,t)}else return e.title?e.title.startsWith(cc.FacetTitlePrefix)?e.title.split(cc.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}a(JT,"getSectionTitle");function $g(e){let t=e.split(`${cc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}a($g,"getTargetFromCustomColumnRef");function Do(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}a(Do,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var ya=require("@sap-ux/vocabularies-types/vocabularies/UI");function Ug(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}}a(Ug,"replaceSpecialChars");var lc=a(function(e){return Ug(nF(e))},"prepareId");function u5(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}a(u5,"evaluateConcat");function fc(e){var t;if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return u5(e);if(e&&typeof e=="string")return Ug(e.replace(/ /g,"_"))}a(fc,"getStableIdPartFromValue");var EF=a(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"),va=a(function(e){let t="";if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=EF(e),t;if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=lc(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=fc(e.Value)+"::"),t+=e.Action,lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataField)return t="DataField::",t+=fc(e.Value),lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=fc(e.Value)+"::",t+=EF(e),lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=fc(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=fc(e.Value),lc(t)},"getStableIdPartFromDataField");var pe=te(se());var ke=te(se());var Ki=require("@sap-ux/vocabularies-types/vocabularies/UI"),SF=require("path"),xF=te(ic());var uc="ResponsiveTableWithMultiSelect<LineItems>",pc="ResponsiveTableWithInlineDelete<LineItems>",Bg="TreeTable<LineItems>",Wg="AnalyticalTable<LineItems>",Gg="GridTable<LineItems>",YT=[uc,pc,Bg,Wg,Gg],bF="template::",Hg="template:::ObjectPageAction:::";function p5(e,t,n){e.definitions[ke.DefinitionName.LineItems]&&(e.definitions[ke.DefinitionName.LineItems].properties.custom={$ref:`${B}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${B}${n}`},description:"Custom Columns"},e.definitions[t][ke.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[ke.SchemaTag.artifactType]=ke.ArtifactType.Manifest)}a(p5,"addCustomColumnDefinition");function d5(e,t){let n;return e==="TableColumnActionIntentBased"?n=jT(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ft(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Ki.UIAnnotationTypes.DataFieldForAction?n=ft(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ft(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}a(d5,"getActionId");function QT(e,t,n,i,r){let o,s=n.lineItemId===ke.DefinitionName.LineItems?"":"ObjectPage",l=d5(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(o="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?o="TableColumnAction":(o=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=Ei(n.lineItemRecord,n.entityType);t.properties[l]={$ref:B+u},t.properties[l][ke.SchemaTag.propertyIndex]=r;let{key:d,ns:m}=xl(n.lineItemRecord.Action,!0);e.definitions[o]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[o])),description:p,keys:[{name:"Action",value:d}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][ke.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][ke.SchemaTag.isViewNode]=!0,e.definitions[u][ke.SchemaTag.keys]=[{name:ke.SchemaKeyName.action,value:d}],m&&(e.definitions[u][ke.SchemaTag.target]=m),e.definitions[u][ke.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}a(QT,"handleActionRecord");function g5(e,t,n){e!==ke.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Ki.UIAnnotationTypes.DataFieldForAction||t.$Type===Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Ki.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}a(g5,"getColumnActionType");function m5(e,t){let n=[];if(!(e.$Type!==Ki.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Ki.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Ki.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),g5(t,e,n),n}a(m5,"getActionType");function PF(e,t,n){let i=jT(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:B+ke.DefinitionName.TableColumn,description:Ei(e.lineItemRecord,e.entityType)},r.properties[i][ke.SchemaTag.propertyIndex]=n,r.properties[i][ke.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Qg(r.properties[i],e.lineItemRecord),zg(e.lineItemRecord,r.properties,i)}}a(PF,"generateGenericColumn");function h5(e,t,n,i,r,o,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{QT(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{o&&QT(t,o,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{QT(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":PF(i,t,r)}}a(h5,"handleAnyAction");function bl(e,t,n,i,r){i=i||ke.DefinitionName.LineItems;let{actions:o,footerActions:s,lineItemPath:l}=Yg(e,t,n,i);if(t){let u=0;t.forEach(p=>{let d={lineItemPath:l,lineItemRecord:p,lineItemId:i,entityType:n},m=m5(p,i);m?m.forEach(T=>{h5(T,e,o,d,u,s,i)}):PF(d,e,u),u++})}r&&(e.definitions[i].properties.custom={$ref:`${B}${r}`})}a(bl,"addLineItemsType");function y5(e,t,n){var r,o;let i=(o=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:o.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),[])}}a(y5,"addListReportLeadingProperties");function v5(e,t,n,i){var s,l,u,p,d;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 o=(d=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:d.variants;if(o){let m=[];Object.keys(o).reduce((T,b)=>{let E=o[b]&&o[b].key!==void 0?o[b].key:void 0;return E!==void 0&&!T.includes(E)&&T.push(E),T},m),Ta(m,r)}}a(v5,"addTabkeyEnum");function Kg(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let o=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let d=JSON.parse((0,xF.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!d||d.Column||d["table:Column"]||d["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!d||!d.Column&&!d["table:Column"]&&!d["table:AnalyticalColumn"]&&!d["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+SF.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");o.push(m)}}}),Ta(o,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}a(Kg,"addFragmentEnum");function Al(e,t,n,i,r,o=ke.DefinitionName.CustomColumns,s=ke.DefinitionName.CustomColumn,l){p5(e,o,s),y5(e,t,s),v5(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Kg(e,r,u,"fragmentName",s),Kg(e,r,u,"fragmentName",ke.DefinitionName.CustomColumn),Kg(e,r,u,"cellsFragmentName",s),Kg(e,r,u,"cellsFragmentName",ke.DefinitionName.CustomColumn)}a(Al,"addTableColumnExtensions");function IF(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}a(IF,"removeElementsFromEnum");function Xg(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=eo(n==null?void 0:n.fullyQualifiedName,Ki.UIAnnotationTerms.SelectionFields);if(r&&(i[ke.SchemaTag.annotationPath]=r),!t)return;let o=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ft(s.value)}>`,p=to(s);s.type==="PropertyPath"&&(l=Ng(s,n)),i.properties[s.value]={$ref:B+u},i.properties[s.value][ke.SchemaTag.propertyIndex]=o,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][ke.SchemaTag.isViewNode]=!0,e.definitions[u][ke.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][ke.SchemaTag.dataType]=p,e.definitions[u][ke.SchemaTag.keys]=[{name:ke.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][ke.SchemaTag.annotationPath]=`${i[ke.SchemaTag.annotationPath]}/${o}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${B}SelectionFieldDateSettings`:e.definitions[u].properties={},o++})}a(Xg,"addSelectionFields");function OF(e,t){for(let n of t.entityProperties)e.push(n.name)}a(OF,"addEntityPropertiesToEnum");function Jg(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)}a(Jg,"isDraftEnabled");function CF(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}a(CF,"isEntityDeletable");function NF(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}a(NF,"isEntityUpdatable");function Sl(e,t=!1,n){let i=ke.DefinitionName.HeaderActionsStandard,r=ke.DefinitionName.HeaderActionStandard;t&&(i=ke.DefinitionName.ObjectPageHeaderActions,r=ke.DefinitionName.ObjectPageHeaderActionStandard);let o=e.definitions[i];o[ke.SchemaTag.isViewNode]=!0,o.description="Actions",Object.entries((n||o).properties).forEach(([l,u])=>{let p=u.$ref.split(B)[1],d=`${r}<${p}>`;o.properties[l]={$ref:`${B}${d}`},e.definitions[d]=e.definitions[p],e.definitions[p][ke.SchemaTag.actionType]=ke.ActionType.Standard})}a(Sl,"addStandardHeaderActions");function RF(e,t){let n=e.definitions[ke.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(B)[1],o=`${ke.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${B}${o}`},e.definitions[o]=e.definitions[r],e.definitions[r][ke.SchemaTag.actionType]=ke.ActionType.Standard}}a(RF,"addStandardFooterActionsOP");function T5(e,t,n,i){if(e===pe.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===pe.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}}}a(T5,"copyFieldProperties");function E5(e,t,n,i){let r=e===pe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===pe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}a(E5,"determineFieldDefinitionName");function b5(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][pe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][pe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][pe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][pe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}a(b5,"addKeysTagForDataField");function A5(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)b5(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][pe.SchemaTag.keys]=[{name:"Target",value:Tl(e.Target.value)}],t.definitions[n][pe.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][pe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][pe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][pe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][pe.SchemaTag.keys]=[{name:pe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][pe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][pe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}a(A5,"addKeysTagToField");function S5(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}a(S5,"isConnectedField");function x5(e,t,n,i,r){let o=n.Target.$target,s={};if(o.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let u=(o.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=o.Data,d=u.length;for(let m in p){let T=p[m];if(typeof T=="object"&&"$Type"in T){let b=u.findIndex(E=>E===m);b===-1&&(b=d,d++),zT(e,t,T,`ConnectedFields::${o.qualifier}`,b.toString(),i,r,void 0,{actions:s,fields:s},o.fullyQualifiedName.split("@")[0])}}}return s}a(x5,"addConnectedFields");function LF(e,t,n){if(n)return n;let i=ft(t);return e.definitions[i].properties}a(LF,"getFieldsSchemaContainer");function zT(e,t,n,i,r,o,s,l=!0,u={},p=o.entityType.fullyQualifiedName){var E;let d=va(n),m=s===pe.FioriElementsVersion.v2&&d&&d.includes("::")?d.split("::").splice(1).join("::"):d,T=E5(s,d,i,m),b={};if(!(!n||!n.$Type)){if(n.$Type===_t.UIAnnotationTypes.DataFieldForAction||n.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===pe.SectionType.Section){let C=LF(t,`${e}${pe.DefinitionName.Actions}<${i}>`,u.actions),R=C[m]={$ref:`${B}${T}`};R[pe.SchemaTag.propertyIndex]=parseInt(r)}}else{let C=LF(t,`${e}${pe.DefinitionName.Fields}<${i}>`,u.fields);C[m]={$ref:`${B}${T}`,propertyIndex:parseInt(r)},S5(n)&&(b=x5(e,t,n,o,s))}t.definitions[T]={type:"object",properties:b,description:Ei(n,o.entityType),additionalProperties:!1},A5(n,t,T),t.definitions[T][pe.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[T][pe.SchemaTag.annotationType]=n.$Type,t.definitions[T][pe.SchemaTag.isViewNode]=!0,Qg(t.definitions[T],n),T5(s,t,n,T),n.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[T].$ref=`${B}${pe.DefinitionName.FormAction}`,delete t.definitions[T].properties)}}a(zT,"addField");function P5(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}a(P5,"determineTargetIdOfForm");function I5(e,t,n,i,r,o){if(e.base===pe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&zT(t,n,l,i,s,e,r,o)}else for(let s in e.target.Data){let l=e.target.Data[s];zT(t,n,l,i,s,e,r)}}a(I5,"addFieldsToFormDefinition");function O5(e,t,n){var i,r;if(e.target){let o=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][pe.SchemaTag.keys]=[{name:pe.SchemaKeyName.target,value:o.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][pe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][pe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][pe.SchemaTag.annotationPath]=eo(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}a(O5,"addTagsToFormDefinition");function qg(e,t,n,i,r,o){if(!t.target)return;let s=P5(t),l=ft(`${e}${pe.DefinitionName.Form}<${s}>`),u=ft(`${e}${pe.DefinitionName.Fields}<${s}>`),p=ft(`${e}${pe.DefinitionName.Actions}<${s}>`),d=!(t.base===pe.FacetBase.Identification&&o.indexOf("#")<0);return n.properties.form={$ref:`${B}${l}`},e===pe.SectionType.Section&&d?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${B}${p}`},fields:{$ref:`${B}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][pe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${B}${u}`}},description:"Form",additionalProperties:!1},O5(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][pe.SchemaTag.isViewNode]=!0,I5(t,e,i,s,r,d),s}a(qg,"handleForm");function qT(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),o=t.references.find(s=>s.alias===r);o&&(i=e.replace(n,o.namespace))}return i}a(qT,"replaceAlias");function Zg(e,t){let n=qT(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let o,s,l;return r>-1?(o=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${o}`):(o=i,l=e.fullyQualifiedName.split("@")[0],o&&o!==""&&(s=`${l.substring(0,l.length-1)}::${o}`)),{actionName:o,actionId:s,namespace:l}}a(Zg,"getActionNameAndId");function FF(e,t){var n,i;for(let r in e){let o=e[r];return((n=o.component)==null?void 0:n.name)===pe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===o.entitySet:FF(o.pages,t)}}a(FF,"isFirstObjectPage");function em(e,t,n,i,r){var d,m;e.definitions[pe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${pe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${B}${pe.DefinitionName.ObjectPageFooter}`},e.definitions[pe.DefinitionName.ObjectPageFooter].properties[pe.PropertyName.actions]={$ref:`${B}${pe.DefinitionName.FooterActions}`};let o=e.definitions[pe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};o[pe.SchemaTag.isViewNode]=!0;let s=ai(pe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(d=u==null?void 0:u.annotations)==null?void 0:d[s])==null?void 0:m.Identification);if(p){let T=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);o[pe.SchemaTag.annotationPath]=`/${T}`,i(u,e,o,p)}else u&&(o[pe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===pe.FioriElementsVersion.v2&&FF(r,t)&&!Jg(l)&&RF(e,o),delete e.definitions[pe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${pe.DefinitionName.ObjectPageFooter}<${pe.DefinitionName.ObjectPageFooterActions}>`]}a(em,"addFooterActions");function tm(e,t,n,i,r,o=!1){var m,T;let s=pe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[pe.DefinitionName.ObjectPageHeader].properties[pe.PropertyName.actions]={$ref:`${B}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[pe.SchemaTag.isViewNode]=!0;let p=ai(pe.UIVOCABULARY,i),d=p&&((T=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:T.Identification);d?u[pe.SchemaTag.annotationPath]="/"+d.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(u[pe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),r(t,e,d,u,i,n),o&&Sl(e,!0,l)}a(tm,"addHeaderActions");function nm(e,t){e.properties.header={$ref:`${B}${pe.DefinitionName.ObjectPageHeader}`},e.definitions[pe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${pe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[pe.DefinitionName.ObjectPageHeader][pe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}a(nm,"addCommonHeaderSchema");function _F(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}a(_F,"determineEntitySetOfEntityType");var Xi=require("@sap-ux/vocabularies-types/vocabularies/UI");var tt=te(se());function Ta(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}a(Ta,"addEnumToSchema");function rm(e,t,n){var o;let i=(o=e==null?void 0:e.annotations)==null?void 0:o.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)}}Ta(r,n)}a(rm,"addEnumForValidAnnotations");function qa(e,t,n){let i=t.definitions[n].properties[tt.SchemaTag.annotationPath],r=[Xi.UIAnnotationTerms.SelectionVariant,Xi.UIAnnotationTerms.SelectionPresentationVariant];rm(e,r,i)}a(qa,"addEnumForSingleTabVariant");function DF(e,t,n){var o;let i=(o=e.definitions[t])==null?void 0:o.properties.annotationPath,r=[Xi.UIAnnotationTerms.SelectionVariant,Xi.UIAnnotationTerms.SelectionPresentationVariant];rm(n.entityType,r,i)}a(DF,"addEnumForMultiTabVariant");function wF(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(o=>{r.push(o.name)}),Ta(r,i)}a(wF,"addEnumForVariantEntitySet");function MF(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Xi.UIAnnotationTerms.SelectionVariant];rm(e,r,i)}a(MF,"addEnumForFilterBarAnnotationPath");function VF(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Xi.UIAnnotationTerms.FieldGroup];rm(e,r,i)}a(VF,"addEnumFieldGroupAnnotationPath");function om(e,t,n,i){let r=n.map(o=>{let s=i.find(p=>!!o[p]),l=o[s],u=o.label||o.title;return{const:l,...u&&{description:u},...o.custom&&{custom:o.custom}}});if(r.length){e.definitions[tt.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let o of t){let s=e.definitions[o],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${B}${tt.DefinitionName.RelatedFacetKeys}`},l]}}}}a(om,"addDefinitionForRelatedFacetKeys");function Pl(e){return e.replace("#","::")}a(Pl,"getFacetKeyInSchema");function kF(e,t){return`${e}<${Pl(t)}>`}a(kF,"getFacetDefinitionKey");function Dt(e,t,n,i=!0,r){let o=t;if(i&&(o=kF(r||e,t)),e&&e!==o){let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[o]=s}return n.definitions[o]}a(Dt,"parseSchemaDefinition");function im(e,t,n){let i;return t===tt.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${Xi.UIAnnotationTerms.LineItem}`?i=`${B}${n}`:(i=`${B}${n}<${t}>`,Dt(n,t,e,!0)),i}a(im,"getCustomExtensionDefinitionName");function Yg(e,t,n,i,r,o){let s;if(e.definitions[i]={type:"object",properties:{},description:"Columns"},e.definitions[i][tt.SchemaTag.isViewNode]=!0,e.definitions[i].additionalProperties=!1,r){let E=im(e,i,r);e.definitions[i].additionalProperties={$ref:E}}let l=i.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.ToolBar:tt.DefinitionName.ObjectPageToolBar,u=`${l}<${i}>`;e.definitions[u]=JSON.parse(JSON.stringify(e.definitions[`${l}`]));let p=`${tt.DefinitionName.Actions}<${ft(i)}>`;e.definitions[u].properties.actions.$ref=B+p;let d=i.startsWith(tt.DefinitionName.LineItems)?tt.DefinitionName.Actions:tt.DefinitionName.ObjectPageToolBarActions,m=e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[d]));if(m.properties={},m.additionalProperties=!1,o){let E=im(e,i,o);m.additionalProperties={$ref:E}}let T,b;if(i===tt.DefinitionName.LineItems&&e.properties.footer){b=`${tt.DefinitionName.Footer}<${i}>`,e.properties.footer.$ref=`${B}${b}`,e.definitions[b]=JSON.parse(JSON.stringify(e.definitions[tt.DefinitionName.GenericFooter]));let E=`${tt.DefinitionName.FooterActions}<${ft(i)}>`;e.definitions[b].properties.actions.$ref=B+E,T=e.definitions[E]=JSON.parse(JSON.stringify(e.definitions[tt.DefinitionName.Actions])),T.properties={},T.additionalProperties=!1}return t&&(s=eo(n==null?void 0:n.fullyQualifiedName,t.term,t.qualifier),s&&(e.definitions[u][tt.SchemaTag.annotationPath]=s,T&&(e.definitions[b][tt.SchemaTag.annotationPath]=s))),{actions:m,footerActions:T,lineItemPath:s}}a(Yg,"addCommonLineItemDefinitions");function jF(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}a(jF,"getDataTypeFromAnnotation");function am(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=jF(e.$Type)),t}a(am,"determineDataTypeOfTarget");function to(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=am((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=jF(e.$Type):e.type&&(t=e.type),t}catch{return t}}a(to,"determineDataType");function Qg(e,t){let n=to(t);n&&(e[tt.SchemaTag.dataType]=n)}a(Qg,"addDataTypeToDefinition");function Un(e,t){return`${B}${kF(e,t)}`}a(Un,"getFacetDefinitionLink");function Za(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${B}${i}`}a(Za,"addDefinitionRef");function sm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${tt.UIVOCABULARY}`);t=`/${n}/@${tt.UIVOCABULARY}${i}`}return t}a(sm,"getFacetAnnotationPath");function su(e,t,n,i,r,o,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${o}${e.base}${s}`;n.properties[t]={$ref:Un(o?u:l,t)};let p=Dt(o?u:l,t,i,!0,o?u:void 0);ma(e,p,t),p[tt.SchemaTag.annotationPath]=e.annotationPath,p[tt.SchemaTag.isViewNode]=!0}a(su,"handleAddressContact");function ZT(e,t,n){typeof e=="object"&&(e[t]=n)}a(ZT,"updateSchemaProperty");function Il(e,t,n=ft("")){let i=t.entityProperties.map(o=>o.name),r=e.definitions[`${tt.DefinitionName.Fields4Dialog}${n}`];ZT(r.properties.fields.items,"enum",i)}a(Il,"addFieldsType");function C5(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}a(C5,"findFirstSchemaDefinitionKey");function cm(e,t,n,i){var p;let r=t.description,o=t.keys,s=!t.annotationPath;if(t.$ref){let d=un(t.$ref),m=(p=e.definitions)==null?void 0:p[d];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,o=m.keys))}let l=n,u=C5(o,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}}}a(cm,"getEnumEntry");function es(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=cm(e,u,l,i);r.push(p)}let o=e.definitions[n.definition]||n.schema;if(typeof o=="object")if(n.property){let l=(s=o.properties)==null?void 0:s[n.property];ZT(l,"oneOf",r)}else ZT(o,"oneOf",r)}a(es,"addDescriptiveEnumDefinition");function xl(e,t){let n=e,i;return n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf("/")>0&&(i=n.substring(0,n.indexOf("/")),n=n.substring(n.lastIndexOf("/")+1)),t&&n.indexOf(".")>0&&(i=n.substring(0,n.lastIndexOf(".")),n=n.substring(n.lastIndexOf(".")+1)),i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}a(xl,"getActionKey");function zg(e,t,n){var i,r,o;try{if(e.Value)t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.value,value:fc(e.Value)}];else if(e.$Type===Xi.UIAnnotationTypes.DataFieldWithAction||e.$Type===Xi.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=xl(e.Action,!0);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.action,value:s}],l&&(t[n][tt.SchemaTag.target]=l)}else if(e.$Type===Xi.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=xl(e.Target.value,!1);t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.target,value:Tl(s)}],t[n][tt.SchemaTag.target]=(o=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:o.split("@")[0]}else(e.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Xi.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)&&(t[n][tt.SchemaTag.keys]=[{name:"SemanticObject",value:e[tt.SchemaKeyName.semanticObject]},{name:"Action",value:e.Action}])}catch{return}}a(zg,"addKeyToDefinition");var Ol=te(se());var $F=[{version:"1.120",distTag:["latest","UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123","UI5-1.124"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var UF="1.108.21";var ts=class ts{constructor(){ts.distTagsOfSpec.length===0&&(ts.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){ts.distTagsOfSpec=[]}getSpecVersion(){return UF}getDistTagsOfVersion(){let t=[],n=$F,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(o=>o.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=ee.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Ol.LogSeverity.Info,message:r,location:{path:Ol.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(ts.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=ee.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Ol.LogSeverity.Warning,message:r,location:{path:Ol.MANIFESTPATH}})}}};a(ts,"DistTagEvaluator"),ts.distTagsOfSpec=[];var cu=ts;var le=te(se());var mn=te(se());var Fn=te(se());function F5(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}a(F5,"getCustomPageName");function BF(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)||Fn.ViewTypes.XML}a(BF,"getViewType");function _5(e,t){return BF(e,t).toLowerCase()}a(_5,"getViewTypeExtension");function D5(e,t,n){var p,d;let i=a(m=>{var T;return(T=m.split(`${t.id}.`)[1])==null?void 0:T.split(".")},"splitViewPath"),r=t.settings,o=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=(d=e.view)==null?void 0:d.name;s!=null&&s.includes(t.id)?n=i(s):o!=null&&o.includes(t.id)&&(n=[...i(o),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}a(D5,"getViewPath");function w5(e,t){let n=e.entitySet||F5(e),{viewPath:i,fileName:r}=D5(e,t,[n]),o=_5(e,t);return[...i,`${r}.view.${o}`].join("/")}a(w5,"getCustomPagePath");var eE=class eE{constructor(t,n,i,r,o,s,l){this.unhandledControllers=[];let u=Nt(Fn.SchemaType.Application);this.app={$schema:u.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:o,odata:o===Fn.FioriElementsVersion.v2?Fn.OdataVersion.v2:Fn.OdataVersion.v4},...s&&{settings:s}},this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},i;for(let o in this.app.pages){i=this.app.pages[o];let s=this.app.target.odata===Fn.OdataVersion.v4?o:i.entitySet,l=this.getPageConfigFile(i,s);l&&(t[`${Fn.DirName.Pages}/${o}.json`]=l)}let r=JSON.parse(JSON.stringify(this.app));for(let o in r.pages)delete r.pages[o].config;return n[Fn.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var o;let i,r=BF(t,this.app)===Fn.ViewTypes.XML&&!!t.config;if(t.pageType===Fn.PageTypeV4.CustomPage||t.pageType===Fn.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Nt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(o=t.view)==null?void 0:o.id:void 0,l=Nt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Nt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Fn.PageTypeV4.CustomPage||t.pageType===Fn.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=w5(t,this.app);n.$filePath=i}};a(eE,"AppProvider");var ns=eE;var We=te(se());var dc=te(se());function lm(e,t,n){if(t.controlType.endsWith(dc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===dc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[dc.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",dc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}a(lm,"addFlexForTable");var Cl=te(se());var Bn=a((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),WF=a((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),GF=a((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 tE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}a(tE,"getNewPageTemplate");function M5(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}a(M5,"findPageInManifest");function V5(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=tE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:tE(e[t].pageType)}),!Array.isArray(n.pages))){let i=M5(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=tE(e[t].pageType)),nE(t,e,i)}}a(V5,"transformPageFromAssociation");function k5(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var o;let r=e.pages[i];if(((o=r.component)==null?void 0:o.name)===Cl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Cl.PageTypeV2.ListReport||n.pageType===Cl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}a(k5,"deletePage");function nE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Cl.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)V5(t,r,n);Array.isArray(n.pages)||k5(n,t,i)}}a(nE,"transformPageToNewManifestV2");var C0=te(ic());var kb={};ec(kb,{ALPAnalyticalTable:()=>WE,ALPGridTable:()=>BE,ALPResponsiveTable:()=>UE,Action:()=>XE,AnalyticalCard:()=>_l,AnalyticalCardSettings:()=>dm,AnalyticalCardSettingsv4:()=>cE,AnalyticalListPageFilterBar:()=>yE,AnalyticalTable:()=>$E,BaseCustomSection:()=>Vu,ChartSettings:()=>ub,ChartSettingsType:()=>rE,CommonCardSettings:()=>as,CommonFilterBar:()=>Tu,CommonTableSettings:()=>us,CommonTableSettingsForSections:()=>Pc,CreateWithFilters:()=>_E,CustomCard:()=>aE,DataLoadSettings:()=>wE,DateRange:()=>dE,DefaultDateRange:()=>gE,DefaultSpanObject:()=>oE,FRAGMENT_DEFINITION:()=>jo,Field:()=>pE,FieldForAction:()=>AE,Fields4Dialog:()=>ME,Fields4DialogOP:()=>Fb,FooterAction:()=>YE,FormAction:()=>bE,GlobalChartSettings:()=>Rb,GlobalTableSettings:()=>Mb,GridTable:()=>GE,HeaderActionStandard:()=>eb,KPISettings:()=>pb,LinkListCardSettings:()=>fE,LinklistCard:()=>hu,ListCard:()=>Fl,ListCardSettings:()=>sE,ListReportFilterBar:()=>vE,MultiEdit:()=>DE,ObjectPageAnalyticalTable:()=>_b,ObjectPageChart:()=>Nb,ObjectPageCustomSectionFragment:()=>ku,ObjectPageCustomSectionView:()=>ju,ObjectPageFooterAction:()=>mb,ObjectPageFooterActionStandard:()=>nb,ObjectPageGridTable:()=>Db,ObjectPageHeader:()=>db,ObjectPageHeaderAction:()=>gb,ObjectPageHeaderActionStandard:()=>tb,ObjectPageLayout:()=>yb,ObjectPageResponsiveTable:()=>Ic,ObjectPageSectionAddressV2:()=>Ab,ObjectPageSectionChartV2:()=>Eb,ObjectPageSectionContactV2:()=>Sb,ObjectPageSectionFormV2:()=>Tb,ObjectPageSectionTableV2:()=>bb,ObjectPageSectionV2:()=>vb,ObjectPageSubSectionChartV2:()=>Ib,ObjectPageSubSectionContactV2:()=>Ob,ObjectPageSubSectionFormV2:()=>Pb,ObjectPageSubSectionTableV2:()=>Cb,ObjectPageSubSectionV2:()=>xb,ObjectPageToolBarAction:()=>Vb,ObjectPageTreeTable:()=>wb,QuickVariantSelection:()=>VE,QuickVariantSelectionOP:()=>Lb,QuickVariantSelectionX:()=>kE,ResponsiveTable:()=>hc,SAP_UI_TABLE:()=>Em,SaveAndEditOP:()=>ZE,SelectionFieldDateSettings:()=>mE,SelectionFields:()=>hE,Share:()=>QE,ShareOP:()=>zE,StackCard:()=>mu,StackCardSettings:()=>lE,TableALP:()=>kl,TableCard:()=>Dl,TableCardSettings:()=>uE,TableColumn:()=>ob,TableColumnAction:()=>Um,TableColumnActionIntentBased:()=>ab,TableCustomColumn:()=>sb,ToolBar:()=>lb,ToolBarAction:()=>JE,TreeTable:()=>jE,UpAndDownNavigationOP:()=>qE,buildIntentBasedActionId:()=>ib,deleteColumnFromFragment:()=>Sm,deleteType:()=>$l,exportCreateParametersFields:()=>Lm,exportCustomColumnsToFragment:()=>LE,exportDateSettingsField:()=>zF,exportDefaultSpan:()=>JF,exportType:()=>jl,getChartSectionControlId:()=>S0,getContactSubSectionControlId:()=>P0,getCustomColumnPath:()=>xm,getFormSectionControlId:()=>A0,getRootCustomColumnFromFragmentJSON:()=>Au,getSectionControlId:()=>xc,getSmartChartControlId:()=>Lu,getSmartTableControlId:()=>fs,getSubSectionControlId:()=>x0,getTableSectionControlId:()=>b0,importCreateParameters:()=>Rm,importDateSettings:()=>TE});var qn=te(se());var Me=a(e=>`${qn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),io=a(e=>Me(e)+"/tableSettings","getTableSettingPathV2"),HF=a(e=>Me(e)+"/chartSettings","getChartSettingPathV2"),KF=a(e=>Me(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var gn=a(()=>qn.ManifestSection.ovp,"getOVPsettingPath"),Pe=a(e=>{let t=[qn.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in qn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var gc=a((e,t)=>`${qn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),pm=a(e=>{let t=[qn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ji=a(e=>{let t=[];return t.push(pm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),wo=a(e=>Ji(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ro=a((e,t,n)=>{let i=[];i.push(pm(e));let r=n.replace(qn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),wr=a((e,t,n)=>ro(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),XF=a((e,t,n)=>ro(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),iE=a(()=>`sap.ui5/extends/extensions/${qn.v2.SAPUI5_VIEW_EXTENSION}/${qn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ea=a((e,t,n,...i)=>{let r="|",o=n.split(r),s=e[e.length-1].split(r),l="";o.length===4?l=[o[2],o[3]].join(r):o.length===3&&(l=o[2]);let u=[o[0],s[s.length-1],l].join(r);return i.unshift(u),`${iE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),um=class um{};a(um,"ApplicationV2"),y([Ft("settings")],um.prototype,"settings",2);var fm=um,no=class no{};a(no,"AppSettings"),y([v({manifest:{path:()=>"sap.app"}})],no.prototype,"title",2),y([v({manifest:{path:()=>"sap.app"}})],no.prototype,"description",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.50.0"})],no.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.46.0"})],no.prototype,"forceGlobalRefresh",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.74.0"})],no.prototype,"tableColumnVerticalAlignment",2),y([v({manifest:{path:()=>"sap.ui5"}}),I({since:"1.56.0"})],no.prototype,"flexEnabled",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.96.0"})],no.prototype,"draftDiscardConfirmationSettings",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.96.0"})],no.prototype,"statePreservationMode",2);var is=no;function JF(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}a(JF,"exportDefaultSpan");var gm=class gm{};a(gm,"ChartSettingsType"),y([v({manifest:{path:()=>gn()+"/chartSettings"}})],gm.prototype,"showDataLabel",2);var rE=gm,rs=class rs{};a(rs,"DefaultSpanObject"),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"cols",2),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"rows",2),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"showOnlyHeader",2),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"minimumTitleRow",2),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"minimumSubTitleRow",2);var oE=rs,$t=class $t{};a($t,"CommonCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"entitySet",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"title",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"subTitle",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"annotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"dataPointAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"selectionPresentationAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"kpiAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"category",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"dynamicSubtitleAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"valueSelectionInfo",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"showFilterInHeader",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"sortBy",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"sortOrder",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"identificationAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"selectionAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"presentationAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"enableLocaleCurrencyFormatting",2),y([v({manifest:{path:t=>Pe(t),export:JF}})],$t.prototype,"defaultSpan",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"requireAppAuthorization",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"showSortingInHeader",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"tabs",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"addODataSelect",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"showRefresh",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"customParams",2);var as=$t,Nl=class Nl{};a(Nl,"CustomCard"),y([v({manifest:{path:t=>Pe(t)}})],Nl.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],Nl.prototype,"template",2),y([v({manifest:{path:t=>Pe(t)}})],Nl.prototype,"settings",2);var aE=Nl,os=class os extends as{};a(os,"ListCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"showLineItemDetail",2),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"imageSupported",2),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"enableAddToInsights",2),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"listFlavor",2),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"listType",2);var sE=os,lu=class lu{};a(lu,"ListCard"),y([v({manifest:{path:t=>Pe(t)}})],lu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],lu.prototype,"template",2);var Fl=lu,Mo=class Mo extends as{};a(Mo,"AnalyticalCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"chartAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"ignoreSapText",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"enableAddToInsights",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"navigation",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"valueSelectionInfo",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"chartProperties",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"colorPalette",2);var dm=Mo,mm=class mm extends dm{};a(mm,"AnalyticalCardSettingsv4"),y([v({manifest:{path:t=>Pe(t)}})],mm.prototype,"measureAggregate",2);var cE=mm,fu=class fu{};a(fu,"AnalyticalCard"),y([v({manifest:{path:t=>Pe(t)}})],fu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],fu.prototype,"template",2);var _l=fu,Rl=class Rl extends as{};a(Rl,"StackCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"itemText",2),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"objectStreamCardsNavigationProperty",2),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"objectStreamCardsSettings",2);var lE=Rl,uu=class uu{};a(uu,"StackCard"),y([v({manifest:{path:t=>Pe(t)}})],uu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],uu.prototype,"template",2);var mu=uu,Ll=class Ll extends as{};a(Ll,"LinkListCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"listFlavor",2),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"headerAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"staticContent",2);var fE=Ll,pu=class pu{};a(pu,"LinklistCard"),y([v({manifest:{path:t=>Pe(t)}})],pu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],pu.prototype,"template",2);var hu=pu,du=class du extends as{};a(du,"TableCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],du.prototype,"showLineItemDetail",2),y([v({manifest:{path:t=>Pe(t)}})],du.prototype,"enableAddToInsights",2);var uE=du,gu=class gu{};a(gu,"TableCard"),y([v({manifest:{path:t=>Pe(t)}})],gu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],gu.prototype,"template",2);var Dl=gu;var YF=te(se());var j5=a((e,t,n,i,r)=>{let o=Yn(n[1],r),s=n.slice(-1)[0];return Gt(e,[o,s,"GroupElement"])},"getSmartFieldControlId"),hm=class hm{};a(hm,"Field"),y([v({flex:{controlId:j5,controlType:()=>YF.ControlType.GroupElement,createFlexChange:Te},generate:dt})],hm.prototype,"visible",2);var pE=hm;var mc=te(se());function TE(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}a(TE,"importDateSettings");function $5(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((o,s)=>{r[s]=o,o.equals&&typeof o.equals=="string"&&(r[s].equals=o.equals.split(","))})),r}a($5,"importDateSettingsField");function zF(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 o=i[r];e[n][r]=o,o.equals&&Array.isArray(o.equals)&&(e[n][r].equals=o.equals.join())}}a(zF,"exportDateSettingsField");var wl=class wl{};a(wl,"DateRange"),y([v({manifest:{path:t=>Me(t)+mc.DATESETTINGSPATH}}),I({since:"1.77.0"})],wl.prototype,"useDateRange",2),y([v({manifest:{path:t=>Me(t)+mc.DATESETTINGSPATH,import:TE,export:_g}}),I({since:"1.77.0"})],wl.prototype,"selectedValues",2),y([v({manifest:{path:t=>Me(t)+mc.DATESETTINGSPATH}}),I({since:"1.77.0"})],wl.prototype,"exclude",2);var dE=wl,ym={controlId:Gt,controlType:()=>mc.ControlType.SmartFilterBar,createFlexChange:Te},yu={path:(e,t,n)=>`${Me(e)}${mc.DATESETTINGSPATH}/fields/${n}`},QF={...yu,import:$5,export:zF},vm=class vm{};a(vm,"DefaultDateRange"),y([v({manifest:yu}),I({since:"1.90.0"})],vm.prototype,"operation",2);var gE=vm,ss=class ss{};a(ss,"SelectionFieldDateSettings"),y([v({manifest:QF}),I({since:"1.77.0"})],ss.prototype,"selectedValues",2),y([v({manifest:yu}),I({since:"1.77.0"})],ss.prototype,"exclude",2),y([v({manifest:yu}),I({since:"1.77.0"})],ss.prototype,"customDateRangeImplementation",2),y([v({manifest:QF}),I({since:"1.77.0"})],ss.prototype,"filter",2),y([v({manifest:yu}),I({since:"1.90.0"})],ss.prototype,"defaultValue",2);var mE=ss,EE=class EE{};a(EE,"SelectionFields");var hE=EE,oo=class oo{};a(oo,"CommonFilterBar"),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.38.0"})],oo.prototype,"smartVariantManagement",2),y([v({flex:ym}),I({since:"1.40.0"})],oo.prototype,"liveMode",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.48.0"})],oo.prototype,"variantManagementHidden",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.52.0"})],oo.prototype,"subTitleIfVariantMgmtHidden",2),y([v({manifest:{path:t=>Me(t)+"/filterSettings",import:TE}}),I({since:"1.77.0"})],oo.prototype,"dateSettings",2),y([v({flex:ym}),I({since:"1.28.0"})],oo.prototype,"showClearOnFB",2),y([v({flex:ym}),I({since:"1.38.0"})],oo.prototype,"showFilterConfiguration",2),y([v({flex:ym}),I({since:"1.28.0"})],oo.prototype,"showRestoreOnFB",2);var Tu=oo,vu=class vu extends Tu{};a(vu,"AnalyticalListPageFilterBar"),y([v({manifest:{path:t=>Me(t)}})],vu.prototype,"showGoButtonOnFilterBar",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.60.0"})],vu.prototype,"filterDefaultsFromSelectionVariant",2);var yE=vu,Tm=class Tm extends Tu{};a(Tm,"ListReportFilterBar"),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.86.0"})],Tm.prototype,"annotationPath",2);var vE=Tm;var SE=te(se());var U5=a((e,t,n,i,r)=>{if(i()===SE.ControlType.Button){let o=n[n.length-1],s=Yn(n[1],r);return`${e}action::${o}::${s}::FormAction`}return Gt(e,t)},"getFormActionButtonId"),Vo={controlId:U5,controlType:()=>SE.ControlType.Button,createFlexChange:Te},cs=class cs{};a(cs,"FormAction"),y([v({flex:Vo,generate:dt})],cs.prototype,"visible",2),y([v({flex:Vo})],cs.prototype,"tooltip",2),y([v({flex:Vo})],cs.prototype,"icon",2),y([v({flex:Vo})],cs.prototype,"activeIcon",2),y([v({flex:Vo})],cs.prototype,"type",2);var bE=cs,ls=class ls{};a(ls,"FieldForAction"),y([v({flex:Vo,generate:dt})],ls.prototype,"visible",2),y([v({flex:Vo})],ls.prototype,"tooltip",2),y([v({flex:Vo})],ls.prototype,"icon",2),y([v({flex:Vo})],ls.prototype,"activeIcon",2),y([v({flex:Vo}),I({since:"1.73.0"})],ls.prototype,"type",2);var AE=ls;var Yt=te(se()),ao=te(ic());var IE=require("path"),o8=te(se()),u0=te(f0()),p0=require("fs");var a8=(0,IE.join)(__dirname,"templates");var s8=a((e,t)=>{let n=(0,p0.readFileSync)(e,"utf8");return(0,u0.render)(n,t)},"renderTemplate");var OE=a((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 s8((0,IE.join)(a8,t+".xml"),n)},"getSingleColumnContent"),CE=a((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=OE(i,t);n=n+`
|
|
288
|
+
}`;var ze=MO(function(){return bt(P,Oe+"return "+Z).apply(e,N)});if(ze.source=Z,Kv(ze))throw ze;return ze}a(ZU,"template");function e4(c){return Pt(c).toLowerCase()}a(e4,"toLower");function t4(c){return Pt(c).toUpperCase()}a(t4,"toUpper");function n4(c,f,g){if(c=Pt(c),c&&(g||f===e))return HP(c);if(!c||!(f=sr(f)))return c;var h=Xr(c),A=Xr(f),P=KP(h,A),N=XP(h,A)+1;return Ka(h,P,N).join("")}a(n4,"trim");function i4(c,f,g){if(c=Pt(c),c&&(g||f===e))return c.slice(0,YP(c)+1);if(!c||!(f=sr(f)))return c;var h=Xr(c),A=XP(h,Xr(f))+1;return Ka(h,0,A).join("")}a(i4,"trimEnd");function r4(c,f,g){if(c=Pt(c),c&&(g||f===e))return c.replace(Ky,"");if(!c||!(f=sr(f)))return c;var h=Xr(c),A=KP(h,Xr(f));return Ka(h,A).join("")}a(r4,"trimStart");function o4(c,f){var g=k,h=Ot;if(fn(f)){var A="separator"in f?f.separator:A;g="length"in f?Je(f.length):g,h="omission"in f?sr(f.omission):h}c=Pt(c);var P=c.length;if(el(c)){var N=Xr(c);P=N.length}if(g>=P)return c;var D=g-tl(h);if(D<1)return h;var j=N?Ka(N,0,D).join(""):c.slice(0,D);if(A===e)return j+h;if(N&&(D+=j.length-D),Xv(A)){if(c.slice(D).search(A)){var z,q=j;for(A.global||(A=lv(A.source,Pt(dP.exec(A))+"g")),A.lastIndex=0;z=A.exec(q);)var Z=z.index;j=j.slice(0,Z===e?D:Z)}}else if(c.indexOf(sr(A),D)!=D){var de=j.lastIndexOf(A);de>-1&&(j=j.slice(0,de))}return j+h}a(o4,"truncate");function a4(c){return c=Pt(c),c&&be.test(c)?c.replace(ue,DV):c}a(a4,"unescape");var s4=sl(function(c,f,g){return c+(g?" ":"")+f.toUpperCase()}),Qv=VI("toUpperCase");function wO(c,f,g){return c=Pt(c),f=g?e:f,f===e?NV(c)?VV(c):EV(c):c.match(f)||[]}a(wO,"words");var MO=et(function(c,f){try{return or(c,e,f)}catch(g){return Kv(g)?g:new Ge(g)}}),c4=ra(function(c,f){return xr(f,function(g){g=xo(g),na(c,g,Gv(c[g],c))}),c});function l4(c){var f=c==null?0:c.length,g=_e();return c=f?rn(c,function(h){if(typeof h[1]!="function")throw new Pr(r);return[g(h[0]),h[1]]}):[],et(function(h){for(var A=-1;++A<f;){var P=c[A];if(or(P[0],this,h))return or(P[1],this,h)}})}a(l4,"cond");function f4(c){return Dk(Or(c,p))}a(f4,"conforms");function zv(c){return function(){return c}}a(zv,"constant");function u4(c,f){return c==null||c!==c?f:c}a(u4,"defaultTo");var p4=jI(),d4=jI(!0);function Ui(c){return c}a(Ui,"identity");function qv(c){return mI(typeof c=="function"?c:Or(c,p))}a(qv,"iteratee");function g4(c){return yI(Or(c,p))}a(g4,"matches");function m4(c,f){return vI(c,Or(f,p))}a(m4,"matchesProperty");var h4=et(function(c,f){return function(g){return Wf(g,c,f)}}),y4=et(function(c,f){return function(g){return Wf(c,g,f)}});function Zv(c,f,g){var h=Jn(f),A=Md(f,h);g==null&&!(fn(f)&&(A.length||!h.length))&&(g=f,f=c,c=this,A=Md(f,Jn(f)));var P=!(fn(g)&&"chain"in g)||!!g.chain,N=aa(c);return xr(A,function(D){var j=f[D];c[D]=j,N&&(c.prototype[D]=function(){var z=this.__chain__;if(P||z){var q=c(this.__wrapped__),Z=q.__actions__=ki(this.__actions__);return Z.push({func:j,args:arguments,thisArg:c}),q.__chain__=z,q}return j.apply(c,ja([this.value()],arguments))})}),c}a(Zv,"mixin");function T4(){return Xn._===this&&(Xn._=WV),this}a(T4,"noConflict");function eT(){}a(eT,"noop");function E4(c){return c=Je(c),et(function(f){return TI(f,c)})}a(E4,"nthArg");var b4=Lv(rn),A4=Lv($P),S4=Lv(nv);function VO(c){return kv(c)?iv(xo(c)):zk(c)}a(VO,"property");function x4(c){return function(f){return c==null?e:Qs(c,f)}}a(x4,"propertyOf");var P4=UI(),I4=UI(!0);function tT(){return[]}a(tT,"stubArray");function nT(){return!1}a(nT,"stubFalse");function O4(){return{}}a(O4,"stubObject");function C4(){return""}a(C4,"stubString");function N4(){return!0}a(N4,"stubTrue");function R4(c,f){if(c=Je(c),c<1||c>Fe)return[];var g=en,h=di(c,en);f=_e(f),c-=en;for(var A=av(h,f);++g<c;)f(g);return A}a(R4,"times");function L4(c){return He(c)?rn(c,xo):cr(c)?[c]:ki(iO(Pt(c)))}a(L4,"toPath");function F4(c){var f=++UV;return Pt(c)+f}a(F4,"uniqueId");var _4=Bd(function(c,f){return c+f},0),D4=Fv("ceil"),w4=Bd(function(c,f){return c/f},1),M4=Fv("floor");function V4(c){return c&&c.length?wd(c,Ui,yv):e}a(V4,"max");function k4(c,f){return c&&c.length?wd(c,_e(f,2),yv):e}a(k4,"maxBy");function j4(c){return WP(c,Ui)}a(j4,"mean");function $4(c,f){return WP(c,_e(f,2))}a($4,"meanBy");function U4(c){return c&&c.length?wd(c,Ui,bv):e}a(U4,"min");function B4(c,f){return c&&c.length?wd(c,_e(f,2),bv):e}a(B4,"minBy");var W4=Bd(function(c,f){return c*f},1),G4=Fv("round"),H4=Bd(function(c,f){return c-f},0);function K4(c){return c&&c.length?ov(c,Ui):0}a(K4,"sum");function X4(c,f){return c&&c.length?ov(c,_e(f,2)):0}return a(X4,"sumBy"),x.after=g$,x.ary=gO,x.assign=tU,x.assignIn=CO,x.assignInWith=tg,x.assignWith=nU,x.at=iU,x.before=mO,x.bind=Gv,x.bindAll=c4,x.bindKey=hO,x.castArray=I$,x.chain=uO,x.chunk=w2,x.compact=M2,x.concat=V2,x.cond=l4,x.conforms=f4,x.constant=zv,x.countBy=Hj,x.create=rU,x.curry=yO,x.curryRight=vO,x.debounce=TO,x.defaults=oU,x.defaultsDeep=aU,x.defer=m$,x.delay=h$,x.difference=k2,x.differenceBy=j2,x.differenceWith=$2,x.drop=U2,x.dropRight=B2,x.dropRightWhile=W2,x.dropWhile=G2,x.fill=H2,x.filter=Xj,x.flatMap=Qj,x.flatMapDeep=zj,x.flatMapDepth=qj,x.flatten=sO,x.flattenDeep=K2,x.flattenDepth=X2,x.flip=y$,x.flow=p4,x.flowRight=d4,x.fromPairs=J2,x.functions=dU,x.functionsIn=gU,x.groupBy=Zj,x.initial=Q2,x.intersection=z2,x.intersectionBy=q2,x.intersectionWith=Z2,x.invert=hU,x.invertBy=yU,x.invokeMap=t$,x.iteratee=qv,x.keyBy=n$,x.keys=Jn,x.keysIn=$i,x.map=Yd,x.mapKeys=TU,x.mapValues=EU,x.matches=g4,x.matchesProperty=m4,x.memoize=zd,x.merge=bU,x.mergeWith=NO,x.method=h4,x.methodOf=y4,x.mixin=Zv,x.negate=qd,x.nthArg=E4,x.omit=AU,x.omitBy=SU,x.once=v$,x.orderBy=i$,x.over=b4,x.overArgs=T$,x.overEvery=A4,x.overSome=S4,x.partial=Hv,x.partialRight=EO,x.partition=r$,x.pick=xU,x.pickBy=RO,x.property=VO,x.propertyOf=x4,x.pull=ij,x.pullAll=lO,x.pullAllBy=rj,x.pullAllWith=oj,x.pullAt=aj,x.range=P4,x.rangeRight=I4,x.rearg=E$,x.reject=s$,x.remove=sj,x.rest=b$,x.reverse=Bv,x.sampleSize=l$,x.set=IU,x.setWith=OU,x.shuffle=f$,x.slice=cj,x.sortBy=d$,x.sortedUniq=mj,x.sortedUniqBy=hj,x.split=QU,x.spread=A$,x.tail=yj,x.take=vj,x.takeRight=Tj,x.takeRightWhile=Ej,x.takeWhile=bj,x.tap=Mj,x.throttle=S$,x.thru=Jd,x.toArray=PO,x.toPairs=LO,x.toPairsIn=FO,x.toPath=L4,x.toPlainObject=OO,x.transform=CU,x.unary=x$,x.union=Aj,x.unionBy=Sj,x.unionWith=xj,x.uniq=Pj,x.uniqBy=Ij,x.uniqWith=Oj,x.unset=NU,x.unzip=Wv,x.unzipWith=fO,x.update=RU,x.updateWith=LU,x.values=fl,x.valuesIn=FU,x.without=Cj,x.words=wO,x.wrap=P$,x.xor=Nj,x.xorBy=Rj,x.xorWith=Lj,x.zip=Fj,x.zipObject=_j,x.zipObjectDeep=Dj,x.zipWith=wj,x.entries=LO,x.entriesIn=FO,x.extend=CO,x.extendWith=tg,Zv(x,x),x.add=_4,x.attempt=MO,x.camelCase=MU,x.capitalize=_O,x.ceil=D4,x.clamp=_U,x.clone=O$,x.cloneDeep=N$,x.cloneDeepWith=R$,x.cloneWith=C$,x.conformsTo=L$,x.deburr=DO,x.defaultTo=u4,x.divide=w4,x.endsWith=VU,x.eq=Yr,x.escape=kU,x.escapeRegExp=jU,x.every=Kj,x.find=Jj,x.findIndex=oO,x.findKey=sU,x.findLast=Yj,x.findLastIndex=aO,x.findLastKey=cU,x.floor=M4,x.forEach=pO,x.forEachRight=dO,x.forIn=lU,x.forInRight=fU,x.forOwn=uU,x.forOwnRight=pU,x.get=Jv,x.gt=F$,x.gte=_$,x.has=mU,x.hasIn=Yv,x.head=cO,x.identity=Ui,x.includes=e$,x.indexOf=Y2,x.inRange=DU,x.invoke=vU,x.isArguments=Zs,x.isArray=He,x.isArrayBuffer=D$,x.isArrayLike=ji,x.isArrayLikeObject=Sn,x.isBoolean=w$,x.isBuffer=Xa,x.isDate=M$,x.isElement=V$,x.isEmpty=k$,x.isEqual=j$,x.isEqualWith=$$,x.isError=Kv,x.isFinite=U$,x.isFunction=aa,x.isInteger=bO,x.isLength=Zd,x.isMap=AO,x.isMatch=B$,x.isMatchWith=W$,x.isNaN=G$,x.isNative=H$,x.isNil=X$,x.isNull=K$,x.isNumber=SO,x.isObject=fn,x.isObjectLike=dn,x.isPlainObject=Yf,x.isRegExp=Xv,x.isSafeInteger=J$,x.isSet=xO,x.isString=eg,x.isSymbol=cr,x.isTypedArray=ll,x.isUndefined=Y$,x.isWeakMap=Q$,x.isWeakSet=z$,x.join=ej,x.kebabCase=$U,x.last=Nr,x.lastIndexOf=tj,x.lowerCase=UU,x.lowerFirst=BU,x.lt=q$,x.lte=Z$,x.max=V4,x.maxBy=k4,x.mean=j4,x.meanBy=$4,x.min=U4,x.minBy=B4,x.stubArray=tT,x.stubFalse=nT,x.stubObject=O4,x.stubString=C4,x.stubTrue=N4,x.multiply=W4,x.nth=nj,x.noConflict=T4,x.noop=eT,x.now=Qd,x.pad=WU,x.padEnd=GU,x.padStart=HU,x.parseInt=KU,x.random=wU,x.reduce=o$,x.reduceRight=a$,x.repeat=XU,x.replace=JU,x.result=PU,x.round=G4,x.runInContext=V,x.sample=c$,x.size=u$,x.snakeCase=YU,x.some=p$,x.sortedIndex=lj,x.sortedIndexBy=fj,x.sortedIndexOf=uj,x.sortedLastIndex=pj,x.sortedLastIndexBy=dj,x.sortedLastIndexOf=gj,x.startCase=zU,x.startsWith=qU,x.subtract=H4,x.sum=K4,x.sumBy=X4,x.template=ZU,x.times=R4,x.toFinite=sa,x.toInteger=Je,x.toLength=IO,x.toLower=e4,x.toNumber=Rr,x.toSafeInteger=eU,x.toString=Pt,x.toUpper=t4,x.trim=n4,x.trimEnd=i4,x.trimStart=r4,x.truncate=o4,x.unescape=a4,x.uniqueId=F4,x.upperCase=s4,x.upperFirst=Qv,x.each=pO,x.eachRight=dO,x.first=cO,Zv(x,function(){var c={};return Ao(x,function(f,g){Ct.call(x.prototype,g)||(c[g]=f)}),c}(),{chain:!1}),x.VERSION=t,xr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(c){x[c].placeholder=x}),xr(["drop","take"],function(c,f){lt.prototype[c]=function(g){g=g===e?1:$n(Je(g),0);var h=this.__filtered__&&!f?new lt(this):this.clone();return h.__filtered__?h.__takeCount__=di(g,h.__takeCount__):h.__views__.push({size:di(g,en),type:c+(h.__dir__<0?"Right":"")}),h},lt.prototype[c+"Right"]=function(g){return this.reverse()[c](g).reverse()}}),xr(["filter","map","takeWhile"],function(c,f){var g=f+1,h=g==Xt||g==pn;lt.prototype[c]=function(A){var P=this.clone();return P.__iteratees__.push({iteratee:_e(A,3),type:g}),P.__filtered__=P.__filtered__||h,P}}),xr(["head","last"],function(c,f){var g="take"+(f?"Right":"");lt.prototype[c]=function(){return this[g](1).value()[0]}}),xr(["initial","tail"],function(c,f){var g="drop"+(f?"":"Right");lt.prototype[c]=function(){return this.__filtered__?new lt(this):this[g](1)}}),lt.prototype.compact=function(){return this.filter(Ui)},lt.prototype.find=function(c){return this.filter(c).head()},lt.prototype.findLast=function(c){return this.reverse().find(c)},lt.prototype.invokeMap=et(function(c,f){return typeof c=="function"?new lt(this):this.map(function(g){return Wf(g,c,f)})}),lt.prototype.reject=function(c){return this.filter(qd(_e(c)))},lt.prototype.slice=function(c,f){c=Je(c);var g=this;return g.__filtered__&&(c>0||f<0)?new lt(g):(c<0?g=g.takeRight(-c):c&&(g=g.drop(c)),f!==e&&(f=Je(f),g=f<0?g.dropRight(-f):g.take(f-c)),g)},lt.prototype.takeRightWhile=function(c){return this.reverse().takeWhile(c).reverse()},lt.prototype.toArray=function(){return this.take(en)},Ao(lt.prototype,function(c,f){var g=/^(?:filter|find|map|reject)|While$/.test(f),h=/^(?:head|last)$/.test(f),A=x[h?"take"+(f=="last"?"Right":""):f],P=h||/^find/.test(f);A&&(x.prototype[f]=function(){var N=this.__wrapped__,D=h?[1]:arguments,j=N instanceof lt,z=D[0],q=j||He(N),Z=a(function(rt){var ut=A.apply(x,ja([rt],D));return h&&de?ut[0]:ut},"interceptor");q&&g&&typeof z=="function"&&z.length!=1&&(j=q=!1);var de=this.__chain__,Oe=!!this.__actions__.length,De=P&&!de,ze=j&&!Oe;if(!P&&q){N=ze?N:new lt(this);var we=c.apply(N,D);return we.__actions__.push({func:Jd,args:[Z],thisArg:e}),new Ir(we,de)}return De&&ze?c.apply(this,D):(we=this.thru(Z),De?h?we.value()[0]:we.value():we)})}),xr(["pop","push","shift","sort","splice","unshift"],function(c){var f=Ed[c],g=/^(?:push|sort|unshift)$/.test(c)?"tap":"thru",h=/^(?:pop|shift)$/.test(c);x.prototype[c]=function(){var A=arguments;if(h&&!this.__chain__){var P=this.value();return f.apply(He(P)?P:[],A)}return this[g](function(N){return f.apply(He(N)?N:[],A)})}}),Ao(lt.prototype,function(c,f){var g=x[f];if(g){var h=g.name+"";Ct.call(rl,h)||(rl[h]=[]),rl[h].push({name:f,func:g})}}),rl[Ud(e,C).name]=[{name:"wrapper",func:e}],lt.prototype.clone=ok,lt.prototype.reverse=ak,lt.prototype.value=sk,x.prototype.at=Vj,x.prototype.chain=kj,x.prototype.commit=jj,x.prototype.next=$j,x.prototype.plant=Bj,x.prototype.reverse=Wj,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=Gj,x.prototype.first=x.prototype.head,Mf&&(x.prototype[Mf]=Uj),x},"runInContext"),Ua=kV();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Xn._=Ua,define(function(){return Ua})):Hs?((Hs.exports=Ua)._=Ua,qy._=Ua):Xn._=Ua}).call(ff)});var v1=Ve((hce,y1)=>{var{findIndex:rJ}=bp();function oJ(e,t){let i=rJ(e,o=>o.endOffset===t),r=!1;for(;r===!1;){i++;let o=e[i];if(o===void 0)return null;if(o.tokenType.name!=="SEA_WS")return o}}a(oJ,"findNextTextualToken");y1.exports={findNextTextualToken:oJ}});var b1=Ve((vce,E1)=>{var T1=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function aJ({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(T1);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}a(aJ,"isXMLNamespaceKey");function sJ(e){if(typeof e!="string")return;let t=e.match(T1);if(t!==null)return t.groups&&t.groups.prefix||""}a(sJ,"getXMLNamespaceKeyPrefix");E1.exports={isXMLNamespaceKey:aJ,getXMLNamespaceKeyPrefix:sJ}});var S1=Ve((Ece,A1)=>{var{findNextTextualToken:cJ}=v1(),{isXMLNamespaceKey:lJ,getXMLNamespaceKeyPrefix:fJ}=b1();A1.exports={findNextTextualToken:cJ,isXMLNamespaceKey:lJ,getXMLNamespaceKeyPrefix:fJ}});var kA=Ve((bce,P1)=>{var{reduce:uJ,has:x1,isArray:pJ}=bp();function dJ(e){return uJ(e,(n,i,r)=>(r==="parent"||(x1(i,"type")?n.push(i):pJ(i)&&i.length>0&&x1(i[0],"type")&&(n=n.concat(i))),n),[])}a(dJ,"getAstChildrenReflective");P1.exports={getAstChildrenReflective:dJ}});var jA=Ve((Sce,I1)=>{I1.exports={DEFAULT_NS:"::DEFAULT"}});var D1=Ve((xce,_1)=>{var{BaseXmlCstVisitor:gJ}=VA(),{last:mJ,forEach:R1,reduce:hJ,map:Ap,pick:UA,sortBy:yJ,isEmpty:vJ,isArray:L1,assign:TJ}=bp(),{findNextTextualToken:EJ,isXMLNamespaceKey:bJ,getXMLNamespaceKeyPrefix:AJ}=S1(),{getAstChildrenReflective:SJ}=kA(),{DEFAULT_NS:xJ}=jA();function PJ(e,t){O1.setState({tokenVector:t});let n=O1.visit(e);return n.rootElement!==Uc&&F1(n.rootElement),n}a(PJ,"buildAst");var BA=class BA extends gJ{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:Uc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&vJ(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),cy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Ap(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),cy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Ap(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Ap(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:Uc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Ap(t.attribute,this.visit.bind(this))),t.content!==void 0){let{elements:r,textContents:o}=this.visit(t.content[0]);i.subElements=r,i.textContents=o}return CJ(i,t),NJ(i,t),RJ(i,t,this.tokenVector),cy(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:Uc,value:Uc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let o=t.Name[0];r.key=o.image,r.syntax.key=ly(o)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let o=t.STRING[0];r.value=IJ(o.image),r.syntax.value=ly(o)}return cy(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:Uc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let o=yJ(r,["startOffset"]),s=Ap(o,"image").join("");return i.text=s,i}misc(t,{location:n}){}};a(BA,"CstToAstVisitor");var $A=BA,O1=new $A;function cy(e){let t=SJ(e);R1(t,n=>n.parent=e)}a(cy,"setChildrenParent");function F1(e,t=[]){let n=hJ(e.attributes,(r,o)=>{if(o.key!==Uc&&bJ({key:o.key,includeEmptyPrefix:!1})===!0){let s=AJ(o.key);if(o.value){let l=o.value;s!==""?r[s]=l:r[xJ]=l}}return r},{}),i=Object.create(null);e.namespaces=TJ(i,t,n),R1(e.subElements,r=>F1(r,e.namespaces))}a(F1,"updateNamespaces");function ly(e){return UA(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}a(ly,"toXMLToken");function C1(e){return UA(e,["startOffset","startLine","startColumn"])}a(C1,"startOfXMLToken");function N1(e){return UA(e,["endOffset","endLine","endColumn"])}a(N1,"endOfXMLToken");function La(e){return L1(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}a(La,"exists");function IJ(e){return e.substring(1,e.length-1)}a(IJ,"stripQuotes");function OJ(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}a(OJ,"nsToParts");var Uc=null;function CJ(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=ly(n);let i=OJ(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=ly(t.END_NAME[0]))}a(CJ,"handleElementOpenCloseNameRanges");function NJ(e,t){if(La(t.OPEN)){let n;La(t.START_CLOSE)?(n=t.START_CLOSE[0],e.syntax.isSelfClosing=!1):La(t.SLASH_CLOSE)&&(n=t.SLASH_CLOSE[0],e.syntax.isSelfClosing=!0),n!==void 0&&(e.syntax.openBody={...C1(t.OPEN[0]),...N1(n)}),La(t.SLASH_OPEN)&&La(t.END)&&(e.syntax.closeBody={...C1(t.SLASH_OPEN[0]),...N1(t.END[0])})}}a(NJ,"handleElementOpenCloseBodyRanges");function RJ(e,t,n){if(La(t.Name)){let i=t.Name[0].endOffset+2;if(La(t.START_CLOSE)||La(t.SLASH_CLOSE)){let r=(La(t.START_CLOSE)?t.START_CLOSE[0].startOffset:t.SLASH_CLOSE[0].startOffset)-1;e.syntax.attributesRange={startOffset:i,endOffset:r}}else{let o=L1(t.attribute)?mJ(t.attribute).location.endOffset:t.Name[0].endOffset,s=EJ(n,o);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}a(RJ,"handleElementAttributeRanges");_1.exports={buildAst:PJ}});var V1=Ve((Ice,M1)=>{var{forEach:LJ,isFunction:uf}=bp(),{getAstChildrenReflective:FJ}=kA();function w1(e,t){switch(e.type){case"XMLDocument":{uf(t.visitXMLDocument)&&t.visitXMLDocument(e);break}case"XMLProlog":{uf(t.visitXMLProlog)&&t.visitXMLProlog(e);break}case"XMLPrologAttribute":{uf(t.visitXMLPrologAttribute)&&t.visitXMLPrologAttribute(e);break}case"XMLElement":{uf(t.visitXMLElement)&&t.visitXMLElement(e);break}case"XMLAttribute":{uf(t.visitXMLAttribute)&&t.visitXMLAttribute(e);break}case"XMLTextContent":{uf(t.visitXMLTextContent)&&t.visitXMLTextContent(e);break}default:throw Error("None Exhaustive Match")}let n=FJ(e);LJ(n,i=>{w1(i,t)})}a(w1,"accept");M1.exports={accept:w1}});var j1=Ve((Cce,k1)=>{var{buildAst:_J}=D1(),{accept:DJ}=V1(),{DEFAULT_NS:wJ}=jA();k1.exports={buildAst:_J,accept:DJ,DEFAULT_NS:wJ}});var GA=Ve((Jce,q1)=>{var YJ=require("crypto");q1.exports=a(function(){return YJ.randomBytes(16)},"nodeRNG")});var HA=Ve((Qce,ew)=>{var Z1=[];for(Pp=0;Pp<256;++Pp)Z1[Pp]=(Pp+256).toString(16).substr(1);var Pp;function QJ(e,t){var n=t||0,i=Z1;return[i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],"-",i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]],i[e[n++]]].join("")}a(QJ,"bytesToUuid");ew.exports=QJ});var iw=Ve((qce,nw)=>{var zJ=GA(),qJ=HA(),tw,KA,XA=0,JA=0;function ZJ(e,t,n){var i=t&&n||0,r=t||[];e=e||{};var o=e.node||tw,s=e.clockseq!==void 0?e.clockseq:KA;if(o==null||s==null){var l=zJ();o==null&&(o=tw=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),s==null&&(s=KA=(l[6]<<8|l[7])&16383)}var u=e.msecs!==void 0?e.msecs:new Date().getTime(),p=e.nsecs!==void 0?e.nsecs:JA+1,d=u-XA+(p-JA)/1e4;if(d<0&&e.clockseq===void 0&&(s=s+1&16383),(d<0||u>XA)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");XA=u,JA=p,KA=s,u+=122192928e5;var m=((u&268435455)*1e4+p)%4294967296;r[i++]=m>>>24&255,r[i++]=m>>>16&255,r[i++]=m>>>8&255,r[i++]=m&255;var T=u/4294967296*1e4&268435455;r[i++]=T>>>8&255,r[i++]=T&255,r[i++]=T>>>24&15|16,r[i++]=T>>>16&255,r[i++]=s>>>8|128,r[i++]=s&255;for(var b=0;b<6;++b)r[i+b]=o[b];return t||qJ(r)}a(ZJ,"v1");nw.exports=ZJ});var ow=Ve((ele,rw)=>{var eY=GA(),tY=HA();function nY(e,t,n){var i=t&&n||0;typeof e=="string"&&(t=e==="binary"?new Array(16):null,e=null),e=e||{};var r=e.random||(e.rng||eY)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t)for(var o=0;o<16;++o)t[i+o]=r[o];return t||tY(r)}a(nY,"v4");rw.exports=nY});var cw=Ve((nle,sw)=>{var iY=iw(),aw=ow(),YA=aw;YA.v1=iY;YA.v4=aw;sw.exports=YA});var pr={};ec(pr,{exportConfig:()=>t6,generateCustomExtension:()=>cP,generateSchema:()=>e6,getApiVersion:()=>o6,getChanges:()=>AM,getGenericSchema:()=>By,getPathToGenericSchema:()=>Uw,getProject:()=>f6,importConfig:()=>n6,importProject:()=>i6,importProjectSchema:()=>r6,isDirectory:()=>s6,log:()=>oe,readDirectory:()=>pP});module.exports=ig(pr);var Se=te(se());var K=te(se());function oi(e){"@babel/helpers - typeof";return oi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oi(e)}a(oi,"_typeof");function Lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(Lr,"_classCallCheck");function lT(e,t){if(oi(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t||"default");if(oi(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}a(lT,"toPrimitive");function Qf(e){var t=lT(e,"string");return oi(t)=="symbol"?t:String(t)}a(Qf,"toPropertyKey");function uR(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,Qf(i.key),i)}}a(uR,"_defineProperties");function Fr(e,t,n){return t&&uR(e.prototype,t),n&&uR(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}a(Fr,"_createClass");function zr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a(zr,"_assertThisInitialized");function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():a(function(i,r){return i.__proto__=r,i},"_setPrototypeOf"),zf(e,t)}a(zf,"_setPrototypeOf");function pl(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zf(e,t)}a(pl,"_inherits");function nc(e,t){if(t&&(oi(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return zr(e)}a(nc,"_possibleConstructorReturn");function _r(e){return _r=Object.setPrototypeOf?Object.getPrototypeOf.bind():a(function(n){return n.__proto__||Object.getPrototypeOf(n)},"_getPrototypeOf"),_r(e)}a(_r,"_getPrototypeOf");function Po(e,t,n){return t=Qf(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a(Po,"_defineProperty");function fT(e){if(Array.isArray(e))return e}a(fT,"_arrayWithHoles");function uT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}a(uT,"_iterableToArray");function rg(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}a(rg,"_arrayLikeToArray");function pT(e,t){if(e){if(typeof e=="string")return rg(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return rg(e,t)}}a(pT,"_unsupportedIterableToArray");function dT(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
289
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}a(dT,"_nonIterableRest");function gT(e){return fT(e)||uT(e)||pT(e)||dT()}a(gT,"_toArray");function pR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(pR,"ownKeys$6");function dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(dR,"_objectSpread$6");var LW={type:"logger",log:a(function(t){this.output("log",t)},"log"),warn:a(function(t){this.output("warn",t)},"warn"),error:a(function(t){this.output("error",t)},"error"),output:a(function(t,n){console&&console[t]&&console[t].apply(console,n)},"output")},FW=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Lr(this,e),this.init(t,n)}return a(e,"Logger"),Fr(e,[{key:"init",value:a(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=i.prefix||"i18next:",this.logger=n||LW,this.options=i,this.debug=i.debug},"init")},{key:"setDebug",value:a(function(n){this.debug=n},"setDebug")},{key:"log",value:a(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"log","",!0)},"log")},{key:"warn",value:a(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","",!0)},"warn")},{key:"error",value:a(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"error","")},"error")},{key:"deprecate",value:a(function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return this.forward(i,"warn","WARNING DEPRECATED: ",!0)},"deprecate")},{key:"forward",value:a(function(n,i,r,o){return o&&!this.debug?null:(typeof n[0]=="string"&&(n[0]="".concat(r).concat(this.prefix," ").concat(n[0])),this.logger[i](n))},"forward")},{key:"create",value:a(function(n){return new e(this.logger,dR(dR({},{prefix:"".concat(this.prefix,":").concat(n,":")}),this.options))},"create")},{key:"clone",value:a(function(n){return n=n||this.options,n.prefix=n.prefix||this.prefix,new e(this.logger,n)},"clone")}]),e}(),Oo=new FW,Ja=function(){function e(){Lr(this,e),this.observers={}}return a(e,"EventEmitter"),Fr(e,[{key:"on",value:a(function(n,i){var r=this;return n.split(" ").forEach(function(o){r.observers[o]=r.observers[o]||[],r.observers[o].push(i)}),this},"on")},{key:"off",value:a(function(n,i){if(this.observers[n]){if(!i){delete this.observers[n];return}this.observers[n]=this.observers[n].filter(function(r){return r!==i})}},"off")},{key:"emit",value:a(function(n){for(var i=arguments.length,r=new Array(i>1?i-1:0),o=1;o<i;o++)r[o-1]=arguments[o];if(this.observers[n]){var s=[].concat(this.observers[n]);s.forEach(function(u){u.apply(void 0,r)})}if(this.observers["*"]){var l=[].concat(this.observers["*"]);l.forEach(function(u){u.apply(u,[n].concat(r))})}},"emit")}]),e}();function qf(){var e,t,n=new Promise(function(i,r){e=i,t=r});return n.resolve=e,n.reject=t,n}a(qf,"defer");function gR(e){return e==null?"":""+e}a(gR,"makeString");function _W(e,t,n){e.forEach(function(i){t[i]&&(n[i]=t[i])})}a(_W,"copy");function hT(e,t,n){function i(l){return l&&l.indexOf("###")>-1?l.replace(/###/g,"."):l}a(i,"cleanKey");function r(){return!e||typeof e=="string"}a(r,"canNotTraverseDeeper");for(var o=typeof t!="string"?[].concat(t):t.split(".");o.length>1;){if(r())return{};var s=i(o.shift());!e[s]&&n&&(e[s]=new n),Object.prototype.hasOwnProperty.call(e,s)?e=e[s]:e={}}return r()?{}:{obj:e,k:i(o.shift())}}a(hT,"getLastOfPath");function mR(e,t,n){var i=hT(e,t,Object),r=i.obj,o=i.k;r[o]=n}a(mR,"setPath");function DW(e,t,n,i){var r=hT(e,t,Object),o=r.obj,s=r.k;o[s]=o[s]||[],i&&(o[s]=o[s].concat(n)),i||o[s].push(n)}a(DW,"pushPath");function sg(e,t){var n=hT(e,t),i=n.obj,r=n.k;if(i)return i[r]}a(sg,"getPath");function wW(e,t,n){var i=sg(e,n);return i!==void 0?i:sg(t,n)}a(wW,"getPathWithDefaults");function RR(e,t,n){for(var i in t)i!=="__proto__"&&i!=="constructor"&&(i in e?typeof e[i]=="string"||e[i]instanceof String||typeof t[i]=="string"||t[i]instanceof String?n&&(e[i]=t[i]):RR(e[i],t[i],n):e[i]=t[i]);return e}a(RR,"deepExtend");function dl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}a(dl,"regexEscape");var MW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function VW(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return MW[t]}):e}a(VW,"escape");var fg=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,kW=[" ",",","?","!",";"];function jW(e,t,n){t=t||"",n=n||"";var i=kW.filter(function(l){return t.indexOf(l)<0&&n.indexOf(l)<0});if(i.length===0)return!0;var r=new RegExp("(".concat(i.map(function(l){return l==="?"?"\\?":l}).join("|"),")")),o=!r.test(e);if(!o){var s=e.indexOf(n);s>0&&!r.test(e.substring(0,s))&&(o=!0)}return o}a(jW,"looksLikeObjectPath");function cg(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(e){if(e[t])return e[t];for(var i=t.split(n),r=e,o=0;o<i.length;++o){if(!r||typeof r[i[o]]=="string"&&o+1<i.length)return;if(r[i[o]]===void 0){for(var s=2,l=i.slice(o,o+s).join(n),u=r[l];u===void 0&&i.length>o+s;)s++,l=i.slice(o,o+s).join(n),u=r[l];if(u===void 0)return;if(u===null)return null;if(t.endsWith(l)){if(typeof u=="string")return u;if(l&&typeof u[l]=="string")return u[l]}var p=i.slice(o+s).join(n);return p?cg(u,p,n):void 0}r=r[i[o]]}return r}}a(cg,"deepFind");function hR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(hR,"ownKeys$5");function og(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(og,"_objectSpread$5");function $W(e){var t=UW();return a(function(){var i=_r(e),r;if(t){var o=_r(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return nc(this,r)},"_createSuperInternal")}a($W,"_createSuper$3");function UW(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}a(UW,"_isNativeReflectConstruct$3");var BW=function(e){pl(n,e);var t=$W(n);function n(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Lr(this,n),r=t.call(this),fg&&Ja.call(zr(r)),r.data=i||{},r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.options.ignoreJSONStructure===void 0&&(r.options.ignoreJSONStructure=!0),r}return a(n,"ResourceStore"),Fr(n,[{key:"addNamespaces",value:a(function(r){this.options.ns.indexOf(r)<0&&this.options.ns.push(r)},"addNamespaces")},{key:"removeNamespaces",value:a(function(r){var o=this.options.ns.indexOf(r);o>-1&&this.options.ns.splice(o,1)},"removeNamespaces")},{key:"getResource",value:a(function(r,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},u=l.keySeparator!==void 0?l.keySeparator:this.options.keySeparator,p=l.ignoreJSONStructure!==void 0?l.ignoreJSONStructure:this.options.ignoreJSONStructure,d=[r,o];s&&typeof s!="string"&&(d=d.concat(s)),s&&typeof s=="string"&&(d=d.concat(u?s.split(u):s)),r.indexOf(".")>-1&&(d=r.split("."));var m=sg(this.data,d);return m||!p||typeof s!="string"?m:cg(this.data&&this.data[r]&&this.data[r][o],s,u)},"getResource")},{key:"addResource",value:a(function(r,o,s,l){var u=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},p=u.keySeparator!==void 0?u.keySeparator:this.options.keySeparator,d=[r,o];s&&(d=d.concat(p?s.split(p):s)),r.indexOf(".")>-1&&(d=r.split("."),l=o,o=d[1]),this.addNamespaces(o),mR(this.data,d,l),u.silent||this.emit("added",r,o,s,l)},"addResource")},{key:"addResources",value:a(function(r,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(var u in s)(typeof s[u]=="string"||Object.prototype.toString.apply(s[u])==="[object Array]")&&this.addResource(r,o,u,s[u],{silent:!0});l.silent||this.emit("added",r,o,s)},"addResources")},{key:"addResourceBundle",value:a(function(r,o,s,l,u){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},d=[r,o];r.indexOf(".")>-1&&(d=r.split("."),l=s,s=o,o=d[1]),this.addNamespaces(o);var m=sg(this.data,d)||{};l?RR(m,s,u):m=og(og({},m),s),mR(this.data,d,m),p.silent||this.emit("added",r,o,s)},"addResourceBundle")},{key:"removeResourceBundle",value:a(function(r,o){this.hasResourceBundle(r,o)&&delete this.data[r][o],this.removeNamespaces(o),this.emit("removed",r,o)},"removeResourceBundle")},{key:"hasResourceBundle",value:a(function(r,o){return this.getResource(r,o)!==void 0},"hasResourceBundle")},{key:"getResourceBundle",value:a(function(r,o){return o||(o=this.options.defaultNS),this.options.compatibilityAPI==="v1"?og(og({},{}),this.getResource(r,o)):this.getResource(r,o)},"getResourceBundle")},{key:"getDataByLanguage",value:a(function(r){return this.data[r]},"getDataByLanguage")},{key:"hasLanguageSomeTranslations",value:a(function(r){var o=this.getDataByLanguage(r),s=o&&Object.keys(o)||[];return!!s.find(function(l){return o[l]&&Object.keys(o[l]).length>0})},"hasLanguageSomeTranslations")},{key:"toJSON",value:a(function(){return this.data},"toJSON")}]),n}(Ja),LR={processors:{},addPostProcessor:a(function(t){this.processors[t.name]=t},"addPostProcessor"),handle:a(function(t,n,i,r,o){var s=this;return t.forEach(function(l){s.processors[l]&&(n=s.processors[l].process(n,i,r,o))}),n},"handle")};function yR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(yR,"ownKeys$4");function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(yi,"_objectSpread$4");function WW(e){var t=GW();return a(function(){var i=_r(e),r;if(t){var o=_r(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return nc(this,r)},"_createSuperInternal")}a(WW,"_createSuper$2");function GW(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}a(GW,"_isNativeReflectConstruct$2");var vR={},TR=function(e){pl(n,e);var t=WW(n);function n(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Lr(this,n),r=t.call(this),fg&&Ja.call(zr(r)),_W(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,zr(r)),r.options=o,r.options.keySeparator===void 0&&(r.options.keySeparator="."),r.logger=Oo.create("translator"),r}return a(n,"Translator"),Fr(n,[{key:"changeLanguage",value:a(function(r){r&&(this.language=r)},"changeLanguage")},{key:"exists",value:a(function(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(r==null)return!1;var s=this.resolve(r,o);return s&&s.res!==void 0},"exists")},{key:"extractFromKey",value:a(function(r,o){var s=o.nsSeparator!==void 0?o.nsSeparator:this.options.nsSeparator;s===void 0&&(s=":");var l=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,u=o.ns||this.options.defaultNS||[],p=s&&r.indexOf(s)>-1,d=!this.options.userDefinedKeySeparator&&!o.keySeparator&&!this.options.userDefinedNsSeparator&&!o.nsSeparator&&!jW(r,s,l);if(p&&!d){var m=r.match(this.interpolator.nestingRegexp);if(m&&m.length>0)return{key:r,namespaces:u};var T=r.split(s);(s!==l||s===l&&this.options.ns.indexOf(T[0])>-1)&&(u=T.shift()),r=T.join(l)}return typeof u=="string"&&(u=[u]),{key:r,namespaces:u}},"extractFromKey")},{key:"translate",value:a(function(r,o,s){var l=this;if(oi(o)!=="object"&&this.options.overloadTranslationOptionHandler&&(o=this.options.overloadTranslationOptionHandler(arguments)),oi(o)==="object"&&(o=yi({},o)),o||(o={}),r==null)return"";Array.isArray(r)||(r=[String(r)]);var u=o.returnDetails!==void 0?o.returnDetails:this.options.returnDetails,p=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,d=this.extractFromKey(r[r.length-1],o),m=d.key,T=d.namespaces,b=T[T.length-1],E=o.lng||this.language,C=o.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(E&&E.toLowerCase()==="cimode"){if(C){var R=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(b).concat(R).concat(m),usedKey:m,exactUsedKey:m,usedLng:E,usedNS:b}:"".concat(b).concat(R).concat(m)}return u?{res:m,usedKey:m,exactUsedKey:m,usedLng:E,usedNS:b}:m}var L=this.resolve(r,o),F=L&&L.res,U=L&&L.usedKey||m,J=L&&L.exactUsedKey||m,re=Object.prototype.toString.apply(F),Ce=["[object Number]","[object Function]","[object RegExp]"],st=o.joinArrays!==void 0?o.joinArrays:this.options.joinArrays,k=!this.i18nFormat||this.i18nFormat.handleAsObject,Ot=typeof F!="string"&&typeof F!="boolean"&&typeof F!="number";if(k&&F&&Ot&&Ce.indexOf(re)<0&&!(typeof st=="string"&&re==="[object Array]")){if(!o.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var ht=this.options.returnedObjectHandler?this.options.returnedObjectHandler(U,F,yi(yi({},o),{},{ns:T})):"key '".concat(m," (").concat(this.language,")' returned an object instead of string.");return u?(L.res=ht,L):ht}if(p){var Ke=re==="[object Array]",Xt=Ke?[]:{},Mi=Ke?J:U;for(var pn in F)if(Object.prototype.hasOwnProperty.call(F,pn)){var Zt="".concat(Mi).concat(p).concat(pn);Xt[pn]=this.translate(Zt,yi(yi({},o),{joinArrays:!1,ns:T})),Xt[pn]===Zt&&(Xt[pn]=F[pn])}F=Xt}}else if(k&&typeof st=="string"&&re==="[object Array]")F=F.join(st),F&&(F=this.extendTranslation(F,r,o,s));else{var Fe=!1,Hn=!1,kn=o.count!==void 0&&typeof o.count!="string",en=n.hasDefaultValue(o),Rn=kn?this.pluralResolver.getSuffix(E,o.count,o):"",ni=o["defaultValue".concat(Rn)]||o.defaultValue;!this.isValidLookup(F)&&en&&(Fe=!0,F=ni),this.isValidLookup(F)||(Hn=!0,F=m);var Re=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Ln=Re&&Hn?void 0:F,Kn=en&&ni!==F&&this.options.updateMissing;if(Hn||Fe||Kn){if(this.logger.log(Kn?"updateKey":"missingKey",E,b,m,Kn?ni:F),p){var Qe=this.resolve(m,yi(yi({},o),{},{keySeparator:!1}));Qe&&Qe.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.")}var O=[],S=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&S&&S[0])for(var Q=0;Q<S.length;Q++)O.push(S[Q]);else this.options.saveMissingTo==="all"?O=this.languageUtils.toResolveHierarchy(o.lng||this.language):O.push(o.lng||this.language);var M=a(function(ct,je,Et){var sn=en&&Et!==F?Et:Ln;l.options.missingKeyHandler?l.options.missingKeyHandler(ct,b,je,sn,Kn,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(ct,b,je,sn,Kn,o),l.emit("missingKey",ct,b,je,F)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&kn?O.forEach(function(Le){l.pluralResolver.getSuffixes(Le,o).forEach(function(ct){M([Le],m+ct,o["defaultValue".concat(ct)]||ni)})}):M(O,m,ni))}F=this.extendTranslation(F,r,o,L,s),Hn&&F===m&&this.options.appendNamespaceToMissingKey&&(F="".concat(b,":").concat(m)),(Hn||Fe)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?F=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(b,":").concat(m):m,Fe?F:void 0):F=this.options.parseMissingKeyHandler(F))}return u?(L.res=F,L):F},"translate")},{key:"extendTranslation",value:a(function(r,o,s,l,u){var p=this;if(this.i18nFormat&&this.i18nFormat.parse)r=this.i18nFormat.parse(r,yi(yi({},this.options.interpolation.defaultVariables),s),l.usedLng,l.usedNS,l.usedKey,{resolved:l});else if(!s.skipInterpolation){s.interpolation&&this.interpolator.init(yi(yi({},s),{interpolation:yi(yi({},this.options.interpolation),s.interpolation)}));var d=typeof r=="string"&&(s&&s.interpolation&&s.interpolation.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),m;if(d){var T=r.match(this.interpolator.nestingRegexp);m=T&&T.length}var b=s.replace&&typeof s.replace!="string"?s.replace:s;if(this.options.interpolation.defaultVariables&&(b=yi(yi({},this.options.interpolation.defaultVariables),b)),r=this.interpolator.interpolate(r,b,s.lng||this.language,s),d){var E=r.match(this.interpolator.nestingRegexp),C=E&&E.length;m<C&&(s.nest=!1)}!s.lng&&this.options.compatibilityAPI!=="v1"&&l&&l.res&&(s.lng=l.usedLng),s.nest!==!1&&(r=this.interpolator.nest(r,function(){for(var F=arguments.length,U=new Array(F),J=0;J<F;J++)U[J]=arguments[J];return u&&u[0]===U[0]&&!s.context?(p.logger.warn("It seems you are nesting recursively key: ".concat(U[0]," in key: ").concat(o[0])),null):p.translate.apply(p,U.concat([o]))},s)),s.interpolation&&this.interpolator.reset()}var R=s.postProcess||this.options.postProcess,L=typeof R=="string"?[R]:R;return r!=null&&L&&L.length&&s.applyPostProcessor!==!1&&(r=LR.handle(L,r,o,this.options&&this.options.postProcessPassResolved?yi({i18nResolved:l},s):s,this)),r},"extendTranslation")},{key:"resolve",value:a(function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l,u,p,d,m;return typeof r=="string"&&(r=[r]),r.forEach(function(T){if(!o.isValidLookup(l)){var b=o.extractFromKey(T,s),E=b.key;u=E;var C=b.namespaces;o.options.fallbackNS&&(C=C.concat(o.options.fallbackNS));var R=s.count!==void 0&&typeof s.count!="string",L=R&&!s.ordinal&&s.count===0&&o.pluralResolver.shouldUseIntlApi(),F=s.context!==void 0&&(typeof s.context=="string"||typeof s.context=="number")&&s.context!=="",U=s.lngs?s.lngs:o.languageUtils.toResolveHierarchy(s.lng||o.language,s.fallbackLng);C.forEach(function(J){o.isValidLookup(l)||(m=J,!vR["".concat(U[0],"-").concat(J)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(m)&&(vR["".concat(U[0],"-").concat(J)]=!0,o.logger.warn('key "'.concat(u,'" for languages "').concat(U.join(", "),`" won't get resolved as namespace "`).concat(m,'" 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!!!")),U.forEach(function(re){if(!o.isValidLookup(l)){d=re;var Ce=[E];if(o.i18nFormat&&o.i18nFormat.addLookupKeys)o.i18nFormat.addLookupKeys(Ce,E,re,J,s);else{var st;R&&(st=o.pluralResolver.getSuffix(re,s.count,s));var k="".concat(o.options.pluralSeparator,"zero");if(R&&(Ce.push(E+st),L&&Ce.push(E+k)),F){var Ot="".concat(E).concat(o.options.contextSeparator).concat(s.context);Ce.push(Ot),R&&(Ce.push(Ot+st),L&&Ce.push(Ot+k))}}for(var ht;ht=Ce.pop();)o.isValidLookup(l)||(p=ht,l=o.getResource(re,J,ht,s))}}))})}}),{res:l,usedKey:u,exactUsedKey:p,usedLng:d,usedNS:m}},"resolve")},{key:"isValidLookup",value:a(function(r){return r!==void 0&&!(!this.options.returnNull&&r===null)&&!(!this.options.returnEmptyString&&r==="")},"isValidLookup")},{key:"getResource",value:a(function(r,o,s){var l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(r,o,s,l):this.resourceStore.getResource(r,o,s,l)},"getResource")}],[{key:"hasDefaultValue",value:a(function(r){var o="defaultValue";for(var s in r)if(Object.prototype.hasOwnProperty.call(r,s)&&o===s.substring(0,o.length)&&r[s]!==void 0)return!0;return!1},"hasDefaultValue")}]),n}(Ja);function mT(e){return e.charAt(0).toUpperCase()+e.slice(1)}a(mT,"capitalize");var ER=function(){function e(t){Lr(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Oo.create("languageUtils")}return a(e,"LanguageUtil"),Fr(e,[{key:"getScriptPartFromCode",value:a(function(n){if(!n||n.indexOf("-")<0)return null;var i=n.split("-");return i.length===2||(i.pop(),i[i.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(i.join("-"))},"getScriptPartFromCode")},{key:"getLanguagePartFromCode",value:a(function(n){if(!n||n.indexOf("-")<0)return n;var i=n.split("-");return this.formatLanguageCode(i[0])},"getLanguagePartFromCode")},{key:"formatLanguageCode",value:a(function(n){if(typeof n=="string"&&n.indexOf("-")>-1){var i=["hans","hant","latn","cyrl","cans","mong","arab"],r=n.split("-");return this.options.lowerCaseLng?r=r.map(function(o){return o.toLowerCase()}):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=mT(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),i.indexOf(r[1].toLowerCase())>-1&&(r[1]=mT(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=mT(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?n.toLowerCase():n},"formatLanguageCode")},{key:"isSupportedCode",value:a(function(n){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(n=this.getLanguagePartFromCode(n)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(n)>-1},"isSupportedCode")},{key:"getBestMatchFromCodes",value:a(function(n){var i=this;if(!n)return null;var r;return n.forEach(function(o){if(!r){var s=i.formatLanguageCode(o);(!i.options.supportedLngs||i.isSupportedCode(s))&&(r=s)}}),!r&&this.options.supportedLngs&&n.forEach(function(o){if(!r){var s=i.getLanguagePartFromCode(o);if(i.isSupportedCode(s))return r=s;r=i.options.supportedLngs.find(function(l){if(l===s)return l;if(!(l.indexOf("-")<0&&s.indexOf("-")<0)&&l.indexOf(s)===0)return l})}}),r||(r=this.getFallbackCodes(this.options.fallbackLng)[0]),r},"getBestMatchFromCodes")},{key:"getFallbackCodes",value:a(function(n,i){if(!n)return[];if(typeof n=="function"&&(n=n(i)),typeof n=="string"&&(n=[n]),Object.prototype.toString.apply(n)==="[object Array]")return n;if(!i)return n.default||[];var r=n[i];return r||(r=n[this.getScriptPartFromCode(i)]),r||(r=n[this.formatLanguageCode(i)]),r||(r=n[this.getLanguagePartFromCode(i)]),r||(r=n.default),r||[]},"getFallbackCodes")},{key:"toResolveHierarchy",value:a(function(n,i){var r=this,o=this.getFallbackCodes(i||this.options.fallbackLng||[],n),s=[],l=a(function(p){p&&(r.isSupportedCode(p)?s.push(p):r.logger.warn("rejecting language code not found in supportedLngs: ".concat(p)))},"addCode");return typeof n=="string"&&n.indexOf("-")>-1?(this.options.load!=="languageOnly"&&l(this.formatLanguageCode(n)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&l(this.getScriptPartFromCode(n)),this.options.load!=="currentOnly"&&l(this.getLanguagePartFromCode(n))):typeof n=="string"&&l(this.formatLanguageCode(n)),o.forEach(function(u){s.indexOf(u)<0&&l(r.formatLanguageCode(u))}),s},"toResolveHierarchy")}]),e}(),HW=[{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}],KW={1:a(function(t){return+(t>1)},"_"),2:a(function(t){return+(t!=1)},"_"),3:a(function(t){return 0},"_"),4:a(function(t){return t%10==1&&t%100!=11?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},"_"),5:a(function(t){return t==0?0:t==1?1:t==2?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},"_"),6:a(function(t){return t==1?0:t>=2&&t<=4?1:2},"_"),7:a(function(t){return t==1?0:t%10>=2&&t%10<=4&&(t%100<10||t%100>=20)?1:2},"_"),8:a(function(t){return t==1?0:t==2?1:t!=8&&t!=11?2:3},"_"),9:a(function(t){return+(t>=2)},"_"),10:a(function(t){return t==1?0:t==2?1:t<7?2:t<11?3:4},"_"),11:a(function(t){return t==1||t==11?0:t==2||t==12?1:t>2&&t<20?2:3},"_"),12:a(function(t){return+(t%10!=1||t%100==11)},"_"),13:a(function(t){return+(t!==0)},"_"),14:a(function(t){return t==1?0:t==2?1:t==3?2:3},"_"),15:a(function(t){return t%10==1&&t%100!=11?0:t%10>=2&&(t%100<10||t%100>=20)?1:2},"_"),16:a(function(t){return t%10==1&&t%100!=11?0:t!==0?1:2},"_"),17:a(function(t){return t==1||t%10==1&&t%100!=11?0:1},"_"),18:a(function(t){return t==0?0:t==1?1:2},"_"),19:a(function(t){return t==1?0:t==0||t%100>1&&t%100<11?1:t%100>10&&t%100<20?2:3},"_"),20:a(function(t){return t==1?0:t==0||t%100>0&&t%100<20?1:2},"_"),21:a(function(t){return t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0},"_"),22:a(function(t){return t==1?0:t==2?1:(t<0||t>10)&&t%10==0?2:3},"_")},XW=["v1","v2","v3"],bR={zero:0,one:1,two:2,few:3,many:4,other:5};function JW(){var e={};return HW.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:KW[t.fc]}})}),e}a(JW,"createRules");var YW=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Lr(this,e),this.languageUtils=t,this.options=n,this.logger=Oo.create("pluralResolver"),(!this.options.compatibilityJSON||this.options.compatibilityJSON==="v4")&&(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=JW()}return a(e,"PluralResolver"),Fr(e,[{key:"addRule",value:a(function(n,i){this.rules[n]=i},"addRule")},{key:"getRule",value:a(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(n,{type:i.ordinal?"ordinal":"cardinal"})}catch{return}return this.rules[n]||this.rules[this.languageUtils.getLanguagePartFromCode(n)]},"getRule")},{key:"needsPlural",value:a(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=this.getRule(n,i);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1},"needsPlural")},{key:"getPluralFormsOfKey",value:a(function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(n,r).map(function(o){return"".concat(i).concat(o)})},"getPluralFormsOfKey")},{key:"getSuffixes",value:a(function(n){var i=this,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=this.getRule(n,r);return o?this.shouldUseIntlApi()?o.resolvedOptions().pluralCategories.sort(function(s,l){return bR[s]-bR[l]}).map(function(s){return"".concat(i.options.prepend).concat(s)}):o.numbers.map(function(s){return i.getSuffix(n,s,r)}):[]},"getSuffixes")},{key:"getSuffix",value:a(function(n,i){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=this.getRule(n,r);return o?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(o.select(i)):this.getSuffixRetroCompatible(o,i):(this.logger.warn("no plural rule found for: ".concat(n)),"")},"getSuffix")},{key:"getSuffixRetroCompatible",value:a(function(n,i){var r=this,o=n.noAbs?n.plurals(i):n.plurals(Math.abs(i)),s=n.numbers[o];this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1&&(s===2?s="plural":s===1&&(s=""));var l=a(function(){return r.options.prepend&&s.toString()?r.options.prepend+s.toString():s.toString()},"returnSuffix");return this.options.compatibilityJSON==="v1"?s===1?"":typeof s=="number"?"_plural_".concat(s.toString()):l():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&n.numbers.length===2&&n.numbers[0]===1?l():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()},"getSuffixRetroCompatible")},{key:"shouldUseIntlApi",value:a(function(){return!XW.includes(this.options.compatibilityJSON)},"shouldUseIntlApi")}]),e}();function AR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(AR,"ownKeys$3");function qr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?AR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(qr,"_objectSpread$3");function SR(e,t,n){var i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,o=wW(e,t,n);return!o&&r&&typeof n=="string"&&(o=cg(e,n,i),o===void 0&&(o=cg(t,n,i))),o}a(SR,"deepFindWithDefaults");var QW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lr(this,e),this.logger=Oo.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(n){return n},this.init(t)}return a(e,"Interpolator"),Fr(e,[{key:"init",value:a(function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n.interpolation||(n.interpolation={escapeValue:!0});var i=n.interpolation;this.escape=i.escape!==void 0?i.escape:VW,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?dl(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?dl(i.suffix):i.suffixEscaped||"}}",this.formatSeparator=i.formatSeparator?i.formatSeparator:i.formatSeparator||",",this.unescapePrefix=i.unescapeSuffix?"":i.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":i.unescapeSuffix||"",this.nestingPrefix=i.nestingPrefix?dl(i.nestingPrefix):i.nestingPrefixEscaped||dl("$t("),this.nestingSuffix=i.nestingSuffix?dl(i.nestingSuffix):i.nestingSuffixEscaped||dl(")"),this.nestingOptionsSeparator=i.nestingOptionsSeparator?i.nestingOptionsSeparator:i.nestingOptionsSeparator||",",this.maxReplaces=i.maxReplaces?i.maxReplaces:1e3,this.alwaysFormat=i.alwaysFormat!==void 0?i.alwaysFormat:!1,this.resetRegExp()},"init")},{key:"reset",value:a(function(){this.options&&this.init(this.options)},"reset")},{key:"resetRegExp",value:a(function(){var n="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(n,"g");var i="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(i,"g");var r="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(r,"g")},"resetRegExp")},{key:"interpolate",value:a(function(n,i,r,o){var s=this,l,u,p,d=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function m(R){return R.replace(/\$/g,"$$$$")}a(m,"regexSafe");var T=a(function(L){if(L.indexOf(s.formatSeparator)<0){var F=SR(i,d,L,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(F,void 0,r,qr(qr(qr({},o),i),{},{interpolationkey:L})):F}var U=L.split(s.formatSeparator),J=U.shift().trim(),re=U.join(s.formatSeparator).trim();return s.format(SR(i,d,J,s.options.keySeparator,s.options.ignoreJSONStructure),re,r,qr(qr(qr({},o),i),{},{interpolationkey:J}))},"handleFormat");this.resetRegExp();var b=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,E=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables,C=[{regex:this.regexpUnescape,safeValue:a(function(L){return m(L)},"safeValue")},{regex:this.regexp,safeValue:a(function(L){return s.escapeValue?m(s.escape(L)):m(L)},"safeValue")}];return C.forEach(function(R){for(p=0;l=R.regex.exec(n);){var L=l[1].trim();if(u=T(L),u===void 0)if(typeof b=="function"){var F=b(n,l,o);u=typeof F=="string"?F:""}else if(o&&Object.prototype.hasOwnProperty.call(o,L))u="";else if(E){u=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(L," for interpolating ").concat(n)),u="";else typeof u!="string"&&!s.useRawValueToEscape&&(u=gR(u));var U=R.safeValue(u);if(n=n.replace(l[0],U),E?(R.regex.lastIndex+=u.length,R.regex.lastIndex-=l[0].length):R.regex.lastIndex=0,p++,p>=s.maxReplaces)break}}),n},"interpolate")},{key:"nest",value:a(function(n,i){var r=this,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,l,u;function p(b,E){var C=this.nestingOptionsSeparator;if(b.indexOf(C)<0)return b;var R=b.split(new RegExp("".concat(C,"[ ]*{"))),L="{".concat(R[1]);b=R[0],L=this.interpolate(L,u);var F=L.match(/'/g),U=L.match(/"/g);(F&&F.length%2===0&&!U||U.length%2!==0)&&(L=L.replace(/'/g,'"'));try{u=JSON.parse(L),E&&(u=qr(qr({},E),u))}catch(J){return this.logger.warn("failed parsing options string in nesting for key ".concat(b),J),"".concat(b).concat(C).concat(L)}return delete u.defaultValue,b}for(a(p,"handleHasOptions");s=this.nestingRegexp.exec(n);){var d=[];u=qr({},o),u=u.replace&&typeof u.replace!="string"?u.replace:u,u.applyPostProcessor=!1,delete u.defaultValue;var m=!1;if(s[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(s[1])){var T=s[1].split(this.formatSeparator).map(function(b){return b.trim()});s[1]=T.shift(),d=T,m=!0}if(l=i(p.call(this,s[1].trim(),u),u),l&&s[0]===n&&typeof l!="string")return l;typeof l!="string"&&(l=gR(l)),l||(this.logger.warn("missed to resolve ".concat(s[1]," for nesting ").concat(n)),l=""),m&&(l=d.reduce(function(b,E){return r.format(b,E,o.lng,qr(qr({},o),{},{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n},"nest")}]),e}();function xR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(xR,"ownKeys$2");function la(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(la,"_objectSpread$2");function zW(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var i=e.split("(");t=i[0].toLowerCase().trim();var r=i[1].substring(0,i[1].length-1);if(t==="currency"&&r.indexOf(":")<0)n.currency||(n.currency=r.trim());else if(t==="relativetime"&&r.indexOf(":")<0)n.range||(n.range=r.trim());else{var o=r.split(";");o.forEach(function(s){if(s){var l=s.split(":"),u=gT(l),p=u[0],d=u.slice(1),m=d.join(":").trim().replace(/^'+|'+$/g,"");n[p.trim()]||(n[p.trim()]=m),m==="false"&&(n[p.trim()]=!1),m==="true"&&(n[p.trim()]=!0),isNaN(m)||(n[p.trim()]=parseInt(m,10))}})}}return{formatName:t,formatOptions:n}}a(zW,"parseFormatStr");function gl(e){var t={};return a(function(i,r,o){var s=r+JSON.stringify(o),l=t[s];return l||(l=e(r,o),t[s]=l),l(i)},"invokeFormatter")}a(gl,"createCachedFormatter");var qW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Lr(this,e),this.logger=Oo.create("formatter"),this.options=t,this.formats={number:gl(function(n,i){var r=new Intl.NumberFormat(n,la({},i));return function(o){return r.format(o)}}),currency:gl(function(n,i){var r=new Intl.NumberFormat(n,la(la({},i),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:gl(function(n,i){var r=new Intl.DateTimeFormat(n,la({},i));return function(o){return r.format(o)}}),relativetime:gl(function(n,i){var r=new Intl.RelativeTimeFormat(n,la({},i));return function(o){return r.format(o,i.range||"day")}}),list:gl(function(n,i){var r=new Intl.ListFormat(n,la({},i));return function(o){return r.format(o)}})},this.init(t)}return a(e,"Formatter"),Fr(e,[{key:"init",value:a(function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}},r=i.interpolation;this.formatSeparator=r.formatSeparator?r.formatSeparator:r.formatSeparator||","},"init")},{key:"add",value:a(function(n,i){this.formats[n.toLowerCase().trim()]=i},"add")},{key:"addCached",value:a(function(n,i){this.formats[n.toLowerCase().trim()]=gl(i)},"addCached")},{key:"format",value:a(function(n,i,r){var o=this,s=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},l=i.split(this.formatSeparator),u=l.reduce(function(p,d){var m=zW(d),T=m.formatName,b=m.formatOptions;if(o.formats[T]){var E=p;try{var C=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},R=C.locale||C.lng||s.locale||s.lng||r;E=o.formats[T](p,R,la(la(la({},b),s),C))}catch(L){o.logger.warn(L)}return E}else o.logger.warn("there was no format function for ".concat(T));return p},n);return u},"format")}]),e}();function PR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(PR,"ownKeys$1");function IR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(IR,"_objectSpread$1");function ZW(e){var t=eG();return a(function(){var i=_r(e),r;if(t){var o=_r(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return nc(this,r)},"_createSuperInternal")}a(ZW,"_createSuper$1");function eG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}a(eG,"_isNativeReflectConstruct$1");function tG(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}a(tG,"removePending");var nG=function(e){pl(n,e);var t=ZW(n);function n(i,r,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Lr(this,n),s=t.call(this),fg&&Ja.call(zr(s)),s.backend=i,s.store=r,s.services=o,s.languageUtils=o.languageUtils,s.options=l,s.logger=Oo.create("backendConnector"),s.waitingReads=[],s.maxParallelReads=l.maxParallelReads||10,s.readingCalls=0,s.maxRetries=l.maxRetries>=0?l.maxRetries:5,s.retryTimeout=l.retryTimeout>=1?l.retryTimeout:350,s.state={},s.queue=[],s.backend&&s.backend.init&&s.backend.init(o,l.backend,l),s}return a(n,"Connector"),Fr(n,[{key:"queueLoad",value:a(function(r,o,s,l){var u=this,p={},d={},m={},T={};return r.forEach(function(b){var E=!0;o.forEach(function(C){var R="".concat(b,"|").concat(C);!s.reload&&u.store.hasResourceBundle(b,C)?u.state[R]=2:u.state[R]<0||(u.state[R]===1?d[R]===void 0&&(d[R]=!0):(u.state[R]=1,E=!1,d[R]===void 0&&(d[R]=!0),p[R]===void 0&&(p[R]=!0),T[C]===void 0&&(T[C]=!0)))}),E||(m[b]=!0)}),(Object.keys(p).length||Object.keys(d).length)&&this.queue.push({pending:d,pendingCount:Object.keys(d).length,loaded:{},errors:[],callback:l}),{toLoad:Object.keys(p),pending:Object.keys(d),toLoadLanguages:Object.keys(m),toLoadNamespaces:Object.keys(T)}},"queueLoad")},{key:"loaded",value:a(function(r,o,s){var l=r.split("|"),u=l[0],p=l[1];o&&this.emit("failedLoading",u,p,o),s&&this.store.addResourceBundle(u,p,s),this.state[r]=o?-1:2;var d={};this.queue.forEach(function(m){DW(m.loaded,[u],p),tG(m,r),o&&m.errors.push(o),m.pendingCount===0&&!m.done&&(Object.keys(m.loaded).forEach(function(T){d[T]||(d[T]={});var b=m.loaded[T];b.length&&b.forEach(function(E){d[T][E]===void 0&&(d[T][E]=!0)})}),m.done=!0,m.errors.length?m.callback(m.errors):m.callback())}),this.emit("loaded",d),this.queue=this.queue.filter(function(m){return!m.done})},"loaded")},{key:"read",value:a(function(r,o,s){var l=this,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,d=arguments.length>5?arguments[5]:void 0;if(!r.length)return d(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:r,ns:o,fcName:s,tried:u,wait:p,callback:d});return}this.readingCalls++;var m=a(function(C,R){if(l.readingCalls--,l.waitingReads.length>0){var L=l.waitingReads.shift();l.read(L.lng,L.ns,L.fcName,L.tried,L.wait,L.callback)}if(C&&R&&u<l.maxRetries){setTimeout(function(){l.read.call(l,r,o,s,u+1,p*2,d)},p);return}d(C,R)},"resolver"),T=this.backend[s].bind(this.backend);if(T.length===2){try{var b=T(r,o);b&&typeof b.then=="function"?b.then(function(E){return m(null,E)}).catch(m):m(null,b)}catch(E){m(E)}return}return T(r,o,m)},"read")},{key:"prepareLoading",value:a(function(r,o){var s=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},u=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."),u&&u();typeof r=="string"&&(r=this.languageUtils.toResolveHierarchy(r)),typeof o=="string"&&(o=[o]);var p=this.queueLoad(r,o,l,u);if(!p.toLoad.length)return p.pending.length||u(),null;p.toLoad.forEach(function(d){s.loadOne(d)})},"prepareLoading")},{key:"load",value:a(function(r,o,s){this.prepareLoading(r,o,{},s)},"load")},{key:"reload",value:a(function(r,o,s){this.prepareLoading(r,o,{reload:!0},s)},"reload")},{key:"loadOne",value:a(function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",l=r.split("|"),u=l[0],p=l[1];this.read(u,p,"read",void 0,void 0,function(d,m){d&&o.logger.warn("".concat(s,"loading namespace ").concat(p," for language ").concat(u," failed"),d),!d&&m&&o.logger.log("".concat(s,"loaded namespace ").concat(p," for language ").concat(u),m),o.loaded(r,d,m)})},"loadOne")},{key:"saveMissing",value:a(function(r,o,s,l,u){var p=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},d=arguments.length>6&&arguments[6]!==void 0?arguments[6]:function(){};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(o)){this.logger.warn('did not save key "'.concat(s,'" as the namespace "').concat(o,'" 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(!(s==null||s==="")){if(this.backend&&this.backend.create){var m=IR(IR({},p),{},{isUpdate:u}),T=this.backend.create.bind(this.backend);if(T.length<6)try{var b;T.length===5?b=T(r,o,s,l,m):b=T(r,o,s,l),b&&typeof b.then=="function"?b.then(function(E){return d(null,E)}).catch(d):d(null,b)}catch(E){d(E)}else T(r,o,s,l,d,m)}!r||!r[0]||this.store.addResource(r[0],o,s,l)}},"saveMissing")}]),n}(Ja);function OR(){return{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:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:a(function(t){var n={};if(oi(t[1])==="object"&&(n=t[1]),typeof t[1]=="string"&&(n.defaultValue=t[1]),typeof t[2]=="string"&&(n.tDescription=t[2]),oi(t[2])==="object"||oi(t[3])==="object"){var i=t[3]||t[2];Object.keys(i).forEach(function(r){n[r]=i[r]})}return n},"handle"),interpolation:{escapeValue:!0,format:a(function(t,n,i,r){return t},"format"),prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}a(OR,"get");function CR(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}a(CR,"transformOptions");function NR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}a(NR,"ownKeys");function Io(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?NR(Object(n),!0).forEach(function(i){Po(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):NR(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(Io,"_objectSpread");function iG(e){var t=rG();return a(function(){var i=_r(e),r;if(t){var o=_r(this).constructor;r=Reflect.construct(i,arguments,o)}else r=i.apply(this,arguments);return nc(this,r)},"_createSuperInternal")}a(iG,"_createSuper");function rG(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}a(rG,"_isNativeReflectConstruct");function ag(){}a(ag,"noop");function oG(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}a(oG,"bindMemberFunctions");var lg=function(e){pl(n,e);var t=iG(n);function n(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Lr(this,n),i=t.call(this),fg&&Ja.call(zr(i)),i.options=CR(r),i.services={},i.logger=Oo,i.modules={external:[]},oG(zr(i)),o&&!i.isInitialized&&!r.isClone){if(!i.options.initImmediate)return i.init(r,o),nc(i,zr(i));setTimeout(function(){i.init(r,o)},0)}return i}return a(n,"I18n"),Fr(n,[{key:"init",value:a(function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1?arguments[1]:void 0;typeof o=="function"&&(s=o,o={}),!o.defaultNS&&o.defaultNS!==!1&&o.ns&&(typeof o.ns=="string"?o.defaultNS=o.ns:o.ns.indexOf("translation")<0&&(o.defaultNS=o.ns[0]));var l=OR();this.options=Io(Io(Io({},l),this.options),CR(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Io(Io({},l.interpolation),this.options.interpolation)),o.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=o.keySeparator),o.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=o.nsSeparator);function u(L){return L?typeof L=="function"?new L:L:null}if(a(u,"createClassOnDemand"),!this.options.isClone){this.modules.logger?Oo.init(u(this.modules.logger),this.options):Oo.init(null,this.options);var p;this.modules.formatter?p=this.modules.formatter:typeof Intl<"u"&&(p=qW);var d=new ER(this.options);this.store=new BW(this.options.resources,this.options);var m=this.services;m.logger=Oo,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new YW(d,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),p&&(!this.options.interpolation.format||this.options.interpolation.format===l.interpolation.format)&&(m.formatter=u(p),m.formatter.init(m,this.options),this.options.interpolation.format=m.formatter.format.bind(m.formatter)),m.interpolator=new QW(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new nG(u(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(L){for(var F=arguments.length,U=new Array(F>1?F-1:0),J=1;J<F;J++)U[J-1]=arguments[J];r.emit.apply(r,[L].concat(U))}),this.modules.languageDetector&&(m.languageDetector=u(this.modules.languageDetector),m.languageDetector.init&&m.languageDetector.init(m,this.options.detection,this.options)),this.modules.i18nFormat&&(m.i18nFormat=u(this.modules.i18nFormat),m.i18nFormat.init&&m.i18nFormat.init(this)),this.translator=new TR(this.services,this.options),this.translator.on("*",function(L){for(var F=arguments.length,U=new Array(F>1?F-1:0),J=1;J<F;J++)U[J-1]=arguments[J];r.emit.apply(r,[L].concat(U))}),this.modules.external.forEach(function(L){L.init&&L.init(r)})}if(this.format=this.options.interpolation.format,s||(s=ag),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var T=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);T.length>0&&T[0]!=="dev"&&(this.options.lng=T[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined");var b=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];b.forEach(function(L){r[L]=function(){var F;return(F=r.store)[L].apply(F,arguments)}});var E=["addResource","addResources","addResourceBundle","removeResourceBundle"];E.forEach(function(L){r[L]=function(){var F;return(F=r.store)[L].apply(F,arguments),r}});var C=qf(),R=a(function(){var F=a(function(J,re){r.isInitialized&&!r.initializedStoreOnce&&r.logger.warn("init: i18next is already initialized. You should call init just once!"),r.isInitialized=!0,r.options.isClone||r.logger.log("initialized",r.options),r.emit("initialized",r.options),C.resolve(re),s(J,re)},"finish");if(r.languages&&r.options.compatibilityAPI!=="v1"&&!r.isInitialized)return F(null,r.t.bind(r));r.changeLanguage(r.options.lng,F)},"load");return this.options.resources||!this.options.initImmediate?R():setTimeout(R,0),C},"init")},{key:"loadResources",value:a(function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ag,l=s,u=typeof r=="string"?r:this.language;if(typeof r=="function"&&(l=r),!this.options.resources||this.options.partialBundledLanguages){if(u&&u.toLowerCase()==="cimode")return l();var p=[],d=a(function(b){if(b){var E=o.services.languageUtils.toResolveHierarchy(b);E.forEach(function(C){p.indexOf(C)<0&&p.push(C)})}},"append");if(u)d(u);else{var m=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);m.forEach(function(T){return d(T)})}this.options.preload&&this.options.preload.forEach(function(T){return d(T)}),this.services.backendConnector.load(p,this.options.ns,function(T){!T&&!o.resolvedLanguage&&o.language&&o.setResolvedLanguage(o.language),l(T)})}else l(null)},"loadResources")},{key:"reloadResources",value:a(function(r,o,s){var l=qf();return r||(r=this.languages),o||(o=this.options.ns),s||(s=ag),this.services.backendConnector.reload(r,o,function(u){l.resolve(),s(u)}),l},"reloadResources")},{key:"use",value:a(function(r){if(!r)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!r.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return r.type==="backend"&&(this.modules.backend=r),(r.type==="logger"||r.log&&r.warn&&r.error)&&(this.modules.logger=r),r.type==="languageDetector"&&(this.modules.languageDetector=r),r.type==="i18nFormat"&&(this.modules.i18nFormat=r),r.type==="postProcessor"&&LR.addPostProcessor(r),r.type==="formatter"&&(this.modules.formatter=r),r.type==="3rdParty"&&this.modules.external.push(r),this},"use")},{key:"setResolvedLanguage",value:a(function(r){if(!(!r||!this.languages)&&!(["cimode","dev"].indexOf(r)>-1))for(var o=0;o<this.languages.length;o++){var s=this.languages[o];if(!(["cimode","dev"].indexOf(s)>-1)&&this.store.hasLanguageSomeTranslations(s)){this.resolvedLanguage=s;break}}},"setResolvedLanguage")},{key:"changeLanguage",value:a(function(r,o){var s=this;this.isLanguageChangingTo=r;var l=qf();this.emit("languageChanging",r);var u=a(function(T){s.language=T,s.languages=s.services.languageUtils.toResolveHierarchy(T),s.resolvedLanguage=void 0,s.setResolvedLanguage(T)},"setLngProps"),p=a(function(T,b){b?(u(b),s.translator.changeLanguage(b),s.isLanguageChangingTo=void 0,s.emit("languageChanged",b),s.logger.log("languageChanged",b)):s.isLanguageChangingTo=void 0,l.resolve(function(){return s.t.apply(s,arguments)}),o&&o(T,function(){return s.t.apply(s,arguments)})},"done"),d=a(function(T){!r&&!T&&s.services.languageDetector&&(T=[]);var b=typeof T=="string"?T:s.services.languageUtils.getBestMatchFromCodes(T);b&&(s.language||u(b),s.translator.language||s.translator.changeLanguage(b),s.services.languageDetector&&s.services.languageDetector.cacheUserLanguage&&s.services.languageDetector.cacheUserLanguage(b)),s.loadResources(b,function(E){p(E,b)})},"setLng");return!r&&this.services.languageDetector&&!this.services.languageDetector.async?d(this.services.languageDetector.detect()):!r&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(d):this.services.languageDetector.detect(d):d(r),l},"changeLanguage")},{key:"getFixedT",value:a(function(r,o,s){var l=this,u=a(function p(d,m){var T;if(oi(m)!=="object"){for(var b=arguments.length,E=new Array(b>2?b-2:0),C=2;C<b;C++)E[C-2]=arguments[C];T=l.options.overloadTranslationOptionHandler([d,m].concat(E))}else T=Io({},m);T.lng=T.lng||p.lng,T.lngs=T.lngs||p.lngs,T.ns=T.ns||p.ns,T.keyPrefix=T.keyPrefix||s||p.keyPrefix;var R=l.options.keySeparator||".",L;return T.keyPrefix&&Array.isArray(d)?L=d.map(function(F){return"".concat(T.keyPrefix).concat(R).concat(F)}):L=T.keyPrefix?"".concat(T.keyPrefix).concat(R).concat(d):d,l.t(L,T)},"fixedT");return typeof r=="string"?u.lng=r:u.lngs=r,u.ns=o,u.keyPrefix=s,u},"getFixedT")},{key:"t",value:a(function(){var r;return this.translator&&(r=this.translator).translate.apply(r,arguments)},"t")},{key:"exists",value:a(function(){var r;return this.translator&&(r=this.translator).exists.apply(r,arguments)},"exists")},{key:"setDefaultNamespace",value:a(function(r){this.options.defaultNS=r},"setDefaultNamespace")},{key:"hasLoadedNamespace",value:a(function(r){var o=this,s=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;var l=s.lng||this.resolvedLanguage||this.languages[0],u=this.options?this.options.fallbackLng:!1,p=this.languages[this.languages.length-1];if(l.toLowerCase()==="cimode")return!0;var d=a(function(b,E){var C=o.services.backendConnector.state["".concat(b,"|").concat(E)];return C===-1||C===2},"loadNotPending");if(s.precheck){var m=s.precheck(this,d);if(m!==void 0)return m}return!!(this.hasResourceBundle(l,r)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||d(l,r)&&(!u||d(p,r)))},"hasLoadedNamespace")},{key:"loadNamespaces",value:a(function(r,o){var s=this,l=qf();return this.options.ns?(typeof r=="string"&&(r=[r]),r.forEach(function(u){s.options.ns.indexOf(u)<0&&s.options.ns.push(u)}),this.loadResources(function(u){l.resolve(),o&&o(u)}),l):(o&&o(),Promise.resolve())},"loadNamespaces")},{key:"loadLanguages",value:a(function(r,o){var s=qf();typeof r=="string"&&(r=[r]);var l=this.options.preload||[],u=r.filter(function(p){return l.indexOf(p)<0});return u.length?(this.options.preload=l.concat(u),this.loadResources(function(p){s.resolve(),o&&o(p)}),s):(o&&o(),Promise.resolve())},"loadLanguages")},{key:"dir",value:a(function(r){if(r||(r=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!r)return"rtl";var o=["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"],s=this.services&&this.services.languageUtils||new ER(OR());return o.indexOf(s.getLanguagePartFromCode(r))>-1||r.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"},"dir")},{key:"cloneInstance",value:a(function(){var r=this,o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ag,l=Io(Io(Io({},this.options),o),{isClone:!0}),u=new n(l);(o.debug!==void 0||o.prefix!==void 0)&&(u.logger=u.logger.clone(o));var p=["store","services","language"];return p.forEach(function(d){u[d]=r[d]}),u.services=Io({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new TR(u.services,u.options),u.translator.on("*",function(d){for(var m=arguments.length,T=new Array(m>1?m-1:0),b=1;b<m;b++)T[b-1]=arguments[b];u.emit.apply(u,[d].concat(T))}),u.init(l,s),u.translator.options=u.options,u.translator.backendConnector.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u},"cloneInstance")},{key:"toJSON",value:a(function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}},"toJSON")}]),n}(Ja);Po(lg,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new lg(e,t)});var ee=lg.createInstance();ee.createInstance=lg.createInstance;var Aq=ee.createInstance,Sq=ee.dir,xq=ee.init,Pq=ee.loadResources,Iq=ee.reloadResources,Oq=ee.use,Cq=ee.changeLanguage,Nq=ee.getFixedT,Rq=ee.t,Lq=ee.exists,Fq=ee.setDefaultNamespace,_q=ee.hasLoadedNamespace,Dq=ee.loadNamespaces,wq=ee.loadLanguages;var JL=te(yT()),YL=te(rL()),Cg=te(KL()),Ye=require("@sap-ux/vocabularies-types/vocabularies/UI"),ru=require("@sap-ux/vocabularies-types/vocabularies/Communication");var Ig=te(se());var oe=a((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(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${Ig.LogSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var B="#/definitions/",eo=a((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function Ro(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Cg.parse)(r.fileContent,r.dataSourceUri))}catch(o){return oe(t,{severity:K.LogSeverity.Error,message:ee.t("ANNOERR"),location:{path:ee.t("ANNOTATIONFILE",{file:r.dataSourceUri})}},o),i}}),n.length>0&&(i=(0,YL.convert)((0,Cg.merge)(...n))),i}a(Ro,"parseAndMergeAndConvert");var Tl=a(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function MT(e,t,n){var i,r,o,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=(o=e.Common)==null?void 0:o.Label)==null?void 0:s.toString())=="string"&&(n=e.Common.Label.toString());return n}a(MT,"evaluateCommonLabel");function Ng(e,t){let n=e.value;return e.$target&&(n=MT(e.$target.annotations,t,n)),n}a(Ng,"getLabelForPropertyPath");function Og(e,t){var r,o;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)),(o=(r=i==null?void 0:i.annotations)==null?void 0:r.Common)!=null&&o.Label&&(n=MT(i.annotations,t,n)),n}a(Og,"getLabelForDataField");function kH(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 o=r[0];if((i=(n=o==null?void 0:o.annotations)==null?void 0:n.Common)!=null&&i.Label){let s=e;return MT(o.annotations,t,s)}}}else return}a(kH,"getLabel");function XL(e,t,n){let i=Og(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}a(XL,"getTitleForDataField");function Ei(e,t){var s,l,u,p;let n="",i,r,o="";try{let d=kH(e.Label,t);switch(e.$Type){case Ye.UIAnnotationTypes.DataField:n=XL(e,t,d);break;case Ye.UIAnnotationTypes.DataFieldWithUrl:i=Og(e,t),n=d||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Ye.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Og(e,t),n=d||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 Ye.UIAnnotationTypes.DataFieldForAction:case Ye.UIAnnotationTypes.DataFieldWithAction:case Ye.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,o=typeof e.Action=="string"?r.Action:(p=r.Action)==null?void 0:p.path,d?n=typeof d=="string"?d:o:n=o;break;case Ye.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Og(e,t),n=i||e.Value.path;break;case Ye.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=XL(r,t,d);break;default:break}return n}catch{return n}}a(Ei,"getDataFieldDescription");function ft(e){return e.replace("#","::").replace(/\//g,":2f")}a(ft,"prepareRef");function ga(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}a(ga,"getPageTypeV2");function VT(e){if(e.name&&e.name!==K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE){let t=`${K.v4.FE_TEMPLATE_V4}.`;return e.name.split(t)[1]}else{if((e==null?void 0:e.name)===K.v4.FE_TEMPLATE_V4_CUSTOM_PAGE)return K.PageTypeV4.FPMCustomPage;if(e.viewId||e.viewName)return K.PageTypeV4.CustomPage}}a(VT,"getPageTypeV4");function jH(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}a(jH,"getTargetAnnotationName");function ai(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}a(ai,"findAlias");function $H(e){return e.substring(e.lastIndexOf(".")+1,e.length)}a($H,"getAnnotationFromMetaPath");function UH(e,t,n){var s,l;let i=e[e.length-1],r=$H(i),o=ai(i.substring(0,i.lastIndexOf(".")).replace("@",""),n);return(l=(s=t==null?void 0:t.annotations)==null?void 0:s[o])==null?void 0:l[r]}a(UH,"determineTargetAnnotation");function BH(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Ye.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}a(BH,"adjustKey");function WH(e,t,n,i,r=K.FioriElementsVersion.v2,o=!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=BH(t,u,o);let d=UH(u,n,e);if(d){let b=r===K.FioriElementsVersion.v2?"::":"#";t=jH(d,o).replace("#",b),l=(T=d.fullyQualifiedName)==null?void 0:T.split("@")[0]}else return s=!0,{key:t,entityType:n,stopProcessing:s,namespace:l};if(p){let b=r===K.FioriElementsVersion.v2?"::":"/";u.pop(),t=`${[...u].join(b)}${b}${t}`}return{key:t,entityType:n,stopProcessing:s,namespace:l}}a(WH,"getKeyAndEntityTypeOfReferenceFacet");function QL(e,t,n,i,r=K.FioriElementsVersion.v2,o=!1){var d,m,T;let s=(m=e.fullyQualifiedName)==null?void 0:m.substring((d=e.fullyQualifiedName)==null?void 0:d.lastIndexOf("@")),l=e.ID?e.ID.toString():s,u=(T=e.fullyQualifiedName)==null?void 0:T.split("@")[0],p=t;if(e.$Type!==Ye.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=Tl(e.Target);if(!b){oe(i,{severity:K.LogSeverity.Error,message:ee.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:C,stopProcessing:R,namespace:L}=WH(n,l,p,b,r,o);if(R)return;l=E,p=C,u=L}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}}a(QL,"getSectionFacet");function GH(e,t,n){let i;return n&&n===e?i=t:i=e.replace(/\?\?/g,"/"),i}a(GH,"getDecodedPathElement");var kT=a(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),zL=a((e,t,n,i,r,o=!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 d=GH(p,n,i);if(r!==void 0&&!o&&l.length-1===u)s[d]=r;else if(!s[d]){if(o)return;s[d]=kT(l[u+1])}s=s[d]}return s},"resolveManifestPath"),Lo=a((e,t,n,i,r=!1)=>zL(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),qL=a((e,t,n,i,r)=>{zL(e,t,i,r,n)},"setManifestSectionByPathV4");function jT(e){let t,n,i;switch(e.$Type){case Ye.UIAnnotationTypes.DataField:t=Tl(e.Value);break;case Ye.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:Tl(e.Value);break;case Ye.UIAnnotationTypes.DataFieldForAnnotation:n=e.Target.value,n&&(t="DataFieldForAnnotation:::sTarget::"+n.replace("@UI",`@${K.UIVOCABULARY}`).replace("@Communication","@com.sap.vocabularies.Communication.v1").replace("@Contact","@com.sap.vocabularies.Contact.v1"));break;case Ye.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ft(e.Action)}`);break;case Ye.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Tl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Ye.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ft(e.Action)}`);break;case Ye.UIAnnotationTypes.DataFieldWithNavigationPath:i=Tl(e.Value),n=Tl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}a(jT,"getSchemaKeyOfLineItemRecord");function HH(e,t,n){return e.includes(Ye.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Ye.UIAnnotationTerms.Chart:e.includes(Ye.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Ye.UIAnnotationTerms.Identification:n&&e.includes(Ye.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Ye.UIAnnotationTerms.LineItem:e.includes(Ye.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Ye.UIAnnotationTerms.FieldGroup:e.includes(Ye.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Ye.UIAnnotationTerms.DataPoint:e.includes(Ye.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Ye.UIAnnotationTerms.PresentationVariant:void 0}a(HH,"getUIAnnotationTerm");function KH(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?ru.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?ru.CommunicationAnnotationTerms.Address:void 0}a(KH,"getCommunicationAnnotationTerm");function XH(e,t,n){return HH(e,t,n)||KH(e,t)}a(XH,"getAnnotationTerm");function JH(e,t,n,i,r){var p,d,m,T,b,E,C,R,L;let o=ai(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(XH(s,o,i)){case Ye.UIAnnotationTerms.Chart:{n[s]={base:K.FacetBase.Chart},n[s].target=(p=t==null?void 0:t.Target)==null?void 0:p.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.Identification:{n[s]={base:K.FacetBase.Identification},n[s].target=(d=t==null?void 0:t.Target)==null?void 0:d.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.LineItem:{if(!s.includes(Ye.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let F=s.split("::");F[F.length-1]=`@${Ye.UIAnnotationTerms.LineItem}`,s=F.join("::")}n[s]={base:K.FacetBase.LineItem},n[s].target=(m=t==null?void 0:t.Target)==null?void 0:m.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.FieldGroup:{n[s]={base:K.FacetBase.Form},n[s].target=(T=t==null?void 0:t.Target)==null?void 0:T.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.DataPoint:{n[s]={base:K.FacetBase.DataPoint},n[s].Label=(b=t==null?void 0:t.Target)==null?void 0:b.$target.Title,n[s].target=(E=t==null?void 0:t.Target)==null?void 0:E.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case Ye.UIAnnotationTerms.PresentationVariant:{n[s]={base:K.FacetBase.PresentationVariant},n[s].target=(C=t==null?void 0:t.Target)==null?void 0:C.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ru.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},n[s].target=(R=t==null?void 0:t.Target)==null?void 0:R.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}case ru.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},n[s].target=(L=t==null?void 0:t.Target)==null?void 0:L.$target,n[s].entityType=l,n[s].namespace=e.namespace;break}default:n[s]={base:K.FacetBase.Unknown}}n[s]&&(n[s].annotationPath=`/${t.fullyQualifiedName.replace("@com.sap.vocabularies",K.VOCWITHSLASH)}`,t.Label&&(n[s].Label=t.Label),t.ID&&(n[s].ID=t.ID),e&&e.entityType&&(n[s].entityType=e.entityType))}a(JH,"evaluateTargetAnnotation");function $T(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}a($T,"getAnnotationPathUsingFullyQualifiedName");function UT(e,t,n,i,r,o=K.FioriElementsVersion.v2,s){var u;let l=QL(e,i,t,s,o,!1);if(l)switch(e.$Type){case Ye.UIAnnotationTypes.ReferenceFacet:{JH(l,e,r,i,t);break}case Ye.UIAnnotationTypes.CollectionFacet:{let p=$T(i,e.fullyQualifiedName),d=r[l.key]={base:K.FacetBase.CollectionFacet,facets:{},ID:l.ID,annotationPath:p,Label:l.label,namespace:l.namespace};!d.ID&&o===K.FioriElementsVersion.v4&&oe(s,{severity:K.LogSeverity.Error,message:ee.t("NOID4SECTION",{facet:e.fullyQualifiedName})}),(u=e.Facets)==null||u.forEach(m=>{UT(m,t,n,i,d.facets,o,s)});break}}}a(UT,"addFacetToConfig");function ZL(e,t,n=K.FioriElementsVersion.v2,i){var l,u;let r={};if(!e||!e.annotations)return;let o=ai(K.UIVOCABULARY,t),s=o&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:u.HeaderFacets);if(s){let p=e&&e.fullyQualifiedName.lastIndexOf("."),d=e&&e.fullyQualifiedName.substring(0,p);s.forEach(m=>{UT(m,t,d,e,r,n,i)})}return r}a(ZL,"getObjectPageHeaderFacets");function Rg(e,t,n=K.FioriElementsVersion.v2,i){var l;let r={};if(!e||!e.annotations)return;let o=ai(K.UIVOCABULARY,t),s=o&&((l=e==null?void 0:e.annotations[o])==null?void 0:l.Facets);if(s){let u=e&&e.fullyQualifiedName.lastIndexOf("."),p=e&&e.fullyQualifiedName.substring(0,u);s.forEach(d=>{UT(d,t,p,e,r,n,i)})}return r}a(Rg,"getObjectPageFacets");function BT(e){return e[K.ManifestSection.generic]||e[K.ManifestSection.ovp]?K.FioriElementsVersion.v2:K.FioriElementsVersion.v4}a(BT,"getVersionFromManifest");function YH(e,t){var i,r;let n;if(e[K.ManifestSection.generic]){let o=e[K.ManifestSection.generic].pages;if(!o){oe(t,{severity:K.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return}for(let s in o){let l=o[s];if(ga((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(ga((r=l.component)==null?void 0:r.name)===K.PageTypeV2.ListReport){n=K.TemplateType.ListReportObjectPageV2;break}}}else n||oe(t,{severity:K.LogSeverity.Error,message:ee.t("NOTEMPLATE",{section:K.ManifestSection.generic}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.generic]}});return n}a(YH,"determineV2Template");function ou(e){var i,r,o,s;let t,n=VT(e);if(n===K.PageTypeV4.AnalyticalListPage)t=K.TemplateType.AnalyticalListPageV4;else if(n===K.PageTypeV4.ListReport){let l=(s=(o=(r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.views)==null?void 0:o.paths)==null?void 0:s[0];l&&(l[K.ALPViewType.Primary]||l[K.ALPViewType.Secondary])?t=K.TemplateType.AnalyticalListPageV4:t=K.TemplateType.ListReportObjectPageV4}else n===K.PageTypeV4.ObjectPage?t=K.TemplateType.ListReportObjectPageV4:[K.PageTypeV4.CustomPage,K.PageTypeV4.FPMCustomPage].includes(n)&&(t=K.TemplateType.FreestylePageV4);return t}a(ou,"determineV4PageTemplateType");function QH(e){let t;for(let n in e){let i=e[n];if(t=ou(i),t)break}return t}a(QH,"determineV4TemplateFromPages");function zH(e,t){let n=e[K.ManifestSection.ui5].routing&&e[K.ManifestSection.ui5].routing.targets;if(!n||Object.keys(n).length===0)return oe(t,{severity:K.LogSeverity.Info,message:ee.t("NOPAGES",{appId:e["sap.app"].id}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing"]}}),K.TemplateType.ListReportObjectPageV4;let i=QH(n);return i||oe(t,{severity:K.LogSeverity.Error,message:ee.t("NOTEMPLATE",{section:K.ManifestSection.ui5}),location:{path:K.MANIFESTPATH,range:[K.ManifestSection.ui5,"routing","targets"]}}),i}a(zH,"determineV4Template");function WT(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=YH(e,n):t===K.FioriElementsVersion.v4?i=zH(e,n):i||oe(n,{severity:K.LogSeverity.Error,message:ee.t("NOFE"),location:{path:K.MANIFESTPATH}}),i}a(WT,"getTemplateTypeFromManifest");function ma(e,t,n){e!=null&&e.ID?(t.title=K.FacetTitlePrefix+e.ID,t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:e.ID}]):(t.title=n.replace(/@com.sap/g,"com.sap"),t[K.SchemaTag.keys]=[{name:K.SchemaKeyName.id,value:n.replace(K.UIVOCABULARYALPHADOT,"")}]),e!=null&&e.Label?t.description=e.Label:e!=null&&e.ID?t.description=e.ID:t.description=n.substring(n.lastIndexOf(".")+1)}a(ma,"addSectionTitleAndDescription");function au(e,t,n){var i;ma(e,t,n),e!=null&&e.Label?t.description=e==null?void 0: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)}a(au,"addTargetTitleAndSectionDescription");function ha(e,t,n){if(!t)return;let i;return e.definitions.ObjectPageSection?i=JSON.parse(JSON.stringify(e.definitions.ObjectPageSection)):(i={type:"object",properties:{},additionalProperties:!1},i[K.SchemaTag.isViewNode]=!0),i[K.SchemaTag.annotationPath]=t.annotationPath,ma(t,i,n),i}a(ha,"createDefaultSection");function Lg(e,t,n,i=K.FioriElementsVersion.v2,r=!1){var l,u;let o=ai(K.UIVOCABULARY,t),s=[];if(e){let p=o&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[o])==null?void 0:u.Facets);return p&&(s=p.reduce(function(d,m){if(r&&!m.ID&&!("Target"in m&&m.Target))return d;let T=QL(m,e,t,n,i,!0);return T&&d.push(T),d},s)),s}}a(Lg,"getObjectPageFacetSection");var Qa=a((e,t,n,i)=>{if(!t)return;let r=e,o=t.split("/");o.forEach(function(s){let l=i&&i===s?n:s.replace(/\?\?/g,"/");if(r[l]){if(Object.keys(r[l]).length===0){Array.isArray(r)?r.splice(Number(l),1):delete r[l],o.pop(),Qa(e,o.join("/"),n,i);return}r=r&&r[l]}})},"deleteEmptyStructure"),wT=a(e=>e===K.SchemaType.FreestylePage?K.PageTypeV2.CustomPage:e===K.SchemaType.FPMCustomPage?K.SchemaType.BuildingBlocks:`${e}`,"getGenericSchemaFileName"),Nt=a((e,t,n)=>{let i={filename:"",path:""};switch(e){case K.SchemaType.Application:{i.filename="App",i.path=`./${K.DirName.Schemas}/${i.filename}`;break}case K.SchemaType.ListReport:case K.SchemaType.ObjectPage:{i.filename=t?`${e}_${t}`:wT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:wT(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=wT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Fg(e,t,n,i){if(e===K.PageTypeV2.CustomPage){let o=n&&n.split(".");return o&&o[o.length-1]+"Page"}let r=[];return r.push(e),t?r.push(t):i&&r.push(i.replace("|","").replace(e,"")),r.join("_")}a(Fg,"generatePageId");function GT(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(B)[1]];typeof l=="object"&&(i=l.properties,r=l.required)}if(!i||Object.keys(i).length===0)return[];let o=[];r=r||[];for(let s in n){let l=n[s];typeof l=="object"&&r.every(u=>l[u])&&o.push(s)}return o}a(GT,"findMatchingKeysByAdditionalProperties");function qH(e,t,n,i){let r=e.$ref;if(!r)return;let o=r.split(B)[1],s=t.definitions[o];if(typeof s=="object"&&typeof n=="object"){let l=s.controlProperty;if(l)r.includes(n[l])&&i.push(o);else if(typeof s.additionalProperties=="object"){let u=Object.keys(s.properties||{}),p=GT(t,s.additionalProperties,n);(u.some(d=>d in n)||p.length)&&i.push(o)}}}a(qH,"fillArrayFromAnyOfReference");function ZH(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(B)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{qH(r,n,t,i)}),i.length===0))return;return i}a(ZH,"fillArrayFromPropertyDefinition");function e5(e,t,n,i,r,o,s,l){var p,d,m,T;let u={configObject:void 0,targetDefinition:{},title:""};if(e.length){let b=e[e.length-1];if(u.targetDefinition=t.definitions[b],(p=u==null?void 0:u.targetDefinition)!=null&&p.$ref||((d=u==null?void 0:u.targetDefinition)==null?void 0:d.type)==="array")return u=Fo(t,n,i,u.targetDefinition,r,o,s),u;e.length>1&&e.forEach(R=>{R!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[R].properties})}),u.title=(m=u==null?void 0:u.targetDefinition)!=null&&m.title?u.targetDefinition.title:n;let E=b==null?void 0:b.split("<")[0],C=i||{};u.configObject=o.createInstance(s,E,C,(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}a(e5,"determineNextDefinitionFromDefinitionArray");function Fo(e,t,n,i,r,o,s){let l;if(i.type==="array")return l=Fo(e,t,n,i.items,r,o,s),l;let u=ZH(i,n,e);if(u)return l=e5(u,e,t,n,r,o,s,i),l}a(Fo,"getNextTargetDefinition");var HT=a((e,t,n)=>{let i=e.slice();return t.forEach((r,o)=>{typeof i[o]>"u"?i[o]=n.cloneUnlessOtherwiseSpecified(r,n):n.isMergeableObject(r)?i[o]=(0,JL.default)(e[o],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function _g(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];e[n]=i.join()}a(_g,"convertEnumToCSV");function Wi(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}a(Wi,"convertActionKeyToStableId");function un(e){return e==null?void 0:e.split(B)[1]}a(un,"getDefinitionKey");function eF(e){return`#/definitions/${e}`}a(eF,"getDefinitionsRef");function tF(e){return e instanceof Error?e.message:String(e)}a(tF,"getErrorMessage");function oc(e,t){return e==null?void 0:e.includes(t)}a(oc,"isFeatureSupported");function _o(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}a(_o,"updatePropertyIndices");function Dg(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}a(Dg,"getJSONPropertyByPath");function nF(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}a(nF,"removeNamespaces");function El(e){return e=e.replace(K.UIVOCABULARY,"UI"),e=e.replace("com.sap.vocabularies.Communication.v1","Communication"),e}a(El,"replaceNamespaces");var qo=require("@sap-ux/vocabularies-types/vocabularies/UI"),fe=te(se());var bi=te(se());var Gt=a((e,t)=>e+t.join("::"),"buildControlIdFromParent"),wg=a((e,t,n)=>e+t.join("::")+n[0],"buildControlIdForPage"),Yn=a((e,t)=>{let n,i=bi.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 t5(e){return e.replace(/[^-A-Za-z0-9_.:]/g,function(t){let n=t.charCodeAt(0).toString(16);return`:${n.length===1?"0":""}${n}`})}a(t5,"escapeId");var iF=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(iF||{}),rF=(n=>(n.Editable="{ui>/isEditable}",n.NotEditable="{= !${ui>/isEditable}}",n))(rF||{});function n5(e,t,n){let i;return e=e.map(function(r){if(r===bi.PropertyName.sections){for(let o=0;o<t.length;o++)if(t[o]===bi.PropertyName.sections&&(i=t[o+1],i.indexOf(bi.FacetBase.LineItem)!==-1))return t[o+1]=Yn(i,n)+"::Table",t[o+1]}return r}),{idBreadcrumbs:e}}a(n5,"mapBreadcrumbs");var KT=a((e,t,n,i,r)=>{let o="listReport",s=[...n];({idBreadcrumbs:t}=n5(t,s,r)),s[0]===bi.PropertyName.sections?o=s[1].replace(/::com.sap.vocabularies/g,bi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,bi.VOCWITHSLASH):t[0]===bi.PropertyName.table&&(o=t[0]);let l=s[s.length-1].replace(/::com.sap.vocabularies/g,bi.VOCWITHSLASH).replace(/::@com.sap.vocabularies/g,bi.VOCWITHSLASH).replace("sTarget/@","sTarget::@").replace("/",":2f"),u,p=l.indexOf(":::");return l.startsWith("DataField")&&p>-1?u=`${e}template:::TableColumn:::${l.substring(0,p)}:::sSmartTableId::${o.replace("::Table",":3a:3aTable")}:::${l.substring(p+3)}`:u=`${e}${t.join("::")}-${l}`,t5(u)},"buildColumnControlId"),Gi=a(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 i5(e){let t=bi.BindingPropertyRegexAsString;if(e.enum){let n;e.enum.forEach(i=>{i.toString().startsWith("{")||(n=n?`${n}|${i.toString()}`:i.toString())}),t=`^(${n})$|${t}`}return e.type&&e.type==="boolean"&&(t=`^(false|true)$|${t}`),t}a(i5,"determinePattern");var XT=a((e,t,n,i)=>{let r=t&&t.properties;if(r[n].pattern)return;let o=r[n],s=o,l=o.$ref?e.definitions[o.$ref.split(B)[1]]:o,u=o.description?o.description:l.description,p=i5(l);l.type&&l.type==="boolean"&&(s={enum:[!1,!0]}),i&&s.enum&&i.forEach(d=>{s.enum.indexOf(d)===-1&&s.enum.push(d)}),r[n]={pattern:p,anyOf:[s,{type:"string"}]},u&&(r[n].description=u,delete o.description)},"addPatternForBindingChangeOfEnum"),Qn=a((e,t,n)=>{XT(e,t,n)},"addPatternForBindingChangeOfEnumLR"),dt=a((e,t,n)=>{let i=Object.values(iF);XT(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),Hi=a((e,t,n)=>{let i=Object.values(rF);XT(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function ac(){}a(ac,"doNotDelete");var I9=te(aF());var sF=Symbol("specificationMetadataKey"),v=a(e=>Reflect.metadata(sF,e),"syncRule");function zn(e,t){let n;return e&&(n=Reflect.getMetadata(sF,e,t)),n}a(zn,"getReflectMetadata");var Dr=a(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),cF=Symbol("childId"),Ft=a(e=>Reflect.metadata(cF,e),"childId"),Mg=a((e,t)=>Reflect.getMetadata(cF,e,t),"getChildId"),sc=a(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),r5=Symbol("validityMetadataKey"),I=a(e=>Reflect.metadata(r5,e),"validity");function Vg(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}a(Vg,"getTextForDeprecated");var hF=te(gF()),yF=te(se());var vF=hF.default.change,mF={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function TF(e,t){let n="";try{for(let i in mF)e[i]===void 0&&(e[i]=mF[i]);n=vF.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}a(TF,"createChangeString");function za(e){try{return vF.parse(e)}catch{return!1}}a(za,"parseChangeString");function kg(e,t,n,i,r){let o=n.layer?n.layer===yF.FlexChangeLayer.Customer:!0,s={controlId:r,controlType:t.flex.controlType(),content:{property:i},sapui5Version:n.ui5Version,isCustomer:o};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}a(kg,"fillFlexChangeContent");function Te(e,t){return TF(e,t)}a(Te,"exportToFlexChange");var cc=te(se());function bl(e,t,n,i,r,o){let s=e.manifest.key||n,l=e.manifest.import;if(l&&typeof l=="function"){let u=l(t,r,n,o);u!==void 0&&(i[n]=u)}else t[s]!==void 0&&(i[n]=t[s])}a(bl,"importProperty");function jg(e,t,n,i){if(t&&e)for(let r in t){let o=e[r];o&&(oe(i,{severity:cc.LogSeverity.Warning,message:Vg(r,o),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}a(jg,"checkDeprecatedProperties");function JT(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(B)[1]];return JT(n,t)}else return e.title?e.title.startsWith(cc.FacetTitlePrefix)?e.title.split(cc.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}a(JT,"getSectionTitle");function $g(e){let t=e.split(`${cc.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}a($g,"getTargetFromCustomColumnRef");function Do(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}a(Do,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var ya=require("@sap-ux/vocabularies-types/vocabularies/UI");function Ug(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}}a(Ug,"replaceSpecialChars");var lc=a(function(e){return Ug(nF(e))},"prepareId");function u5(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}a(u5,"evaluateConcat");function fc(e){var t;if(e!=null&&e.$Path||e!=null&&e.path)return e.$Path||e.path;if(((t=e==null?void 0:e.Apply)==null?void 0:t._attributes.Function)==="odata.concat")return u5(e);if(e&&typeof e=="string")return Ug(e.replace(/ /g,"_"))}a(fc,"getStableIdPartFromValue");var EF=a(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"),va=a(function(e){let t="";if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=EF(e),t;if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=lc(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=fc(e.Value)+"::"),t+=e.Action,lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataField)return t="DataField::",t+=fc(e.Value),lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=fc(e.Value)+"::",t+=EF(e),lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=fc(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),lc(t);if(e.$Type&&e.$Type===ya.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=fc(e.Value),lc(t)},"getStableIdPartFromDataField");var pe=te(se());var ke=te(se());var Ki=require("@sap-ux/vocabularies-types/vocabularies/UI"),SF=require("path"),xF=te(ic());var uc="ResponsiveTableWithMultiSelect<LineItems>",pc="ResponsiveTableWithInlineDelete<LineItems>",Bg="TreeTable<LineItems>",Wg="AnalyticalTable<LineItems>",Gg="GridTable<LineItems>",YT=[uc,pc,Bg,Wg,Gg],bF="template::",Hg="template:::ObjectPageAction:::";function p5(e,t,n){e.definitions[ke.DefinitionName.LineItems]&&(e.definitions[ke.DefinitionName.LineItems].properties.custom={$ref:`${B}${t}`}),e.definitions[t]={type:"array",items:{$ref:`${B}${n}`},description:"Custom Columns"},e.definitions[t][ke.SchemaTag.isViewNode]=!0;let i=e.definitions[n].properties.extensionType;i&&(i[ke.SchemaTag.artifactType]=ke.ArtifactType.Manifest)}a(p5,"addCustomColumnDefinition");function d5(e,t){let n;return e==="TableColumnActionIntentBased"?n=jT(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ft(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Ki.UIAnnotationTypes.DataFieldForAction?n=ft(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ft(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}a(d5,"getActionId");function QT(e,t,n,i,r){let o,s=n.lineItemId===ke.DefinitionName.LineItems?"":"ObjectPage",l=d5(i,n);i==="FooterAction"||i==="FooterActionIntentBased"?(o="Action",i="FooterAction"):i==="TableColumnAction"||i==="TableColumnActionIntentBased"?o="TableColumnAction":(o=s!==""?`${s}${i}`:"Action",i="ToolBarAction");let u=`${s}${i}<${l}>`,p=Ei(n.lineItemRecord,n.entityType);t.properties[l]={$ref:B+u},t.properties[l][ke.SchemaTag.propertyIndex]=r;let{key:d,ns:m}=dc(n.lineItemRecord.Action,!0);e.definitions[o]?(e.definitions[u]={...JSON.parse(JSON.stringify(e.definitions[o])),description:p,keys:[{name:"Action",value:d}],annotationPath:`${n.lineItemPath}/${r}`},m&&(e.definitions[u][ke.SchemaTag.target]=m)):(e.definitions[u]={type:"object",properties:{},description:p,additionalProperties:!1},e.definitions[u][ke.SchemaTag.isViewNode]=!0,e.definitions[u][ke.SchemaTag.keys]=[{name:ke.SchemaKeyName.action,value:d}],m&&(e.definitions[u][ke.SchemaTag.target]=m),e.definitions[u][ke.SchemaTag.annotationPath]=`${n.lineItemPath}/${r}`)}a(QT,"handleActionRecord");function g5(e,t,n){e!==ke.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Ki.UIAnnotationTypes.DataFieldForAction||t.$Type===Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Ki.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}a(g5,"getColumnActionType");function m5(e,t){let n=[];if(!(e.$Type!==Ki.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Ki.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Ki.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Ki.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),g5(t,e,n),n}a(m5,"getActionType");function PF(e,t,n){let i=jT(e.lineItemRecord);if(i){let r=t.definitions[e.lineItemId];r.properties[i]={$ref:B+ke.DefinitionName.TableColumn,description:Ei(e.lineItemRecord,e.entityType)},r.properties[i][ke.SchemaTag.propertyIndex]=n,r.properties[i][ke.SchemaTag.annotationPath]=`${e.lineItemPath}/${n}`,Qg(r.properties[i],e.lineItemRecord),zg(e.lineItemRecord,r.properties,i)}}a(PF,"generateGenericColumn");function h5(e,t,n,i,r,o,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{QT(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{o&&QT(t,o,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{QT(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":PF(i,t,r)}}a(h5,"handleAnyAction");function Al(e,t,n,i,r){i=i||ke.DefinitionName.LineItems;let{actions:o,footerActions:s,lineItemPath:l}=Yg(e,t,n,i);if(t){let u=0;t.forEach(p=>{let d={lineItemPath:l,lineItemRecord:p,lineItemId:i,entityType:n},m=m5(p,i);m?m.forEach(T=>{h5(T,e,o,d,u,s,i)}):PF(d,e,u),u++})}r&&(e.definitions[i].properties.custom={$ref:`${B}${r}`})}a(Al,"addLineItemsType");function y5(e,t,n){var r,o;let i=(o=(r=e.definitions[n])==null?void 0:r.properties)==null?void 0:o.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),[])}}a(y5,"addListReportLeadingProperties");function v5(e,t,n,i){var s,l,u,p,d;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 o=(d=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.quickVariantSelectionX)==null?void 0:d.variants;if(o){let m=[];Object.keys(o).reduce((T,b)=>{let E=o[b]&&o[b].key!==void 0?o[b].key:void 0;return E!==void 0&&!T.includes(E)&&T.push(E),T},m),Ta(m,r)}}a(v5,"addTabkeyEnum");function Kg(e,t,n,i,r){var s,l;if(!t||!n||n.startsWith("${"))return;let o=[];t.forEach(u=>{let p=u.dataSourceUri.split("webapp")[1];if(p&&p.indexOf(".fragment.xml")>0){let d=JSON.parse((0,xF.xml2json)(u.fileContent,{compact:!0}))["core:FragmentDefinition"];if(i==="fragmentName"&&(!d||d.Column||d["table:Column"]||d["table:AnalyticalColumn"])||i==="cellsFragmentName"&&(!d||!d.Column&&!d["table:Column"]&&!d["table:AnalyticalColumn"]&&!d["smartfilterbar:ControlConfiguration"])){p=p.replace(new RegExp("\\"+SF.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");o.push(m)}}}),Ta(o,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}a(Kg,"addFragmentEnum");function Sl(e,t,n,i,r,o=ke.DefinitionName.CustomColumns,s=ke.DefinitionName.CustomColumn,l){p5(e,o,s),y5(e,t,s),v5(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Kg(e,r,u,"fragmentName",s),Kg(e,r,u,"fragmentName",ke.DefinitionName.CustomColumn),Kg(e,r,u,"cellsFragmentName",s),Kg(e,r,u,"cellsFragmentName",ke.DefinitionName.CustomColumn)}a(Sl,"addTableColumnExtensions");function IF(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}a(IF,"removeElementsFromEnum");function Xg(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=eo(n==null?void 0:n.fullyQualifiedName,Ki.UIAnnotationTerms.SelectionFields);if(r&&(i[ke.SchemaTag.annotationPath]=r),!t)return;let o=0;t.forEach(s=>{let l=s.value,u=`SelectionField<${ft(s.value)}>`,p=to(s);s.type==="PropertyPath"&&(l=Ng(s,n)),i.properties[s.value]={$ref:B+u},i.properties[s.value][ke.SchemaTag.propertyIndex]=o,e.definitions[u]={type:"object",description:l,additionalProperties:!1},e.definitions[u][ke.SchemaTag.isViewNode]=!0,e.definitions[u][ke.SchemaTag.annotationType]=s==null?void 0:s.type,e.definitions[u][ke.SchemaTag.dataType]=p,e.definitions[u][ke.SchemaTag.keys]=[{name:ke.SchemaKeyName.value,value:`${s.value}`}],e.definitions[u][ke.SchemaTag.annotationPath]=`${i[ke.SchemaTag.annotationPath]}/${o}`,["Date","DateTime","DateTimeOffset"].includes(p)?e.definitions[u].$ref=`${B}SelectionFieldDateSettings`:e.definitions[u].properties={},o++})}a(Xg,"addSelectionFields");function OF(e,t){for(let n of t.entityProperties)e.push(n.name)}a(OF,"addEntityPropertiesToEnum");function Jg(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)}a(Jg,"isDraftEnabled");function CF(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}a(CF,"isEntityDeletable");function NF(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}a(NF,"isEntityUpdatable");function xl(e,t=!1,n){let i=ke.DefinitionName.HeaderActionsStandard,r=ke.DefinitionName.HeaderActionStandard;t&&(i=ke.DefinitionName.ObjectPageHeaderActions,r=ke.DefinitionName.ObjectPageHeaderActionStandard);let o=e.definitions[i];o[ke.SchemaTag.isViewNode]=!0,o.description="Actions",Object.entries((n||o).properties).forEach(([l,u])=>{let p=u.$ref.split(B)[1],d=`${r}<${p}>`;o.properties[l]={$ref:`${B}${d}`},e.definitions[d]=e.definitions[p],e.definitions[p][ke.SchemaTag.actionType]=ke.ActionType.Standard})}a(xl,"addStandardHeaderActions");function RF(e,t){let n=e.definitions[ke.DefinitionName.ObjectPageFooterActions];for(let i in n.properties){let r=n.properties[i].$ref.split(B)[1],o=`${ke.DefinitionName.ObjectPageFooterActionStandard}<${r}>`;t.properties[i]={$ref:`${B}${o}`},e.definitions[o]=e.definitions[r],e.definitions[r][ke.SchemaTag.actionType]=ke.ActionType.Standard}}a(RF,"addStandardFooterActionsOP");function T5(e,t,n,i){if(e===pe.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===pe.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}}}a(T5,"copyFieldProperties");function E5(e,t,n,i){let r=e===pe.FioriElementsVersion.v2&&t&&t.includes("::")?t.split("::")[0].replace("DataField","Field"):void 0;return e===pe.FioriElementsVersion.v2?`${r}<${n}::${i}>`:`${n}::${i}`}a(E5,"determineFieldDefinitionName");function b5(e,t,n){typeof e.Value!="string"&&e.Value.type==="Path"?(t.definitions[n][pe.SchemaTag.keys]=[{name:"Value",value:e.Value.path}],t.definitions[n][pe.SchemaTag.target]=e.Value.$target?e.Value.$target.fullyQualifiedName.split("/")[0]:e.Value.path):typeof e.Value=="string"&&e.Value&&(t.definitions[n][pe.SchemaTag.keys]=[{name:"Value",value:e.Value}],t.definitions[n][pe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}a(b5,"addKeysTagForDataField");function A5(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)b5(e,t,n);else if(e.$Type===_t.UIAnnotationTypes.DataFieldForAnnotation)t.definitions[n][pe.SchemaTag.keys]=[{name:"Target",value:El(e.Target.value)}],t.definitions[n][pe.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][pe.SchemaTag.keys]=[{name:"Action",value:e.Action}]:(t.definitions[n][pe.SchemaTag.keys]=[{name:"Action",value:e.Action.substring(i+1,e.Action.length)}],t.definitions[n][pe.SchemaTag.target]=e.Action.substring(0,i))}else e.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&(t.definitions[n][pe.SchemaTag.keys]=[{name:pe.SchemaKeyName.semanticObject,value:e.SemanticObject}],e.Action&&t.definitions[n][pe.SchemaTag.keys].push({name:"Action",value:e.Action}),t.definitions[n][pe.SchemaTag.target]=e.fullyQualifiedName.split("@")[0])}a(A5,"addKeysTagToField");function S5(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}a(S5,"isConnectedField");function x5(e,t,n,i,r){let o=n.Target.$target,s={};if(o.$Type===_t.UIAnnotationTypes.ConnectedFieldsType){let u=(o.Template||"").match(/(?<=\{)[^}{]*(?=\})/g)||[],p=o.Data,d=u.length;for(let m in p){let T=p[m];if(typeof T=="object"&&"$Type"in T){let b=u.findIndex(E=>E===m);b===-1&&(b=d,d++),zT(e,t,T,`ConnectedFields::${o.qualifier}`,b.toString(),i,r,void 0,{actions:s,fields:s},o.fullyQualifiedName.split("@")[0])}}}return s}a(x5,"addConnectedFields");function LF(e,t,n){if(n)return n;let i=ft(t);return e.definitions[i].properties}a(LF,"getFieldsSchemaContainer");function zT(e,t,n,i,r,o,s,l=!0,u={},p=o.entityType.fullyQualifiedName){var E;let d=va(n),m=s===pe.FioriElementsVersion.v2&&d&&d.includes("::")?d.split("::").splice(1).join("::"):d,T=E5(s,d,i,m),b={};if(!(!n||!n.$Type)){if(n.$Type===_t.UIAnnotationTypes.DataFieldForAction||n.$Type===_t.UIAnnotationTypes.DataFieldForIntentBasedNavigation){if(l&&e===pe.SectionType.Section){let C=LF(t,`${e}${pe.DefinitionName.Actions}<${i}>`,u.actions),R=C[m]={$ref:`${B}${T}`};R[pe.SchemaTag.propertyIndex]=parseInt(r)}}else{let C=LF(t,`${e}${pe.DefinitionName.Fields}<${i}>`,u.fields);C[m]={$ref:`${B}${T}`,propertyIndex:parseInt(r)},S5(n)&&(b=x5(e,t,n,o,s))}t.definitions[T]={type:"object",properties:b,description:Ei(n,o.entityType),additionalProperties:!1},A5(n,t,T),t.definitions[T][pe.SchemaTag.annotationPath]=`/${p}/${n.fullyQualifiedName.split(p)[1]}`,t.definitions[T][pe.SchemaTag.annotationType]=n.$Type,t.definitions[T][pe.SchemaTag.isViewNode]=!0,Qg(t.definitions[T],n),T5(s,t,n,T),n.$Type===_t.UIAnnotationTypes.DataFieldForAction&&((E=t.definitions)!=null&&E.FormAction)&&(t.definitions[T].$ref=`${B}${pe.DefinitionName.FormAction}`,delete t.definitions[T].properties)}}a(zT,"addField");function P5(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}a(P5,"determineTargetIdOfForm");function I5(e,t,n,i,r,o){if(e.base===pe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&zT(t,n,l,i,s,e,r,o)}else for(let s in e.target.Data){let l=e.target.Data[s];zT(t,n,l,i,s,e,r)}}a(I5,"addFieldsToFormDefinition");function O5(e,t,n){var i,r;if(e.target){let o=e.target.qualifier?`${e.target.term}#${e.target.qualifier}`:`${e.target.term}`;t.definitions[n][pe.SchemaTag.keys]=[{name:pe.SchemaKeyName.target,value:o.replace(/com.sap.vocabularies.UI.v1./g,"")}],t.definitions[n][pe.SchemaTag.target]=(i=e.target.fullyQualifiedName)==null?void 0:i.split("@")[0]}t.definitions[n][pe.SchemaTag.isViewNode]=!0,(r=e.entityType)!=null&&r.name&&(t.definitions[n][pe.SchemaTag.annotationPath]=eo(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}a(O5,"addTagsToFormDefinition");function qg(e,t,n,i,r,o){if(!t.target)return;let s=P5(t),l=ft(`${e}${pe.DefinitionName.Form}<${s}>`),u=ft(`${e}${pe.DefinitionName.Fields}<${s}>`),p=ft(`${e}${pe.DefinitionName.Actions}<${s}>`),d=!(t.base===pe.FacetBase.Identification&&o.indexOf("#")<0);return n.properties.form={$ref:`${B}${l}`},e===pe.SectionType.Section&&d?(i.definitions[l]={type:"object",properties:{actions:{$ref:`${B}${p}`},fields:{$ref:`${B}${u}`}},description:"Form",additionalProperties:!1},i.definitions[p]={type:"object",properties:{},description:"Actions",additionalProperties:!1},i.definitions[p][pe.SchemaTag.isViewNode]=!0):i.definitions[l]={type:"object",properties:{fields:{$ref:`${B}${u}`}},description:"Form",additionalProperties:!1},O5(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][pe.SchemaTag.isViewNode]=!0,I5(t,e,i,s,r,d),s}a(qg,"handleForm");function qT(e,t){let n=e.indexOf(".")>-1?e.split(".")[0]:void 0,i=e;if(n&&t){let r=n.replace("SAP__",""),o=t.references.find(s=>s.alias===r);o&&(i=e.replace(n,o.namespace))}return i}a(qT,"replaceAlias");function Zg(e,t){let n=qT(e.Action,t),i=n,r=n.indexOf("(");r>0&&(i=n.substring(0,r)),r=i.lastIndexOf("/"),r===-1&&(r=i.lastIndexOf("."));let o,s,l;return r>-1?(o=i.substring(r+1),l=i.substring(0,r),s=`${i.substring(0,r)}::${o}`):(o=i,l=e.fullyQualifiedName.split("@")[0],o&&o!==""&&(s=`${l.substring(0,l.length-1)}::${o}`)),{actionName:o,actionId:s,namespace:l}}a(Zg,"getActionNameAndId");function FF(e,t){var n,i;for(let r in e){let o=e[r];return((n=o.component)==null?void 0:n.name)===pe.v2.FE_TEMPLATE_V2_OBJECT_PAGE?((i=t.entitySet)==null?void 0:i.name)===o.entitySet:FF(o.pages,t)}}a(FF,"isFirstObjectPage");function em(e,t,n,i,r){var d,m;e.definitions[pe.DefinitionName.ObjectPageFooter]=JSON.parse(JSON.stringify(e.definitions[`${pe.DefinitionName.ObjectPageFooter}<ObjectPageFooterActions>`])),e.properties.footer={$ref:`${B}${pe.DefinitionName.ObjectPageFooter}`},e.definitions[pe.DefinitionName.ObjectPageFooter].properties[pe.PropertyName.actions]={$ref:`${B}${pe.DefinitionName.FooterActions}`};let o=e.definitions[pe.DefinitionName.FooterActions]={type:"object",properties:{},description:"Actions",additionalProperties:!1};o[pe.SchemaTag.isViewNode]=!0;let s=ai(pe.UIVOCABULARY,t.serviceAVT),l=t.entitySet,u=t.entityType,p=s&&((m=(d=u==null?void 0:u.annotations)==null?void 0:d[s])==null?void 0:m.Identification);if(p){let T=p.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`);o[pe.SchemaTag.annotationPath]=`/${T}`,i(u,e,o,p)}else u&&(o[pe.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`);n===pe.FioriElementsVersion.v2&&FF(r,t)&&!Jg(l)&&RF(e,o),delete e.definitions[pe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${pe.DefinitionName.ObjectPageFooter}<${pe.DefinitionName.ObjectPageFooterActions}>`]}a(em,"addFooterActions");function tm(e,t,n,i,r,o=!1){var m,T;let s=pe.DefinitionName.ObjectPageHeaderActions,l=e.definitions[s];e.definitions[pe.DefinitionName.ObjectPageHeader].properties[pe.PropertyName.actions]={$ref:`${B}${s}`};let u=e.definitions[s]={type:"object",properties:{},description:"Actions",additionalProperties:!1};u[pe.SchemaTag.isViewNode]=!0;let p=ai(pe.UIVOCABULARY,i),d=p&&((T=(m=t==null?void 0:t.annotations)==null?void 0:m[p])==null?void 0:T.Identification);d?u[pe.SchemaTag.annotationPath]="/"+d.fullyQualifiedName.replace(`@${_t.UIAnnotationTerms.Identification}`,`/@${_t.UIAnnotationTerms.Identification}`):t&&(u[pe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.Identification}`),r(t,e,d,u,i,n),o&&xl(e,!0,l)}a(tm,"addHeaderActions");function nm(e,t){e.properties.header={$ref:`${B}${pe.DefinitionName.ObjectPageHeader}`},e.definitions[pe.DefinitionName.ObjectPageHeader]=JSON.parse(JSON.stringify(e.definitions[`${pe.DefinitionName.ObjectPageHeader}`])),t&&(e.definitions[pe.DefinitionName.ObjectPageHeader][pe.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/@${_t.UIAnnotationTerms.HeaderInfo}`)}a(nm,"addCommonHeaderSchema");function _F(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}a(_F,"determineEntitySetOfEntityType");var Xi=require("@sap-ux/vocabularies-types/vocabularies/UI");var qe=te(se());function Ta(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}a(Ta,"addEnumToSchema");function rm(e,t,n){var o;let i=(o=e==null?void 0:e.annotations)==null?void 0:o.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)}}Ta(r,n)}a(rm,"addEnumForValidAnnotations");function qa(e,t,n){let i=t.definitions[n].properties[qe.SchemaTag.annotationPath],r=[Xi.UIAnnotationTerms.SelectionVariant,Xi.UIAnnotationTerms.SelectionPresentationVariant];rm(e,r,i)}a(qa,"addEnumForSingleTabVariant");function DF(e,t,n){var o;let i=(o=e.definitions[t])==null?void 0:o.properties.annotationPath,r=[Xi.UIAnnotationTerms.SelectionVariant,Xi.UIAnnotationTerms.SelectionPresentationVariant];rm(n.entityType,r,i)}a(DF,"addEnumForMultiTabVariant");function wF(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(o=>{r.push(o.name)}),Ta(r,i)}a(wF,"addEnumForVariantEntitySet");function MF(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Xi.UIAnnotationTerms.SelectionVariant];rm(e,r,i)}a(MF,"addEnumForFilterBarAnnotationPath");function VF(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[Xi.UIAnnotationTerms.FieldGroup];rm(e,r,i)}a(VF,"addEnumFieldGroupAnnotationPath");function om(e,t,n,i){let r=n.map(o=>{let s=i.find(p=>!!o[p]),l=o[s],u=o.label||o.title;return{const:l,...u&&{description:u},...o.custom&&{custom:o.custom}}});if(r.length){e.definitions[qe.DefinitionName.RelatedFacetKeys]={type:"string",oneOf:r};for(let o of t){let s=e.definitions[o],l=s.properties.relatedFacet;s.properties.relatedFacet={anyOf:[{...typeof l=="object"?l:void 0,$ref:`${B}${qe.DefinitionName.RelatedFacetKeys}`},l]}}}}a(om,"addDefinitionForRelatedFacetKeys");function Pl(e){return e.replace("#","::")}a(Pl,"getFacetKeyInSchema");function kF(e,t){return`${e}<${Pl(t)}>`}a(kF,"getFacetDefinitionKey");function Dt(e,t,n,i=!0,r){let o=t;if(i&&(o=kF(r||e,t)),e&&e!==o){let s=JSON.parse(JSON.stringify(n.definitions[e]));n.definitions[o]=s}return n.definitions[o]}a(Dt,"parseSchemaDefinition");function im(e,t,n){let i;return t===qe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${Xi.UIAnnotationTerms.LineItem}`?i=`${B}${n}`:(i=`${B}${n}<${t}>`,Dt(n,t,e,!0)),i}a(im,"getCustomExtensionDefinitionName");function Yg(e,t,n,i,r,o){let s;if(e.definitions[i]={type:"object",properties:{},description:"Columns"},e.definitions[i][qe.SchemaTag.isViewNode]=!0,e.definitions[i].additionalProperties=!1,r){let E=im(e,i,r);e.definitions[i].additionalProperties={$ref:E}}let l=i.startsWith(qe.DefinitionName.LineItems)?qe.DefinitionName.ToolBar:qe.DefinitionName.ObjectPageToolBar,u=`${l}<${i}>`;e.definitions[u]=JSON.parse(JSON.stringify(e.definitions[`${l}`]));let p=`${qe.DefinitionName.Actions}<${ft(i)}>`;e.definitions[u].properties.actions.$ref=B+p;let d=i.startsWith(qe.DefinitionName.LineItems)?qe.DefinitionName.Actions:qe.DefinitionName.ObjectPageToolBarActions,m=e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[d]));if(m.properties={},m.additionalProperties=!1,o){let E=im(e,i,o);m.additionalProperties={$ref:E}}let T,b;if(i===qe.DefinitionName.LineItems&&e.properties.footer){b=`${qe.DefinitionName.Footer}<${i}>`,e.properties.footer.$ref=`${B}${b}`,e.definitions[b]=JSON.parse(JSON.stringify(e.definitions[qe.DefinitionName.GenericFooter]));let E=`${qe.DefinitionName.FooterActions}<${ft(i)}>`;e.definitions[b].properties.actions.$ref=B+E,T=e.definitions[E]=JSON.parse(JSON.stringify(e.definitions[qe.DefinitionName.Actions])),T.properties={},T.additionalProperties=!1}return t&&(s=eo(n==null?void 0:n.fullyQualifiedName,t.term,t.qualifier),s&&(e.definitions[u][qe.SchemaTag.annotationPath]=s,T&&(e.definitions[b][qe.SchemaTag.annotationPath]=s))),{actions:m,footerActions:T,lineItemPath:s}}a(Yg,"addCommonLineItemDefinitions");function jF(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}a(jF,"getDataTypeFromAnnotation");function am(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=jF(e.$Type)),t}a(am,"determineDataTypeOfTarget");function to(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=am((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=jF(e.$Type):e.type&&(t=e.type),t}catch{return t}}a(to,"determineDataType");function Qg(e,t){let n=to(t);n&&(e[qe.SchemaTag.dataType]=n)}a(Qg,"addDataTypeToDefinition");function Un(e,t){return`${B}${kF(e,t)}`}a(Un,"getFacetDefinitionLink");function Za(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${B}${i}`}a(Za,"addDefinitionRef");function sm(e){let t;if(e.annotationPath)t=e.annotationPath;else if(e.fullyQualifiedName){let[n,i]=e.fullyQualifiedName.split(`@${qe.UIVOCABULARY}`);t=`/${n}/@${qe.UIVOCABULARY}${i}`}return t}a(sm,"getFacetAnnotationPath");function su(e,t,n,i,r,o,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${o}${e.base}${s}`;n.properties[t]={$ref:Un(o?u:l,t)};let p=Dt(o?u:l,t,i,!0,o?u:void 0);ma(e,p,t),p[qe.SchemaTag.annotationPath]=e.annotationPath,p[qe.SchemaTag.isViewNode]=!0}a(su,"handleAddressContact");function ZT(e,t,n){typeof e=="object"&&(e[t]=n)}a(ZT,"updateSchemaProperty");function Il(e,t,n=ft("")){let i=t.entityProperties.map(o=>o.name),r=e.definitions[`${qe.DefinitionName.Fields4Dialog}${n}`];ZT(r.properties.fields.items,"enum",i)}a(Il,"addFieldsType");function C5(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}a(C5,"findFirstSchemaDefinitionKey");function cm(e,t,n,i){var p;let r=t.description,o=t.keys,s=!t.annotationPath;if(t.$ref){let d=un(t.$ref),m=(p=e.definitions)==null?void 0:p[d];typeof m=="object"&&(s=!m.annotationPath,i!=null&&i.resolveDefinition&&!r&&(r=m.description,o=m.keys))}let l=n,u=C5(o,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}}}a(cm,"getEnumEntry");function es(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=cm(e,u,l,i);r.push(p)}let o=e.definitions[n.definition]||n.schema;if(typeof o=="object")if(n.property){let l=(s=o.properties)==null?void 0:s[n.property];ZT(l,"oneOf",r)}else ZT(o,"oneOf",r)}a(es,"addDescriptiveEnumDefinition");function dc(e,t){let n=e,i;if(n.indexOf("(")>0&&(n=n.substring(0,n.indexOf("("))),t&&n.indexOf(".")>0){let r=n.indexOf("/"),o=n.lastIndexOf(".");i=r>0?n.substring(0,r):n.substring(0,o),n=r>0?n.substring(r+1):n.substring(o+1)}return i||(i=e.substring(0,e.lastIndexOf("."))),{key:n.replace(/@/g,""),ns:i}}a(dc,"getActionKey");function zg(e,t,n){var i,r,o;try{if(e.Value)t[n][qe.SchemaTag.keys]=[{name:qe.SchemaKeyName.value,value:fc(e.Value)}];else if(e.$Type===Xi.UIAnnotationTypes.DataFieldWithAction||e.$Type===Xi.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=dc(e.Action,!0);t[n][qe.SchemaTag.keys]=[{name:qe.SchemaKeyName.action,value:s}],l&&(t[n][qe.SchemaTag.target]=l)}else if(e.$Type===Xi.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=dc(e.Target.value,!1);t[n][qe.SchemaTag.keys]=[{name:qe.SchemaKeyName.target,value:El(s)}],t[n][qe.SchemaTag.target]=(o=(r=(i=e.Target)==null?void 0:i.$target)==null?void 0:r.fullyQualifiedName)==null?void 0:o.split("@")[0]}else if(e.$Type===Xi.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===Xi.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=dc(s,!0);t[n][qe.SchemaTag.keys]=[{name:"SemanticObject",value:e[qe.SchemaKeyName.semanticObject]},{name:"Action",value:l}],u&&(t[n][qe.SchemaTag.target]=u)}}catch{return}}a(zg,"addKeyToDefinition");var Ol=te(se());var $F=[{version:"1.120",distTag:["latest","UI5-1.120","UI5-1.121","UI5-1.122","UI5-1.123","UI5-1.124"]},{version:"1.108",distTag:["UI5-1.108","UI5-1.109","UI5-1.110","UI5-1.111","UI5-1.112","UI5-1.113","UI5-1.114","UI5-1.115","UI5-1.116","UI5-1.117","UI5-1.118","UI5-1.119"]},{version:"1.102",distTag:["UI5-1.100","UI5-1.101","UI5-1.102","UI5-1.103","UI5-1.104","UI5-1.105","UI5-1.106","UI5-1.107"]},{version:"1.96",distTag:["UI5-1.90","UI5-1.91","UI5-1.92","UI5-1.93","UI5-1.94","UI5-1.95","UI5-1.96","UI5-1.97","UI5-1.98","UI5-1.99"]},{version:"1.84",distTag:["UI5-1.78","UI5-1.79","UI5-1.80","UI5-1.81","UI5-1.82","UI5-1.83","UI5-1.84","UI5-1.85","UI5-1.86","UI5-1.87","UI5-1.88","UI5-1.89"]},{version:"1.71",distTag:["UI5-1.52","UI5-1.53","UI5-1.54","UI5-1.55","UI5-1.56","UI5-1.57","UI5-1.58","UI5-1.59","UI5-1.60","UI5-1.61","UI5-1.62","UI5-1.63","UI5-1.64","UI5-1.65","UI5-1.66","UI5-1.67","UI5-1.68","UI5-1.69","UI5-1.70","UI5-1.71","UI5-1.72","UI5-1.73","UI5-1.74","UI5-1.75","UI5-1.76","UI5-1.77"]}];var UF="1.108.23";var ts=class ts{constructor(){ts.distTagsOfSpec.length===0&&(ts.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){ts.distTagsOfSpec=[]}getSpecVersion(){return UF}getDistTagsOfVersion(){let t=[],n=$F,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(o=>o.version.startsWith(i));r&&(t=r.distTag)}return t}doesUi5VersionFitDistTags(t,n){if(process.env.SPEC_NO_VERSION_CHECK==="true")return;if(!t||t.startsWith("$")){let r=ee.t("UNKNOWNMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Ol.LogSeverity.Info,message:r,location:{path:Ol.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(ts.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=ee.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Ol.LogSeverity.Warning,message:r,location:{path:Ol.MANIFESTPATH}})}}};a(ts,"DistTagEvaluator"),ts.distTagsOfSpec=[];var cu=ts;var le=te(se());var mn=te(se());var Fn=te(se());function F5(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}a(F5,"getCustomPageName");function BF(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)||Fn.ViewTypes.XML}a(BF,"getViewType");function _5(e,t){return BF(e,t).toLowerCase()}a(_5,"getViewTypeExtension");function D5(e,t,n){var p,d;let i=a(m=>{var T;return(T=m.split(`${t.id}.`)[1])==null?void 0:T.split(".")},"splitViewPath"),r=t.settings,o=((p=e.view)==null?void 0:p.path)||(r==null?void 0:r.path),s=(d=e.view)==null?void 0:d.name;s!=null&&s.includes(t.id)?n=i(s):o!=null&&o.includes(t.id)&&(n=[...i(o),...s.split(".")]);let[l,u]=[n.slice(0,-1),...n.slice(-1)];return{viewPath:l,fileName:u}}a(D5,"getViewPath");function w5(e,t){let n=e.entitySet||F5(e),{viewPath:i,fileName:r}=D5(e,t,[n]),o=_5(e,t);return[...i,`${r}.view.${o}`].join("/")}a(w5,"getCustomPagePath");var eE=class eE{constructor(t,n,i,r,o,s,l){this.unhandledControllers=[];let u=Nt(Fn.SchemaType.Application);this.app={$schema:u.path,id:t["sap.app"].id,pages:r,home:i,target:{fioriElements:o,odata:o===Fn.FioriElementsVersion.v2?Fn.OdataVersion.v2:Fn.OdataVersion.v4},...s&&{settings:s}},this.schemas=n,this.logger=l}createConfigFiles(){let t={},n={},i;for(let o in this.app.pages){i=this.app.pages[o];let s=this.app.target.odata===Fn.OdataVersion.v4?o:i.entitySet,l=this.getPageConfigFile(i,s);l&&(t[`${Fn.DirName.Pages}/${o}.json`]=l)}let r=JSON.parse(JSON.stringify(this.app));for(let o in r.pages)delete r.pages[o].config;return n[Fn.FileName.App]=r,{appConfig:n,pageConfigs:t}}getPageConfigFile(t,n){var o;let i,r=BF(t,this.app)===Fn.ViewTypes.XML&&!!t.config;if(t.pageType===Fn.PageTypeV4.CustomPage||t.pageType===Fn.PageTypeV4.FPMCustomPage&&!r){let{path:s}=Nt(t.pageType);i={$schema:s}}else if(t.config){i=t.config;let s="view"in t?(o=t.view)==null?void 0:o.id:void 0,l=Nt(t.pageType,n,s);if(this.schemas[l.filename])i.$schema=l.path;else{let u=Nt(t.pageType);i.$schema=u.path}}return(i&&t.pageType===Fn.PageTypeV4.CustomPage||t.pageType===Fn.PageTypeV4.FPMCustomPage)&&this.applyCustomPageFilePath(t,i),i}applyCustomPageFilePath(t,n){let i=w5(t,this.app);n.$filePath=i}};a(eE,"AppProvider");var ns=eE;var We=te(se());var gc=te(se());function lm(e,t,n){if(t.controlType.endsWith(gc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===gc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[gc.DefinitionName.TableColumn]).properties[t.propertyId])return;let r=t.controlId.split("-"),s=r[r.length-1].split("template:::TableColumn:::"),l=s[s.length-1].replace(/sSmartTableId.+?:::/,"").replace("::com.sap.vocabularies",gc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}a(lm,"addFlexForTable");var Cl=te(se());var Bn=a((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),WF=a((e,t)=>{let n=e,i=t.split("/");for(let r of i){if(!n[r])return;n=n&&n[r]}return n||{}},"getManifestSectionByPathV2"),GF=a((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 tE(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}a(tE,"getNewPageTemplate");function M5(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}a(M5,"findPageInManifest");function V5(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=tE(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:tE(e[t].pageType)}),!Array.isArray(n.pages))){let i=M5(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=tE(e[t].pageType)),nE(t,e,i)}}a(V5,"transformPageFromAssociation");function k5(e,t,n){e.pages&&Object.keys(e.pages).forEach(i=>{var o;let r=e.pages[i];if(((o=r.component)==null?void 0:o.name)===Cl.v2.FE_TEMPLATE_V2_OBJECT_PAGE){let s=`ObjectPage_${r.entitySet}`;t[s]||delete e.pages[i]}}),(n.pageType===Cl.PageTypeV2.ListReport||n.pageType===Cl.PageTypeV2.AnalyticalListPage)&&Object.keys(n.navigation).length===0&&delete e.pages}a(k5,"deletePage");function nE(e,t,n){let i=t[e];if(i&&(i.entitySet&&(n.entitySet=i.entitySet),i.pageType===Cl.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)V5(t,r,n);Array.isArray(n.pages)||k5(n,t,i)}}a(nE,"transformPageToNewManifestV2");var C0=te(ic());var kb={};ec(kb,{ALPAnalyticalTable:()=>WE,ALPGridTable:()=>BE,ALPResponsiveTable:()=>UE,Action:()=>XE,AnalyticalCard:()=>_l,AnalyticalCardSettings:()=>dm,AnalyticalCardSettingsv4:()=>cE,AnalyticalListPageFilterBar:()=>yE,AnalyticalTable:()=>$E,BaseCustomSection:()=>Vu,ChartSettings:()=>ub,ChartSettingsType:()=>rE,CommonCardSettings:()=>as,CommonFilterBar:()=>Tu,CommonTableSettings:()=>us,CommonTableSettingsForSections:()=>Ic,CreateWithFilters:()=>_E,CustomCard:()=>aE,DataLoadSettings:()=>wE,DateRange:()=>dE,DefaultDateRange:()=>gE,DefaultSpanObject:()=>oE,FRAGMENT_DEFINITION:()=>jo,Field:()=>pE,FieldForAction:()=>AE,Fields4Dialog:()=>ME,Fields4DialogOP:()=>Fb,FooterAction:()=>YE,FormAction:()=>bE,GlobalChartSettings:()=>Rb,GlobalTableSettings:()=>Mb,GridTable:()=>GE,HeaderActionStandard:()=>eb,KPISettings:()=>pb,LinkListCardSettings:()=>fE,LinklistCard:()=>hu,ListCard:()=>Fl,ListCardSettings:()=>sE,ListReportFilterBar:()=>vE,MultiEdit:()=>DE,ObjectPageAnalyticalTable:()=>_b,ObjectPageChart:()=>Nb,ObjectPageCustomSectionFragment:()=>ku,ObjectPageCustomSectionView:()=>ju,ObjectPageFooterAction:()=>mb,ObjectPageFooterActionStandard:()=>nb,ObjectPageGridTable:()=>Db,ObjectPageHeader:()=>db,ObjectPageHeaderAction:()=>gb,ObjectPageHeaderActionStandard:()=>tb,ObjectPageLayout:()=>yb,ObjectPageResponsiveTable:()=>Oc,ObjectPageSectionAddressV2:()=>Ab,ObjectPageSectionChartV2:()=>Eb,ObjectPageSectionContactV2:()=>Sb,ObjectPageSectionFormV2:()=>Tb,ObjectPageSectionTableV2:()=>bb,ObjectPageSectionV2:()=>vb,ObjectPageSubSectionChartV2:()=>Ib,ObjectPageSubSectionContactV2:()=>Ob,ObjectPageSubSectionFormV2:()=>Pb,ObjectPageSubSectionTableV2:()=>Cb,ObjectPageSubSectionV2:()=>xb,ObjectPageToolBarAction:()=>Vb,ObjectPageTreeTable:()=>wb,QuickVariantSelection:()=>VE,QuickVariantSelectionOP:()=>Lb,QuickVariantSelectionX:()=>kE,ResponsiveTable:()=>yc,SAP_UI_TABLE:()=>Em,SaveAndEditOP:()=>ZE,SelectionFieldDateSettings:()=>mE,SelectionFields:()=>hE,Share:()=>QE,ShareOP:()=>zE,StackCard:()=>mu,StackCardSettings:()=>lE,TableALP:()=>kl,TableCard:()=>Dl,TableCardSettings:()=>uE,TableColumn:()=>ob,TableColumnAction:()=>Um,TableColumnActionIntentBased:()=>ab,TableCustomColumn:()=>sb,ToolBar:()=>lb,ToolBarAction:()=>JE,TreeTable:()=>jE,UpAndDownNavigationOP:()=>qE,buildIntentBasedActionId:()=>ib,deleteColumnFromFragment:()=>Sm,deleteType:()=>$l,exportCreateParametersFields:()=>Lm,exportCustomColumnsToFragment:()=>LE,exportDateSettingsField:()=>zF,exportDefaultSpan:()=>JF,exportType:()=>jl,getChartSectionControlId:()=>S0,getContactSubSectionControlId:()=>P0,getCustomColumnPath:()=>xm,getFormSectionControlId:()=>A0,getRootCustomColumnFromFragmentJSON:()=>Au,getSectionControlId:()=>Pc,getSmartChartControlId:()=>Lu,getSmartTableControlId:()=>fs,getSubSectionControlId:()=>x0,getTableSectionControlId:()=>b0,importCreateParameters:()=>Rm,importDateSettings:()=>TE});var qn=te(se());var Me=a(e=>`${qn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),io=a(e=>Me(e)+"/tableSettings","getTableSettingPathV2"),HF=a(e=>Me(e)+"/chartSettings","getChartSettingPathV2"),KF=a(e=>Me(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var gn=a(()=>qn.ManifestSection.ovp,"getOVPsettingPath"),Pe=a(e=>{let t=[qn.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in qn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var mc=a((e,t)=>`${qn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),pm=a(e=>{let t=[qn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ji=a(e=>{let t=[];return t.push(pm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),wo=a(e=>Ji(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ro=a((e,t,n)=>{let i=[];i.push(pm(e));let r=n.replace(qn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),wr=a((e,t,n)=>ro(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),XF=a((e,t,n)=>ro(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),iE=a(()=>`sap.ui5/extends/extensions/${qn.v2.SAPUI5_VIEW_EXTENSION}/${qn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ea=a((e,t,n,...i)=>{let r="|",o=n.split(r),s=e[e.length-1].split(r),l="";o.length===4?l=[o[2],o[3]].join(r):o.length===3&&(l=o[2]);let u=[o[0],s[s.length-1],l].join(r);return i.unshift(u),`${iE()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),um=class um{};a(um,"ApplicationV2"),y([Ft("settings")],um.prototype,"settings",2);var fm=um,no=class no{};a(no,"AppSettings"),y([v({manifest:{path:()=>"sap.app"}})],no.prototype,"title",2),y([v({manifest:{path:()=>"sap.app"}})],no.prototype,"description",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.50.0"})],no.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.46.0"})],no.prototype,"forceGlobalRefresh",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.74.0"})],no.prototype,"tableColumnVerticalAlignment",2),y([v({manifest:{path:()=>"sap.ui5"}}),I({since:"1.56.0"})],no.prototype,"flexEnabled",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.96.0"})],no.prototype,"draftDiscardConfirmationSettings",2),y([v({manifest:{path:()=>qn.GENERICAPPSETTINGS}}),I({since:"1.96.0"})],no.prototype,"statePreservationMode",2);var is=no;function JF(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}a(JF,"exportDefaultSpan");var gm=class gm{};a(gm,"ChartSettingsType"),y([v({manifest:{path:()=>gn()+"/chartSettings"}})],gm.prototype,"showDataLabel",2);var rE=gm,rs=class rs{};a(rs,"DefaultSpanObject"),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"cols",2),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"rows",2),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"showOnlyHeader",2),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"minimumTitleRow",2),y([v({manifest:{path:t=>Pe(t)}})],rs.prototype,"minimumSubTitleRow",2);var oE=rs,$t=class $t{};a($t,"CommonCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"entitySet",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"title",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"subTitle",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"annotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"dataPointAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"selectionPresentationAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"kpiAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"category",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"dynamicSubtitleAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"valueSelectionInfo",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"showFilterInHeader",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"sortBy",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"sortOrder",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"identificationAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"selectionAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"presentationAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"enableLocaleCurrencyFormatting",2),y([v({manifest:{path:t=>Pe(t),export:JF}})],$t.prototype,"defaultSpan",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"requireAppAuthorization",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"showSortingInHeader",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"tabs",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"addODataSelect",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"showRefresh",2),y([v({manifest:{path:t=>Pe(t)}})],$t.prototype,"customParams",2);var as=$t,Nl=class Nl{};a(Nl,"CustomCard"),y([v({manifest:{path:t=>Pe(t)}})],Nl.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],Nl.prototype,"template",2),y([v({manifest:{path:t=>Pe(t)}})],Nl.prototype,"settings",2);var aE=Nl,os=class os extends as{};a(os,"ListCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"showLineItemDetail",2),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"imageSupported",2),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"enableAddToInsights",2),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"listFlavor",2),y([v({manifest:{path:t=>Pe(t)}})],os.prototype,"listType",2);var sE=os,lu=class lu{};a(lu,"ListCard"),y([v({manifest:{path:t=>Pe(t)}})],lu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],lu.prototype,"template",2);var Fl=lu,Mo=class Mo extends as{};a(Mo,"AnalyticalCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"chartAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"ignoreSapText",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"enableAddToInsights",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"navigation",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"valueSelectionInfo",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"chartProperties",2),y([v({manifest:{path:t=>Pe(t)}})],Mo.prototype,"colorPalette",2);var dm=Mo,mm=class mm extends dm{};a(mm,"AnalyticalCardSettingsv4"),y([v({manifest:{path:t=>Pe(t)}})],mm.prototype,"measureAggregate",2);var cE=mm,fu=class fu{};a(fu,"AnalyticalCard"),y([v({manifest:{path:t=>Pe(t)}})],fu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],fu.prototype,"template",2);var _l=fu,Rl=class Rl extends as{};a(Rl,"StackCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"itemText",2),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"objectStreamCardsNavigationProperty",2),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"objectStreamCardsSettings",2);var lE=Rl,uu=class uu{};a(uu,"StackCard"),y([v({manifest:{path:t=>Pe(t)}})],uu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],uu.prototype,"template",2);var mu=uu,Ll=class Ll extends as{};a(Ll,"LinkListCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"listFlavor",2),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"headerAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"staticContent",2);var fE=Ll,pu=class pu{};a(pu,"LinklistCard"),y([v({manifest:{path:t=>Pe(t)}})],pu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],pu.prototype,"template",2);var hu=pu,du=class du extends as{};a(du,"TableCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],du.prototype,"showLineItemDetail",2),y([v({manifest:{path:t=>Pe(t)}})],du.prototype,"enableAddToInsights",2);var uE=du,gu=class gu{};a(gu,"TableCard"),y([v({manifest:{path:t=>Pe(t)}})],gu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],gu.prototype,"template",2);var Dl=gu;var YF=te(se());var j5=a((e,t,n,i,r)=>{let o=Yn(n[1],r),s=n.slice(-1)[0];return Gt(e,[o,s,"GroupElement"])},"getSmartFieldControlId"),hm=class hm{};a(hm,"Field"),y([v({flex:{controlId:j5,controlType:()=>YF.ControlType.GroupElement,createFlexChange:Te},generate:dt})],hm.prototype,"visible",2);var pE=hm;var hc=te(se());function TE(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}a(TE,"importDateSettings");function $5(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((o,s)=>{r[s]=o,o.equals&&typeof o.equals=="string"&&(r[s].equals=o.equals.split(","))})),r}a($5,"importDateSettingsField");function zF(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 o=i[r];e[n][r]=o,o.equals&&Array.isArray(o.equals)&&(e[n][r].equals=o.equals.join())}}a(zF,"exportDateSettingsField");var wl=class wl{};a(wl,"DateRange"),y([v({manifest:{path:t=>Me(t)+hc.DATESETTINGSPATH}}),I({since:"1.77.0"})],wl.prototype,"useDateRange",2),y([v({manifest:{path:t=>Me(t)+hc.DATESETTINGSPATH,import:TE,export:_g}}),I({since:"1.77.0"})],wl.prototype,"selectedValues",2),y([v({manifest:{path:t=>Me(t)+hc.DATESETTINGSPATH}}),I({since:"1.77.0"})],wl.prototype,"exclude",2);var dE=wl,ym={controlId:Gt,controlType:()=>hc.ControlType.SmartFilterBar,createFlexChange:Te},yu={path:(e,t,n)=>`${Me(e)}${hc.DATESETTINGSPATH}/fields/${n}`},QF={...yu,import:$5,export:zF},vm=class vm{};a(vm,"DefaultDateRange"),y([v({manifest:yu}),I({since:"1.90.0"})],vm.prototype,"operation",2);var gE=vm,ss=class ss{};a(ss,"SelectionFieldDateSettings"),y([v({manifest:QF}),I({since:"1.77.0"})],ss.prototype,"selectedValues",2),y([v({manifest:yu}),I({since:"1.77.0"})],ss.prototype,"exclude",2),y([v({manifest:yu}),I({since:"1.77.0"})],ss.prototype,"customDateRangeImplementation",2),y([v({manifest:QF}),I({since:"1.77.0"})],ss.prototype,"filter",2),y([v({manifest:yu}),I({since:"1.90.0"})],ss.prototype,"defaultValue",2);var mE=ss,EE=class EE{};a(EE,"SelectionFields");var hE=EE,oo=class oo{};a(oo,"CommonFilterBar"),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.38.0"})],oo.prototype,"smartVariantManagement",2),y([v({flex:ym}),I({since:"1.40.0"})],oo.prototype,"liveMode",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.48.0"})],oo.prototype,"variantManagementHidden",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.52.0"})],oo.prototype,"subTitleIfVariantMgmtHidden",2),y([v({manifest:{path:t=>Me(t)+"/filterSettings",import:TE}}),I({since:"1.77.0"})],oo.prototype,"dateSettings",2),y([v({flex:ym}),I({since:"1.28.0"})],oo.prototype,"showClearOnFB",2),y([v({flex:ym}),I({since:"1.38.0"})],oo.prototype,"showFilterConfiguration",2),y([v({flex:ym}),I({since:"1.28.0"})],oo.prototype,"showRestoreOnFB",2);var Tu=oo,vu=class vu extends Tu{};a(vu,"AnalyticalListPageFilterBar"),y([v({manifest:{path:t=>Me(t)}})],vu.prototype,"showGoButtonOnFilterBar",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.60.0"})],vu.prototype,"filterDefaultsFromSelectionVariant",2);var yE=vu,Tm=class Tm extends Tu{};a(Tm,"ListReportFilterBar"),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.86.0"})],Tm.prototype,"annotationPath",2);var vE=Tm;var SE=te(se());var U5=a((e,t,n,i,r)=>{if(i()===SE.ControlType.Button){let o=n[n.length-1],s=Yn(n[1],r);return`${e}action::${o}::${s}::FormAction`}return Gt(e,t)},"getFormActionButtonId"),Vo={controlId:U5,controlType:()=>SE.ControlType.Button,createFlexChange:Te},cs=class cs{};a(cs,"FormAction"),y([v({flex:Vo,generate:dt})],cs.prototype,"visible",2),y([v({flex:Vo})],cs.prototype,"tooltip",2),y([v({flex:Vo})],cs.prototype,"icon",2),y([v({flex:Vo})],cs.prototype,"activeIcon",2),y([v({flex:Vo})],cs.prototype,"type",2);var bE=cs,ls=class ls{};a(ls,"FieldForAction"),y([v({flex:Vo,generate:dt})],ls.prototype,"visible",2),y([v({flex:Vo})],ls.prototype,"tooltip",2),y([v({flex:Vo})],ls.prototype,"icon",2),y([v({flex:Vo})],ls.prototype,"activeIcon",2),y([v({flex:Vo}),I({since:"1.73.0"})],ls.prototype,"type",2);var AE=ls;var Yt=te(se()),ao=te(ic());var IE=require("path"),o8=te(se()),u0=te(f0()),p0=require("fs");var a8=(0,IE.join)(__dirname,"templates");var s8=a((e,t)=>{let n=(0,p0.readFileSync)(e,"utf8");return(0,u0.render)(n,t)},"renderTemplate");var OE=a((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 s8((0,IE.join)(a8,t+".xml"),n)},"getSingleColumnContent"),CE=a((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=OE(i,t);n=n+`
|
|
290
290
|
`+r}return n+`
|
|
291
291
|
</core:FragmentDefinition>`},"getColumnFragmentContent"),NE=a(e=>{let t='<core:FragmentDefinition xmlns:core="sap.ui.core" xmlns="sap.m">';return e&&e.forEach(()=>{t=t+`
|
|
292
292
|
<Text text="Placeholder"></Text>`}),t+`
|
|
293
|
-
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var bm=require("path");var jo="core:FragmentDefinition",Em="sap.ui.table",RE=new Map([[Yt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Yt.ViewTemplateType.TreeTableColumnsExtension,{namespace:Em,name:"Column"}],[Yt.ViewTemplateType.GridTableColumnsExtension,{namespace:Em,name:"Column"}],[Yt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Em,name:"AnalyticalColumn"}]]),c8=new Map([[Yt.v2.FE_TEMPLATE_V2_LIST_REPORT,Yt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Yt.v2.FE_TEMPLATE_V2_ALP,Yt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Yt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Yt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),g0={type:"element",name:"Text",attributes:{text:"Placeholder"}},l8=JSON.stringify(g0);function f8(e,t){let n=t?e[jo]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let o=i.get(n[r]);i.set(n[r],o?[...o,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}a(f8,"getFragmentNamespaces");function d0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}a(d0,"getTagName");function Am(e,t,n=e){let i=f8(n,!!(t||n!==e));if(t){let r=RE.get(t);return d0(r,i.get(r.namespace))}else{let r=RE.keys();for(let o of r){let s=RE.get(o),l=i?d0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}a(Am,"getTagNameFromFragmentJSON");function Au(e,t=e){let n=Am(e,void 0,t);return e[n]}a(Au,"getRootCustomColumnFromFragmentJSON");function u8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let o=e[t][r];!n.includes(r)&&o!==void 0&&o.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${o.toString()}"`)}return i+="}",i}a(u8,"addP13nData");function m0(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,o=JSON.parse(r.substr(1,r.length)),s=t.findIndex(d=>d.columnKey===o.columnKey);return s<0?!1:(n=!0,r=u8(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)}a(m0,"handleFragmentColumn");function p8(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),o=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Yt.FRAGMENTNAMEPART+o;for(let u of t){let p=u.dataSourceUri.split(bm.sep);if(p[p.length-1]===l){let d=JSON.parse((0,ao.xml2json)(u.fileContent,{compact:!0})),m=Am(d[jo]);m&&(delete d[jo][m],u.fileContent=(0,ao.json2xml)(JSON.stringify(d),{compact:!0,spaces:4}));break}}}a(p8,"deleteColumnsFromFragment");function h0(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===l8&&(e.splice(n,1),t-=1,t===0));n++);}a(h0,"deleteNumberOfCells");function d8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),o=r[r.length-1]+Yt.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(o)){let l=JSON.parse((0,ao.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&h0(l.elements[0].elements,u.length),s.fileContent=(0,ao.json2xml)(JSON.stringify(l),{spaces:4});break}}a(d8,"deleteCellsFromFragment");function Sm(e,t,n,i){if(i){p8(e,i,t,n);let r=t.replace(Yt.ViewTemplateType.ResponsiveTableColumnsExtension,Yt.ViewTemplateType.ResponsiveTableCellsExtension),o=e[r];o&&d8(o,i,n)}}a(Sm,"deleteColumnFromFragment");function g8(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(g0)}a(g8,"addNewColumnsInFragment");function m8(e,t){let n=JSON.parse((0,ao.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)g8(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,o=n.elements[0].elements;h0(o,r)}e.fileContent=(0,ao.json2xml)(JSON.stringify(n),{spaces:4})}}a(m8,"updateNonEmptyCellsFragment");function h8(e,t,n){let i=!1;for(let r of e){let o=r.dataSourceUri.split(bm.sep);if(o[o.length-1]===t){i=!0,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=NE(n):m8(r,n);break}}return i}a(h8,"updateCellsFragment");function y8(e,t,n,i,r){var d;let o,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:Yt.LogSeverity.Error,message:ee.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}u.fragmentName=m.fragmentName,u.className=m.className,o=((d=m.fragmentName)==null?void 0:d.replace(i,"<root>/webapp").replace(/[.]/g,bm.sep))+Yt.FRAGMENTNAMEPART+p}if(e.indexOf(Yt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){let m=e.replace(Yt.ViewTemplateType.ResponsiveTableColumnsExtension,Yt.ViewTemplateType.ResponsiveTableCellsExtension),T=Bn(l,m),b=n.reduce((E,C)=>C.cellsFragmentName?C:E);b&&b.cellsFragmentName?(T.fragmentName=s=b.cellsFragmentName,T.className=n[0].className,T.type=p.toUpperCase()):GF(l,m)}return{manifestSection:u,lsFilePath:o,cellsFragmentName:s,fragmentType:p}}a(y8,"exportCustomColumnsToManifest");function v8(e,t,n,i,r){let o=OE(e,t);if(o){let s=JSON.parse((0,ao.xml2json)(o,{compact:!0})),l=Au(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}a(v8,"insertNewColumnInFragment");function T8(e,t){let n=[];for(let i=0;i<e.length;i++)m0(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}a(T8,"processCustomColumnInArray");function E8(e,t,n){if(e){if(Array.isArray(e))T8(e,t);else if(!m0(e,t)){let r=Am(n[jo]);r&&(delete n[jo][r],e=void 0)}}return e}a(E8,"maintainExistingColumnInFragment");function b8(e,t,n,i,r){for(let o of e)if(o.fragmentName.endsWith(t)){let s=e.indexOf(o);n=v8(o,i,n,r,s)}return n}a(b8,"insertNewColumnsInFragment");function A8(e,t,n,i,r){let o=!1;if(!e)return o;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(o=!0,!s.fileContent||s.fileContent.length===0)s.fileContent=CE(i,r);else{let u=JSON.parse((0,ao.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Au(u[jo]),l=E8(l,i,u),l=b8(i,n,l,r,u);let d=Am(u,r);u[jo][d]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ao.json2xml)(m,{compact:!0,spaces:4}))}break}return o}a(A8,"updateColumnsInFragment");function LE(e,t,n,i,r,o){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:d}=y8(t,e,n,i,o),m=JSON.parse(JSON.stringify(n)),T=l.fragmentName,b=T.substr(i.length+1),E=b.split(".");T=E[E.length-1]+Yt.FRAGMENTNAMEPART+d;let R=p==null?void 0:p.split("."),L=R?R[R.length-1]:null,F=L?L+Yt.FRAGMENTNAMEPART+d:null,U=A8(s,T,b,m,r),J=!1;if(p?J=h8(s,F,n):J=!0,!U){let re={fileContent:CE(m,r),dataSourceUri:u};e.fragments.push(re)}if(!J){let re={fileContent:NE(n),dataSourceUri:u.replace(T,F)};e.fragments.push(re)}}a(LE,"exportCustomColumnsToFragment");var xm=a((e,t,n,i)=>{var u,p,d,m;let r=c8.get((u=e.component)==null?void 0:u.name);if(!i){let T=(m=(d=(p=e.component)==null?void 0:p.settings)==null?void 0:d.tableSettings)==null?void 0:m.type;T||(T="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(T="AnalyticalTable"),i=T+"ColumnsExtension"}let o=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:o}},"getCustomColumnPath");var Zn=te(se());var FE="/multiEdit",fs=a((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Zn.PropertyName.table:Gt(e,t),"getSmartTableControlId");function Rm(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}a(Rm,"importCreateParameters");function Lm(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(o=>r[o]=e[n][o]||{path:o}),e[n]=r}a(Lm,"exportCreateParametersFields");function S8(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let o in i)r.indexOf(o)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[o]=i[o],delete i[o]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}a(S8,"exportVariants");function x8(e,t){t.variants&&(Object.keys(t.variants).length>0?S8(e,t):delete e.variants)}a(x8,"exportQuickVariantSelectionX");function P8(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}a(P8,"importMultiEdit");var Pm=class Pm{};a(Pm,"CreateWithFilters"),y([v({manifest:{path:t=>Me(t)+"/createWithFilters"}})],Pm.prototype,"strategy",2);var _E=Pm,Ml=class Ml{};a(Ml,"MultiEdit"),y([v({manifest:{path:t=>io(t)+FE}})],Ml.prototype,"enabled",2),y([v({manifest:{path:t=>io(t)+FE}})],Ml.prototype,"annotationPath",2),y([v({manifest:{path:t=>io(t)+FE,export:_g}})],Ml.prototype,"ignoredFields",2);var DE=Ml;function Pu(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}a(Pu,"importType");function jl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}a(jl,"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}a($l,"deleteType");var Im=class Im{};a(Im,"DataLoadSettings"),y([v({manifest:{path:t=>KF(t)}}),I({since:"1.75.2"})],Im.prototype,"loadDataOnAppLaunch",2);var wE=Im,Om=class Om{};a(Om,"Fields4Dialog"),y([v({manifest:{path:t=>io(t)+"/createWithParameterDialog",export:Lm}}),I({since:"1.77.0"})],Om.prototype,"fields",2);var ME=Om,Su=class Su{};a(Su,"QuickVariantSelection"),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATH}}),I({since:"1.48.0"})],Su.prototype,"showCounts",2),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATH}}),I({since:"1.48.0"})],Su.prototype,"variants",2);var VE=Su,Vl=class Vl{};a(Vl,"QuickVariantSelectionX"),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATHX}}),I({since:"1.48.0"})],Vl.prototype,"showCounts",2),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATHX}}),I({since:"1.48.0"})],Vl.prototype,"enableAutoBinding",2),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATHX,export:x8}}),I({since:"1.48.0"})],Vl.prototype,"variants",2);var kE=Vl,si=class si{constructor(){this.getDeprecated=()=>({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"}}})}};a(si,"CommonTableSettings"),y([v({manifest:{key:"createWithParameterDialog",path:t=>io(t),import:Rm}}),I({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:Gt,controlType:()=>Zn.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.38.0"})],si.prototype,"showTablePersonalisation",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.26.0"})],si.prototype,"useExportToExcel",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.50.0"})],si.prototype,"exportType",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.SmartTable,createFlexChange:Te}})],si.prototype,"fitContainer",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.48.0"})],si.prototype,"quickVariantSelection",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.48.0"})],si.prototype,"quickVariantSelectionX",2),y([v({manifest:{path:t=>io(t)}}),I({since:"1.38.0"})],si.prototype,"multiSelect",2),y([v({manifest:{path:t=>io(t)}}),I({since:"1.70.0"})],si.prototype,"selectAll",2),y([v({manifest:{path:t=>io(t)}}),I({since:"1.70.0"})],si.prototype,"selectionLimit",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.75.2"})],si.prototype,"dataLoadSettings",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.42.0"})],si.prototype,"condensedTableLayout",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.56.0"})],si.prototype,"enableTableFilterInPageVariant",2),y([Ft("toolBar")],si.prototype,"toolBar",2);var us=si,$o=class $o extends us{};a($o,"ResponsiveTable"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],$o.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.54.0"})],$o.prototype,"createWithFilters",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.Table,createFlexChange:Te},generate:Qn}),I({since:"1.52.0"})],$o.prototype,"popinLayout",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.Table,createFlexChange:Te}})],$o.prototype,"includeItemInSelection",2),y([v({manifest:{path:t=>io(t)}}),I({since:"1.77.0"})],$o.prototype,"inlineDelete",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.Table,createFlexChange:Te}}),I({since:"1.16.0"})],$o.prototype,"growingThreshold",2),y([v({manifest:{path:t=>io(t),import:P8}}),I({since:"1.98.0"})],$o.prototype,"multiEdit",2);var hc=$o,Cm=class Cm extends us{};a(Cm,"TreeTable"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],Cm.prototype,"type",2);var jE=Cm,so=class so extends us{};a(so,"AnalyticalTable"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],so.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}})],so.prototype,"qualifier",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.38.0"}),v({manifest:{path:t=>Me(t)}})],so.prototype,"defaultContentView",2),y([v({manifest:{path:t=>Me(t)}})],so.prototype,"defaultFilterMode",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.60.0"})],so.prototype,"contentTitle",2),y([v({manifest:{path:t=>Me(t)}})],so.prototype,"autoHide",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.78.0"})],so.prototype,"allFiltersAsInParameters",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.54.0"})],so.prototype,"createWithFilters",2);var $E=so,Uo=class Uo extends us{};a(Uo,"TableALP"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],Uo.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}})],Uo.prototype,"qualifier",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.38.0"}),v({manifest:{path:t=>Me(t)}})],Uo.prototype,"defaultContentView",2),y([v({manifest:{path:t=>Me(t)}})],Uo.prototype,"defaultFilterMode",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.60.0"})],Uo.prototype,"contentTitle",2),y([v({manifest:{path:t=>Me(t)}})],Uo.prototype,"autoHide",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.78.0"})],Uo.prototype,"allFiltersAsInParameters",2);var kl=Uo,Nm=class Nm extends kl{};a(Nm,"ALPResponsiveTable"),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.Table,createFlexChange:Te}}),I({since:"1.16.0"})],Nm.prototype,"growingThreshold",2);var UE=Nm,HE=class HE extends kl{};a(HE,"ALPGridTable");var BE=HE,KE=class KE extends kl{};a(KE,"ALPAnalyticalTable");var WE=KE,xu=class xu extends us{};a(xu,"GridTable"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],xu.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.54.0"})],xu.prototype,"createWithFilters",2);var GE=xu;var Iu=te(se());var I8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${Wi(i).replace(":2f","::")}`},"getActionButtonId"),O8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}template::${i}`},"getStandardActionButtonId"),C8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}${Hg}${i}`},"getStandardFooterActionOPButtonId"),ib=a((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Gi(n);return`${e}action::${i}::${Wi(r)}`},"buildIntentBasedActionId"),N8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${Wi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ps={controlId:I8,controlType:()=>Iu.ControlType.Button,createFlexChange:Te},Ou={controlId:O8,controlType:()=>Iu.ControlType.Button,createFlexChange:Te},y0={controlId:C8,controlType:()=>Iu.ControlType.Button,createFlexChange:Te},Fm={controlId:N8,controlType:()=>Iu.ControlType.Button,createFlexChange:Te},yc=class yc{};a(yc,"Action"),y([v({flex:ps})],yc.prototype,"tooltip",2),y([v({flex:ps})],yc.prototype,"icon",2),y([v({flex:ps})],yc.prototype,"activeIcon",2),y([v({flex:ps})],yc.prototype,"type",2);var XE=yc,vc=class vc{};a(vc,"ToolBarAction"),y([v({flex:ps})],vc.prototype,"tooltip",2),y([v({flex:ps})],vc.prototype,"icon",2),y([v({flex:ps})],vc.prototype,"activeIcon",2),y([v({flex:ps})],vc.prototype,"type",2);var JE=vc,Tc=class Tc{};a(Tc,"FooterAction"),y([v({flex:Fm})],Tc.prototype,"tooltip",2),y([v({flex:Fm})],Tc.prototype,"icon",2),y([v({flex:Fm})],Tc.prototype,"activeIcon",2),y([v({flex:Fm})],Tc.prototype,"type",2);var YE=Tc,_m=class _m{};a(_m,"Share"),y([v({flex:Ou})],_m.prototype,"visible",2);var QE=_m,Dm=class Dm{};a(Dm,"ShareOP"),y([v({flex:Ou})],Dm.prototype,"visible",2);var zE=Dm,wm=class wm{};a(wm,"UpAndDownNavigationOP"),y([v({flex:Ou})],wm.prototype,"visible",2);var qE=wm,Mm=class Mm{};a(Mm,"SaveAndEditOP"),y([v({flex:y0,generate:dt})],Mm.prototype,"visible",2);var ZE=Mm,Vm=class Vm{};a(Vm,"HeaderActionStandard"),y([v({flex:Ou})],Vm.prototype,"visible",2);var eb=Vm,km=class km{};a(km,"ObjectPageHeaderActionStandard"),y([v({flex:Ou})],km.prototype,"visible",2);var tb=km,jm=class jm{};a(jm,"ObjectPageFooterActionStandard"),y([v({flex:y0})],jm.prototype,"visible",2);var nb=jm;var Ru=te(se());var R8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o}=Gi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${o}`},"buildColumnActionId"),L8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o,semanticObjectId:s}=Gi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${o}`},"buildColumnIntentBasedId"),F8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),rb={controlId:R8,controlType:()=>Ru.ControlType.TableColumn,createFlexChange:Te},Cu={controlId:F8,controlType:()=>Ru.ControlType.Button,createFlexChange:Te},v0={...rb,controlId:L8},$m={...Cu,controlId:ib},Nu=class Nu{};a(Nu,"TableColumn"),y([v({flex:{controlId:KT,controlType:()=>Ru.ControlType.TableColumn,createFlexChange:Te}})],Nu.prototype,"width",2),y([v({flex:{controlId:KT,controlType:()=>Ru.ControlType.TableColumn,createFlexChange:Te},generate:Qn})],Nu.prototype,"hAlign",2);var ob=Nu,ba=class ba{};a(ba,"TableColumnAction"),y([v({flex:rb})],ba.prototype,"width",2),y([v({flex:rb,generate:Qn})],ba.prototype,"hAlign",2),y([v({flex:Cu})],ba.prototype,"tooltip",2),y([v({flex:Cu})],ba.prototype,"icon",2),y([v({flex:Cu})],ba.prototype,"activeIcon",2),y([v({flex:Cu})],ba.prototype,"type",2);var Um=ba,Aa=class Aa extends Um{};a(Aa,"TableColumnActionIntentBased"),y([v({flex:v0})],Aa.prototype,"width",2),y([v({flex:v0,generate:Qn})],Aa.prototype,"hAlign",2),y([v({flex:$m})],Aa.prototype,"tooltip",2),y([v({flex:$m})],Aa.prototype,"icon",2),y([v({flex:$m})],Aa.prototype,"activeIcon",2),y([v({flex:$m})],Aa.prototype,"type",2);var ab=Aa,cb=class cb{};a(cb,"TableCustomColumn");var sb=cb;var fb=class fb{};a(fb,"ToolBar");var lb=fb;var Ec=te(se());var Lu=a(e=>e+Ec.PropertyName.chart,"getSmartChartControlId"),ds=class ds{};a(ds,"ChartSettings"),y([v({flex:{controlId:Lu,controlType:()=>Ec.ControlType.SmartChart,createFlexChange:Te}})],ds.prototype,"showLegendButton",2),y([v({flex:{controlId:Lu,controlType:()=>Ec.ControlType.SmartChart,createFlexChange:Te}})],ds.prototype,"showDownloadButton",2),y([v({flex:{controlId:Lu,controlType:()=>Ec.ControlType.SmartChart,createFlexChange:Te}})],ds.prototype,"showChartTypeSelectionButton",2),y([v({flex:{controlId:Lu,controlType:()=>Ec.ControlType.SmartChart,exportFlexValue:(t,n,i)=>{t.content.newValue=n[i].join()},importFlexValue:(t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},createFlexChange:Te}})],ds.prototype,"ignoredChartTypes",2),y([v({manifest:{path:t=>HF(t)}}),I({since:"1.81.0"})],ds.prototype,"showDataLabel",2);var ub=ds;var Sa=class Sa{};a(Sa,"KPISettings"),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Sa.prototype,"model",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Sa.prototype,"entitySet",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Sa.prototype,"qualifier",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Sa.prototype,"filterable",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Sa.prototype,"detailNavigation",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Sa.prototype,"groupId",2);var pb=Sa;var T0=te(se());var _8=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Gt(e,n)},"getAvatarControlId"),bc=class bc{};a(bc,"ObjectPageHeader"),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.46.0"})],bc.prototype,"showRelatedApps",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.46.0"})],bc.prototype,"editableHeaderContent",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.48.0"})],bc.prototype,"simpleHeaderFacets",2),y([v({flex:{controlId:_8,controlType:()=>T0.ControlType.Avatar,createFlexChange:Te},generate:dt})],bc.prototype,"displayShape",2);var db=bc;var Bm=te(se());var D8=a((e,t,n,i)=>{if(i()===Bm.ControlType.Button||i()===Bm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Wi(r)}`}return Gt(e,t)},"getActionButtonId"),Fu={controlId:D8,controlType:()=>Bm.ControlType.HeaderAction,createFlexChange:Te},gs=class gs{};a(gs,"ObjectPageHeaderAction"),y([v({flex:Fu,generate:dt})],gs.prototype,"visible",2),y([v({flex:Fu})],gs.prototype,"tooltip",2),y([v({flex:Fu})],gs.prototype,"icon",2),y([v({flex:Fu})],gs.prototype,"activeIcon",2),y([v({flex:Fu})],gs.prototype,"type",2);var gb=gs;var hb=te(se());var w8=a((e,t,n,i)=>{if(i()===hb.ControlType.Button){let{actionId:r}=Gi(n);return`${e}action::${Wi(r)}::Determining`}return Gt(e,t)},"getFooterActionButtonId"),_u={controlId:w8,controlType:()=>hb.ControlType.Button,createFlexChange:Te},ms=class ms{};a(ms,"ObjectPageFooterAction"),y([v({flex:_u,generate:dt})],ms.prototype,"visible",2),y([v({flex:_u})],ms.prototype,"tooltip",2),y([v({flex:_u})],ms.prototype,"icon",2),y([v({flex:_u})],ms.prototype,"activeIcon",2),y([v({flex:_u})],ms.prototype,"type",2);var mb=ms;var Du=te(se());var Wm=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Gt(e,n)},"getControlId"),Ac=class Ac{};a(Ac,"ObjectPageLayout"),y([v({flex:{controlId:Wm,controlType:()=>Du.ControlType.ObjectPageLayout,createFlexChange:Te},generate:dt})],Ac.prototype,"showHeaderContent",2),y([v({flex:{controlId:Wm,controlType:()=>Du.ControlType.ObjectPageLayout,createFlexChange:Te}})],Ac.prototype,"showAnchorBar",2),y([v({flex:{controlId:Wm,controlType:()=>Du.ControlType.ObjectPageLayout,createFlexChange:Te}})],Ac.prototype,"useIconTabBar",2),y([v({flex:{controlId:Wm,controlType:()=>Du.ControlType.ObjectPageLayout,createFlexChange:Te}}),I({since:"1.34.0"})],Ac.prototype,"alwaysShowContentHeader",2);var yb=Ac;var E0=te(se());var Sc=class Sc{};a(Sc,"BaseCustomSection"),y([v({manifest:{path:Ea,export:!1,import:(t,n)=>n.split("|")[2]}}),I({since:"1.52.0"})],Sc.prototype,"relatedFacet",2),y([v({manifest:{path:Ea,export:!1,import:(t,n)=>n.split("|")[0]}}),I({since:"1.52.0"})],Sc.prototype,"relativePosition",2),y([v({manifest:{path:(t,n,i)=>Ea(t,{},i,E0.ManifestSection.generic)}}),I({since:"1.52.0"})],Sc.prototype,"title",2),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],Sc.prototype,"className",2);var Vu=Sc,wu=class wu extends Vu{};a(wu,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],wu.prototype,"fragmentName",2),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],wu.prototype,"type",2);var ku=wu,Mu=class Mu extends Vu{};a(Mu,"ObjectPageCustomSectionView"),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],Mu.prototype,"viewName",2),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],Mu.prototype,"type",2);var ju=Mu;var Yi=te(se());var b0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),Yi.DefinitionName.Table];return Gt(e,s)},"getTableSectionControlId"),A0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"FormGroup"];return Gt(e,s)},"getFormSectionControlId"),S0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"Chart"];return Gt(e,s)},"getChartSectionControlId"),xc=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"Section"];return Gt(e,s)},"getSectionControlId"),x0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"SubSection"];return Gt(e,s)},"getSubSectionControlId"),P0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"ContactsList"];return Gt(e,s)},"getContactSubSectionControlId"),Gm=class Gm{};a(Gm,"ObjectPageSectionV2"),y([v({flex:{controlId:xc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Gm.prototype,"visible",2);var vb=Gm,Hm=class Hm{};a(Hm,"ObjectPageSectionFormV2"),y([v({flex:{controlId:xc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Hm.prototype,"visible",2);var Tb=Hm,Km=class Km{};a(Km,"ObjectPageSectionChartV2"),y([v({flex:{controlId:xc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Km.prototype,"visible",2);var Eb=Km,Xm=class Xm{};a(Xm,"ObjectPageSectionTableV2"),y([v({flex:{controlId:xc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Xm.prototype,"visible",2);var bb=Xm,Jm=class Jm{};a(Jm,"ObjectPageSectionAddressV2"),y([v({flex:{controlId:xc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Jm.prototype,"visible",2);var Ab=Jm,Ym=class Ym{};a(Ym,"ObjectPageSectionContactV2"),y([v({flex:{controlId:xc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Ym.prototype,"visible",2);var Sb=Ym,Qm=class Qm{};a(Qm,"ObjectPageSubSectionV2"),y([v({flex:{controlId:x0,controlType:()=>Yi.ControlType.SubSection,createFlexChange:Te},generate:dt})],Qm.prototype,"visible",2);var xb=Qm,zm=class zm{};a(zm,"ObjectPageSubSectionFormV2"),y([v({flex:{controlId:A0,controlType:()=>Yi.ControlType.Group,createFlexChange:Te},generate:dt})],zm.prototype,"visible",2);var Pb=zm,qm=class qm{};a(qm,"ObjectPageSubSectionChartV2"),y([v({flex:{controlId:S0,controlType:()=>Yi.ControlType.SmartChart,createFlexChange:Te},generate:dt})],qm.prototype,"visible",2);var Ib=qm,Zm=class Zm{};a(Zm,"ObjectPageSubSectionContactV2"),y([v({flex:{controlId:P0,controlType:()=>Yi.ControlType.SubSection,createFlexChange:Te},generate:dt})],Zm.prototype,"visible",2);var Ob=Zm,eh=class eh{};a(eh,"ObjectPageSubSectionTableV2"),y([v({flex:{controlId:b0,controlType:()=>Yi.ControlType.SmartTable,createFlexChange:Te},generate:dt})],eh.prototype,"visible",2);var Cb=eh;var th=class th{};a(th,"ObjectPageChart"),y([v({manifest:{path:XF}}),I({since:"1.78.0"})],th.prototype,"variantManagement",2);var Nb=th,nh=class nh{};a(nh,"GlobalChartSettings"),y([v({manifest:{path:t=>Ji(t)+"/chartSettings"}}),I({since:"1.78.0"})],nh.prototype,"variantManagement",2);var Rb=nh;var Vr=te(se());var Ul=a((e,t,n,i,r)=>{let o=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Vr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),o.push(s),o[0]=Yn(o[0],r),Gt(e,o)},"getSmartTableControlId"),$u=class $u{};a($u,"QuickVariantSelectionOP"),y([v({manifest:{path:(t,n,i)=>ro(t,n,i)+Vr.QUICKVARPATH}}),I({since:"1.48.0"})],$u.prototype,"showCounts",2),y([v({manifest:{path:(t,n,i)=>ro(t,n,i)+Vr.QUICKVARPATH}}),I({since:"1.48.0"})],$u.prototype,"variants",2);var Lb=$u,ih=class ih{};a(ih,"Fields4DialogOP"),y([v({manifest:{path:(t,n,i)=>wr(t,n,i)+"/createWithParameterDialog",export:Lm}}),I({since:"1.77.0"})],ih.prototype,"fields",2);var Fb=ih,Ci=class Ci{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};a(Ci,"CommonTableSettingsForSections"),y([v({manifest:{key:"createWithParameterDialog",path:wr,import:Rm}}),I({since:"1.77.0"})],Ci.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.28.0"})],Ci.prototype,"editable",2),y([v({manifest:{path:wr}}),I({since:"1.54.0"})],Ci.prototype,"multiSelect",2),y([v({manifest:{path:wr}}),I({since:"1.70.0"})],Ci.prototype,"selectAll",2),y([v({manifest:{path:wr}}),I({since:"1.70.0"})],Ci.prototype,"selectionLimit",2),y([v({manifest:{path:ro}}),I({since:"1.63.0"})],Ci.prototype,"quickVariantSelection",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.26.0"})],Ci.prototype,"useExportToExcel",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.50.0"})],Ci.prototype,"exportType",2),y([v({manifest:{path:ro}}),I({since:"1.48.5"})],Ci.prototype,"createMode",2),y([v({manifest:{path:ro}}),I({since:"1.61.0"})],Ci.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:wr}}),I({since:"1.78.0"})],Ci.prototype,"variantManagement",2),y([Ft("toolBar")],Ci.prototype,"toolBar",2);var Pc=Ci,hs=class hs extends Pc{};a(hs,"ObjectPageResponsiveTable"),y([v({manifest:{path:wr}})],hs.prototype,"type",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.Table,createFlexChange:Te}})],hs.prototype,"includeItemInSelection",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.Table,createFlexChange:Te},generate:dt}),I({since:"1.52.0"})],hs.prototype,"popinLayout",2),y([v({manifest:{path:wr}}),I({since:"1.77.0"})],hs.prototype,"inlineDelete",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.Table,createFlexChange:Te}}),I({since:"1.16.0"})],hs.prototype,"growingThreshold",2);var Ic=hs,Uu=class Uu extends Pc{};a(Uu,"ObjectPageAnalyticalTable"),y([v({manifest:{path:wr}})],Uu.prototype,"type",2),y([v({manifest:{path:ro}}),I({since:"1.67.0"})],Uu.prototype,"condensedTableLayout",2);var _b=Uu,Bu=class Bu extends Pc{};a(Bu,"ObjectPageGridTable"),y([v({manifest:{path:wr}})],Bu.prototype,"type",2),y([v({manifest:{path:ro}}),I({since:"1.67.0"})],Bu.prototype,"condensedTableLayout",2);var Db=Bu,Wu=class Wu extends Pc{};a(Wu,"ObjectPageTreeTable"),y([v({manifest:{path:wr}})],Wu.prototype,"type",2),y([v({manifest:{path:ro}}),I({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var wb=Wu,Mr=class Mr{};a(Mr,"GlobalTableSettings"),y([v({manifest:{path:wo}}),I({since:"1.70.0"})],Mr.prototype,"selectAll",2),y([v({manifest:{path:wo}}),I({since:"1.70.0"})],Mr.prototype,"selectionLimit",2),y([v({manifest:{path:wo}}),I({since:"1.48.5"})],Mr.prototype,"createMode",2),y([v({manifest:{path:wo}}),I({since:"1.61.0"})],Mr.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:wo}}),I({since:"1.78.0"})],Mr.prototype,"variantManagement",2),y([v({manifest:{path:wo}})],Mr.prototype,"type",2),y([v({manifest:{path:wo}}),I({since:"1.54.0"})],Mr.prototype,"multiSelect",2),y([v({manifest:{path:wo}}),I({since:"1.67.0"})],Mr.prototype,"condensedTableLayout",2),y([v({manifest:{path:wo}}),I({since:"1.77.0"})],Mr.prototype,"inlineDelete",2);var Mb=Mr;var I0=te(se());var M8=a((e,t,n,i,r)=>{let{actionId:o}=Gi(n),s=Yn(n[1],r);return`${e}${s}::action::${Wi(o).replace(":2f","::")}`},"getActionButtonId"),Gu={controlId:M8,controlType:()=>I0.ControlType.Button,createFlexChange:Te},ys=class ys{};a(ys,"ObjectPageToolBarAction"),y([v({flex:Gu,generate:dt})],ys.prototype,"visible",2),y([v({flex:Gu})],ys.prototype,"tooltip",2),y([v({flex:Gu})],ys.prototype,"icon",2),y([v({flex:Gu})],ys.prototype,"activeIcon",2),y([v({flex:Gu})],ys.prototype,"type",2);var Vb=ys;function vs(e){return e.replace("/","::")}a(vs,"convertActionKey");function jb(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}a(jb,"convertSelector");function V8(e,t,n,i){var o,s,l,u;(((s=(o=i.definitions)==null?void 0:o.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)}a(V8,"addSmartFilterBarFlex");function k8(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 o=Wi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=o.indexOf(":::");if(o.startsWith("DataField")&&s>-1){let u=o.split(":::"),p=u.find(T=>T.startsWith("sSemanticObject")),d=u.find(T=>T.startsWith("sAction")),m=d.split("sAction::")[1].replace(":2f","::");if(p){let T=`${p.split("::")[1]}::${m}`,b=`${u[0]}:::${p}:::${d}`;i.set(T,r),i.set(r,b)}else i.set(m,r),i.set(r,o)}else i.set(o.replace(":2f","::"),r),i.set(r,o)}),i}a(k8,"filterActions");function j8(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}a(j8,"addColumnActionConfigPart");function $8(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]}a($8,"getActionId");function U8(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=k8(s.name,i);if(l.has(s.id)){let d=l.get(s.id),m=(u=d.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&j8(s,e,m);let T=s.configPart[m];((p=i.definitions[d])==null?void 0:p.properties[t])&&T&&(T[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}a(U8,"addActionFlex");function B8(e,t,n,i){var o;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[We.PropertyName.chart],t);(o=s==null?void 0:s.flex)!=null&&o.importFlexValue?s.flex.importFlexValue(n,e[We.PropertyName.chart],t):e[We.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}a(B8,"addSmartChartFlex");function W8(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===We.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(We.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(We.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTableWithMultiSelect":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===We.ControlType.TableColumn)&&lm(e.table,i,n)}a(W8,"addAdditionalFlexChanges");function rh(e,t,n,i){var r,o;try{let s=za(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(We.PageTypeV2.ListReport)||(o=s.controlId)!=null&&o.includes(We.PageTypeV2.AnalyticalListPage))switch(s.controlId=jb(s.controlId),s.controlType){case We.ControlType.SmartFilterBar:{V8(e,l,s,n);break}case We.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case We.ControlType.Button:{let u=$8(s);u&&U8(e,l,s,n,u);break}case We.ControlType.SmartChart:{B8(e,l,s,n);break}default:{W8(e,s,n);break}}}catch(s){oe(i,{severity:We.LogSeverity.Error,message:ee.t("FLEXERROR")},...s)}}a(rh,"addFlex");function G8(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}}}a(G8,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,o){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 d=p.manifest.path([i],t,o);s=Bn(t,d),El(p,s,u,e),jg(l,s,d,r)}G8(u,e)}}a(_n,"transferSettingsOfObject");function oh(e,t){var r,o,s,l,u,p,d,m,T;let n=e[We.ManifestSection.generic].pages[t],i=We.v2.TableTypeV2.ResponsiveTable;return(r=e[We.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(o=e[We.ManifestSection.generic].pages[t].component.settings)==null?void 0:o.tableSettings)!=null&&s.type||(l=e[We.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((d=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:d.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=We.v2.TableTypeV2.AnalyticalTable),i}a(oh,"determineTableType");function O0(e,t,n,i,r,o,s){if(e.customData||e["table:customData"]){let l=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,u=JSON.parse(l.substr(1,l.length)),p=e.Text&&e.Text._attributes&&e.Text._attributes.text;p||(p=e.Label&&e.Label._attributes&&e.Label._attributes.text);let d={id:e._attributes&&e._attributes.id,text:p,...u,columnKey:u.columnKey,columnIndex:u.columnIndex!==void 0?Number(u.columnIndex):void 0,leadingProperty:u.leadingProperty,className:t[n].className,fragmentName:t[n].fragmentName,tabKey:i,extensionType:o};s&&(d.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(d)}}a(O0,"evaluateFragmentColumn");function H8(e,t,n,i){let r;if(e===We.ViewTemplateType.ResponsiveTableColumnsExtension)for(let o of Object.keys(t)){let[s,l,u]=o.split("|");s===We.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[o].fragmentName)}return r}a(H8,"determineCellsFragmentName");function K8(e,t,n,i,r,o,s){var l;if(e[0]){let p=JSON.parse((0,C0.xml2json)(e[0].fileContent,{compact:!0}))[jo],d=Au(p);if(d)if((l=t[We.PropertyName.table])!=null&&l.columns||(t[We.PropertyName.table].columns={}),Array.isArray(d))for(let m of d)O0(m,n,i,r,t,o,s);else O0(d,n,i,r,t,o,s)}}a(K8,"analyzeFilteredFragments");function X8(e,t,n,i,r){for(let o of Object.keys(e)){let s=o.split("|"),[l,u]=s,p=s[2],d=n&&p===n.key?void 0:p,m=We.ViewTemplateType[l];if(m&&"|"+u===t){let T=e[o].type?e[o].type.toLowerCase():"xml",b=e[o].fragmentName;if(!b)continue;let E=H8(m,e,u,p),C=b.split(".");b=C[C.length-1]+We.FRAGMENTNAMEPART+T;let R=r.filter(L=>L.dataSourceUri.endsWith(b));K8(R,i,e,o,d,m,E)}}}a(X8,"processViewExtensions");function Bl(e,t,n,i,r,o){if(!r)return;let s="|"+(o&&o.target?o.target:n.entitySet);if(t[We.ManifestSection.ui5]&&t[We.ManifestSection.ui5].extends&&t[We.ManifestSection.ui5].extends.extensions&&t[We.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=We.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t[We.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!u)return;X8(u,s,o,e,r)}}a(Bl,"addFragments");function ah(e,t,n){if(e.header={actions:{}},n[We.DefinitionName.HeaderActionsStandard]){let i=n[We.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(We.PageTypeV2.ListReport,r,{})}}a(ah,"importHeaderActions");var Ut=te(se());var R0=te(se());var $b={};ec($b,{ANNOERR:()=>lK,ANNOTATIONFILE:()=>fK,COMPONENTNOTDEFINED:()=>uK,CONTEXTPATHCOULDNOTBERESOLVED:()=>oK,ENTITYSETNOTFOUND:()=>rK,FLEXERROR:()=>vK,INVALIDANCHOR:()=>TK,INVALIDTARGETDEFINITION:()=>bK,MACROS_ANNOTATION_ERROR:()=>xK,NOALP:()=>sK,NOBASEPATH:()=>Q8,NOENTITYSET:()=>tK,NOENTITYTYPE4SET:()=>nK,NOFE:()=>q8,NOFRAGMENT:()=>EK,NOGENERICSCHEMA:()=>Z8,NOID4SECTION:()=>AK,NOLINEITEMS:()=>dK,NOLR:()=>aK,NOPAGEFORENTITYSET:()=>eK,NOPAGES:()=>z8,NOPRESENTATIONVARIANT:()=>iK,NOROUTING:()=>pK,NOROUTINGID:()=>yK,NOTARGET:()=>hK,NOTARGETS:()=>mK,NOTEMPLATE:()=>cK,NOVISUALIZATIONS:()=>gK,UNKNOWNMINUI5VERSION:()=>Y8,WRONGMINUI5VERSION:()=>J8,XMLPARSEFAILURE:()=>SK,default:()=>PK});var J8="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",Y8="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",Q8="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",z8="No pages found in manifest for app with id '{{- appId}}'",q8="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",Z8="No generic schema found while generating page schema for {{- pageType}}",eK="No page found in manifest for entitySet '{{- entitySet}}'",tK="No entitySet defined for page '{{- pageName}}'",nK="No entityType could be found for the given entity set '{{- entitySetName}}'",iK="No PresentationVariant defined for '{{- key}}'",rK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",oK="Either entitySet '{{- entitySet}}' or contextPath '{{- contextPath}}' was incorrectly specified in manifest, as this entity set or contextPath could not be found in metadata",aK="No page found in manifest for list report",sK="No page found in manifest for analytical list page",cK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",lK="Error while parsing annotation files",fK="Annotation file: '{{- file}}'",uK="Component name is not defined for page '{{- pageName}}'",pK="Incomplete manifest definition: no routing defined",dK="UI.LineItem annotation has not been defined",gK="Empty Collection for Visualizations",mK="Incomplete manifest definition: no targets defined",hK="Invalid reference: annotation target '{{- target}}' not found",yK="No page found in manifest for routingId '{{- routingId}}'",vK="Error while parsing flex change",TK="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",EK="fragmentName is undefined for columnKey '{{- columnKey}}'",bK="Invalid routing target definition in manifest: '{{- target}}'",AK="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",SK="Parsing of XML file failed with error - {{- error}}",xK="Error during resolving annotation for '{{- control}}'",PK={WRONGMINUI5VERSION:J8,UNKNOWNMINUI5VERSION:Y8,NOBASEPATH:Q8,NOPAGES:z8,NOFE:q8,NOGENERICSCHEMA:Z8,NOPAGEFORENTITYSET:eK,NOENTITYSET:tK,NOENTITYTYPE4SET:nK,NOPRESENTATIONVARIANT:iK,ENTITYSETNOTFOUND:rK,CONTEXTPATHCOULDNOTBERESOLVED:oK,NOLR:aK,NOALP:sK,NOTEMPLATE:cK,ANNOERR:lK,ANNOTATIONFILE:fK,COMPONENTNOTDEFINED:uK,NOROUTING:pK,NOLINEITEMS:dK,NOVISUALIZATIONS:gK,NOTARGETS:mK,NOTARGET:hK,NOROUTINGID:yK,FLEXERROR:vK,INVALIDANCHOR:TK,NOFRAGMENT:EK,INVALIDTARGETDEFINITION:bK,NOID4SECTION:AK,XMLPARSEFAILURE:SK,MACROS_ANNOTATION_ERROR:xK};function N0(e){e.addResourceBundle(e.language,"translation",$b)}a(N0,"initI18n");function Qt(e="en"){ee.init({resources:{en:{translation:R0.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var bm=require("path");var jo="core:FragmentDefinition",Em="sap.ui.table",RE=new Map([[Yt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Yt.ViewTemplateType.TreeTableColumnsExtension,{namespace:Em,name:"Column"}],[Yt.ViewTemplateType.GridTableColumnsExtension,{namespace:Em,name:"Column"}],[Yt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:Em,name:"AnalyticalColumn"}]]),c8=new Map([[Yt.v2.FE_TEMPLATE_V2_LIST_REPORT,Yt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Yt.v2.FE_TEMPLATE_V2_ALP,Yt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Yt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Yt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),g0={type:"element",name:"Text",attributes:{text:"Placeholder"}},l8=JSON.stringify(g0);function f8(e,t){let n=t?e[jo]._attributes:e._attributes;if(n){let i=new Map;return Object.keys(n).filter(r=>r.startsWith("xmlns")).forEach(r=>{let o=i.get(n[r]);i.set(n[r],o?[...o,r.split(":")[1]||r]:[r.split(":")[1]||r])}),i}}a(f8,"getFragmentNamespaces");function d0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}a(d0,"getTagName");function Am(e,t,n=e){let i=f8(n,!!(t||n!==e));if(t){let r=RE.get(t);return d0(r,i.get(r.namespace))}else{let r=RE.keys();for(let o of r){let s=RE.get(o),l=i?d0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}a(Am,"getTagNameFromFragmentJSON");function Au(e,t=e){let n=Am(e,void 0,t);return e[n]}a(Au,"getRootCustomColumnFromFragmentJSON");function u8(e,t){let n=["id","text","className","fragmentName","tabKey","extensionType","cellsFragmentName"],i="\\{";for(let r in e[t]){let o=e[t][r];!n.includes(r)&&o!==void 0&&o.length!==0&&(i!=="\\{"&&(i+=", "),i+=`"${r}": "${o.toString()}"`)}return i+="}",i}a(u8,"addP13nData");function m0(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,o=JSON.parse(r.substr(1,r.length)),s=t.findIndex(d=>d.columnKey===o.columnKey);return s<0?!1:(n=!0,r=u8(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)}a(m0,"handleFragmentColumn");function p8(e,t,n,i){let r=e[n].fragmentName.substr(i.length+1),o=e.type?e.type.toLowerCase():"xml",s=r.split("."),l=s[s.length-1]+Yt.FRAGMENTNAMEPART+o;for(let u of t){let p=u.dataSourceUri.split(bm.sep);if(p[p.length-1]===l){let d=JSON.parse((0,ao.xml2json)(u.fileContent,{compact:!0})),m=Am(d[jo]);m&&(delete d[jo][m],u.fileContent=(0,ao.json2xml)(JSON.stringify(d),{compact:!0,spaces:4}));break}}}a(p8,"deleteColumnsFromFragment");function h0(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===l8&&(e.splice(n,1),t-=1,t===0));n++);}a(h0,"deleteNumberOfCells");function d8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),o=r[r.length-1]+Yt.FRAGMENTNAMEPART+i;for(let s of t)if(s.dataSourceUri.endsWith(o)){let l=JSON.parse((0,ao.xml2json)(s.fileContent)),u=l.elements[0].elements&&l.elements[0].elements.filter(p=>p.type==="element");u&&h0(l.elements[0].elements,u.length),s.fileContent=(0,ao.json2xml)(JSON.stringify(l),{spaces:4});break}}a(d8,"deleteCellsFromFragment");function Sm(e,t,n,i){if(i){p8(e,i,t,n);let r=t.replace(Yt.ViewTemplateType.ResponsiveTableColumnsExtension,Yt.ViewTemplateType.ResponsiveTableCellsExtension),o=e[r];o&&d8(o,i,n)}}a(Sm,"deleteColumnFromFragment");function g8(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(g0)}a(g8,"addNewColumnsInFragment");function m8(e,t){let n=JSON.parse((0,ao.xml2json)(e.fileContent)),i=n.elements[0].elements&&n.elements[0].elements.filter(r=>r.type==="element");if(!i||Object.keys(i).length!==Object.keys(t).length){if(!i||Object.keys(i).length<Object.keys(t).length)g8(i,n,t);else if(Object.keys(i).length>Object.keys(t).length){let r=Object.keys(i).length-Object.keys(t).length,o=n.elements[0].elements;h0(o,r)}e.fileContent=(0,ao.json2xml)(JSON.stringify(n),{spaces:4})}}a(m8,"updateNonEmptyCellsFragment");function h8(e,t,n){let i=!1;for(let r of e){let o=r.dataSourceUri.split(bm.sep);if(o[o.length-1]===t){i=!0,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=NE(n):m8(r,n);break}}return i}a(h8,"updateCellsFragment");function y8(e,t,n,i,r){var d;let o,s,l=t.manifest,u=Bn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:Yt.LogSeverity.Error,message:ee.t("NOFRAGMENT",{columnKey:m.columnKey})});continue}u.fragmentName=m.fragmentName,u.className=m.className,o=((d=m.fragmentName)==null?void 0:d.replace(i,"<root>/webapp").replace(/[.]/g,bm.sep))+Yt.FRAGMENTNAMEPART+p}if(e.indexOf(Yt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){let m=e.replace(Yt.ViewTemplateType.ResponsiveTableColumnsExtension,Yt.ViewTemplateType.ResponsiveTableCellsExtension),T=Bn(l,m),b=n.reduce((E,C)=>C.cellsFragmentName?C:E);b&&b.cellsFragmentName?(T.fragmentName=s=b.cellsFragmentName,T.className=n[0].className,T.type=p.toUpperCase()):GF(l,m)}return{manifestSection:u,lsFilePath:o,cellsFragmentName:s,fragmentType:p}}a(y8,"exportCustomColumnsToManifest");function v8(e,t,n,i,r){let o=OE(e,t);if(o){let s=JSON.parse((0,ao.xml2json)(o,{compact:!0})),l=Au(s,i);if(Array.isArray(n))n.some(p=>JSON.stringify(p)===JSON.stringify(l))||n.push(l);else if(n){let u=[n];u.splice(r,0,l),n=u}else n=[l]}return n}a(v8,"insertNewColumnInFragment");function T8(e,t){let n=[];for(let i=0;i<e.length;i++)m0(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}a(T8,"processCustomColumnInArray");function E8(e,t,n){if(e){if(Array.isArray(e))T8(e,t);else if(!m0(e,t)){let r=Am(n[jo]);r&&(delete n[jo][r],e=void 0)}}return e}a(E8,"maintainExistingColumnInFragment");function b8(e,t,n,i,r){for(let o of e)if(o.fragmentName.endsWith(t)){let s=e.indexOf(o);n=v8(o,i,n,r,s)}return n}a(b8,"insertNewColumnsInFragment");function A8(e,t,n,i,r){let o=!1;if(!e)return o;for(let s of e)if(s.dataSourceUri.endsWith(t)){let l={};if(o=!0,!s.fileContent||s.fileContent.length===0)s.fileContent=CE(i,r);else{let u=JSON.parse((0,ao.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Au(u[jo]),l=E8(l,i,u),l=b8(i,n,l,r,u);let d=Am(u,r);u[jo][d]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ao.json2xml)(m,{compact:!0,spaces:4}))}break}return o}a(A8,"updateColumnsInFragment");function LE(e,t,n,i,r,o){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:d}=y8(t,e,n,i,o),m=JSON.parse(JSON.stringify(n)),T=l.fragmentName,b=T.substr(i.length+1),E=b.split(".");T=E[E.length-1]+Yt.FRAGMENTNAMEPART+d;let R=p==null?void 0:p.split("."),L=R?R[R.length-1]:null,F=L?L+Yt.FRAGMENTNAMEPART+d:null,U=A8(s,T,b,m,r),J=!1;if(p?J=h8(s,F,n):J=!0,!U){let re={fileContent:CE(m,r),dataSourceUri:u};e.fragments.push(re)}if(!J){let re={fileContent:NE(n),dataSourceUri:u.replace(T,F)};e.fragments.push(re)}}a(LE,"exportCustomColumnsToFragment");var xm=a((e,t,n,i)=>{var u,p,d,m;let r=c8.get((u=e.component)==null?void 0:u.name);if(!i){let T=(m=(d=(p=e.component)==null?void 0:p.settings)==null?void 0:d.tableSettings)==null?void 0:m.type;T||(T="ResponsiveTable"),r==="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"&&(T="AnalyticalTable"),i=T+"ColumnsExtension"}let o=i,s=`${i}|${t}`;return n&&(s+="|"+n),{path:"sap.ui5/extends/extensions/sap.ui.viewExtensions/"+r+"/"+s,viewTemplateType:o}},"getCustomColumnPath");var Zn=te(se());var FE="/multiEdit",fs=a((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+Zn.PropertyName.table:Gt(e,t),"getSmartTableControlId");function Rm(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}a(Rm,"importCreateParameters");function Lm(e,t,n){let i=t[n];if(i.length===0){delete e[n];return}let r={};e[n]||(e[n]={}),i.forEach(o=>r[o]=e[n][o]||{path:o}),e[n]=r}a(Lm,"exportCreateParametersFields");function S8(e,t){for(let n in t.variants){let i=t.variants[n],r=["type","multiSelect","selectAll","selectionLimit","inlineDelete"];for(let o in i)r.indexOf(o)!==-1&&(i.tableSettings||(i.tableSettings={}),i.tableSettings[o]=i[o],delete i[o]);e.variants?e.variants[n]=i:e.variants={[n]:i}}}a(S8,"exportVariants");function x8(e,t){t.variants&&(Object.keys(t.variants).length>0?S8(e,t):delete e.variants)}a(x8,"exportQuickVariantSelectionX");function P8(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}a(P8,"importMultiEdit");var Pm=class Pm{};a(Pm,"CreateWithFilters"),y([v({manifest:{path:t=>Me(t)+"/createWithFilters"}})],Pm.prototype,"strategy",2);var _E=Pm,Ml=class Ml{};a(Ml,"MultiEdit"),y([v({manifest:{path:t=>io(t)+FE}})],Ml.prototype,"enabled",2),y([v({manifest:{path:t=>io(t)+FE}})],Ml.prototype,"annotationPath",2),y([v({manifest:{path:t=>io(t)+FE,export:_g}})],Ml.prototype,"ignoredFields",2);var DE=Ml;function Pu(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}a(Pu,"importType");function jl(e,t){t!=null&&t.type&&(e.tableSettings||(e.tableSettings={}),e.tableSettings.type=t.type,e!=null&&e.tableType&&delete e.tableType)}a(jl,"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}a($l,"deleteType");var Im=class Im{};a(Im,"DataLoadSettings"),y([v({manifest:{path:t=>KF(t)}}),I({since:"1.75.2"})],Im.prototype,"loadDataOnAppLaunch",2);var wE=Im,Om=class Om{};a(Om,"Fields4Dialog"),y([v({manifest:{path:t=>io(t)+"/createWithParameterDialog",export:Lm}}),I({since:"1.77.0"})],Om.prototype,"fields",2);var ME=Om,Su=class Su{};a(Su,"QuickVariantSelection"),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATH}}),I({since:"1.48.0"})],Su.prototype,"showCounts",2),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATH}}),I({since:"1.48.0"})],Su.prototype,"variants",2);var VE=Su,Vl=class Vl{};a(Vl,"QuickVariantSelectionX"),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATHX}}),I({since:"1.48.0"})],Vl.prototype,"showCounts",2),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATHX}}),I({since:"1.48.0"})],Vl.prototype,"enableAutoBinding",2),y([v({manifest:{path:t=>Me(t)+Zn.QUICKVARPATHX,export:x8}}),I({since:"1.48.0"})],Vl.prototype,"variants",2);var kE=Vl,si=class si{constructor(){this.getDeprecated=()=>({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"}}})}};a(si,"CommonTableSettings"),y([v({manifest:{key:"createWithParameterDialog",path:t=>io(t),import:Rm}}),I({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:Gt,controlType:()=>Zn.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.38.0"})],si.prototype,"showTablePersonalisation",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.26.0"})],si.prototype,"useExportToExcel",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.50.0"})],si.prototype,"exportType",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.SmartTable,createFlexChange:Te}})],si.prototype,"fitContainer",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.48.0"})],si.prototype,"quickVariantSelection",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.48.0"})],si.prototype,"quickVariantSelectionX",2),y([v({manifest:{path:t=>io(t)}}),I({since:"1.38.0"})],si.prototype,"multiSelect",2),y([v({manifest:{path:t=>io(t)}}),I({since:"1.70.0"})],si.prototype,"selectAll",2),y([v({manifest:{path:t=>io(t)}}),I({since:"1.70.0"})],si.prototype,"selectionLimit",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.75.2"})],si.prototype,"dataLoadSettings",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.42.0"})],si.prototype,"condensedTableLayout",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.56.0"})],si.prototype,"enableTableFilterInPageVariant",2),y([Ft("toolBar")],si.prototype,"toolBar",2);var us=si,$o=class $o extends us{};a($o,"ResponsiveTable"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],$o.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.54.0"})],$o.prototype,"createWithFilters",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.Table,createFlexChange:Te},generate:Qn}),I({since:"1.52.0"})],$o.prototype,"popinLayout",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.Table,createFlexChange:Te}})],$o.prototype,"includeItemInSelection",2),y([v({manifest:{path:t=>io(t)}}),I({since:"1.77.0"})],$o.prototype,"inlineDelete",2),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.Table,createFlexChange:Te}}),I({since:"1.16.0"})],$o.prototype,"growingThreshold",2),y([v({manifest:{path:t=>io(t),import:P8}}),I({since:"1.98.0"})],$o.prototype,"multiEdit",2);var yc=$o,Cm=class Cm extends us{};a(Cm,"TreeTable"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],Cm.prototype,"type",2);var jE=Cm,so=class so extends us{};a(so,"AnalyticalTable"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],so.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}})],so.prototype,"qualifier",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.38.0"}),v({manifest:{path:t=>Me(t)}})],so.prototype,"defaultContentView",2),y([v({manifest:{path:t=>Me(t)}})],so.prototype,"defaultFilterMode",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.60.0"})],so.prototype,"contentTitle",2),y([v({manifest:{path:t=>Me(t)}})],so.prototype,"autoHide",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.78.0"})],so.prototype,"allFiltersAsInParameters",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.54.0"})],so.prototype,"createWithFilters",2);var $E=so,Uo=class Uo extends us{};a(Uo,"TableALP"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],Uo.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}})],Uo.prototype,"qualifier",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.38.0"}),v({manifest:{path:t=>Me(t)}})],Uo.prototype,"defaultContentView",2),y([v({manifest:{path:t=>Me(t)}})],Uo.prototype,"defaultFilterMode",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.60.0"})],Uo.prototype,"contentTitle",2),y([v({manifest:{path:t=>Me(t)}})],Uo.prototype,"autoHide",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.78.0"})],Uo.prototype,"allFiltersAsInParameters",2);var kl=Uo,Nm=class Nm extends kl{};a(Nm,"ALPResponsiveTable"),y([v({flex:{controlId:fs,controlType:()=>Zn.ControlType.Table,createFlexChange:Te}}),I({since:"1.16.0"})],Nm.prototype,"growingThreshold",2);var UE=Nm,HE=class HE extends kl{};a(HE,"ALPGridTable");var BE=HE,KE=class KE extends kl{};a(KE,"ALPAnalyticalTable");var WE=KE,xu=class xu extends us{};a(xu,"GridTable"),y([v({manifest:{path:t=>Me(t),import:Pu,export:jl,delete:$l}}),I({since:"1.50.0"})],xu.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}}),I({since:"1.54.0"})],xu.prototype,"createWithFilters",2);var GE=xu;var Iu=te(se());var I8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${Wi(i).replace(":2f","::")}`},"getActionButtonId"),O8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}template::${i}`},"getStandardActionButtonId"),C8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}${Hg}${i}`},"getStandardFooterActionOPButtonId"),ib=a((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Gi(n);return`${e}action::${i}::${Wi(r)}`},"buildIntentBasedActionId"),N8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${Wi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),ps={controlId:I8,controlType:()=>Iu.ControlType.Button,createFlexChange:Te},Ou={controlId:O8,controlType:()=>Iu.ControlType.Button,createFlexChange:Te},y0={controlId:C8,controlType:()=>Iu.ControlType.Button,createFlexChange:Te},Fm={controlId:N8,controlType:()=>Iu.ControlType.Button,createFlexChange:Te},vc=class vc{};a(vc,"Action"),y([v({flex:ps})],vc.prototype,"tooltip",2),y([v({flex:ps})],vc.prototype,"icon",2),y([v({flex:ps})],vc.prototype,"activeIcon",2),y([v({flex:ps})],vc.prototype,"type",2);var XE=vc,Tc=class Tc{};a(Tc,"ToolBarAction"),y([v({flex:ps})],Tc.prototype,"tooltip",2),y([v({flex:ps})],Tc.prototype,"icon",2),y([v({flex:ps})],Tc.prototype,"activeIcon",2),y([v({flex:ps})],Tc.prototype,"type",2);var JE=Tc,Ec=class Ec{};a(Ec,"FooterAction"),y([v({flex:Fm})],Ec.prototype,"tooltip",2),y([v({flex:Fm})],Ec.prototype,"icon",2),y([v({flex:Fm})],Ec.prototype,"activeIcon",2),y([v({flex:Fm})],Ec.prototype,"type",2);var YE=Ec,_m=class _m{};a(_m,"Share"),y([v({flex:Ou})],_m.prototype,"visible",2);var QE=_m,Dm=class Dm{};a(Dm,"ShareOP"),y([v({flex:Ou})],Dm.prototype,"visible",2);var zE=Dm,wm=class wm{};a(wm,"UpAndDownNavigationOP"),y([v({flex:Ou})],wm.prototype,"visible",2);var qE=wm,Mm=class Mm{};a(Mm,"SaveAndEditOP"),y([v({flex:y0,generate:dt})],Mm.prototype,"visible",2);var ZE=Mm,Vm=class Vm{};a(Vm,"HeaderActionStandard"),y([v({flex:Ou})],Vm.prototype,"visible",2);var eb=Vm,km=class km{};a(km,"ObjectPageHeaderActionStandard"),y([v({flex:Ou})],km.prototype,"visible",2);var tb=km,jm=class jm{};a(jm,"ObjectPageFooterActionStandard"),y([v({flex:y0})],jm.prototype,"visible",2);var nb=jm;var Ru=te(se());var R8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o}=Gi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${o}`},"buildColumnActionId"),L8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o,semanticObjectId:s}=Gi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${o}`},"buildColumnIntentBasedId"),F8=a((e,t,n)=>{let{actionId:i}=Gi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),rb={controlId:R8,controlType:()=>Ru.ControlType.TableColumn,createFlexChange:Te},Cu={controlId:F8,controlType:()=>Ru.ControlType.Button,createFlexChange:Te},v0={...rb,controlId:L8},$m={...Cu,controlId:ib},Nu=class Nu{};a(Nu,"TableColumn"),y([v({flex:{controlId:KT,controlType:()=>Ru.ControlType.TableColumn,createFlexChange:Te}})],Nu.prototype,"width",2),y([v({flex:{controlId:KT,controlType:()=>Ru.ControlType.TableColumn,createFlexChange:Te},generate:Qn})],Nu.prototype,"hAlign",2);var ob=Nu,ba=class ba{};a(ba,"TableColumnAction"),y([v({flex:rb})],ba.prototype,"width",2),y([v({flex:rb,generate:Qn})],ba.prototype,"hAlign",2),y([v({flex:Cu})],ba.prototype,"tooltip",2),y([v({flex:Cu})],ba.prototype,"icon",2),y([v({flex:Cu})],ba.prototype,"activeIcon",2),y([v({flex:Cu})],ba.prototype,"type",2);var Um=ba,Aa=class Aa extends Um{};a(Aa,"TableColumnActionIntentBased"),y([v({flex:v0})],Aa.prototype,"width",2),y([v({flex:v0,generate:Qn})],Aa.prototype,"hAlign",2),y([v({flex:$m})],Aa.prototype,"tooltip",2),y([v({flex:$m})],Aa.prototype,"icon",2),y([v({flex:$m})],Aa.prototype,"activeIcon",2),y([v({flex:$m})],Aa.prototype,"type",2);var ab=Aa,cb=class cb{};a(cb,"TableCustomColumn");var sb=cb;var fb=class fb{};a(fb,"ToolBar");var lb=fb;var bc=te(se());var Lu=a(e=>e+bc.PropertyName.chart,"getSmartChartControlId"),ds=class ds{};a(ds,"ChartSettings"),y([v({flex:{controlId:Lu,controlType:()=>bc.ControlType.SmartChart,createFlexChange:Te}})],ds.prototype,"showLegendButton",2),y([v({flex:{controlId:Lu,controlType:()=>bc.ControlType.SmartChart,createFlexChange:Te}})],ds.prototype,"showDownloadButton",2),y([v({flex:{controlId:Lu,controlType:()=>bc.ControlType.SmartChart,createFlexChange:Te}})],ds.prototype,"showChartTypeSelectionButton",2),y([v({flex:{controlId:Lu,controlType:()=>bc.ControlType.SmartChart,exportFlexValue:(t,n,i)=>{t.content.newValue=n[i].join()},importFlexValue:(t,n,i)=>{t.content.newValue=t.content.newValue,n[i]=t.content.newValue.split(",")},createFlexChange:Te}})],ds.prototype,"ignoredChartTypes",2),y([v({manifest:{path:t=>HF(t)}}),I({since:"1.81.0"})],ds.prototype,"showDataLabel",2);var ub=ds;var Sa=class Sa{};a(Sa,"KPISettings"),y([v({manifest:{path:(t,n,i)=>mc(t,i)}})],Sa.prototype,"model",2),y([v({manifest:{path:(t,n,i)=>mc(t,i)}})],Sa.prototype,"entitySet",2),y([v({manifest:{path:(t,n,i)=>mc(t,i)}})],Sa.prototype,"qualifier",2),y([v({manifest:{path:(t,n,i)=>mc(t,i)}})],Sa.prototype,"filterable",2),y([v({manifest:{path:(t,n,i)=>mc(t,i)}})],Sa.prototype,"detailNavigation",2),y([v({manifest:{path:(t,n,i)=>mc(t,i)}})],Sa.prototype,"groupId",2);var pb=Sa;var T0=te(se());var _8=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Gt(e,n)},"getAvatarControlId"),Ac=class Ac{};a(Ac,"ObjectPageHeader"),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.46.0"})],Ac.prototype,"showRelatedApps",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.46.0"})],Ac.prototype,"editableHeaderContent",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.48.0"})],Ac.prototype,"simpleHeaderFacets",2),y([v({flex:{controlId:_8,controlType:()=>T0.ControlType.Avatar,createFlexChange:Te},generate:dt})],Ac.prototype,"displayShape",2);var db=Ac;var Bm=te(se());var D8=a((e,t,n,i)=>{if(i()===Bm.ControlType.Button||i()===Bm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Wi(r)}`}return Gt(e,t)},"getActionButtonId"),Fu={controlId:D8,controlType:()=>Bm.ControlType.HeaderAction,createFlexChange:Te},gs=class gs{};a(gs,"ObjectPageHeaderAction"),y([v({flex:Fu,generate:dt})],gs.prototype,"visible",2),y([v({flex:Fu})],gs.prototype,"tooltip",2),y([v({flex:Fu})],gs.prototype,"icon",2),y([v({flex:Fu})],gs.prototype,"activeIcon",2),y([v({flex:Fu})],gs.prototype,"type",2);var gb=gs;var hb=te(se());var w8=a((e,t,n,i)=>{if(i()===hb.ControlType.Button){let{actionId:r}=Gi(n);return`${e}action::${Wi(r)}::Determining`}return Gt(e,t)},"getFooterActionButtonId"),_u={controlId:w8,controlType:()=>hb.ControlType.Button,createFlexChange:Te},ms=class ms{};a(ms,"ObjectPageFooterAction"),y([v({flex:_u,generate:dt})],ms.prototype,"visible",2),y([v({flex:_u})],ms.prototype,"tooltip",2),y([v({flex:_u})],ms.prototype,"icon",2),y([v({flex:_u})],ms.prototype,"activeIcon",2),y([v({flex:_u})],ms.prototype,"type",2);var mb=ms;var Du=te(se());var Wm=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Gt(e,n)},"getControlId"),Sc=class Sc{};a(Sc,"ObjectPageLayout"),y([v({flex:{controlId:Wm,controlType:()=>Du.ControlType.ObjectPageLayout,createFlexChange:Te},generate:dt})],Sc.prototype,"showHeaderContent",2),y([v({flex:{controlId:Wm,controlType:()=>Du.ControlType.ObjectPageLayout,createFlexChange:Te}})],Sc.prototype,"showAnchorBar",2),y([v({flex:{controlId:Wm,controlType:()=>Du.ControlType.ObjectPageLayout,createFlexChange:Te}})],Sc.prototype,"useIconTabBar",2),y([v({flex:{controlId:Wm,controlType:()=>Du.ControlType.ObjectPageLayout,createFlexChange:Te}}),I({since:"1.34.0"})],Sc.prototype,"alwaysShowContentHeader",2);var yb=Sc;var E0=te(se());var xc=class xc{};a(xc,"BaseCustomSection"),y([v({manifest:{path:Ea,export:!1,import:(t,n)=>n.split("|")[2]}}),I({since:"1.52.0"})],xc.prototype,"relatedFacet",2),y([v({manifest:{path:Ea,export:!1,import:(t,n)=>n.split("|")[0]}}),I({since:"1.52.0"})],xc.prototype,"relativePosition",2),y([v({manifest:{path:(t,n,i)=>Ea(t,{},i,E0.ManifestSection.generic)}}),I({since:"1.52.0"})],xc.prototype,"title",2),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],xc.prototype,"className",2);var Vu=xc,wu=class wu extends Vu{};a(wu,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],wu.prototype,"fragmentName",2),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],wu.prototype,"type",2);var ku=wu,Mu=class Mu extends Vu{};a(Mu,"ObjectPageCustomSectionView"),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],Mu.prototype,"viewName",2),y([v({manifest:{path:Ea}}),I({since:"1.52.0"})],Mu.prototype,"type",2);var ju=Mu;var Yi=te(se());var b0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),Yi.DefinitionName.Table];return Gt(e,s)},"getTableSectionControlId"),A0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"FormGroup"];return Gt(e,s)},"getFormSectionControlId"),S0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"Chart"];return Gt(e,s)},"getChartSectionControlId"),Pc=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"Section"];return Gt(e,s)},"getSectionControlId"),x0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"SubSection"];return Gt(e,s)},"getSubSectionControlId"),P0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"ContactsList"];return Gt(e,s)},"getContactSubSectionControlId"),Gm=class Gm{};a(Gm,"ObjectPageSectionV2"),y([v({flex:{controlId:Pc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Gm.prototype,"visible",2);var vb=Gm,Hm=class Hm{};a(Hm,"ObjectPageSectionFormV2"),y([v({flex:{controlId:Pc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Hm.prototype,"visible",2);var Tb=Hm,Km=class Km{};a(Km,"ObjectPageSectionChartV2"),y([v({flex:{controlId:Pc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Km.prototype,"visible",2);var Eb=Km,Xm=class Xm{};a(Xm,"ObjectPageSectionTableV2"),y([v({flex:{controlId:Pc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Xm.prototype,"visible",2);var bb=Xm,Jm=class Jm{};a(Jm,"ObjectPageSectionAddressV2"),y([v({flex:{controlId:Pc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Jm.prototype,"visible",2);var Ab=Jm,Ym=class Ym{};a(Ym,"ObjectPageSectionContactV2"),y([v({flex:{controlId:Pc,controlType:()=>Yi.ControlType.Section,createFlexChange:Te},generate:dt})],Ym.prototype,"visible",2);var Sb=Ym,Qm=class Qm{};a(Qm,"ObjectPageSubSectionV2"),y([v({flex:{controlId:x0,controlType:()=>Yi.ControlType.SubSection,createFlexChange:Te},generate:dt})],Qm.prototype,"visible",2);var xb=Qm,zm=class zm{};a(zm,"ObjectPageSubSectionFormV2"),y([v({flex:{controlId:A0,controlType:()=>Yi.ControlType.Group,createFlexChange:Te},generate:dt})],zm.prototype,"visible",2);var Pb=zm,qm=class qm{};a(qm,"ObjectPageSubSectionChartV2"),y([v({flex:{controlId:S0,controlType:()=>Yi.ControlType.SmartChart,createFlexChange:Te},generate:dt})],qm.prototype,"visible",2);var Ib=qm,Zm=class Zm{};a(Zm,"ObjectPageSubSectionContactV2"),y([v({flex:{controlId:P0,controlType:()=>Yi.ControlType.SubSection,createFlexChange:Te},generate:dt})],Zm.prototype,"visible",2);var Ob=Zm,eh=class eh{};a(eh,"ObjectPageSubSectionTableV2"),y([v({flex:{controlId:b0,controlType:()=>Yi.ControlType.SmartTable,createFlexChange:Te},generate:dt})],eh.prototype,"visible",2);var Cb=eh;var th=class th{};a(th,"ObjectPageChart"),y([v({manifest:{path:XF}}),I({since:"1.78.0"})],th.prototype,"variantManagement",2);var Nb=th,nh=class nh{};a(nh,"GlobalChartSettings"),y([v({manifest:{path:t=>Ji(t)+"/chartSettings"}}),I({since:"1.78.0"})],nh.prototype,"variantManagement",2);var Rb=nh;var Vr=te(se());var Ul=a((e,t,n,i,r)=>{let o=n.slice(1,2),s;return i()==="sap.ui.comp.smarttable.SmartTable"?s=Vr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),o.push(s),o[0]=Yn(o[0],r),Gt(e,o)},"getSmartTableControlId"),$u=class $u{};a($u,"QuickVariantSelectionOP"),y([v({manifest:{path:(t,n,i)=>ro(t,n,i)+Vr.QUICKVARPATH}}),I({since:"1.48.0"})],$u.prototype,"showCounts",2),y([v({manifest:{path:(t,n,i)=>ro(t,n,i)+Vr.QUICKVARPATH}}),I({since:"1.48.0"})],$u.prototype,"variants",2);var Lb=$u,ih=class ih{};a(ih,"Fields4DialogOP"),y([v({manifest:{path:(t,n,i)=>wr(t,n,i)+"/createWithParameterDialog",export:Lm}}),I({since:"1.77.0"})],ih.prototype,"fields",2);var Fb=ih,Ci=class Ci{constructor(){this.getDeprecated=()=>({tableType:{since:"1.50.0",deprecated:{since:"1.70.0",text:"Use tableSettings.type instead"}}})}};a(Ci,"CommonTableSettingsForSections"),y([v({manifest:{key:"createWithParameterDialog",path:wr,import:Rm}}),I({since:"1.77.0"})],Ci.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.28.0"})],Ci.prototype,"editable",2),y([v({manifest:{path:wr}}),I({since:"1.54.0"})],Ci.prototype,"multiSelect",2),y([v({manifest:{path:wr}}),I({since:"1.70.0"})],Ci.prototype,"selectAll",2),y([v({manifest:{path:wr}}),I({since:"1.70.0"})],Ci.prototype,"selectionLimit",2),y([v({manifest:{path:ro}}),I({since:"1.63.0"})],Ci.prototype,"quickVariantSelection",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.26.0"})],Ci.prototype,"useExportToExcel",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.SmartTable,createFlexChange:Te}}),I({since:"1.50.0"})],Ci.prototype,"exportType",2),y([v({manifest:{path:ro}}),I({since:"1.48.5"})],Ci.prototype,"createMode",2),y([v({manifest:{path:ro}}),I({since:"1.61.0"})],Ci.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:wr}}),I({since:"1.78.0"})],Ci.prototype,"variantManagement",2),y([Ft("toolBar")],Ci.prototype,"toolBar",2);var Ic=Ci,hs=class hs extends Ic{};a(hs,"ObjectPageResponsiveTable"),y([v({manifest:{path:wr}})],hs.prototype,"type",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.Table,createFlexChange:Te}})],hs.prototype,"includeItemInSelection",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.Table,createFlexChange:Te},generate:dt}),I({since:"1.52.0"})],hs.prototype,"popinLayout",2),y([v({manifest:{path:wr}}),I({since:"1.77.0"})],hs.prototype,"inlineDelete",2),y([v({flex:{controlId:Ul,controlType:()=>Vr.ControlType.Table,createFlexChange:Te}}),I({since:"1.16.0"})],hs.prototype,"growingThreshold",2);var Oc=hs,Uu=class Uu extends Ic{};a(Uu,"ObjectPageAnalyticalTable"),y([v({manifest:{path:wr}})],Uu.prototype,"type",2),y([v({manifest:{path:ro}}),I({since:"1.67.0"})],Uu.prototype,"condensedTableLayout",2);var _b=Uu,Bu=class Bu extends Ic{};a(Bu,"ObjectPageGridTable"),y([v({manifest:{path:wr}})],Bu.prototype,"type",2),y([v({manifest:{path:ro}}),I({since:"1.67.0"})],Bu.prototype,"condensedTableLayout",2);var Db=Bu,Wu=class Wu extends Ic{};a(Wu,"ObjectPageTreeTable"),y([v({manifest:{path:wr}})],Wu.prototype,"type",2),y([v({manifest:{path:ro}}),I({since:"1.67.0"})],Wu.prototype,"condensedTableLayout",2);var wb=Wu,Mr=class Mr{};a(Mr,"GlobalTableSettings"),y([v({manifest:{path:wo}}),I({since:"1.70.0"})],Mr.prototype,"selectAll",2),y([v({manifest:{path:wo}}),I({since:"1.70.0"})],Mr.prototype,"selectionLimit",2),y([v({manifest:{path:wo}}),I({since:"1.48.5"})],Mr.prototype,"createMode",2),y([v({manifest:{path:wo}}),I({since:"1.61.0"})],Mr.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:wo}}),I({since:"1.78.0"})],Mr.prototype,"variantManagement",2),y([v({manifest:{path:wo}})],Mr.prototype,"type",2),y([v({manifest:{path:wo}}),I({since:"1.54.0"})],Mr.prototype,"multiSelect",2),y([v({manifest:{path:wo}}),I({since:"1.67.0"})],Mr.prototype,"condensedTableLayout",2),y([v({manifest:{path:wo}}),I({since:"1.77.0"})],Mr.prototype,"inlineDelete",2);var Mb=Mr;var I0=te(se());var M8=a((e,t,n,i,r)=>{let{actionId:o}=Gi(n),s=Yn(n[1],r);return`${e}${s}::action::${Wi(o).replace(":2f","::")}`},"getActionButtonId"),Gu={controlId:M8,controlType:()=>I0.ControlType.Button,createFlexChange:Te},ys=class ys{};a(ys,"ObjectPageToolBarAction"),y([v({flex:Gu,generate:dt})],ys.prototype,"visible",2),y([v({flex:Gu})],ys.prototype,"tooltip",2),y([v({flex:Gu})],ys.prototype,"icon",2),y([v({flex:Gu})],ys.prototype,"activeIcon",2),y([v({flex:Gu})],ys.prototype,"type",2);var Vb=ys;function vs(e){return e.replace("/","::")}a(vs,"convertActionKey");function jb(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}a(jb,"convertSelector");function V8(e,t,n,i){var o,s,l,u;(((s=(o=i.definitions)==null?void 0:o.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)}a(V8,"addSmartFilterBarFlex");function k8(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 o=Wi((l=r.split("<")[1])==null?void 0:l.split(">")[0]),s=o.indexOf(":::");if(o.startsWith("DataField")&&s>-1){let u=o.split(":::"),p=u.find(T=>T.startsWith("sSemanticObject")),d=u.find(T=>T.startsWith("sAction")),m=d.split("sAction::")[1].replace(":2f","::");if(p){let T=`${p.split("::")[1]}::${m}`,b=`${u[0]}:::${p}:::${d}`;i.set(T,r),i.set(r,b)}else i.set(m,r),i.set(r,o)}else i.set(o.replace(":2f","::"),r),i.set(r,o)}),i}a(k8,"filterActions");function j8(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}a(j8,"addColumnActionConfigPart");function $8(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]}a($8,"getActionId");function U8(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=k8(s.name,i);if(l.has(s.id)){let d=l.get(s.id),m=(u=d.split("<")[1])==null?void 0:u.split(">")[0];s.name==="TableColumnAction"&&j8(s,e,m);let T=s.configPart[m];((p=i.definitions[d])==null?void 0:p.properties[t])&&T&&(T[t]=n.content.newBinding?n.content.newBinding:n.content.newValue)}})}a(U8,"addActionFlex");function B8(e,t,n,i){var o;if(i.definitions.ChartSettings.properties[t]){let s=zn(e[We.PropertyName.chart],t);(o=s==null?void 0:s.flex)!=null&&o.importFlexValue?s.flex.importFlexValue(n,e[We.PropertyName.chart],t):e[We.PropertyName.chart][t]=n.content.newBinding?n.content.newBinding:n.content.newValue}}a(B8,"addSmartChartFlex");function W8(e,t,n){var s;let i={controlId:t.controlId,propertyId:t.content.property,newValue:t.content.newBinding?t.content.newBinding:t.content.newValue,controlType:t.controlType,creation:t.creation},r;(!e.table.type||e.table.type===We.v2.TableTypeV2.ResponsiveTable)&&!((s=i.controlId)!=null&&s.includes(We.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(We.PageTypeV2.AnalyticalListPage)))?r="ResponsiveTableWithMultiSelect":r=e.table.constructor.name,(n.definitions[`${r}<LineItems>`].properties[i.propertyId]||i.controlType===We.ControlType.TableColumn)&&lm(e.table,i,n)}a(W8,"addAdditionalFlexChanges");function rh(e,t,n,i){var r,o;try{let s=za(t),l=s.content.property;if((r=s.controlId)!=null&&r.includes(We.PageTypeV2.ListReport)||(o=s.controlId)!=null&&o.includes(We.PageTypeV2.AnalyticalListPage))switch(s.controlId=jb(s.controlId),s.controlType){case We.ControlType.SmartFilterBar:{V8(e,l,s,n);break}case We.ControlType.DynamicPage:{n.properties[l]&&(e[s.content.property]=s.content.newValue);break}case We.ControlType.Button:{let u=$8(s);u&&U8(e,l,s,n,u);break}case We.ControlType.SmartChart:{B8(e,l,s,n);break}default:{W8(e,s,n);break}}}catch(s){oe(i,{severity:We.LogSeverity.Error,message:ee.t("FLEXERROR")},...s)}}a(rh,"addFlex");function G8(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}}}a(G8,"adjustQuickVariantSelectionX");function _n(e,t,n,i,r,o){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 d=p.manifest.path([i],t,o);s=Bn(t,d),bl(p,s,u,e),jg(l,s,d,r)}G8(u,e)}}a(_n,"transferSettingsOfObject");function oh(e,t){var r,o,s,l,u,p,d,m,T;let n=e[We.ManifestSection.generic].pages[t],i=We.v2.TableTypeV2.ResponsiveTable;return(r=e[We.ManifestSection.generic].pages[t].component)!=null&&r.settings&&((s=(o=e[We.ManifestSection.generic].pages[t].component.settings)==null?void 0:o.tableSettings)!=null&&s.type||(l=e[We.ManifestSection.generic].pages[t].component.settings)!=null&&l.tableType)?i=((d=(p=(u=n.component)==null?void 0:u.settings)==null?void 0:p.tableSettings)==null?void 0:d.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=We.v2.TableTypeV2.AnalyticalTable),i}a(oh,"determineTableType");function O0(e,t,n,i,r,o,s){if(e.customData||e["table:customData"]){let l=e.customData?e.customData["core:CustomData"]._attributes.value:e["table:customData"]["core:CustomData"]._attributes.value,u=JSON.parse(l.substr(1,l.length)),p=e.Text&&e.Text._attributes&&e.Text._attributes.text;p||(p=e.Label&&e.Label._attributes&&e.Label._attributes.text);let d={id:e._attributes&&e._attributes.id,text:p,...u,columnKey:u.columnKey,columnIndex:u.columnIndex!==void 0?Number(u.columnIndex):void 0,leadingProperty:u.leadingProperty,className:t[n].className,fragmentName:t[n].fragmentName,tabKey:i,extensionType:o};s&&(d.cellsFragmentName=s),r.table.columns.custom||(r.table.columns.custom=[]),r.table.columns.custom.push(d)}}a(O0,"evaluateFragmentColumn");function H8(e,t,n,i){let r;if(e===We.ViewTemplateType.ResponsiveTableColumnsExtension)for(let o of Object.keys(t)){let[s,l,u]=o.split("|");s===We.ViewTemplateType.ResponsiveTableCellsExtension&&l===n&&u===i&&(r=t[o].fragmentName)}return r}a(H8,"determineCellsFragmentName");function K8(e,t,n,i,r,o,s){var l;if(e[0]){let p=JSON.parse((0,C0.xml2json)(e[0].fileContent,{compact:!0}))[jo],d=Au(p);if(d)if((l=t[We.PropertyName.table])!=null&&l.columns||(t[We.PropertyName.table].columns={}),Array.isArray(d))for(let m of d)O0(m,n,i,r,t,o,s);else O0(d,n,i,r,t,o,s)}}a(K8,"analyzeFilteredFragments");function X8(e,t,n,i,r){for(let o of Object.keys(e)){let s=o.split("|"),[l,u]=s,p=s[2],d=n&&p===n.key?void 0:p,m=We.ViewTemplateType[l];if(m&&"|"+u===t){let T=e[o].type?e[o].type.toLowerCase():"xml",b=e[o].fragmentName;if(!b)continue;let E=H8(m,e,u,p),C=b.split(".");b=C[C.length-1]+We.FRAGMENTNAMEPART+T;let R=r.filter(L=>L.dataSourceUri.endsWith(b));K8(R,i,e,o,d,m,E)}}}a(X8,"processViewExtensions");function Bl(e,t,n,i,r,o){if(!r)return;let s="|"+(o&&o.target?o.target:n.entitySet);if(t[We.ManifestSection.ui5]&&t[We.ManifestSection.ui5].extends&&t[We.ManifestSection.ui5].extends.extensions&&t[We.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"]){let l=We.PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP.get(i),u=t[We.ManifestSection.ui5].extends.extensions["sap.ui.viewExtensions"][l];if(!u)return;X8(u,s,o,e,r)}}a(Bl,"addFragments");function ah(e,t,n){if(e.header={actions:{}},n[We.DefinitionName.HeaderActionsStandard]){let i=n[We.DefinitionName.HeaderActionsStandard].properties;for(let r in i)e.header.actions[r]=t.createInstance(We.PageTypeV2.ListReport,r,{})}}a(ah,"importHeaderActions");var Ut=te(se());var R0=te(se());var $b={};ec($b,{ANNOERR:()=>lK,ANNOTATIONFILE:()=>fK,COMPONENTNOTDEFINED:()=>uK,CONTEXTPATHCOULDNOTBERESOLVED:()=>oK,ENTITYSETNOTFOUND:()=>rK,FLEXERROR:()=>vK,INVALIDANCHOR:()=>TK,INVALIDTARGETDEFINITION:()=>bK,MACROS_ANNOTATION_ERROR:()=>xK,NOALP:()=>sK,NOBASEPATH:()=>Q8,NOENTITYSET:()=>tK,NOENTITYTYPE4SET:()=>nK,NOFE:()=>q8,NOFRAGMENT:()=>EK,NOGENERICSCHEMA:()=>Z8,NOID4SECTION:()=>AK,NOLINEITEMS:()=>dK,NOLR:()=>aK,NOPAGEFORENTITYSET:()=>eK,NOPAGES:()=>z8,NOPRESENTATIONVARIANT:()=>iK,NOROUTING:()=>pK,NOROUTINGID:()=>yK,NOTARGET:()=>hK,NOTARGETS:()=>mK,NOTEMPLATE:()=>cK,NOVISUALIZATIONS:()=>gK,UNKNOWNMINUI5VERSION:()=>Y8,WRONGMINUI5VERSION:()=>J8,XMLPARSEFAILURE:()=>SK,default:()=>PK});var J8="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",Y8="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",Q8="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",z8="No pages found in manifest for app with id '{{- appId}}'",q8="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",Z8="No generic schema found while generating page schema for {{- pageType}}",eK="No page found in manifest for entitySet '{{- entitySet}}'",tK="No entitySet defined for page '{{- pageName}}'",nK="No entityType could be found for the given entity set '{{- entitySetName}}'",iK="No PresentationVariant defined for '{{- key}}'",rK="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",oK="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",aK="No page found in manifest for list report",sK="No page found in manifest for analytical list page",cK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",lK="Error while parsing annotation files",fK="Annotation file: '{{- file}}'",uK="Component name is not defined for page '{{- pageName}}'",pK="Incomplete manifest definition: no routing defined",dK="UI.LineItem annotation has not been defined",gK="Empty Collection for Visualizations",mK="Incomplete manifest definition: no targets defined",hK="Invalid reference: annotation target '{{- target}}' not found",yK="No page found in manifest for routingId '{{- routingId}}'",vK="Error while parsing flex change",TK="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",EK="fragmentName is undefined for columnKey '{{- columnKey}}'",bK="Invalid routing target definition in manifest: '{{- target}}'",AK="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",SK="Parsing of XML file failed with error - {{- error}}",xK="Error during resolving annotation for '{{- control}}'",PK={WRONGMINUI5VERSION:J8,UNKNOWNMINUI5VERSION:Y8,NOBASEPATH:Q8,NOPAGES:z8,NOFE:q8,NOGENERICSCHEMA:Z8,NOPAGEFORENTITYSET:eK,NOENTITYSET:tK,NOENTITYTYPE4SET:nK,NOPRESENTATIONVARIANT:iK,ENTITYSETNOTFOUND:rK,CONTEXTPATHCOULDNOTBERESOLVED:oK,NOLR:aK,NOALP:sK,NOTEMPLATE:cK,ANNOERR:lK,ANNOTATIONFILE:fK,COMPONENTNOTDEFINED:uK,NOROUTING:pK,NOLINEITEMS:dK,NOVISUALIZATIONS:gK,NOTARGETS:mK,NOTARGET:hK,NOROUTINGID:yK,FLEXERROR:vK,INVALIDANCHOR:TK,NOFRAGMENT:EK,INVALIDTARGETDEFINITION:bK,NOID4SECTION:AK,XMLPARSEFAILURE:SK,MACROS_ANNOTATION_ERROR:xK};function N0(e){e.addResourceBundle(e.language,"translation",$b)}a(N0,"initI18n");function Qt(e="en"){ee.init({resources:{en:{translation:R0.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
294
294
|
|
|
295
|
-
`}),N0(ee)}a(Qt,"initI18n");var wt=te(se());function Oc(e,t,n){var r;let i;for(let o in e){let s=e[o];if(ga((r=s.component)==null?void 0:r.name)===wt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(o),s;if(s.pages&&(i=Oc(s.pages,t,n),i))return n.unshift(o),i}}a(Oc,"findObjectPageV2");function Wl(e,t){var n;for(let i in e){let r=e[i];if(ga((n=r.component)==null?void 0:n.name)===wt.PageTypeV2.ListReport)return t.push(i),r}}a(Wl,"findListReportPageV2");function Gl(e){if(!e.manifest[wt.ManifestSection.generic]){oe(e.logger,{severity:wt.LogSeverity.Error,message:ee.t("NOFE"),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}});return}let t=e.manifest[wt.ManifestSection.generic].pages;if(!t){oe(e.logger,{severity:wt.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}});return}return t}a(Gl,"getV2Pages");function Hl(e,t,n){var i;if(!e){oe(t,{severity:wt.LogSeverity.Error,message:ee.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;oe(t,{severity:wt.LogSeverity.Error,message:ee.t("NOENTITYSET",{pageName:r}),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}})}}a(Hl,"checkV2Page");function Kl(e,t,n){var i;for(let r in e){let o=e[r];if(t.push(r),ga((i=o.component)==null?void 0:i.name)===wt.PageTypeV2.AnalyticalListPage)return o}oe(n,{severity:wt.LogSeverity.Error,message:ee.t("NOALP"),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}})}a(Kl,"findAnalyticalListPage");function Ub(e,t){let n=e.split("|");return wt.v2.SectionPosition[n[0]]&&n[1]===t}a(Ub,"isAssociatedCustomSection");function L0(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${wt.v2.SAPUI5_VIEW_EXTENSION}/${wt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Ub(r,t)&&(i[r]=n[r]);return i}a(L0,"findCustomSectionExtensions");function IK(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}}a(IK,"removeEmptySettingsOfFooter");function OK(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}}a(OK,"removeEmptySettingsOfFilterBar");function CK(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}}a(CK,"removeEmptySettingsOfToolBar");function sh(e){CK(e),OK(e),IK(e)}a(sh,"removeEmptySettings");var Wb={};ec(Wb,{AnalyticalListPage:()=>kr,ListReport:()=>co,ObjectPage:()=>ci,OverviewPage:()=>Ht,exportFilterSettings:()=>D0,importDateSettingsOVP:()=>F0,importFilterSettings:()=>_0});var ch=te(se());var kr=class{};a(kr,"AnalyticalListPage"),y([v({flex:{controlId:wg,controlType:()=>ch.ControlType.DynamicPage,createFlexChange:Te}})],kr.prototype,"fitContent",2),y([Ft("table")],kr.prototype,"table",2),y([Ft("template::SmartFilterBar")],kr.prototype,"filterBar",2),y([Ft("analyticalListPageChart")],kr.prototype,"chart",2),y([Ft("analyticalListFooter")],kr.prototype,"footer",2),kr=y([Dr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:ch.v2.FE_TEMPLATE_V2_ALP})],kr);var Hu=te(se());var co=class{};a(co,"ListReport"),y([v({flex:{controlId:wg,controlType:()=>Hu.ControlType.DynamicPage,createFlexChange:Te}})],co.prototype,"fitContent",2),y([Ft("listReportFilter")],co.prototype,"filterBar",2),y([Ft("listReport")],co.prototype,"table",2),y([Ft("listReportFooter")],co.prototype,"footer",2),co=y([Dr({id:Hu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Hu.v2.FE_TEMPLATE_V2_LIST_REPORT})],co);var Bb=te(se());var ci=class{};a(ci,"ObjectPage"),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),y([Ft("header")],ci.prototype,"header",2),y([Ft("sections")],ci.prototype,"sections",2),y([Ft("layout")],ci.prototype,"layout",2),y([v({manifest:{path:t=>pm(t)}}),I({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),y([v({manifest:{path:t=>Ji(t),import:t=>{if("chartSettings"in t)return t.chartSettings},key:"chartSettings"}}),I({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),y([v({manifest:{path:t=>Ji(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:ac}}),I({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=y([Dr({id:Bb.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Bb.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function NK(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 o=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=o,o.equals&&typeof o.equals=="string"&&(t.fields[n].filter[r].equals=o.equals.split(","))}}}a(NK,"importDateSettingsFieldsOVP");function F0(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&&NK(e,t),t}a(F0,"importDateSettingsOVP");function _0(e){let t={};return t.dateSettings=F0(e.filterSettings),t}a(_0,"importFilterSettings");function RK(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 o in r.filter){let s=r.filter[o];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[o].equals=s.equals.join())}}}a(RK,"exportFilterFields");function D0(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&&RK(t,n,e))}a(D0,"exportFilterSettings");var Ht=class{};a(Ht,"OverviewPage"),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"globalFilterModel",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"globalFilterEntityType",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"globalFilterEntitySet",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"showBasicSearch",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"disableErrorPage",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"smartVariantRequired",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"bHeaderExpanded",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"containerLayout",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"showDateInRelativeFormat",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"disableTableCardFlexibility",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"enableLiveFilter",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"enableLazyRendering",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"refreshStrategyOnAppRestore",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"considerAnalyticalParameters",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"refreshIntervalInMinutes",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"useDateRangeType",2),y([v({manifest:{path:()=>gn(),import:_0,export:D0}}),I({since:"1.80.0"})],Ht.prototype,"filterSettings",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"dataLoadSettings",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"resizableLayout",2),Ht=y([Dr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Ht);var Gb=class Gb{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let o=this.controls[r]?this.controls[r]:this.controls[n];return o||(o=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),o?Object.assign(new o,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};a(Gb,"MetadataFactory");var Xl=Gb;var ei=te(se());var LK={},FK={Table:hc,ResponsiveTableWithMultiSelect:hc,ResponsiveTableWithInlineDelete:hc},_K={[ei.v2.CardSettingsType.listCardSettings]:Fl,[ei.v2.CardSettingsType.listCardSettingsv4]:Fl,[ei.v2.CardSettingsType.analyticalCardSettings]:_l,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:_l,[ei.v2.CardSettingsType.stackCardSettings]:mu,[ei.v2.CardSettingsType.linkListCardSettings]:hu,[ei.v2.CardSettingsType.tableCardSettings]:Dl,[ei.v2.CardSettingsType.tableCardSettingsv4]:Dl},DK={[ei.SAPUI5_VIEW_CLASS]:ju,[ei.SAPUI5_FRAGMENT_CLASS]:ku,Table:Ic,ObjectPageResponsiveTableWithMultiSelect:Ic,ObjectPageResponsiveTableWithInlineDelete:Ic},wK={[ei.PageTypeV2.AnalyticalListPage]:LK,[ei.PageTypeV2.ListReport]:FK,[ei.PageTypeV2.ObjectPage]:DK,[ei.PageTypeV2.OverviewPage]:_K},Hb=class Hb extends Xl{constructor(){super(kb,Wb,wK)}};a(Hb,"MetadataInstanceFactoryV2");var Ni=Hb;function MK(e,t,n,i,r){if(e.filterBar=t.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[Ut.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let o=i.SelectionFields.properties;for(let s in o){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Ut.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}a(MK,"importFilterBar");function VK(e,t,n,i,r){var s;let o;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?o=t[e+"<LineItems>"]:t[uc]&&t[pc]&&(o=JSON.parse(JSON.stringify(t[uc])),o.properties={...o.properties,...t[pc].properties}),_n(n.table,i.manifest,o,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&oe(i.logger,{severity:Ut.LogSeverity.Error,message:ee.t("NOLINEITEMS")})}a(VK,"importTable");function kK(e,t,n,i){let r=e.jsonSchema.definitions,o=oh(e.manifest,i);if(t.table=n.createInstance(Ut.PageTypeV2.ListReport,o,t.table),ah(t,n,r),VK(o,r,t,e,i),t.table.toolBar=n.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[Ut.DefinitionName.ToolBarLR],i,e.logger),r[Ut.DefinitionName.ActionsLR])for(let l in r[Ut.DefinitionName.ActionsLR].properties){let u=vs(l);t.table.toolBar.actions[u]=n.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[Ut.DefinitionName.Action],i,e.logger)}MK(t,n,e,r,i),t.footer={actions:{}};let s=r[Ut.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=vs(l);t.footer.actions[u]=n.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[Ut.DefinitionName.Action],i,e.logger)}}a(kK,"addSettings");function lh(e){if(Qt(),!Gl(e))return;let n=new Ni,i=n.createPageInstance(Ut.PageTypeV2.ListReport),r=[],o=Wl(e.manifest[Ut.ManifestSection.generic].pages,r);if(Hl(o,e.logger,o==null?void 0:o.entitySet),!!o)return kK(e,i,n,r[0]),e.flex.forEach(s=>{za(s)&&rh(i,s,e.jsonSchema,e.logger)}),Bl(i,e.manifest,o,Ut.PageTypeV2.ListReport,e.fragments),sh(i),i}a(lh,"createListReportConfig");var St=te(se());function jK(e,t,n,i){var u,p;let r=oh(e.manifest,i),o=e.jsonSchema.definitions;if(ah(t,n,o),t.table=n.createInstance(St.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),_n(t.table,e.manifest,o[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,o[St.DefinitionName.ToolBar],i,e.logger),o[St.DefinitionName.ActionsLR])for(let d in o[St.DefinitionName.ActionsLR].properties){let m=vs(d);t.table.toolBar.actions[m]=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.Action),_n(t.table.toolBar.actions[m],e.manifest,o[St.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,o[St.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),o[St.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let d=o[St.DefinitionName.SelectionFields].properties;for(let m in d){let T=m;t.filterBar.selectionFields[T]=n.createInstance(St.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[T],e.manifest,o.SelectionFieldDateSettings,i,e.logger,T)}}t.chart=n.createInstance(St.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,o.ChartSettings,i,e.logger),t.footer={actions:{}};let s=o[St.DefinitionName.FooterActionsLR];if(s)for(let d in s.properties){let m=vs(d);t.footer.actions[m]=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.FooterAction),_n(t.footer.actions[m],e.manifest,o[St.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[St.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:p.keyPerformanceIndicators;l&&Object.keys(l).forEach(d=>{t.keyPerformanceIndicators[d]=n.createInstance(St.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(St.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[d],e.manifest,o.KPISettings,i,e.logger,d)})}a(jK,"addSettings");function fh(e){if(Qt(),!Gl(e))return;let n=new Ni,i=n.createPageInstance(St.PageTypeV2.AnalyticalListPage),r=[],o=Kl(e.manifest[St.ManifestSection.generic].pages,r,e.logger);if(Hl(o,e.logger,o==null?void 0:o.entitySet),!!o)return jK(e,i,n,r[0]),e.flex.forEach(s=>{za(s)&&rh(i,s,e.jsonSchema)}),Bl(i,e.manifest,o,St.PageTypeV2.AnalyticalListPage,e.fragments),sh(i),i}a(fh,"createAnalyticalListPageConfig");var Ee=te(se());var Ku=require("@sap-ux/vocabularies-types/vocabularies/UI");var UK=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function BK(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(`${Ku.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ActionTitlePrefix}${t}`;else if(e[0].indexOf(Ku.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}a(BK,"getSingleSelectorIdPart");function WK(e){let t,n=e.split(":::");if(n.length===1)t=BK(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(`::${Ku.UIAnnotationTerms.LineItem}`,`/@${Ku.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}a(WK,"getFacetID");function GK(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let d=za(s),m=d&&((l=d.controlId)==null?void 0:l.split("--"))||[];if(d&&((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 b=WK(T);T=jb(T).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${T}::${d.content.property}`]={controlId:T,propertyId:d.content.property,facetId:b,newValue:d.content.newBinding!==void 0?d.content.newBinding:d.content.newValue,controlType:d.controlType,creation:d.creation}}}catch(d){oe(n,{severity:Ee.LogSeverity.Error,message:ee.t("FLEXERROR")},...d)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}a(GK,"prepareFlexChanges");var HK=a(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(B,"");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(B,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function KK(e,t,n,i,r,o){let s;r?s=[r.replace(/@/g,"")]:s=[o.replace(/@/g,""),o==null?void 0:o.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let l in e){let u=e[l],p=u.propertyId===t,d=t==="columns"&&u.controlType===Ee.ControlType.TableColumn;(p||d)&&s.indexOf(u==null?void 0:u.facetId)>-1&&lm(n,u,i.jsonSchema)}}a(KK,"importFlexChangesOfTable");function XK(e,t){return e.facetId==="template"&&t}a(XK,"isStandardActionFlexChange");function JK(e,t,n,i,r,o){var d;let s=!1,l=!1,u=a((m,T)=>T.every(b=>m.includes(b)),"idElementChecker");o?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let p=t.controlId.split("::");return t.controlType===Ee.ControlType.GroupElement&&l||((d=t.facetId)==null?void 0:d.includes(Ee.ActionTitlePrefix))&&!r&&s||r&&u(p,r.split("::"))&&s||e.title&&u(p,e.title.split("::"))||!t.facetId&&UK.includes(t.controlType)||XK(t,l)}a(JK,"matchSelector");function YK(e,t,n,i,r,o){var u;let s=new RegExp(`.*${o}`),l=new RegExp(`.*${r}`);for(let p in n){let d=n[p];if(d.propertyId!==i||d.controlType!==((u=e.properties[d.propertyId])==null?void 0:u[Ee.SchemaTag.controlType]))continue;JK(e,d,s,l,r,o)&&(t[i]=d.newValue)}}a(YK,"importFlexChanges");function QK(e,t,n,i){if(e&&t)for(let r in e){let o=t[r];o&&(oe(n.logger,{severity:Ee.LogSeverity.Warning,message:Vg(r,o),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}a(QK,"checkDeprecatedProperties");function zK(e,t,n,i,r,o,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let d=e.manifest.import;if(d&&typeof d=="function"){let m=d(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 QK(p,o,n,u),p}a(zK,"importManifestSetting");function Qi(e,t,n,i,r,o){var l,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let p in n.properties||n){let d=zn(t,p);if(p==="columns"||d!=null&&d.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))KK(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);YK(n,t,i.flexChanges,p,m,o)}else d!=null&&d.manifest&&zK(d,i.pageKeys,e,t,p,s,r)}}a(Qi,"transferSettingsAndFlexChanges");function M0(e,t,n,i){let r=Wi(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=`${bF}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Hg}${r}`;break}}return r.replace(/@/g,"")}a(M0,"getActionId");function qK(e,t,n,i){var r;for(let o in t){let s=t[o].$ref.split(B)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[o].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=M0(s,o,"","");e.actions[o]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Qi(n,e[Ee.PropertyName.actions][o],n.jsonSchema.definitions[l],i,{},u)}}}a(qK,"fillStandardActions");function uh(e,t,n,i,r,o){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};o&&(u.id=o);for(let p in t){let d=vs(p),m=M0(s,d,r,o);m&&(n[Ee.PropertyName.actions][d]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Qi(e,n[Ee.PropertyName.actions][d],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[d]&&Object.keys(n[Ee.PropertyName.actions][d]).length===0&&delete n[Ee.PropertyName.actions][d]}}qK(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}a(uh,"fillActions");function ZK(e,t,n,i,r){var s;let o;i[t.id].form.fields={};for(let l in n){o=`${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,"")}::${o}`:`${t.title}::${o}`;Qi(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}a(ZK,"fillFields");function eX(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}a(eX,"prepareTableSchema");function tX(e,t,n,i,r){var l,u;let o=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[o];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",d=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]=d;let m=e.jsonSchema.definitions,T=eX(p,t,m);Qi(e,i[t.id],t.schema,r,{title:t.title}),Qi(e,i[t.id][Ee.PropertyName.table],T,r,t);let b=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(b!=null&&b.properties){let E=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");uh(e,b.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}a(tX,"fillTableInConfig");function nX(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,o=r?$g(r.$ref):void 0;if(o){let s={key:t.replace("@",""),target:o};Bl(n[t],e.manifest,i,Ee.PageTypeV2.ObjectPage,e.fragments,s)}}a(nX,"fillCustomColumnsInConfig");function iX(e,t,n,i,r){let o=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[o];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)&&(Qi(e,i[t.id],t.schema,r,{title:t.title}),Qi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}a(iX,"fillChartSection");function rX(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&&Qi(e,n[t.id],t.schema,i,{title:t.title});let o=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");o!=null&&o.properties&&uh(e,o.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&ZK(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]}a(rX,"fillFormSection");function w0(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Qi(e,i[t.id],t.schema,r,t);let o,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?o=s.subsections.properties:o=s,V0(e,o,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}a(w0,"fillSubSection");function V0(e,t,n,i,r){var s;let o=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:HK(t[l]),schema:t[l],title:JT(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=o[`${p.type}<${l}>`],tX(e,p,n,i,r),nX(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=o[`${p.type}<${l}>`],iX(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=o[`${p.type}<${l}>`],rX(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":{p.schema=o[`${p.type}<${l}>`],w0(e,p,n,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=o[`${p.type}<${l}>`],w0(e,p,n,i,r))}}a(V0,"fillSectionsInConfig");function oX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let o in e){let s="fragmentName"in e[o]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[o]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Qi(r,s,l,n,{id:o}),t.sections.custom.push(s)}}}a(oX,"fillCustomSectionsInConfig");function aX(e,t){var p;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Qi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Qi(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>"];Qi(e,n.header,r,t);let o=i[Ee.DefinitionName.ObjectPageHeaderActions];o&&uh(e,o.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&uh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Qi(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.sections={};let l=i[Ee.DefinitionName.Sections];if(l){let d=(p=t.v2Page.component)==null?void 0:p.settings;V0(e,l.properties,d,n.sections,t)}let u=L0(e.manifest,e.entitySet);return oX(u,n,t,i,e),n}a(aX,"fillConfig");function ph(e){Qt();let t=Gl(e);if(!t)return;let n=e.entitySet,i=[],r=Oc(t,e.entitySet,i);if(Hl(r,e.logger,n),!r)return;let o=GK(e.flex,n),s=new Ni;return aX(e,{pageKeys:i,flexChanges:o,v2Page:r,factory:s})}a(ph,"createObjectPageConfigV2");function gh(e,t){var n,i;return(n=e.component)!=null&&n.name?Fg(ga((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}a(gh,"generateId");function sX(e,t,n,i,r,o,s){e.navigation={};let l=k0(t.pages,n,i,r,o);for(let u in l){let p=l[u];s[u]=p}for(let u in t.pages){let p=gh(t.pages[u],u);e.entitySet?e.navigation[p]=l[p].navigationProperty?`${e.entitySet}.${l[p].navigationProperty}`:e.entitySet:e.navigation[p]=l[p].navigationProperty?l[p].navigationProperty:p}}a(sX,"getPageConfigsAndNavigations");function k0(e,t,n,i,r,o){var l;let s={};for(let u in e){let p=e[u],d=gh(p,u);if(!d)continue;let m={pageType:ga((l=p.component)==null?void 0:l.name),entitySet:p.entitySet,...p.navigationProperty&&{navigationProperty:p.navigationProperty},...p.defaultLayoutType&&{defaultLayoutType:p.defaultLayoutType}};s[d]=m;let T=Object.keys(i).find(b=>b.includes(d))||Object.keys(i).find(b=>b.includes(d.slice(0,-1)))||Object.keys(i).find(b=>b.includes(m.pageType));if(T)if(m.pageType===mn.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[T],fragments:r,logger:o};m.config=lh(b)}else if(m.pageType===mn.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[T],fragments:r,logger:o};m.config=fh(b)}else{let b={manifest:n,flex:t,jsonSchema:i[T],entitySet:m.entitySet,fragments:r,logger:o};m.config=ph(b)}p.pages&&sX(m,p,t,n,i,r,s)}return s}a(k0,"getPagesAndConfigs");var Kb=class Kb extends ns{constructor(t){Qt();let n;t.manifest[mn.ManifestSection.generic]?n=t.manifest[mn.ManifestSection.generic].pages:oe(t.logger,{severity:mn.LogSeverity.Error,message:ee.t("NOFE"),location:{path:mn.MANIFESTPATH,range:[mn.ManifestSection.generic]}}),n||oe(t.logger,{severity:mn.LogSeverity.Error,message:ee.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:mn.MANIFESTPATH,range:[mn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&gh(n[i],i),o=new is,s=Nt(mn.SchemaType.Application),l=t.appSchemas[s.filename];_n(o,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,k0(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),mn.FioriElementsVersion.v2,o)}};a(Kb,"V2AppProvider");var dh=Kb;function Xu(e,t,n){var r,o;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||oe(n,{severity:mn.LogSeverity.Error,message:ee.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:mn.MANIFESTPATH}}),((o=l.component)==null?void 0:o.name)===t){let u=gh(l,s);i[u]=l}if(t===mn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Xu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}a(Xu,"getPages");var xa=te(se());var Es=te(se());var Jb=te(yT());var hn=te(se());var cX=["colorPalette","tabs"];function lX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}a(lX,"createCard");function j0(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),j0(e,n.join("|"))}return t}a(j0,"findAvailableId");function Ju(e,t,n,i,r,o){i!=null&&i.properties&&Xb(e,t,n,i.properties,r,o)}a(Ju,"transferManifestEntriesOVP");function Cc(e,t,n,i){return e.createInstance(hn.PageTypeV2.OverviewPage,i,n,t)}a(Cc,"assignReflectMetadataRules");function fX(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(B),r=e.appSchema.definitions[i[1]];t=Cc(e.factory,i[1],t,"CustomCard"),Ju(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}a(fX,"processAnyOfDefinitionsOfOVP");function uX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!cX.includes(i)?t[i]=(0,Jb.default)(t[i]||{},r||{},{arrayMerge:HT}):t[i]=r}a(uX,"checkSyncRuleForExport");function pX(e,t,n,i,r,o){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in hn.v2.CardSettingsType||n==="settings")l.settings=(0,Jb.default)(l.settings||{},r||{},{arrayMerge:HT});else if(r!==void 0){let u=e.manifest.export;uX(u,l,o,n,r)}else l[n]!==void 0&&delete l[n]}a(pX,"transferToManifest");function dX(e,t,n,i){Object.keys(e).forEach(r=>{let o=e[r].template,s;Object.values(hn.v2.CardTemplateType).includes(o)?s=Object.keys(t.definitions).filter(l=>{var p;let u=(p=t.definitions[l].properties)==null?void 0:p.template;if(u!=null&&u.enum)return u.enum.indexOf(e[r].template)>-1;if(u!=null&&u.const)return u.const===e[r].template}):s=["CustomCard"],e[r]=Cc(n,s[0],e[r],"CustomCard"),lX(r,i.manifest[hn.ManifestSection.ovp]),Ju(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[hn.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[hn.ManifestSection.ovp].cards[r]})}a(dX,"transferCards");function gX(e,t,n){if(t==="cards")dX(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,hn.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(B);e.currentObject=Cc(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ju(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Xb(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Xb(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}a(gX,"exportOfObject");function Xb(e,t,n,i,r,o){for(let l in i){if(l==="description")continue;let u=e[l],p=zn(e,l),d={pathHierarchy:o,propertyList:i,appSchema:n,currentObject:u,configObject:e,factory:r,exportResults:t};o[o.length-1]==="anyOf"?(d.currentObject=e[o[o.length-2]],u=fX(d)):u&&typeof u=="object"&&i[l]&&gX(d,l,r),p!=null&&p.manifest&&pX(p,o,l,t,u,e)}}a(Xb,"processProperties");function mX(e,t,n,i,r,o,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=kg(o,n,e.ui5Version,s,u),d=JSON.parse(JSON.stringify(e.exportResults.manifest));d["sap.app"].id=e.appId;let m=n.flex.createFlexChange(p,d);e.exportResults.flexChanges.find(b=>{let E=!1,C=JSON.parse(b);C={content:C.content,selector:C.selector};let R=JSON.parse(m);return R={content:R.content,selector:R.selector},JSON.stringify(C)===JSON.stringify(R)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}a(mX,"evaluateFlexRule");function hX(e,t,n,i,r,o){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[o]===void 0&&(n[o]={});else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,o):s!==!1&&(n[o]=i[r])}}a(hX,"exportConfigValue");function yX(e,t,n,i,r){let o=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)hX(e,n,o,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(o,r,i,s):Object.prototype.hasOwnProperty.call(o,s)&&delete o[s],Qa(e.exportResults.manifest,t)}}a(yX,"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(hn.FacetTitlePrefix)?r.split(hn.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}a(vX,"getManifestPathOfSections");function TX(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}a(TX,"getManifestPathOfTable");function EX(e,t,n,i,r){let o;return t[0]===hn.PropertyName.sections?o=vX(t,o,n,e,r):t[0]===hn.PropertyName.table?o=TX(t,o,n,e,i):t[0]==="keyPerformanceIndicators"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):o=n.manifest.path(e.pageKeys),o}a(EX,"getManifestPath");function bX(e,t,n,i,r,o,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)mX(e,i,t,r,o,n,s);else if(t.manifest){let u=EX(e,i,t,n,o);yX(e,u,t,s,n)}}a(bX,"evaluateExportRule");function AX(e,t,n){var s;let i=e.split("|"),r=i[1],o=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===o||o===void 0&&u.tabKey===""||o&&t.sectionKey===o)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Sm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(hn.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(hn.ViewTemplateType.ResponsiveTableColumnsExtension,hn.ViewTemplateType.ResponsiveTableCellsExtension);Sm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}a(AX,"deleteObsoleteColumn");function SX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=WF(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&AX(r,e,n)}a(SX,"deleteObsoleteColumnsFromFragment");function xX(e,t,n,i,r){let o={};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}=xm(n,i,s.tabKey||r,s.extensionType);o[l]||(o[l]={viewTemplateType:u,columns:[]}),o[l].columns.push(s)}return o}a(xX,"clusterConfigColumnsByPath");function $0(e,t,n,i){let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in hn.v2.TableColumnExtensionTypeV2){let{path:u}=xm(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};SX(p)}if(t){let l=xX(t,n,e.v2Page,s,r);for(let u in l)LE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}a($0,"transferColumnExtensions");function PX(e,t,n,i,r,o){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let d=j0(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(d)}for(let p=0;p<s.length;p++){let m=o.anyOf.find(b=>{var E;return(E=b.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split(B),T=e.appSchema.definitions[m[m.length-1]];Ts(e,t[p],i,[...r,s[p]],T)}let u=Bn(e.exportResults.manifest,iE());for(let p in u)Ub(p,l)&&!s.includes(p)&&delete u[p]}a(PX,"transferManifestExtensions");function IX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===hn.PropertyName.table){n=e[i-1];break}return Yn(n,t)}a(IX,"getSectionId");function OX(e,t,n,i,r,o){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);Ts(t,u.configObject,r,[...o,i],u.targetDefinition,l)})}a(OX,"transferIndexTable");function CX(e,t,n,i,r,o){let s,l=$g(e.$ref);l&&(s={target:l,key:IX(t,n)}),$0(i,r==null?void 0:r.custom,o.targetDefinition,s)}a(CX,"transferCustomColumns");function NX(e,t,n,i,r,o,s){e.anyOf.forEach(l=>{let u=Fo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&Ts(t,u.configObject,o,[...s,r],u.targetDefinition,u.title)})}a(NX,"handleAnyOfDefinitions");function RX(e,t,n,i,r,o,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")PX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(o&&r==="custom"){CX(l,t,s,e,n,o);return}else o?Ts(e,o.configObject,i,[...t,r],o.targetDefinition,o.title):l.anyOf&&NX(l,e,s,n==null?void 0:n[r],r,i,t)}a(RX,"transferComplexProperty");function Ts(e,t,n,i,r,o){let s;if(r!=null&&r.properties)for(let l in r.properties){s=t==null?void 0:t[l];let u=t&&Mg(t,l),p=u?[...n,u]:n,d=zn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=Fo(e.appSchema,o,s,m,l,e.factory,e.pageType);if(bX(e,d,t,[...i],p,o,l),OX(s,e,o,l,p,i),s===void 0||typeof s=="object")RX(e,i,t,p,l,T,o);else if((m==null?void 0:m.$ref)===B+"TableCustomColumns"){$0(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}a(Ts,"transferManifestEntriesAndFlexChange");function U0(e,t,n,i,r,o,s){let l=t[t.length-1],u=e.definitions[l];n[i]=Cc(r,i,n[i],l),o.push(i),Yb(r,n[i],s,u.properties,e,o)}a(U0,"transferSettingsOfRef");function LX(e,t,n,i,r,o,s){let l=zn(e,t);if(l!=null&&l.manifest){let u=l.manifest.path([...n,t]),p=Bn(i,u);Object.prototype.hasOwnProperty.call(p,t)&&El(l,p,t,e)}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&FX(e,t,r,o,s,n,i)}a(LX,"processOvpProperty");function FX(e,t,n,i,r,o,s){if(n[t].$ref){e[t]={};let l=n[t].$ref.split(B);U0(i,l,e,t,r,o,s)}else if(t==="settings"&&n[t].anyOf){e[t]={};let u=`${B}${Es.v2.cardTemplateSettingsMap[e.template]}`.split(B);U0(i,u,e,t,r,o,s)}}a(FX,"processPropertiesOfObject");function Yb(e,t,n,i,r,o){for(let s in i)LX(t,s,o,n,i,r,e)}a(Yb,"processOvpProperties");function _X(e,t,n,i){Yb(i,e,t,n.properties,n,[]),e.cards={},Object.keys(t[Es.ManifestSection.ovp].cards).forEach(r=>{let o=t[Es.ManifestSection.ovp].cards[r].template,s=Es.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[r]=Cc(i,s,{},"CustomCard"),e.cards=Cc(i,s,e.cards,"CustomCard"),Yb(i,e.cards[r],t,n.definitions[s].properties,n,[r])})}a(_X,"addSettings");function mh(e){let t=new Ni,n=t.createPageInstance(Es.PageTypeV2.OverviewPage);return e.jsonSchema&&_X(n,e.manifest,e.jsonSchema,t),n}a(mh,"createOverviewPageConfig");var Qb=class Qb extends ns{constructor(t){let n={},i=t.manifest[xa.ManifestSection.ovp],r=new is,o=Nt(xa.SchemaType.Application);_n(r,t.manifest,t.appSchemas[o.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(d=>d.includes(xa.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s]},u={pageType:xa.PageTypeV2.OverviewPage,config:mh(l),entitySet:i.globalFilterEntitySet},p=Fg(u.pageType,u.entitySet);n[p]=u,super(t.manifest,t.appSchemas,p,n,xa.FioriElementsVersion.v2,r,t.logger)}};a(Qb,"V2OvpProvider");var hh=Qb;var Bo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ne=te(se()),B0=require("path");function DX(){return([e,t],[n,i])=>t[ne.SchemaTag.propertyIndex]-i[ne.SchemaTag.propertyIndex]}a(DX,"sortByPropertyIndex");function Yu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(DX())}a(Yu,"sortPropertiesRecords");function W0(e){let t;return"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label),t}a(W0,"getExtensionText");function zb(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ne.v4.Placement.After)===ne.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}a(zb,"addExtensionToSortedArray");function wX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,d;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((d=n.position)==null?void 0:d.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}a(wX,"addRemainingTargetByBefore");function qb(e,t,n,i,r=!1){var u,p;let o=Object.entries(e).length,s=a((d,m)=>{let T=W0(d);return{$ref:`${B}${t}`,description:T,keys:[{name:ne.SchemaKeyName.key,value:`${m}`}]}},"getExtensionDetails");for(let d in e){let m=e[d],T=s(m,d);if((u=m.position)!=null&&u.anchor&&((p=m.position)!=null&&p.placement)){let b=n.findIndex(E=>E[0]===m.position.anchor);b>-1?(zb(m,n,b,d,T),delete e[d]):d===m.position.anchor||Object.keys(e).indexOf(m.position.anchor)===-1?(oe(i,{severity:pr.LogSeverity.Error,message:ee.t("INVALIDANCHOR",{id:d,anchor:m.position.anchor}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.generic]}}),n.splice(n.length,0,[d,T]),delete e[d]):r&&wX(e,d,m,n,T)}else r&&(zb(m,n,n.length,d,T),delete e[d])}let l=Object.entries(e).length;l>0&&o!==l?qb(e,t,n,i):l>0&&qb(e,t,n,i,!0)}a(qb,"adjustCustomExtReferringToCustomExt");function MX(e,t){var r,o;let n=((r=e.position)==null?void 0:r.placement)||ne.v4.Placement.After,i=(o=e.position)==null?void 0:o.anchor;if(!i){let s=n===ne.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}a(MX,"getExtensionAnchor");function VX(e,t){var i;let n=[];for(let r in e){let o=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===o);o&&!s&&n.push(r)}return n}a(VX,"getLocalExtensionsToSkip");function kX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ne.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let o=a((p,d)=>{for(let m of n){let T=t[m[0]];if(d(T))break;p++}return p},"findNextIndex"),s=0;return i===ne.v4.Placement.Before?s=o(0,p=>!p):s=o(-1,p=>{var d,m;return!!(p&&((d=p==null?void 0:p.position)!=null&&d.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ne.v4.Placement.Before))}),s>-1?s:0}a(kX,"getExtensionIndexByMergedApproach");function jX(e,t,n,i,r=!1){return r?kX(e,t,n):n.findIndex(o=>o[0]===i)}a(jX,"getExtensionIndex");function bs(e,t,n,i="template",r,o=!1){let s=[...t],l={...e},u=VX(l,s);for(let p in l){if(u!=null&&u.includes(p))continue;let d=l[p];if(!(i in d)){delete l[p];continue}let m={$ref:`${B}${n}`,description:W0(d)||p,keys:[{name:ne.SchemaKeyName.key,value:`${p}`}],actionType:ne.ActionType.Custom},T=MX(d,s);if(T){let b=jX(d,e,t,T,o);b>-1&&(zb(d,t,b,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&qb(l,n,t,r),t}a(bs,"addExtensionToArray");function Nc(e,t,n,i=ne.DefinitionName.CustomColumn,r,o){var T,b,E,C;let s=r||ne.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Yu(l),p=o?o.replace(/::/g,"/"):`@${Bo.UIAnnotationTerms.LineItem}`,d=(C=(E=(b=(T=t.options)==null?void 0:T.settings)==null?void 0:b.controlConfiguration)==null?void 0:E[p])==null?void 0:C.columns;d&&(u=bs(d,u,i,void 0,n));for(let R=0;R<u.length;R++)u[R][1][ne.SchemaTag.propertyIndex]=R;let m={};u.forEach(([R,L])=>m[R]=L),e.definitions[s].properties=m}a(Nc,"addCustomColumnDefinition");function $X(e,t,n,i,r,o=!0){if(i.Determining!==!0){let s;e.lineItemId.startsWith(ne.DefinitionName.LineItemsOfView)?s=ne.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ne.DefinitionName.LineItems)?s=ne.DefinitionName.ToolBarAction:s=ne.DefinitionName.ObjectPageToolBarAction;let l=i.Action.replace("/","::"),u=Ei(i,e.entityType),p=i.$Type.split(`${ne.UIVOCABULARY}.`)[1],d=Ug(i.Action),m=t.properties[`${p}::${d}`]={description:u};o?m.$ref=Un(s,ft(l)):(m.properties={},m.type="object",m.isViewNode=!0);let{key:T,ns:b}=xl(i.Action,!0);if(m[ne.SchemaTag.propertyIndex]=r,m[ne.SchemaTag.dataType]=to(i),m[ne.SchemaTag.keys]=[],i[ne.SchemaKeyName.semanticObject]&&m[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.semanticObject,value:i[ne.SchemaKeyName.semanticObject]}),m[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.action,value:T}),b&&(m[ne.SchemaTag.target]=b),m[ne.SchemaTag.annotationType]=i.$Type,o){let E=Dt(s,ft(l),e.appSchema);E[ne.SchemaTag.annotationPath]=`${n}/${r}`}else m[ne.SchemaTag.annotationPath]=`${n}/${r}`}}a($X,"addActionRecordToSchema");function UX(e,t,n,i,r){var u;let o=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ai(ne.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=va(s);if(l){let p=r;p||(p=e.appSchema.definitions[o]);let d=p.properties,m={description:Ei(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=B+n,m[ne.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[ne.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[ne.SchemaTag.propertyIndex]=i,m[ne.SchemaTag.dataType]=to(s),d[l]=m,zg(s,d,l)}}a(UX,"addLineItemRecordToSchema");function Zb(e,t,n,i,r=ne.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let o=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Bo.UIAnnotationTypes.DataFieldForAction||s.$Type===Bo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))$X(e,t,n,s,o,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Bo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;UX(e,l,u,o,i)}o++})}a(Zb,"appendLineItemsToSchema");function Rc(e,t=ne.DefinitionName.TableColumn,n=ne.DefinitionName.CustomColumn,i=ne.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:o}=Yg(e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);Zb(e,r,o,void 0,t)}a(Rc,"addLineItemsTypeToSchema");function Lc(e,t,n,i=ne.DefinitionName.Position,r){var p,d,m,T,b;let o=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(o)for(let E in o)E!=="custom"&&s.push(E);let l=t!==ne.DefinitionName.LineItems?r:`@${Bo.UIAnnotationTerms.LineItem}`,u=(b=(T=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.controlConfiguration)==null?void 0:T[l])==null?void 0:b.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;Ta(s,E)}}a(Lc,"addFragmentEnumForAnchor");function Wo(e,t,n=ne.DefinitionName.CustomActionPosition){es(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}a(Wo,"addEnumForActionAnchor");function yh(e,t,n,i){var o,s,l,u;let r;for(let p in e)if((i&&((s=(o=e[p].options)==null?void 0:o.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===ne.v4.FE_TEMPLATE_V4_ALP&&e[p].name===ne.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}a(yh,"findPageV4");function G0(e,t){let n,i=e.properties[ne.PropertyName.table];return t.templateType===ne.TemplateType.AnalyticalListPageV4?(n=ne.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${B}${ne.DefinitionName.ALPTableView}`,delete e.definitions[ne.DefinitionName.Table],delete e.definitions[ne.DefinitionName.LRChartView],delete e.definitions[ne.DefinitionName.LRTableView],delete e.definitions[ne.DefinitionName.MultiTableModeV4]):t.templateType===ne.TemplateType.ListReportObjectPageV4&&(n=ne.DefinitionName.Table,delete i.anyOf,i.$ref=`${B}${ne.DefinitionName.Table}`,e.definitions[n].properties[ne.PropertyName.annotationPath][ne.SchemaTag.hidden]=!0,delete e.definitions[ne.DefinitionName.ALPTableView],e.properties[ne.PropertyName.defaultPath][ne.SchemaTag.hidden]=!0),n}a(G0,"alignSchemaWithTemplateType");function As(e,t,n,i=ne.DefinitionName.CustomTableAction,r="",o=""){var d,m,T,b;let s=e.definitions[r];if(!s)return;let l=Yu(s),u;o?i.indexOf(ne.DefinitionName.CustomFormActionOP)!==-1?u=o.replace(/::/g,"#"):u=o.replace(/::/g,"/"):i===ne.DefinitionName.CustomFormActionOP?u=`@${Bo.UIAnnotationTerms.FieldGroup}`:u=`@${Bo.UIAnnotationTerms.LineItem}`;let p=(b=(T=(m=(d=t.options)==null?void 0:d.settings)==null?void 0:m.controlConfiguration)==null?void 0:T[u])==null?void 0:b.actions;if(p&&(l=bs(p,l,i,"press",n)),l){for(let C=0;C<l.length;C++)l[C][1][ne.SchemaTag.propertyIndex]=C;let E={};l.forEach(([C,R])=>E[C]=R),e.definitions[r].properties=E}}a(As,"addCustomActionDefinition");function vh(e,t,n,i=ne.DefinitionName.CustomHeaderActionOP,r=""){var p,d,m,T,b,E,C,R;let o=e.definitions[r];if(!o)return;let s=Yu(o),l;[ne.DefinitionName.CustomHeaderAction,ne.DefinitionName.CustomHeaderActionOP].includes(i)?l=(T=(m=(d=(p=t.options)==null?void 0:p.settings)==null?void 0:d.content)==null?void 0:m.header)==null?void 0:T.actions:l=(R=(C=(E=(b=t.options)==null?void 0:b.settings)==null?void 0:E.content)==null?void 0:C.footer)==null?void 0:R.actions,l&&(s=bs(l,s,i,"press",n));let u={};if(s){for(let L=0;L<s.length;L++)s[L][1][ne.SchemaTag.propertyIndex]=L;s.forEach(([L,F])=>u[L]=F)}e.definitions[r].properties=u}a(vh,"addHeaderFooterCustomActionDefinition");function Fc(e,t,n){let i=Dg(e,[ne.ManifestSection.ui5,"routing","targets"]);if(!i){oe(n,{severity:pr.LogSeverity.Error,message:ee.t("NOTARGETS"),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}let r=Dg(i,[t]);if(!r){oe(n,{severity:pr.LogSeverity.Error,message:ee.t("NOROUTINGID",{routingId:t}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}return r}a(Fc,"getManifestPage");function _c(e,t,n,i,r){var o,s;if(r){let l=((o=n["sap.app"])==null?void 0:o.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),d=p.pop();d=`${d}.${i}.${u}`;let m=(0,B0.join)(...p,d),T=e.find(b=>b.dataSourceUri.endsWith(m));if(T){let b=(s=t.options)==null?void 0:s.settings;return{file:T,relativeFilePath:m,connection:{contextPath:b==null?void 0:b.contextPath,entitySet:b==null?void 0:b.entitySet}}}}}a(_c,"getPageCustomExtensionFile");function Ss(e,t,n,i){let r=Fc(n,t,i),o=Dg(r,["options","settings","viewName"]);return r&&typeof o=="string"?_c(e,r,n,"view",o):void 0}a(Ss,"getPageCustomViewFile");function H0(e,t,n,i,r,o,s){var d,m,T,b,E,C,R,L;let l=Yu(t),u=new Map;if(l=l.map(F=>{let U=cm(e,F[1],F[0],{keyProperties:[ne.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(U.const,F[0]),[U.const,F[1]]}),o){let F=(E=(b=(T=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:b.sections)==null?void 0:E[o];F&&"subSections"in F&&(l=bs(F.subSections,l,i,"template",s,r))}else{let F=(L=(R=(C=n.options)==null?void 0:C.settings)==null?void 0:R.content)==null?void 0:L.header;F&&"facets"in F&&(l=bs(F.facets,l,i,"template",s,r))}for(let F=0;F<l.length;F++)l[F][1][ne.SchemaTag.propertyIndex]=F;let p={};l.forEach(([F,U])=>{F=u.get(F)||F,p[F]=U}),t.properties=p}a(H0,"addCustomSectionDefinition");function K0(e,t,n){var l,u,p;let i=Yu(t),r=new Map;i=i.map(d=>{let m=cm(e,d[1],d[0],{keyProperties:[ne.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,d[0]),[m.const,d[1]]});let o=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Bo.UIAnnotationTerms.SelectionFields}`];typeof o=="object"&&"filterFields"in o&&(i=bs(o.filterFields,i,ne.DefinitionName.CustomFilterField,"template"));for(let d=0;d<i.length;d++)i[d][1][ne.SchemaTag.propertyIndex]=d;let s={};i.forEach(([d,m])=>{d=r.get(d)||d,s[d]=m}),t.properties=s}a(K0,"addCustomFilterFieldDefinition");var w=te(se()),Dc=require("@sap-ux/vocabularies-types/vocabularies/UI");var BX=["header","filterBar","chart","table"];function eA(e,t,n,i){i||(i=t.definitions[w.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[w.SchemaTag.annotationPath]=eo(e.fullyQualifiedName,Dc.UIAnnotationTerms.SelectionFields));let r=0;return n==null||n.forEach(o=>{var p,d;let s=o.value,l="SelectionField::"+ft(o.value);o.type==="PropertyPath"&&(s=Ng(o,e)),i.properties[l]={$ref:B+l},i.properties[l][w.SchemaTag.propertyIndex]=r;let u=to(o);t.definitions[l]={type:"object",properties:{},description:s,additionalProperties:!1,...u&&{dataType:u}},t.definitions[l][w.SchemaTag.isViewNode]=!0,t.definitions[l][w.SchemaTag.keys]=[{name:w.SchemaKeyName.value,value:`${o.value}`}],((p=o.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[l][w.SchemaTag.target]=o.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(d=o.$target)!=null&&d.fullyQualifiedName&&(t.definitions[l][w.SchemaTag.target]=o.$target.fullyQualifiedName.split("/")[0]),t.definitions[l][w.SchemaTag.annotationType]=o==null?void 0:o.type,t.definitions[l][w.SchemaTag.annotationPath]=`${i[w.SchemaTag.annotationPath]}/${r}`,r++}),i}a(eA,"addSelectionFields");function WX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${Dc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let o={};return Object.keys(t).forEach(s=>{t[s].template||(o[s]=t[s])}),Object.keys(o).length>0?o:void 0}}a(WX,"getVisualFilters");function GX(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}a(GX,"getPropertiesIndex");function HX(e,t,n,i){var s,l,u,p,d,m;let r=GX(i,e),o=t.definitions[w.DefinitionName.VisualFilters];o.properties={};for(let T in n){let b=n[T];if(!b.template){let E=o.properties[T]={$ref:Un(w.DefinitionName.VisualFilter,T)},C=r.indexOf(T);C!==-1&&(E[w.SchemaTag.propertyIndex]=C);let R=Dt(w.DefinitionName.VisualFilter,T,t);(s=b.visualFilter)!=null&&s.valueList&&(R[w.SchemaTag.annotationPath]=`${T}/@${b.visualFilter.valueList}`);let L=(m=(d=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(F=>F.name===T))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:d.Label)==null?void 0:m.toString();R.description=L||T,R[w.SchemaTag.keys]=[{name:w.SchemaKeyName.value,value:T}]}}}a(HX,"addVisualFilters");function KX(e,t,n){t.additionalProperties={$ref:`#/definitions/${w.DefinitionName.CustomFilterField}`},K0(e,t,n);let i=e.definitions[w.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&es(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[w.SchemaKeyName.value,w.SchemaKeyName.key],descriptionAsFallback:!0})}a(KX,"applyCustomFilterFields");function XX(e,t,n,i){var l,u;let r=WX(n),o=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[w.DefinitionName.SelectionFields][w.SchemaTag.hidden]=!0,t.definitions[w.DefinitionName.SelectionFields].properties={},s=t.definitions[w.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},HX(e,t,r,o);else{let p=t.definitions[w.DefinitionName.FilterBar];p.properties.initialLayout[w.SchemaTag.hidden]=!0,p.properties.layout[w.SchemaTag.hidden]=!0,t.definitions[w.DefinitionName.CompactFilters][w.SchemaTag.hidden]=!0,t.definitions[w.DefinitionName.VisualFilters][w.SchemaTag.hidden]=!0}s=eA(e,t,o,s),KX(t,s,n)}a(XX,"addFilterBar");function J0(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let o=e.definitions[t];o.properties={},o.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${w.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=ft(`${w.DefinitionName.ChartToolBarAction}<${u.Action}>`),d=Ei(u,r),m=u.$Type.split(`${w.UIVOCABULARY}.`)[1],T=o.properties[`${m}::${u.Action}`]={$ref:B+p,description:d};T[w.SchemaTag.propertyIndex]=l,T[w.SchemaTag.annotationType]=u.$Type,T[w.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[w.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][w.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}a(J0,"defineActions");function X0(e,t,n,i){var l;let r,o,s;return e&&(n==="primary"?o=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?o=e.find(u=>u.value.indexOf(w.FacetBase.LineItem)>-1):i?o=e.find(u=>u.value.indexOf(i)>-1):o=e[0],r=typeof(o==null?void 0:o.value)=="string"?Tl(o.value):void 0,(l=o==null?void 0:o.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${o.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",w.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}a(X0,"findTheRightVisualization");function JX(e,t,n,i){let r="@UI.Chart",o=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:o,chartTitle:s}}a(JX,"analyzeChartAnnotation");function Jl(e,t,n,i,r,o){var m;let s,l,u="@UI.LineItem",p=e==null?void 0:e.split(`${w.UIVOCABULARY}.`)[1],d=p&&t[p];if(!d)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=d.Text,s=d.fullyQualifiedName.split(w.UIVOCABULARYALPHADOT)[0],p.startsWith("PresentationVariant")){let{visualization:T,targetAnnotation:b}=X0(d.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:T,targetAnnotation:b,namespace:s,title:l}}else if(p.startsWith("SelectionPresentationVariant")){let{visualization:T,targetAnnotation:b}=X0((m=d.PresentationVariant)==null?void 0:m.Visualizations,s,i,r);return T||(oe(o,{severity:w.LogSeverity.Error,message:ee.t("NOVISUALIZATIONS")}),T=u,b=`/${s}/`+T.replace("UI",w.UIVOCABULARY)),l=l||`View (${i})`,{visualization:T,targetAnnotation:b,namespace:s,title:l}}else if(p.startsWith("SelectionVariant")){let T=u,b=`/${s}/@${Dc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:T,targetAnnotation:b,namespace:s,title:l}}else if(p.startsWith("LineItem")){let T=u;d.qualifier&&(T+=`#${d.qualifier}`);let b=`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:T,targetAnnotation:b,namespace:s,title:l}}else if(p.startsWith("Chart")){let{visualization:T,targetAnnotation:b,chartTitle:E}=JX(s,e,d,i);return{visualization:T,targetAnnotation:b,namespace:s,title:E}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}a(Jl,"analyzeViewAnnotation");function YX(e,t,n,i){let r=e.definitions[w.DefinitionName.ALPChartView];if(e.definitions[w.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[w.DefinitionName.ALPChart][w.SchemaTag.isViewNode],n&&(e.definitions[w.DefinitionName.ALPChart][w.SchemaTag.annotationPath]=n),e.definitions[w.DefinitionName.ALPChart].properties.annotationPath[w.SchemaTag.hidden]=!0,r.properties.annotationPath[w.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${B}${w.DefinitionName.ALPChart}`,t){let o=t.split(w.UIVOCABULARYDOT)[1],s=i[o].fullyQualifiedName.split("@");r[w.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[w.SchemaTag.artifactType]=w.ArtifactType.Manifest,r[w.SchemaTag.key]="primary",r[w.SchemaTag.keys]=[{name:w.SchemaKeyName.key,value:"primary"}]}a(YX,"addALPChartView");function QX(e,t,n,i,r,o,s){var F,U,J,re,Ce,st;let l=n==null?void 0:n.annotations.UI,u=(J=(U=(F=t==null?void 0:t[0])==null?void 0:F.primary)==null?void 0:U[0])==null?void 0:J[w.SchemaTag.annotationPath],{targetAnnotation:p}=Jl(u,l,i.serviceAVT,"primary",void 0,i.logger);YX(e,u,p,l);let d="Actions<ALPChart>";e.definitions[w.DefinitionName.ViewChartToolBar].properties.actions.$ref=B+d,J0(e,d,l,p,n);let{visualization:m,targetAnnotation:T}=Jl((st=(Ce=(re=t==null?void 0:t[0])==null?void 0:re.secondary)==null?void 0:Ce[0])==null?void 0:st[w.SchemaTag.annotationPath],l,i.serviceAVT,"secondary",void 0,i.logger),b=e.definitions[s];m||r?(b.properties.toolBar.$ref=`${B}${w.DefinitionName.ToolBarLR}`,b.properties.columns={$ref:B+w.DefinitionName.LineItems},b.properties.annotationPath[w.SchemaTag.hidden]=!0):b.properties={};let E=e.definitions[w.DefinitionName.ALPTableView];e.definitions[w.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(E)),delete e.definitions[w.DefinitionName.ALPTable][w.SchemaTag.isViewNode],E.additionalProperties=!1,E.description="Table (key: secondary)",E.title="Table",m?(delete E.properties,E.$ref=`${B}${w.DefinitionName.ALPTable}`):r||(E.properties={}),E[w.SchemaTag.artifactType]=w.ArtifactType.Manifest;let C,R;if(m&&m.indexOf(w.FacetBase.LineItem)>-1?(C=m.split(".")[1],R=t[0].secondary[0].annotationPath.split(w.UIVOCABULARYDOT)[1]):r&&(C=R=r.split(w.UIVOCABULARYDOT)[1]),C){let k={appSchema:e,lineItemAnnotation:n==null?void 0:n.annotations.UI[C],entityType:n,oDataServiceAVT:i.serviceAVT,lineItemId:w.DefinitionName.LineItems};Rc(k,w.DefinitionName.ViewTableColumn),T&&(e.definitions[w.DefinitionName.ALPTable][w.SchemaTag.annotationPath]=T);let Ot=l[R].fullyQualifiedName.split("@");E[w.SchemaTag.annotationPath]=`/${Ot[0]}/@${Ot[1]}`,E[w.SchemaTag.key]="secondary",E[w.SchemaTag.keys]=[{name:w.SchemaKeyName.key,value:"secondary"}]}Nc(e,o,i.logger);let L=`${w.DefinitionName.Actions}<${ft(w.DefinitionName.LineItems)}>`;As(e,o,i.logger,void 0,L),Wo(e,L,w.DefinitionName.CustomActionPosition)}a(QX,"addALPViews");function zX(e,t){let n=`${w.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[w.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][w.SchemaTag.isViewNode],e.appSchema.definitions[n][w.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${w.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[w.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${B}${i}`;let r=`${w.DefinitionName.Actions}<${e.viewKey}>`;return J0(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[w.PropertyName.actions].$ref=`${B}${r}`,n}a(zX,"addViewChartDefinitions");function qX(e,t,n,i,r,o){let s=zX(e,t);n.definitions[s].properties.annotationPath[w.SchemaTag.hidden]=!0,n.definitions[s].properties.index[w.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[w.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${B}${s}`,description:o||l,title:l}}a(qX,"addViewChart");function ZX(e,t,n,i,r){var m;let o=`${w.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${w.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=Dt(w.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[w.SchemaTag.isViewNode],l[w.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Za(l.properties.toolBar,w.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${B}${o}`,description:e.title||u,title:u},Za(l.properties.columns,s),l.properties.annotationPath[w.SchemaTag.hidden]=!0,l.properties.index[w.SchemaTag.hidden]=!0,l.properties.entitySet[w.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(w.UIVOCABULARYDOT)[1],d={appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Rc(d,w.DefinitionName.ViewTableColumn,w.DefinitionName.ViewCustomColumn,w.DefinitionName.ViewCustomAction)}a(ZX,"addViewLineItems");function e3(e,t,n,i){e.properties[t][w.SchemaTag.isViewNode]=!0,e.properties[t][w.SchemaTag.annotationPath]=n?`/${n}/@${i[w.SchemaTag.annotationPath]}`:void 0,e.properties[t][w.SchemaTag.artifactType]=w.ArtifactType.Manifest,e.properties[t][w.SchemaTag.key]=t,e.properties[t][w.SchemaTag.keys]=[{name:w.SchemaKeyName.key,value:t}]}a(e3,"addTagsToView");function t3(e,t,n,i){var s;let r=i,o=e;return t.entitySet&&t.entitySet!==e.name&&(o=(s=n.serviceAVT)==null?void 0:s.entitySets.find(l=>l.name===t.entitySet),r=o.entityType),r}a(t3,"getTargetEntityType");function n3(e,t,n,i){let r=`${w.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${Dc.UIAnnotationTerms.LineItem}${n.split(w.Visualization.LineItem)[1]}`,l=Dt(w.DefinitionName.ViewCustomColumn,r,e.appSchema);Za(l.properties.position,w.DefinitionName.ViewPosition,r),Dt(w.DefinitionName.ViewPosition,r,e.appSchema),Nc(e.appSchema,i,t.logger,`${w.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Lc(e.appSchema,r,i,`${w.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&(delete e.appSchema.definitions.Position,delete e.appSchema.definitions.TableCustomColumn);let u=`${w.DefinitionName.Actions}<${r}>`,p=`${w.DefinitionName.ViewCustomAction}<${r}>`;As(e.appSchema,i,t.logger,p,u,s),Dt(w.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let d=`${w.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${B}${d}`,Wo(e.appSchema,u,d),e.appSchema.definitions.CustomActionPosition&&delete e.appSchema.definitions.CustomActionPosition}a(n3,"addViewCustomExtensions");function i3(e,t,n,i,r,o,s){if((e==null?void 0:e.indexOf(w.Visualization.LineItem))>-1)ZX(n,t,e,n.targetAnnotation,i),n3(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)qX(n,o,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:`${B}${w.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${B}${w.DefinitionName.LRTableView}`}}}a(i3,"addLRViewParts");function r3(e,t,n,i,r,o,s){var p;let l=e.definitions[s];l.properties={annotationPath:l.properties.annotationPath,initialLoad:l.properties.initialLoad,views:l.properties.views};let u=e.definitions.MultiTableModeV4;for(let d of t){if(!d[w.SchemaTag.key])continue;let m,T=t3(i,d,r,n),b=T==null?void 0:T.annotations.UI,{visualization:E,targetAnnotation:C,namespace:R,title:L}=Jl(d==null?void 0:d[w.SchemaTag.annotationPath],b,r.serviceAVT,d[w.SchemaTag.key],void 0,r.logger);d.entitySet&&(m=(p=n.navigationProperties.find(J=>J.targetTypeName===R))==null?void 0:p.name);let F=ft(d[w.SchemaTag.key]),U={viewKey:F,appSchema:e,targetAnnotation:C,navPropName:m,targetEntityType:T,title:L,entitySet:d.entitySet};i3(E,u,U,r,o,b,d),e3(u,F,R,d)}}a(r3,"addLRViews");function o3(e,t,n,i,r,o,s){var m,T,b;let l=e.definitions[s],{visualization:u,targetAnnotation:p,namespace:d}=Jl(i,t==null?void 0:t.annotations.UI,n.serviceAVT,void 0,w.Visualization.LineItem,n.logger);if(u){let E=u.split(".")[1],C=`${w.DefinitionName.LineItems}OfSPV::${ft(E)}`,R=e.definitions[`${s}SPV`]=JSON.parse(JSON.stringify(e.definitions[s]));delete R[w.SchemaTag.isViewNode],Za(R.properties.toolBar,w.DefinitionName.ToolBar,C),R[w.SchemaTag.annotationPath]=p,R.properties.columns={},Za(R.properties.columns,C),delete l.properties,Za(l,`${s}SPV`),l[w.SchemaTag.annotationPath]=`/${d}/@${i}`;let L=t==null?void 0:t.annotations.UI[E];L||oe(n.logger,{severity:w.LogSeverity.Error,message:ee.t("NOTARGET",{target:E})});let F={appSchema:e,lineItemAnnotation:L,entityType:t,oDataServiceAVT:n.serviceAVT,lineItemId:C};Rc(F);let U=(m=E.split("#"))==null?void 0:m[1],J=U?`@${Dc.UIAnnotationTerms.LineItem}#${U}`:`@${Dc.UIAnnotationTerms.LineItem}`;Nc(e,r,n.logger,void 0,C,J),Lc(e,C,r,void 0,J);let re=`${w.DefinitionName.Actions}<${C}>`,Ce=im(e,C,w.DefinitionName.CustomTableAction);As(e,r,n.logger,un(Ce),re,J),Wo(e,re,w.DefinitionName.CustomActionPosition)}else{l.properties.toolBar.$ref=`${B}${w.DefinitionName.ToolBarLR}`,Za(l.properties.columns,w.DefinitionName.LineItems);let E=(b=(T=t==null?void 0:t.annotations)==null?void 0:T[o])==null?void 0:b.LineItem;E||oe(n.logger,{severity:w.LogSeverity.Error,message:ee.t("NOLINEITEMS")});let C={appSchema:e,lineItemAnnotation:E,entityType:t,oDataServiceAVT:n.serviceAVT,lineItemId:w.DefinitionName.LineItems};Rc(C),Nc(e,r,n.logger),Lc(e,w.DefinitionName.LineItems,r),E&&(l[w.SchemaTag.annotationPath]=eo(t==null?void 0:t.fullyQualifiedName,E.term,E.qualifier));let R=`${w.DefinitionName.Actions}<${ft(w.DefinitionName.LineItems)}>`;As(e,r,n.logger,void 0,R),Wo(e,R,w.DefinitionName.CustomActionPosition)}}a(o3,"adaptTableDefinition");function a3(e,t,n){var i,r,o,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===w.TemplateType.ListReportObjectPageV4)){if((o=e.options.settings)!=null&&o.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===w.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)}}a(a3,"getDefaultAnnotationPath");function s3(e,t,n,i){var p,d,m,T,b;let r=(m=(d=(p=t.options)==null?void 0:p.settings)==null?void 0:d.views)==null?void 0:m.paths,o=n.entityType,s=n.entitySet,l=a3(t,o,n.templateType),u=G0(e,n);XX(o,e,t,i),n.templateType===w.TemplateType.ListReportObjectPageV4?(r?r3(e,r,o,s,n,t,u):((b=(T=t.options)==null?void 0:T.settings)!=null&&b.views||(e.definitions.MultiTableModeV4.properties={}),o3(e,o,n,l,t,i,u)),e.properties[w.PropertyName.chart][w.SchemaTag.hidden]=!0):n.templateType===w.TemplateType.AnalyticalListPageV4&&(QX(e,r,o,n,l,t,u),Lc(e,w.DefinitionName.LineItems,t))}a(s3,"addTableAndViews");function c3(e,t,n){let i=w.DefinitionName.HeaderActions,r=e.definitions[i];r[w.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let o=w.DefinitionName.CustomHeaderAction,s=e.definitions[o];s[w.SchemaTag.isViewNode]=!0,s.description="Custom Action",vh(e,t,n,o,i);let l=w.DefinitionName.CustomHeaderActionPosition;Dt(l,l,e,!1),s.properties.position.$ref=`${B}${l}`,Wo(e,i,l)}a(c3,"addHeaderActions");function Qu(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),o=e.entityType,s=e.serviceAVT&&ai(w.UIVOCABULARY,e.serviceAVT);if(r.properties[w.PropertyName.defaultTemplateAnnotationPath][w.SchemaTag.hidden]=!0,qa(o,r,w.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[w.ManifestSection.ui5].routing.targets;if(!l)return oe(e.logger,{severity:w.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:w.MANIFESTPATH,range:[w.ManifestSection.generic]}}),r;let u=yh(l,n,e.entitySet,i);if(!u)return r;c3(r,u,e.logger),s3(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,_o(r,BX),r}a(Qu,"generateListReportSchemaV4");var vr=require("@sap-ux/vocabularies-types/vocabularies/UI"),_=te(se());var $1=te(ic()),U1=te(j1()),B1=te(VA());var W1=te(se()),G1=te(se());function DJ(e,t){var i;let n=e;for(let r of t){let o=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=o==null?void 0:o[r.index]}return n}a(DJ,"findElementByXMLPath");function H1(e,t){return e[t]?!1:(e[t]={},!0)}a(H1,"ensureObjectExists");function wJ(e,t){let n={},i=un(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}a(wJ,"getPropertiesFromRef");function MJ(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:o,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,d=H1(l,i),m=l[i];return Uc({fullSchema:u,schema:p[i],element:o,contextPath:s,config:m,parent:e},t)||d}a(MJ,"traverseDefaultAggregation");function VJ(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}a(VJ,"isDefaultAggregationAppliable");function Uc(e,t){var d,m;let{schema:n,element:i,contextPath:r,config:o={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=wJ(s,n.$ref));for(let T in u){let b=u[T],E=typeof b=="object";if(E&&(p==null?void 0:p.defaultAggregation)===T&&VJ(u,p)&&(l=MJ(e,t,p)||l,E=!1),!!E)if((m=(d=b.metadata)==null?void 0:d.path)!=null&&m.length){let C=b.metadata.path,R=C.slice(r.length),L=DJ(i,R);l=H1(o,T)||l;let F=o[T];l=Uc({fullSchema:e.fullSchema,schema:b,element:L,contextPath:C,config:F,parent:e},t)||l}else l=t(e,b,o,T)||l}return l}a(Uc,"traverseSchema");function pf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:o}=(0,B1.parse)(e.fileContent),s=(0,U1.buildAst)(r,o);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,$1.xml2js)(e.fileContent)}catch(r){oe(n,{severity:G1.LogSeverity.Error,message:ee.t("XMLPARSEFAILURE",{error:tF(r)}),location:{path:e.dataSourceUri}})}return i}a(pf,"parseXML");function df(e){return`${W1.DefinitionName.CustomExtensionFragment}<${e}>`}a(df,"getCustomExtensionFragmentDefinitionKey");function fy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}a(fy,"getRootElement");var QA=te(se()),zA=te(se());var Sp=te(se());function Rs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}a(Rs,"getAttribute");function K1(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}a(K1,"getNodeByName");function kJ(e){let t=e.split("/"),n=-1;for(let i=0;i<t.length;i++)if(t[i]){t[i].startsWith("@")||(n=i);break}return n!==-1?{navigation:t[n],term:t.slice(n+1,t.length).join("/")}:{term:e}}a(kJ,"resolveMetaPath");function WA(e){var d;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Rs(t,"contextPath")||i.contextPath,o=Rs(t,"metaPath"),s=i.entitySet;if(!r&&!s)return;let l=r||`/${s}`;if(o){let m=kJ(o);m.navigation&&(l+="/"+m.navigation,o=m.term)}let u=n==null?void 0:n.resolvePath(l),p;switch((d=u==null?void 0:u.target)==null?void 0:d._type){case"EntitySet":{p=u.target.entityType;break}case"NavigationProperty":{p=u.target.targetType;break}case"EntityType":{p=u.target;break}}return p?{entityType:p,metaPath:o}:void 0}a(WA,"getEntityTypeResolution");function X1(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}a(X1,"applyAnnotationPath");function jJ(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,o,s;if(r&&i){let d=Jl(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(d.visualization){let m=d.visualization.split(".")[1];o=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],o!=null&&o.fullyQualifiedName&&(s=$T(r,o.fullyQualifiedName))}}if(o)return{lineItem:o,annotationPath:s}}a(jJ,"getTableLineItemAnnotationData");var J1={"sap.fe.macros.Chart":e=>{let t=WA(e);X1(e.schema,t)},"sap.fe.macros.FilterBar":e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=WA(e),o=(s=t.properties)==null?void 0:s.filterFields;if(typeof o=="object"&&r){o.properties||(o.properties={});let d=ai(Sp.UIVOCABULARY,n),m=d&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[d])==null?void 0:p.SelectionFields);eA(r.entityType,i,m,o)}},"sap.fe.macros.Table":e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=WA(e),o=t.properties.columns,s=t.properties.actions;if(typeof o=="object"&&typeof s=="object"&&r){o.properties||(o.properties={}),s.properties||(s.properties={});let l=ai(Sp.UIVOCABULARY,n);if(X1(t,r),t.annotationPath){let u=jJ(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Sp.DefinitionName.LineItems};Zb(p,s,t.annotationPath,o)}}}};var Y1=te(se());var $J=new Map([["filterFields","SelectionField::"]]),UJ=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),xp={anchor:"anchor",placement:"placement",key:"key"};function BJ(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[un(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return xp.anchor in r&&xp.placement in r}return!1}a(BJ,"isCustomExtensionSchema");function Q1(e){let t=$J.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=UJ.get(e),t&&(n.prefix=t)),n}a(Q1,"getAnnotationPrefix");function WJ(e,t,n,i){let r=t.properties[n],o=Q1(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Rs(l,xp.key)||n,p=Rs(l,xp.anchor),d=Rs(l,xp.placement)||Y1.v4.Placement.After,m=o.replace?`${o.prefix}${p}`:p,T={position:{anchor:m in t.properties?m:p,placement:d}};return{key:u,extension:T}}a(WJ,"getExtensionData");function GJ(e,t,n){let i={},r=[],o={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=WJ(e,t,s,n);i[p]=u,o[p]=s}else r.push([s,l])}bs(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 o&&(u=t.properties[o[l]]),u&&(u.propertyIndex=s)}}a(GJ,"updatePropertyIndices");function HJ(e,t,n,i){var o;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((o=i==null?void 0:i.metadata)!=null&&o.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Rs(e.subElements[s],"key")||r}return r}a(HJ,"getCorrectedAnchorEnumKey");function KJ(e,t,n,i){var o,s;let r=Q1(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;es(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let d=((s=(o=p.properties)==null?void 0:o[u])==null?void 0:s.oneOf)||[];for(let m of d)typeof m=="object"&&typeof m.const=="string"&&(m.const=HJ(e,m.const,r,t.properties[m.const]))}}a(KJ,"applyEnumsForAnchors");function z1(e,t,n,i){BJ(t,n)&&(i=i||e.name,GJ(e,t,i),KJ(e,t,n,i))}a(z1,"handleExtensions");var fw=te(cw());var lw="sap.fe.macros",nY=["id","key","title","text","label","header"];function uw(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}a(uw,"getElementName");function iY(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}a(iY,"isElementWithNamespace");function rY(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:o}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[o]=s}return t}a(rY,"getDependencies");function oY(e,t){let n="",i=e.attributes||[];for(let r of nY){let o=i.find(s=>s.key===r);if(o){n=`${r==="id"?"#":""}${o.value}`;break}}return n?`${t} ${n}`:t}a(oY,"getViewNodeDescription");function aY(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}a(aY,"findAvailableName");function pw(e,t){if(e.properties={},e.$ref){let n=un(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}}a(pw,"prepareSchemaProperties");function sY(e,t,n){t.properties||pw(t,n);let{properties:i={}}=t;for(let r of e.attributes){let o=i[r.key];o&&o.metadata&&(o.metadata.position=r.position)}}a(sY,"handleAttributes");function cY(e){e.type===zA.MacrosPropertyType.Control&&(e.internalId=(0,fw.v4)())}a(cY,"applyIdForMacros");function lY(e,t,n){var i,r;try{(r=(i=J1)[e])==null||r.call(i,t)}catch{oe(n,{severity:QA.LogSeverity.Error,message:ee.t("MACROS_ANNOTATION_ERROR",{control:e})})}}a(lY,"callAnnotationHandler");function fY(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===zA.MacrosPropertyType.Control&&(e.controlName=n)}a(fY,"updateMetadataByReference");function uY(e,t,n,i){var T,b,E,C,R;let r=n.schema;t.properties||pw(t,r);let o=t.properties[i],s=(T=o==null?void 0:o.metadata)==null?void 0:T.type,l=(b=o==null?void 0:o.metadata)==null?void 0:b.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(C=(E=o==null?void 0:o.metadata)==null?void 0:E.path)!=null&&C.length?aY(i,t.properties):i,d=[];o!=null&&o.$ref?d.push(un(o.$ref)):d=[`${lw}.${i}`,`${lw}.table.${i}`];let m=!1;for(let L of d){let F=(R=r.definitions)==null?void 0:R[L];if(typeof F!="object")continue;fY(u,F,L);let U=oY(e,i),J={$ref:eF(L),description:U,propertyIndex:n.index,metadata:u};sY(e,J,r),t.properties[p]=J,m=!0,lY(L,{...n,node:e,schema:J,rootSchema:n.schema},n.logger);break}if(cY(u),!m)if(o!=null&&o.properties)o.metadata=u;else{let L={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=L}return p}a(uY,"addControlToSchema");function dw(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let o=r.$ref.split(B)[1];o&&t.indexOf(o)===-1&&t.push(o)}dw(r,t)}}a(dw,"populateUsedDefinitionKeys");function pY(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}a(pY,"isElementAddableToSchema");function dY(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!K1(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}a(dY,"getDefaultAggregation");function gY(e,t,n,i){let r={};for(let o=0;o<e.length;o++){let s=e[o],l=!r[s.name];r[s.name]=!0,gw(s,t,{...n,isUnique:l,index:o,path:[...n.path,{name:uw(s),index:o}]},i)}}a(gY,"handleSubElementsOfXMLNode");function gw(e,t,n,i){var d,m,T;let r=[],{macrosPrefixes:o}=n,s=t!=null&&t.$ref?(d=n.schema.definitions)==null?void 0:d[un(t.$ref)]:t;if(iY(e,o)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let b=(T=t.metadata)==null?void 0:T.defaultAggregation;b&&pY(e,t.properties[b])&&(t=t.properties[b]);let E=e.name.split(":"),C=uY(e,t,n,E[E.length-1]);if(t.properties[C])t=t.properties[C];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),dw(t,i));let p=dY(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),gY(l,t,n,i),r.push({node:e,schema:t});for(let b of r)z1(b.node,b.schema,n.schema,b.name)}a(gw,"handleXMLNode");function mY(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}a(mY,"getMacrosPrefixes");function Bc(e,t,n,i){let r=pf(t.file,!0,i),o=[];if(!r)return;Qt();let s;if(!e){oe(i,{severity:QA.LogSeverity.Error,message:ee.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=rY(l),p=mY(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let d={};for(let m=0;m<l.subElements.length;m++){let T=l.subElements[m],b=!d[T.name];d[T.name]=!0,gw(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:b,path:[{name:uw(T),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},o)}for(let m in s.definitions)s.definitions[m].metadata&&!o.includes(m)&&delete s.definitions[m]}return s}a(Bc,"generateMacrosSchemaDefinition");function mw(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&&mw(i.subSections,t)}}a(mw,"populateTemplates");function hw(e,t,n,i){var s,l,u;let r=Fc(n.manifest,i),o=[];mw(((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)||{},o);for(let p of o){if(!p)continue;let d={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=df(p);e.definitions[m]=d;let T=_c(n.fragments,r,n.manifest,"fragment",p);if(T){d.metadata.filePath=T.relativeFilePath;let{properties:b={},definitions:E={}}=Bc(t,T,n.serviceAVT,n.logger)||{};d.properties=b;for(let C in E)e.definitions[C]||(e.definitions[C]=E[C])}}return t}a(hw,"resolveFragments");var hY=["header","layout","sections","footer"],yY=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],qA="Custom Action";function ZA(e,t,n,i,r,o,s){let{actionName:l,namespace:u}=Zg(t.item,e),p=va(t.item),d=t.item.fullyQualifiedName.replace(`@${vr.UIAnnotationTerms.Identification}`,`/@${vr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${ft(p)}>`,T=i.definitions[m]={type:"object",$ref:`${B}${_.DefinitionName.ObjectPageHeaderAction}`,description:Ei(t.item,r)};T[_.SchemaTag.isViewNode]=!0,T[_.SchemaTag.dataType]=to(t.item),T[_.SchemaTag.propertyIndex]=s,T[_.SchemaTag.keys]=[],t.item[_.SchemaKeyName.semanticObject]&&T[_.SchemaTag.keys].push({name:_.SchemaKeyName.semanticObject,value:t.item[_.SchemaKeyName.semanticObject]}),T[_.SchemaTag.keys].push({name:_.SchemaKeyName.action,value:l}),u&&(i.definitions[m][_.SchemaTag.target]=u),T[_.SchemaTag.actionType]=n,T[_.SchemaTag.annotationPath]=`/${d}`,o.properties[p]={$ref:`${B}${m}`},o.properties[p][_.SchemaTag.propertyIndex]=s}a(ZA,"addSingleHeaderActionV4");function yw(e,t,n,i){let r=`${e}Action`,o=`ObjectPageHeaderAction<${r}>`,s=t.definitions[o]={type:"object",description:`${e}`,additionalProperties:!0};return s[_.SchemaTag.isViewNode]=!0,s[_.SchemaTag.propertyIndex]=i,s[_.SchemaTag.keys]=[],s[_.SchemaTag.keys].push({name:_.SchemaKeyName.action,value:e}),s[_.SchemaTag.actionType]=_.ActionType.Standard,n.properties[r]={$ref:`${B}${o}`},n.properties[r][_.SchemaTag.propertyIndex]=i,s}a(yw,"addStandardHeaderAction");function vw(e,t,n,i,r,o){let s=va(e.item),l=Ei(e.item,n),u=ft(`${_.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${vr.UIAnnotationTerms.Identification}`,`/@${vr.UIAnnotationTerms.Identification}`),d=i.definitions[u]={type:"object",$ref:`${B}${_.DefinitionName.FooterActionV4}`,description:l};d[_.SchemaTag.isViewNode]=!0,d[_.SchemaTag.actionType]=t,d[_.SchemaTag.propertyIndex]=o,d[_.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${B}${u}`}}a(vw,"addSingleFooterAction");function vY(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===vr.UIAnnotationTypes.DataFieldForAction||i.$Type===vr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(yY.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}a(vY,"groupByCriticality");function TY(e,t,n,i,r){for(let o=0;o<e.length;o++)ZA(t,e[o],_.ActionType.Criticality,n,i,r,o)}a(TY,"addCriticalActions");function EY(e,t,n,i,r,o){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&&(ZA(t,e[s],_.ActionType.Copy,n,i,r,o),o++,e.splice(s,1))}a(EY,"addCopyAction");function bY(e,t,n,i,r,o){for(let s of e)ZA(t,s,_.ActionType.Annotation,n,i,r,o),o++}a(bY,"addUncriticalActions");function Tw(e,t,n,i){var r,o,s,l;(o=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&o[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[_.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${_.UIVOCABULARYALPHADOT}${i}`:e[_.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${_.UIVOCABULARYALPHADOT}${i}`}a(Tw,"setAnnotationPathFromEntitySetOrEntityType");function AY(e,t,n,i,r,o){let{criticalActions:s=[],unCriticalActions:l=[]}=n?vY(n):{};TY(s,r,t,e,i);let u=CF(o),p=NF(o);if(Jg(o)&&p){let m=yw("Edit",t,i,s.length);Tw(m,o,e,"UpdateHidden")}if(u){let m=yw("Delete",t,i,s.length+1);Tw(m,o,e,"DeleteHidden")}let d=s.length+2;EY(l,r,t,e,i,d),bY(l,r,t,e,i,d)}a(AY,"addHeaderActionCallBackV4");function SY(e,t,n,i){let r=[],o=[];i.forEach((s,l)=>{s.Determining&&s.$Type===vr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):o.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];vw(l,_.ActionType.Criticality,e,t,n,s)}for(let s=0;s<o.length;s++){let l=o[s];vw(l,_.ActionType.Annotation,e,t,n,r.length+s)}}a(SY,"addFooterActionCallBackV4");function xY(e,t,n,i,r){let o=n!==_.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${vr.UIAnnotationTerms.LineItem}`,s=o?`${_.DefinitionName.CustomColumnOP}<${n}>`:_.DefinitionName.CustomColumnOP,l=e.definitions[s];l[_.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${_.DefinitionName.CustomColumnOP}<${n}>`;Nc(e,t,r,u,n,i);let p=o?n:_.DefinitionName.PositionOP;Dt(_.DefinitionName.PositionOP,p,e,o);let d=o?`${_.DefinitionName.PositionOP}<${n}>`:_.DefinitionName.PositionOP;l.properties.position.$ref=`${B}${d}`,Lc(e,n,t,d,i.replace(/::/g,"/"))}a(xY,"addCustomColumnsOP");function PY(e,t,n,i,r){let o=n!==_.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${vr.UIAnnotationTerms.LineItem}`,s=o?`${_.DefinitionName.CustomTableActionOP}<${n}>`:_.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[_.SchemaTag.isViewNode]=!0,l.description=qA;let u=`${_.DefinitionName.CustomTableActionOP}<${n}>`,p=`${_.DefinitionName.Actions}<${ft(n)}>`;As(e,t,r,u,p,i);let d=o?n:_.DefinitionName.CustomActionPositionOP;Dt(_.DefinitionName.CustomActionPositionOP,d,e,o);let m=o?`${_.DefinitionName.CustomActionPositionOP}<${n}>`:_.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${B}${m}`,Wo(e,p,m)}a(PY,"addTableCustomActionsOP");function bw(e,t,n,i){let r=e.definitions[n];r[_.SchemaTag.isViewNode]=!0,r.description=qA;let o=n===_.DefinitionName.CustomHeaderActionOP?_.DefinitionName.ObjectPageHeaderActions:_.DefinitionName.FooterActions;vh(e,t,i,n,o);let s=n===_.DefinitionName.CustomHeaderActionOP?_.DefinitionName.CustomHeaderActionPositionOP:_.DefinitionName.CustomFooterActionPositionOP;Dt(s,s,e,!1),r.properties.position.$ref=`${B}${s}`,Wo(e,o,s),e.definitions[o]&&(e.definitions[o].additionalProperties={$ref:`${B}${n}`})}a(bw,"addHeaderFooterCustomActionsOP");function IY(e,t,n,i,r){let o=`${_.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[o];s[_.SchemaTag.isViewNode]=!0,s.description=qA;let l=`${_.DefinitionName.CustomFormActionOP}<${n}>`,u=`${_.DefinitionName.SectionActions}<${ft(n)}>`;As(e,t,r,l,u,i),Dt(_.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${_.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${B}${p}`,Wo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${B}${o}`})}a(IY,"addFormCustomActionsOP");function OY(e,t,n,i,r,o,s){let l=Pl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,d=Dt(_.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(d[_.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),d.properties.columns={$ref:`${B}${l}`},d.properties.toolBar.$ref=Un(_.DefinitionName.ObjectPageToolBar,t),d.properties.quickVariantSelection.$ref=Un(_.DefinitionName.QuickVariantSelectionV4OP,t);let m=Dt(_.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=Un(_.DefinitionName.AnnotationPathAsObject,t),Dt(_.DefinitionName.AnnotationPathAsObject,t,n),qa(e.entityType,n,`${_.DefinitionName.AnnotationPathAsObject}<${l}>`);let T={appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Rc(T,_.DefinitionName.ObjectPageTableColumn,_.DefinitionName.CustomColumnOP,_.DefinitionName.CustomTableActionOP),xY(n,o,l,t,s),PY(n,o,l,t,s),d}a(OY,"handleLineItem");function Aw(e,t,n,i,r,o,s){s&&(s.properties[t]={$ref:Un(_.DefinitionName.ObjectPageSectionTableV4,t)});let l=Dt(_.DefinitionName.ObjectPageSectionTableV4,t,n);ma(e,l,Pl(t)),l[_.SchemaTag.annotationPath]=e.annotationPath,l[_.SchemaTag.target]=e.namespace,l.properties.table.$ref=Un(_.DefinitionName.ObjectPageTable,t);let u=OY(e,t,n,i,r.serviceAVT,o,r.logger);return{sectionTable:l,table:u}}a(Aw,"handleSectionTable");function CY(e,t,n,i,r,o,s){let l;o===_.SectionType.Section?l=_.DefinitionName.ObjectPageSectionForm:o===_.SectionType.HeaderSection&&(l=_.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:Un(l,n)};let u=Dt(l,n,r);e.ID||(u.properties={}),ma(e,u,n),u[_.SchemaTag.annotationPath]=e.annotationPath,u[_.SchemaTag.target]=e.namespace,u[_.SchemaTag.isViewNode]=!0;let p=qg(o,e,u,r,_.FioriElementsVersion.v4,n);if(e.base===_.FacetBase.Form){let d=Pl(n);Dt(_.DefinitionName.CustomFormActionOP,p,r),IY(r,t,p,d,s)}}a(CY,"handleFormIdentification");function Ew(e,t,n,i,r){n.properties[t]={$ref:`${B}${r}`};let o=Dt(_.DefinitionName.CommonHeaderFacetSettings,r,i,!1);au(e,o,t),o[_.SchemaTag.annotationPath]=e.annotationPath,o[_.SchemaTag.target]=e.namespace,o[_.SchemaTag.dataType]=am(e==null?void 0:e.target),o[_.SchemaTag.isViewNode]=!0}a(Ew,"handleHeaderFacet");function NY(e,t,n,i){let r=Dt(_.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let o=0;e.Actions.forEach(s=>{let l=Ei(s,i),u=s.$Type.split(_.UIVOCABULARYDOT)[1],p=s.Action.replace("/","::"),d=r.properties[`${u}::${s.Action}`]={$ref:Un(_.DefinitionName.ObjectPageToolBarAction,p),description:l};d[_.SchemaTag.propertyIndex]=o,d[_.SchemaTag.annotationType]=s.$Type;let m=Dt(_.DefinitionName.ObjectPageToolBarAction,ft(p),n);m[_.SchemaTag.annotationPath]=sm(s),m[_.SchemaTag.dataType]=to(s),m.properties={},o++})}return r}a(NY,"handleChartActions");function RY(e,t,n,i){let r=Dt(_.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[_.SchemaTag.annotationPath]=sm(e),r[_.SchemaTag.dataType]=am(e.target||e),r[_.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=Un(_.DefinitionName.ObjectPageToolBar,t);let o=Dt(_.DefinitionName.ObjectPageToolBar,t,n);o.properties.actions.$ref=Un(_.DefinitionName.ObjectPageToolBarActions,t);let s=NY(e,t,n,i);return{chart:r,chartActions:s}}a(RY,"handleChart");function Sw(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:Un(_.DefinitionName.ObjectPageSectionChart,t)});let o=Dt(_.DefinitionName.ObjectPageSectionChart,t,n);au(e,o,t),o[_.SchemaTag.annotationPath]=sm(e),o.properties.chart.$ref=Un(_.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=RY(e.target||e,t,n,r);return{sectionChart:o,chart:s,chartActions:l}}a(Sw,"handleSectionChart");function LY(e,t,n,i,r,o){var m,T;let s,l,u;if(!(e!=null&&e.target)){oe(r.logger,{severity:_.LogSeverity.Error,message:ee.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=(m=e==null?void 0:e.target)==null?void 0:m.Visualizations,d=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(p!=null&&p[0])if(p[0].$target)s=p[0].$target,l=`@${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,u=s;else{s=p[0],l="@"+qT(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let E=r.entityType.navigationProperties.find(R=>R.name===d).targetType,C=l==null?void 0:l.split(_.UIVOCABULARYDOT)[1];u=C&&((T=E==null?void 0:E.annotations)==null?void 0:T.UI[C])}if(s){let b=l.split(_.UIVOCABULARYDOT)[1],E=e.target[_.SchemaTag.fullyQualifiedName].split("@")[0],C=d?`${d}::${l}`:l;if(b.startsWith(_.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:Un(_.DefinitionName.ObjectPageSectionChart,C)};let{sectionChart:R,chart:L}=Sw(s,C,n,void 0,e.entityType);R[_.SchemaTag.annotationPath]=e.annotationPath,au(e,R,t),L[_.SchemaTag.annotationPath]=`/${E}/${l}`,L[_.SchemaTag.target]=E}else if(b.startsWith(_.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:Un(_.DefinitionName.ObjectPageSectionTableV4,C)};let{sectionTable:R,table:L}=Aw(e,C,n,{target:u,entityType:e.entityType},r,o);R[_.SchemaTag.annotationPath]=e.annotationPath,au(e,R,t),delete R[_.SchemaTag.isViewNode],L[_.SchemaTag.annotationPath]=`/${E}/${l}`,L[_.SchemaTag.target]=E}}}a(LY,"handleSectionPresentationVariant");function FY(e){let t=e.facets||{};for(let n in t)if(t[n].base===_.FacetBase.CollectionFacet)return!0;return!1}a(FY,"containsCollectionFacet");function _Y(e,t,n){var o;let i=`${_.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[_.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((o=r.properties)==null?void 0:o.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};oc(n,_.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}a(_Y,"createCustomSubSectionReference");function xw(e,t,n,i,r,o){var d,m,T,b,E;let s=!1,l;r&&o?(s=!FY(r),l=_Y(t,o,n.featureToggles)):l=_.DefinitionName.ObjectPageCustomHeaderSectionFragment,e.additionalProperties={$ref:`${B}${l}`},H0(t,e,i,l,s,o,n.logger);let u=t.definitions[l];typeof u=="object"&&es(t,e,{schema:u,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.id,_.SchemaKeyName.key],descriptionAsFallback:!0});let p=u.properties.relatedFacet;if(l!=null&&l.includes(_.DefinitionName.ObjectPageCustomSubSectionFragment)&&s&&typeof p=="object"){let C=(E=(b=(T=(m=(d=i.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:b.sections)==null?void 0:E[o],R=C&&"subSections"in C?C.subSections:{};for(let L=p.oneOf.length-1;L>=0;L--){let F=p.oneOf[L];R[F.const]||(F.hidden=!0)}}}a(xw,"applyCustomSections");function DY(e,t,n,i,r,o,s,l){let u=l===0,p=i.properties[t]=ha(n,e,t),d={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:d},d[_.SchemaTag.annotationPath]=e.annotationPath,d[_.SchemaTag.target]=e.namespace,d[_.SchemaTag.keys]=[{name:_.SchemaKeyName.id,value:e.ID}],d[_.SchemaTag.isViewNode]=!0;let m=l+1;for(let T in e.facets)eS(o,e.facets,T,d,n,r,s,m);u&&xw(d,n,o,s,e,t)}a(DY,"handleCollection");function eS(e,t,n,i,r,o,s,l=0){let u=t[n],p=`ObjectPage${o}${u.base}<${Pl(n)}>`;switch(u.base){case _.FacetBase.PresentationVariant:{LY(u,n,r,i,e,s);break}case _.FacetBase.CollectionFacet:{DY(u,n,r,i,o,e,s,l);break}case _.FacetBase.LineItem:{if(o===_.SectionType.Section){let d=t[n];Aw(u,n,r,d,e,s,i)}break}case _.FacetBase.Form:case _.FacetBase.Identification:{CY(u,s,n,i,r,o,e.logger);break}case _.FacetBase.DataPoint:{Ew(u,n,i,r,p);break}case _.FacetBase.Chart:{o===_.SectionType.HeaderSection?Ew(u,n,i,r,p):o===_.SectionType.Section&&Sw(u,n,r,i);break}case _.FacetBase.Address:case _.FacetBase.Contact:{su(u,n,i,r,o);break}default:i.properties[n]=ha(r,u,n)}}a(eS,"addSection");function wY(e,t,n){let i=Rg(e.entityType,e.serviceAVT,_.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[_.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[_.DefinitionName.Sections];for(let o in i)eS(e,i,o,r,t,_.SectionType.Section,n);t.definitions[_.DefinitionName.CustomSections]&&(r.properties={...r.properties,...t.definitions[_.DefinitionName.CustomSections].properties})}a(wY,"addSections");function MY(e,t,n,i){let r=ZL(n,e.serviceAVT,_.FioriElementsVersion.v4,e.logger),o=t.definitions[_.DefinitionName.HeaderSections];if(o.properties={},o.additionalProperties=!1,!!r){for(let s in r)eS(e,r,s,o,t,_.SectionType.HeaderSection,i);xw(o,t,e,i),delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionAddress]}}a(MY,"addHeaderSections");function VY(e,t,n,i){Object.keys(n).forEach(r=>{var o,s,l,u,p;if(n[r].options&&n[r].options.settings&&(n[r].options.settings.entitySet===((o=e==null?void 0:e.entitySet)==null?void 0:o.name)||i&&n[r].options.settings.contextPath===i)&&n[r].name===_.v4.FE_TEMPLATE_V4_OBJECT_PAGE){let d=Lg(e.entityType,e.serviceAVT,e.logger),T=(p=(u=(l=(s=n[r].options)==null?void 0:s.settings)==null?void 0:l.content)==null?void 0:u.body)==null?void 0:p.sections;if(T)for(let b in T){let E=T[b];d.some(C=>C.key===b)||d.push({key:b,title:E.title,custom:!0})}om(t,[_.DefinitionName.ObjectPageCustomSectionFragment],d,["ID","label","key"])}})}a(VY,"addRelatedFacetKeysType");function kY(e,t,n){let i=e.entityType;nm(t,i),tm(t,i,e.entitySet,e.serviceAVT,AY),bw(t,n,_.DefinitionName.CustomHeaderActionOP,e.logger),i&&(t.definitions[_.DefinitionName.HeaderSections][_.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${vr.UIAnnotationTerms.HeaderFacets}`),MY(e,t,i,n)}a(kY,"addHeader");function Ip(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${B}${_.DefinitionName.Sections}`},!e.manifest[_.ManifestSection.ui5].routing||!e.manifest[_.ManifestSection.ui5].routing.targets)return oe(e.logger,{severity:_.LogSeverity.Error,message:ee.t("NOROUTING"),location:{path:_.MANIFESTPATH}}),r;let o=r.definitions[_.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:_.DefinitionName.Sections};if(o[_.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[_.ManifestSection.ui5].routing.targets;if(!s)return oe(e.logger,{severity:_.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let l=yh(s,_.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(kY(e,r,l),o[_.SchemaTag.isViewNode]=!0,e.entityType&&(o[_.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${vr.UIAnnotationTerms.Facets}`),wY(e,r,l),VY(e,r,s,n),oc(e.featureToggles,_.Features.BuildingBlocks)&&i){r.definitions[_.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{hw(r,i,e,l.id)}catch(u){oe(e.logger,{severity:_.LogSeverity.Error,message:u})}}em(r,e,_.FioriElementsVersion.v4,SY),bw(r,l,_.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[_.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[_.DefinitionName.GenericColumnsOP],delete r.definitions[_.DefinitionName.GenericSections],delete r.definitions[_.DefinitionName.GenericSubSections],delete r.definitions[_.DefinitionName.ObjectPageChart],delete r.definitions[_.DefinitionName.ObjectPageSectionAddress],delete r.definitions[_.DefinitionName.ObjectPageSectionChart],delete r.definitions[_.DefinitionName.ObjectPageSectionContact],delete r.definitions[_.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[_.DefinitionName.ObjectPageSectionForm],delete r.definitions[_.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[_.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[_.DefinitionName.ObjectPageSubSections],delete r.definitions[_.DefinitionName.ObjectPageTable],delete r.definitions[_.DefinitionName.ObjectPageToolBar],delete r.definitions[_.DefinitionName.ObjectPageToolBarAction],delete r.definitions[_.DefinitionName.ObjectPageToolBarActions],delete r.definitions[_.DefinitionName.QuickVariantSelectionV4OP],_o(r,hY),r}a(Ip,"generateObjectPageSchemaV4");function tS(e,t){return JSON.parse(JSON.stringify(t))}a(tS,"generateFreestyleSchemaV4");var Wr=te(se());function nS(e,t,n,i,r,o,s,l,u){let p=Ro(n,r),{entitySet:d,entityType:m}=Wc(p,s,t,r),T={templateType:Wr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:i,fragments:o,serviceAVT:p,logger:r,entitySet:d,entityType:m,featureToggles:u};return Ip(T,e,s,l)}a(nS,"generateObjectPageInterfaceV4");function uy(e,t,n,i,r,o,s){Qt();let l=Ro(i,r),{entitySet:u,entityType:p}=Wc(l,s,n,r),d={templateType:e,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:o,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Wr.TemplateType.ListReportObjectPageV4?Wr.v4.FE_TEMPLATE_V4_LIST_REPORT:Wr.v4.FE_TEMPLATE_V4_ALP;return Qu(d,t,m,s)}a(uy,"generateListReportInterfaceV4");function iS(e,t,n,i,r,o){let s=Ro(n,o),l={templateType:e,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:o};return tS(l,t)}a(iS,"generateFreestyleInterfaceV4");function rS(e,t,n,i,r,o,s){let l={};if(oc(o,Wr.Features.BuildingBlocks)){let u=Ro(r,s),p=Ss(i||[],t,n,s);l=p!=null&&p.file.fileContent?Bc(e,p,u,s):{}}return l}a(rS,"generateFPMCustomPageInterfaceV4");var Hc=require("@sap-ux/vocabularies-types/vocabularies/UI"),Nw=te(se());var Gc=te(se());var Ow=new Map([[Gc.PageTypeV2.ListReport,Gc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Gc.PageTypeV2.ObjectPage,Gc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Pw=a((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=a(e=>{var t;for(let[n,i]of Ow)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let o=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${o}`}return r}},"getExtensionKeyForImport"),jY=a((e,t)=>{let n="";for(let[r,o]of Ow)e.startsWith(r)&&(n=o);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Cw={manifest:{path:()=>`sap.ui5/extends/extensions/${Gc.v4.SAPUI5_CONTROLLER_EXTENSION}`,import:e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=Iw(n);i&&(t[i]={},Pw(e[n],t[i]))}return Object.keys(t).length?t:void 0},export:(e,t,n)=>{var o;let i=(t==null?void 0:t.id)||"",r=((o=t==null?void 0:t.settings)==null?void 0:o[n])||{};for(let s in r){let l=jY(s,i);e[l]||(e[l]={}),Pw(r[s],e[l])}for(let s in e){let l=Iw(s);l&&!r[l]&&delete e[s]}}}};var mt=a(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),gy=a(e=>mt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),my=a(e=>mt(e)+"/content/header","getSettingsPathForHeaderOP"),$Y=a(e=>mt(e)+"/content/footer","getSettingsPathForFooterOP"),Gr=a(e=>mt(e)+"/controlConfiguration","getControlConfigurationPath"),hy=a((e,t,n)=>Gr(e)+`/@${Hc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),yy=a(e=>Gr(e)+`/@${Hc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ls=a((e,t,n,i)=>Gr(e)+`/@${Hc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),oS=a((e,t,n,i)=>yy(e)+`/filterFields/${i}`,"getFilterFieldPath"),Hr=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Gr(e)+`/${o}/tableSettings`:void 0},"getTableSettingsPathForView"),qi=a((e,t,n,i,r)=>r?Hr(e,t,n,i,r):Gr(e)+`/@${Hc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),vy=a((e,t,n,i,r)=>qi(e,t,n,i,r)+Nw.QUICKVARPATH,"getQuickVariantPath"),Zi=a((e,t,n,i,r)=>{let o=r.replace(/\//gi,"??");return Gr(e)+`/${o}/columns/${i}`},"getColumnsPathForView"),Di=a((e,t,n,i,r)=>r?Zi(e,t,n,i,r):Gr(e)+`/@${Hc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),po=a((e,t,n,i,r)=>{let o=r.replace(/\//gi,"??");return Gr(e)+`/${o}/actions/${i}`},"getActionsPathForView"),Tr=a((e,t,n,i,r)=>r?po(e,t,n,i,r):Gr(e)+`/@${Hc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),er=a((e,t,n,i)=>Gr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Vn=a((e,t,n,i)=>Gr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),ui=a((e,t,n,i)=>my(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),go=a((e,t,n,i)=>$Y(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Nn=a((e,t,n)=>Gr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Fa=a((e,t,n,i)=>{let r=mt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Er=a((e,t,n,i)=>{let r=mt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),mf=a((e,t,n,i,r,o,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=mt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),dy=class dy{};a(dy,"ApplicationV4"),y([Ft("settings")],dy.prototype,"settings",2);var py=dy,Jo=class Jo{};a(Jo,"AppSettings"),y([v({manifest:{path:()=>"sap.app"}})],Jo.prototype,"title",2),y([v({manifest:{path:()=>"sap.app"}})],Jo.prototype,"description",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}}),I({since:"1.78.0"})],Jo.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:()=>"sap.ui5"}}),I({since:"1.56.0"})],Jo.prototype,"flexEnabled",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}})],Jo.prototype,"viewType",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}})],Jo.prototype,"path",2),y([v(Cw)],Jo.prototype,"controllerExtensions",2);var gf=Jo;var ge=te(se());function Tt(e,t,n,i,r,o,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=o&&o.replace(/\//g,"::");for(let d in n.properties){let m=zn(e,d);if(m!=null&&m.manifest){let T=m.manifest.path([i],t,p,...r);l=Lo(t,T,o,p,!0),l&&Object.keys(l).length>0&&(El(m,l,d,e,o,r),jg(u,l,T,s))}}}a(Tt,"importSettingsOfObject");var Bx={};ec(Bx,{ALPChart:()=>fS,ALPTable:()=>uS,ActionAfterExecutionConfiguration:()=>TS,ActionAfterExecutionConfigurationFooter:()=>kx,ActionAfterExecutionConfigurationForm:()=>$S,ActionAfterExecutionConfigurationOP:()=>Qp,ActionAfterExecutionConfigurationObjectPageHeader:()=>_x,ActionAfterExecutionConfigurationToolBarLR:()=>RS,Actions:()=>IS,CommonHeaderFacetSettings:()=>Ms,CommonViewSettings:()=>Ef,CustomActionPosition:()=>_S,CustomActionPositionOP:()=>kS,CustomFilterField:()=>QS,CustomFilterFieldPosition:()=>YS,CustomFooterActionOP:()=>Ux,CustomFooterActionPositionOP:()=>$x,CustomFormActionOP:()=>KS,CustomHeaderAction:()=>tx,CustomHeaderActionOP:()=>Mx,CustomHeaderActionPosition:()=>Kp,CustomHeaderActionPositionOP:()=>wx,CustomTableAction:()=>DS,CustomTableActionOP:()=>jS,FilterBar:()=>XS,FlexSettings:()=>dx,FooterActionV4:()=>jx,FormAction:()=>US,Header:()=>qS,HeaderActions:()=>zS,HeaderSections:()=>Tx,LRChartView:()=>pS,LRTableView:()=>dS,MultiTableModeV4:()=>mS,ObjectPageCustomHeaderSectionFlexSettings:()=>Rx,ObjectPageCustomHeaderSectionFragment:()=>Lx,ObjectPageCustomSectionFragment:()=>If,ObjectPageCustomSubSectionFragment:()=>Fx,ObjectPageFooter:()=>fx,ObjectPageFooterActions:()=>lx,ObjectPageForm:()=>WS,ObjectPageFormActions:()=>BS,ObjectPageHeader:()=>sx,ObjectPageHeaderAction:()=>Dx,ObjectPageHeaderActions:()=>ax,ObjectPageHeaderSectionAddress:()=>vx,ObjectPageHeaderSectionChart:()=>mx,ObjectPageHeaderSectionContact:()=>yx,ObjectPageHeaderSectionDataPoint:()=>hx,ObjectPageHeaderSectionForm:()=>gx,ObjectPageLayout:()=>Ix,ObjectPageTable:()=>qp,ObjectPageTableColumn:()=>Af,ObjectPageTableColumnAction:()=>nx,ObjectPageToolBarAction:()=>VS,PersonalizationType:()=>sS,PersonalizationTypeOP:()=>Cx,Position:()=>AS,PositionOP:()=>ix,QuickVariantSelectionV4:()=>lS,QuickVariantSelectionV4OP:()=>Nx,Table:()=>hS,TableColumn:()=>xy,TableColumnAction:()=>ES,TableCreationModeOP:()=>Ox,TableCustomColumn:()=>xS,TableCustomColumnOP:()=>rx,TableSettings:()=>Ty,TableViewExtension:()=>gS,TableViewSettings:()=>Np,ToolBar:()=>OS,ToolBarAction:()=>LS,ViewCustomActionPosition:()=>wS,ViewPersonalizationType:()=>cS,ViewPosition:()=>SS,ViewTableColumn:()=>Py,ViewTableColumnAction:()=>bS,ViewTableCustomAction:()=>MS,ViewTableCustomColumn:()=>PS,ViewToolBarAction:()=>FS,VisualFilter:()=>JS,checkViewOrder:()=>yS,deleteCreationModeProperty:()=>Lp,deletePersonalizationProperty:()=>To,exportCreationModeProperty:()=>Rp,exportPersonalization:()=>Sy,exportPersonalizationProperty:()=>vo});var aS=te(se());var UY=a((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 yo(e,t,n,i,r,o){let s=gy(e),l=UY(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let d=l[p];if(d&&(d[aS.SchemaTag.key]===(o==null?void 0:o.key)||d[aS.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}a(yo,"getSettingsPathForLRViewsPath");function BY(e,t,n,i,r,o){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),d=e[u];t===d.key?s[n]=d:p>=i&&p<=r?s[Math.max(0,p+o)]=d:s[u]=d}return s}a(BY,"fillNewlyOrderedViews");function yS(e,t){let n=t.key,i=e.findIndex(o=>(o==null?void 0:o.key)===n),r=t.index;if(i>-1&&i!==r){let o=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=BY(e,n,r,s,l,o);for(let p of Object.keys(u))e[p]=u[p]}}a(yS,"checkViewOrder");function Sy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}a(Sy,"exportPersonalization");function vo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}a(vo,"exportPersonalizationProperty");function To(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}a(To,"deletePersonalizationProperty");function vS(e,t,n,i,r,o){let s;if(!t||Object.keys(t).length===0){let l=e;Object.keys(l).forEach(u=>{l[u]&&l[u].key===r&&(e[Number(u)]={},s=u)})}if(s){let l=o.table.views;for(let u in l)l[u].index>s&&l[u].index--}}a(vS,"deleteView");function Rp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}a(Rp,"exportCreationModeProperty");function Lp(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}a(Lp,"deleteCreationModeProperty");function Rw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}a(Rw,"importPersonalization");function Lw(e,t,n,i){let r=e.findIndex(o=>o.key===i[0]);return r===-1?void 0:r}a(Lw,"determineIndexOfView");var hf=class hf{};a(hf,"PersonalizationType"),y([v({manifest:{path:qi,export:vo,delete:To}})],hf.prototype,"column",2),y([v({manifest:{path:qi,export:vo,delete:To}})],hf.prototype,"sort",2),y([v({manifest:{path:qi,export:vo,delete:To}})],hf.prototype,"filter",2);var sS=hf,yf=class yf{};a(yf,"ViewPersonalizationType"),y([v({manifest:{path:Hr,export:vo,delete:To}})],yf.prototype,"column",2),y([v({manifest:{path:Hr,export:vo,delete:To}})],yf.prototype,"sort",2),y([v({manifest:{path:qi,export:vo,delete:To}})],yf.prototype,"filter",2);var cS=yf,vf=class vf{};a(vf,"QuickVariantSelectionV4"),y([v({manifest:{path:vy}})],vf.prototype,"paths",2),y([v({manifest:{path:vy}})],vf.prototype,"hideTableTitle",2),y([v({manifest:{path:vy}})],vf.prototype,"showCounts",2);var lS=vf,mo=class mo{};a(mo,"TableSettings"),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"type",2),y([v({manifest:{path:qi,import:Rw,export:Sy}}),I({since:"1.86.0"})],mo.prototype,"personalization",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"selectionMode",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"selectAll",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"selectionLimit",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"enableExport",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"quickVariantSelection",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"condensedTableLayout",2);var Ty=mo,Ey=class Ey{};a(Ey,"ALPChart"),y([v({manifest:{path:t=>mt(t)+"/views/paths/0/primary/0",delete:vS}})],Ey.prototype,"annotationPath",2);var fS=Ey,Kc=class Kc{};a(Kc,"CommonViewSettings"),y([v({manifest:{path:yo,delete:ac}})],Kc.prototype,"key",2),y([v({manifest:{path:gy,import:Lw,export:(t,n)=>{yS(t,n)},delete:vS}})],Kc.prototype,"index",2),y([v({manifest:{path:yo,delete:ac}})],Kc.prototype,"annotationPath",2),y([v({manifest:{path:yo}})],Kc.prototype,"entitySet",2);var Ef=Kc,ho=class ho extends Ef{};a(ho,"TableViewSettings"),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"type",2),y([v({manifest:{path:Hr,import:Rw}}),I({since:"1.86.0"})],ho.prototype,"personalization",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"selectionMode",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"selectAll",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"selectionLimit",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"enableExport",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"quickVariantSelection",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"condensedTableLayout",2);var Np=ho;function WY(e){return Np}a(WY,"getTableViewSettings");var Op=class Op extends Np{};a(Op,"ALPTable"),y([v({manifest:{path:t=>mt(t)+"/views/paths/0/secondary/0",delete:ac}})],Op.prototype,"annotationPath",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Op.prototype,"initialLoad",2);var uS=Op,by=class by extends Ef{};a(by,"LRChartView"),y([v({manifest:{path:yo},generate:Qn})],by.prototype,"visible",2);var pS=by,Tf=class Tf extends WY(Ef){};a(Tf,"LRTableView"),y([v({manifest:{path:yo}})],Tf.prototype,"keepPreviousPersonalization",2),y([v({manifest:{path:yo}})],Tf.prototype,"entitySet",2),y([v({manifest:{path:yo},generate:Qn})],Tf.prototype,"visible",2);var dS=Tf,Fs=class Fs{};a(Fs,"TableViewExtension"),y([v({manifest:{path:yo}})],Fs.prototype,"key",2),y([v({manifest:{path:gy,import:Lw,export:(t,n)=>{yS(t,n)},delete:vS}})],Fs.prototype,"index",2),y([v({manifest:{path:yo}})],Fs.prototype,"label",2),y([v({manifest:{path:yo}})],Fs.prototype,"template",2),y([v({manifest:{path:yo},generate:Qn})],Fs.prototype,"visible",2);var gS=Fs,Ay=class Ay{};a(Ay,"MultiTableModeV4"),y([v({manifest:{path:t=>mt(t)+"/views"}})],Ay.prototype,"showCounts",2);var mS=Ay,Cp=class Cp extends Ty{};a(Cp,"Table"),y([v({manifest:{path:t=>mt(t)+"/views/paths/0/secondary/0",delete:ac}})],Cp.prototype,"annotationPath",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Cp.prototype,"initialLoad",2);var hS=Cp;var Fp=class Fp{};a(Fp,"ActionAfterExecutionConfiguration"),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Fp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Fp.prototype,"enableAutoScroll",2);var TS=Fp,_p=class _p{};a(_p,"TableColumn"),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],_p.prototype,"width",2),y([v({manifest:{path:Di}}),I({since:"1.85.0"})],_p.prototype,"availability",2);var xy=_p,Dp=class Dp{};a(Dp,"ViewTableColumn"),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Dp.prototype,"width",2),y([v({manifest:{path:Zi}}),I({since:"1.85.0"})],Dp.prototype,"availability",2);var Py=Dp,Iy=class Iy extends xy{};a(Iy,"TableColumnAction"),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Iy.prototype,"afterExecution",2);var ES=Iy,Oy=class Oy extends Py{};a(Oy,"ViewTableColumnAction"),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Oy.prototype,"afterExecution",2);var bS=Oy,wp=class wp{};a(wp,"Position"),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],wp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],wp.prototype,"placement",2);var AS=wp,Mp=class Mp{};a(Mp,"ViewPosition"),y([v({manifest:{path:(t,n,i,r,o)=>Zi(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],Mp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Zi(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],Mp.prototype,"placement",2);var SS=Mp,Yo=class Yo{};a(Yo,"TableCustomColumn"),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"position",2),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"header",2),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"width",2),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"template",2),y([v({manifest:{path:Di}}),I({since:"1.86.0"})],Yo.prototype,"horizontalAlign",2),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"availability",2),y([v({manifest:{path:Di}}),I({since:"1.85.0"})],Yo.prototype,"properties",2);var xS=Yo,Qo=class Qo{};a(Qo,"ViewTableCustomColumn"),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"position",2),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"header",2),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"width",2),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"template",2),y([v({manifest:{path:Zi}}),I({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"availability",2),y([v({manifest:{path:Zi}}),I({since:"1.85.0"})],Qo.prototype,"properties",2);var PS=Qo;var CS=class CS{};a(CS,"Actions");var IS=CS,NS=class NS{};a(NS,"ToolBar");var OS=NS;var Vp=class Vp{};a(Vp,"ActionAfterExecutionConfigurationToolBarLR"),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/afterExecution"}})],Vp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/afterExecution"}})],Vp.prototype,"enableAutoScroll",2);var RS=Vp,kp=class kp{};a(kp,"ToolBarAction"),y([v({manifest:{path:Tr}})],kp.prototype,"enableOnSelect",2),y([v({manifest:{path:Tr}})],kp.prototype,"afterExecution",2);var LS=kp,Cy=class Cy{};a(Cy,"ViewToolBarAction"),y([v({manifest:{path:po}})],Cy.prototype,"enableOnSelect",2);var FS=Cy,jp=class jp{};a(jp,"CustomActionPosition"),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],jp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],jp.prototype,"placement",2);var _S=jp,_a=class _a{};a(_a,"CustomTableAction"),y([v({manifest:{path:Tr}}),I({since:"1.84.0"})],_a.prototype,"text",2),y([v({manifest:{path:Tr}}),I({since:"1.84.0"})],_a.prototype,"position",2),y([v({manifest:{path:Tr}}),I({since:"1.84.0"})],_a.prototype,"press",2),y([v({manifest:{path:Tr}}),I({since:"1.84.0"})],_a.prototype,"requiresSelection",2),y([v({manifest:{path:Tr},generate:Qn}),I({since:"1.84.0"})],_a.prototype,"visible",2),y([v({manifest:{path:Tr},generate:Qn}),I({since:"1.84.0"})],_a.prototype,"enabled",2);var DS=_a,$p=class $p{};a($p,"ViewCustomActionPosition"),y([v({manifest:{path:(t,n,i,r,o)=>po(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],$p.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>po(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],$p.prototype,"placement",2);var wS=$p,Da=class Da{};a(Da,"ViewTableCustomAction"),y([v({manifest:{path:po}}),I({since:"1.84.0"})],Da.prototype,"text",2),y([v({manifest:{path:po}}),I({since:"1.84.0"})],Da.prototype,"position",2),y([v({manifest:{path:po}}),I({since:"1.84.0"})],Da.prototype,"press",2),y([v({manifest:{path:po}}),I({since:"1.84.0"})],Da.prototype,"requiresSelection",2),y([v({manifest:{path:po},generate:Qn}),I({since:"1.84.0"})],Da.prototype,"visible",2),y([v({manifest:{path:po},generate:Qn}),I({since:"1.84.0"})],Da.prototype,"enabled",2);var MS=Da;var Ny=class Ny{};a(Ny,"ObjectPageToolBarAction"),y([v({manifest:{path:Vn}})],Ny.prototype,"enableOnSelect",2);var VS=Ny,Up=class Up{};a(Up,"CustomActionPositionOP"),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Up.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Up.prototype,"placement",2);var kS=Up,wa=class wa{};a(wa,"CustomTableActionOP"),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],wa.prototype,"text",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],wa.prototype,"position",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],wa.prototype,"press",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],wa.prototype,"requiresSelection",2),y([v({manifest:{path:Vn},generate:Hi}),I({since:"1.84.0"})],wa.prototype,"visible",2),y([v({manifest:{path:Vn},generate:Hi}),I({since:"1.84.0"})],wa.prototype,"enabled",2);var jS=wa;var Bp=class Bp{};a(Bp,"ActionAfterExecutionConfigurationForm"),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/afterExecution"}})],Bp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/afterExecution"}})],Bp.prototype,"enableAutoScroll",2);var $S=Bp,Ry=class Ry{};a(Ry,"FormAction"),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],Ry.prototype,"afterExecution",2);var US=Ry,GS=class GS{};a(GS,"ObjectPageFormActions");var BS=GS,HS=class HS{};a(HS,"ObjectPageForm");var WS=HS;var _s=class _s{};a(_s,"CustomFormActionOP"),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],_s.prototype,"text",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],_s.prototype,"position",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],_s.prototype,"press",2),y([v({manifest:{path:Vn},generate:Hi}),I({since:"1.84.0"})],_s.prototype,"visible",2),y([v({manifest:{path:Vn},generate:Hi}),I({since:"1.84.0"})],_s.prototype,"enabled",2);var KS=_s;function GY(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}a(GY,"exportVisualFilterValueList");var bf=class bf{};a(bf,"FilterBar"),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.99.0"})],bf.prototype,"hideFilterBar",2),y([v({manifest:{path:yy}}),I({since:"1.93.0"})],bf.prototype,"initialLayout",2),y([v({manifest:{path:yy}}),I({since:"1.93.0"})],bf.prototype,"layout",2);var XS=bf,Wp=class Wp{};a(Wp,"VisualFilter"),y([v({manifest:{path:oS}}),I({since:"1.93.0"})],Wp.prototype,"availability",2),y([v({manifest:{path:oS,import:t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},export:GY,key:"visualFilter"}}),I({since:"1.93.0"})],Wp.prototype,"visualFilterValueList",2);var JS=Wp,Gp=class Gp{};a(Gp,"CustomFilterFieldPosition"),y([v({manifest:{path:(t,n,i,r)=>Ls(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Gp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>Ls(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Gp.prototype,"placement",2);var YS=Gp,Ds=class Ds{};a(Ds,"CustomFilterField"),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"label",2),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"property",2),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"template",2),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"required",2),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"position",2);var QS=Ds;var ZS=class ZS{};a(ZS,"HeaderActions");var zS=ZS,ex=class ex{};a(ex,"Header");var qS=ex;var Hp=class Hp{};a(Hp,"CustomHeaderActionPosition"),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Hp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Hp.prototype,"placement",2);var Kp=Hp,ws=class ws{};a(ws,"CustomHeaderAction"),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],ws.prototype,"text",2),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],ws.prototype,"position",2),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],ws.prototype,"press",2),y([v({manifest:{path:ui},generate:Qn}),I({since:"1.84.0"})],ws.prototype,"visible",2),y([v({manifest:{path:ui},generate:Qn}),I({since:"1.84.0"})],ws.prototype,"enabled",2);var tx=ws;var Xp=class Xp{};a(Xp,"ActionAfterExecutionConfigurationOP"),y([v({manifest:{path:(t,n,i,r)=>er(t,n,i,r)+"/afterExecution"}})],Xp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>er(t,n,i,r)+"/afterExecution"}})],Xp.prototype,"enableAutoScroll",2);var Qp=Xp,Jp=class Jp{};a(Jp,"ObjectPageTableColumn"),y([v({manifest:{path:er}}),I({since:"1.84.0"})],Jp.prototype,"width",2),y([v({manifest:{path:er}}),I({since:"1.85.0"})],Jp.prototype,"availability",2);var Af=Jp,ox=class ox extends Af{};a(ox,"ObjectPageTableColumnAction");var nx=ox,Yp=class Yp{};a(Yp,"PositionOP"),y([v({manifest:{path:(t,n,i,r)=>er(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Yp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>er(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Yp.prototype,"placement",2);var ix=Yp,zo=class zo{};a(zo,"TableCustomColumnOP"),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"position",2),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"header",2),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"width",2),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"template",2),y([v({manifest:{path:er}}),I({since:"1.86.0"})],zo.prototype,"horizontalAlign",2),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"availability",2),y([v({manifest:{path:er}}),I({since:"1.85.0"})],zo.prototype,"properties",2);var rx=zo;var cx=class cx{};a(cx,"ObjectPageHeaderActions");var ax=cx,Xc=class Xc{};a(Xc,"ObjectPageHeader"),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Xc.prototype,"editableHeaderContent",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Xc.prototype,"showRelatedApps",2),y([v({manifest:{path:my}}),I({since:"1.84.0"})],Xc.prototype,"visible",2),y([v({manifest:{path:my}}),I({since:"1.84.0"})],Xc.prototype,"anchorBarVisible",2);var sx=Xc;var ux=class ux{};a(ux,"ObjectPageFooterActions");var lx=ux,px=class px{};a(px,"ObjectPageFooter");var fx=px;var Ly=class Ly{};a(Ly,"FlexSettings"),y([v({manifest:{path:(t,n,i)=>hy(t,n,i)+"/flexSettings"}}),I({since:"1.81.0"})],Ly.prototype,"designtime",2);var dx=Ly,zp=class zp{};a(zp,"CommonHeaderFacetSettings"),y([v({manifest:{path:hy}}),I({since:"1.81.0"})],zp.prototype,"stashed",2),y([v({manifest:{path:hy}}),I({since:"1.81.0"})],zp.prototype,"flexSettings",2);var Ms=zp,Ex=class Ex extends Ms{};a(Ex,"ObjectPageHeaderSectionForm");var gx=Ex,bx=class bx extends Ms{};a(bx,"ObjectPageHeaderSectionChart");var mx=bx,Ax=class Ax extends Ms{};a(Ax,"ObjectPageHeaderSectionDataPoint");var hx=Ax,Sx=class Sx extends Ms{};a(Sx,"ObjectPageHeaderSectionContact");var yx=Sx,xx=class xx extends Ms{};a(xx,"ObjectPageHeaderSectionAddress");var vx=xx,Px=class Px{};a(Px,"HeaderSections");var Tx=Px;var Fy=class Fy{};a(Fy,"ObjectPageLayout"),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Fy.prototype,"sectionLayout",2);var Ix=Fy;var _y=te(se());var Sf=class Sf{};a(Sf,"TableCreationModeOP"),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:(t,n,i)=>{Rp(t,n,i)},delete:(t,n,i,r)=>{Lp(t,r)}}})],Sf.prototype,"name",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:(t,n,i)=>{Rp(t,n,i)},delete:(t,n,i,r)=>{Lp(t,r)}}})],Sf.prototype,"createAtEnd",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:(t,n,i)=>{Rp(t,n,i)},delete:(t,n,i,r)=>{Lp(t,r)}}})],Sf.prototype,"inlineCreationRowsHiddenInEditMode",2);var Ox=Sf,xf=class xf{};a(xf,"PersonalizationTypeOP"),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:vo,delete:To}})],xf.prototype,"column",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:vo,delete:To}})],xf.prototype,"sort",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:vo,delete:To}})],xf.prototype,"filter",2);var Cx=xf,Pf=class Pf{};a(Pf,"QuickVariantSelectionV4OP"),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i)+_y.QUICKVARPATH}})],Pf.prototype,"paths",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i)+_y.QUICKVARPATH}})],Pf.prototype,"hideTableTitle",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i)+_y.QUICKVARPATH}})],Pf.prototype,"showCounts",2);var Nx=Pf,tr=class tr{};a(tr,"ObjectPageTable"),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"type",2),y([v({manifest:{path:Nn,import:t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}}}}),I({since:"1.84.0"})],tr.prototype,"creationMode",2),y([v({manifest:{path:Nn,import:t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},export:Sy}}),I({since:"1.86.0"})],tr.prototype,"personalization",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"selectionMode",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"selectAll",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"selectionLimit",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"enableExport",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"quickVariantSelection",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"condensedTableLayout",2),y([v({manifest:{path:Nn}}),I({since:"1.86.0"})],tr.prototype,"enableFullScreen",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"enablePaste",2);var qp=tr;var Dy=class Dy{};a(Dy,"ObjectPageCustomHeaderSectionFlexSettings"),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"flexSettings")}}),I({since:"1.81.0"})],Dy.prototype,"designtime",2);var Rx=Dy,nr=class nr{};a(nr,"ObjectPageCustomHeaderSectionFragment"),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"position"),key:"anchor"}}),I({since:"1.77.0"})],nr.prototype,"relatedFacet",2),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"position"),key:"placement"}}),I({since:"1.77.0"})],nr.prototype,"relativePosition",2),y([v({manifest:{path:Er},generate:Hi}),I({since:"1.84.0"})],nr.prototype,"visible",2),y([v({manifest:{path:Er}}),I({since:"1.77.0"})],nr.prototype,"title",2),y([v({manifest:{path:Er}}),I({since:"1.77.0"})],nr.prototype,"subTitle",2),y([v({manifest:{path:Er,import:t=>t.name||t.template,key:"template"}}),I({since:"1.77.0"})],nr.prototype,"fragmentName",2),y([v({manifest:{path:Er,import:t=>t.templateEdit,key:"templateEdit"}}),I({since:"1.86.0"})],nr.prototype,"templateEdit",2),y([v({manifest:{path:Er}}),I({since:"1.81.0"})],nr.prototype,"stashed",2),y([v({manifest:{path:Er}}),I({since:"1.81.0"})],nr.prototype,"flexSettings",2),y([v({manifest:{path:Er}}),I({since:"1.81.0"})],nr.prototype,"requestGroupId",2),y([v({manifest:{path:Er,import:!1,export:!1},xml:t=>t.fragmentName}),I({since:"1.96.0"})],nr.prototype,"controls",2);var Lx=nr;var ks=te(se());var Eo=class Eo{};a(Eo,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:(t,n,i)=>Fa(t,n,i,"position"),key:"anchor"}}),I({since:"1.77.0"})],Eo.prototype,"relatedFacet",2),y([v({manifest:{path:Fa,import:(t,n)=>n,export:!1}}),I({since:"1.77.0"})],Eo.prototype,"id",2),y([v({manifest:{path:(t,n,i)=>Fa(t,n,i,"position"),key:"placement"}}),I({since:"1.77.0"})],Eo.prototype,"relativePosition",2),y([v({manifest:{path:Fa}}),I({since:"1.77.0"})],Eo.prototype,"title",2),y([v({manifest:{path:Fa,import:t=>!t.type||t.type.startsWith(ks.v4.CustomSectionViewTypesV4.XML)?ks.v4.CustomSectionViewTypesV4.XML:"",export:(t,n)=>{let i="";"type"in n&&(i+=n.type),"className"in n&&(n.className===ks.SAPUI5_FRAGMENT_CLASS?i+="Fragment":i+=n.className),t.type=i}}}),I({since:"1.77.0"})],Eo.prototype,"type",2),y([v({manifest:{path:Fa,import:t=>!t.type||t.type.startsWith(ks.v4.CustomSectionViewTypesV4.XML)?!t.type||t.type==="XMLFragment"?ks.SAPUI5_FRAGMENT_CLASS:t.type.slice(ks.v4.CustomSectionViewTypesV4.XML.length):t.type,export:!1}}),I({since:"1.77.0"})],Eo.prototype,"className",2),y([v({manifest:{path:Fa,import:t=>t.name||t.template,key:"template"}}),I({since:"1.77.0"})],Eo.prototype,"fragmentName",2),y([v({manifest:{path:Fa,import:!1,export:!1},xml:t=>t.fragmentName}),I({since:"1.96.0"})],Eo.prototype,"controls",2);var If=Eo,Vs=class Vs extends If{};a(Vs,"ObjectPageCustomSubSectionFragment"),y([v({manifest:{path:(...t)=>`${mf.apply({},t)}/position`,key:"anchor"}}),I({since:"1.77.0"})],Vs.prototype,"relatedFacet",2),y([v({manifest:{path:(...t)=>`${mf.apply({},t)}/position`,key:"placement"}}),I({since:"1.77.0"})],Vs.prototype,"relativePosition",2),y([v({manifest:{path:mf}}),I({since:"1.77.0"})],Vs.prototype,"title",2),y([v({manifest:{path:mf,import:t=>t.name||t.template,key:"template"}}),I({since:"1.77.0"})],Vs.prototype,"fragmentName",2),y([v({manifest:{path:mf,import:!1,export:!1},xml:t=>t.fragmentName}),I({since:"1.96.0"})],Vs.prototype,"controls",2);var Fx=Vs;var Zp=class Zp{};a(Zp,"ActionAfterExecutionConfigurationObjectPageHeader"),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/afterExecution"}})],Zp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/afterExecution"}})],Zp.prototype,"enableAutoScroll",2);var _x=Zp,wy=class wy{};a(wy,"ObjectPageHeaderAction"),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],wy.prototype,"afterExecution",2);var Dx=wy,Vx=class Vx extends Kp{};a(Vx,"CustomHeaderActionPositionOP");var wx=Vx,js=class js{};a(js,"CustomHeaderActionOP"),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],js.prototype,"text",2),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],js.prototype,"position",2),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],js.prototype,"press",2),y([v({manifest:{path:ui},generate:Hi}),I({since:"1.84.0"})],js.prototype,"visible",2),y([v({manifest:{path:ui},generate:Hi}),I({since:"1.84.0"})],js.prototype,"enabled",2);var Mx=js;var ed=class ed{};a(ed,"ActionAfterExecutionConfigurationFooter"),y([v({manifest:{path:(t,n,i,r)=>go(t,n,i,r)+"/afterExecution"}})],ed.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>go(t,n,i,r)+"/afterExecution"}})],ed.prototype,"enableAutoScroll",2);var kx=ed,My=class My{};a(My,"FooterActionV4"),y([v({manifest:{path:go}}),I({since:"1.84.0"})],My.prototype,"afterExecution",2);var jx=My,td=class td{};a(td,"CustomFooterActionPositionOP"),y([v({manifest:{path:(t,n,i,r)=>go(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],td.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>go(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],td.prototype,"placement",2);var $x=td,$s=class $s{};a($s,"CustomFooterActionOP"),y([v({manifest:{path:go}}),I({since:"1.84.0"})],$s.prototype,"text",2),y([v({manifest:{path:go}}),I({since:"1.84.0"})],$s.prototype,"position",2),y([v({manifest:{path:go}}),I({since:"1.84.0"})],$s.prototype,"press",2),y([v({manifest:{path:go},generate:Hi}),I({since:"1.84.0"})],$s.prototype,"visible",2),y([v({manifest:{path:go},generate:Hi}),I({since:"1.84.0"})],$s.prototype,"enabled",2);var Ux=$s;var Kx={};ec(Kx,{FreestylePage:()=>Gx,ListReport:()=>br,ObjectPage:()=>bo});function HY(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(o=>delete e[o])}a(HY,"deleteAllALPViews");function KY(){}a(KY,"doNotExport");function XY(){}a(XY,"doNotImport");var br=class{};a(br,"ListReport"),y([v({manifest:{path:t=>mt(t)+"/views",import:XY,export:KY,delete:HY}})],br.prototype,"chart",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],br.prototype,"variantManagement",2),y([v({manifest:{path:t=>mt(t)+"/views/paths/[]/0"}})],br.prototype,"defaultPath",2),y([v({manifest:{path:t=>mt(t)}})],br.prototype,"defaultTemplateAnnotationPath",2),y([Ft("header")],br.prototype,"header",2),y([Ft("fe::FilterBar")],br.prototype,"filterBar",2),br=y([Dr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],br);var Wx=te(se());var bo=class{};a(bo,"ObjectPage"),y([Ft("header")],bo.prototype,"header",2),y([Ft("layout")],bo.prototype,"layout",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],bo.prototype,"variantManagement",2),y([Ft("sections")],bo.prototype,"sections",2),bo=y([Dr({id:`${Wx.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Wx.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],bo);var Hx=class Hx{};a(Hx,"FreestylePage");var Gx=Hx;var Vy=te(se());var JY={},YY={},QY={Table:qp,TableColumn:Af,ObjectPageCustomSectionView:If,ActionAfterExecutionConfiguration:Qp},zY={[Vy.PageTypeV2.AnalyticalListPage]:JY,[Vy.PageTypeV2.ListReport]:YY,[Vy.PageTypeV2.ObjectPage]:QY},Xx=class Xx extends Xl{constructor(){super(Bx,Kx,zY)}};a(Xx,"MetadataInstanceFactoryV4");var Ma=Xx;var Jx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yx(e,t,n,i,r,o,s){var d,m,T,b,E,C;let l=t.jsonSchema.definitions,u=o&&o!==`@${Jx.UIAnnotationTerms.LineItem}`?o:ge.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let R in p.properties){let F=l[u].properties[R].$ref.split(B)[1].split("<")[0];e.columns[R]=n.createInstance(i,F);let U=s||o;Tt(e.columns[R],t.manifest,l[F],r,[R,U],U,t.logger),Do(e.columns,R)}Do(e,"columns")}else{let R=(C=(E=(b=(T=(m=(d=t.manifest["sap.ui5"])==null?void 0:d.routing)==null?void 0:m.targets)==null?void 0:T[r])==null?void 0:b.options)==null?void 0:E.settings)==null?void 0:C.views;(!R||R.paths.length<1)&&oe(t.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOLINEITEMS")})}}a(Yx,"transferColumns");function qY(e,t,n,i,r){let o=e.jsonSchema.definitions,s=o[ge.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=un(u.$ref),d=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,d),Tt(t.visualFilters[l],e.manifest,o[p],r,[l])}}Do(t,"visualFilters")}}a(qY,"importVisualFilters");function ZY(e,t,n,i,r,o=ge.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[ge.DefinitionName.LineItems,`${ge.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(o)===-1&&(u=`@${Jx.UIAnnotationTerms.LineItem}#${o.split("::").pop()}`);let p=l[`${ge.DefinitionName.Actions}<${o}>`];if(typeof p=="object")for(let d in p.properties){let m=p.properties[d];if(typeof m=="object"&&m.$ref){let T=un(m.$ref),b=T.split("<")[0];t.toolBar.actions[d]=n.createInstance(i,b),Tt(t.toolBar.actions[d],e.manifest,l[T],r,[d,u]),Do(t.toolBar.actions,d)}}}a(ZY,"importActions");function Qx(e,t,n,i,r,o=ge.DefinitionName.LineItems,s){let l=n.createInstance(i,ge.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Tt(u.toolBar,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.ToolBarLR],r,[]),ZY(e,u,n,i,r,o,s),Do(u.toolBar,"actions"),Do(u,"toolBar")}a(Qx,"transferToolBar");function Fw(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ge.SchemaTag.annotationPath],r=n?`/${n}/`:"",o=i==null?void 0:i.substr(i.lastIndexOf("@"));return o=r?`${r}${o}`:o,o}a(Fw,"determineTargetAnnotationOfView");function eQ(e,t,n,i,r){let o=e.jsonSchema.definitions;t.chart=n.createInstance(i,ge.DefinitionName.ALPChart);let s=o[ge.DefinitionName.ALPChart],l=s[ge.SchemaTag.annotationPath];Tt(t.chart,e.manifest,s,r,[s[ge.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ge.DefinitionName.ToolBar,{actions:{}}),Tt(t.chart.toolBar,e.manifest,o[ge.DefinitionName.ViewChartToolBar],r,[]);let u=o[ge.DefinitionName.ALPTable][ge.SchemaTag.annotationPath];if(u){let p=o[ge.DefinitionName.ALPTable],d=t.table=n.createInstance(i,ge.DefinitionName.ALPTable);Qx(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Tt(d,e.manifest,p,r,[p[ge.SchemaTag.key],m]),Yx(d,e,n,i,r,void 0,m)}}a(eQ,"importALPViews");function tQ(e){let t;return e.indexOf(ge.DefinitionName.LRTableView)>-1?t=ge.DefinitionName.LRTableView:e.indexOf(ge.DefinitionName.LRChartView)>-1?t=ge.DefinitionName.LRChartView:e===ge.DefinitionName.TableViewExtension&&(t=ge.DefinitionName.TableViewExtension),t}a(tQ,"getViewTypeByDefinition");function nQ(e,t,n,i,r){let o=t.table.views=n.createInstance(i,ge.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Tt(o,e.manifest,s[ge.DefinitionName.MultiTableModeV4],r,[]);let l=s[ge.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,d)=>p[1][ge.SchemaTag.propertyIndex]-d[1][ge.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let d=p[1].$ref.split(B)[1],m=tQ(d),T=o[p[0]]=n.createInstance(i,m),b=s[d].entitySet,E=Fw(s,d,b);if(Tt(T,e.manifest,s[d],r,[p[0],E]),m===ge.DefinitionName.LRTableView){let C=`${ge.DefinitionName.LineItemsOfView}::${p[0]}`;Qx(e,T,n,i,r,C,E),Yx(T,e,n,i,r,C,E)}Object.keys(T).length===0&&delete o[p[0]]}Do(t.table,"views")}a(nQ,"importLRViews");function iQ(e,t,n,i,r){let o=ge.DefinitionName.HeaderActions,s=ge.PropertyName.header,l=e.definitions[o];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 d=un(p.$ref),m=e.definitions[d],T=un(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(ge.PageTypeV4.ObjectPage,T),Tt(t[s].actions[u],i,e.definitions[T],r,[u.replace("/","??")]),Do(t.header,"actions"),Do(t,"header")}}}}a(iQ,"transferHeaderActions");function rQ(e,t,n,i){let r=e.jsonSchema.definitions,o={};for(let s of[ge.DefinitionName.SelectionFields,ge.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(o=l.properties)}for(let s in o){let l=o[s];if(typeof l!="object"||l.$ref!==B+ge.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ge.PageTypeV4.ListReport,ge.DefinitionName.CustomFilterField),p=l.$ref.split(B)[1];Tt(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}a(rQ,"importCustomFilterFields");function oQ(e,t,n,i,r,o){if(Tt(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ge.DefinitionName.Header),Tt(t.header,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.Header],r,[]),iQ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ge.DefinitionName.FilterBar),Tt(t.filterBar,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.FilterBar],r,[]),qY(e,t.filterBar,n,i,r),rQ(e,t.filterBar,n,r),o===ge.SchemaType.ListReport){let s=ge.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split(B)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(B)[1]),t.table=n.createInstance(i,ge.DefinitionName.Table);let p=Fw(e.jsonSchema.definitions,s);Tt(t.table,e.manifest,l,r,[s,p]),Qx(e,t,n,i,r,u),Yx(t.table,e,n,i,r,u,p),nQ(e,t,n,i,r)}else o===ge.SchemaType.AnalyticalListPage&&eQ(e,t,n,i,r)}a(oQ,"addSettings");function Jc(e,t){if(Qt(),!e.jsonSchema)return;if(!e.manifest[ge.ManifestSection.ui5]||!e.manifest[ge.ManifestSection.ui5].routing){oe(e.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOROUTING"),location:{path:ge.MANIFESTPATH,range:[ge.ManifestSection.ui5]}});return}let n=e.manifest[ge.ManifestSection.ui5].routing.targets;if(!n){oe(e.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOTARGETS"),location:{path:ge.MANIFESTPATH,range:[ge.ManifestSection.ui5]}});return}let i=new Ma,r=i.createPageInstance(ge.PageTypeV4.ListReport);for(let o in n){let s=n[o],l=VT(s);if("name"in s&&(l===ge.PageTypeV4.ListReport||l===ge.PageTypeV4.AnalyticalListPage)){oQ(e,r,i,ge.PageTypeV4.ListReport,o,t);break}}return r}a(Jc,"createListReportConfig");var ye=te(se()),Yc=require("@sap-ux/vocabularies-types/vocabularies/UI");function aQ(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}a(aQ,"isBoolean");function sQ(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}a(sQ,"isNumber");function cQ(e,t){let n=e.toString();return aQ(n,t)?n==="true":sQ(n,t)?parseFloat(n):e}a(cQ,"convertValue");function lQ(e,t,n,i){let{element:r}=e,o=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=cQ(r.attributes[i],t);s!==n[i]&&(n[i]=s,o=!0)}return o}a(lQ,"importProperty");function _w(e,t,n){let i,r=pf(e.file,!1,n);if(r){let o=fy(r);i={},Uc({fullSchema:t,schema:t,element:o,contextPath:[],config:i},lQ)}return i}a(_w,"convertXmlFileToConfig");function ky(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:o}=e;if(!i||Object.keys(i).length===0)return;let s=Ss(t||[],r,n,o),l;return s&&(l=_w(s,i,e.logger)),l}a(ky,"createCustomPageConfig");function nd(e,t){var T;let{fragments:n,manifest:i,jsonSchema:r,routingId:o,logger:s}=e,l=df(t),u=(T=r.definitions)==null?void 0:T[l];if(!r||!u)return;let p=Fc(i,o),d=_c(n||[],p,i,"fragment",t),m;if(d){let b={...u,definitions:r.definitions};m=_w(d,b,s)}return m}a(nd,"createCustomFragmentConfig");function zx(e,t=!1,n){var r,o,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(o=l[0])==null?void 0:o.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}a(zx,"getManifestId");function jy(e){return e.replace(/#/g,"::").replace(/\//g,"::")}a(jy,"getDefinitionId");function fQ(e,t,n,i,r,o){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[jy(o)];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 d=r.createInstance(ye.PageTypeV4.ObjectPage,s);Tt(d,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],o),Object.keys(d).length>0&&(n[i].table.columns[u]=d)}}}a(fQ,"fillTableColumnsInConfig");function uQ(e,t,n,i,r=t){let o=e.jsonSchema.definitions[`${ye.DefinitionName.Actions}<${jy(r)}>`];if(typeof o=="object")for(let s in o.properties){let l=o.properties[s];if(typeof l=="object"&&l.$ref){let u=un(l.$ref),p=u.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(ye.PageTypeV4.ObjectPage,p),Tt(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],r),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}a(uQ,"fillTableActionsInConfig");function pQ(e,t,n,i,r,o=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageSectionForm}<${jy(o)}>`].properties.form.$ref.split(B)[1],d=e.jsonSchema.definitions[l].properties.actions.$ref.split(B)[1],m=e.jsonSchema.definitions[d];for(let T in m.properties){let b=m.properties[T],E=un(b.$ref),C=e.jsonSchema.definitions[E];if(C.annotationType===Yc.UIAnnotationTypes.DataFieldForAction||C.description==="Custom Action"){let R=un(C.$ref)||E.split("<")[0];i[n].form.actions[T]=r.createInstance(ye.PageTypeV4.ObjectPage,R),Tt(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[R],e.routingId,[T.replace("/","??")],o),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}a(pQ,"fillFormActionsInConfig");function Dw(e,t,n,i,r,o){var u;let s=o||zx(i,!1,Yc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageTable);let p=`${ye.DefinitionName.ObjectPageTable}<${o?jy(o):i.replace("#","::")}>`;Tt(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ToolBar,{actions:{}}),uQ(e,i,n,r,s),fQ(e,l,n,i,r,s)}}a(Dw,"fillTableInConfig");function dQ(e,t,n,i,r){var l;let o=zx(i),s=(l=t.controlConfiguration)==null?void 0:l[o];s&&(n[i]={},n[i].form=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageForm,{actions:{}}),pQ(e,s,i,n,r,o))}a(dQ,"fillFormInConfig");function gQ(e,t,n,i,r,o){let s=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(B)[1];if(Tt(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],o),s.fragmentName){let u=nd(e,s.fragmentName);s.controls=u}n[i]=s}a(gQ,"fillCustomSubSectionInConfig");function Mw(e,t,n,i,r,o){var s,l,u,p,d;for(let m in t){let T=t[m],b=m;if(m.includes(Yc.UIAnnotationTerms.PresentationVariant)&&((s=T.$ref)!=null&&s.startsWith(B+ye.DefinitionName.ObjectPageSectionTableV4))){let E=T.$ref.split(B)[1];b=E?zx(E,!0,Yc.UIAnnotationTerms.LineItem):m,Dw(e,n,i,m,r,b)}else(l=T.$ref)!=null&&l.startsWith(B+ye.DefinitionName.ObjectPageSectionTableV4)?Dw(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},Mw(e,T.properties.subsections.properties,n,i[m].subsections,r,m)):(u=T.$ref)!=null&&u.startsWith(B+ye.DefinitionName.ObjectPageSectionForm)&&((p=T.$ref)!=null&&p.includes(`@${Yc.UIAnnotationTerms.FieldGroup}::`))?dQ(e,n,i,m,r):(d=T.$ref)!=null&&d.startsWith(B+ye.DefinitionName.ObjectPageCustomSubSectionFragment)&&gQ(e,T,i,m,r,o)}}a(Mw,"fillSectionsInConfig");function mQ(e,t,n,i){var o,s;let r=(s=(o=t.content)==null?void 0:o.body)==null?void 0:s.sections;if(r){n.sections.custom=[];for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSectionFragment);Tt(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l);let d=u.template;if(d){let m=nd(e,d);p.controls=m}n.sections.custom.push(p)}}}a(mQ,"fillCustomSectionsInConfig");function hQ(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,o=r&&"facets"in r?r.facets:void 0;if(o)for(let l in o){let u=o[l],p=i.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomHeaderSectionFragment);Tt(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let d=u.template;if(d){let T=nd(e,d);p.controls=T}let m=u.templateEdit;if(m){let T=nd(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}a(hQ,"fillCustomHeaderSectionsInConfig");function yQ(e,t,n,i,r){var s,l;let o=e.definitions[ye.DefinitionName.HeaderSections];if(o&&o.properties){t.header.sections={};for(let u in o.properties){let p=o.properties[u],d,m=(s=o.properties[u].$ref)==null?void 0:s.split(B)[1];m&&(p=e.definitions[m],d=m.split("<")[0]),(d==null?void 0:d.includes(ye.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=d?n.createInstance(ye.PageTypeV4.ObjectPage,d):{},Tt(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ye.FacetTitlePrefix)[1]))}}}a(yQ,"fillHeaderFacets");function vQ(e,t,n,i,r,o,s){let l=un(e.$ref),u=t.definitions[l],p=un(u.$ref||e.$ref),d=n.createInstance(ye.PageTypeV4.ObjectPage,p);if(d){let m=i[r]=d;Tt(m,o,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}a(vQ,"importActionSettingsOfReference");function ww(e,t,n,i,r,o,s){let l=e.definitions[o];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let d=l.properties[p];typeof d=="object"&&d.$ref&&vQ(d,e,n,u,p,i,r)}}}a(ww,"fillHeaderFooterActions");function TQ(e,t,n){var o,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),Tt(i.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageFooter),Tt(i.footer,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageLayout),Tt(i.layout,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageLayout],e.routingId,[]),Tt(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(o=r.content)==null?void 0:o.body)!=null&&s.sections)&&e.jsonSchema.definitions[ye.DefinitionName.Sections]&&(i.sections={},Mw(e,e.jsonSchema.definitions[ye.DefinitionName.Sections].properties,r,i.sections,n)),mQ(e,r,i,n),yQ(e.jsonSchema,i,n,e.manifest,e.routingId),hQ(e,r,i,n),ww(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.ObjectPageHeaderActions,ye.PropertyName.header),ww(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.FooterActions,ye.PropertyName.footer)),i}a(TQ,"fillObjectPageConfig");function $y(e){if(Qt(),!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){oe(e.logger,{severity:ye.LogSeverity.Error,message:ee.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let t=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!t){oe(e.logger,{severity:ye.LogSeverity.Error,message:ee.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){oe(e.logger,{severity:ye.LogSeverity.Error,message:ee.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let i=new Ma;return TQ(e,n,i)}a($y,"createObjectPageConfigV4");var Ue=te(se());var qx=[],Uy={};function EQ(e,t){let n=e.target,i=t.target,r=Array.isArray(n),o=Array.isArray(i);return r&&o?n.length-i.length:!r&&!o?0:r?1:-1}a(EQ,"routesSorter");function Zx(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]}a(Zx,"resolveTarget");function bQ(e){let t={};e=e.concat().sort(EQ);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),o;Array.isArray(i.target)?(o=Zx(i.target,n),n.push(i.target)):o=i.target;for(let s of r){let l=s.split("(")[0];t[o]=t[o]?`${t[o]}.${l}`:l}}return t}a(bQ,"populateAssociations");function AQ(e,t,n){let i;return e.name?e.name===Ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ue.PageTypeV4.FPMCustomPage:e.name.endsWith(Ue.PageTypeV4.ListReport)||e.name.endsWith(Ue.PageTypeV4.AnalyticalListPage)?i=Ue.PageTypeV4.ListReport:e.name.endsWith(Ue.PageTypeV4.ObjectPage)?i=Ue.PageTypeV4.ObjectPage:i=Ue.PageTypeV4.CustomPage:"viewId"in e?i=Ue.PageTypeV4.CustomPage:(oe(t,{severity:Ue.LogSeverity.Error,message:ee.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ue.MANIFESTPATH,range:[`${Ue.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ue.ViewTypes&&"viewName"in e&&(i=Ue.PageTypeV4.CustomPage)),i}a(AQ,"determinePageType");function SQ(e){let t=e.target.viewId||e.target.id,n=Nt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ue.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===Ue.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=$y(r)}else if(e.page.pageType===Ue.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=ky(r)}else if(e.templateType===Ue.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Jc(r,Ue.SchemaType.ListReport)}else if(e.templateType===Ue.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Jc(r,Ue.SchemaType.AnalyticalListPage)}else if(e.templateType===Ue.TemplateType.FreestylePageV4&&e.page.pageType===Ue.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ou(e.target)===Ue.TemplateType.AnalyticalListPageV4?Ue.SchemaType.AnalyticalListPage:Ue.SchemaType.ListReport;e.page.config=Jc(r,s)}}}a(SQ,"convertSettingsToConfig");function xQ(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");qx.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");qx.push(t[t.length-1])}}a(xQ,"updateUnhandledControllers");function PQ(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}}}a(PQ,"setVariantManagmentAndNavigation");function IQ(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:o,entityType:s}=Wc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(o==null?void 0:o.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}a(IQ,"setEntitySetEntityTypeContextPath");function OQ(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([Ue.PageTypeV4.CustomPage,Ue.PageTypeV4.FPMCustomPage].includes(n)){let o=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...o&&{name:o},...e.name&&{template:e.name},...e.viewType&&{viewType:e.viewType}}}}a(OQ,"evaluateCustomPageSettings");function CQ(e,t,n,i){let r=e.targets[t],o=AQ(r,i.logger,t),s={pageType:o};if(IQ(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),Uy[t]&&Uy[t].indexOf(".")!==-1){let p=Uy[t].split(".");s.navigationProperty=p[p.length-1]}OQ(r,s,o),PQ(r,s),xQ(r);let l=e.routes.find(p=>p.name===t);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:o,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};SQ(u)}a(CQ,"getSinglePageAndConfig");function Vw(e){let t={},n=e.manifest[Ue.ManifestSection.ui5].routing;if(!n||!n.routes){let i=ee.t("NOROUTING");return oe(e.logger,{severity:Ue.LogSeverity.Error,message:i,location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.ui5]}}),t}Uy=bQ(n.routes||[]);for(let i in n.targets)CQ(n,i,t,e);return t}a(Vw,"getPagesAndConfigs");function kw(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 Zx(t?t.target:e.routes[0].target)}else return}a(kw,"getHome");function jw(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}}:{}}a(jw,"getSettings");function Of(e,t){let n=e[Ue.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let o=n.targets[r];o.name===t&&(i[r]=o)}return i}a(Of,"getPages");var eP=class eP extends ns{constructor(t){Qt();let n=new gf,i=Nt(Ue.SchemaType.Application),r=t.appSchemas[i.filename];Tt(n,t.manifest,r.definitions.AppSettings,"",[]),super(t.manifest,t.appSchemas,kw(t.manifest[Ue.ManifestSection.ui5].routing),Vw(t),Ue.FioriElementsVersion.v4,{...jw(t.manifest[Ue.ManifestSection.ui5].routing),...n},t.logger),this.unhandledControllers=qx}};a(eP,"V4AppProvider");var id=eP;var $w=require("fs"),Qc=require("path"),rd=te(se());var Uw=a((e,t,n=__dirname)=>{let i;switch(t){case rd.SchemaType.Application:{i=`${rd.SchemaType.Application}${e.toUpperCase()}.json`;break}case rd.SchemaType.FPMCustomPage:{i=`${rd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Qc.join)(n,"schemas",e,i);if(n.endsWith((0,Qc.join)("specification","packages","specification")))return(0,Qc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Qc.join)("src","specification")))return(0,Qc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Qc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),NQ=a(async e=>new Promise((t,n)=>{(0,$w.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),By=a(async(e,t)=>{try{let n=Uw(e,t,__dirname);return await NQ(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function RQ(e,t){let n={},i=[];switch(i=[le.SchemaType.Application],e){case le.TemplateType.ListReportObjectPageV4:case le.TemplateType.AnalyticalListPageV4:i.push(le.SchemaType.ListReport,le.SchemaType.ObjectPage,le.SchemaType.FPMCustomPage);break;case le.TemplateType.FreestylePageV4:i.push(le.SchemaType.ListReport,le.SchemaType.ObjectPage,le.SchemaType.FreestylePage,le.SchemaType.FPMCustomPage);break;case le.TemplateType.ListReportObjectPageV2:i.push(le.SchemaType.ListReport,le.SchemaType.ObjectPage);break;case le.TemplateType.AnalyticalListPageV2:i.push(le.SchemaType.AnalyticalListPage,le.SchemaType.ObjectPage);break;case le.TemplateType.OverviewPageV2:i.push(le.SchemaType.OverviewPage);break;default:break}for(let r of i){let o=Nt(r);n[o.filename]=await By(t,r)}return n}a(RQ,"getGenericSchemas");function Ww(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ai(le.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:o,Facets:s}=r.annotations[i];o&&!o.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}a(Ww,"getAnnotationsForUi");function od(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}a(od,"getEntitySetByEntitySetName");function Wc(e,t,n,i){var l,u,p,d;let r=e==null?void 0:e.resolvePath(t||`/${n}`),o,s;if(((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet")o=(u=r.target)==null?void 0:u.entityType,s=r==null?void 0:r.target;else if(((p=r==null?void 0:r.target)==null?void 0:p._type)==="NavigationProperty"){o=r.target.targetType,s=r.objectPath[1];for(let m=2;m<r.objectPath.length;m++){let T=r.objectPath[m];if(T._type==="NavigationProperty"){let b=(d=s.navigationPropertyBinding)==null?void 0:d[T.name];s=e.entitySets.find(E=>E.name===(b==null?void 0:b.name))}}}else oe(i,{severity:le.LogSeverity.Error,message:ee.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:le.MANIFESTPATH}});return o||oe(i,{severity:le.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:o,entitySet:s}}a(Wc,"getEntityTypeEntitySetFromContextPath");function Bw(e,t,n){let i=Xu(e.manifest[le.ManifestSection.generic].pages,le.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let o=i[r].entitySet,s=od(o,e.serviceAVT);s||oe(e.logger,{severity:le.LogSeverity.Error,message:ee.t("ENTITYSETNOTFOUND",{entitySetName:o})}),e.entitySet=s;let l=Nt(le.SchemaType.ObjectPage,(s==null?void 0:s.name)||o),u=Nt(le.SchemaType.ObjectPage);n[l.filename]=ad(e,t[u.filename])}}a(Bw,"generateObjectPageSchemasV2");function LQ(e,t,n){var l,u;let i=Of(e.manifest,le.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Of(e.manifest,le.v4.FE_TEMPLATE_V4_ALP),o={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in o){let d=(l=o[p].options.settings)==null?void 0:l.entitySet,m=(u=o[p].options.settings)==null?void 0:u.contextPath,{entitySet:T,entityType:b}=Wc(s,m,d,e.logger);e.entityType=b,e.entitySet=T;let E=Nt(le.SchemaType.ListReport,p),C=Nt(le.SchemaType.ListReport);e.templateType===le.TemplateType.FreestylePageV4&&(e.templateType=ou(o[p])),n[E.filename]=Qu(e,t[C.filename],o[p].name,m)}}a(LQ,"generateListReportSchemasV4");function FQ(e,t,n){var r;let i=Xu(e.manifest[le.ManifestSection.generic].pages,le.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let o in i){let s=i[o].entitySet;e.entitySet=od(s,e.serviceAVT);let l=Nt(le.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Nt(le.SchemaType.ListReport);t[l.filename]=sd(e,n[u.filename])}}a(FQ,"generateAppSchemaV2LR");function _Q(e,t,n){var o,s;let i=Of(e.manifest,le.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(o=i[l].options.settings)==null?void 0:o.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:d,entitySet:m}=Wc(r,p,u);e.entitySet=m,e.entityType=d;let T=Nt(le.SchemaType.ObjectPage,l),b=Nt(le.SchemaType.ObjectPage),E=Nt(le.SchemaType.FPMCustomPage);n[T.filename]=Ip(e,t[b.filename],p,t[E.filename])}}a(_Q,"generateObjectPageSchemasV4");function DQ(e,t,n,i){var o;let r={};if(i===le.TemplateType.ListReportObjectPageV2&&n)FQ(e,r,t),Bw(e,t,r);else if(i===le.TemplateType.AnalyticalListPageV2&&n){let s=Xu(e.manifest[le.ManifestSection.generic].pages,le.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=od(u,e.serviceAVT);let p=Nt(le.SchemaType.AnalyticalListPage,((o=e.entitySet)==null?void 0:o.name)||u),d=Nt(le.SchemaType.AnalyticalListPage);r[p.filename]=cd(e,t[d.filename])}Bw(e,t,r)}else if(i===le.TemplateType.OverviewPageV2){let s=Nt(le.SchemaType.OverviewPage),l=Nt(le.SchemaType.OverviewPage);r[s.filename]=ld(t[l.filename],e.manifest)}return{...t,...r}}a(DQ,"generateAppSchemasV2");function wQ(e,t,n){if(!oc(e.featureToggles,le.Features.BuildingBlocks))return;let i=Of(e.manifest,le.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let o=i[r],s=Ss(e.views||[],r,e.manifest,e.logger),l=o.viewId||o.id;if(s){let u=Nt(le.SchemaType.FPMCustomPage,void 0,l),p=Nt(le.SchemaType.FPMCustomPage);n[u.filename]=Bc(t[p.filename],s,e.serviceAVT,e.logger)}}}a(wQ,"generateCustomPageSchemasV4");function MQ(e,t,n){let i={};return n&&(LQ(e,t,i),_Q(e,t,i),wQ(e,t,i)),{...t,...i}}a(MQ,"generateAppSchemasV4");async function Gw(e,t,n){let i=await RQ(n,e.fioriElementsVersion);return e.fioriElementsVersion===le.FioriElementsVersion.v4?MQ(e,i,t):DQ(e,i,t,n)}a(Gw,"generateAppSchemas");function VQ(e){let t,n=[];switch(e.templateType){case le.TemplateType.ListReportObjectPageV2:case le.TemplateType.AnalyticalListPageV2:t=new dh(e);break;case le.TemplateType.AnalyticalListPageV4:case le.TemplateType.ListReportObjectPageV4:case le.TemplateType.FreestylePageV4:t=new id(e);break;case le.TemplateType.OverviewPageV2:t=new hh(e);break;default:break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let o in i)n.push({dataSourceUri:o,fileContent:JSON.stringify(i[o],null,4)});for(let o in r)n.push({dataSourceUri:o,fileContent:JSON.stringify(r[o],null,4)})}return n}a(VQ,"importConfigs");function Hw(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===le.SchemaType.Application?r=`${le.DirName.Schemas}/${le.FileName.App[0].toUpperCase()}${le.FileName.App.slice(1)}`:r=`${le.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}a(Hw,"getFileList");async function tP(e){var E,C;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,featureToggles:s}=e;new cu().doesUi5VersionFitDistTags((C=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:C.minUI5Version,i);let u=BT(t),p=Ro(n,i),d=Ww(p),m=WT(t,u,i),b=await Gw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:o,fioriElementsVersion:u,logger:i,featureToggles:s},d,m);return Hw(b)}a(tP,"importProjectSchema");async function nP(e){var L,F;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,flex:s,featureToggles:l}=e;new cu().doesUi5VersionFitDistTags((F=(L=t["sap.ui5"])==null?void 0:L.dependencies)==null?void 0:F.minUI5Version,i);let p=BT(t),d=Ro(n,i),m=WT(t,p,i),T={templateType:m,manifest:t,serviceAVT:d,fragments:r,views:o,fioriElementsVersion:p,logger:i,featureToggles:l},b=Ww(d),E=await Gw(T,b,m),R=VQ({manifest:t,flexChanges:s,appSchemas:E,templateType:m,logger:i,serviceAVT:d,fragments:r,views:o});return Hw(E,R)}a(nP,"importProjectSchemaAndConfig");var kQ=["header","sections","footer"];function jQ(e,t,n,i){t.properties[n][fe.SchemaTag.artifactType]=fe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=fe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=fe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=fe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=fe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=fe.ControlType.SmartTable;break}r&&(dt(e,t,n),t.properties[n][fe.SchemaTag.controlType]=r)}a(jQ,"addFlexChangeForSection");function $Q(e,t,n,i,r){n==null||n.forEach((o,s)=>{if(!o.Determining&&o.$Type===qo.UIAnnotationTypes.DataFieldForAction){let{actionName:l,actionId:u,namespace:p}=Zg(o,r);if(!u)return;let d=o.Label||l,m=`ObjectPageHeaderAction<${ft(u)}>`;t.definitions[m]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let T=o.fullyQualifiedName.replace(`@${qo.UIAnnotationTerms.Identification}`,`/@${qo.UIAnnotationTerms.Identification}`);t.definitions[m][fe.SchemaTag.annotationPath]=`/${T}`,t.definitions[m][fe.SchemaTag.actionType]=fe.ActionType.Annotation,t.definitions[m].description=d,t.definitions[m][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.action,value:l}],p&&(t.definitions[m][fe.SchemaTag.target]=p),i.properties[u]={$ref:`${B}${m}`}}})}a($Q,"addHeaderActionCallBackV2");function UQ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===qo.UIAnnotationTypes.DataFieldForAction){let o=va(r).split("::").splice(1).join("::"),s=Ei(r,e),l=ft(`${fe.DefinitionName.ObjectPageFooterAction}<${o}>`),u=r.fullyQualifiedName.replace(`@${qo.UIAnnotationTerms.Identification}`,`/@${qo.UIAnnotationTerms.Identification}`);t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[fe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`},n.properties[o]={$ref:`${B}${l}`}}})}a(UQ,"addFooterActionCallBackV2");function BQ(e,t,n,i,r,o,s,l){let u,p;if(o.ID&&o.Label?u=o.ID+o.Label.replace(/\s+/g,""):o.ID?u=o.ID:o.Label&&(u=o.Label.replace(/\s+/g,"")),u?p=`${fe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${fe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let d=`${fe.DefinitionName.CustomColumn}<${n}>`,m=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn));e.definitions[d]=m;let T=[],b=r==null?void 0:r.entityTypes.find(C=>C.name===i),E=Oc(t[fe.ManifestSection.generic].pages,n,T);return Al(e,b,E,t,l,p,d,o.ID),p}a(BQ,"ensureCustomColumnDefinitionExists");function Wy(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&jQ(e,t,"visible",n)}a(Wy,"addAppSchemaDefinition");function WQ(e,t,n){e.properties[t]={$ref:`${B}${n}`}}a(WQ,"addSectionReference");function fd(e,t,n,i){let r=ft(`${e}<${t}>`);i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e])),i.definitions[r].properties.columns.$ref=B+t,i.definitions[r].properties.toolBar.$ref=`${B}ObjectPageToolBar<${t}>`,i.definitions[r][fe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=fe.FacetTitlePrefix+n.ID,i.definitions[r][fe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=fe.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${B}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=`${B}QuickVariant<${t}>`,qa(n.entityType,i,`QuickVariant<${t}>`)}a(fd,"addTableDefinition");function GQ(e,t,n,i,r,o){if(i.base!==fe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${o}<${t}>`;n.definitions[l]=ha(n,i,t);let u=n.definitions[l];Wy(n,u,o,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[fe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${B}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${B}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${B}ObjectPageAnalyticalTable<${t}>`},{$ref:`${B}ObjectPageGridTable<${t}>`},{$ref:`${B}ObjectPageTreeTable<${t}>`}],u[fe.SchemaTag.annotationPath]=i.annotationPath,ma(i,u,t),fd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),fd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),fd("ObjectPageGridTable",t,i,n),fd("ObjectPageTreeTable",t,i,n),fd("ObjectPageAnalyticalTable",t,i,n);let p,d=_F(i.entityType,e.serviceAVT);d&&(p=BQ(n,e.manifest,d.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r)r[m].base===fe.FacetBase.LineItem&&m.includes(s)&&bl(n,r[m].target,r[m].entityType,m,p)}a(GQ,"handleLineItem");function HQ(e,t,n,i,r){e.definitions[t]=ha(e,n,i);let o=e.definitions[t];Wy(e,o,r,"ObjectPageSubSectionV2"),o.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},o.properties.subsections[fe.SchemaTag.isViewNode]=!0}a(HQ,"handleSubSection");function KQ(e,t,n,i,r){e.definitions[t]=ha(e,n,i);let o=e.definitions[t];Wy(e,o,r,"ObjectPageSectionChartV2")}a(KQ,"handleSectionChart");function XQ(e,t,n,i,r){e.definitions[t]=ha(e,n,i);let o=e.definitions[t];return Wy(e,o,r,"ObjectPageSectionFormV2"),o[fe.SchemaTag.annotationPath]=n.annotationPath,o[fe.SchemaTag.isViewNode]=!0,o}a(XQ,"handleFormSection");function JQ(e,t){let n=new Map([[fe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[fe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[fe.FacetBase.Chart,"ObjectPageSectionChartV2"],[fe.FacetBase.Address,"ObjectPageSectionAddressV2"],[fe.FacetBase.Contact,"ObjectPageSectionContactV2"],[fe.FacetBase.Form,"ObjectPageSectionFormV2"],[fe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),i=new Map([[fe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[fe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[fe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[fe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[fe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[fe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[fe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return t?i.get(e):n.get(e)}a(JQ,"getSectionType");function YQ(e,t,n){let i=t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${qo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}a(YQ,"getReferenceKey");function Kw(e,t,n,i,r,o=!1){let s=t[n],l=JQ(s.base,o),u=YQ(s,n,l),p=`${l}<${u}>`;switch(WQ(i,u,p),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":{o=!0,HQ(r,p,s,n,l);let d=r.definitions[p].properties.subsections;for(let m in s.facets)Kw(e,s.facets,m,d,r,o);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{GQ(e,n,r,s,t,l),Il(r,s.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{KQ(r,p,s,n,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let d=XQ(r,p,s,n,l);qg(fe.SectionType.Section,s,d,r,fe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{su(s,n,i,r,fe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{su(s,n,i,r,fe.SectionType.Section,fe.SectionType.SubSection,"V2");break}default:i.properties[n]=ha(r,s,n)}}a(Kw,"addSection");function Xw(e,t,n){var s,l,u,p;let i=t.definitions[fe.DefinitionName.Sections];if(i[fe.SchemaTag.isViewNode]=!0,(s=e.entitySet)!=null&&s.entityType&&(i[fe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${qo.UIAnnotationTerms.Facets}`),!n)return;let r=Rg((l=e.entitySet)==null?void 0:l.entityType,e.serviceAVT,fe.FioriElementsVersion.v2,e.logger);if(!r||Object.keys(r).length===0)return;for(let d in n){let m=n[d];if((p=(u=e.entitySet)==null?void 0:u.name)!=null&&p.includes(m.entitySet))for(let T in r)Kw(e,r,T,i,t);else Xw(e,t,m.pages)}let o=t.definitions.CustomSections;for(let d in o.properties)i.properties[d]=o.properties[d]}a(Xw,"addSections");function QQ(e,t,n,i){nm(e,n),tm(e,n,t,i,$Q,!0)}a(QQ,"addHeader");function zQ(e,t,n,i){let r=Lg(t,n,i,void 0,!0);r&&om(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}a(zQ,"addRelatedFacetKeysType");function ad(e,t){var s;Qt();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[fe.PropertyName.sections]={$ref:B+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let o=e.manifest[fe.ManifestSection.generic].pages;return o?(QQ(n,e.entitySet,r,e.serviceAVT),n.definitions[fe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Xw(e,n,o),zQ(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[fe.SchemaTag.isViewNode]=!0):delete n.properties[fe.PropertyName.sections]),em(n,e,fe.FioriElementsVersion.v2,UQ,o),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,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,_o(n,kQ),n):(oe(e.logger,{severity:fe.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:fe.MANIFESTPATH,range:[fe.ManifestSection.generic]}}),n)}a(ad,"generateObjectPageSchemaV2");var wi=te(se());var qQ=["filterBar","table","footer"];function iP(e,t,n,i){qa(e,n,"QuickVariant"),DF(n,"QuickVariantX",t),wF(i,n,"QuickVariantX")}a(iP,"addEnumForVariantPaths");function sd(e,t){var m,T,b,E,C,R,L;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=B+uc,n.properties.table.anyOf[1].$ref=B+pc,n.properties.table.anyOf[2].$ref=B+Bg,n.properties.table.anyOf[3].$ref=B+Wg,n.properties.table.anyOf[4].$ref=B+Gg;let i=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithMultiSelect)),r=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithInlineDelete)),o=JSON.parse(JSON.stringify(t.definitions.TreeTable)),s=JSON.parse(JSON.stringify(t.definitions.AnalyticalTable)),l=JSON.parse(JSON.stringify(t.definitions.GridTable)),u={$ref:B+wi.DefinitionName.LineItems};i.properties.columns=u,r.properties.columns=u,o.properties.columns=u,s.properties.columns=u,l.properties.columns=u;let p=B+wi.DefinitionName.ToolBarLR;n.definitions[uc]=i,n.definitions[pc]=r,n.definitions[Bg]=o,n.definitions[Wg]=s,n.definitions[Gg]=l,YT.forEach(F=>{n.definitions[F].properties.toolBar.$ref=p});let d=(m=e.entitySet)==null?void 0:m.entityType;if(!d)(T=e.entitySet)!=null&&T.name&&oe(e.logger,{severity:wi.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{entitySetName:(b=e.entitySet)==null?void 0:b.name})});else{Sl(n);let F=(C=(E=d==null?void 0:d.annotations)==null?void 0:E.UI)==null?void 0:C.LineItem;F&&YT.forEach(Ce=>{n.definitions[Ce][wi.SchemaTag.annotationPath]=eo(d==null?void 0:d.fullyQualifiedName,F.term,F.qualifier)}),bl(n,F,d);let U=(L=(R=d==null?void 0:d.annotations)==null?void 0:R.UI)==null?void 0:L.SelectionFields;Xg(n,U,d),Il(n,d),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],OF(n.definitions.MultiEdit.properties.ignoredFields.items.enum,d);let J=[],re=Wl(e.manifest[wi.ManifestSection.generic].pages,J);if(!re)return oe(e.logger,{severity:wi.LogSeverity.Error,message:ee.t("NOLR"),location:{path:wi.MANIFESTPATH,range:[wi.ManifestSection.generic]}}),n;Al(n,d,re,e.manifest,e.fragments),iP(d,e.entitySet,n,e.serviceAVT),MF(d,n,wi.DefinitionName.ListReportFilterBar),VF(d,n,wi.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 _o(n,qQ),n}a(sd,"generateListReportSchemaV2");var Bt=te(se());var ZQ=["filterBar","keyPerformanceIndicators","chart","table","footer"];function ez(e,t){var u,p;let n=(p=(u=e==null?void 0:e.component)==null?void 0:u.settings)==null?void 0:p.qualifier,i=t[`SelectionPresentationVariant#${n}`],r=i!==void 0?i.PresentationVariant:void 0,o=r!==void 0?r.Visualizations:[],s,l;for(let d in o){let m=o[d];if(m.value.includes("@com.sap.vocabularies.UI.v1.LineItem")){let T=m.value.replace(Bt.UIVOCABULARYALPHADOT,"");s=t[T]}else if(m.value.includes("@com.sap.vocabularies.UI.v1.Chart")){let T=m.value.replace(Bt.UIVOCABULARYALPHADOT,"");l=t[T]}}return{lineItem:s,chart:l}}a(ez,"getVisualizations");function tz(e,t){let n=e.definitions[Bt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Bt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}a(tz,"addChart");function cd(e,t){var l,u,p,d,m;let n=JSON.parse(JSON.stringify(t));n.properties[Bt.PropertyName.table].anyOf[0].$ref=B+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${B}${Bt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${B}${Bt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Bt.PropertyName.table].anyOf[1].$ref=`${B}ALPGridTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));r.properties.columns.$ref=`${B}${Bt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${B}${Bt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=r,n.properties[Bt.PropertyName.table].anyOf[2].$ref=`${B}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${B}${Bt.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${B}${Bt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,IF(n.definitions.TableColumnExtensionTypeV2.enum,[Bt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let s=(l=e.entitySet)==null?void 0:l.entityType;if(!s)oe(e.logger,{severity:Bt.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{entitySetName:(u=e.entitySet)==null?void 0:u.name})});else{Sl(n);let T=[],b=Kl(e.manifest[Bt.ManifestSection.generic].pages,T,e.logger),E=(p=s==null?void 0:s.annotations)==null?void 0:p.UI,{lineItem:C,chart:R}=ez(b,E),L=C||E.LineItem,F=R||E.Chart;bl(n,L,s),F&&tz(n,F);let U=(m=(d=s==null?void 0:s.annotations)==null?void 0:d.UI)==null?void 0:m.SelectionFields;if(Xg(n,U,s),Il(n,s),!b)return oe(e.logger,{severity:Bt.LogSeverity.Error,message:ee.t("NOLR"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}}),n;Al(n,s,b,e.manifest,e.fragments),iP(s,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 _o(n,ZQ),n}a(cd,"generateAnalyticalListReportSchemaV2");function nz(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]})}a(nz,"getCardDefinitionNames");function iz(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||{},o=[];o=o.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Ta(o,s.CardModel);let l=nz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=B+"CardModel"}}a(iz,"addModelsEnum");function Jw(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},iz(n,t),n}a(Jw,"generateOverviewPageSchemaV2");var Us=te(se());function rP(e,t,n,i,r,o){Qt();let s=Ro(e,t),l={templateType:o,fioriElementsVersion:Us.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=od(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:Us.LogSeverity.Error,message:ee.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}a(rP,"prepareGenerationV2");function oP(e,t,n,i,r,o){let s=rP(n,o,i,r,t,Us.TemplateType.ListReportObjectPageV2);return ad(s,e)}a(oP,"generateObjectPageInterfaceV2");function aP(e,t,n,i,r,o){let s=rP(n,o,i,r,t,Us.TemplateType.ListReportObjectPageV2);return sd(s,e)}a(aP,"generateListReportInterfaceV2");function sP(e,t,n,i,r,o){let s=rP(n,o,i,r,t,Us.TemplateType.AnalyticalListPageV2);return cd(s,e)}a(sP,"generateAnalyticalListPageInterfaceV2");function ld(e,t){return Jw(e,t)}a(ld,"generateOVPInterfaceV2");var at=te(se());var ud=a(e=>({flexChanges:[],manifest:{[at.ManifestSection.generic]:{pages:{}}},fragments:e||[]}),"getDefaultExportResult");function Yw(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===at.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(at.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(at.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}a(Yw,"getClassesForSingleSection");function Qw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Yw(n,i,t),Qw(n,t)}}a(Qw,"getSubsectionClasses");function rz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Yw(i,r,n),Qw(i,n)}a(rz,"getExportClassesForSections");function oz(e,t){let n=e.page.config,i=e.page.entitySet,r=ud(e.fragments),o=new Ni,s=o.createPageInstance(at.PageTypeV2.ListReport,n),l=sc(s),u=`${e.appId}::${l.id}::${i}--`,p=[],d=Wl(e.manifest[at.ManifestSection.generic].pages,p);if(!d){oe(e.logger,{severity:at.LogSeverity.Error,message:ee.t("NOLR"),location:{path:at.MANIFESTPATH,range:[at.ManifestSection.generic]}});return}if(!d.component){oe(e.logger,{severity:at.LogSeverity.Error,message:ee.t("COMPONENTNOTDEFINED",{pageName:at.PageTypeV2.ListReport}),location:{path:at.MANIFESTPATH}});return}if(d.component.settings||(d.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),n&&Object.keys(n).length!==0){let m={v2Page:d,exportResults:r,appId:e.appId,baseId:u,appSchema:e.jsonSchema,ui5Version:t,factory:o,pageKeys:p,pageType:at.PageTypeV2.ListReport,logger:e.logger};Ts(m,s,[],[],e.jsonSchema)}return r}a(oz,"exportListReportPage");function az(e,t){let n=e.page.config,i=e.page.entitySet,r=ud(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let o=new Ni,s=o.createPageInstance(at.PageTypeV2.AnalyticalListPage,n),l=sc(s),u=`${e.appId}::${l.id}::${i}--`,p=[],d=Kl(e.manifest[at.ManifestSection.generic].pages,p,e.logger);if(d){if(d.component.settings||(d.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),n&&Object.keys(n).length!==0){let m={v2Page:d,exportResults:r,appId:e.appId,baseId:u,appSchema:e.jsonSchema,ui5Version:t,factory:o,pageKeys:p,pageType:at.PageTypeV2.AnalyticalListPage,logger:e.logger};Ts(m,s,[],[],e.jsonSchema)}return r}}a(az,"exportAnalyticalListPage");function sz(e,t){let n=e.page.config,i=e.page.entitySet,r=ud(e.fragments),o=new Ni,s=o.createPageInstance(at.PageTypeV2.ObjectPage,n);if(r.manifest=JSON.parse(JSON.stringify(e.manifest)),n){let l=sc(s),u=`${e.appId}::${l.id}::${i}--`,p=[],d=Oc(e.manifest[at.ManifestSection.generic].pages,i,p);if(!d)return r;if(n.sections&&rz(n,s,o),Object.keys(n).length!==0){let m={v2Page:d,exportResults:r,appId:e.appId,baseId:u,appSchema:e.jsonSchema,ui5Version:t,factory:o,pageKeys:p,pageType:at.PageTypeV2.ObjectPage,logger:e.logger};Ts(m,s,[],[],e.jsonSchema)}}return r}a(sz,"exportObjectPage");var cz=a(e=>{let t=ud();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Ni,i=n.createPageInstance(at.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ju(i,t,e.jsonSchema,e.jsonSchema,n,[]),t},"exportOverviewPage"),lz=a((e,t,n)=>{var s;let i=ud();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new fm,e);r.settings=Object.assign(new is,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(),d=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?d[l]=e.settings[l]:(delete d[l],Qa(i.manifest,p))}}let o=(s=i.manifest[at.ManifestSection.generic])==null?void 0:s.pages;return o&&e.pages&&nE(e.home,e.pages,Object.values(o)[0]),i},"exportApplicationV2");function zw(e,t){if(e[at.SchemaType.ListReport])return oz(e[at.SchemaType.ListReport],t);if(e[at.SchemaType.ObjectPage])return sz(e[at.SchemaType.ObjectPage],t);if(e[at.SchemaType.OverviewPage])return cz(e[at.SchemaType.OverviewPage]);if(e[at.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[at.SchemaType.Application];return lz(n,i,r)}else if(e[at.SchemaType.AnalyticalListPage])return az(e[at.SchemaType.AnalyticalListPage],t)}a(zw,"exportPageV2");var Cf=te(se()),Zw=require("@sap-ux/vocabularies-types/vocabularies/UI");function qw(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}a(qw,"updateDependencyLib");function Gy(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}a(Gy,"extractLastIdPart");function eM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:Cf.LogSeverity.Error,message:ee.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let o=r.lastIndexOf(Cf.PropertyName.sections),s=o>-1?Gy(r[o+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Zw.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},d={customExtension:Cf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return cP(d),!0}a(eM,"createNewCustomColumn");var Va=te(se());var nM=a((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),tM=a((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function fz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}a(fz,"initializeRouting");function uz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}a(uz,"setTargetOptions");function pz(e,t,n){let i="";return e.forEach((r,o)=>{let s="";t&&t.pageType!==Va.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${o?o+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}a(pz,"calculateQueryPattern");function iM(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let o;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,o=n[s])}if(o){iM(e,t,n,s);return}}}a(iM,"fillNavigationParts");function dz(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("({")),o=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=o}),t}a(dz,"fillParentKeys");function gz(e,t,n,i,r){for(let o in e.navigation){let s=e.navigation[o],l=t[s.route];if(uz(n,o,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=[];iM(u,o,t,r,l==null?void 0:l.contextPath);let p=dz(e.routePattern),d=pz(u,l,p);i.routes.push(nM(d,s.route,s.route))}}}a(gz,"handlePageNavigation");function mz(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)}}a(mz,"removeDeletedPages");function hz(e,t){var n,i,r,o;e.contextPath?(t.options||(t.options=tM({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=tM({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(o=(r=t.options)==null?void 0:r.settings)==null||delete o.entitySet}a(hz,"transferEntitySetandContextPath");function yz(e,t){var i,r,o,s,l;let n=(s=(o=(r=(i=t==null?void 0:t.options)==null?void 0:i.settings)==null?void 0:r.content)==null?void 0:o.body)==null?void 0:s.sections;if(e.pageType===Va.PageTypeV4.ObjectPage&&n&&typeof n=="object"){let u=e.config,d=(Array.isArray((l=u==null?void 0:u.sections)==null?void 0:l.custom)?u.sections.custom:[]).map(T=>T.id),m=Object.keys(n);if(d)for(let T of m)!d.includes(T)&&!("subSections"in n[T])&&delete n[T]}}a(yz,"deleteRemovedCustomSections");function vz(e,t,n){let i=e.routes.find(r=>r.name===t);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}a(vz,"updateRouteLayout");function Tz(e,t,n,i){return e.pageType&&![Va.PageTypeV4.CustomPage,Va.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Va.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}a(Tz,"fillTarget");function rM(e,t,n){var r,o;let i=fz(n[Va.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.name===e)&&i.routes.push(nM(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Tz(u,l,s,t),hz(u,l),yz(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(o=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&o.navigation&&(l.options.settings.navigation={}),gz(u,t,l,i,s),vz(i,s,u),i.targets[s]=l}return mz(i,t),i}a(rM,"transformRoutingV4");var xi=te(se());var oM=[xi.FlexibleColumnLayoutAggregations.BeginColumnPages,xi.FlexibleColumnLayoutAggregations.MidColumnPages,xi.FlexibleColumnLayoutAggregations.EndColumnPages],aM=a((e,t,n,i=[],r=0)=>{var p;let o=e.routing.routes.find(d=>d.name===n);if(!o)return;typeof o.target=="string"&&(o.target=r<=2?[...i,o.target]:[o.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:oM[r]?s.controlAggregation=oM[r]:s.controlAggregation=xi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=o.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let d in l.navigation)aM(e,t,l.navigation[d].route,o.target,r)}},"applyFCLRouting"),Ez=a((e,t)=>{e.routing.config.routerClass=xi.v4.FIORI_FCL_ROUTER_CLASS,aM(e,t,t.home);let n={viewName:xi.FIORI_FCL_ROOT_VIEW_NAME,type:xi.ViewTypes.XML,async:!0,id:xi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,qw(e,xi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),bz=a(e=>{if(e.rootView&&e.rootView.viewName===xi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,e.routing){e.routing.config&&e.routing.config.routerClass===xi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass;let t=e.routing.routes||[];for(let n of t)n.target&&Array.isArray(n.target)&&(n.target=n.name)}},"disableFcl"),sM=a((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Ez(e,t):bz(e)},"updateFcl");var ae=te(se()),pd=require("@sap-ux/vocabularies-types/vocabularies/UI");var cM=te(ic()),lM=te(se());function Az(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}a(Az,"isExportValueEquals");function Sz(e,t){var s;let{element:n,schema:i,parent:r,contextPath:o}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===lM.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=o[o.length-1];l&&r.element.elements.splice(l.index,1)}}a(Sz,"deleteProperty");function fM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:o,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 d={name:i,type:"element"};return s.elements.push(d),Uc({fullSchema:o,schema:t,element:d,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},fM)}else Az((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]&&(Sz(e,i),l=!0);return l}a(fM,"exportProperty");function uM(e,t,n,i,r,o){let s=pf(e.file,!1,o);if(s){let l=fy(s);if(Uc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},fM)){let p=(0,cM.js2xml)(s,{spaces:4}),d={dataSourceUri:e.file.dataSourceUri,fileContent:p};r==="view"?t.views=[d]:r==="fragment"&&t.fragments.push(d)}}}a(uM,"getExtensionExportResult");var pM=a((e,t)=>{let n={...t},{views:i,manifest:r,jsonSchema:o,page:s,logger:l}=e,u;return o&&Object.keys(o).length>0&&(u=Ss(i||[],s.name,r,l)),u&&uM(u,n,s.config,o,"view",l),n},"exportFPMCustomPageConfig"),dM=a((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:o,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,d="fragment";if(i&&Object.keys(i).length>0){let m=Fc(u,s[0]);p=_c(o,m,u,d,t)}if(p){let m=df(t),b={...i.definitions[m],definitions:i.definitions};uM(p,r,n,b,d,l)}},"exportXMLFragmentConfig");var gM={flexChanges:[],manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},fragments:[],views:[]},fP=a(e=>{let t=gM;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function xz(e,t,n,i,r,o){let s=e.flex.controlId(t.baseId,n,i,e.flex.controlType,t.title),l=kg(r,e,t.ui5Version,o,s);t.exportResults.flexChanges.push(e.flex.createFlexChange(l,t.exportResults.manifest))}a(xz,"exportFlexChange");function Pz(e,t,n){var s,l,u,p;let i=`@${pd.UIAnnotationTerms.LineItem}`,r=`@${pd.UIAnnotationTerms.LineItem}`,o=(s=t.appSchema.definitions[ae.DefinitionName.TableSPV])==null?void 0:s[ae.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let d=(u=t.appSchema.definitions[ae.DefinitionName.ALPTable])==null?void 0:u[ae.SchemaTag.annotationPath];i=r=d&&d.substr(d.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ae.PropertyName.table&&o){let d=o.split("/");i=r=d[d.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}a(Pz,"determineTargetAnnotationOfTable");function Iz(e,t,n,i,r){var o,s;if(e.length>1){let l=(o=t.appSchema.definitions[ae.DefinitionName.ALPChart])==null?void 0:o[ae.SchemaTag.annotationPath];n=i=l&&l.substr(l.lastIndexOf("@"))}else n=i=`@${(s=r.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:n,targetAnnotation:i}}a(Iz,"determineTargetAnnotationOfChart");function Oz(e,t,n,i){var o,s;let r=(o=e.appSchema.definitions.MultiTableModeV4)==null?void 0:o.properties[t[2]];if(r){if(t.length===3)n=i=r[ae.SchemaTag.annotationPath]&&r[ae.SchemaTag.annotationPath].substr(r[ae.SchemaTag.annotationPath].lastIndexOf("@"));else if(t.length>3){let l=(s=r.$ref)==null?void 0:s.split(B)[1],u=l&&e.appSchema.definitions[l],p=(u==null?void 0:u[ae.SchemaTag.annotationPath])&&u[ae.SchemaTag.annotationPath].substr(u[ae.SchemaTag.annotationPath].lastIndexOf("@"));n=i=u.entitySet?`/${u.entitySet}/${p}`:p}}return{targetAnnotation:n,targetAnnotationEncoded:i}}a(Oz,"determineTargetAnnotationOfViews");function Cz(e,t,n,i,r){return e[2].split(`@${ae.UIVOCABULARY}`)[1]?r&&r.indexOf(ae.FacetTitlePrefix)>-1?i=n=r.split(ae.FacetTitlePrefix)[1]:e[2]?i=n=e[2].split("@")[1]:n&&(i=n=n.replace(/::/g,"/")):(t=!0,n=e[2],i=n&&n.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:n,targetAnnotation:i}}a(Cz,"determineTargetAnnotationOfHeaderSections");function Nz(e,t,n,i){if(e[1]==="custom"&&e[2]!==e[e.length-1])t=!0,n=e[2],i=n&&n.replace(/::/g,"/");else{let r=Gy(e[1]);n=r&&r.replace(/\//g,"::"),i=n&&n.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:n,targetAnnotation:i}}a(Nz,"determineTargetAnnotationOfSections");function Rz(e,t,n){let i,r,o=!1;return e[0]===ae.PropertyName.table&&e[1]!==ae.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=Pz(e,t,n):e[0]===ae.PropertyName.chart&&t.templateType===ae.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Iz(e,t,r,i,n):e[0]===ae.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=Nz(e,o,r,i):e[1]===ae.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=Cz(e,o,r,i,t.title):e[1]===ae.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Oz(t,e,i,r)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:o}}a(Rz,"determineTargetAnnotation");function Lz(e){let t=0;for(let n=e.length-1;n>-1;n--){let i=e[n];if([ae.PropertyName.actions,ae.PropertyName.columns,ae.PropertyName.views,ae.PropertyName.visualFilters,ae.PropertyName.selectionFields].includes(ae.PropertyName[i])){t=n+1;break}}return t>0?e[t].replace(/\//gi,"??"):void 0}a(Lz,"determineKeyForSyncRule");function Fz(e){e.exportHandler&&typeof e.exportHandler=="function"?e.exportHandler(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}a(Fz,"createNewObjectInManifest");function mM(e,t,n){var i,r;t.type!=="array"&&((i=n==null?void 0:n.targetDefinition)==null?void 0:i.type)==="object"&&((r=n==null?void 0:n.targetDefinition)!=null&&r.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&Fz(e):e.exportHandler!==!1&&(e.exportHandler&&typeof e.exportHandler=="function"?e.exportHandler(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey])}a(mM,"transferPropertyToManifest");function _z(e,t,n,i,r,o,s){let l=[...e],u=e.indexOf("subsections");for(;u>-1;)e.splice(u-1,2),u=e.indexOf("subsections");let{targetAnnotationEncoded:p,targetAnnotation:d,custom:m}=Rz(e,n,r),T=Lz(e),b=t.manifest.path(n.pageNameArray,n.exportResults.manifest,p,T,d,r,l),E=Lo(n.exportResults.manifest,b,d,m?void 0:p);if(E){let C=t.manifest.key||i;if(r[i]!==void 0){let R={exportHandler:t.manifest.export,manifestSection:E,configObject:r,configPropertyKey:i,manifestKey:C,syncRuleKey:T};mM(R,o,s)}else if(t.manifest.delete){let R=t.manifest.delete;typeof R=="function"&&R(E,r,i,C,T,n.config)}else E[C]!==void 0&&delete E[C]}Qa(n.exportResults.manifest,b,d,p)}a(_z,"exportManifestChange");function Dz(e,t,n,i,r,o,s){let l=zn(i,n);if(l)if(l.xml){let u=l.xml(i);dM(e,u,s.configObject)}else l.flex?xz(l,e,r,t,i,n):l.manifest&&_z(r,l,e,n,i,o,s)}a(Dz,"evaluateExportRule");function wz(e,t,n,i,r){let o=[],s=!1;e.propertyDefinition.$ref&&t?o.push(t.configObject):e.propertyDefinition.anyOf?o.push(n):e.propertyDefinition.type==="array"?(o=n,s=!0):o.push(n),e.index=0;for(let l of o){let u=[];e.breadcrumbs[0]===ae.PropertyName.sections&&e.key==="custom"&&s&&u.push(l.id),e.transferParameters.title=t==null?void 0:t.title,uP(e.transferParameters,l,[...i,...u],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}}a(wz,"transferSubObject");function Mz(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=mt(e.pageNameArray)+"/views",o=Lo(e.exportResults.manifest,r);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}a(Mz,"createALPTableView");function Vz(e,t,n){var s;let i=!1;if(!t[n]||Object.keys(t[n]).length===0)return{newElementCreated:i,stopProcessing:!0};let r=mt(e.pageNameArray)+"/views",o=Lo(e.exportResults.manifest,r);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{primary:[{annotationPath:t[n].annotationPath}]}],i=!0):o.paths[0].primary||(o.paths[0].primary=[{annotationPath:t[n].annotationPath}],i=!0),o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:((s=t==null?void 0:t.table)==null?void 0:s.annotationPath)||pd.UIAnnotationTerms.LineItem}]),{newElementCreated:i,stopProcessing:!1}}a(Vz,"createALPChartView");function kz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=mt(e.pageNameArray),r=Lo(e.exportResults.manifest,i),o=`@${pd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[o]?r.controlConfiguration[o].filterFields||(r.controlConfiguration[o].filterFields={},n=!0):(r.controlConfiguration[o]={filterFields:{}},n=!0):(r.controlConfiguration={[o]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[o].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}a(kz,"createVisualFilters");function jz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,o=mt(t.pageNameArray)+"/views",s=Lo(t.exportResults.manifest,o),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}a(jz,"createLRTableView");function $z(e,t,n,i,r,o,s=!1){let l=!1,u=!1;if(t&&!s)if(t.startsWith(ae.DefinitionName.CustomColumn))l=eM(n,o,i[n],o.logger,r);else{if(t===ae.DefinitionName.ALPChartView&&n===ae.PropertyName.chart&&i)return Vz(o,i,n);if(t===ae.DefinitionName.ALPTableView&&n===ae.PropertyName.table&&i)return Mz(o,i,n);n&&(t.startsWith(ae.DefinitionName.LRTableView)||t.startsWith(ae.DefinitionName.LRChartView))?l=jz(e,o,n,i[n]):n&&t.startsWith(ae.DefinitionName.VisualFilters)&&(l=kz(o,i[n]))}return{newElementCreated:l,stopProcessing:u}}a($z,"createNewElement");function Uz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}a(Uz,"isDefinitionTraversable");function lP(e,t,n,i=!1){var d;let r=e.configObject[e.key],o=Mg(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}=$z(e.index,(d=e.propertyDefinition.$ref)==null?void 0:d.split(B)[1],e.key,e.configObject,e.breadcrumbs,e.transferParameters,i),p=o?[...t,o]:[...t,e.key];if(l||Dz(e.transferParameters,e.breadcrumbs,e.key,e.configObject,p,e.propertyDefinition,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Uz(e.propertyDefinition)&&s.configObject)&&!u){let m=o?[...n,o]:n;wz(e,s,r,p,m)}}a(lP,"transferSortedListEntry");function Bz(e,t,n,i,r){let o=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return o;s.sort((l,u)=>l[1].index-u[1].index),s.forEach(l=>{n.properties[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],lP(e,i,r),o=!0):typeof l[1]=="object"&&t.forEach(u=>{u.$ref&&(e.key=l[0],e.propertyDefinition=u,lP(e,i,r),o=!0)}),e.index++})}return o}a(Bz,"transferConfigEntriesWithAnyOfDefinitions");function Wz(e,t,n,i){let r=GT(e.appSchema,t,i);for(let o of r)n.some(s=>s[0]===o)||n.push([o,t])}a(Wz,"mergeEntriesForInsert");function uP(e,t,n,i,r,o){var T;if(!(o!=null&&o.properties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=o.additionalProperties,p=u==null?void 0:u.anyOf,d=Bz(l,p,o,n,i),m=o.properties&&Object.entries(o.properties);m&&((T=m[0])!=null&&T[1][ae.SchemaTag.propertyIndex]&&(m=Object.entries(o.properties).sort((b,E)=>b[1][ae.SchemaTag.propertyIndex]-E[1][ae.SchemaTag.propertyIndex])),u!=null&&u.$ref&&Wz(e,u,m,t),s=0,m.forEach(b=>{l.key=b[0],l.propertyDefinition=b[1],l.index=s,lP(l,n,i,d),b[1].$ref&&s++}))}a(uP,"transferManifestEntriesAndFlexChange");function hM(e,t,n){if(t==="custom"&&Array.isArray(e.sections[t])){let i=e.sections.custom;for(let r=0;r<i.length;r++)i[r]=n.createInstance(ae.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[r],i[r].className)}}a(hM,"getClassesForSingleSection");function yM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],hM(n,i,t),yM(n,t)}}a(yM,"getSubsectionClasses");function Gz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],hM(e,r,n),yM(i,n)}a(Gz,"getExportClassesForSections");var Hz=a((e,t)=>{var p;let n=fP(e.manifest),i=new Ma,r=i.createPageInstance(ae.PageTypeV2.ObjectPage,e.page.config),o=sc(r),s=e.page.name,l=`${e.appId}::${o.id}::${s}--`;(p=e.page.config)!=null&&p[ae.PropertyName.sections]&&Gz(e.page.config,r,i);let u={exportResults:n,appId:e.appId,appRootPath:e.appRootPath,baseId:l,appSchema:e.jsonSchema,fragments:e.fragments,config:r,ui5Version:t,factory:i,pageNameArray:[s],pageType:ae.PageTypeV4.ObjectPage,title:void 0,templateType:ae.TemplateType.ListReportObjectPageV4};return uP(u,r,[],[],[],e.jsonSchema),n},"exportObjectPage"),Kz=a((e,t,n,i,r,o)=>{var R,L;let s=fP(e.manifest),l=e.jsonSchema,u=(R=n.table)!=null&&R[ae.PropertyName.annotationPath]?ae.DefinitionName.ALPTableView:ae.DefinitionName.Table,p=n.table=t.createInstance(i,u,n.table),d=ae.DefinitionName.LineItems;l.definitions[ae.DefinitionName.TableSPV]&&(d=l.definitions[ae.DefinitionName.TableSPV].properties.columns.$ref.split(B)[1]);let m=l.definitions[`${ae.DefinitionName.Actions}<${d}>`];if((L=p.toolBar)!=null&&L.actions&&m)for(let F in m.properties)p.toolBar.actions[F]=t.createInstance(i,ae.DefinitionName.ToolBarAction,p.toolBar.actions[F]);let T=sc(n),b=e.page.name,E=`${e.appId}::${T.id}::${b}--`,C={exportResults:s,appId:e.appId,appRootPath:e.appRootPath,baseId:E,appSchema:l,config:n,ui5Version:r,factory:t,pageNameArray:[b],pageType:ae.PageTypeV4.ListReport,title:void 0,logger:e.logger,templateType:o};return uP(C,n,[],[],[],l),s},"exportListPage"),vM=a((e,t,n)=>{let i=new Ma,r=i.createPageInstance(ae.PageTypeV2.ListReport,e.page.config);return Kz(e,i,r,ae.PageTypeV4.ListReport,t,n)},"exportListReportPage"),Xz=a((e,t)=>vM(e,t,ae.TemplateType.AnalyticalListPageV4),"exportAnalyticalListPage"),Jz=a((e,t,n,i,r,o)=>{let s=Lo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=kT());let u={exportHandler:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=o.definitions.AppSettings.properties[n];mM(u,p,{}),!l&&Object.keys(s).length&&qL(r,t,s)},"applyExportRule"),Yz=a((e,t,n)=>{var o;let i=fP(t),r=Object.assign(new py,e);r.settings=Object.assign(new gf,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)Jz(l.manifest.export,u,s,e,i.manifest,n);else{let p=Lo(i.manifest,u);((o=e.settings)==null?void 0:o[s])!==void 0?p[s]=e.settings[s]:(delete p[s],Qa(i.manifest,u))}}}return i.manifest[ae.ManifestSection.ui5].routing=rM(e.home,e.pages,i.manifest),sM(i.manifest[ae.ManifestSection.ui5],e),i},"exportApplicationV4"),TM=a((e,t)=>{if(e[ae.SchemaType.ListReport])return vM(e[ae.SchemaType.ListReport],t,ae.TemplateType.ListReportObjectPageV4);if(e[ae.SchemaType.ObjectPage])return Hz(e[ae.SchemaType.ObjectPage],t);if(e[ae.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ae.SchemaType.Application];return Yz(n,i,r)}else{if(e[ae.SchemaType.AnalyticalListPage])return Xz(e[ae.SchemaType.AnalyticalListPage],t);if(e[ae.SchemaType.FPMCustomPage])return pM(e[ae.SchemaType.FPMCustomPage],gM)}},"exportPageV4");var bn=require("@sap-ux/fe-fpm-writer");var Qz=new Map([[Se.CustomExtensionType.CustomPage,bn.generateCustomPage],[Se.CustomExtensionType.CustomColumn,bn.generateCustomColumn],[Se.CustomExtensionType.CustomSection,bn.generateCustomSection],[Se.CustomExtensionType.ObjectPage,bn.generateObjectPage],[Se.CustomExtensionType.CustomAction,bn.generateCustomAction],[Se.CustomExtensionType.CustomView,bn.generateCustomView],[Se.CustomExtensionType.ControllerExtension,bn.generateControllerExtension],[Se.CustomExtensionType.CustomSubSection,bn.generateCustomSubSection],[Se.CustomExtensionType.CustomFilterField,bn.generateCustomFilter],[Se.CustomExtensionType.CustomHeaderSection,bn.generateCustomHeaderSection]]);function zz(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];if(n[Se.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[Se.SchemaType.ListReport];t=aP(i,r,o,s,l,u)}else if(n[Se.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[Se.SchemaType.ObjectPage];t=oP(i,r,o,s,l,u)}else if(n[Se.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[Se.SchemaType.OverviewPage];t=ld(i,r)}else if(n[Se.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[Se.SchemaType.AnalyticalListPage];t=sP(i,r,o,s,l,u)}}else if(e[Se.FioriElementsVersion.v4]){let n=e[Se.FioriElementsVersion.v4];if(n[Se.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l,contextPath:u}=n[Se.SchemaType.ListReport];t=uy(Se.TemplateType.ListReportObjectPageV4,i,r,o,s,l,u)}else if(n[Se.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:d}=n[Se.SchemaType.ObjectPage];t=nS(i,r,o,s,l,u,p,d,e.featureToggles)}else if(n[Se.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l,contextPath:u}=n[Se.SchemaType.AnalyticalListPage];t=uy(Se.TemplateType.AnalyticalListPageV4,i,r,o,s,l,u)}else if(n[Se.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l}=n[Se.SchemaType.FreestylePage];t=iS(Se.TemplateType.FreestylePageV4,i,o,l,r,s)}else if(n[Se.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:o,views:s,logger:l,annotations:u}=n[Se.SchemaType.FPMCustomPage];t=rS(i,r,o,s,u,e.featureToggles,l)}}return t}a(zz,"generateSchema");function qz(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=zw(i,n)}else if(e[Se.FioriElementsVersion.v4]){let i=e[Se.FioriElementsVersion.v4];t=TM(i,n)}return t}a(qz,"exportConfig");function Zz(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];n[Se.SchemaType.ListReport]?t=lh(n[Se.SchemaType.ListReport]):n[Se.SchemaType.ObjectPage]?t=ph(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.OverviewPage]?t=mh(n[Se.SchemaType.OverviewPage]):n[Se.SchemaType.AnalyticalListPage]&&(t=fh(n[Se.SchemaType.AnalyticalListPage]))}else if(e[Se.FioriElementsVersion.v4]){let n=e[Se.FioriElementsVersion.v4];n[Se.SchemaType.ListReport]?t=Jc(n[Se.SchemaType.ListReport],Se.SchemaType.ListReport):n[Se.SchemaType.ObjectPage]?t=$y(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.AnalyticalListPage]?t=Jc(n[Se.SchemaType.AnalyticalListPage],Se.SchemaType.AnalyticalListPage):n[Se.SchemaType.FPMCustomPage]&&(t=ky(n[Se.SchemaType.FPMCustomPage]))}return t}a(Zz,"importConfig");async function e6(e){return nP(e)}a(e6,"importProject");async function t6(e){return tP(e)}a(t6,"importProjectSchema");function n6(){return{version:"13",fpmWriter:"10"}}a(n6,"getApiVersion");function cP(e){let t=Qz.get(e.customExtension);if(t&&typeof t=="function")return(0,bn.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}a(cP,"generateCustomExtension");var Kr=require("path"),Bs=require("fs");var Nf=a(async e=>new Promise((t,n)=>{(0,Bs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),i6=a(async e=>JSON.parse(await Nf(e)),"readJSON"),pP=a(async e=>new Promise((t,n)=>{(0,Bs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),r6=a(async e=>new Promise(t=>{(0,Bs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),bM=a(async e=>new Promise(t=>{(0,Bs.exists)(e,n=>{t(n)})}),"resourceExists"),o6=a(async e=>i6((0,Kr.join)(e,"manifest.json")),"getManifest"),AM=a(async e=>{let t=[],n=(0,Kr.join)(e,"changes");if(!await bM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await pP(n);for(let o of r)i.some(s=>o.endsWith(s))&&t.push(await Nf((0,Kr.join)(n,o)));return t},"getChanges"),EM=a(async(e,t="fragments")=>{let n=[],i=(0,Kr.join)(e,"ext",t);if(!await bM(i))return n;let r=await pP(i);for(let o of r){let s=(0,Kr.join)(i,o),l=await Nf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),a6=a(async(e,t)=>{var r,o,s,l,u,p,d,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(o=i==null?void 0:i.mainService)==null?void 0:o.settings)!=null&&s.localUri){let T=(0,Kr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await Nf(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((d=(p=i[T])==null?void 0:p.settings)!=null&&d.localUri){let b=(0,Kr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:b,fileContent:await Nf(b)})}}if(n.length===0)for(let T in i){let b=i[T];if((b==null?void 0:b.type)==="ODataAnnotation"&&((m=b==null?void 0:b.settings)!=null&&m.localUri)){let E=(0,Kr.join)(t,b.settings.localUri);n.push({dataSourceUri:E,fileContent:await Nf(E)})}}return n},"getAnnotations"),s6=a(async e=>{let t=(0,Kr.basename)(e),n=(0,Kr.join)(e,"webapp"),i=await o6(n),r=await a6(i,n),o=await AM(n),s=await EM(n),l=await EM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:o,fragments:s,views:l}},"getProject");tc(pr,te(se()),module.exports);0&&(module.exports={exportConfig,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
|
|
295
|
+
`}),N0(ee)}a(Qt,"initI18n");var wt=te(se());function Cc(e,t,n){var r;let i;for(let o in e){let s=e[o];if(ga((r=s.component)==null?void 0:r.name)===wt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(o),s;if(s.pages&&(i=Cc(s.pages,t,n),i))return n.unshift(o),i}}a(Cc,"findObjectPageV2");function Wl(e,t){var n;for(let i in e){let r=e[i];if(ga((n=r.component)==null?void 0:n.name)===wt.PageTypeV2.ListReport)return t.push(i),r}}a(Wl,"findListReportPageV2");function Gl(e){if(!e.manifest[wt.ManifestSection.generic]){oe(e.logger,{severity:wt.LogSeverity.Error,message:ee.t("NOFE"),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}});return}let t=e.manifest[wt.ManifestSection.generic].pages;if(!t){oe(e.logger,{severity:wt.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}});return}return t}a(Gl,"getV2Pages");function Hl(e,t,n){var i;if(!e){oe(t,{severity:wt.LogSeverity.Error,message:ee.t("NOPAGEFORENTITYSET",{entitySet:n}),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}});return}if(!e.entitySet){let r=(i=e.component)==null?void 0:i.name;oe(t,{severity:wt.LogSeverity.Error,message:ee.t("NOENTITYSET",{pageName:r}),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}})}}a(Hl,"checkV2Page");function Kl(e,t,n){var i;for(let r in e){let o=e[r];if(t.push(r),ga((i=o.component)==null?void 0:i.name)===wt.PageTypeV2.AnalyticalListPage)return o}oe(n,{severity:wt.LogSeverity.Error,message:ee.t("NOALP"),location:{path:wt.MANIFESTPATH,range:[wt.ManifestSection.generic]}})}a(Kl,"findAnalyticalListPage");function Ub(e,t){let n=e.split("|");return wt.v2.SectionPosition[n[0]]&&n[1]===t}a(Ub,"isAssociatedCustomSection");function L0(e,t){let n=Bn(e,`sap.ui5/extends/extensions/${wt.v2.SAPUI5_VIEW_EXTENSION}/${wt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Ub(r,t)&&(i[r]=n[r]);return i}a(L0,"findCustomSectionExtensions");function IK(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}}a(IK,"removeEmptySettingsOfFooter");function OK(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}}a(OK,"removeEmptySettingsOfFilterBar");function CK(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}}a(CK,"removeEmptySettingsOfToolBar");function sh(e){CK(e),OK(e),IK(e)}a(sh,"removeEmptySettings");var Wb={};ec(Wb,{AnalyticalListPage:()=>kr,ListReport:()=>co,ObjectPage:()=>ci,OverviewPage:()=>Ht,exportFilterSettings:()=>D0,importDateSettingsOVP:()=>F0,importFilterSettings:()=>_0});var ch=te(se());var kr=class{};a(kr,"AnalyticalListPage"),y([v({flex:{controlId:wg,controlType:()=>ch.ControlType.DynamicPage,createFlexChange:Te}})],kr.prototype,"fitContent",2),y([Ft("table")],kr.prototype,"table",2),y([Ft("template::SmartFilterBar")],kr.prototype,"filterBar",2),y([Ft("analyticalListPageChart")],kr.prototype,"chart",2),y([Ft("analyticalListFooter")],kr.prototype,"footer",2),kr=y([Dr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:ch.v2.FE_TEMPLATE_V2_ALP})],kr);var Hu=te(se());var co=class{};a(co,"ListReport"),y([v({flex:{controlId:wg,controlType:()=>Hu.ControlType.DynamicPage,createFlexChange:Te}})],co.prototype,"fitContent",2),y([Ft("listReportFilter")],co.prototype,"filterBar",2),y([Ft("listReport")],co.prototype,"table",2),y([Ft("listReportFooter")],co.prototype,"footer",2),co=y([Dr({id:Hu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Hu.v2.FE_TEMPLATE_V2_LIST_REPORT})],co);var Bb=te(se());var ci=class{};a(ci,"ObjectPage"),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),y([v({manifest:{path:t=>Ji(t)}}),I({since:"1.52.0"})],ci.prototype,"navToListOnSave",2),y([Ft("header")],ci.prototype,"header",2),y([Ft("sections")],ci.prototype,"sections",2),y([Ft("layout")],ci.prototype,"layout",2),y([v({manifest:{path:t=>pm(t)}}),I({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),y([v({manifest:{path:t=>Ji(t),import:t=>{if("chartSettings"in t)return t.chartSettings},key:"chartSettings"}}),I({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),y([v({manifest:{path:t=>Ji(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:ac}}),I({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=y([Dr({id:Bb.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:Bb.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function NK(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 o=e.dateSettings.fields[n].filter[r];t.fields[n].filter[r]=o,o.equals&&typeof o.equals=="string"&&(t.fields[n].filter[r].equals=o.equals.split(","))}}}a(NK,"importDateSettingsFieldsOVP");function F0(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&&NK(e,t),t}a(F0,"importDateSettingsOVP");function _0(e){let t={};return t.dateSettings=F0(e.filterSettings),t}a(_0,"importFilterSettings");function RK(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 o in r.filter){let s=r.filter[o];s.equals&&Array.isArray(s.equals)&&(n.filterSettings[t].fields[i].filter[o].equals=s.equals.join())}}}a(RK,"exportFilterFields");function D0(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&&RK(t,n,e))}a(D0,"exportFilterSettings");var Ht=class{};a(Ht,"OverviewPage"),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"globalFilterModel",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"globalFilterEntityType",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"globalFilterEntitySet",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"showBasicSearch",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"disableErrorPage",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"smartVariantRequired",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"bHeaderExpanded",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"containerLayout",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"showDateInRelativeFormat",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"disableTableCardFlexibility",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"enableLiveFilter",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"enableLazyRendering",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"refreshStrategyOnAppRestore",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"considerAnalyticalParameters",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"refreshIntervalInMinutes",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"useDateRangeType",2),y([v({manifest:{path:()=>gn(),import:_0,export:D0}}),I({since:"1.80.0"})],Ht.prototype,"filterSettings",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"dataLoadSettings",2),y([v({manifest:{path:()=>gn()}})],Ht.prototype,"resizableLayout",2),Ht=y([Dr({id:"sap.suite.ui.generic.template.OverviewPage.view.Details",pageId:"sap.suite.ui.generic.template.OverviewPage"})],Ht);var Gb=class Gb{constructor(t,n,i){this.controls=t,this.pages=n,this.pageTypes=i}createInstance(t,n,i,r){let o=this.controls[r]?this.controls[r]:this.controls[n];return o||(o=this.pageTypes[t][r]?this.pageTypes[t][r]:this.pageTypes[t][n]),o?Object.assign(new o,i):i}createPageInstance(t,n){let i=this.pages[t];return Object.assign(new i,n)}};a(Gb,"MetadataFactory");var Xl=Gb;var ei=te(se());var LK={},FK={Table:yc,ResponsiveTableWithMultiSelect:yc,ResponsiveTableWithInlineDelete:yc},_K={[ei.v2.CardSettingsType.listCardSettings]:Fl,[ei.v2.CardSettingsType.listCardSettingsv4]:Fl,[ei.v2.CardSettingsType.analyticalCardSettings]:_l,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:_l,[ei.v2.CardSettingsType.stackCardSettings]:mu,[ei.v2.CardSettingsType.linkListCardSettings]:hu,[ei.v2.CardSettingsType.tableCardSettings]:Dl,[ei.v2.CardSettingsType.tableCardSettingsv4]:Dl},DK={[ei.SAPUI5_VIEW_CLASS]:ju,[ei.SAPUI5_FRAGMENT_CLASS]:ku,Table:Oc,ObjectPageResponsiveTableWithMultiSelect:Oc,ObjectPageResponsiveTableWithInlineDelete:Oc},wK={[ei.PageTypeV2.AnalyticalListPage]:LK,[ei.PageTypeV2.ListReport]:FK,[ei.PageTypeV2.ObjectPage]:DK,[ei.PageTypeV2.OverviewPage]:_K},Hb=class Hb extends Xl{constructor(){super(kb,Wb,wK)}};a(Hb,"MetadataInstanceFactoryV2");var Ni=Hb;function MK(e,t,n,i,r){if(e.filterBar=t.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.ListReportFilterBar,e.filterBar),_n(e.filterBar,n.manifest,i[Ut.DefinitionName.ListReportFilterBar],r,n.logger),i.SelectionFields){e.filterBar.selectionFields=t.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.ListReportFilterBar,e.filterBar.selectionFields);let o=i.SelectionFields.properties;for(let s in o){let l=s;e.filterBar.selectionFields[l]=t.createInstance(Ut.PageTypeV2.ListReport,"SelectionFieldDateSettings"),_n(e.filterBar.selectionFields[l],n.manifest,i.SelectionFieldDateSettings,r,n.logger,l)}}}a(MK,"importFilterBar");function VK(e,t,n,i,r){var s;let o;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?o=t[e+"<LineItems>"]:t[uc]&&t[pc]&&(o=JSON.parse(JSON.stringify(t[uc])),o.properties={...o.properties,...t[pc].properties}),_n(n.table,i.manifest,o,r,i.logger),(!((s=t.LineItems)!=null&&s.properties)||Object.keys(t.LineItems.properties).filter(l=>l!=="custom").length<1)&&!n.table.quickVariantSelection&&!n.table.quickVariantSelectionX&&oe(i.logger,{severity:Ut.LogSeverity.Error,message:ee.t("NOLINEITEMS")})}a(VK,"importTable");function kK(e,t,n,i){let r=e.jsonSchema.definitions,o=oh(e.manifest,i);if(t.table=n.createInstance(Ut.PageTypeV2.ListReport,o,t.table),ah(t,n,r),VK(o,r,t,e,i),t.table.toolBar=n.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,r[Ut.DefinitionName.ToolBarLR],i,e.logger),r[Ut.DefinitionName.ActionsLR])for(let l in r[Ut.DefinitionName.ActionsLR].properties){let u=vs(l);t.table.toolBar.actions[u]=n.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.Action),_n(t.table.toolBar.actions[u],e.manifest,r[Ut.DefinitionName.Action],i,e.logger)}MK(t,n,e,r,i),t.footer={actions:{}};let s=r[Ut.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=vs(l);t.footer.actions[u]=n.createInstance(Ut.PageTypeV2.ListReport,Ut.DefinitionName.FooterAction),_n(t.footer.actions[u],e.manifest,r[Ut.DefinitionName.Action],i,e.logger)}}a(kK,"addSettings");function lh(e){if(Qt(),!Gl(e))return;let n=new Ni,i=n.createPageInstance(Ut.PageTypeV2.ListReport),r=[],o=Wl(e.manifest[Ut.ManifestSection.generic].pages,r);if(Hl(o,e.logger,o==null?void 0:o.entitySet),!!o)return kK(e,i,n,r[0]),e.flex.forEach(s=>{za(s)&&rh(i,s,e.jsonSchema,e.logger)}),Bl(i,e.manifest,o,Ut.PageTypeV2.ListReport,e.fragments),sh(i),i}a(lh,"createListReportConfig");var St=te(se());function jK(e,t,n,i){var u,p;let r=oh(e.manifest,i),o=e.jsonSchema.definitions;if(ah(t,n,o),t.table=n.createInstance(St.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),_n(t.table,e.manifest,o[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,o[St.DefinitionName.ToolBar],i,e.logger),o[St.DefinitionName.ActionsLR])for(let d in o[St.DefinitionName.ActionsLR].properties){let m=vs(d);t.table.toolBar.actions[m]=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.Action),_n(t.table.toolBar.actions[m],e.manifest,o[St.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,o[St.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),o[St.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let d=o[St.DefinitionName.SelectionFields].properties;for(let m in d){let T=m;t.filterBar.selectionFields[T]=n.createInstance(St.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[T],e.manifest,o.SelectionFieldDateSettings,i,e.logger,T)}}t.chart=n.createInstance(St.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,o.ChartSettings,i,e.logger),t.footer={actions:{}};let s=o[St.DefinitionName.FooterActionsLR];if(s)for(let d in s.properties){let m=vs(d);t.footer.actions[m]=n.createInstance(St.PageTypeV2.AnalyticalListPage,St.DefinitionName.FooterAction),_n(t.footer.actions[m],e.manifest,o[St.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[St.ManifestSection.generic].pages[i].component)==null?void 0:u.settings)==null?void 0:p.keyPerformanceIndicators;l&&Object.keys(l).forEach(d=>{t.keyPerformanceIndicators[d]=n.createInstance(St.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(St.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[d],e.manifest,o.KPISettings,i,e.logger,d)})}a(jK,"addSettings");function fh(e){if(Qt(),!Gl(e))return;let n=new Ni,i=n.createPageInstance(St.PageTypeV2.AnalyticalListPage),r=[],o=Kl(e.manifest[St.ManifestSection.generic].pages,r,e.logger);if(Hl(o,e.logger,o==null?void 0:o.entitySet),!!o)return jK(e,i,n,r[0]),e.flex.forEach(s=>{za(s)&&rh(i,s,e.jsonSchema)}),Bl(i,e.manifest,o,St.PageTypeV2.AnalyticalListPage,e.fragments),sh(i),i}a(fh,"createAnalyticalListPageConfig");var Ee=te(se());var Ku=require("@sap-ux/vocabularies-types/vocabularies/UI");var UK=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function BK(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(`${Ku.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ActionTitlePrefix}${t}`;else if(e[0].indexOf(Ku.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}a(BK,"getSingleSelectorIdPart");function WK(e){let t,n=e.split(":::");if(n.length===1)t=BK(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(`::${Ku.UIAnnotationTerms.LineItem}`,`/@${Ku.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}a(WK,"getFacetID");function GK(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let d=za(s),m=d&&((l=d.controlId)==null?void 0:l.split("--"))||[];if(d&&((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 b=WK(T);T=jb(T).replace(/:3a:3a/g,"::").replace(/\/@com.sap.vocabularies/g,"::com.sap.vocabularies"),i[`${T}::${d.content.property}`]={controlId:T,propertyId:d.content.property,facetId:b,newValue:d.content.newBinding!==void 0?d.content.newBinding:d.content.newValue,controlType:d.controlType,creation:d.creation}}}catch(d){oe(n,{severity:Ee.LogSeverity.Error,message:ee.t("FLEXERROR")},...d)}}),Object.entries(i).sort((s,l)=>s[1].creation-l[1].creation).reduce((s,[l,u])=>(s[l]=u,s),{})}a(GK,"prepareFlexChanges");var HK=a(e=>{var n,i,r;let t;if(e.$ref)return t=e.$ref.includes("<")?e.$ref.split("<")[0]:e.$ref,t.replace(B,"");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(B,"");if((r=e.properties)!=null&&r.subsections)return"ObjectPageSubSectionV2"},"getSectionType");function KK(e,t,n,i,r,o){let s;r?s=[r.replace(/@/g,"")]:s=[o.replace(/@/g,""),o==null?void 0:o.replace(/::@com.sap.vocabularies/g,Ee.VOCWITHSLASH)];for(let l in e){let u=e[l],p=u.propertyId===t,d=t==="columns"&&u.controlType===Ee.ControlType.TableColumn;(p||d)&&s.indexOf(u==null?void 0:u.facetId)>-1&&lm(n,u,i.jsonSchema)}}a(KK,"importFlexChangesOfTable");function XK(e,t){return e.facetId==="template"&&t}a(XK,"isStandardActionFlexChange");function JK(e,t,n,i,r,o){var d;let s=!1,l=!1,u=a((m,T)=>T.every(b=>m.includes(b)),"idElementChecker");o?(s=l=n.test(t.controlId),r&&(s=l&&i.test(t.controlId))):r&&(s=i.test(t.controlId));let p=t.controlId.split("::");return t.controlType===Ee.ControlType.GroupElement&&l||((d=t.facetId)==null?void 0:d.includes(Ee.ActionTitlePrefix))&&!r&&s||r&&u(p,r.split("::"))&&s||e.title&&u(p,e.title.split("::"))||!t.facetId&&UK.includes(t.controlType)||XK(t,l)}a(JK,"matchSelector");function YK(e,t,n,i,r,o){var u;let s=new RegExp(`.*${o}`),l=new RegExp(`.*${r}`);for(let p in n){let d=n[p];if(d.propertyId!==i||d.controlType!==((u=e.properties[d.propertyId])==null?void 0:u[Ee.SchemaTag.controlType]))continue;JK(e,d,s,l,r,o)&&(t[i]=d.newValue)}}a(YK,"importFlexChanges");function QK(e,t,n,i){if(e&&t)for(let r in e){let o=t[r];o&&(oe(n.logger,{severity:Ee.LogSeverity.Warning,message:Vg(r,o),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}a(QK,"checkDeprecatedProperties");function zK(e,t,n,i,r,o,s){let l=s!=null&&s.id?s.id.replace(/\/@/g,"::").replace(/@com.sap/g,"com.sap"):void 0,u,p;s!=null&&s.title?(u=e.manifest.path(t,{},s.title),p=Bn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Bn(n.manifest,u));let d=e.manifest.import;if(d&&typeof d=="function"){let m=d(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 QK(p,o,n,u),p}a(zK,"importManifestSetting");function Qi(e,t,n,i,r,o){var l,u;if(!n)return;let s=t!=null&&t.getDeprecated?t.getDeprecated():{};for(let p in n.properties||n){let d=zn(t,p);if(p==="columns"||d!=null&&d.flex)if((l=r==null?void 0:r.type)!=null&&l.startsWith("ObjectPageSectionTableV2")||(u=r==null?void 0:r.type)!=null&&u.startsWith("ObjectPageSubSectionTableV2"))KK(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);YK(n,t,i.flexChanges,p,m,o)}else d!=null&&d.manifest&&zK(d,i.pageKeys,e,t,p,s,r)}}a(Qi,"transferSettingsAndFlexChanges");function M0(e,t,n,i){let r=Wi(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=`${bF}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Hg}${r}`;break}}return r.replace(/@/g,"")}a(M0,"getActionId");function qK(e,t,n,i){var r;for(let o in t){let s=t[o].$ref.split(B)[1].split("<")[0];if(["ObjectPageHeaderActionStandard","ObjectPageFooterActionStandard"].includes(s)){let l=(r=t[o].$ref.split("<"))==null?void 0:r[1].split(">")[0],u=M0(s,o,"","");e.actions[o]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Qi(n,e[Ee.PropertyName.actions][o],n.jsonSchema.definitions[l],i,{},u)}}}a(qK,"fillStandardActions");function uh(e,t,n,i,r,o){var l;n[Ee.PropertyName.actions]={};let s=r.split("::").pop();if(i.flexChanges&&Object.keys(i.flexChanges).length>0){let u={};o&&(u.id=o);for(let p in t){let d=vs(p),m=M0(s,d,r,o);m&&(n[Ee.PropertyName.actions][d]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Qi(e,n[Ee.PropertyName.actions][d],e.jsonSchema.definitions[s],i,u,m)),(l=n[Ee.PropertyName.actions])!=null&&l[d]&&Object.keys(n[Ee.PropertyName.actions][d]).length===0&&delete n[Ee.PropertyName.actions][d]}}qK(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}a(uh,"fillActions");function ZK(e,t,n,i,r){var s;let o;i[t.id].form.fields={};for(let l in n){o=`${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,"")}::${o}`:`${t.title}::${o}`;Qi(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}a(ZK,"fillFields");function eX(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}a(eX,"prepareTableSchema");function tX(e,t,n,i,r){var l,u;let o=t.title||t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[o];if(s||r.flexChanges){let p=((l=s==null?void 0:s.tableSettings)==null?void 0:l.type)||"ResponsiveTable",d=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]=d;let m=e.jsonSchema.definitions,T=eX(p,t,m);Qi(e,i[t.id],t.schema,r,{title:t.title}),Qi(e,i[t.id][Ee.PropertyName.table],T,r,t);let b=JSON.parse(JSON.stringify(m))[`Actions<${t.id}>`];if(b!=null&&b.properties){let E=t!=null&&t.title?t.title.replace(/@/g,"::").replace(/::com/g,"com"):(u=t==null?void 0:t.id)==null?void 0:u.replace(/@/g,"::").replace(/::com/g,"com");uh(e,b.properties,i[t.id][Ee.PropertyName.table].toolBar,r,"ObjectPageToolBarAction",E)}Object.keys(i[t.id][Ee.PropertyName.table].toolBar).length===0&&delete i[t.id][Ee.PropertyName.table].toolBar}}a(tX,"fillTableInConfig");function nX(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,o=r?$g(r.$ref):void 0;if(o){let s={key:t.replace("@",""),target:o};Bl(n[t],e.manifest,i,Ee.PageTypeV2.ObjectPage,e.fragments,s)}}a(nX,"fillCustomColumnsInConfig");function iX(e,t,n,i,r){let o=t.id.replace("@com.sap","com.sap"),s=n&&n.sections&&n.sections[o];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)&&(Qi(e,i[t.id],t.schema,r,{title:t.title}),Qi(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}a(iX,"fillChartSection");function rX(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&&Qi(e,n[t.id],t.schema,i,{title:t.title});let o=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");o!=null&&o.properties&&uh(e,o.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&ZK(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]}a(rX,"fillFormSection");function w0(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Qi(e,i[t.id],t.schema,r,t);let o,s=t.schema.properties;(l=s==null?void 0:s.subsections)!=null&&l.properties?o=s.subsections.properties:o=s,V0(e,o,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}a(w0,"fillSubSection");function V0(e,t,n,i,r){var s;let o=e.jsonSchema.definitions;for(let l in t){let u=l.replace(/\/@/g,"::"),p={id:u,type:HK(t[l]),schema:t[l],title:JT(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=o[`${p.type}<${l}>`],tX(e,p,n,i,r),nX(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=o[`${p.type}<${l}>`],iX(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=o[`${p.type}<${l}>`],rX(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":{p.schema=o[`${p.type}<${l}>`],w0(e,p,n,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=o[`${p.type}<${l}>`],w0(e,p,n,i,r))}}a(V0,"fillSectionsInConfig");function oX(e,t,n,i,r){if(Object.keys(e).length>0){t.sections.custom=[];for(let o in e){let s="fragmentName"in e[o]?n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment"):n.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView"),l=i["fragmentName"in e[o]?"ObjectPageCustomSectionFragment":"ObjectPageCustomSectionView"];Qi(r,s,l,n,{id:o}),t.sections.custom.push(s)}}}a(oX,"fillCustomSectionsInConfig");function aX(e,t){var p;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Qi(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Qi(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>"];Qi(e,n.header,r,t);let o=i[Ee.DefinitionName.ObjectPageHeaderActions];o&&uh(e,o.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&uh(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Qi(e,n.layout,i[Ee.DefinitionName.ObjectPageLayout],t),Object.keys(n.layout).length===0&&delete n.layout,n.sections={};let l=i[Ee.DefinitionName.Sections];if(l){let d=(p=t.v2Page.component)==null?void 0:p.settings;V0(e,l.properties,d,n.sections,t)}let u=L0(e.manifest,e.entitySet);return oX(u,n,t,i,e),n}a(aX,"fillConfig");function ph(e){Qt();let t=Gl(e);if(!t)return;let n=e.entitySet,i=[],r=Cc(t,e.entitySet,i);if(Hl(r,e.logger,n),!r)return;let o=GK(e.flex,n),s=new Ni;return aX(e,{pageKeys:i,flexChanges:o,v2Page:r,factory:s})}a(ph,"createObjectPageConfigV2");function gh(e,t){var n,i;return(n=e.component)!=null&&n.name?Fg(ga((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}a(gh,"generateId");function sX(e,t,n,i,r,o,s){e.navigation={};let l=k0(t.pages,n,i,r,o);for(let u in l){let p=l[u];s[u]=p}for(let u in t.pages){let p=gh(t.pages[u],u);e.entitySet?e.navigation[p]=l[p].navigationProperty?`${e.entitySet}.${l[p].navigationProperty}`:e.entitySet:e.navigation[p]=l[p].navigationProperty?l[p].navigationProperty:p}}a(sX,"getPageConfigsAndNavigations");function k0(e,t,n,i,r,o){var l;let s={};for(let u in e){let p=e[u],d=gh(p,u);if(!d)continue;let m={pageType:ga((l=p.component)==null?void 0:l.name),entitySet:p.entitySet,...p.navigationProperty&&{navigationProperty:p.navigationProperty},...p.defaultLayoutType&&{defaultLayoutType:p.defaultLayoutType}};s[d]=m;let T=Object.keys(i).find(b=>b.includes(d))||Object.keys(i).find(b=>b.includes(d.slice(0,-1)))||Object.keys(i).find(b=>b.includes(m.pageType));if(T)if(m.pageType===mn.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[T],fragments:r,logger:o};m.config=lh(b)}else if(m.pageType===mn.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[T],fragments:r,logger:o};m.config=fh(b)}else{let b={manifest:n,flex:t,jsonSchema:i[T],entitySet:m.entitySet,fragments:r,logger:o};m.config=ph(b)}p.pages&&sX(m,p,t,n,i,r,s)}return s}a(k0,"getPagesAndConfigs");var Kb=class Kb extends ns{constructor(t){Qt();let n;t.manifest[mn.ManifestSection.generic]?n=t.manifest[mn.ManifestSection.generic].pages:oe(t.logger,{severity:mn.LogSeverity.Error,message:ee.t("NOFE"),location:{path:mn.MANIFESTPATH,range:[mn.ManifestSection.generic]}}),n||oe(t.logger,{severity:mn.LogSeverity.Error,message:ee.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:mn.MANIFESTPATH,range:[mn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&gh(n[i],i),o=new is,s=Nt(mn.SchemaType.Application),l=t.appSchemas[s.filename];_n(o,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,k0(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),mn.FioriElementsVersion.v2,o)}};a(Kb,"V2AppProvider");var dh=Kb;function Xu(e,t,n){var r,o;let i={};for(let s in e){let l=e[s];if((r=l.component)!=null&&r.name||oe(n,{severity:mn.LogSeverity.Error,message:ee.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:mn.MANIFESTPATH}}),((o=l.component)==null?void 0:o.name)===t){let u=gh(l,s);i[u]=l}if(t===mn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Xu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}a(Xu,"getPages");var xa=te(se());var Es=te(se());var Jb=te(yT());var hn=te(se());var cX=["colorPalette","tabs"];function lX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}a(lX,"createCard");function j0(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),j0(e,n.join("|"))}return t}a(j0,"findAvailableId");function Ju(e,t,n,i,r,o){i!=null&&i.properties&&Xb(e,t,n,i.properties,r,o)}a(Ju,"transferManifestEntriesOVP");function Nc(e,t,n,i){return e.createInstance(hn.PageTypeV2.OverviewPage,i,n,t)}a(Nc,"assignReflectMetadataRules");function fX(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(B),r=e.appSchema.definitions[i[1]];t=Nc(e.factory,i[1],t,"CustomCard"),Ju(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}a(fX,"processAnyOfDefinitionsOfOVP");function uX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!cX.includes(i)?t[i]=(0,Jb.default)(t[i]||{},r||{},{arrayMerge:HT}):t[i]=r}a(uX,"checkSyncRuleForExport");function pX(e,t,n,i,r,o){let s=e.manifest.path([...t,n]),l=Bn(i.manifest,s);if(n in hn.v2.CardSettingsType||n==="settings")l.settings=(0,Jb.default)(l.settings||{},r||{},{arrayMerge:HT});else if(r!==void 0){let u=e.manifest.export;uX(u,l,o,n,r)}else l[n]!==void 0&&delete l[n]}a(pX,"transferToManifest");function dX(e,t,n,i){Object.keys(e).forEach(r=>{let o=e[r].template,s;Object.values(hn.v2.CardTemplateType).includes(o)?s=Object.keys(t.definitions).filter(l=>{var p;let u=(p=t.definitions[l].properties)==null?void 0:p.template;if(u!=null&&u.enum)return u.enum.indexOf(e[r].template)>-1;if(u!=null&&u.const)return u.const===e[r].template}):s=["CustomCard"],e[r]=Nc(n,s[0],e[r],"CustomCard"),lX(r,i.manifest[hn.ManifestSection.ovp]),Ju(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[hn.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[hn.ManifestSection.ovp].cards[r]})}a(dX,"transferCards");function gX(e,t,n){if(t==="cards")dX(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Fo(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,hn.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(B);e.currentObject=Nc(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ju(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],Xb(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],Xb(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}a(gX,"exportOfObject");function Xb(e,t,n,i,r,o){for(let s in i){if(s==="description")continue;let l=e[s],u=zn(e,s),p={pathHierarchy:o,propertyList:i,appSchema:n,currentObject:l,configObject:e,factory:r,exportResults:t};o[o.length-1]==="anyOf"?(p.currentObject=e[o[o.length-2]],l=fX(p)):l&&typeof l=="object"&&i[s]&&gX(p,s,r),u!=null&&u.manifest&&pX(u,o,s,t,l,e)}}a(Xb,"processProperties");function mX(e,t,n,i,r,o,s){let l;t.length===0?l=["page"]:l=t;let u=n.flex.controlId(e.baseId,i,l,n.flex.controlType,r),p=kg(o,n,e.ui5Version,s,u),d=JSON.parse(JSON.stringify(e.exportResults.manifest));d["sap.app"].id=e.appId;let m=n.flex.createFlexChange(p,d);e.exportResults.flexChanges.find(b=>{let E=!1,C=JSON.parse(b);C={content:C.content,selector:C.selector};let R=JSON.parse(m);return R={content:R.content,selector:R.selector},JSON.stringify(C)===JSON.stringify(R)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}a(mX,"evaluateFlexRule");function hX(e,t,n,i,r,o){if(e.propertyDefinition.type!=="array"&&e.nextDefinition&&e.nextDefinition.targetDefinition.type==="object"&&e.nextDefinition.targetDefinition.properties)e.propertyDefinition.type!=="array"&&n[o]===void 0&&(n[o]={});else{let s=t.manifest.export;s&&typeof s=="function"?s(n,i,r,o):s!==!1&&(n[o]=i[r])}}a(hX,"exportConfigValue");function yX(e,t,n,i,r){let o=Bn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)hX(e,n,o,r,i,s);else{let l=n.manifest.delete;l&&typeof l=="function"?l(o,r,i,s):Object.prototype.hasOwnProperty.call(o,s)&&delete o[s],Qa(e.exportResults.manifest,t)}}a(yX,"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(hn.FacetTitlePrefix)?r.split(hn.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}a(vX,"getManifestPathOfSections");function TX(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}a(TX,"getManifestPathOfTable");function EX(e,t,n,i,r){let o;return t[0]===hn.PropertyName.sections?o=vX(t,o,n,e,r):t[0]===hn.PropertyName.table?o=TX(t,o,n,e,i):t[0]==="keyPerformanceIndicators"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,r):t[0]==="filterBar"&&t[1]==="selectionFields"?o=n.manifest.path(e.pageKeys,e.exportResults.manifest,t.slice(2).join("/")):o=n.manifest.path(e.pageKeys),o}a(EX,"getManifestPath");function bX(e,t,n,i,r,o,s){if(!t)return;let l=i.indexOf("subsections");for(;l>-1;)i.splice(l-1,2),l=i.indexOf("subsections");if(t.flex)mX(e,i,t,r,o,n,s);else if(t.manifest){let u=EX(e,i,t,n,o);yX(e,u,t,s,n)}}a(bX,"evaluateExportRule");function AX(e,t,n){var s;let i=e.split("|"),r=i[1],o=i[2];if(r===t.entitySet){let l=(s=t.config)==null?void 0:s.filter(u=>(u.tabKey===o||o===void 0&&u.tabKey===""||o&&t.sectionKey===o)&&u.extensionType===t.extensionType);if((!l||l.length===0)&&(Sm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(hn.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(hn.ViewTemplateType.ResponsiveTableColumnsExtension,hn.ViewTemplateType.ResponsiveTableCellsExtension);Sm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}a(AX,"deleteObsoleteColumn");function SX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=WF(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&AX(r,e,n)}a(SX,"deleteObsoleteColumnsFromFragment");function xX(e,t,n,i,r){let o={};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}=xm(n,i,s.tabKey||r,s.extensionType);o[l]||(o[l]={viewTemplateType:u,columns:[]}),o[l].columns.push(s)}return o}a(xX,"clusterConfigColumnsByPath");function $0(e,t,n,i){let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in hn.v2.TableColumnExtensionTypeV2){let{path:u}=xm(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};SX(p)}if(t){let l=xX(t,n,e.v2Page,s,r);for(let u in l)LE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}a($0,"transferColumnExtensions");function PX(e,t,n,i,r,o){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let d=j0(s,[p.relativePosition,l,p.relatedFacet].join("|"));s.push(d)}for(let p=0;p<s.length;p++){let m=o.anyOf.find(b=>{var E;return(E=b.$ref)==null?void 0:E.includes(t[p].constructor.name)}).$ref.split(B),T=e.appSchema.definitions[m[m.length-1]];Ts(e,t[p],i,[...r,s[p]],T)}let u=Bn(e.exportResults.manifest,iE());for(let p in u)Ub(p,l)&&!s.includes(p)&&delete u[p]}a(PX,"transferManifestExtensions");function IX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===hn.PropertyName.table){n=e[i-1];break}return Yn(n,t)}a(IX,"getSectionId");function OX(e,t,n,i,r,o){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);Ts(t,u.configObject,r,[...o,i],u.targetDefinition,l)})}a(OX,"transferIndexTable");function CX(e,t,n,i,r,o){let s,l=$g(e.$ref);l&&(s={target:l,key:IX(t,n)}),$0(i,r==null?void 0:r.custom,o.targetDefinition,s)}a(CX,"transferCustomColumns");function NX(e,t,n,i,r,o,s){e.anyOf.forEach(l=>{let u=Fo(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&Ts(t,u.configObject,o,[...s,r],u.targetDefinition,u.title)})}a(NX,"handleAnyOfDefinitions");function RX(e,t,n,i,r,o,s){let l=e.propertyDefinition;if((l==null?void 0:l.type)==="array"&&(t[0]==="sections"||t[0]==="subsections")&&r==="custom")PX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(o&&r==="custom"){CX(l,t,s,e,n,o);return}else o?Ts(e,o.configObject,i,[...t,r],o.targetDefinition,o.title):l.anyOf&&NX(l,e,s,n==null?void 0:n[r],r,i,t)}a(RX,"transferComplexProperty");function Ts(e,t,n,i,r,o){let s;if(r!=null&&r.properties)for(let l in r.properties){s=t==null?void 0:t[l];let u=t&&Mg(t,l),p=u?[...n,u]:n,d=zn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=Fo(e.appSchema,o,s,m,l,e.factory,e.pageType);if(bX(e,d,t,[...i],p,o,l),OX(s,e,o,l,p,i),s===void 0||typeof s=="object")RX(e,i,t,p,l,T,o);else if((m==null?void 0:m.$ref)===B+"TableCustomColumns"){$0(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}a(Ts,"transferManifestEntriesAndFlexChange");function U0(e,t,n,i,r,o,s){let l=t[t.length-1],u=e.definitions[l];n[i]=Nc(r,i,n[i],l),o.push(i),Yb(r,n[i],s,u.properties,e,o)}a(U0,"transferSettingsOfRef");function LX(e,t,n,i,r,o,s){if(n[t].$ref){e[t]={};let l=n[t].$ref.split(B);U0(i,l,e,t,r,o,s)}else if(t==="settings"&&n[t].anyOf){e[t]={};let u=`${B}${Es.v2.cardTemplateSettingsMap[e.template]}`.split(B);U0(i,u,e,t,r,o,s)}}a(LX,"processPropertiesOfObject");function FX(e,t,n,i,r,o,s){let l=zn(e,t);if(l!=null&&l.manifest){let u=l.manifest.path([...n,t]),p=Bn(i,u);Object.prototype.hasOwnProperty.call(p,t)&&bl(l,p,t,e)}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&LX(e,t,r,o,s,n,i)}a(FX,"processOvpProperty");function Yb(e,t,n,i,r,o){for(let s in i)FX(t,s,o,n,i,r,e)}a(Yb,"processOvpProperties");function _X(e,t,n,i){Yb(i,e,t,n.properties,n,[]),e.cards={},Object.keys(t[Es.ManifestSection.ovp].cards).forEach(r=>{let o=t[Es.ManifestSection.ovp].cards[r].template,s=Es.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[r]=Nc(i,s,{},"CustomCard"),e.cards=Nc(i,s,e.cards,"CustomCard"),Yb(i,e.cards[r],t,n.definitions[s].properties,n,[r])})}a(_X,"addSettings");function mh(e){let t=new Ni,n=t.createPageInstance(Es.PageTypeV2.OverviewPage);return e.jsonSchema&&_X(n,e.manifest,e.jsonSchema,t),n}a(mh,"createOverviewPageConfig");var Qb=class Qb extends ns{constructor(t){let n={},i=t.manifest[xa.ManifestSection.ovp],r=new is,o=Nt(xa.SchemaType.Application);_n(r,t.manifest,t.appSchemas[o.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(d=>d.includes(xa.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s]},u={pageType:xa.PageTypeV2.OverviewPage,config:mh(l),entitySet:i.globalFilterEntitySet},p=Fg(u.pageType,u.entitySet);n[p]=u,super(t.manifest,t.appSchemas,p,n,xa.FioriElementsVersion.v2,r,t.logger)}};a(Qb,"V2OvpProvider");var hh=Qb;var Bo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ne=te(se()),B0=require("path");function DX(){return([e,t],[n,i])=>t[ne.SchemaTag.propertyIndex]-i[ne.SchemaTag.propertyIndex]}a(DX,"sortByPropertyIndex");function Yu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(DX())}a(Yu,"sortPropertiesRecords");function W0(e){let t;return"header"in e?t=e.header:"text"in e?t=e.text:"title"in e?t=e.title:"label"in e&&(t=e.label),t}a(W0,"getExtensionText");function zb(e,t,n,i,r){var s;(((s=e.position)==null?void 0:s.placement)||ne.v4.Placement.After)===ne.v4.Placement.Before?t.splice(n,0,[i,r]):t.splice(n+1,0,[i,r])}a(zb,"addExtensionToSortedArray");function wX(e,t,n,i,r){Object.entries(e).filter(([s])=>s!==t).findIndex(([s,l])=>{var u,p,d;return((u=l.position)==null?void 0:u.placement)==="Before"&&((p=l.position)==null?void 0:p.anchor)===((d=n.position)==null?void 0:d.anchor)})===-1&&(i.splice(i.length,0,[t,r]),delete e[t])}a(wX,"addRemainingTargetByBefore");function qb(e,t,n,i,r=!1){var u,p;let o=Object.entries(e).length,s=a((d,m)=>{let T=W0(d);return{$ref:`${B}${t}`,description:T,keys:[{name:ne.SchemaKeyName.key,value:`${m}`}]}},"getExtensionDetails");for(let d in e){let m=e[d],T=s(m,d);if((u=m.position)!=null&&u.anchor&&((p=m.position)!=null&&p.placement)){let b=n.findIndex(E=>E[0]===m.position.anchor);b>-1?(zb(m,n,b,d,T),delete e[d]):d===m.position.anchor||Object.keys(e).indexOf(m.position.anchor)===-1?(oe(i,{severity:pr.LogSeverity.Error,message:ee.t("INVALIDANCHOR",{id:d,anchor:m.position.anchor}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.generic]}}),n.splice(n.length,0,[d,T]),delete e[d]):r&&wX(e,d,m,n,T)}else r&&(zb(m,n,n.length,d,T),delete e[d])}let l=Object.entries(e).length;l>0&&o!==l?qb(e,t,n,i):l>0&&qb(e,t,n,i,!0)}a(qb,"adjustCustomExtReferringToCustomExt");function MX(e,t){var r,o;let n=((r=e.position)==null?void 0:r.placement)||ne.v4.Placement.After,i=(o=e.position)==null?void 0:o.anchor;if(!i){let s=n===ne.v4.Placement.Before?0:t.length-1;i=t[s]?t[s][0]:void 0}return i}a(MX,"getExtensionAnchor");function VX(e,t){var i;let n=[];for(let r in e){let o=(i=e[r].position)==null?void 0:i.anchor,s=t.some(l=>l[0]===o);o&&!s&&n.push(r)}return n}a(VX,"getLocalExtensionsToSkip");function kX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ne.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let o=a((p,d)=>{for(let m of n){let T=t[m[0]];if(d(T))break;p++}return p},"findNextIndex"),s=0;return i===ne.v4.Placement.Before?s=o(0,p=>!p):s=o(-1,p=>{var d,m;return!!(p&&((d=p==null?void 0:p.position)!=null&&d.anchor||((m=p==null?void 0:p.position)==null?void 0:m.placement)!==ne.v4.Placement.Before))}),s>-1?s:0}a(kX,"getExtensionIndexByMergedApproach");function jX(e,t,n,i,r=!1){return r?kX(e,t,n):n.findIndex(o=>o[0]===i)}a(jX,"getExtensionIndex");function bs(e,t,n,i="template",r,o=!1){let s=[...t],l={...e},u=VX(l,s);for(let p in l){if(u!=null&&u.includes(p))continue;let d=l[p];if(!(i in d)){delete l[p];continue}let m={$ref:`${B}${n}`,description:W0(d)||p,keys:[{name:ne.SchemaKeyName.key,value:`${p}`}],actionType:ne.ActionType.Custom},T=MX(d,s);if(T){let b=jX(d,e,t,T,o);b>-1&&(zb(d,t,b,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&qb(l,n,t,r),t}a(bs,"addExtensionToArray");function Rc(e,t,n,i=ne.DefinitionName.CustomColumn,r,o){var T,b,E,C;let s=r||ne.DefinitionName.LineItems,l=e.definitions[s];if(!l)return;let u=Yu(l),p=o?o.replace(/::/g,"/"):`@${Bo.UIAnnotationTerms.LineItem}`,d=(C=(E=(b=(T=t.options)==null?void 0:T.settings)==null?void 0:b.controlConfiguration)==null?void 0:E[p])==null?void 0:C.columns;d&&(u=bs(d,u,i,void 0,n));for(let R=0;R<u.length;R++)u[R][1][ne.SchemaTag.propertyIndex]=R;let m={};u.forEach(([R,L])=>m[R]=L),e.definitions[s].properties=m}a(Rc,"addCustomColumnDefinition");function $X(e){let t;return e.lineItemId.startsWith(ne.DefinitionName.LineItemsOfView)?t=ne.DefinitionName.ViewToolBarAction:e.lineItemId.startsWith(ne.DefinitionName.LineItems)?t=ne.DefinitionName.ToolBarAction:t=ne.DefinitionName.ObjectPageToolBarAction,t}a($X,"determineActionDefinitionName");function UX(e,t,n){e[ne.SchemaTag.keys]=[],t[ne.SchemaKeyName.semanticObject]&&e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.semanticObject,value:t[ne.SchemaKeyName.semanticObject]});let{key:i,ns:r}=dc(n,!0);e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.action,value:i}),r&&(e[ne.SchemaTag.target]=r)}a(UX,"addTargetAndKeysOfAction");function BX(e,t,n,i,r,o=!0){if(i.Determining===!0)return;let s=$X(e),l=Ei(i,e.entityType),u=i.$Type.split(`${ne.UIVOCABULARY}.`)[1],p=typeof i.Action=="string"?i.Action:i.Action.path,d=Ug(p),m=t.properties[`${u}::${d}`]={description:l};if(o?m.$ref=Un(s,ft(d)):(m.properties={},m.type="object",m.isViewNode=!0),m[ne.SchemaTag.propertyIndex]=r,m[ne.SchemaTag.dataType]=to(i),UX(m,i,p),m[ne.SchemaTag.annotationType]=i.$Type,o){let T=Dt(s,ft(d),e.appSchema);T[ne.SchemaTag.annotationPath]=`${n}/${r}`}else m[ne.SchemaTag.annotationPath]=`${n}/${r}`}a(BX,"addActionRecordToSchema");function WX(e,t,n,i,r){var u;let o=t.lineItemId,s=t.lineItemRecord;if((u=s.Target)!=null&&u.value){let p=`@${ai(ne.UIVOCABULARY,e.oDataServiceAVT)}.`;s.Target.value=s.Target.value.replace(p,"@")}let l=va(s).replace(/\//g,"::");if(l){let p=r;p||(p=e.appSchema.definitions[o]);let d=p.properties,m={description:Ei(s,e.entityType)};r?(m.properties={},m.type="object",m.isViewNode=!0):m.$ref=B+n,m[ne.SchemaTag.annotationType]=s==null?void 0:s.$Type,m[ne.SchemaTag.annotationPath]=`${t.lineItemPath}/${i}`,m[ne.SchemaTag.propertyIndex]=i,m[ne.SchemaTag.dataType]=to(s),d[l]=m,zg(s,d,l)}}a(WX,"addLineItemRecordToSchema");function Zb(e,t,n,i,r=ne.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let o=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Bo.UIAnnotationTypes.DataFieldForAction||s.$Type===Bo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))BX(e,t,n,s,o,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Bo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;WX(e,l,u,o,i)}o++})}a(Zb,"appendLineItemsToSchema");function Lc(e,t=ne.DefinitionName.TableColumn,n=ne.DefinitionName.CustomColumn,i=ne.DefinitionName.CustomTableAction){let{actions:r,lineItemPath:o}=Yg(e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);Zb(e,r,o,void 0,t)}a(Lc,"addLineItemsTypeToSchema");function Fc(e,t,n,i=ne.DefinitionName.Position,r){var p,d,m,T,b;let o=(p=e.definitions[t])==null?void 0:p.properties,s=[];if(o)for(let E in o)E!=="custom"&&s.push(E);let l=t!==ne.DefinitionName.LineItems?r:`@${Bo.UIAnnotationTerms.LineItem}`,u=(b=(T=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.controlConfiguration)==null?void 0:T[l])==null?void 0:b.columns;if(u)for(let E in u)s.indexOf(E)===-1&&s.push(E);if(s.length>0){let E=e.definitions[i].properties.anchor;Ta(s,E)}}a(Fc,"addFragmentEnumForAnchor");function Wo(e,t,n=ne.DefinitionName.CustomActionPosition){es(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}a(Wo,"addEnumForActionAnchor");function yh(e,t,n,i){var o,s,l,u;let r;for(let p in e)if((i&&((s=(o=e[p].options)==null?void 0:o.settings)==null?void 0:s.contextPath)===i||((u=(l=e[p].options)==null?void 0:l.settings)==null?void 0:u.entitySet)===(n==null?void 0:n.name))&&(e[p].name===t||t===ne.v4.FE_TEMPLATE_V4_ALP&&e[p].name===ne.v4.FE_TEMPLATE_V4_LIST_REPORT)){r=e[p];break}return r}a(yh,"findPageV4");function G0(e,t){let n,i=e.properties[ne.PropertyName.table];return t.templateType===ne.TemplateType.AnalyticalListPageV4?(n=ne.DefinitionName.ALPTableView,delete i.anyOf,i.$ref=`${B}${ne.DefinitionName.ALPTableView}`,delete e.definitions[ne.DefinitionName.Table],delete e.definitions[ne.DefinitionName.LRChartView],delete e.definitions[ne.DefinitionName.LRTableView],delete e.definitions[ne.DefinitionName.MultiTableModeV4]):t.templateType===ne.TemplateType.ListReportObjectPageV4&&(n=ne.DefinitionName.Table,delete i.anyOf,i.$ref=`${B}${ne.DefinitionName.Table}`,e.definitions[n].properties[ne.PropertyName.annotationPath][ne.SchemaTag.hidden]=!0,delete e.definitions[ne.DefinitionName.ALPTableView],e.properties[ne.PropertyName.defaultPath][ne.SchemaTag.hidden]=!0),n}a(G0,"alignSchemaWithTemplateType");function As(e,t,n,i=ne.DefinitionName.CustomTableAction,r="",o=""){var d,m,T,b;let s=e.definitions[r];if(!s)return;let l=Yu(s),u;o?i.indexOf(ne.DefinitionName.CustomFormActionOP)!==-1?u=o.replace(/::/g,"#"):u=o.replace(/::/g,"/"):i===ne.DefinitionName.CustomFormActionOP?u=`@${Bo.UIAnnotationTerms.FieldGroup}`:u=`@${Bo.UIAnnotationTerms.LineItem}`;let p=(b=(T=(m=(d=t.options)==null?void 0:d.settings)==null?void 0:m.controlConfiguration)==null?void 0:T[u])==null?void 0:b.actions;if(p&&(l=bs(p,l,i,"press",n)),l){for(let C=0;C<l.length;C++)l[C][1][ne.SchemaTag.propertyIndex]=C;let E={};l.forEach(([C,R])=>E[C]=R),e.definitions[r].properties=E}}a(As,"addCustomActionDefinition");function vh(e,t,n,i=ne.DefinitionName.CustomHeaderActionOP,r=""){var p,d,m,T,b,E,C,R;let o=e.definitions[r];if(!o)return;let s=Yu(o),l;[ne.DefinitionName.CustomHeaderAction,ne.DefinitionName.CustomHeaderActionOP].includes(i)?l=(T=(m=(d=(p=t.options)==null?void 0:p.settings)==null?void 0:d.content)==null?void 0:m.header)==null?void 0:T.actions:l=(R=(C=(E=(b=t.options)==null?void 0:b.settings)==null?void 0:E.content)==null?void 0:C.footer)==null?void 0:R.actions,l&&(s=bs(l,s,i,"press",n));let u={};if(s){for(let L=0;L<s.length;L++)s[L][1][ne.SchemaTag.propertyIndex]=L;s.forEach(([L,F])=>u[L]=F)}e.definitions[r].properties=u}a(vh,"addHeaderFooterCustomActionDefinition");function _c(e,t,n){let i=Dg(e,[ne.ManifestSection.ui5,"routing","targets"]);if(!i){oe(n,{severity:pr.LogSeverity.Error,message:ee.t("NOTARGETS"),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}let r=Dg(i,[t]);if(!r){oe(n,{severity:pr.LogSeverity.Error,message:ee.t("NOROUTINGID",{routingId:t}),location:{path:ne.MANIFESTPATH,range:[ne.ManifestSection.ui5,"routing"]}});return}return r}a(_c,"getManifestPage");function Dc(e,t,n,i,r){var o,s;if(r){let l=((o=n["sap.app"])==null?void 0:o.id)||"",u="xml";r.startsWith(l)&&(r=r.replace(l,""));let p=r.split("."),d=p.pop();d=`${d}.${i}.${u}`;let m=(0,B0.join)(...p,d),T=e.find(b=>b.dataSourceUri.endsWith(m));if(T){let b=(s=t.options)==null?void 0:s.settings;return{file:T,relativeFilePath:m,connection:{contextPath:b==null?void 0:b.contextPath,entitySet:b==null?void 0:b.entitySet}}}}}a(Dc,"getPageCustomExtensionFile");function Ss(e,t,n,i){let r=_c(n,t,i),o=Dg(r,["options","settings","viewName"]);return r&&typeof o=="string"?Dc(e,r,n,"view",o):void 0}a(Ss,"getPageCustomViewFile");function H0(e,t,n,i,r,o,s){var d,m,T,b,E,C,R,L;let l=Yu(t),u=new Map;if(l=l.map(F=>{let U=cm(e,F[1],F[0],{keyProperties:[ne.SchemaKeyName.id],descriptionAsFallback:!0,resolveDefinition:!0});return u.set(U.const,F[0]),[U.const,F[1]]}),o){let F=(E=(b=(T=(m=(d=n.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:b.sections)==null?void 0:E[o];F&&"subSections"in F&&(l=bs(F.subSections,l,i,"template",s,r))}else{let F=(L=(R=(C=n.options)==null?void 0:C.settings)==null?void 0:R.content)==null?void 0:L.header;F&&"facets"in F&&(l=bs(F.facets,l,i,"template",s,r))}for(let F=0;F<l.length;F++)l[F][1][ne.SchemaTag.propertyIndex]=F;let p={};l.forEach(([F,U])=>{F=u.get(F)||F,p[F]=U}),t.properties=p}a(H0,"addCustomSectionDefinition");function K0(e,t,n){var l,u,p;let i=Yu(t),r=new Map;i=i.map(d=>{let m=cm(e,d[1],d[0],{keyProperties:[ne.SchemaKeyName.value],descriptionAsFallback:!0,resolveDefinition:!0});return r.set(m.const,d[0]),[m.const,d[1]]});let o=(p=(u=(l=n.options)==null?void 0:l.settings)==null?void 0:u.controlConfiguration)==null?void 0:p[`@${Bo.UIAnnotationTerms.SelectionFields}`];typeof o=="object"&&"filterFields"in o&&(i=bs(o.filterFields,i,ne.DefinitionName.CustomFilterField,"template"));for(let d=0;d<i.length;d++)i[d][1][ne.SchemaTag.propertyIndex]=d;let s={};i.forEach(([d,m])=>{d=r.get(d)||d,s[d]=m}),t.properties=s}a(K0,"addCustomFilterFieldDefinition");var w=te(se()),wc=require("@sap-ux/vocabularies-types/vocabularies/UI");var GX=["header","filterBar","chart","table"];function eA(e,t,n,i){i||(i=t.definitions[w.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[w.SchemaTag.annotationPath]=eo(e.fullyQualifiedName,wc.UIAnnotationTerms.SelectionFields));let r=0;return n==null||n.forEach(o=>{var p,d;let s=o.value,l="SelectionField::"+ft(o.value);o.type==="PropertyPath"&&(s=Ng(o,e)),i.properties[l]={$ref:B+l},i.properties[l][w.SchemaTag.propertyIndex]=r;let u=to(o);t.definitions[l]={type:"object",properties:{},description:s,additionalProperties:!1,...u&&{dataType:u}},t.definitions[l][w.SchemaTag.isViewNode]=!0,t.definitions[l][w.SchemaTag.keys]=[{name:w.SchemaKeyName.value,value:`${o.value}`}],((p=o.$target)==null?void 0:p.fullyQualifiedName.indexOf("@"))>-1?t.definitions[l][w.SchemaTag.target]=o.$target.fullyQualifiedName.split("@")[0].split("/")[0]:(d=o.$target)!=null&&d.fullyQualifiedName&&(t.definitions[l][w.SchemaTag.target]=o.$target.fullyQualifiedName.split("/")[0]),t.definitions[l][w.SchemaTag.annotationType]=o==null?void 0:o.type,t.definitions[l][w.SchemaTag.annotationPath]=`${i[w.SchemaTag.annotationPath]}/${r}`,r++}),i}a(eA,"addSelectionFields");function HX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${wc.UIAnnotationTerms.SelectionFields}`])==null?void 0:r.filterFields;if(t){let o={};return Object.keys(t).forEach(s=>{t[s].template||(o[s]=t[s])}),Object.keys(o).length>0?o:void 0}}a(HX,"getVisualFilters");function KX(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}a(KX,"getPropertiesIndex");function XX(e,t,n,i){var s,l,u,p,d,m;let r=KX(i,e),o=t.definitions[w.DefinitionName.VisualFilters];o.properties={};for(let T in n){let b=n[T];if(!b.template){let E=o.properties[T]={$ref:Un(w.DefinitionName.VisualFilter,T)},C=r.indexOf(T);C!==-1&&(E[w.SchemaTag.propertyIndex]=C);let R=Dt(w.DefinitionName.VisualFilter,T,t);(s=b.visualFilter)!=null&&s.valueList&&(R[w.SchemaTag.annotationPath]=`${T}/@${b.visualFilter.valueList}`);let L=(m=(d=(p=(u=(l=e==null?void 0:e.entityProperties)==null?void 0:l.find(F=>F.name===T))==null?void 0:u.annotations)==null?void 0:p.Common)==null?void 0:d.Label)==null?void 0:m.toString();R.description=L||T,R[w.SchemaTag.keys]=[{name:w.SchemaKeyName.value,value:T}]}}}a(XX,"addVisualFilters");function JX(e,t,n){t.additionalProperties={$ref:`#/definitions/${w.DefinitionName.CustomFilterField}`},K0(e,t,n);let i=e.definitions[w.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&es(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[w.SchemaKeyName.value,w.SchemaKeyName.key],descriptionAsFallback:!0})}a(JX,"applyCustomFilterFields");function YX(e,t,n,i){var l,u;let r=HX(n),o=i&&((u=(l=e==null?void 0:e.annotations)==null?void 0:l[i])==null?void 0:u.SelectionFields),s;if(r)t.definitions[w.DefinitionName.SelectionFields][w.SchemaTag.hidden]=!0,t.definitions[w.DefinitionName.SelectionFields].properties={},s=t.definitions[w.DefinitionName.CompactFilters],s.additionalProperties=!1,s.properties={},XX(e,t,r,o);else{let p=t.definitions[w.DefinitionName.FilterBar];p.properties.initialLayout[w.SchemaTag.hidden]=!0,p.properties.layout[w.SchemaTag.hidden]=!0,t.definitions[w.DefinitionName.CompactFilters][w.SchemaTag.hidden]=!0,t.definitions[w.DefinitionName.VisualFilters][w.SchemaTag.hidden]=!0}s=eA(e,t,o,s),JX(t,s,n)}a(YX,"addFilterBar");function J0(e,t,n,i,r){e.definitions[t]=JSON.parse(JSON.stringify(e.definitions.Actions));let o=e.definitions[t];o.properties={},o.additionalProperties=!1;let s=n[i==null?void 0:i.split(`${w.UIVOCABULARY}.`)[1]];if(s&&s.Actions){let l=0;s.Actions.forEach(u=>{let p=ft(`${w.DefinitionName.ChartToolBarAction}<${u.Action}>`),d=Ei(u,r),m=u.$Type.split(`${w.UIVOCABULARY}.`)[1],T=o.properties[`${m}::${u.Action}`]={$ref:B+p,description:d};T[w.SchemaTag.propertyIndex]=l,T[w.SchemaTag.annotationType]=u.$Type,T[w.SchemaTag.annotationPath]=`/${u.fullyQualifiedName}`,e.definitions[p]=JSON.parse(JSON.stringify(e.definitions[w.DefinitionName.ViewToolBarAction])),e.definitions[p].properties={},e.definitions[p][w.SchemaTag.annotationPath]=u.fullyQualifiedName,l++})}}a(J0,"defineActions");function X0(e,t,n,i){var l;let r,o,s;return e&&(n==="primary"?o=e.find(u=>u.value.indexOf("Chart")>-1):n==="secondary"?o=e.find(u=>u.value.indexOf(w.FacetBase.LineItem)>-1):i?o=e.find(u=>u.value.indexOf(i)>-1):o=e[0],r=typeof(o==null?void 0:o.value)=="string"?El(o.value):void 0,(l=o==null?void 0:o.$target)!=null&&l.fullyQualifiedName?s=`/${t}/${o.$target.fullyQualifiedName.split(t)[1]}`:r&&(s=`/${t}/`+r.replace("UI",w.UIVOCABULARY))),{visualization:r,targetAnnotation:s}}a(X0,"findTheRightVisualization");function QX(e,t,n,i){let r="@UI.Chart",o=`/${e}/@${t}`,s;return n.Title?s=n.Title:s=`Chart View (${i})`,{visualization:r,targetAnnotation:o,chartTitle:s}}a(QX,"analyzeChartAnnotation");function Jl(e,t,n,i,r,o){var m;let s,l,u="@UI.LineItem",p=e==null?void 0:e.split(`${w.UIVOCABULARY}.`)[1],d=p&&t[p];if(!d)return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`};if(l=d.Text,s=d.fullyQualifiedName.split(w.UIVOCABULARYALPHADOT)[0],p.startsWith("PresentationVariant")){let{visualization:T,targetAnnotation:b}=X0(d.Visualizations,s,i,r);return l=l||`View (${i})`,{visualization:T,targetAnnotation:b,namespace:s,title:l}}else if(p.startsWith("SelectionPresentationVariant")){let{visualization:T,targetAnnotation:b}=X0((m=d.PresentationVariant)==null?void 0:m.Visualizations,s,i,r);return T||(oe(o,{severity:w.LogSeverity.Error,message:ee.t("NOVISUALIZATIONS")}),T=u,b=`/${s}/`+T.replace("UI",w.UIVOCABULARY)),l=l||`View (${i})`,{visualization:T,targetAnnotation:b,namespace:s,title:l}}else if(p.startsWith("SelectionVariant")){let T=u,b=`/${s}/@${wc.UIAnnotationTerms.LineItem}`;return l=l||`Table View (${i})`,{visualization:T,targetAnnotation:b,namespace:s,title:l}}else if(p.startsWith("LineItem")){let T=u;d.qualifier&&(T+=`#${d.qualifier}`);let b=`/${s}/@${e}`;return l=l||`Table View (${i})`,{visualization:T,targetAnnotation:b,namespace:s,title:l}}else if(p.startsWith("Chart")){let{visualization:T,targetAnnotation:b,chartTitle:E}=QX(s,e,d,i);return{visualization:T,targetAnnotation:b,namespace:s,title:E}}return{visualization:void 0,targetAnnotation:void 0,namespace:s,title:`View (${i})`}}a(Jl,"analyzeViewAnnotation");function zX(e,t,n,i){let r=e.definitions[w.DefinitionName.ALPChartView];if(e.definitions[w.DefinitionName.ALPChart]=JSON.parse(JSON.stringify(r)),delete e.definitions[w.DefinitionName.ALPChart][w.SchemaTag.isViewNode],n&&(e.definitions[w.DefinitionName.ALPChart][w.SchemaTag.annotationPath]=n),e.definitions[w.DefinitionName.ALPChart].properties.annotationPath[w.SchemaTag.hidden]=!0,r.properties.annotationPath[w.SchemaTag.hidden]=!0,r.additionalProperties=!1,r.description="Chart (key: primary)",r.title="Chart",r.$ref=`${B}${w.DefinitionName.ALPChart}`,t){let o=t.split(w.UIVOCABULARYDOT)[1],s=i[o].fullyQualifiedName.split("@");r[w.SchemaTag.annotationPath]=`/${s[0]}/@${s[1]}`}r[w.SchemaTag.artifactType]=w.ArtifactType.Manifest,r[w.SchemaTag.key]="primary",r[w.SchemaTag.keys]=[{name:w.SchemaKeyName.key,value:"primary"}]}a(zX,"addALPChartView");function qX(e,t,n,i,r,o,s){var F,U,J,re,Ce,st;let l=n==null?void 0:n.annotations.UI,u=(J=(U=(F=t==null?void 0:t[0])==null?void 0:F.primary)==null?void 0:U[0])==null?void 0:J[w.SchemaTag.annotationPath],{targetAnnotation:p}=Jl(u,l,i.serviceAVT,"primary",void 0,i.logger);zX(e,u,p,l);let d="Actions<ALPChart>";e.definitions[w.DefinitionName.ViewChartToolBar].properties.actions.$ref=B+d,J0(e,d,l,p,n);let{visualization:m,targetAnnotation:T}=Jl((st=(Ce=(re=t==null?void 0:t[0])==null?void 0:re.secondary)==null?void 0:Ce[0])==null?void 0:st[w.SchemaTag.annotationPath],l,i.serviceAVT,"secondary",void 0,i.logger),b=e.definitions[s];m||r?(b.properties.toolBar.$ref=`${B}${w.DefinitionName.ToolBarLR}`,b.properties.columns={$ref:B+w.DefinitionName.LineItems},b.properties.annotationPath[w.SchemaTag.hidden]=!0):b.properties={};let E=e.definitions[w.DefinitionName.ALPTableView];e.definitions[w.DefinitionName.ALPTable]=JSON.parse(JSON.stringify(E)),delete e.definitions[w.DefinitionName.ALPTable][w.SchemaTag.isViewNode],E.additionalProperties=!1,E.description="Table (key: secondary)",E.title="Table",m?(delete E.properties,E.$ref=`${B}${w.DefinitionName.ALPTable}`):r||(E.properties={}),E[w.SchemaTag.artifactType]=w.ArtifactType.Manifest;let C,R;if(m&&m.indexOf(w.FacetBase.LineItem)>-1?(C=m.split(".")[1],R=t[0].secondary[0].annotationPath.split(w.UIVOCABULARYDOT)[1]):r&&(C=R=r.split(w.UIVOCABULARYDOT)[1]),C){let k={appSchema:e,lineItemAnnotation:n==null?void 0:n.annotations.UI[C],entityType:n,oDataServiceAVT:i.serviceAVT,lineItemId:w.DefinitionName.LineItems};Lc(k,w.DefinitionName.ViewTableColumn),T&&(e.definitions[w.DefinitionName.ALPTable][w.SchemaTag.annotationPath]=T);let Ot=l[R].fullyQualifiedName.split("@");E[w.SchemaTag.annotationPath]=`/${Ot[0]}/@${Ot[1]}`,E[w.SchemaTag.key]="secondary",E[w.SchemaTag.keys]=[{name:w.SchemaKeyName.key,value:"secondary"}]}Rc(e,o,i.logger);let L=`${w.DefinitionName.Actions}<${ft(w.DefinitionName.LineItems)}>`;As(e,o,i.logger,void 0,L),Wo(e,L,w.DefinitionName.CustomActionPosition)}a(qX,"addALPViews");function ZX(e,t){let n=`${w.DefinitionName.LRChartView}<${e.viewKey}>`;e.appSchema.definitions[n]=JSON.parse(JSON.stringify(e.appSchema.definitions[w.DefinitionName.LRChartView])),delete e.appSchema.definitions[n][w.SchemaTag.isViewNode],e.appSchema.definitions[n][w.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(e.appSchema.definitions[n].navigationProperty=e.navPropName);let i=`${w.DefinitionName.ViewChartToolBar}<${e.viewKey}>`;e.appSchema.definitions[i]=JSON.parse(JSON.stringify(e.appSchema.definitions[w.DefinitionName.ViewChartToolBar])),e.appSchema.definitions[n].properties.toolBar.$ref=`${B}${i}`;let r=`${w.DefinitionName.Actions}<${e.viewKey}>`;return J0(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[w.PropertyName.actions].$ref=`${B}${r}`,n}a(ZX,"addViewChartDefinitions");function e3(e,t,n,i,r,o){let s=ZX(e,t);n.definitions[s].properties.annotationPath[w.SchemaTag.hidden]=!0,n.definitions[s].properties.index[w.SchemaTag.hidden]=!0,n.definitions[s].properties.entitySet[w.SchemaTag.hidden]=!0;let l=`Chart View (key: ${r})`;i.properties[r]={$ref:`${B}${s}`,description:o||l,title:l}}a(e3,"addViewChart");function t3(e,t,n,i,r){var m;let o=`${w.DefinitionName.LRTableView}<${e.viewKey}>`,s=`${w.DefinitionName.LineItemsOfView}::${e.viewKey}`,l=Dt(w.DefinitionName.LRTableView,e.viewKey,e.appSchema);delete l[w.SchemaTag.isViewNode],l[w.SchemaTag.annotationPath]=e.targetAnnotation,e.navPropName&&(l.navigationProperty=e.navPropName),e.entitySet&&(l.entitySet=e.entitySet),Za(l.properties.toolBar,w.DefinitionName.ToolBar,s);let u=`Table View (key: ${e.viewKey})`;t.properties[e.viewKey]={$ref:`${B}${o}`,description:e.title||u,title:u},Za(l.properties.columns,s),l.properties.annotationPath[w.SchemaTag.hidden]=!0,l.properties.index[w.SchemaTag.hidden]=!0,l.properties.entitySet[w.SchemaTag.hidden]=!0;let p=(n==null?void 0:n.split(".")[1])||i.split(w.UIVOCABULARYDOT)[1],d={appSchema:e.appSchema,lineItemAnnotation:(m=e.targetEntityType)==null?void 0:m.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s};Lc(d,w.DefinitionName.ViewTableColumn,w.DefinitionName.ViewCustomColumn,w.DefinitionName.ViewCustomAction)}a(t3,"addViewLineItems");function n3(e,t,n,i){e.properties[t][w.SchemaTag.isViewNode]=!0,e.properties[t][w.SchemaTag.annotationPath]=n?`/${n}/@${i[w.SchemaTag.annotationPath]}`:void 0,e.properties[t][w.SchemaTag.artifactType]=w.ArtifactType.Manifest,e.properties[t][w.SchemaTag.key]=t,e.properties[t][w.SchemaTag.keys]=[{name:w.SchemaKeyName.key,value:t}]}a(n3,"addTagsToView");function i3(e,t,n,i){var s;let r=i,o=e;return t.entitySet&&t.entitySet!==e.name&&(o=(s=n.serviceAVT)==null?void 0:s.entitySets.find(l=>l.name===t.entitySet),r=o.entityType),r}a(i3,"getTargetEntityType");function r3(e,t,n,i){let r=`${w.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.entitySet?`/${e.entitySet}/`:""}@${wc.UIAnnotationTerms.LineItem}${n.split(w.Visualization.LineItem)[1]}`,l=Dt(w.DefinitionName.ViewCustomColumn,r,e.appSchema);Za(l.properties.position,w.DefinitionName.ViewPosition,r),Dt(w.DefinitionName.ViewPosition,r,e.appSchema),Rc(e.appSchema,i,t.logger,`${w.DefinitionName.ViewCustomColumn}<${r}>`,r,s),Fc(e.appSchema,r,i,`${w.DefinitionName.ViewPosition}<${r}>`,s),e.appSchema.definitions.Position&&(delete e.appSchema.definitions.Position,delete e.appSchema.definitions.TableCustomColumn);let u=`${w.DefinitionName.Actions}<${r}>`,p=`${w.DefinitionName.ViewCustomAction}<${r}>`;As(e.appSchema,i,t.logger,p,u,s),Dt(w.DefinitionName.ViewCustomActionPosition,r,e.appSchema);let d=`${w.DefinitionName.ViewCustomActionPosition}<${r}>`,m=e.appSchema.definitions[p];m.properties.position.$ref=`${B}${d}`,Wo(e.appSchema,u,d),e.appSchema.definitions.CustomActionPosition&&delete e.appSchema.definitions.CustomActionPosition}a(r3,"addViewCustomExtensions");function o3(e,t,n,i,r,o,s){if((e==null?void 0:e.indexOf(w.Visualization.LineItem))>-1)t3(n,t,e,n.targetAnnotation,i),r3(n,i,e,r);else if((e==null?void 0:e.indexOf("Chart"))>-1)e3(n,o,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:`${B}${w.DefinitionName.TableViewExtension}`}}else{let l=`View (key: ${n.viewKey})`;t.properties[n.viewKey]={description:n.title||l,title:l,$ref:`${B}${w.DefinitionName.LRTableView}`}}}a(o3,"addLRViewParts");function a3(e,t,n,i,r,o,s){var p;let l=e.definitions[s];l.properties={annotationPath:l.properties.annotationPath,initialLoad:l.properties.initialLoad,views:l.properties.views};let u=e.definitions.MultiTableModeV4;for(let d of t){if(!d[w.SchemaTag.key])continue;let m,T=i3(i,d,r,n),b=T==null?void 0:T.annotations.UI,{visualization:E,targetAnnotation:C,namespace:R,title:L}=Jl(d==null?void 0:d[w.SchemaTag.annotationPath],b,r.serviceAVT,d[w.SchemaTag.key],void 0,r.logger);d.entitySet&&(m=(p=n.navigationProperties.find(J=>J.targetTypeName===R))==null?void 0:p.name);let F=ft(d[w.SchemaTag.key]),U={viewKey:F,appSchema:e,targetAnnotation:C,navPropName:m,targetEntityType:T,title:L,entitySet:d.entitySet};o3(E,u,U,r,o,b,d),n3(u,F,R,d)}}a(a3,"addLRViews");function s3(e,t,n,i,r,o,s){var m,T,b;let l=e.definitions[s],{visualization:u,targetAnnotation:p,namespace:d}=Jl(i,t==null?void 0:t.annotations.UI,n.serviceAVT,void 0,w.Visualization.LineItem,n.logger);if(u){let E=u.split(".")[1],C=`${w.DefinitionName.LineItems}OfSPV::${ft(E)}`,R=e.definitions[`${s}SPV`]=JSON.parse(JSON.stringify(e.definitions[s]));delete R[w.SchemaTag.isViewNode],Za(R.properties.toolBar,w.DefinitionName.ToolBar,C),R[w.SchemaTag.annotationPath]=p,R.properties.columns={},Za(R.properties.columns,C),delete l.properties,Za(l,`${s}SPV`),l[w.SchemaTag.annotationPath]=`/${d}/@${i}`;let L=t==null?void 0:t.annotations.UI[E];L||oe(n.logger,{severity:w.LogSeverity.Error,message:ee.t("NOTARGET",{target:E})});let F={appSchema:e,lineItemAnnotation:L,entityType:t,oDataServiceAVT:n.serviceAVT,lineItemId:C};Lc(F);let U=(m=E.split("#"))==null?void 0:m[1],J=U?`@${wc.UIAnnotationTerms.LineItem}#${U}`:`@${wc.UIAnnotationTerms.LineItem}`;Rc(e,r,n.logger,void 0,C,J),Fc(e,C,r,void 0,J);let re=`${w.DefinitionName.Actions}<${C}>`,Ce=im(e,C,w.DefinitionName.CustomTableAction);As(e,r,n.logger,un(Ce),re,J),Wo(e,re,w.DefinitionName.CustomActionPosition)}else{l.properties.toolBar.$ref=`${B}${w.DefinitionName.ToolBarLR}`,Za(l.properties.columns,w.DefinitionName.LineItems);let E=(b=(T=t==null?void 0:t.annotations)==null?void 0:T[o])==null?void 0:b.LineItem;E||oe(n.logger,{severity:w.LogSeverity.Error,message:ee.t("NOLINEITEMS")});let C={appSchema:e,lineItemAnnotation:E,entityType:t,oDataServiceAVT:n.serviceAVT,lineItemId:w.DefinitionName.LineItems};Lc(C),Rc(e,r,n.logger),Fc(e,w.DefinitionName.LineItems,r),E&&(l[w.SchemaTag.annotationPath]=eo(t==null?void 0:t.fullyQualifiedName,E.term,E.qualifier));let R=`${w.DefinitionName.Actions}<${ft(w.DefinitionName.LineItems)}>`;As(e,r,n.logger,void 0,R),Wo(e,R,w.DefinitionName.CustomActionPosition)}}a(s3,"adaptTableDefinition");function c3(e,t,n){var i,r,o,s,l,u,p;if(!((r=(i=e.options.settings)==null?void 0:i.views)!=null&&r.paths&&n===w.TemplateType.ListReportObjectPageV4)){if((o=e.options.settings)!=null&&o.defaultTemplateAnnotationPath)return e.options.settings.defaultTemplateAnnotationPath;if(n===w.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)}}a(c3,"getDefaultAnnotationPath");function l3(e,t,n,i){var p,d,m,T,b;let r=(m=(d=(p=t.options)==null?void 0:p.settings)==null?void 0:d.views)==null?void 0:m.paths,o=n.entityType,s=n.entitySet,l=c3(t,o,n.templateType),u=G0(e,n);YX(o,e,t,i),n.templateType===w.TemplateType.ListReportObjectPageV4?(r?a3(e,r,o,s,n,t,u):((b=(T=t.options)==null?void 0:T.settings)!=null&&b.views||(e.definitions.MultiTableModeV4.properties={}),s3(e,o,n,l,t,i,u)),e.properties[w.PropertyName.chart][w.SchemaTag.hidden]=!0):n.templateType===w.TemplateType.AnalyticalListPageV4&&(qX(e,r,o,n,l,t,u),Fc(e,w.DefinitionName.LineItems,t))}a(l3,"addTableAndViews");function f3(e,t,n){let i=w.DefinitionName.HeaderActions,r=e.definitions[i];r[w.SchemaTag.isViewNode]=!0,r.description="Actions",r.properties={};let o=w.DefinitionName.CustomHeaderAction,s=e.definitions[o];s[w.SchemaTag.isViewNode]=!0,s.description="Custom Action",vh(e,t,n,o,i);let l=w.DefinitionName.CustomHeaderActionPosition;Dt(l,l,e,!1),s.properties.position.$ref=`${B}${l}`,Wo(e,i,l)}a(f3,"addHeaderActions");function Qu(e,t,n,i){let r=JSON.parse(JSON.stringify(t)),o=e.entityType,s=e.serviceAVT&&ai(w.UIVOCABULARY,e.serviceAVT);if(r.properties[w.PropertyName.defaultTemplateAnnotationPath][w.SchemaTag.hidden]=!0,qa(o,r,w.DefinitionName.AnnotationPathAsObject),e.manifest){let l=e.manifest[w.ManifestSection.ui5].routing.targets;if(!l)return oe(e.logger,{severity:w.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:w.MANIFESTPATH,range:[w.ManifestSection.generic]}}),r;let u=yh(l,n,e.entitySet,i);if(!u)return r;f3(r,u,e.logger),l3(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,_o(r,GX),r}a(Qu,"generateListReportSchemaV4");var vr=require("@sap-ux/vocabularies-types/vocabularies/UI"),_=te(se());var $1=te(ic()),U1=te(j1()),B1=te(VA());var W1=te(se()),G1=te(se());function MJ(e,t){var i;let n=e;for(let r of t){let o=(i=n==null?void 0:n.elements)==null?void 0:i.filter(s=>s.type!=="comment");n=o==null?void 0:o[r.index]}return n}a(MJ,"findElementByXMLPath");function H1(e,t){return e[t]?!1:(e[t]={},!0)}a(H1,"ensureObjectExists");function VJ(e,t){let n={},i=un(t);if(e.definitions&&e.definitions[i]){let r=e.definitions[i];typeof r=="object"&&r.properties&&(n=r.properties)}return n}a(VJ,"getPropertiesFromRef");function kJ(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:o,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,d=H1(l,i),m=l[i];return Bc({fullSchema:u,schema:p[i],element:o,contextPath:s,config:m,parent:e},t)||d}a(kJ,"traverseDefaultAggregation");function jJ(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}a(jJ,"isDefaultAggregationAppliable");function Bc(e,t){var d,m;let{schema:n,element:i,contextPath:r,config:o={},fullSchema:s}=e,l=!1,{properties:u={}}=n,{metadata:p={}}=n;n.$ref&&!n.properties&&(u=VJ(s,n.$ref));for(let T in u){let b=u[T],E=typeof b=="object";if(E&&(p==null?void 0:p.defaultAggregation)===T&&jJ(u,p)&&(l=kJ(e,t,p)||l,E=!1),!!E)if((m=(d=b.metadata)==null?void 0:d.path)!=null&&m.length){let C=b.metadata.path,R=C.slice(r.length),L=MJ(i,R);l=H1(o,T)||l;let F=o[T];l=Bc({fullSchema:e.fullSchema,schema:b,element:L,contextPath:C,config:F,parent:e},t)||l}else l=t(e,b,o,T)||l}return l}a(Bc,"traverseSchema");function pf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:o}=(0,B1.parse)(e.fileContent),s=(0,U1.buildAst)(r,o);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,$1.xml2js)(e.fileContent)}catch(r){oe(n,{severity:G1.LogSeverity.Error,message:ee.t("XMLPARSEFAILURE",{error:tF(r)}),location:{path:e.dataSourceUri}})}return i}a(pf,"parseXML");function df(e){return`${W1.DefinitionName.CustomExtensionFragment}<${e}>`}a(df,"getCustomExtensionFragmentDefinitionKey");function fy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}a(fy,"getRootElement");var QA=te(se()),zA=te(se());var Sp=te(se());function Rs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}a(Rs,"getAttribute");function K1(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}a(K1,"getNodeByName");function $J(e){let t=e.split("/"),n=-1;for(let i=0;i<t.length;i++)if(t[i]){t[i].startsWith("@")||(n=i);break}return n!==-1?{navigation:t[n],term:t.slice(n+1,t.length).join("/")}:{term:e}}a($J,"resolveMetaPath");function WA(e){var d;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Rs(t,"contextPath")||i.contextPath,o=Rs(t,"metaPath"),s=i.entitySet;if(!r&&!s)return;let l=r||`/${s}`;if(o){let m=$J(o);m.navigation&&(l+="/"+m.navigation,o=m.term)}let u=n==null?void 0:n.resolvePath(l),p;switch((d=u==null?void 0:u.target)==null?void 0:d._type){case"EntitySet":{p=u.target.entityType;break}case"NavigationProperty":{p=u.target.targetType;break}case"EntityType":{p=u.target;break}}return p?{entityType:p,metaPath:o}:void 0}a(WA,"getEntityTypeResolution");function X1(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}a(X1,"applyAnnotationPath");function UJ(e,t,n){var l,u,p;let{metaPath:i,entityType:r}=e,o,s;if(r&&i){let d=Jl(i,(l=r==null?void 0:r.annotations)==null?void 0:l[n],t);if(d.visualization){let m=d.visualization.split(".")[1];o=(p=(u=r==null?void 0:r.annotations)==null?void 0:u[n])==null?void 0:p[m],o!=null&&o.fullyQualifiedName&&(s=$T(r,o.fullyQualifiedName))}}if(o)return{lineItem:o,annotationPath:s}}a(UJ,"getTableLineItemAnnotationData");var J1={"sap.fe.macros.Chart":e=>{let t=WA(e);X1(e.schema,t)},"sap.fe.macros.FilterBar":e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=WA(e),o=(s=t.properties)==null?void 0:s.filterFields;if(typeof o=="object"&&r){o.properties||(o.properties={});let d=ai(Sp.UIVOCABULARY,n),m=d&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[d])==null?void 0:p.SelectionFields);eA(r.entityType,i,m,o)}},"sap.fe.macros.Table":e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=WA(e),o=t.properties.columns,s=t.properties.actions;if(typeof o=="object"&&typeof s=="object"&&r){o.properties||(o.properties={}),s.properties||(s.properties={});let l=ai(Sp.UIVOCABULARY,n);if(X1(t,r),t.annotationPath){let u=UJ(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:Sp.DefinitionName.LineItems};Zb(p,s,t.annotationPath,o)}}}};var Y1=te(se());var BJ=new Map([["filterFields","SelectionField::"]]),WJ=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),xp={anchor:"anchor",placement:"placement",key:"key"};function GJ(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[un(e.additionalProperties.$ref)],r=typeof i=="object"?i.properties||{}:{};return xp.anchor in r&&xp.placement in r}return!1}a(GJ,"isCustomExtensionSchema");function Q1(e){let t=BJ.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=WJ.get(e),t&&(n.prefix=t)),n}a(Q1,"getAnnotationPrefix");function HJ(e,t,n,i){let r=t.properties[n],o=Q1(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Rs(l,xp.key)||n,p=Rs(l,xp.anchor),d=Rs(l,xp.placement)||Y1.v4.Placement.After,m=o.replace?`${o.prefix}${p}`:p,T={position:{anchor:m in t.properties?m:p,placement:d}};return{key:u,extension:T}}a(HJ,"getExtensionData");function KJ(e,t,n){let i={},r=[],o={};for(let s in t.properties){let l=t.properties[s];if("metadata"in l){let{extension:u,key:p}=HJ(e,t,s,n);i[p]=u,o[p]=s}else r.push([s,l])}bs(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 o&&(u=t.properties[o[l]]),u&&(u.propertyIndex=s)}}a(KJ,"updatePropertyIndices");function XJ(e,t,n,i){var o;let r=t;if(n.prefix&&r.startsWith(n.prefix))n.replace&&(r=r.replace(n.prefix,""));else if((o=i==null?void 0:i.metadata)!=null&&o.path){let s=i.metadata.path[i.metadata.path.length-1].index;r=Rs(e.subElements[s],"key")||r}return r}a(XJ,"getCorrectedAnchorEnumKey");function JJ(e,t,n,i){var o,s;let r=Q1(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;es(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let d=((s=(o=p.properties)==null?void 0:o[u])==null?void 0:s.oneOf)||[];for(let m of d)typeof m=="object"&&typeof m.const=="string"&&(m.const=XJ(e,m.const,r,t.properties[m.const]))}}a(JJ,"applyEnumsForAnchors");function z1(e,t,n,i){GJ(t,n)&&(i=i||e.name,KJ(e,t,i),JJ(e,t,n,i))}a(z1,"handleExtensions");var fw=te(cw());var lw="sap.fe.macros",rY=["id","key","title","text","label","header"];function uw(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}a(uw,"getElementName");function oY(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}a(oY,"isElementWithNamespace");function aY(e){let t={},n=e.attributes||[];for(let i of n){let{key:r,value:o}=i,s="",l="xmlns:";r.startsWith(l)&&(s=r.substring(l.length)),t[o]=s}return t}a(aY,"getDependencies");function sY(e,t){let n="",i=e.attributes||[];for(let r of rY){let o=i.find(s=>s.key===r);if(o){n=`${r==="id"?"#":""}${o.value}`;break}}return n?`${t} ${n}`:t}a(sY,"getViewNodeDescription");function cY(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}a(cY,"findAvailableName");function pw(e,t){if(e.properties={},e.$ref){let n=un(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}}a(pw,"prepareSchemaProperties");function lY(e,t,n){t.properties||pw(t,n);let{properties:i={}}=t;for(let r of e.attributes){let o=i[r.key];o&&o.metadata&&(o.metadata.position=r.position)}}a(lY,"handleAttributes");function fY(e){e.type===zA.MacrosPropertyType.Control&&(e.internalId=(0,fw.v4)())}a(fY,"applyIdForMacros");function uY(e,t,n){var i,r;try{(r=(i=J1)[e])==null||r.call(i,t)}catch{oe(n,{severity:QA.LogSeverity.Error,message:ee.t("MACROS_ANNOTATION_ERROR",{control:e})})}}a(uY,"callAnnotationHandler");function pY(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===zA.MacrosPropertyType.Control&&(e.controlName=n)}a(pY,"updateMetadataByReference");function dY(e,t,n,i){var T,b,E,C,R;let r=n.schema;t.properties||pw(t,r);let o=t.properties[i],s=(T=o==null?void 0:o.metadata)==null?void 0:T.type,l=(b=o==null?void 0:o.metadata)==null?void 0:b.defaultAggregation,u={path:n.path,type:s,position:e.position};l&&(u.defaultAggregation=l);let p=(C=(E=o==null?void 0:o.metadata)==null?void 0:E.path)!=null&&C.length?cY(i,t.properties):i,d=[];o!=null&&o.$ref?d.push(un(o.$ref)):d=[`${lw}.${i}`,`${lw}.table.${i}`];let m=!1;for(let L of d){let F=(R=r.definitions)==null?void 0:R[L];if(typeof F!="object")continue;pY(u,F,L);let U=sY(e,i),J={$ref:eF(L),description:U,propertyIndex:n.index,metadata:u};lY(e,J,r),t.properties[p]=J,m=!0,uY(L,{...n,node:e,schema:J,rootSchema:n.schema},n.logger);break}if(fY(u),!m)if(o!=null&&o.properties)o.metadata=u;else{let L={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=L}return p}a(dY,"addControlToSchema");function dw(e,t){let n=e.properties;if(n)for(let i in n){let r=n[i];if(r.$ref){let o=r.$ref.split(B)[1];o&&t.indexOf(o)===-1&&t.push(o)}dw(r,t)}}a(dw,"populateUsedDefinitionKeys");function gY(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}a(gY,"isElementAddableToSchema");function mY(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!K1(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}a(mY,"getDefaultAggregation");function hY(e,t,n,i){let r={};for(let o=0;o<e.length;o++){let s=e[o],l=!r[s.name];r[s.name]=!0,gw(s,t,{...n,isUnique:l,index:o,path:[...n.path,{name:uw(s),index:o}]},i)}}a(hY,"handleSubElementsOfXMLNode");function gw(e,t,n,i){var d,m,T;let r=[],{macrosPrefixes:o}=n,s=t!=null&&t.$ref?(d=n.schema.definitions)==null?void 0:d[un(t.$ref)]:t;if(oY(e,o)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let b=(T=t.metadata)==null?void 0:T.defaultAggregation;b&&gY(e,t.properties[b])&&(t=t.properties[b]);let E=e.name.split(":"),C=dY(e,t,n,E[E.length-1]);if(t.properties[C])t=t.properties[C];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),dw(t,i));let p=mY(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),hY(l,t,n,i),r.push({node:e,schema:t});for(let b of r)z1(b.node,b.schema,n.schema,b.name)}a(gw,"handleXMLNode");function yY(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}a(yY,"getMacrosPrefixes");function Wc(e,t,n,i){let r=pf(t.file,!0,i),o=[];if(!r)return;Qt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:QA.LogSeverity.Error,message:ee.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=aY(l),p=yY(e,u);if(p.length){s=JSON.parse(JSON.stringify(e));let d={};for(let m=0;m<l.subElements.length;m++){let T=l.subElements[m],b=!d[T.name];d[T.name]=!0,gw(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:b,path:[{name:uw(T),index:m}],serviceAVT:n,connectionContext:t.connection,logger:i},o)}for(let m in s.definitions)s.definitions[m].metadata&&!o.includes(m)&&delete s.definitions[m]}return s}a(Wc,"generateMacrosSchemaDefinition");function mw(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&&mw(i.subSections,t)}}a(mw,"populateTemplates");function hw(e,t,n,i){var s,l,u;let r=_c(n.manifest,i),o=[];mw(((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)||{},o);for(let p of o){if(!p)continue;let d={additionalProperties:!1,description:"Custom Extension Fragment",metadata:{},properties:{}},m=df(p);e.definitions[m]=d;let T=Dc(n.fragments,r,n.manifest,"fragment",p);if(T){d.metadata.filePath=T.relativeFilePath;let{properties:b={},definitions:E={}}=Wc(t,T,n.serviceAVT,n.logger)||{};d.properties=b;for(let C in E)e.definitions[C]||(e.definitions[C]=E[C])}}return t}a(hw,"resolveFragments");var vY=["header","layout","sections","footer"],TY=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],qA="Custom Action";function ZA(e,t,n,i,r,o,s){let{actionName:l,namespace:u}=Zg(t.item,e),p=va(t.item),d=t.item.fullyQualifiedName.replace(`@${vr.UIAnnotationTerms.Identification}`,`/@${vr.UIAnnotationTerms.Identification}`),m=`ObjectPageHeaderAction<${ft(p)}>`,T=i.definitions[m]={type:"object",$ref:`${B}${_.DefinitionName.ObjectPageHeaderAction}`,description:Ei(t.item,r)};T[_.SchemaTag.isViewNode]=!0,T[_.SchemaTag.dataType]=to(t.item),T[_.SchemaTag.propertyIndex]=s,T[_.SchemaTag.keys]=[],t.item[_.SchemaKeyName.semanticObject]&&T[_.SchemaTag.keys].push({name:_.SchemaKeyName.semanticObject,value:t.item[_.SchemaKeyName.semanticObject]}),T[_.SchemaTag.keys].push({name:_.SchemaKeyName.action,value:l}),u&&(i.definitions[m][_.SchemaTag.target]=u),T[_.SchemaTag.actionType]=n,T[_.SchemaTag.annotationPath]=`/${d}`,o.properties[p]={$ref:`${B}${m}`},o.properties[p][_.SchemaTag.propertyIndex]=s}a(ZA,"addSingleHeaderActionV4");function yw(e,t,n,i){let r=`${e}Action`,o=`ObjectPageHeaderAction<${r}>`,s=t.definitions[o]={type:"object",description:`${e}`,additionalProperties:!0};return s[_.SchemaTag.isViewNode]=!0,s[_.SchemaTag.propertyIndex]=i,s[_.SchemaTag.keys]=[],s[_.SchemaTag.keys].push({name:_.SchemaKeyName.action,value:e}),s[_.SchemaTag.actionType]=_.ActionType.Standard,n.properties[r]={$ref:`${B}${o}`},n.properties[r][_.SchemaTag.propertyIndex]=i,s}a(yw,"addStandardHeaderAction");function vw(e,t,n,i,r,o){let s=va(e.item),l=Ei(e.item,n),u=ft(`${_.DefinitionName.ObjectPageFooterAction}<${s}>`),p=e.item.fullyQualifiedName.replace(`@${vr.UIAnnotationTerms.Identification}`,`/@${vr.UIAnnotationTerms.Identification}`),d=i.definitions[u]={type:"object",$ref:`${B}${_.DefinitionName.FooterActionV4}`,description:l};d[_.SchemaTag.isViewNode]=!0,d[_.SchemaTag.actionType]=t,d[_.SchemaTag.propertyIndex]=o,d[_.SchemaTag.annotationPath]=`/${p}`,r.properties[s]={$ref:`${B}${u}`}}a(vw,"addSingleFooterAction");function EY(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===vr.UIAnnotationTypes.DataFieldForAction||i.$Type===vr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(TY.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}a(EY,"groupByCriticality");function bY(e,t,n,i,r){for(let o=0;o<e.length;o++)ZA(t,e[o],_.ActionType.Criticality,n,i,r,o)}a(bY,"addCriticalActions");function AY(e,t,n,i,r,o){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&&(ZA(t,e[s],_.ActionType.Copy,n,i,r,o),o++,e.splice(s,1))}a(AY,"addCopyAction");function SY(e,t,n,i,r,o){for(let s of e)ZA(t,s,_.ActionType.Annotation,n,i,r,o),o++}a(SY,"addUncriticalActions");function Tw(e,t,n,i){var r,o,s,l;(o=(r=t==null?void 0:t.annotations)==null?void 0:r.UI)!=null&&o[i]||!((l=(s=n==null?void 0:n.annotations)==null?void 0:s.UI)!=null&&l[i])?e[_.SchemaTag.annotationPath]=`/${t.fullyQualifiedName}/${_.UIVOCABULARYALPHADOT}${i}`:e[_.SchemaTag.annotationPath]=`/${n.fullyQualifiedName}/${_.UIVOCABULARYALPHADOT}${i}`}a(Tw,"setAnnotationPathFromEntitySetOrEntityType");function xY(e,t,n,i,r,o){let{criticalActions:s=[],unCriticalActions:l=[]}=n?EY(n):{};if(bY(s,r,t,e,i),o){let p=CF(o),d=NF(o);if(Jg(o)&&d){let m=yw("Edit",t,i,s.length);Tw(m,o,e,"UpdateHidden")}if(p){let m=yw("Delete",t,i,s.length+1);Tw(m,o,e,"DeleteHidden")}}let u=s.length+2;AY(l,r,t,e,i,u),SY(l,r,t,e,i,u)}a(xY,"addHeaderActionCallBackV4");function PY(e,t,n,i){let r=[],o=[];i.forEach((s,l)=>{s.Determining&&s.$Type===vr.UIAnnotationTypes.DataFieldForAction&&(s.Criticality?r.push({index:l,item:s}):o.push({index:l,item:s}))});for(let s=0;s<r.length;s++){let l=r[s];vw(l,_.ActionType.Criticality,e,t,n,s)}for(let s=0;s<o.length;s++){let l=o[s];vw(l,_.ActionType.Annotation,e,t,n,r.length+s)}}a(PY,"addFooterActionCallBackV4");function IY(e,t,n,i,r){let o=n!==_.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${vr.UIAnnotationTerms.LineItem}`,s=o?`${_.DefinitionName.CustomColumnOP}<${n}>`:_.DefinitionName.CustomColumnOP,l=e.definitions[s];l[_.SchemaTag.isViewNode]=!0,l.description="Custom Column";let u=`${_.DefinitionName.CustomColumnOP}<${n}>`;Rc(e,t,r,u,n,i);let p=o?n:_.DefinitionName.PositionOP;Dt(_.DefinitionName.PositionOP,p,e,o);let d=o?`${_.DefinitionName.PositionOP}<${n}>`:_.DefinitionName.PositionOP;l.properties.position.$ref=`${B}${d}`,Fc(e,n,t,d,i.replace(/::/g,"/"))}a(IY,"addCustomColumnsOP");function OY(e,t,n,i,r){let o=n!==_.DefinitionName.LineItems&&n!=="LineItemsOfSPV::LineItem"&&n!==`@${vr.UIAnnotationTerms.LineItem}`,s=o?`${_.DefinitionName.CustomTableActionOP}<${n}>`:_.DefinitionName.CustomTableActionOP,l=e.definitions[s];l[_.SchemaTag.isViewNode]=!0,l.description=qA;let u=`${_.DefinitionName.CustomTableActionOP}<${n}>`,p=`${_.DefinitionName.Actions}<${ft(n)}>`;As(e,t,r,u,p,i);let d=o?n:_.DefinitionName.CustomActionPositionOP;Dt(_.DefinitionName.CustomActionPositionOP,d,e,o);let m=o?`${_.DefinitionName.CustomActionPositionOP}<${n}>`:_.DefinitionName.CustomActionPositionOP;l.properties.position.$ref=`${B}${m}`,Wo(e,p,m)}a(OY,"addTableCustomActionsOP");function bw(e,t,n,i){let r=e.definitions[n];r[_.SchemaTag.isViewNode]=!0,r.description=qA;let o=n===_.DefinitionName.CustomHeaderActionOP?_.DefinitionName.ObjectPageHeaderActions:_.DefinitionName.FooterActions;vh(e,t,i,n,o);let s=n===_.DefinitionName.CustomHeaderActionOP?_.DefinitionName.CustomHeaderActionPositionOP:_.DefinitionName.CustomFooterActionPositionOP;Dt(s,s,e,!1),r.properties.position.$ref=`${B}${s}`,Wo(e,o,s),e.definitions[o]&&(e.definitions[o].additionalProperties={$ref:`${B}${n}`})}a(bw,"addHeaderFooterCustomActionsOP");function CY(e,t,n,i,r){let o=`${_.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[o];s[_.SchemaTag.isViewNode]=!0,s.description=qA;let l=`${_.DefinitionName.CustomFormActionOP}<${n}>`,u=`${_.DefinitionName.SectionActions}<${ft(n)}>`;As(e,t,r,l,u,i),Dt(_.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${_.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${B}${p}`,Wo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${B}${o}`})}a(CY,"addFormCustomActionsOP");function NY(e,t,n,i,r,o,s){let l=Pl(t),u=t.lastIndexOf("::"),p=u>-1?t.substring(u+2):t,d=Dt(_.DefinitionName.ObjectPageTable,t,n);e.entityType&&p&&(d[_.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/${p}`),d.properties.columns={$ref:`${B}${l}`},d.properties.toolBar.$ref=Un(_.DefinitionName.ObjectPageToolBar,t),d.properties.quickVariantSelection.$ref=Un(_.DefinitionName.QuickVariantSelectionV4OP,t);let m=Dt(_.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=Un(_.DefinitionName.AnnotationPathAsObject,t),Dt(_.DefinitionName.AnnotationPathAsObject,t,n),qa(e.entityType,n,`${_.DefinitionName.AnnotationPathAsObject}<${l}>`);let T={appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Lc(T,_.DefinitionName.ObjectPageTableColumn,_.DefinitionName.CustomColumnOP,_.DefinitionName.CustomTableActionOP),IY(n,o,l,t,s),OY(n,o,l,t,s),d}a(NY,"handleLineItem");function Aw(e,t,n,i,r,o,s){s&&(s.properties[t]={$ref:Un(_.DefinitionName.ObjectPageSectionTableV4,t)});let l=Dt(_.DefinitionName.ObjectPageSectionTableV4,t,n);ma(e,l,Pl(t)),l[_.SchemaTag.annotationPath]=e.annotationPath,l[_.SchemaTag.target]=e.namespace,l.properties.table.$ref=Un(_.DefinitionName.ObjectPageTable,t);let u=NY(e,t,n,i,r.serviceAVT,o,r.logger);return{sectionTable:l,table:u}}a(Aw,"handleSectionTable");function RY(e,t,n,i,r,o,s){let l;o===_.SectionType.Section?l=_.DefinitionName.ObjectPageSectionForm:o===_.SectionType.HeaderSection&&(l=_.DefinitionName.ObjectPageHeaderSectionForm),i.properties[n]={$ref:Un(l,n)};let u=Dt(l,n,r);e.ID||(u.properties={}),ma(e,u,n),u[_.SchemaTag.annotationPath]=e.annotationPath,u[_.SchemaTag.target]=e.namespace,u[_.SchemaTag.isViewNode]=!0;let p=qg(o,e,u,r,_.FioriElementsVersion.v4,n);if(e.base===_.FacetBase.Form){let d=Pl(n);Dt(_.DefinitionName.CustomFormActionOP,p,r),CY(r,t,p,d,s)}}a(RY,"handleFormIdentification");function Ew(e,t,n,i,r){n.properties[t]={$ref:`${B}${r}`};let o=Dt(_.DefinitionName.CommonHeaderFacetSettings,r,i,!1);au(e,o,t),o[_.SchemaTag.annotationPath]=e.annotationPath,o[_.SchemaTag.target]=e.namespace,o[_.SchemaTag.dataType]=am(e==null?void 0:e.target),o[_.SchemaTag.isViewNode]=!0}a(Ew,"handleHeaderFacet");function LY(e,t,n,i){let r=Dt(_.DefinitionName.ObjectPageToolBarActions,t,n);if(r.additionalProperties=!1,r.properties={},e.Actions){let o=0;e.Actions.forEach(s=>{let l=Ei(s,i),u=s.$Type.split(_.UIVOCABULARYDOT)[1],p=s.Action.replace("/","::"),d=r.properties[`${u}::${s.Action}`]={$ref:Un(_.DefinitionName.ObjectPageToolBarAction,p),description:l};d[_.SchemaTag.propertyIndex]=o,d[_.SchemaTag.annotationType]=s.$Type;let m=Dt(_.DefinitionName.ObjectPageToolBarAction,ft(p),n);m[_.SchemaTag.annotationPath]=sm(s),m[_.SchemaTag.dataType]=to(s),m.properties={},o++})}return r}a(LY,"handleChartActions");function FY(e,t,n,i){let r=Dt(_.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[_.SchemaTag.annotationPath]=sm(e),r[_.SchemaTag.dataType]=am(e.target||e),r[_.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=Un(_.DefinitionName.ObjectPageToolBar,t);let o=Dt(_.DefinitionName.ObjectPageToolBar,t,n);o.properties.actions.$ref=Un(_.DefinitionName.ObjectPageToolBarActions,t);let s=LY(e,t,n,i);return{chart:r,chartActions:s}}a(FY,"handleChart");function Sw(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:Un(_.DefinitionName.ObjectPageSectionChart,t)});let o=Dt(_.DefinitionName.ObjectPageSectionChart,t,n);au(e,o,t),o[_.SchemaTag.annotationPath]=sm(e),o.properties.chart.$ref=Un(_.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=FY(e.target||e,t,n,r);return{sectionChart:o,chart:s,chartActions:l}}a(Sw,"handleSectionChart");function _Y(e,t,n,i,r,o){var m,T;let s,l,u;if(!(e!=null&&e.target)){oe(r.logger,{severity:_.LogSeverity.Error,message:ee.t("NOPRESENTATIONVARIANT",{key:t})});return}let p=(m=e==null?void 0:e.target)==null?void 0:m.Visualizations,d=t.lastIndexOf("::")>0?t.slice(0,t.lastIndexOf("::")):void 0;if(p!=null&&p[0])if(p[0].$target)s=p[0].$target,l=`@${s.fullyQualifiedName.split("@")[1].split("/")[0]}`,u=s;else{s=p[0],l="@"+qT(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let E=r.entityType.navigationProperties.find(R=>R.name===d).targetType,C=l==null?void 0:l.split(_.UIVOCABULARYDOT)[1];u=C&&((T=E==null?void 0:E.annotations)==null?void 0:T.UI[C])}if(s){let b=l.split(_.UIVOCABULARYDOT)[1],E=e.target[_.SchemaTag.fullyQualifiedName].split("@")[0],C=d?`${d}::${l}`:l;if(b.startsWith(_.Visualization.Chart)){i.properties[`${t}<${l}>`]={$ref:Un(_.DefinitionName.ObjectPageSectionChart,C)};let{sectionChart:R,chart:L}=Sw(s,C,n,void 0,e.entityType);R[_.SchemaTag.annotationPath]=e.annotationPath,au(e,R,t),L[_.SchemaTag.annotationPath]=`/${E}/${l}`,L[_.SchemaTag.target]=E}else if(b.startsWith(_.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:Un(_.DefinitionName.ObjectPageSectionTableV4,C)};let{sectionTable:R,table:L}=Aw(e,C,n,{target:u,entityType:e.entityType},r,o);R[_.SchemaTag.annotationPath]=e.annotationPath,au(e,R,t),delete R[_.SchemaTag.isViewNode],L[_.SchemaTag.annotationPath]=`/${E}/${l}`,L[_.SchemaTag.target]=E}}}a(_Y,"handleSectionPresentationVariant");function DY(e){let t=e.facets||{};for(let n in t)if(t[n].base===_.FacetBase.CollectionFacet)return!0;return!1}a(DY,"containsCollectionFacet");function wY(e,t,n){var o;let i=`${_.DefinitionName.ObjectPageCustomSubSectionFragment}<${t}>`,r=e.definitions[_.DefinitionName.ObjectPageCustomSubSectionFragment];if(typeof r=="object"){let s=typeof((o=r.properties)==null?void 0:o.relatedFacet)=="object"?r.properties.relatedFacet:{},l={...r,properties:{...r.properties,relatedFacet:{...s,type:"string"}}};oc(n,_.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}a(wY,"createCustomSubSectionReference");function xw(e,t,n,i,r,o){var d,m,T,b,E;let s=!1,l;r&&o?(s=!DY(r),l=wY(t,o,n.featureToggles)):l=_.DefinitionName.ObjectPageCustomHeaderSectionFragment,e.additionalProperties={$ref:`${B}${l}`},H0(t,e,i,l,s,o,n.logger);let u=t.definitions[l];typeof u=="object"&&es(t,e,{schema:u,property:"relatedFacet"},{resolveDefinition:!0,keyProperties:[_.SchemaKeyName.id,_.SchemaKeyName.key],descriptionAsFallback:!0});let p=u.properties.relatedFacet;if(l!=null&&l.includes(_.DefinitionName.ObjectPageCustomSubSectionFragment)&&s&&typeof p=="object"){let C=(E=(b=(T=(m=(d=i.options)==null?void 0:d.settings)==null?void 0:m.content)==null?void 0:T.body)==null?void 0:b.sections)==null?void 0:E[o],R=C&&"subSections"in C?C.subSections:{};for(let L=p.oneOf.length-1;L>=0;L--){let F=p.oneOf[L];R[F.const]||(F.hidden=!0)}}}a(xw,"applyCustomSections");function MY(e,t,n,i,r,o,s,l){let u=l===0,p=i.properties[t]=ha(n,e,t),d={additionalProperties:!1,type:"object",properties:{},description:"Subsections"};p.properties={subsections:d},d[_.SchemaTag.annotationPath]=e.annotationPath,d[_.SchemaTag.target]=e.namespace,d[_.SchemaTag.keys]=[{name:_.SchemaKeyName.id,value:e.ID}],d[_.SchemaTag.isViewNode]=!0;let m=l+1;for(let T in e.facets)eS(o,e.facets,T,d,n,r,s,m);u&&xw(d,n,o,s,e,t)}a(MY,"handleCollection");function eS(e,t,n,i,r,o,s,l=0){let u=t[n],p=`ObjectPage${o}${u.base}<${Pl(n)}>`;switch(u.base){case _.FacetBase.PresentationVariant:{_Y(u,n,r,i,e,s);break}case _.FacetBase.CollectionFacet:{MY(u,n,r,i,o,e,s,l);break}case _.FacetBase.LineItem:{if(o===_.SectionType.Section){let d=t[n];Aw(u,n,r,d,e,s,i)}break}case _.FacetBase.Form:case _.FacetBase.Identification:{RY(u,s,n,i,r,o,e.logger);break}case _.FacetBase.DataPoint:{Ew(u,n,i,r,p);break}case _.FacetBase.Chart:{o===_.SectionType.HeaderSection?Ew(u,n,i,r,p):o===_.SectionType.Section&&Sw(u,n,r,i);break}case _.FacetBase.Address:case _.FacetBase.Contact:{su(u,n,i,r,o);break}default:i.properties[n]=ha(r,u,n)}}a(eS,"addSection");function VY(e,t,n){let i=Rg(e.entityType,e.serviceAVT,_.FioriElementsVersion.v4,e.logger);if(!i){delete t.definitions[_.DefinitionName.ObjectPageSubSections];return}let r=t.definitions[_.DefinitionName.Sections];for(let o in i)eS(e,i,o,r,t,_.SectionType.Section,n);t.definitions[_.DefinitionName.CustomSections]&&(r.properties={...r.properties,...t.definitions[_.DefinitionName.CustomSections].properties})}a(VY,"addSections");function kY(e,t,n,i){let r=ZL(n,e.serviceAVT,_.FioriElementsVersion.v4,e.logger),o=t.definitions[_.DefinitionName.HeaderSections];if(o.properties={},o.additionalProperties=!1,!!r){for(let s in r)eS(e,r,s,o,t,_.SectionType.HeaderSection,i);xw(o,t,e,i),delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionForm],delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionChart],delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionDataPoint],delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionContact],delete t.definitions[_.DefinitionName.ObjectPageHeaderSectionAddress]}}a(kY,"addHeaderSections");function jY(e,t,n,i){Object.keys(n).forEach(r=>{var o,s,l,u,p;if(n[r].options&&n[r].options.settings&&(n[r].options.settings.entitySet===((o=e==null?void 0:e.entitySet)==null?void 0:o.name)||i&&n[r].options.settings.contextPath===i)&&n[r].name===_.v4.FE_TEMPLATE_V4_OBJECT_PAGE){let d=Lg(e.entityType,e.serviceAVT,e.logger),T=(p=(u=(l=(s=n[r].options)==null?void 0:s.settings)==null?void 0:l.content)==null?void 0:u.body)==null?void 0:p.sections;if(T)for(let b in T){let E=T[b];d.some(C=>C.key===b)||d.push({key:b,title:E.title,custom:!0})}om(t,[_.DefinitionName.ObjectPageCustomSectionFragment],d,["ID","label","key"])}})}a(jY,"addRelatedFacetKeysType");function $Y(e,t,n){let i=e.entityType;nm(t,i),tm(t,i,e.entitySet,e.serviceAVT,xY),bw(t,n,_.DefinitionName.CustomHeaderActionOP,e.logger),i&&(t.definitions[_.DefinitionName.HeaderSections][_.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${vr.UIAnnotationTerms.HeaderFacets}`),kY(e,t,i,n)}a($Y,"addHeader");function Ip(e,t,n,i){let r=JSON.parse(JSON.stringify(t));if(r.properties.sections={$ref:`${B}${_.DefinitionName.Sections}`},!e.manifest[_.ManifestSection.ui5].routing||!e.manifest[_.ManifestSection.ui5].routing.targets)return oe(e.logger,{severity:_.LogSeverity.Error,message:ee.t("NOROUTING"),location:{path:_.MANIFESTPATH}}),r;let o=r.definitions[_.DefinitionName.Sections]={type:"object",properties:{},additionalProperties:!1,description:_.DefinitionName.Sections};if(o[_.SchemaTag.isViewNode]=!0,e.entityType){let s=e.manifest[_.ManifestSection.ui5].routing.targets;if(!s)return oe(e.logger,{severity:_.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:_.MANIFESTPATH,range:[_.ManifestSection.generic]}}),r;let l=yh(s,_.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if($Y(e,r,l),o[_.SchemaTag.isViewNode]=!0,e.entityType&&(o[_.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${vr.UIAnnotationTerms.Facets}`),VY(e,r,l),jY(e,r,s,n),oc(e.featureToggles,_.Features.BuildingBlocks)&&i){r.definitions[_.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{hw(r,i,e,l.id)}catch(u){oe(e.logger,{severity:_.LogSeverity.Error,message:u})}}em(r,e,_.FioriElementsVersion.v4,PY),bw(r,l,_.DefinitionName.CustomFooterActionOP,e.logger)}return delete r.definitions[_.DefinitionName.CommonHeaderFacetSettings],delete r.definitions[_.DefinitionName.GenericColumnsOP],delete r.definitions[_.DefinitionName.GenericSections],delete r.definitions[_.DefinitionName.GenericSubSections],delete r.definitions[_.DefinitionName.ObjectPageChart],delete r.definitions[_.DefinitionName.ObjectPageSectionAddress],delete r.definitions[_.DefinitionName.ObjectPageSectionChart],delete r.definitions[_.DefinitionName.ObjectPageSectionContact],delete r.definitions[_.DefinitionName.ObjectPageSectionDataPoint],delete r.definitions[_.DefinitionName.ObjectPageSectionForm],delete r.definitions[_.DefinitionName.ObjectPageSectionTableV4],delete r.definitions[_.DefinitionName.ObjectPageSectionPresentationVariant],delete r.definitions[_.DefinitionName.ObjectPageSubSections],delete r.definitions[_.DefinitionName.ObjectPageTable],delete r.definitions[_.DefinitionName.ObjectPageToolBar],delete r.definitions[_.DefinitionName.ObjectPageToolBarAction],delete r.definitions[_.DefinitionName.ObjectPageToolBarActions],delete r.definitions[_.DefinitionName.QuickVariantSelectionV4OP],_o(r,vY),r}a(Ip,"generateObjectPageSchemaV4");function tS(e,t){return JSON.parse(JSON.stringify(t))}a(tS,"generateFreestyleSchemaV4");var Wr=te(se());function nS(e,t,n,i,r,o,s,l,u){let p=Ro(n,r),{entitySet:d,entityType:m}=Gc(p,s,t,r),T={templateType:Wr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:i,fragments:o,serviceAVT:p,logger:r,entitySet:d,entityType:m,featureToggles:u};return Ip(T,e,s,l)}a(nS,"generateObjectPageInterfaceV4");function uy(e,t,n,i,r,o,s){Qt();let l=Ro(i,r),{entitySet:u,entityType:p}=Gc(l,s,n,r),d={templateType:e,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:o,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Wr.TemplateType.ListReportObjectPageV4?Wr.v4.FE_TEMPLATE_V4_LIST_REPORT:Wr.v4.FE_TEMPLATE_V4_ALP;return Qu(d,t,m,s)}a(uy,"generateListReportInterfaceV4");function iS(e,t,n,i,r,o){let s=Ro(n,o),l={templateType:e,fioriElementsVersion:Wr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:o};return tS(l,t)}a(iS,"generateFreestyleInterfaceV4");function rS(e,t,n,i,r,o,s){let l={};if(oc(o,Wr.Features.BuildingBlocks)){let u=Ro(r,s),p=Ss(i||[],t,n,s);l=p!=null&&p.file.fileContent?Wc(e,p,u,s):{}}return l}a(rS,"generateFPMCustomPageInterfaceV4");var Kc=require("@sap-ux/vocabularies-types/vocabularies/UI"),Nw=te(se());var Hc=te(se());var Ow=new Map([[Hc.PageTypeV2.ListReport,Hc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Hc.PageTypeV2.ObjectPage,Hc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Pw=a((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=a(e=>{var t;for(let[n,i]of Ow)if(e!=null&&e.startsWith(i)){let r=n;if(e.includes("#")){let o=(t=e.split("#")[1])==null?void 0:t.split("::")[1];r+=`#${o}`}return r}},"getExtensionKeyForImport"),UY=a((e,t)=>{let n="";for(let[r,o]of Ow)e.startsWith(r)&&(n=o);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Cw={manifest:{path:()=>`sap.ui5/extends/extensions/${Hc.v4.SAPUI5_CONTROLLER_EXTENSION}`,import:e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=Iw(n);i&&(t[i]={},Pw(e[n],t[i]))}return Object.keys(t).length?t:void 0},export:(e,t,n)=>{var o;let i=(t==null?void 0:t.id)||"",r=((o=t==null?void 0:t.settings)==null?void 0:o[n])||{};for(let s in r){let l=UY(s,i);e[l]||(e[l]={}),Pw(r[s],e[l])}for(let s in e){let l=Iw(s);l&&!r[l]&&delete e[s]}}}};var mt=a(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),gy=a(e=>mt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),my=a(e=>mt(e)+"/content/header","getSettingsPathForHeaderOP"),BY=a(e=>mt(e)+"/content/footer","getSettingsPathForFooterOP"),Gr=a(e=>mt(e)+"/controlConfiguration","getControlConfigurationPath"),hy=a((e,t,n)=>Gr(e)+`/@${Kc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),yy=a(e=>Gr(e)+`/@${Kc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ls=a((e,t,n,i)=>Gr(e)+`/@${Kc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),oS=a((e,t,n,i)=>yy(e)+`/filterFields/${i}`,"getFilterFieldPath"),Hr=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Gr(e)+`/${o}/tableSettings`:void 0},"getTableSettingsPathForView"),qi=a((e,t,n,i,r)=>r?Hr(e,t,n,i,r):Gr(e)+`/@${Kc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),vy=a((e,t,n,i,r)=>qi(e,t,n,i,r)+Nw.QUICKVARPATH,"getQuickVariantPath"),Zi=a((e,t,n,i,r)=>{let o=r.replace(/\//gi,"??");return Gr(e)+`/${o}/columns/${i}`},"getColumnsPathForView"),Di=a((e,t,n,i,r)=>r?Zi(e,t,n,i,r):Gr(e)+`/@${Kc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),po=a((e,t,n,i,r)=>{let o=r.replace(/\//gi,"??");return Gr(e)+`/${o}/actions/${i}`},"getActionsPathForView"),Tr=a((e,t,n,i,r)=>r?po(e,t,n,i,r):Gr(e)+`/@${Kc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),er=a((e,t,n,i)=>Gr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Vn=a((e,t,n,i)=>Gr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),ui=a((e,t,n,i)=>my(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),go=a((e,t,n,i)=>BY(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),Nn=a((e,t,n)=>Gr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Fa=a((e,t,n,i)=>{let r=mt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Er=a((e,t,n,i)=>{let r=mt(e)+`/content/header/facets/${n}`;return i&&(r+="/"+i),r},"getObjectPageCustomHeaderSectionPath"),mf=a((e,t,n,i,r,o,s)=>{let l=n;s&&(s[0]==="sections"&&s[1]&&(l=s[1]),s[2]==="subsections"&&s[3]&&(i=`subSections/${s[3]}`));let u=mt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),dy=class dy{};a(dy,"ApplicationV4"),y([Ft("settings")],dy.prototype,"settings",2);var py=dy,Jo=class Jo{};a(Jo,"AppSettings"),y([v({manifest:{path:()=>"sap.app"}})],Jo.prototype,"title",2),y([v({manifest:{path:()=>"sap.app"}})],Jo.prototype,"description",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}}),I({since:"1.78.0"})],Jo.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:()=>"sap.ui5"}}),I({since:"1.56.0"})],Jo.prototype,"flexEnabled",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}})],Jo.prototype,"viewType",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}})],Jo.prototype,"path",2),y([v(Cw)],Jo.prototype,"controllerExtensions",2);var gf=Jo;var ge=te(se());function Tt(e,t,n,i,r,o,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=o&&o.replace(/\//g,"::");for(let d in n.properties){let m=zn(e,d);if(m!=null&&m.manifest){let T=m.manifest.path([i],t,p,...r);l=Lo(t,T,o,p,!0),l&&Object.keys(l).length>0&&(bl(m,l,d,e,o,r),jg(u,l,T,s))}}}a(Tt,"importSettingsOfObject");var Bx={};ec(Bx,{ALPChart:()=>fS,ALPTable:()=>uS,ActionAfterExecutionConfiguration:()=>TS,ActionAfterExecutionConfigurationFooter:()=>kx,ActionAfterExecutionConfigurationForm:()=>$S,ActionAfterExecutionConfigurationOP:()=>Qp,ActionAfterExecutionConfigurationObjectPageHeader:()=>_x,ActionAfterExecutionConfigurationToolBarLR:()=>RS,Actions:()=>IS,CommonHeaderFacetSettings:()=>Ms,CommonViewSettings:()=>Ef,CustomActionPosition:()=>_S,CustomActionPositionOP:()=>kS,CustomFilterField:()=>QS,CustomFilterFieldPosition:()=>YS,CustomFooterActionOP:()=>Ux,CustomFooterActionPositionOP:()=>$x,CustomFormActionOP:()=>KS,CustomHeaderAction:()=>tx,CustomHeaderActionOP:()=>Mx,CustomHeaderActionPosition:()=>Kp,CustomHeaderActionPositionOP:()=>wx,CustomTableAction:()=>DS,CustomTableActionOP:()=>jS,FilterBar:()=>XS,FlexSettings:()=>dx,FooterActionV4:()=>jx,FormAction:()=>US,Header:()=>qS,HeaderActions:()=>zS,HeaderSections:()=>Tx,LRChartView:()=>pS,LRTableView:()=>dS,MultiTableModeV4:()=>mS,ObjectPageCustomHeaderSectionFlexSettings:()=>Rx,ObjectPageCustomHeaderSectionFragment:()=>Lx,ObjectPageCustomSectionFragment:()=>If,ObjectPageCustomSubSectionFragment:()=>Fx,ObjectPageFooter:()=>fx,ObjectPageFooterActions:()=>lx,ObjectPageForm:()=>WS,ObjectPageFormActions:()=>BS,ObjectPageHeader:()=>sx,ObjectPageHeaderAction:()=>Dx,ObjectPageHeaderActions:()=>ax,ObjectPageHeaderSectionAddress:()=>vx,ObjectPageHeaderSectionChart:()=>mx,ObjectPageHeaderSectionContact:()=>yx,ObjectPageHeaderSectionDataPoint:()=>hx,ObjectPageHeaderSectionForm:()=>gx,ObjectPageLayout:()=>Ix,ObjectPageTable:()=>qp,ObjectPageTableColumn:()=>Af,ObjectPageTableColumnAction:()=>nx,ObjectPageToolBarAction:()=>VS,PersonalizationType:()=>sS,PersonalizationTypeOP:()=>Cx,Position:()=>AS,PositionOP:()=>ix,QuickVariantSelectionV4:()=>lS,QuickVariantSelectionV4OP:()=>Nx,Table:()=>hS,TableColumn:()=>xy,TableColumnAction:()=>ES,TableCreationModeOP:()=>Ox,TableCustomColumn:()=>xS,TableCustomColumnOP:()=>rx,TableSettings:()=>Ty,TableViewExtension:()=>gS,TableViewSettings:()=>Np,ToolBar:()=>OS,ToolBarAction:()=>LS,ViewCustomActionPosition:()=>wS,ViewPersonalizationType:()=>cS,ViewPosition:()=>SS,ViewTableColumn:()=>Py,ViewTableColumnAction:()=>bS,ViewTableCustomAction:()=>MS,ViewTableCustomColumn:()=>PS,ViewToolBarAction:()=>FS,VisualFilter:()=>JS,checkViewOrder:()=>yS,deleteCreationModeProperty:()=>Lp,deletePersonalizationProperty:()=>To,exportCreationModeProperty:()=>Rp,exportPersonalization:()=>Sy,exportPersonalizationProperty:()=>vo});var aS=te(se());var WY=a((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 yo(e,t,n,i,r,o){let s=gy(e),l=WY(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let d=l[p];if(d&&(d[aS.SchemaTag.key]===(o==null?void 0:o.key)||d[aS.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}a(yo,"getSettingsPathForLRViewsPath");function GY(e,t,n,i,r,o){let s=JSON.parse(JSON.stringify(e)),l=Object.keys(e);for(let u of l){let p=Number(u),d=e[u];t===d.key?s[n]=d:p>=i&&p<=r?s[Math.max(0,p+o)]=d:s[u]=d}return s}a(GY,"fillNewlyOrderedViews");function yS(e,t){let n=t.key,i=e.findIndex(o=>(o==null?void 0:o.key)===n),r=t.index;if(i>-1&&i!==r){let o=r>i?-1:1,s=Math.min(Number(i),r),l=Math.max(Number(i),r),u=GY(e,n,r,s,l,o);for(let p of Object.keys(u))e[p]=u[p]}}a(yS,"checkViewOrder");function Sy(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}a(Sy,"exportPersonalization");function vo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}a(vo,"exportPersonalizationProperty");function To(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}a(To,"deletePersonalizationProperty");function vS(e,t,n,i,r,o){let s;if(!t||Object.keys(t).length===0){let l=e;Object.keys(l).forEach(u=>{l[u]&&l[u].key===r&&(e[Number(u)]={},s=u)})}if(s){let l=o.table.views;for(let u in l)l[u].index>s&&l[u].index--}}a(vS,"deleteView");function Rp(e,t,n){typeof e.creationMode=="object"?e.creationMode[n]=t[n]:typeof e.creationMode=="string"&&(e.creationMode=t)}a(Rp,"exportCreationModeProperty");function Lp(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}a(Lp,"deleteCreationModeProperty");function Rw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}a(Rw,"importPersonalization");function Lw(e,t,n,i){let r=e.findIndex(o=>o.key===i[0]);return r===-1?void 0:r}a(Lw,"determineIndexOfView");var hf=class hf{};a(hf,"PersonalizationType"),y([v({manifest:{path:qi,export:vo,delete:To}})],hf.prototype,"column",2),y([v({manifest:{path:qi,export:vo,delete:To}})],hf.prototype,"sort",2),y([v({manifest:{path:qi,export:vo,delete:To}})],hf.prototype,"filter",2);var sS=hf,yf=class yf{};a(yf,"ViewPersonalizationType"),y([v({manifest:{path:Hr,export:vo,delete:To}})],yf.prototype,"column",2),y([v({manifest:{path:Hr,export:vo,delete:To}})],yf.prototype,"sort",2),y([v({manifest:{path:qi,export:vo,delete:To}})],yf.prototype,"filter",2);var cS=yf,vf=class vf{};a(vf,"QuickVariantSelectionV4"),y([v({manifest:{path:vy}})],vf.prototype,"paths",2),y([v({manifest:{path:vy}})],vf.prototype,"hideTableTitle",2),y([v({manifest:{path:vy}})],vf.prototype,"showCounts",2);var lS=vf,mo=class mo{};a(mo,"TableSettings"),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"type",2),y([v({manifest:{path:qi,import:Rw,export:Sy}}),I({since:"1.86.0"})],mo.prototype,"personalization",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"selectionMode",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"selectAll",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"selectionLimit",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"enableExport",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"quickVariantSelection",2),y([v({manifest:{path:qi}}),I({since:"1.84.0"})],mo.prototype,"condensedTableLayout",2);var Ty=mo,Ey=class Ey{};a(Ey,"ALPChart"),y([v({manifest:{path:t=>mt(t)+"/views/paths/0/primary/0",delete:vS}})],Ey.prototype,"annotationPath",2);var fS=Ey,Xc=class Xc{};a(Xc,"CommonViewSettings"),y([v({manifest:{path:yo,delete:ac}})],Xc.prototype,"key",2),y([v({manifest:{path:gy,import:Lw,export:(t,n)=>{yS(t,n)},delete:vS}})],Xc.prototype,"index",2),y([v({manifest:{path:yo,delete:ac}})],Xc.prototype,"annotationPath",2),y([v({manifest:{path:yo}})],Xc.prototype,"entitySet",2);var Ef=Xc,ho=class ho extends Ef{};a(ho,"TableViewSettings"),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"type",2),y([v({manifest:{path:Hr,import:Rw}}),I({since:"1.86.0"})],ho.prototype,"personalization",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"selectionMode",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"selectAll",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"selectionLimit",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"enableExport",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"quickVariantSelection",2),y([v({manifest:{path:Hr}}),I({since:"1.84.0"})],ho.prototype,"condensedTableLayout",2);var Np=ho;function HY(e){return Np}a(HY,"getTableViewSettings");var Op=class Op extends Np{};a(Op,"ALPTable"),y([v({manifest:{path:t=>mt(t)+"/views/paths/0/secondary/0",delete:ac}})],Op.prototype,"annotationPath",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Op.prototype,"initialLoad",2);var uS=Op,by=class by extends Ef{};a(by,"LRChartView"),y([v({manifest:{path:yo},generate:Qn})],by.prototype,"visible",2);var pS=by,Tf=class Tf extends HY(Ef){};a(Tf,"LRTableView"),y([v({manifest:{path:yo}})],Tf.prototype,"keepPreviousPersonalization",2),y([v({manifest:{path:yo}})],Tf.prototype,"entitySet",2),y([v({manifest:{path:yo},generate:Qn})],Tf.prototype,"visible",2);var dS=Tf,Fs=class Fs{};a(Fs,"TableViewExtension"),y([v({manifest:{path:yo}})],Fs.prototype,"key",2),y([v({manifest:{path:gy,import:Lw,export:(t,n)=>{yS(t,n)},delete:vS}})],Fs.prototype,"index",2),y([v({manifest:{path:yo}})],Fs.prototype,"label",2),y([v({manifest:{path:yo}})],Fs.prototype,"template",2),y([v({manifest:{path:yo},generate:Qn})],Fs.prototype,"visible",2);var gS=Fs,Ay=class Ay{};a(Ay,"MultiTableModeV4"),y([v({manifest:{path:t=>mt(t)+"/views"}})],Ay.prototype,"showCounts",2);var mS=Ay,Cp=class Cp extends Ty{};a(Cp,"Table"),y([v({manifest:{path:t=>mt(t)+"/views/paths/0/secondary/0",delete:ac}})],Cp.prototype,"annotationPath",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Cp.prototype,"initialLoad",2);var hS=Cp;var Fp=class Fp{};a(Fp,"ActionAfterExecutionConfiguration"),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Fp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Fp.prototype,"enableAutoScroll",2);var TS=Fp,_p=class _p{};a(_p,"TableColumn"),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],_p.prototype,"width",2),y([v({manifest:{path:Di}}),I({since:"1.85.0"})],_p.prototype,"availability",2);var xy=_p,Dp=class Dp{};a(Dp,"ViewTableColumn"),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Dp.prototype,"width",2),y([v({manifest:{path:Zi}}),I({since:"1.85.0"})],Dp.prototype,"availability",2);var Py=Dp,Iy=class Iy extends xy{};a(Iy,"TableColumnAction"),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Iy.prototype,"afterExecution",2);var ES=Iy,Oy=class Oy extends Py{};a(Oy,"ViewTableColumnAction"),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Oy.prototype,"afterExecution",2);var bS=Oy,wp=class wp{};a(wp,"Position"),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],wp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],wp.prototype,"placement",2);var AS=wp,Mp=class Mp{};a(Mp,"ViewPosition"),y([v({manifest:{path:(t,n,i,r,o)=>Zi(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],Mp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Zi(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],Mp.prototype,"placement",2);var SS=Mp,Yo=class Yo{};a(Yo,"TableCustomColumn"),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"position",2),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"header",2),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"width",2),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"template",2),y([v({manifest:{path:Di}}),I({since:"1.86.0"})],Yo.prototype,"horizontalAlign",2),y([v({manifest:{path:Di}}),I({since:"1.84.0"})],Yo.prototype,"availability",2),y([v({manifest:{path:Di}}),I({since:"1.85.0"})],Yo.prototype,"properties",2);var xS=Yo,Qo=class Qo{};a(Qo,"ViewTableCustomColumn"),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"position",2),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"header",2),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"width",2),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"template",2),y([v({manifest:{path:Zi}}),I({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),y([v({manifest:{path:Zi}}),I({since:"1.84.0"})],Qo.prototype,"availability",2),y([v({manifest:{path:Zi}}),I({since:"1.85.0"})],Qo.prototype,"properties",2);var PS=Qo;var CS=class CS{};a(CS,"Actions");var IS=CS,NS=class NS{};a(NS,"ToolBar");var OS=NS;var Vp=class Vp{};a(Vp,"ActionAfterExecutionConfigurationToolBarLR"),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/afterExecution"}})],Vp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/afterExecution"}})],Vp.prototype,"enableAutoScroll",2);var RS=Vp,kp=class kp{};a(kp,"ToolBarAction"),y([v({manifest:{path:Tr}})],kp.prototype,"enableOnSelect",2),y([v({manifest:{path:Tr}})],kp.prototype,"afterExecution",2);var LS=kp,Cy=class Cy{};a(Cy,"ViewToolBarAction"),y([v({manifest:{path:po}})],Cy.prototype,"enableOnSelect",2);var FS=Cy,jp=class jp{};a(jp,"CustomActionPosition"),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],jp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],jp.prototype,"placement",2);var _S=jp,_a=class _a{};a(_a,"CustomTableAction"),y([v({manifest:{path:Tr}}),I({since:"1.84.0"})],_a.prototype,"text",2),y([v({manifest:{path:Tr}}),I({since:"1.84.0"})],_a.prototype,"position",2),y([v({manifest:{path:Tr}}),I({since:"1.84.0"})],_a.prototype,"press",2),y([v({manifest:{path:Tr}}),I({since:"1.84.0"})],_a.prototype,"requiresSelection",2),y([v({manifest:{path:Tr},generate:Qn}),I({since:"1.84.0"})],_a.prototype,"visible",2),y([v({manifest:{path:Tr},generate:Qn}),I({since:"1.84.0"})],_a.prototype,"enabled",2);var DS=_a,$p=class $p{};a($p,"ViewCustomActionPosition"),y([v({manifest:{path:(t,n,i,r,o)=>po(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],$p.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>po(t,n,i,r,o)+"/position"}}),I({since:"1.84.0"})],$p.prototype,"placement",2);var wS=$p,Da=class Da{};a(Da,"ViewTableCustomAction"),y([v({manifest:{path:po}}),I({since:"1.84.0"})],Da.prototype,"text",2),y([v({manifest:{path:po}}),I({since:"1.84.0"})],Da.prototype,"position",2),y([v({manifest:{path:po}}),I({since:"1.84.0"})],Da.prototype,"press",2),y([v({manifest:{path:po}}),I({since:"1.84.0"})],Da.prototype,"requiresSelection",2),y([v({manifest:{path:po},generate:Qn}),I({since:"1.84.0"})],Da.prototype,"visible",2),y([v({manifest:{path:po},generate:Qn}),I({since:"1.84.0"})],Da.prototype,"enabled",2);var MS=Da;var Ny=class Ny{};a(Ny,"ObjectPageToolBarAction"),y([v({manifest:{path:Vn}})],Ny.prototype,"enableOnSelect",2);var VS=Ny,Up=class Up{};a(Up,"CustomActionPositionOP"),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Up.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Up.prototype,"placement",2);var kS=Up,wa=class wa{};a(wa,"CustomTableActionOP"),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],wa.prototype,"text",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],wa.prototype,"position",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],wa.prototype,"press",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],wa.prototype,"requiresSelection",2),y([v({manifest:{path:Vn},generate:Hi}),I({since:"1.84.0"})],wa.prototype,"visible",2),y([v({manifest:{path:Vn},generate:Hi}),I({since:"1.84.0"})],wa.prototype,"enabled",2);var jS=wa;var Bp=class Bp{};a(Bp,"ActionAfterExecutionConfigurationForm"),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/afterExecution"}})],Bp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/afterExecution"}})],Bp.prototype,"enableAutoScroll",2);var $S=Bp,Ry=class Ry{};a(Ry,"FormAction"),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],Ry.prototype,"afterExecution",2);var US=Ry,GS=class GS{};a(GS,"ObjectPageFormActions");var BS=GS,HS=class HS{};a(HS,"ObjectPageForm");var WS=HS;var _s=class _s{};a(_s,"CustomFormActionOP"),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],_s.prototype,"text",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],_s.prototype,"position",2),y([v({manifest:{path:Vn}}),I({since:"1.84.0"})],_s.prototype,"press",2),y([v({manifest:{path:Vn},generate:Hi}),I({since:"1.84.0"})],_s.prototype,"visible",2),y([v({manifest:{path:Vn},generate:Hi}),I({since:"1.84.0"})],_s.prototype,"enabled",2);var KS=_s;function KY(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}a(KY,"exportVisualFilterValueList");var bf=class bf{};a(bf,"FilterBar"),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.99.0"})],bf.prototype,"hideFilterBar",2),y([v({manifest:{path:yy}}),I({since:"1.93.0"})],bf.prototype,"initialLayout",2),y([v({manifest:{path:yy}}),I({since:"1.93.0"})],bf.prototype,"layout",2);var XS=bf,Wp=class Wp{};a(Wp,"VisualFilter"),y([v({manifest:{path:oS}}),I({since:"1.93.0"})],Wp.prototype,"availability",2),y([v({manifest:{path:oS,import:t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},export:KY,key:"visualFilter"}}),I({since:"1.93.0"})],Wp.prototype,"visualFilterValueList",2);var JS=Wp,Gp=class Gp{};a(Gp,"CustomFilterFieldPosition"),y([v({manifest:{path:(t,n,i,r)=>Ls(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Gp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>Ls(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Gp.prototype,"placement",2);var YS=Gp,Ds=class Ds{};a(Ds,"CustomFilterField"),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"label",2),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"property",2),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"template",2),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"required",2),y([v({manifest:{path:Ls}}),I({since:"1.77.0"})],Ds.prototype,"position",2);var QS=Ds;var ZS=class ZS{};a(ZS,"HeaderActions");var zS=ZS,ex=class ex{};a(ex,"Header");var qS=ex;var Hp=class Hp{};a(Hp,"CustomHeaderActionPosition"),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Hp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Hp.prototype,"placement",2);var Kp=Hp,ws=class ws{};a(ws,"CustomHeaderAction"),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],ws.prototype,"text",2),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],ws.prototype,"position",2),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],ws.prototype,"press",2),y([v({manifest:{path:ui},generate:Qn}),I({since:"1.84.0"})],ws.prototype,"visible",2),y([v({manifest:{path:ui},generate:Qn}),I({since:"1.84.0"})],ws.prototype,"enabled",2);var tx=ws;var Xp=class Xp{};a(Xp,"ActionAfterExecutionConfigurationOP"),y([v({manifest:{path:(t,n,i,r)=>er(t,n,i,r)+"/afterExecution"}})],Xp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>er(t,n,i,r)+"/afterExecution"}})],Xp.prototype,"enableAutoScroll",2);var Qp=Xp,Jp=class Jp{};a(Jp,"ObjectPageTableColumn"),y([v({manifest:{path:er}}),I({since:"1.84.0"})],Jp.prototype,"width",2),y([v({manifest:{path:er}}),I({since:"1.85.0"})],Jp.prototype,"availability",2);var Af=Jp,ox=class ox extends Af{};a(ox,"ObjectPageTableColumnAction");var nx=ox,Yp=class Yp{};a(Yp,"PositionOP"),y([v({manifest:{path:(t,n,i,r)=>er(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Yp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>er(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],Yp.prototype,"placement",2);var ix=Yp,zo=class zo{};a(zo,"TableCustomColumnOP"),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"position",2),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"header",2),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"width",2),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"template",2),y([v({manifest:{path:er}}),I({since:"1.86.0"})],zo.prototype,"horizontalAlign",2),y([v({manifest:{path:er}}),I({since:"1.84.0"})],zo.prototype,"availability",2),y([v({manifest:{path:er}}),I({since:"1.85.0"})],zo.prototype,"properties",2);var rx=zo;var cx=class cx{};a(cx,"ObjectPageHeaderActions");var ax=cx,Jc=class Jc{};a(Jc,"ObjectPageHeader"),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Jc.prototype,"editableHeaderContent",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Jc.prototype,"showRelatedApps",2),y([v({manifest:{path:my}}),I({since:"1.84.0"})],Jc.prototype,"visible",2),y([v({manifest:{path:my}}),I({since:"1.84.0"})],Jc.prototype,"anchorBarVisible",2);var sx=Jc;var ux=class ux{};a(ux,"ObjectPageFooterActions");var lx=ux,px=class px{};a(px,"ObjectPageFooter");var fx=px;var Ly=class Ly{};a(Ly,"FlexSettings"),y([v({manifest:{path:(t,n,i)=>hy(t,n,i)+"/flexSettings"}}),I({since:"1.81.0"})],Ly.prototype,"designtime",2);var dx=Ly,zp=class zp{};a(zp,"CommonHeaderFacetSettings"),y([v({manifest:{path:hy}}),I({since:"1.81.0"})],zp.prototype,"stashed",2),y([v({manifest:{path:hy}}),I({since:"1.81.0"})],zp.prototype,"flexSettings",2);var Ms=zp,Ex=class Ex extends Ms{};a(Ex,"ObjectPageHeaderSectionForm");var gx=Ex,bx=class bx extends Ms{};a(bx,"ObjectPageHeaderSectionChart");var mx=bx,Ax=class Ax extends Ms{};a(Ax,"ObjectPageHeaderSectionDataPoint");var hx=Ax,Sx=class Sx extends Ms{};a(Sx,"ObjectPageHeaderSectionContact");var yx=Sx,xx=class xx extends Ms{};a(xx,"ObjectPageHeaderSectionAddress");var vx=xx,Px=class Px{};a(Px,"HeaderSections");var Tx=Px;var Fy=class Fy{};a(Fy,"ObjectPageLayout"),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],Fy.prototype,"sectionLayout",2);var Ix=Fy;var _y=te(se());var Sf=class Sf{};a(Sf,"TableCreationModeOP"),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:(t,n,i)=>{Rp(t,n,i)},delete:(t,n,i,r)=>{Lp(t,r)}}})],Sf.prototype,"name",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:(t,n,i)=>{Rp(t,n,i)},delete:(t,n,i,r)=>{Lp(t,r)}}})],Sf.prototype,"createAtEnd",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:(t,n,i)=>{Rp(t,n,i)},delete:(t,n,i,r)=>{Lp(t,r)}}})],Sf.prototype,"inlineCreationRowsHiddenInEditMode",2);var Ox=Sf,xf=class xf{};a(xf,"PersonalizationTypeOP"),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:vo,delete:To}})],xf.prototype,"column",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:vo,delete:To}})],xf.prototype,"sort",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i),export:vo,delete:To}})],xf.prototype,"filter",2);var Cx=xf,Pf=class Pf{};a(Pf,"QuickVariantSelectionV4OP"),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i)+_y.QUICKVARPATH}})],Pf.prototype,"paths",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i)+_y.QUICKVARPATH}})],Pf.prototype,"hideTableTitle",2),y([v({manifest:{path:(t,n,i)=>Nn(t,n,i)+_y.QUICKVARPATH}})],Pf.prototype,"showCounts",2);var Nx=Pf,tr=class tr{};a(tr,"ObjectPageTable"),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"type",2),y([v({manifest:{path:Nn,import:t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}}}}),I({since:"1.84.0"})],tr.prototype,"creationMode",2),y([v({manifest:{path:Nn,import:t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}},export:Sy}}),I({since:"1.86.0"})],tr.prototype,"personalization",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"selectionMode",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"selectAll",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"selectionLimit",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"enableExport",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"quickVariantSelection",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"condensedTableLayout",2),y([v({manifest:{path:Nn}}),I({since:"1.86.0"})],tr.prototype,"enableFullScreen",2),y([v({manifest:{path:Nn}}),I({since:"1.84.0"})],tr.prototype,"enablePaste",2);var qp=tr;var Dy=class Dy{};a(Dy,"ObjectPageCustomHeaderSectionFlexSettings"),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"flexSettings")}}),I({since:"1.81.0"})],Dy.prototype,"designtime",2);var Rx=Dy,nr=class nr{};a(nr,"ObjectPageCustomHeaderSectionFragment"),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"position"),key:"anchor"}}),I({since:"1.77.0"})],nr.prototype,"relatedFacet",2),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"position"),key:"placement"}}),I({since:"1.77.0"})],nr.prototype,"relativePosition",2),y([v({manifest:{path:Er},generate:Hi}),I({since:"1.84.0"})],nr.prototype,"visible",2),y([v({manifest:{path:Er}}),I({since:"1.77.0"})],nr.prototype,"title",2),y([v({manifest:{path:Er}}),I({since:"1.77.0"})],nr.prototype,"subTitle",2),y([v({manifest:{path:Er,import:t=>t.name||t.template,key:"template"}}),I({since:"1.77.0"})],nr.prototype,"fragmentName",2),y([v({manifest:{path:Er,import:t=>t.templateEdit,key:"templateEdit"}}),I({since:"1.86.0"})],nr.prototype,"templateEdit",2),y([v({manifest:{path:Er}}),I({since:"1.81.0"})],nr.prototype,"stashed",2),y([v({manifest:{path:Er}}),I({since:"1.81.0"})],nr.prototype,"flexSettings",2),y([v({manifest:{path:Er}}),I({since:"1.81.0"})],nr.prototype,"requestGroupId",2),y([v({manifest:{path:Er,import:!1,export:!1},xml:t=>t.fragmentName}),I({since:"1.96.0"})],nr.prototype,"controls",2);var Lx=nr;var ks=te(se());var Eo=class Eo{};a(Eo,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:(t,n,i)=>Fa(t,n,i,"position"),key:"anchor"}}),I({since:"1.77.0"})],Eo.prototype,"relatedFacet",2),y([v({manifest:{path:Fa,import:(t,n)=>n,export:!1}}),I({since:"1.77.0"})],Eo.prototype,"id",2),y([v({manifest:{path:(t,n,i)=>Fa(t,n,i,"position"),key:"placement"}}),I({since:"1.77.0"})],Eo.prototype,"relativePosition",2),y([v({manifest:{path:Fa}}),I({since:"1.77.0"})],Eo.prototype,"title",2),y([v({manifest:{path:Fa,import:t=>!t.type||t.type.startsWith(ks.v4.CustomSectionViewTypesV4.XML)?ks.v4.CustomSectionViewTypesV4.XML:"",export:(t,n)=>{let i="";"type"in n&&(i+=n.type),"className"in n&&(n.className===ks.SAPUI5_FRAGMENT_CLASS?i+="Fragment":i+=n.className),t.type=i}}}),I({since:"1.77.0"})],Eo.prototype,"type",2),y([v({manifest:{path:Fa,import:t=>!t.type||t.type.startsWith(ks.v4.CustomSectionViewTypesV4.XML)?!t.type||t.type==="XMLFragment"?ks.SAPUI5_FRAGMENT_CLASS:t.type.slice(ks.v4.CustomSectionViewTypesV4.XML.length):t.type,export:!1}}),I({since:"1.77.0"})],Eo.prototype,"className",2),y([v({manifest:{path:Fa,import:t=>t.name||t.template,key:"template"}}),I({since:"1.77.0"})],Eo.prototype,"fragmentName",2),y([v({manifest:{path:Fa,import:!1,export:!1},xml:t=>t.fragmentName}),I({since:"1.96.0"})],Eo.prototype,"controls",2);var If=Eo,Vs=class Vs extends If{};a(Vs,"ObjectPageCustomSubSectionFragment"),y([v({manifest:{path:(...t)=>`${mf.apply({},t)}/position`,key:"anchor"}}),I({since:"1.77.0"})],Vs.prototype,"relatedFacet",2),y([v({manifest:{path:(...t)=>`${mf.apply({},t)}/position`,key:"placement"}}),I({since:"1.77.0"})],Vs.prototype,"relativePosition",2),y([v({manifest:{path:mf}}),I({since:"1.77.0"})],Vs.prototype,"title",2),y([v({manifest:{path:mf,import:t=>t.name||t.template,key:"template"}}),I({since:"1.77.0"})],Vs.prototype,"fragmentName",2),y([v({manifest:{path:mf,import:!1,export:!1},xml:t=>t.fragmentName}),I({since:"1.96.0"})],Vs.prototype,"controls",2);var Fx=Vs;var Zp=class Zp{};a(Zp,"ActionAfterExecutionConfigurationObjectPageHeader"),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/afterExecution"}})],Zp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/afterExecution"}})],Zp.prototype,"enableAutoScroll",2);var _x=Zp,wy=class wy{};a(wy,"ObjectPageHeaderAction"),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],wy.prototype,"afterExecution",2);var Dx=wy,Vx=class Vx extends Kp{};a(Vx,"CustomHeaderActionPositionOP");var wx=Vx,js=class js{};a(js,"CustomHeaderActionOP"),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],js.prototype,"text",2),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],js.prototype,"position",2),y([v({manifest:{path:ui}}),I({since:"1.84.0"})],js.prototype,"press",2),y([v({manifest:{path:ui},generate:Hi}),I({since:"1.84.0"})],js.prototype,"visible",2),y([v({manifest:{path:ui},generate:Hi}),I({since:"1.84.0"})],js.prototype,"enabled",2);var Mx=js;var ed=class ed{};a(ed,"ActionAfterExecutionConfigurationFooter"),y([v({manifest:{path:(t,n,i,r)=>go(t,n,i,r)+"/afterExecution"}})],ed.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>go(t,n,i,r)+"/afterExecution"}})],ed.prototype,"enableAutoScroll",2);var kx=ed,My=class My{};a(My,"FooterActionV4"),y([v({manifest:{path:go}}),I({since:"1.84.0"})],My.prototype,"afterExecution",2);var jx=My,td=class td{};a(td,"CustomFooterActionPositionOP"),y([v({manifest:{path:(t,n,i,r)=>go(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],td.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>go(t,n,i,r)+"/position"}}),I({since:"1.84.0"})],td.prototype,"placement",2);var $x=td,$s=class $s{};a($s,"CustomFooterActionOP"),y([v({manifest:{path:go}}),I({since:"1.84.0"})],$s.prototype,"text",2),y([v({manifest:{path:go}}),I({since:"1.84.0"})],$s.prototype,"position",2),y([v({manifest:{path:go}}),I({since:"1.84.0"})],$s.prototype,"press",2),y([v({manifest:{path:go},generate:Hi}),I({since:"1.84.0"})],$s.prototype,"visible",2),y([v({manifest:{path:go},generate:Hi}),I({since:"1.84.0"})],$s.prototype,"enabled",2);var Ux=$s;var Kx={};ec(Kx,{FreestylePage:()=>Gx,ListReport:()=>br,ObjectPage:()=>bo});function XY(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(o=>delete e[o])}a(XY,"deleteAllALPViews");function JY(){}a(JY,"doNotExport");function YY(){}a(YY,"doNotImport");var br=class{};a(br,"ListReport"),y([v({manifest:{path:t=>mt(t)+"/views",import:YY,export:JY,delete:XY}})],br.prototype,"chart",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],br.prototype,"variantManagement",2),y([v({manifest:{path:t=>mt(t)+"/views/paths/[]/0"}})],br.prototype,"defaultPath",2),y([v({manifest:{path:t=>mt(t)}})],br.prototype,"defaultTemplateAnnotationPath",2),y([Ft("header")],br.prototype,"header",2),y([Ft("fe::FilterBar")],br.prototype,"filterBar",2),br=y([Dr({id:"sap.suite.ui.generic.template.ListReport.view.ListReport",pageId:"sap.suite.ui.generic.template.ListReport"})],br);var Wx=te(se());var bo=class{};a(bo,"ObjectPage"),y([Ft("header")],bo.prototype,"header",2),y([Ft("layout")],bo.prototype,"layout",2),y([v({manifest:{path:t=>mt(t)}}),I({since:"1.84.0"})],bo.prototype,"variantManagement",2),y([Ft("sections")],bo.prototype,"sections",2),bo=y([Dr({id:`${Wx.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:Wx.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],bo);var Hx=class Hx{};a(Hx,"FreestylePage");var Gx=Hx;var Vy=te(se());var QY={},zY={},qY={Table:qp,TableColumn:Af,ObjectPageCustomSectionView:If,ActionAfterExecutionConfiguration:Qp},ZY={[Vy.PageTypeV2.AnalyticalListPage]:QY,[Vy.PageTypeV2.ListReport]:zY,[Vy.PageTypeV2.ObjectPage]:qY},Xx=class Xx extends Xl{constructor(){super(Bx,Kx,ZY)}};a(Xx,"MetadataInstanceFactoryV4");var Ma=Xx;var Jx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Yx(e,t,n,i,r,o,s){var d,m,T,b,E,C;let l=t.jsonSchema.definitions,u=o&&o!==`@${Jx.UIAnnotationTerms.LineItem}`?o:ge.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let R in p.properties){let F=l[u].properties[R].$ref.split(B)[1].split("<")[0];e.columns[R]=n.createInstance(i,F);let U=s||o;Tt(e.columns[R],t.manifest,l[F],r,[R,U],U,t.logger),Do(e.columns,R)}Do(e,"columns")}else{let R=(C=(E=(b=(T=(m=(d=t.manifest["sap.ui5"])==null?void 0:d.routing)==null?void 0:m.targets)==null?void 0:T[r])==null?void 0:b.options)==null?void 0:E.settings)==null?void 0:C.views;(!R||R.paths.length<1)&&oe(t.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOLINEITEMS")})}}a(Yx,"transferColumns");function eQ(e,t,n,i,r){let o=e.jsonSchema.definitions,s=o[ge.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=un(u.$ref),d=p.split("<")[0];t.visualFilters[l]=n.createInstance(i,d),Tt(t.visualFilters[l],e.manifest,o[p],r,[l])}}Do(t,"visualFilters")}}a(eQ,"importVisualFilters");function tQ(e,t,n,i,r,o=ge.DefinitionName.LineItems,s){let l=e.jsonSchema.definitions,u=s;!u&&[ge.DefinitionName.LineItems,`${ge.DefinitionName.LineItems}OfSPV::LineItem`].indexOf(o)===-1&&(u=`@${Jx.UIAnnotationTerms.LineItem}#${o.split("::").pop()}`);let p=l[`${ge.DefinitionName.Actions}<${o}>`];if(typeof p=="object")for(let d in p.properties){let m=p.properties[d];if(typeof m=="object"&&m.$ref){let T=un(m.$ref),b=T.split("<")[0];t.toolBar.actions[d]=n.createInstance(i,b),Tt(t.toolBar.actions[d],e.manifest,l[T],r,[d,u]),Do(t.toolBar.actions,d)}}}a(tQ,"importActions");function Qx(e,t,n,i,r,o=ge.DefinitionName.LineItems,s){let l=n.createInstance(i,ge.DefinitionName.ToolBar,{actions:{}}),u;!s&&t&&"table"in t?u=t.table:u=t,u.toolBar=l,Tt(u.toolBar,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.ToolBarLR],r,[]),tQ(e,u,n,i,r,o,s),Do(u.toolBar,"actions"),Do(u,"toolBar")}a(Qx,"transferToolBar");function Fw(e,t,n){var s;let i=(s=e[t])==null?void 0:s[ge.SchemaTag.annotationPath],r=n?`/${n}/`:"",o=i==null?void 0:i.substr(i.lastIndexOf("@"));return o=r?`${r}${o}`:o,o}a(Fw,"determineTargetAnnotationOfView");function nQ(e,t,n,i,r){let o=e.jsonSchema.definitions;t.chart=n.createInstance(i,ge.DefinitionName.ALPChart);let s=o[ge.DefinitionName.ALPChart],l=s[ge.SchemaTag.annotationPath];Tt(t.chart,e.manifest,s,r,[s[ge.SchemaTag.key],l==null?void 0:l.substr(l.lastIndexOf("@"))]),t.chart.toolBar=n.createInstance(i,ge.DefinitionName.ToolBar,{actions:{}}),Tt(t.chart.toolBar,e.manifest,o[ge.DefinitionName.ViewChartToolBar],r,[]);let u=o[ge.DefinitionName.ALPTable][ge.SchemaTag.annotationPath];if(u){let p=o[ge.DefinitionName.ALPTable],d=t.table=n.createInstance(i,ge.DefinitionName.ALPTable);Qx(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));Tt(d,e.manifest,p,r,[p[ge.SchemaTag.key],m]),Yx(d,e,n,i,r,void 0,m)}}a(nQ,"importALPViews");function iQ(e){let t;return e.indexOf(ge.DefinitionName.LRTableView)>-1?t=ge.DefinitionName.LRTableView:e.indexOf(ge.DefinitionName.LRChartView)>-1?t=ge.DefinitionName.LRChartView:e===ge.DefinitionName.TableViewExtension&&(t=ge.DefinitionName.TableViewExtension),t}a(iQ,"getViewTypeByDefinition");function rQ(e,t,n,i,r){let o=t.table.views=n.createInstance(i,ge.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;Tt(o,e.manifest,s[ge.DefinitionName.MultiTableModeV4],r,[]);let l=s[ge.DefinitionName.MultiTableModeV4].properties,u=Object.entries(l).sort((p,d)=>p[1][ge.SchemaTag.propertyIndex]-d[1][ge.SchemaTag.propertyIndex]);for(let p of u)if(p[1].$ref){let d=p[1].$ref.split(B)[1],m=iQ(d),T=o[p[0]]=n.createInstance(i,m),b=s[d].entitySet,E=Fw(s,d,b);if(Tt(T,e.manifest,s[d],r,[p[0],E]),m===ge.DefinitionName.LRTableView){let C=`${ge.DefinitionName.LineItemsOfView}::${p[0]}`;Qx(e,T,n,i,r,C,E),Yx(T,e,n,i,r,C,E)}Object.keys(T).length===0&&delete o[p[0]]}Do(t.table,"views")}a(rQ,"importLRViews");function oQ(e,t,n,i,r){let o=ge.DefinitionName.HeaderActions,s=ge.PropertyName.header,l=e.definitions[o];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 d=un(p.$ref),m=e.definitions[d],T=un(m.$ref||p.$ref);t[s].actions[u]=n.createInstance(ge.PageTypeV4.ObjectPage,T),Tt(t[s].actions[u],i,e.definitions[T],r,[u.replace("/","??")]),Do(t.header,"actions"),Do(t,"header")}}}}a(oQ,"transferHeaderActions");function aQ(e,t,n,i){let r=e.jsonSchema.definitions,o={};for(let s of[ge.DefinitionName.SelectionFields,ge.DefinitionName.CompactFilters]){let l=r[s];typeof l=="object"&&l.properties&&Object.keys(l.properties).length&&(o=l.properties)}for(let s in o){let l=o[s];if(typeof l!="object"||l.$ref!==B+ge.DefinitionName.CustomFilterField)continue;let u=n.createInstance(ge.PageTypeV4.ListReport,ge.DefinitionName.CustomFilterField),p=l.$ref.split(B)[1];Tt(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}a(aQ,"importCustomFilterFields");function sQ(e,t,n,i,r,o){if(Tt(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ge.DefinitionName.Header),Tt(t.header,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.Header],r,[]),oQ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ge.DefinitionName.FilterBar),Tt(t.filterBar,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.FilterBar],r,[]),eQ(e,t.filterBar,n,i,r),aQ(e,t.filterBar,n,r),o===ge.SchemaType.ListReport){let s=ge.DefinitionName.Table,l=e.jsonSchema.definitions[s],u;l.$ref&&(s=l.$ref.split(B)[1],l=e.jsonSchema.definitions[s],u=l.properties.columns.$ref.split(B)[1]),t.table=n.createInstance(i,ge.DefinitionName.Table);let p=Fw(e.jsonSchema.definitions,s);Tt(t.table,e.manifest,l,r,[s,p]),Qx(e,t,n,i,r,u),Yx(t.table,e,n,i,r,u,p),rQ(e,t,n,i,r)}else o===ge.SchemaType.AnalyticalListPage&&nQ(e,t,n,i,r)}a(sQ,"addSettings");function Yc(e,t){if(Qt(),!e.jsonSchema)return;if(!e.manifest[ge.ManifestSection.ui5]||!e.manifest[ge.ManifestSection.ui5].routing){oe(e.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOROUTING"),location:{path:ge.MANIFESTPATH,range:[ge.ManifestSection.ui5]}});return}let n=e.manifest[ge.ManifestSection.ui5].routing.targets;if(!n){oe(e.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOTARGETS"),location:{path:ge.MANIFESTPATH,range:[ge.ManifestSection.ui5]}});return}let i=new Ma,r=i.createPageInstance(ge.PageTypeV4.ListReport);for(let o in n){let s=n[o],l=VT(s);if("name"in s&&(l===ge.PageTypeV4.ListReport||l===ge.PageTypeV4.AnalyticalListPage)){sQ(e,r,i,ge.PageTypeV4.ListReport,o,t);break}}return r}a(Yc,"createListReportConfig");var ye=te(se()),Qc=require("@sap-ux/vocabularies-types/vocabularies/UI");function cQ(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}a(cQ,"isBoolean");function lQ(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}a(lQ,"isNumber");function fQ(e,t){let n=e.toString();return cQ(n,t)?n==="true":lQ(n,t)?parseFloat(n):e}a(fQ,"convertValue");function uQ(e,t,n,i){let{element:r}=e,o=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=fQ(r.attributes[i],t);s!==n[i]&&(n[i]=s,o=!0)}return o}a(uQ,"importProperty");function _w(e,t,n){let i,r=pf(e.file,!1,n);if(r){let o=fy(r);i={},Bc({fullSchema:t,schema:t,element:o,contextPath:[],config:i},uQ)}return i}a(_w,"convertXmlFileToConfig");function ky(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:o}=e;if(!i||Object.keys(i).length===0)return;let s=Ss(t||[],r,n,o),l;return s&&(l=_w(s,i,e.logger)),l}a(ky,"createCustomPageConfig");function nd(e,t){var T;let{fragments:n,manifest:i,jsonSchema:r,routingId:o,logger:s}=e,l=df(t),u=(T=r.definitions)==null?void 0:T[l];if(!r||!u)return;let p=_c(i,o),d=Dc(n||[],p,i,"fragment",t),m;if(d){let b={...u,definitions:r.definitions};m=_w(d,b,s)}return m}a(nd,"createCustomFragmentConfig");function zx(e,t=!1,n){var r,o,s;let i=t?(r=e.split("<")[1])==null?void 0:r.slice(0,-1):e;if(n){let l=i.split(`@${n}`);return`${(o=l[0])==null?void 0:o.replace(/::/g,"/")}@${n}${(s=l[1])==null?void 0:s.replace(/::/g,"#")}`}return`${e==null?void 0:e.replace(/::/g,"/").replace(/::/g,"#")}`}a(zx,"getManifestId");function jy(e){return e.replace(/#/g,"::").replace(/\//g,"::")}a(jy,"getDefinitionId");function pQ(e,t,n,i,r,o){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[jy(o)];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 d=r.createInstance(ye.PageTypeV4.ObjectPage,s);Tt(d,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],o),Object.keys(d).length>0&&(n[i].table.columns[u]=d)}}}a(pQ,"fillTableColumnsInConfig");function dQ(e,t,n,i,r=t){let o=e.jsonSchema.definitions[`${ye.DefinitionName.Actions}<${jy(r)}>`];if(typeof o=="object")for(let s in o.properties){let l=o.properties[s];if(typeof l=="object"&&l.$ref){let u=un(l.$ref),p=u.split("<")[0];n[t].table.toolBar.actions[s]=i.createInstance(ye.PageTypeV4.ObjectPage,p),Tt(n[t].table.toolBar.actions[s],e.manifest,e.jsonSchema.definitions[u],e.routingId,[s],r),Object.keys(n[t].table.toolBar.actions[s]).length===0&&delete n[t].table.toolBar.actions[s]}}}a(dQ,"fillTableActionsInConfig");function gQ(e,t,n,i,r,o=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageSectionForm}<${jy(o)}>`].properties.form.$ref.split(B)[1],d=e.jsonSchema.definitions[l].properties.actions.$ref.split(B)[1],m=e.jsonSchema.definitions[d];for(let T in m.properties){let b=m.properties[T],E=un(b.$ref),C=e.jsonSchema.definitions[E];if(C.annotationType===Qc.UIAnnotationTypes.DataFieldForAction||C.description==="Custom Action"){let R=un(C.$ref)||E.split("<")[0];i[n].form.actions[T]=r.createInstance(ye.PageTypeV4.ObjectPage,R),Tt(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[R],e.routingId,[T.replace("/","??")],o),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}a(gQ,"fillFormActionsInConfig");function Dw(e,t,n,i,r,o){var u;let s=o||zx(i,!1,Qc.UIAnnotationTerms.LineItem),l=(u=t.controlConfiguration)==null?void 0:u[s];if(l){n[i]={},n[i].table=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageTable);let p=`${ye.DefinitionName.ObjectPageTable}<${o?jy(o):i.replace("#","::")}>`;Tt(n[i].table,e.manifest,e.jsonSchema.definitions[p],e.routingId,[],s),n[i].table.toolBar=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ToolBar,{actions:{}}),dQ(e,i,n,r,s),pQ(e,l,n,i,r,s)}}a(Dw,"fillTableInConfig");function mQ(e,t,n,i,r){var l;let o=zx(i),s=(l=t.controlConfiguration)==null?void 0:l[o];s&&(n[i]={},n[i].form=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageForm,{actions:{}}),gQ(e,s,i,n,r,o))}a(mQ,"fillFormInConfig");function hQ(e,t,n,i,r,o){let s=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(B)[1];if(Tt(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],o),s.fragmentName){let u=nd(e,s.fragmentName);s.controls=u}n[i]=s}a(hQ,"fillCustomSubSectionInConfig");function Mw(e,t,n,i,r,o){var s,l,u,p,d;for(let m in t){let T=t[m],b=m;if(m.includes(Qc.UIAnnotationTerms.PresentationVariant)&&((s=T.$ref)!=null&&s.startsWith(B+ye.DefinitionName.ObjectPageSectionTableV4))){let E=T.$ref.split(B)[1];b=E?zx(E,!0,Qc.UIAnnotationTerms.LineItem):m,Dw(e,n,i,m,r,b)}else(l=T.$ref)!=null&&l.startsWith(B+ye.DefinitionName.ObjectPageSectionTableV4)?Dw(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},Mw(e,T.properties.subsections.properties,n,i[m].subsections,r,m)):(u=T.$ref)!=null&&u.startsWith(B+ye.DefinitionName.ObjectPageSectionForm)&&((p=T.$ref)!=null&&p.includes(`@${Qc.UIAnnotationTerms.FieldGroup}::`))?mQ(e,n,i,m,r):(d=T.$ref)!=null&&d.startsWith(B+ye.DefinitionName.ObjectPageCustomSubSectionFragment)&&hQ(e,T,i,m,r,o)}}a(Mw,"fillSectionsInConfig");function yQ(e,t,n,i){var o,s;let r=(s=(o=t.content)==null?void 0:o.body)==null?void 0:s.sections;if(r){n.sections.custom=[];for(let l in r){let u=r[l];if("subSections"in u)continue;let p=i.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSectionFragment);Tt(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l);let d=u.template;if(d){let m=nd(e,d);p.controls=m}n.sections.custom.push(p)}}}a(yQ,"fillCustomSectionsInConfig");function vQ(e,t,n,i){var s;let r=(s=t.content)==null?void 0:s.header,o=r&&"facets"in r?r.facets:void 0;if(o)for(let l in o){let u=o[l],p=i.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomHeaderSectionFragment);Tt(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let d=u.template;if(d){let T=nd(e,d);p.controls=T}let m=u.templateEdit;if(m){let T=nd(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}a(vQ,"fillCustomHeaderSectionsInConfig");function TQ(e,t,n,i,r){var s,l;let o=e.definitions[ye.DefinitionName.HeaderSections];if(o&&o.properties){t.header.sections={};for(let u in o.properties){let p=o.properties[u],d,m=(s=o.properties[u].$ref)==null?void 0:s.split(B)[1];m&&(p=e.definitions[m],d=m.split("<")[0]),(d==null?void 0:d.includes(ye.DefinitionName.ObjectPageCustomHeaderSectionFragment))||(t.header.sections[u]=d?n.createInstance(ye.PageTypeV4.ObjectPage,d):{},Tt(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ye.FacetTitlePrefix)[1]))}}}a(TQ,"fillHeaderFacets");function EQ(e,t,n,i,r,o,s){let l=un(e.$ref),u=t.definitions[l],p=un(u.$ref||e.$ref),d=n.createInstance(ye.PageTypeV4.ObjectPage,p);if(d){let m=i[r]=d;Tt(m,o,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}a(EQ,"importActionSettingsOfReference");function ww(e,t,n,i,r,o,s){let l=e.definitions[o];if(typeof l=="object"){let u=t[s].actions={};for(let p in l.properties){let d=l.properties[p];typeof d=="object"&&d.$ref&&EQ(d,e,n,u,p,i,r)}}}a(ww,"fillHeaderFooterActions");function bQ(e,t,n){var o,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),Tt(i.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageFooter),Tt(i.footer,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageLayout),Tt(i.layout,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageLayout],e.routingId,[]),Tt(i,e.manifest,e.jsonSchema,e.routingId,[]),i.sections||(i.sections={}),r&&((r.controlConfiguration||(s=(o=r.content)==null?void 0:o.body)!=null&&s.sections)&&e.jsonSchema.definitions[ye.DefinitionName.Sections]&&(i.sections={},Mw(e,e.jsonSchema.definitions[ye.DefinitionName.Sections].properties,r,i.sections,n)),yQ(e,r,i,n),TQ(e.jsonSchema,i,n,e.manifest,e.routingId),vQ(e,r,i,n),ww(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.ObjectPageHeaderActions,ye.PropertyName.header),ww(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.FooterActions,ye.PropertyName.footer)),i}a(bQ,"fillObjectPageConfig");function $y(e){if(Qt(),!e.manifest[ye.ManifestSection.ui5]||!e.manifest[ye.ManifestSection.ui5].routing){oe(e.logger,{severity:ye.LogSeverity.Error,message:ee.t("NOROUTING"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5]}});return}let t=e.manifest[ye.ManifestSection.ui5].routing.targets;if(!t){oe(e.logger,{severity:ye.LogSeverity.Error,message:ee.t("NOTARGETS"),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let n=t[e.routingId];if(!n){oe(e.logger,{severity:ye.LogSeverity.Error,message:ee.t("NOROUTINGID",{routingId:e.routingId}),location:{path:ye.MANIFESTPATH,range:[ye.ManifestSection.ui5,"routing"]}});return}let i=new Ma;return bQ(e,n,i)}a($y,"createObjectPageConfigV4");var Ue=te(se());var qx=[],Uy={};function AQ(e,t){let n=e.target,i=t.target,r=Array.isArray(n),o=Array.isArray(i);return r&&o?n.length-i.length:!r&&!o?0:r?1:-1}a(AQ,"routesSorter");function Zx(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]}a(Zx,"resolveTarget");function SQ(e){let t={};e=e.concat().sort(AQ);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),o;Array.isArray(i.target)?(o=Zx(i.target,n),n.push(i.target)):o=i.target;for(let s of r){let l=s.split("(")[0];t[o]=t[o]?`${t[o]}.${l}`:l}}return t}a(SQ,"populateAssociations");function xQ(e,t,n){let i;return e.name?e.name===Ue.v4.FE_TEMPLATE_V4_CUSTOM_PAGE?i=Ue.PageTypeV4.FPMCustomPage:e.name.endsWith(Ue.PageTypeV4.ListReport)||e.name.endsWith(Ue.PageTypeV4.AnalyticalListPage)?i=Ue.PageTypeV4.ListReport:e.name.endsWith(Ue.PageTypeV4.ObjectPage)?i=Ue.PageTypeV4.ObjectPage:i=Ue.PageTypeV4.CustomPage:"viewId"in e?i=Ue.PageTypeV4.CustomPage:(oe(t,{severity:Ue.LogSeverity.Error,message:ee.t("INVALIDTARGETDEFINITION",{target:JSON.stringify(e)}),location:{path:Ue.MANIFESTPATH,range:[`${Ue.ManifestSection.ui5}/routing/targets/${n}`]}}),e.viewType in Ue.ViewTypes&&"viewName"in e&&(i=Ue.PageTypeV4.CustomPage)),i}a(xQ,"determinePageType");function PQ(e){let t=e.target.viewId||e.target.id,n=Nt(e.page.pageType,e.id,t).filename;if(!n||e.page.pageType===Ue.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===Ue.PageTypeV4.ObjectPage){let r={manifest:e.manifest,jsonSchema:e.schemas[i],routingId:e.id,fragments:e.extensionFiles.fragments,logger:e.logger};e.page.config=$y(r)}else if(e.page.pageType===Ue.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=ky(r)}else if(e.templateType===Ue.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Yc(r,Ue.SchemaType.ListReport)}else if(e.templateType===Ue.TemplateType.AnalyticalListPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Yc(r,Ue.SchemaType.AnalyticalListPage)}else if(e.templateType===Ue.TemplateType.FreestylePageV4&&e.page.pageType===Ue.PageTypeV4.ListReport){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger},s=ou(e.target)===Ue.TemplateType.AnalyticalListPageV4?Ue.SchemaType.AnalyticalListPage:Ue.SchemaType.ListReport;e.page.config=Yc(r,s)}}}a(PQ,"convertSettingsToConfig");function IQ(e){if(e.options){if("viewName"in e.options.settings){let t=e.options.settings.viewName.split(".");qx.push(t[t.length-1])}}else if("viewId"in e){let t=e.viewName.split(".");qx.push(t[t.length-1])}}a(IQ,"updateUnhandledControllers");function OQ(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}}}a(OQ,"setVariantManagmentAndNavigation");function CQ(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:o,entityType:s}=Gc(n.serviceAVT,t.contextPath,t.entitySet,n.logger);t.entitySet=t.entitySet||(o==null?void 0:o.name),t.entityType=s==null?void 0:s.fullyQualifiedName}}a(CQ,"setEntitySetEntityTypeContextPath");function NQ(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([Ue.PageTypeV4.CustomPage,Ue.PageTypeV4.FPMCustomPage].includes(n)){let o=((r=(i=e.options)==null?void 0:i.settings)==null?void 0:r.viewName)||e.viewName;t.view={...e.id&&{id:e.id},...o&&{name:o},...e.name&&{template:e.name},...e.viewType&&{viewType:e.viewType}}}}a(NQ,"evaluateCustomPageSettings");function RQ(e,t,n,i){let r=e.targets[t],o=xQ(r,i.logger,t),s={pageType:o};if(CQ(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),Uy[t]&&Uy[t].indexOf(".")!==-1){let p=Uy[t].split(".");s.navigationProperty=p[p.length-1]}NQ(r,s,o),OQ(r,s),IQ(r);let l=e.routes.find(p=>p.name===t);l&&(s.routePattern=l.pattern,"layout"in l&&(s.defaultLayoutType=l.layout)),n[t]=s;let u={target:r,pageType:o,manifest:i.manifest,schemas:i.appSchemas,logger:i.logger,page:s,id:t,templateType:i.templateType,extensionFiles:{views:i.views,fragments:i.fragments}};PQ(u)}a(RQ,"getSinglePageAndConfig");function Vw(e){let t={},n=e.manifest[Ue.ManifestSection.ui5].routing;if(!n||!n.routes){let i=ee.t("NOROUTING");return oe(e.logger,{severity:Ue.LogSeverity.Error,message:i,location:{path:Ue.MANIFESTPATH,range:[Ue.ManifestSection.ui5]}}),t}Uy=SQ(n.routes||[]);for(let i in n.targets)RQ(n,i,t,e);return t}a(Vw,"getPagesAndConfigs");function kw(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 Zx(t?t.target:e.routes[0].target)}else return}a(kw,"getHome");function jw(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}}:{}}a(jw,"getSettings");function Of(e,t){let n=e[Ue.ManifestSection.ui5].routing,i={};if(n)for(let r in n.targets){let o=n.targets[r];o.name===t&&(i[r]=o)}return i}a(Of,"getPages");var eP=class eP extends ns{constructor(t){Qt();let n=new gf,i=Nt(Ue.SchemaType.Application),r=t.appSchemas[i.filename];Tt(n,t.manifest,r.definitions.AppSettings,"",[]),super(t.manifest,t.appSchemas,kw(t.manifest[Ue.ManifestSection.ui5].routing),Vw(t),Ue.FioriElementsVersion.v4,{...jw(t.manifest[Ue.ManifestSection.ui5].routing),...n},t.logger),this.unhandledControllers=qx}};a(eP,"V4AppProvider");var id=eP;var $w=require("fs"),zc=require("path"),rd=te(se());var Uw=a((e,t,n=__dirname)=>{let i;switch(t){case rd.SchemaType.Application:{i=`${rd.SchemaType.Application}${e.toUpperCase()}.json`;break}case rd.SchemaType.FPMCustomPage:{i=`${rd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,zc.join)(n,"schemas",e,i);if(n.endsWith((0,zc.join)("specification","packages","specification")))return(0,zc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,zc.join)("src","specification")))return(0,zc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,zc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),LQ=a(async e=>new Promise((t,n)=>{(0,$w.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),By=a(async(e,t)=>{try{let n=Uw(e,t,__dirname);return await LQ(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function FQ(e,t){let n={},i=[];switch(i=[le.SchemaType.Application],e){case le.TemplateType.ListReportObjectPageV4:case le.TemplateType.AnalyticalListPageV4:i.push(le.SchemaType.ListReport,le.SchemaType.ObjectPage,le.SchemaType.FPMCustomPage);break;case le.TemplateType.FreestylePageV4:i.push(le.SchemaType.ListReport,le.SchemaType.ObjectPage,le.SchemaType.FreestylePage,le.SchemaType.FPMCustomPage);break;case le.TemplateType.ListReportObjectPageV2:i.push(le.SchemaType.ListReport,le.SchemaType.ObjectPage);break;case le.TemplateType.AnalyticalListPageV2:i.push(le.SchemaType.AnalyticalListPage,le.SchemaType.ObjectPage);break;case le.TemplateType.OverviewPageV2:i.push(le.SchemaType.OverviewPage);break;default:break}for(let r of i){let o=Nt(r);n[o.filename]=await By(t,r)}return n}a(FQ,"getGenericSchemas");function Ww(e){let t={Facets:[],LineItems:[]},n=e==null?void 0:e.entityTypes;if(!n)return t;let i=ai(le.UIVOCABULARY,e);for(let r of n){if(!r.annotations||!r.annotations[i])continue;let{LineItem:o,Facets:s}=r.annotations[i];o&&!o.qualifier&&t.LineItems.push(r.name),s&&!s.qualifier&&t.Facets.push(r.name)}return t}a(Ww,"getAnnotationsForUi");function od(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}a(od,"getEntitySetByEntitySetName");function _Q(e,t){var r;let n=e.target.targetType,i=e.objectPath[1];for(let o=2;o<e.objectPath.length;o++){let s=e.objectPath[o];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}}a(_Q,"resolveNavigationProperty");function Gc(e,t,n,i){var l,u,p;let r=e==null?void 0:e.resolvePath(t||`/${n}`),o,s;return((l=r==null?void 0:r.target)==null?void 0:l._type)==="EntitySet"?(o=(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:o,entitySet:s}=_Q(r,e):oe(i,{severity:le.LogSeverity.Error,message:ee.t("CONTEXTPATHCOULDNOTBERESOLVED",{entitySet:n,contextPath:t}),location:{path:le.MANIFESTPATH}}),n&&!o&&oe(i,{severity:le.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{entitySetName:n})}),{entityType:o,entitySet:s}}a(Gc,"getEntityTypeEntitySetFromContextPath");function Bw(e,t,n){let i=Xu(e.manifest[le.ManifestSection.generic].pages,le.v2.FE_TEMPLATE_V2_OBJECT_PAGE,e.logger);for(let r in i){let o=i[r].entitySet,s=od(o,e.serviceAVT);s||oe(e.logger,{severity:le.LogSeverity.Error,message:ee.t("ENTITYSETNOTFOUND",{entitySetName:o})}),e.entitySet=s;let l=Nt(le.SchemaType.ObjectPage,(s==null?void 0:s.name)||o),u=Nt(le.SchemaType.ObjectPage);n[l.filename]=ad(e,t[u.filename])}}a(Bw,"generateObjectPageSchemasV2");function DQ(e,t,n){var l,u;let i=Of(e.manifest,le.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Of(e.manifest,le.v4.FE_TEMPLATE_V4_ALP),o={...i,...r},s=e==null?void 0:e.serviceAVT;for(let p in o){let d=(l=o[p].options.settings)==null?void 0:l.entitySet,m=(u=o[p].options.settings)==null?void 0:u.contextPath,{entitySet:T,entityType:b}=Gc(s,m,d,e.logger);e.entityType=b,e.entitySet=T;let E=Nt(le.SchemaType.ListReport,p),C=Nt(le.SchemaType.ListReport);e.templateType===le.TemplateType.FreestylePageV4&&(e.templateType=ou(o[p])),n[E.filename]=Qu(e,t[C.filename],o[p].name,m)}}a(DQ,"generateListReportSchemasV4");function wQ(e,t,n){var r;let i=Xu(e.manifest[le.ManifestSection.generic].pages,le.v2.FE_TEMPLATE_V2_LIST_REPORT,e.logger);for(let o in i){let s=i[o].entitySet;e.entitySet=od(s,e.serviceAVT);let l=Nt(le.SchemaType.ListReport,((r=e.entitySet)==null?void 0:r.name)||s),u=Nt(le.SchemaType.ListReport);t[l.filename]=sd(e,n[u.filename])}}a(wQ,"generateAppSchemaV2LR");function MQ(e,t,n){var o,s;let i=Of(e.manifest,le.v4.FE_TEMPLATE_V4_OBJECT_PAGE),r=e.serviceAVT;for(let l in i){let u=(o=i[l].options.settings)==null?void 0:o.entitySet,p=(s=i[l].options.settings)==null?void 0:s.contextPath,{entityType:d,entitySet:m}=Gc(r,p,u);e.entitySet=m,e.entityType=d;let T=Nt(le.SchemaType.ObjectPage,l),b=Nt(le.SchemaType.ObjectPage),E=Nt(le.SchemaType.FPMCustomPage);n[T.filename]=Ip(e,t[b.filename],p,t[E.filename])}}a(MQ,"generateObjectPageSchemasV4");function VQ(e,t,n,i){var o;let r={};if(i===le.TemplateType.ListReportObjectPageV2&&n)wQ(e,r,t),Bw(e,t,r);else if(i===le.TemplateType.AnalyticalListPageV2&&n){let s=Xu(e.manifest[le.ManifestSection.generic].pages,le.v2.FE_TEMPLATE_V2_ALP,e.logger);for(let l in s){let u=s[l].entitySet;e.entitySet=od(u,e.serviceAVT);let p=Nt(le.SchemaType.AnalyticalListPage,((o=e.entitySet)==null?void 0:o.name)||u),d=Nt(le.SchemaType.AnalyticalListPage);r[p.filename]=cd(e,t[d.filename])}Bw(e,t,r)}else if(i===le.TemplateType.OverviewPageV2){let s=Nt(le.SchemaType.OverviewPage),l=Nt(le.SchemaType.OverviewPage);r[s.filename]=ld(t[l.filename],e.manifest)}return{...t,...r}}a(VQ,"generateAppSchemasV2");function kQ(e,t,n){if(!oc(e.featureToggles,le.Features.BuildingBlocks))return;let i=Of(e.manifest,le.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let o=i[r],s=Ss(e.views||[],r,e.manifest,e.logger),l=o.viewId||o.id||r;if(s){let u=Nt(le.SchemaType.FPMCustomPage,void 0,l),p=Nt(le.SchemaType.FPMCustomPage);n[u.filename]=Wc(t[p.filename],s,e.serviceAVT,e.logger)}}}a(kQ,"generateCustomPageSchemasV4");function jQ(e,t,n){let i={};return n&&(DQ(e,t,i),MQ(e,t,i),kQ(e,t,i)),{...t,...i}}a(jQ,"generateAppSchemasV4");async function Gw(e,t,n){let i=await FQ(n,e.fioriElementsVersion);return e.fioriElementsVersion===le.FioriElementsVersion.v4?jQ(e,i,t):VQ(e,i,t,n)}a(Gw,"generateAppSchemas");function $Q(e){let t,n=[];switch(e.templateType){case le.TemplateType.ListReportObjectPageV2:case le.TemplateType.AnalyticalListPageV2:t=new dh(e);break;case le.TemplateType.AnalyticalListPageV4:case le.TemplateType.ListReportObjectPageV4:case le.TemplateType.FreestylePageV4:t=new id(e);break;case le.TemplateType.OverviewPageV2:t=new hh(e);break;default:break}if(t){let{appConfig:i,pageConfigs:r}=t.createConfigFiles();for(let o in i)n.push({dataSourceUri:o,fileContent:JSON.stringify(i[o],null,4)});for(let o in r)n.push({dataSourceUri:o,fileContent:JSON.stringify(r[o],null,4)})}return n}a($Q,"importConfigs");function Hw(e,t){let n=[];for(let i of Object.keys(e).sort()){let r;i===le.SchemaType.Application?r=`${le.DirName.Schemas}/${le.FileName.App[0].toUpperCase()}${le.FileName.App.slice(1)}`:r=`${le.DirName.Schemas}/${i}.json`,n.push({dataSourceUri:r,fileContent:JSON.stringify(e[i],null,4)})}return t&&(n=n.concat(t)),n}a(Hw,"getFileList");async function tP(e){var E,C;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,featureToggles:s}=e;new cu().doesUi5VersionFitDistTags((C=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:C.minUI5Version,i);let u=BT(t),p=Ro(n,i),d=Ww(p),m=WT(t,u,i),b=await Gw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:o,fioriElementsVersion:u,logger:i,featureToggles:s},d,m);return Hw(b)}a(tP,"importProjectSchema");async function nP(e){var L,F;Qt();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,flex:s,featureToggles:l}=e;new cu().doesUi5VersionFitDistTags((F=(L=t["sap.ui5"])==null?void 0:L.dependencies)==null?void 0:F.minUI5Version,i);let p=BT(t),d=Ro(n,i),m=WT(t,p,i),T={templateType:m,manifest:t,serviceAVT:d,fragments:r,views:o,fioriElementsVersion:p,logger:i,featureToggles:l},b=Ww(d),E=await Gw(T,b,m),R=$Q({manifest:t,flexChanges:s,appSchemas:E,templateType:m,logger:i,serviceAVT:d,fragments:r,views:o});return Hw(E,R)}a(nP,"importProjectSchemaAndConfig");var UQ=["header","sections","footer"];function BQ(e,t,n,i){t.properties[n][fe.SchemaTag.artifactType]=fe.ArtifactType.FlexChange;let r;switch(i){case"ObjectPageSectionV2":case"ObjectPageSectionFormV2":case"ObjectPageSectionChartV2":case"ObjectPageSectionTableV2":r=fe.ControlType.Section;break;case"ObjectPageSubSectionV2":r=fe.ControlType.SubSection;break;case"ObjectPageSubSectionFormV2":r=fe.ControlType.Group;break;case"ObjectPageSubSectionChartV2":r=fe.ControlType.SmartChart;break;case"ObjectPageSubSectionTableV2":r=fe.ControlType.SmartTable;break}r&&(dt(e,t,n),t.properties[n][fe.SchemaTag.controlType]=r)}a(BQ,"addFlexChangeForSection");function WQ(e,t,n,i,r){n==null||n.forEach(o=>{if(!o.Determining&&o.$Type===qo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Zg(o,r);if(!l)return;let p=o.Label||s,d=`ObjectPageHeaderAction<${ft(l)}>`;t.definitions[d]=JSON.parse(JSON.stringify(t.definitions.ObjectPageHeaderAction));let m=o.fullyQualifiedName.replace(`@${qo.UIAnnotationTerms.Identification}`,`/@${qo.UIAnnotationTerms.Identification}`);t.definitions[d][fe.SchemaTag.annotationPath]=`/${m}`,t.definitions[d][fe.SchemaTag.actionType]=fe.ActionType.Annotation,t.definitions[d].description=p,t.definitions[d][fe.SchemaTag.keys]=[{name:fe.SchemaKeyName.action,value:s}],u&&(t.definitions[d][fe.SchemaTag.target]=u),i.properties[l]={$ref:`${B}${d}`}}})}a(WQ,"addHeaderActionCallBackV2");function GQ(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===qo.UIAnnotationTypes.DataFieldForAction){let o=va(r).split("::").splice(1).join("::"),s=Ei(r,e),l=ft(`${fe.DefinitionName.ObjectPageFooterAction}<${o}>`),u=r.fullyQualifiedName.replace(`@${qo.UIAnnotationTerms.Identification}`,`/@${qo.UIAnnotationTerms.Identification}`);t.definitions[l]={...JSON.parse(JSON.stringify(t.definitions[fe.DefinitionName.ObjectPageFooterAction])),description:s,annotationPath:`/${u}`},n.properties[o]={$ref:`${B}${l}`}}})}a(GQ,"addFooterActionCallBackV2");function HQ(e,t,n,i,r,o,s,l){let u,p;if(o.ID&&o.Label?u=o.ID+o.Label.replace(/\s+/g,""):o.ID?u=o.ID:o.Label&&(u=o.Label.replace(/\s+/g,"")),u?p=`${fe.DefinitionName.CustomColumns}<${n}><${s}><${u}>`:p=`${fe.DefinitionName.CustomColumns}<${n}><${s}>`,e.definitions[p])return p;let d=`${fe.DefinitionName.CustomColumn}<${n}>`,m=JSON.parse(JSON.stringify(e.definitions.TableCustomColumn));e.definitions[d]=m;let T=[],b=r==null?void 0:r.entityTypes.find(C=>C.name===i),E=Cc(t[fe.ManifestSection.generic].pages,n,T);return Sl(e,b,E,t,l,p,d,o.ID),p}a(HQ,"ensureCustomColumnDefinitionExists");function Wy(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&BQ(e,t,"visible",n)}a(Wy,"addAppSchemaDefinition");function KQ(e,t,n){e.properties[t]={$ref:`${B}${n}`}}a(KQ,"addSectionReference");function fd(e,t,n,i){let r=ft(`${e}<${t}>`);i.definitions[r]=JSON.parse(JSON.stringify(i.definitions[e])),i.definitions[r].properties.columns.$ref=B+t,i.definitions[r].properties.toolBar.$ref=`${B}ObjectPageToolBar<${t}>`,i.definitions[r][fe.SchemaTag.annotationPath]=n.annotationPath,n.ID!==void 0&&(i.definitions[r].title=fe.FacetTitlePrefix+n.ID,i.definitions[r][fe.SchemaTag.keys]=[{name:"ID",value:n.ID}]),i.definitions[r].description=fe.DefinitionName.Table,i.definitions[r].properties.quickVariantSelection.$ref=`${B}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=`${B}QuickVariant<${t}>`,qa(n.entityType,i,`QuickVariant<${t}>`)}a(fd,"addTableDefinition");function XQ(e,t,n,i,r,o){if(i.base!==fe.FacetBase.LineItem||!t)return;let s=t.split("::")[0],l=`${o}<${t}>`;n.definitions[l]=ha(n,i,t);let u=n.definitions[l];Wy(n,u,o,"ObjectPageSectionTableV2"),u.properties.table=JSON.parse(JSON.stringify(n.definitions.ObjectPageSectionTableV2.properties[fe.PropertyName.table])),u.properties.table.anyOf=[{$ref:`${B}ObjectPageResponsiveTableWithMultiSelect<${t}>`},{$ref:`${B}ObjectPageResponsiveTableWithInlineDelete<${t}>`},{$ref:`${B}ObjectPageAnalyticalTable<${t}>`},{$ref:`${B}ObjectPageGridTable<${t}>`},{$ref:`${B}ObjectPageTreeTable<${t}>`}],u[fe.SchemaTag.annotationPath]=i.annotationPath,ma(i,u,t),fd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),fd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),fd("ObjectPageGridTable",t,i,n),fd("ObjectPageTreeTable",t,i,n),fd("ObjectPageAnalyticalTable",t,i,n);let p,d=_F(i.entityType,e.serviceAVT);d&&(p=HQ(n,e.manifest,d.name,i.entityType.name,e.serviceAVT,i,t,e.fragments));for(let m in r)r[m].base===fe.FacetBase.LineItem&&m.includes(s)&&Al(n,r[m].target,r[m].entityType,m,p)}a(XQ,"handleLineItem");function JQ(e,t,n,i,r){e.definitions[t]=ha(e,n,i);let o=e.definitions[t];Wy(e,o,r,"ObjectPageSubSectionV2"),o.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},o.properties.subsections[fe.SchemaTag.isViewNode]=!0}a(JQ,"handleSubSection");function YQ(e,t,n,i,r){e.definitions[t]=ha(e,n,i);let o=e.definitions[t];Wy(e,o,r,"ObjectPageSectionChartV2")}a(YQ,"handleSectionChart");function QQ(e,t,n,i,r){e.definitions[t]=ha(e,n,i);let o=e.definitions[t];return Wy(e,o,r,"ObjectPageSectionFormV2"),o[fe.SchemaTag.annotationPath]=n.annotationPath,o[fe.SchemaTag.isViewNode]=!0,o}a(QQ,"handleFormSection");function zQ(e,t){let n=new Map([[fe.FacetBase.CollectionFacet,"ObjectPageSectionV2"],[fe.FacetBase.LineItem,"ObjectPageSectionTableV2"],[fe.FacetBase.Chart,"ObjectPageSectionChartV2"],[fe.FacetBase.Address,"ObjectPageSectionAddressV2"],[fe.FacetBase.Contact,"ObjectPageSectionContactV2"],[fe.FacetBase.Form,"ObjectPageSectionFormV2"],[fe.FacetBase.Identification,"ObjectPageSectionFormV2"]]),i=new Map([[fe.FacetBase.CollectionFacet,"ObjectPageSubSectionV2"],[fe.FacetBase.LineItem,"ObjectPageSubSectionTableV2"],[fe.FacetBase.Chart,"ObjectPageSubSectionChartV2"],[fe.FacetBase.Address,"ObjectPageSubSectionAddressV2"],[fe.FacetBase.Contact,"ObjectPageSubSectionContactV2"],[fe.FacetBase.Form,"ObjectPageSubSectionFormV2"],[fe.FacetBase.Identification,"ObjectPageSubSectionFormV2"]]);return t?i.get(e):n.get(e)}a(zQ,"getSectionType");function qQ(e,t,n){let i=t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${qo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}a(qQ,"getReferenceKey");function Kw(e,t,n,i,r,o=!1){let s=t[n],l=zQ(s.base,o),u=qQ(s,n,l),p=`${l}<${u}>`;switch(KQ(i,u,p),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":{o=!0,JQ(r,p,s,n,l);let d=r.definitions[p].properties.subsections;for(let m in s.facets)Kw(e,s.facets,m,d,r,o);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{XQ(e,n,r,s,t,l),Il(r,s.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{YQ(r,p,s,n,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let d=QQ(r,p,s,n,l);qg(fe.SectionType.Section,s,d,r,fe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{su(s,n,i,r,fe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{su(s,n,i,r,fe.SectionType.Section,fe.SectionType.SubSection,"V2");break}default:i.properties[n]=ha(r,s,n)}}a(Kw,"addSection");function Xw(e,t,n){var s,l,u,p;let i=t.definitions[fe.DefinitionName.Sections];if(i[fe.SchemaTag.isViewNode]=!0,(s=e.entitySet)!=null&&s.entityType&&(i[fe.SchemaTag.annotationPath]=`/${e.entitySet.entityType.fullyQualifiedName}/@${qo.UIAnnotationTerms.Facets}`),!n)return;let r=Rg((l=e.entitySet)==null?void 0:l.entityType,e.serviceAVT,fe.FioriElementsVersion.v2,e.logger);if(!r||Object.keys(r).length===0)return;for(let d in n){let m=n[d];if((p=(u=e.entitySet)==null?void 0:u.name)!=null&&p.includes(m.entitySet))for(let T in r)Kw(e,r,T,i,t);else Xw(e,t,m.pages)}let o=t.definitions.CustomSections;for(let d in o.properties)i.properties[d]=o.properties[d]}a(Xw,"addSections");function ZQ(e,t,n,i){nm(e,n),tm(e,n,t,i,WQ,!0)}a(ZQ,"addHeader");function ez(e,t,n,i){let r=Lg(t,n,i,void 0,!0);r&&om(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}a(ez,"addRelatedFacetKeysType");function ad(e,t){var s;Qt();let n=JSON.parse(JSON.stringify(t)),i={};for(let l in n.definitions.CustomSections.properties)i[l]=n.definitions.CustomSections.properties[l];n.properties[fe.PropertyName.sections]={$ref:B+"Sections"};let r=(s=e.entitySet)==null?void 0:s.entityType;e.entityType=r;let o=e.manifest[fe.ManifestSection.generic].pages;return o?(ZQ(n,e.entitySet,r,e.serviceAVT),n.definitions[fe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Xw(e,n,o),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[fe.SchemaTag.isViewNode]=!0):delete n.properties[fe.PropertyName.sections]),em(n,e,fe.FioriElementsVersion.v2,GQ,o),delete n.definitions.GenericSections,delete n.definitions.GenericSubSections,delete n.definitions.ObjectPageSectionTableV2,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,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,_o(n,UQ),n):(oe(e.logger,{severity:fe.LogSeverity.Error,message:ee.t("NOPAGES",{appId:e.manifest["sap.app"].id}),location:{path:fe.MANIFESTPATH,range:[fe.ManifestSection.generic]}}),n)}a(ad,"generateObjectPageSchemaV2");var wi=te(se());var tz=["filterBar","table","footer"];function iP(e,t,n,i){qa(e,n,"QuickVariant"),DF(n,"QuickVariantX",t),wF(i,n,"QuickVariantX")}a(iP,"addEnumForVariantPaths");function sd(e,t){var m,T,b,E,C,R,L;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=B+uc,n.properties.table.anyOf[1].$ref=B+pc,n.properties.table.anyOf[2].$ref=B+Bg,n.properties.table.anyOf[3].$ref=B+Wg,n.properties.table.anyOf[4].$ref=B+Gg;let i=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithMultiSelect)),r=JSON.parse(JSON.stringify(t.definitions.ResponsiveTableWithInlineDelete)),o=JSON.parse(JSON.stringify(t.definitions.TreeTable)),s=JSON.parse(JSON.stringify(t.definitions.AnalyticalTable)),l=JSON.parse(JSON.stringify(t.definitions.GridTable)),u={$ref:B+wi.DefinitionName.LineItems};i.properties.columns=u,r.properties.columns=u,o.properties.columns=u,s.properties.columns=u,l.properties.columns=u;let p=B+wi.DefinitionName.ToolBarLR;n.definitions[uc]=i,n.definitions[pc]=r,n.definitions[Bg]=o,n.definitions[Wg]=s,n.definitions[Gg]=l,YT.forEach(F=>{n.definitions[F].properties.toolBar.$ref=p});let d=(m=e.entitySet)==null?void 0:m.entityType;if(!d)(T=e.entitySet)!=null&&T.name&&oe(e.logger,{severity:wi.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{entitySetName:(b=e.entitySet)==null?void 0:b.name})});else{xl(n);let F=(C=(E=d==null?void 0:d.annotations)==null?void 0:E.UI)==null?void 0:C.LineItem;F&&YT.forEach(Ce=>{n.definitions[Ce][wi.SchemaTag.annotationPath]=eo(d==null?void 0:d.fullyQualifiedName,F.term,F.qualifier)}),Al(n,F,d);let U=(L=(R=d==null?void 0:d.annotations)==null?void 0:R.UI)==null?void 0:L.SelectionFields;Xg(n,U,d),Il(n,d),n.definitions.MultiEdit.properties.ignoredFields.items.enum=[],OF(n.definitions.MultiEdit.properties.ignoredFields.items.enum,d);let J=[],re=Wl(e.manifest[wi.ManifestSection.generic].pages,J);if(!re)return oe(e.logger,{severity:wi.LogSeverity.Error,message:ee.t("NOLR"),location:{path:wi.MANIFESTPATH,range:[wi.ManifestSection.generic]}}),n;Sl(n,d,re,e.manifest,e.fragments),iP(d,e.entitySet,n,e.serviceAVT),MF(d,n,wi.DefinitionName.ListReportFilterBar),VF(d,n,wi.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 _o(n,tz),n}a(sd,"generateListReportSchemaV2");var Bt=te(se());var nz=["filterBar","keyPerformanceIndicators","chart","table","footer"];function iz(e,t){var u,p;let n=(p=(u=e==null?void 0:e.component)==null?void 0:u.settings)==null?void 0:p.qualifier,i=t[`SelectionPresentationVariant#${n}`],r=i!==void 0?i.PresentationVariant:void 0,o=r!==void 0?r.Visualizations:[],s,l;for(let d in o){let m=o[d];if(m.value.includes("@com.sap.vocabularies.UI.v1.LineItem")){let T=m.value.replace(Bt.UIVOCABULARYALPHADOT,"");s=t[T]}else if(m.value.includes("@com.sap.vocabularies.UI.v1.Chart")){let T=m.value.replace(Bt.UIVOCABULARYALPHADOT,"");l=t[T]}}return{lineItem:s,chart:l}}a(iz,"getVisualizations");function rz(e,t){let n=e.definitions[Bt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Bt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}a(rz,"addChart");function cd(e,t){var l,u,p,d,m;let n=JSON.parse(JSON.stringify(t));n.properties[Bt.PropertyName.table].anyOf[0].$ref=B+"ALPResponsiveTable<LineItems>";let i=JSON.parse(JSON.stringify(n.definitions.ALPResponsiveTable));i.properties.columns.$ref=`${B}${Bt.DefinitionName.LineItems}`,i.properties.toolBar.$ref=`${B}${Bt.DefinitionName.ToolBarLR}`,n.definitions["ALPResponsiveTable<LineItems>"]=i,n.properties[Bt.PropertyName.table].anyOf[1].$ref=`${B}ALPGridTable<LineItems>`;let r=JSON.parse(JSON.stringify(n.definitions.ALPGridTable));r.properties.columns.$ref=`${B}${Bt.DefinitionName.LineItems}`,r.properties.toolBar.$ref=`${B}${Bt.DefinitionName.ToolBarLR}`,n.definitions["ALPGridTable<LineItems>"]=r,n.properties[Bt.PropertyName.table].anyOf[2].$ref=`${B}ALPAnalyticalTable<LineItems>`;let o=JSON.parse(JSON.stringify(n.definitions.ALPAnalyticalTable));o.properties.columns.$ref=`${B}${Bt.DefinitionName.LineItems}`,o.properties.toolBar.$ref=`${B}${Bt.DefinitionName.ToolBarLR}`,n.definitions["ALPAnalyticalTable<LineItems>"]=o,IF(n.definitions.TableColumnExtensionTypeV2.enum,[Bt.v2.TableColumnExtensionTypeV2.TreeTableColumnsExtension]);let s=(l=e.entitySet)==null?void 0:l.entityType;if(!s)oe(e.logger,{severity:Bt.LogSeverity.Error,message:ee.t("NOENTITYTYPE4SET",{entitySetName:(u=e.entitySet)==null?void 0:u.name})});else{xl(n);let T=[],b=Kl(e.manifest[Bt.ManifestSection.generic].pages,T,e.logger),E=(p=s==null?void 0:s.annotations)==null?void 0:p.UI,{lineItem:C,chart:R}=iz(b,E),L=C||E.LineItem,F=R||E.Chart;Al(n,L,s),F&&rz(n,F);let U=(m=(d=s==null?void 0:s.annotations)==null?void 0:d.UI)==null?void 0:m.SelectionFields;if(Xg(n,U,s),Il(n,s),!b)return oe(e.logger,{severity:Bt.LogSeverity.Error,message:ee.t("NOLR"),location:{path:Bt.MANIFESTPATH,range:[Bt.ManifestSection.generic]}}),n;Sl(n,s,b,e.manifest,e.fragments),iP(s,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 _o(n,nz),n}a(cd,"generateAnalyticalListReportSchemaV2");function oz(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]})}a(oz,"getCardDefinitionNames");function az(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||{},o=[];o=o.concat(Object.keys(r).filter(u=>i.includes(r[u].dataSource)));let s=e.definitions;s.CardModel={type:"string"},Ta(o,s.CardModel);let l=oz(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=B+"CardModel"}}a(az,"addModelsEnum");function Jw(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},az(n,t),n}a(Jw,"generateOverviewPageSchemaV2");var Us=te(se());function rP(e,t,n,i,r,o){Qt();let s=Ro(e,t),l={templateType:o,fioriElementsVersion:Us.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=od(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:Us.LogSeverity.Error,message:ee.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}a(rP,"prepareGenerationV2");function oP(e,t,n,i,r,o){let s=rP(n,o,i,r,t,Us.TemplateType.ListReportObjectPageV2);return ad(s,e)}a(oP,"generateObjectPageInterfaceV2");function aP(e,t,n,i,r,o){let s=rP(n,o,i,r,t,Us.TemplateType.ListReportObjectPageV2);return sd(s,e)}a(aP,"generateListReportInterfaceV2");function sP(e,t,n,i,r,o){let s=rP(n,o,i,r,t,Us.TemplateType.AnalyticalListPageV2);return cd(s,e)}a(sP,"generateAnalyticalListPageInterfaceV2");function ld(e,t){return Jw(e,t)}a(ld,"generateOVPInterfaceV2");var at=te(se());var ud=a(e=>({flexChanges:[],manifest:{[at.ManifestSection.generic]:{pages:{}}},fragments:e||[]}),"getDefaultExportResult");function Yw(e,t,n){if(e&&t==="custom")for(let i in e)e[i].className===at.SAPUI5_FRAGMENT_CLASS?e[i]=n.createInstance(at.PageTypeV2.ObjectPage,"ObjectPageCustomSectionFragment",e[i]):e[i]=n.createInstance(at.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",e[i])}a(Yw,"getClassesForSingleSection");function Qw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Yw(n,i,t),Qw(n,t)}}a(Qw,"getSubsectionClasses");function sz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Yw(i,r,n),Qw(i,n)}a(sz,"getExportClassesForSections");function cz(e,t){let n=e.page.config,i=e.page.entitySet,r=ud(e.fragments),o=new Ni,s=o.createPageInstance(at.PageTypeV2.ListReport,n),l=sc(s),u=`${e.appId}::${l.id}::${i}--`,p=[],d=Wl(e.manifest[at.ManifestSection.generic].pages,p);if(!d){oe(e.logger,{severity:at.LogSeverity.Error,message:ee.t("NOLR"),location:{path:at.MANIFESTPATH,range:[at.ManifestSection.generic]}});return}if(!d.component){oe(e.logger,{severity:at.LogSeverity.Error,message:ee.t("COMPONENTNOTDEFINED",{pageName:at.PageTypeV2.ListReport}),location:{path:at.MANIFESTPATH}});return}if(d.component.settings||(d.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),n&&Object.keys(n).length!==0){let m={v2Page:d,exportResults:r,appId:e.appId,baseId:u,appSchema:e.jsonSchema,ui5Version:t,factory:o,pageKeys:p,pageType:at.PageTypeV2.ListReport,logger:e.logger};Ts(m,s,[],[],e.jsonSchema)}return r}a(cz,"exportListReportPage");function lz(e,t){let n=e.page.config,i=e.page.entitySet,r=ud(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let o=new Ni,s=o.createPageInstance(at.PageTypeV2.AnalyticalListPage,n),l=sc(s),u=`${e.appId}::${l.id}::${i}--`,p=[],d=Kl(e.manifest[at.ManifestSection.generic].pages,p,e.logger);if(d){if(d.component.settings||(d.component.settings={}),r.manifest=JSON.parse(JSON.stringify(e.manifest)),n&&Object.keys(n).length!==0){let m={v2Page:d,exportResults:r,appId:e.appId,baseId:u,appSchema:e.jsonSchema,ui5Version:t,factory:o,pageKeys:p,pageType:at.PageTypeV2.AnalyticalListPage,logger:e.logger};Ts(m,s,[],[],e.jsonSchema)}return r}}a(lz,"exportAnalyticalListPage");function fz(e,t){let n=e.page.config,i=e.page.entitySet,r=ud(e.fragments),o=new Ni,s=o.createPageInstance(at.PageTypeV2.ObjectPage,n);if(r.manifest=JSON.parse(JSON.stringify(e.manifest)),n){let l=sc(s),u=`${e.appId}::${l.id}::${i}--`,p=[],d=Cc(e.manifest[at.ManifestSection.generic].pages,i,p);if(!d)return r;if(n.sections&&sz(n,s,o),Object.keys(n).length!==0){let m={v2Page:d,exportResults:r,appId:e.appId,baseId:u,appSchema:e.jsonSchema,ui5Version:t,factory:o,pageKeys:p,pageType:at.PageTypeV2.ObjectPage,logger:e.logger};Ts(m,s,[],[],e.jsonSchema)}}return r}a(fz,"exportObjectPage");var uz=a(e=>{let t=ud();t.manifest=JSON.parse(JSON.stringify(e.manifest));let n=new Ni,i=n.createPageInstance(at.PageTypeV2.OverviewPage,e.page.config);return e.page.config&&Object.keys(e.page.config).length!==0&&Ju(i,t,e.jsonSchema,e.jsonSchema,n,[]),t},"exportOverviewPage"),pz=a((e,t,n)=>{var s;let i=ud();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new fm,e);r.settings=Object.assign(new is,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(),d=Bn(i.manifest,p);e.settings&&e.settings[l]!==void 0?d[l]=e.settings[l]:(delete d[l],Qa(i.manifest,p))}}let o=(s=i.manifest[at.ManifestSection.generic])==null?void 0:s.pages;return o&&e.pages&&nE(e.home,e.pages,Object.values(o)[0]),i},"exportApplicationV2");function zw(e,t){if(e[at.SchemaType.ListReport])return cz(e[at.SchemaType.ListReport],t);if(e[at.SchemaType.ObjectPage])return fz(e[at.SchemaType.ObjectPage],t);if(e[at.SchemaType.OverviewPage])return uz(e[at.SchemaType.OverviewPage]);if(e[at.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[at.SchemaType.Application];return pz(n,i,r)}else if(e[at.SchemaType.AnalyticalListPage])return lz(e[at.SchemaType.AnalyticalListPage],t)}a(zw,"exportPageV2");var Cf=te(se()),Zw=require("@sap-ux/vocabularies-types/vocabularies/UI");function qw(e,t,n=!0){n?(e.dependencies||(e.dependencies={}),e.dependencies.libs||(e.dependencies.libs={}),e.dependencies.libs[t]===void 0&&(e.dependencies.libs[t]={})):e.dependencies&&e.dependencies.libs&&e.dependencies.libs[t]!==void 0&&delete e.dependencies.libs[t]}a(qw,"updateDependencyLib");function Gy(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}a(Gy,"extractLastIdPart");function eM(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:Cf.LogSeverity.Error,message:ee.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let o=r.lastIndexOf(Cf.PropertyName.sections),s=o>-1?Gy(r[o+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Zw.UIAnnotationTerms.LineItem}`,u=n.eventHandler===!0?!0:void 0,p={target:t.pageNameArray[0],targetEntity:l,position:n.position,name:e,...n.header&&{header:n.header},...n.width&&{width:n.width},...n.availability&&{availability:n.availability},...u&&{eventHandler:u}},d={customExtension:Cf.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return cP(d),!0}a(eM,"createNewCustomColumn");var Va=te(se());var nM=a((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),tM=a((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function dz(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}a(dz,"initializeRouting");function gz(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}a(gz,"setTargetOptions");function mz(e,t,n){let i="";return e.forEach((r,o)=>{let s="";t&&t.pageType!==Va.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${o?o+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}a(mz,"calculateQueryPattern");function iM(e,t,n,i,r){if(r){e.push(...r.split("/")),e.shift();return}e.unshift(t);let o;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,o=n[s])}if(o){iM(e,t,n,s);return}}}a(iM,"fillNavigationParts");function hz(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("({")),o=i.substring(i.indexOf("({")+2,i.indexOf("})"));t[r]=o}),t}a(hz,"fillParentKeys");function yz(e,t,n,i,r){for(let o in e.navigation){let s=e.navigation[o],l=t[s.route];if(gz(n,o,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=[];iM(u,o,t,r,l==null?void 0:l.contextPath);let p=hz(e.routePattern),d=mz(u,l,p);i.routes.push(nM(d,s.route,s.route))}}}a(yz,"handlePageNavigation");function vz(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)}}a(vz,"removeDeletedPages");function Tz(e,t){var n,i,r,o;e.contextPath?(t.options||(t.options=tM({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=tM({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(o=(r=t.options)==null?void 0:r.settings)==null||delete o.entitySet}a(Tz,"transferEntitySetandContextPath");function Ez(e,t){var i,r,o,s,l;let n=(s=(o=(r=(i=t==null?void 0:t.options)==null?void 0:i.settings)==null?void 0:r.content)==null?void 0:o.body)==null?void 0:s.sections;if(e.pageType===Va.PageTypeV4.ObjectPage&&n&&typeof n=="object"){let u=e.config,d=(Array.isArray((l=u==null?void 0:u.sections)==null?void 0:l.custom)?u.sections.custom:[]).map(T=>T.id),m=Object.keys(n);if(d)for(let T of m)!d.includes(T)&&!("subSections"in n[T])&&delete n[T]}}a(Ez,"deleteRemovedCustomSections");function bz(e,t,n){let i=e.routes.find(r=>r.name===t);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}a(bz,"updateRouteLayout");function Az(e,t,n,i){return e.pageType&&![Va.PageTypeV4.CustomPage,Va.PageTypeV4.FPMCustomPage].includes(e.pageType)?t={...t,type:"Component",id:(t==null?void 0:t.id)||n,name:`sap.fe.templates.${i[n].pageType}`}:e.view&&t&&(t.viewName||t.viewId)?t={...t,viewId:e.view.id,viewName:e.view.name,path:e.view.path,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Va.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}a(Az,"fillTarget");function rM(e,t,n){var r,o;let i=dz(n[Va.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.name===e)&&i.routes.push(nM(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=Az(u,l,s,t),Tz(u,l),Ez(u,l),l&&!u.controlAggregation&&(delete l.contextPattern,delete l.controlAggregation),(o=(r=l==null?void 0:l.options)==null?void 0:r.settings)!=null&&o.navigation&&(l.options.settings.navigation={}),yz(u,t,l,i,s),bz(i,s,u),i.targets[s]=l}return vz(i,t),i}a(rM,"transformRoutingV4");var xi=te(se());var oM=[xi.FlexibleColumnLayoutAggregations.BeginColumnPages,xi.FlexibleColumnLayoutAggregations.MidColumnPages,xi.FlexibleColumnLayoutAggregations.EndColumnPages],aM=a((e,t,n,i=[],r=0)=>{var p;let o=e.routing.routes.find(d=>d.name===n);if(!o)return;typeof o.target=="string"&&(o.target=r<=2?[...i,o.target]:[o.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:oM[r]?s.controlAggregation=oM[r]:s.controlAggregation=xi.FlexibleColumnLayoutAggregations.EndColumnPages;let u=o.pattern.replace(":?query:","");if(u?s.contextPattern=u.startsWith("/")?u:`/${u}`:s.contextPattern="",l.navigation){r++;for(let d in l.navigation)aM(e,t,l.navigation[d].route,o.target,r)}},"applyFCLRouting"),Sz=a((e,t)=>{e.routing.config.routerClass=xi.v4.FIORI_FCL_ROUTER_CLASS,aM(e,t,t.home);let n={viewName:xi.FIORI_FCL_ROOT_VIEW_NAME,type:xi.ViewTypes.XML,async:!0,id:xi.FIORI_FCL_ROOT_ID};e.rootView=e.rootView?{...e.rootView,...n}:n,qw(e,xi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),xz=a(e=>{if(e.rootView&&e.rootView.viewName===xi.FIORI_FCL_ROOT_VIEW_NAME&&delete e.rootView,e.routing){e.routing.config&&e.routing.config.routerClass===xi.v4.FIORI_FCL_ROUTER_CLASS&&delete e.routing.config.routerClass;let t=e.routing.routes||[];for(let n of t)n.target&&Array.isArray(n.target)&&(n.target=n.name)}},"disableFcl"),sM=a((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?Sz(e,t):xz(e)},"updateFcl");var ae=te(se()),pd=require("@sap-ux/vocabularies-types/vocabularies/UI");var cM=te(ic()),lM=te(se());function Pz(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}a(Pz,"isExportValueEquals");function Iz(e,t){var s;let{element:n,schema:i,parent:r,contextPath:o}=e;if(delete n.attributes[t],((s=i.metadata)==null?void 0:s.type)===lM.MacrosPropertyType.Property&&Object.keys(n.attributes).length===0&&(r!=null&&r.element.elements)){let l=o[o.length-1];l&&r.element.elements.splice(l.index,1)}}a(Iz,"deleteProperty");function fM(e,t,n,i){var u,p;let{contextPath:r,fullSchema:o,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 d={name:i,type:"element"};return s.elements.push(d),Bc({fullSchema:o,schema:t,element:d,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},fM)}else Pz((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]&&(Iz(e,i),l=!0);return l}a(fM,"exportProperty");function uM(e,t,n,i,r,o){let s=pf(e.file,!1,o);if(s){let l=fy(s);if(Bc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},fM)){let p=(0,cM.js2xml)(s,{spaces:4}),d={dataSourceUri:e.file.dataSourceUri,fileContent:p};r==="view"?t.views=[d]:r==="fragment"&&t.fragments.push(d)}}}a(uM,"getExtensionExportResult");var pM=a((e,t)=>{let n={...t},{views:i,manifest:r,jsonSchema:o,page:s,logger:l}=e,u;return o&&Object.keys(o).length>0&&(u=Ss(i||[],s.name,r,l)),u&&uM(u,n,s.config,o,"view",l),n},"exportFPMCustomPageConfig"),dM=a((e,t,n)=>{let{appSchema:i,exportResults:r,fragments:o,pageNameArray:s,logger:l}=e,{manifest:u}=r,p,d="fragment";if(i&&Object.keys(i).length>0){let m=_c(u,s[0]);p=Dc(o,m,u,d,t)}if(p){let m=df(t),b={...i.definitions[m],definitions:i.definitions};uM(p,r,n,b,d,l)}},"exportXMLFragmentConfig");var gM={flexChanges:[],manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},fragments:[],views:[]},fP=a(e=>{let t=gM;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function Oz(e,t,n,i,r,o){let s=e.flex.controlId(t.baseId,n,i,e.flex.controlType,t.title),l=kg(r,e,t.ui5Version,o,s);t.exportResults.flexChanges.push(e.flex.createFlexChange(l,t.exportResults.manifest))}a(Oz,"exportFlexChange");function Cz(e,t,n){var s,l,u,p;let i=`@${pd.UIAnnotationTerms.LineItem}`,r=`@${pd.UIAnnotationTerms.LineItem}`,o=(s=t.appSchema.definitions[ae.DefinitionName.TableSPV])==null?void 0:s[ae.SchemaTag.annotationPath];if(e.length>1&&((l=t.config.table)!=null&&l.annotationPath)){let d=(u=t.appSchema.definitions[ae.DefinitionName.ALPTable])==null?void 0:u[ae.SchemaTag.annotationPath];i=r=d&&d.substr(d.lastIndexOf("@"))}else if((p=n.table)!=null&&p.annotationPath)i=r=`@${n.table.annotationPath}`;else if(e[0]===ae.PropertyName.table&&o){let d=o.split("/");i=r=d[d.length-1]}return{targetAnnotationEncoded:i,targetAnnotation:r}}a(Cz,"determineTargetAnnotationOfTable");function Nz(e,t,n,i,r){var o,s;if(e.length>1){let l=(o=t.appSchema.definitions[ae.DefinitionName.ALPChart])==null?void 0:o[ae.SchemaTag.annotationPath];n=i=l&&l.substr(l.lastIndexOf("@"))}else n=i=`@${(s=r.chart)==null?void 0:s.annotationPath}`;return{targetAnnotationEncoded:n,targetAnnotation:i}}a(Nz,"determineTargetAnnotationOfChart");function Rz(e,t,n,i){var o,s;let r=(o=e.appSchema.definitions.MultiTableModeV4)==null?void 0:o.properties[t[2]];if(r){if(t.length===3)n=i=r[ae.SchemaTag.annotationPath]&&r[ae.SchemaTag.annotationPath].substr(r[ae.SchemaTag.annotationPath].lastIndexOf("@"));else if(t.length>3){let l=(s=r.$ref)==null?void 0:s.split(B)[1],u=l&&e.appSchema.definitions[l],p=(u==null?void 0:u[ae.SchemaTag.annotationPath])&&u[ae.SchemaTag.annotationPath].substr(u[ae.SchemaTag.annotationPath].lastIndexOf("@"));n=i=u.entitySet?`/${u.entitySet}/${p}`:p}}return{targetAnnotation:n,targetAnnotationEncoded:i}}a(Rz,"determineTargetAnnotationOfViews");function Lz(e,t,n,i,r){return e[2].split(`@${ae.UIVOCABULARY}`)[1]?r&&r.indexOf(ae.FacetTitlePrefix)>-1?i=n=r.split(ae.FacetTitlePrefix)[1]:e[2]?i=n=e[2].split("@")[1]:n&&(i=n=n.replace(/::/g,"/")):(t=!0,n=e[2],i=n&&n.replace(/::/g,"/")),{custom:t,targetAnnotationEncoded:n,targetAnnotation:i}}a(Lz,"determineTargetAnnotationOfHeaderSections");function Fz(e,t,n,i){if(e[1]==="custom"&&e[2]!==e[e.length-1])t=!0,n=e[2],i=n&&n.replace(/::/g,"/");else{let r=Gy(e[1]);n=r&&r.replace(/\//g,"::"),i=n&&n.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:n,targetAnnotation:i}}a(Fz,"determineTargetAnnotationOfSections");function _z(e,t,n){let i,r,o=!1;return e[0]===ae.PropertyName.table&&e[1]!==ae.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=Cz(e,t,n):e[0]===ae.PropertyName.chart&&t.templateType===ae.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=Nz(e,t,r,i,n):e[0]===ae.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=Fz(e,o,r,i):e[1]===ae.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=Lz(e,o,r,i,t.title):e[1]===ae.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=Rz(t,e,i,r)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:o}}a(_z,"determineTargetAnnotation");function Dz(e){let t=0;for(let n=e.length-1;n>-1;n--){let i=e[n];if([ae.PropertyName.actions,ae.PropertyName.columns,ae.PropertyName.views,ae.PropertyName.visualFilters,ae.PropertyName.selectionFields].includes(ae.PropertyName[i])){t=n+1;break}}return t>0?e[t].replace(/\//gi,"??"):void 0}a(Dz,"determineKeyForSyncRule");function wz(e){e.exportHandler&&typeof e.exportHandler=="function"?e.exportHandler(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):e.manifestSection[e.manifestKey]||(e.manifestSection[e.manifestKey]={})}a(wz,"createNewObjectInManifest");function mM(e,t,n){var i,r;t.type!=="array"&&((i=n==null?void 0:n.targetDefinition)==null?void 0:i.type)==="object"&&((r=n==null?void 0:n.targetDefinition)!=null&&r.properties)?t.type!=="array"&&e.manifestSection[e.manifestKey]===void 0&&wz(e):e.exportHandler!==!1&&(e.exportHandler&&typeof e.exportHandler=="function"?e.exportHandler(e.manifestSection,e.configObject,e.configPropertyKey,e.manifestKey,e.syncRuleKey):Array.isArray(e.configObject[e.configPropertyKey])&&!e.configObject[e.configPropertyKey].length?delete e.manifestSection[e.manifestKey]:e.manifestSection[e.manifestKey]=e.configObject[e.configPropertyKey])}a(mM,"transferPropertyToManifest");function Mz(e,t,n,i,r,o,s){let l=[...e],u=e.indexOf("subsections");for(;u>-1;)e.splice(u-1,2),u=e.indexOf("subsections");let{targetAnnotationEncoded:p,targetAnnotation:d,custom:m}=_z(e,n,r),T=Dz(e),b=t.manifest.path(n.pageNameArray,n.exportResults.manifest,p,T,d,r,l),E=Lo(n.exportResults.manifest,b,d,m?void 0:p);if(E){let C=t.manifest.key||i;if(r[i]!==void 0){let R={exportHandler:t.manifest.export,manifestSection:E,configObject:r,configPropertyKey:i,manifestKey:C,syncRuleKey:T};mM(R,o,s)}else if(t.manifest.delete){let R=t.manifest.delete;typeof R=="function"&&R(E,r,i,C,T,n.config)}else E[C]!==void 0&&delete E[C]}Qa(n.exportResults.manifest,b,d,p)}a(Mz,"exportManifestChange");function Vz(e,t,n,i,r,o,s){let l=zn(i,n);if(l)if(l.xml){let u=l.xml(i);dM(e,u,s.configObject)}else l.flex?Oz(l,e,r,t,i,n):l.manifest&&Mz(r,l,e,n,i,o,s)}a(Vz,"evaluateExportRule");function kz(e,t,n,i,r){let o=[],s=!1;e.propertyDefinition.$ref&&t?o.push(t.configObject):e.propertyDefinition.anyOf?o.push(n):e.propertyDefinition.type==="array"?(o=n,s=!0):o.push(n),e.index=0;for(let l of o){let u=[];e.breadcrumbs[0]===ae.PropertyName.sections&&e.key==="custom"&&s&&u.push(l.id),e.transferParameters.title=t==null?void 0:t.title,uP(e.transferParameters,l,[...i,...u],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}}a(kz,"transferSubObject");function jz(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=mt(e.pageNameArray)+"/views",o=Lo(e.exportResults.manifest,r);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{secondary:[{annotationPath:t[n].annotationPath}]}],i=!0):o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:t[n].annotationPath}],i=!0),{newElementCreated:i,stopProcessing:!1}}a(jz,"createALPTableView");function $z(e,t,n){var s;let i=!1;if(!t[n]||Object.keys(t[n]).length===0)return{newElementCreated:i,stopProcessing:!0};let r=mt(e.pageNameArray)+"/views",o=Lo(e.exportResults.manifest,r);return!o.paths||Object.keys(o.paths).length===0?(o.paths=[{primary:[{annotationPath:t[n].annotationPath}]}],i=!0):o.paths[0].primary||(o.paths[0].primary=[{annotationPath:t[n].annotationPath}],i=!0),o.paths[0].secondary||(o.paths[0].secondary=[{annotationPath:((s=t==null?void 0:t.table)==null?void 0:s.annotationPath)||pd.UIAnnotationTerms.LineItem}]),{newElementCreated:i,stopProcessing:!1}}a($z,"createALPChartView");function Uz(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=mt(e.pageNameArray),r=Lo(e.exportResults.manifest,i),o=`@${pd.UIAnnotationTerms.SelectionFields}`;if(r.controlConfiguration?r.controlConfiguration[o]?r.controlConfiguration[o].filterFields||(r.controlConfiguration[o].filterFields={},n=!0):(r.controlConfiguration[o]={filterFields:{}},n=!0):(r.controlConfiguration={[o]:{filterFields:{}}},n=!0),n){let s=r.controlConfiguration[o].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}a(Uz,"createVisualFilters");function Bz(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,o=mt(t.pageNameArray)+"/views",s=Lo(t.exportResults.manifest,o),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}a(Bz,"createLRTableView");function Wz(e,t,n,i,r,o,s=!1){let l=!1,u=!1;if(t&&!s)if(t.startsWith(ae.DefinitionName.CustomColumn))l=eM(n,o,i[n],o.logger,r);else{if(t===ae.DefinitionName.ALPChartView&&n===ae.PropertyName.chart&&i)return $z(o,i,n);if(t===ae.DefinitionName.ALPTableView&&n===ae.PropertyName.table&&i)return jz(o,i,n);n&&(t.startsWith(ae.DefinitionName.LRTableView)||t.startsWith(ae.DefinitionName.LRChartView))?l=Bz(e,o,n,i[n]):n&&t.startsWith(ae.DefinitionName.VisualFilters)&&(l=Uz(o,i[n]))}return{newElementCreated:l,stopProcessing:u}}a(Wz,"createNewElement");function Gz(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}a(Gz,"isDefinitionTraversable");function lP(e,t,n,i=!1){var d;let r=e.configObject[e.key],o=Mg(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}=Wz(e.index,(d=e.propertyDefinition.$ref)==null?void 0:d.split(B)[1],e.key,e.configObject,e.breadcrumbs,e.transferParameters,i),p=o?[...t,o]:[...t,e.key];if(l||Vz(e.transferParameters,e.breadcrumbs,e.key,e.configObject,p,e.propertyDefinition,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||Gz(e.propertyDefinition)&&s.configObject)&&!u){let m=o?[...n,o]:n;kz(e,s,r,p,m)}}a(lP,"transferSortedListEntry");function Hz(e,t,n,i,r){let o=!1;if(t){let s=Object.entries(e.configObject);if(!s||s.length<1)return o;s.sort((l,u)=>l[1].index-u[1].index),s.forEach(l=>{n.properties[l[0]]?(e.key=l[0],e.propertyDefinition=n.properties[l[0]],lP(e,i,r),o=!0):typeof l[1]=="object"&&t.forEach(u=>{u.$ref&&(e.key=l[0],e.propertyDefinition=u,lP(e,i,r),o=!0)}),e.index++})}return o}a(Hz,"transferConfigEntriesWithAnyOfDefinitions");function Kz(e,t,n,i){let r=GT(e.appSchema,t,i);for(let o of r)n.some(s=>s[0]===o)||n.push([o,t])}a(Kz,"mergeEntriesForInsert");function uP(e,t,n,i,r,o){var T;if(!(o!=null&&o.properties))return;let s=0,l={transferParameters:e,breadcrumbs:r,key:void 0,index:s,configObject:t,propertyDefinition:void 0},u=o.additionalProperties,p=u==null?void 0:u.anyOf,d=Hz(l,p,o,n,i),m=o.properties&&Object.entries(o.properties);m&&((T=m[0])!=null&&T[1][ae.SchemaTag.propertyIndex]&&(m=Object.entries(o.properties).sort((b,E)=>b[1][ae.SchemaTag.propertyIndex]-E[1][ae.SchemaTag.propertyIndex])),u!=null&&u.$ref&&Kz(e,u,m,t),s=0,m.forEach(b=>{l.key=b[0],l.propertyDefinition=b[1],l.index=s,lP(l,n,i,d),b[1].$ref&&s++}))}a(uP,"transferManifestEntriesAndFlexChange");function hM(e,t,n){if(t==="custom"&&Array.isArray(e.sections[t])){let i=e.sections.custom;for(let r=0;r<i.length;r++)i[r]=n.createInstance(ae.PageTypeV2.ObjectPage,"ObjectPageCustomSectionView",i[r],i[r].className)}}a(hM,"getClassesForSingleSection");function yM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],hM(n,i,t),yM(n,t)}}a(yM,"getSubsectionClasses");function Xz(e,t,n){let i;for(let r in e.sections)i=t.sections[r],hM(e,r,n),yM(i,n)}a(Xz,"getExportClassesForSections");var Jz=a((e,t)=>{var p;let n=fP(e.manifest),i=new Ma,r=i.createPageInstance(ae.PageTypeV2.ObjectPage,e.page.config),o=sc(r),s=e.page.name,l=`${e.appId}::${o.id}::${s}--`;(p=e.page.config)!=null&&p[ae.PropertyName.sections]&&Xz(e.page.config,r,i);let u={exportResults:n,appId:e.appId,appRootPath:e.appRootPath,baseId:l,appSchema:e.jsonSchema,fragments:e.fragments,config:r,ui5Version:t,factory:i,pageNameArray:[s],pageType:ae.PageTypeV4.ObjectPage,title:void 0,templateType:ae.TemplateType.ListReportObjectPageV4};return uP(u,r,[],[],[],e.jsonSchema),n},"exportObjectPage"),Yz=a((e,t,n,i,r,o)=>{var R,L;let s=fP(e.manifest),l=e.jsonSchema,u=(R=n.table)!=null&&R[ae.PropertyName.annotationPath]?ae.DefinitionName.ALPTableView:ae.DefinitionName.Table,p=n.table=t.createInstance(i,u,n.table),d=ae.DefinitionName.LineItems;l.definitions[ae.DefinitionName.TableSPV]&&(d=l.definitions[ae.DefinitionName.TableSPV].properties.columns.$ref.split(B)[1]);let m=l.definitions[`${ae.DefinitionName.Actions}<${d}>`];if((L=p.toolBar)!=null&&L.actions&&m)for(let F in m.properties)p.toolBar.actions[F]=t.createInstance(i,ae.DefinitionName.ToolBarAction,p.toolBar.actions[F]);let T=sc(n),b=e.page.name,E=`${e.appId}::${T.id}::${b}--`,C={exportResults:s,appId:e.appId,appRootPath:e.appRootPath,baseId:E,appSchema:l,config:n,ui5Version:r,factory:t,pageNameArray:[b],pageType:ae.PageTypeV4.ListReport,title:void 0,logger:e.logger,templateType:o};return uP(C,n,[],[],[],l),s},"exportListPage"),vM=a((e,t,n)=>{let i=new Ma,r=i.createPageInstance(ae.PageTypeV2.ListReport,e.page.config);return Yz(e,i,r,ae.PageTypeV4.ListReport,t,n)},"exportListReportPage"),Qz=a((e,t)=>vM(e,t,ae.TemplateType.AnalyticalListPageV4),"exportAnalyticalListPage"),zz=a((e,t,n,i,r,o)=>{let s=Lo(r,t,void 0,void 0,!0),l=!0;s===void 0&&(l=!1,s=kT());let u={exportHandler:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=o.definitions.AppSettings.properties[n];mM(u,p,{}),!l&&Object.keys(s).length&&qL(r,t,s)},"applyExportRule"),qz=a((e,t,n)=>{var o;let i=fP(t),r=Object.assign(new py,e);r.settings=Object.assign(new gf,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)zz(l.manifest.export,u,s,e,i.manifest,n);else{let p=Lo(i.manifest,u);((o=e.settings)==null?void 0:o[s])!==void 0?p[s]=e.settings[s]:(delete p[s],Qa(i.manifest,u))}}}return i.manifest[ae.ManifestSection.ui5].routing=rM(e.home,e.pages,i.manifest),sM(i.manifest[ae.ManifestSection.ui5],e),i},"exportApplicationV4"),TM=a((e,t)=>{if(e[ae.SchemaType.ListReport])return vM(e[ae.SchemaType.ListReport],t,ae.TemplateType.ListReportObjectPageV4);if(e[ae.SchemaType.ObjectPage])return Jz(e[ae.SchemaType.ObjectPage],t);if(e[ae.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ae.SchemaType.Application];return qz(n,i,r)}else{if(e[ae.SchemaType.AnalyticalListPage])return Qz(e[ae.SchemaType.AnalyticalListPage],t);if(e[ae.SchemaType.FPMCustomPage])return pM(e[ae.SchemaType.FPMCustomPage],gM)}},"exportPageV4");var bn=require("@sap-ux/fe-fpm-writer");var Zz=new Map([[Se.CustomExtensionType.CustomPage,bn.generateCustomPage],[Se.CustomExtensionType.CustomColumn,bn.generateCustomColumn],[Se.CustomExtensionType.CustomSection,bn.generateCustomSection],[Se.CustomExtensionType.ObjectPage,bn.generateObjectPage],[Se.CustomExtensionType.CustomAction,bn.generateCustomAction],[Se.CustomExtensionType.CustomView,bn.generateCustomView],[Se.CustomExtensionType.ControllerExtension,bn.generateControllerExtension],[Se.CustomExtensionType.CustomSubSection,bn.generateCustomSubSection],[Se.CustomExtensionType.CustomFilterField,bn.generateCustomFilter],[Se.CustomExtensionType.CustomHeaderSection,bn.generateCustomHeaderSection]]);function e6(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];if(n[Se.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[Se.SchemaType.ListReport];t=aP(i,r,o,s,l,u)}else if(n[Se.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[Se.SchemaType.ObjectPage];t=oP(i,r,o,s,l,u)}else if(n[Se.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[Se.SchemaType.OverviewPage];t=ld(i,r)}else if(n[Se.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,fragments:l,logger:u}=n[Se.SchemaType.AnalyticalListPage];t=sP(i,r,o,s,l,u)}}else if(e[Se.FioriElementsVersion.v4]){let n=e[Se.FioriElementsVersion.v4];if(n[Se.SchemaType.ListReport]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l,contextPath:u}=n[Se.SchemaType.ListReport];t=uy(Se.TemplateType.ListReportObjectPageV4,i,r,o,s,l,u)}else if(n[Se.SchemaType.ObjectPage]){let{genericSchema:i,entitySet:r,annotations:o,manifest:s,logger:l,fragments:u,contextPath:p,genericMacrosSchema:d}=n[Se.SchemaType.ObjectPage];t=nS(i,r,o,s,l,u,p,d,e.featureToggles)}else if(n[Se.SchemaType.AnalyticalListPage]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l,contextPath:u}=n[Se.SchemaType.AnalyticalListPage];t=uy(Se.TemplateType.AnalyticalListPageV4,i,r,o,s,l,u)}else if(n[Se.SchemaType.FreestylePage]){let{genericSchema:i,entitySet:r,annotations:o,logger:s,manifest:l}=n[Se.SchemaType.FreestylePage];t=iS(Se.TemplateType.FreestylePageV4,i,o,l,r,s)}else if(n[Se.SchemaType.FPMCustomPage]){let{genericSchema:i,routingId:r,manifest:o,views:s,logger:l,annotations:u}=n[Se.SchemaType.FPMCustomPage];t=rS(i,r,o,s,u,e.featureToggles,l)}}return t}a(e6,"generateSchema");function t6(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=zw(i,n)}else if(e[Se.FioriElementsVersion.v4]){let i=e[Se.FioriElementsVersion.v4];t=TM(i,n)}return t}a(t6,"exportConfig");function n6(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];n[Se.SchemaType.ListReport]?t=lh(n[Se.SchemaType.ListReport]):n[Se.SchemaType.ObjectPage]?t=ph(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.OverviewPage]?t=mh(n[Se.SchemaType.OverviewPage]):n[Se.SchemaType.AnalyticalListPage]&&(t=fh(n[Se.SchemaType.AnalyticalListPage]))}else if(e[Se.FioriElementsVersion.v4]){let n=e[Se.FioriElementsVersion.v4];n[Se.SchemaType.ListReport]?t=Yc(n[Se.SchemaType.ListReport],Se.SchemaType.ListReport):n[Se.SchemaType.ObjectPage]?t=$y(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.AnalyticalListPage]?t=Yc(n[Se.SchemaType.AnalyticalListPage],Se.SchemaType.AnalyticalListPage):n[Se.SchemaType.FPMCustomPage]&&(t=ky(n[Se.SchemaType.FPMCustomPage]))}return t}a(n6,"importConfig");async function i6(e){return nP(e)}a(i6,"importProject");async function r6(e){return tP(e)}a(r6,"importProjectSchema");function o6(){return{version:"13",fpmWriter:"10"}}a(o6,"getApiVersion");function cP(e){let t=Zz.get(e.customExtension);if(t&&typeof t=="function")return(0,bn.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}a(cP,"generateCustomExtension");var Kr=require("path"),Bs=require("fs");var Nf=a(async e=>new Promise((t,n)=>{(0,Bs.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),a6=a(async e=>JSON.parse(await Nf(e)),"readJSON"),pP=a(async e=>new Promise((t,n)=>{(0,Bs.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),s6=a(async e=>new Promise(t=>{(0,Bs.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),bM=a(async e=>new Promise(t=>{(0,Bs.exists)(e,n=>{t(n)})}),"resourceExists"),c6=a(async e=>a6((0,Kr.join)(e,"manifest.json")),"getManifest"),AM=a(async e=>{let t=[],n=(0,Kr.join)(e,"changes");if(!await bM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await pP(n);for(let o of r)i.some(s=>o.endsWith(s))&&t.push(await Nf((0,Kr.join)(n,o)));return t},"getChanges"),EM=a(async(e,t="fragments")=>{let n=[],i=(0,Kr.join)(e,"ext",t);if(!await bM(i))return n;let r=await pP(i);for(let o of r){let s=(0,Kr.join)(i,o),l=await Nf(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),l6=a(async(e,t)=>{var r,o,s,l,u,p,d,m;let n=[],i=(r=e==null?void 0:e["sap.app"])==null?void 0:r.dataSources;if((s=(o=i==null?void 0:i.mainService)==null?void 0:o.settings)!=null&&s.localUri){let T=(0,Kr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await Nf(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((d=(p=i[T])==null?void 0:p.settings)!=null&&d.localUri){let b=(0,Kr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:b,fileContent:await Nf(b)})}}if(n.length===0)for(let T in i){let b=i[T];if((b==null?void 0:b.type)==="ODataAnnotation"&&((m=b==null?void 0:b.settings)!=null&&m.localUri)){let E=(0,Kr.join)(t,b.settings.localUri);n.push({dataSourceUri:E,fileContent:await Nf(E)})}}return n},"getAnnotations"),f6=a(async e=>{let t=(0,Kr.basename)(e),n=(0,Kr.join)(e,"webapp"),i=await c6(n),r=await l6(i,n),o=await AM(n),s=await EM(n),l=await EM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:o,fragments:s,views:l}},"getProject");tc(pr,te(se()),module.exports);0&&(module.exports={exportConfig,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
|
|
296
296
|
/*! Bundled license information:
|
|
297
297
|
|
|
298
298
|
sax/lib/sax.js:
|