@sap/ux-specification 1.96.55 → 1.96.56
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 +29 -4
- 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/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 +25 -10
- 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/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 -54
- 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 W4=Object.create;var ll=Object.defineProperty;var MI=Object.getOwnPropertyDescriptor;var G4=Object.getOwnPropertyNames;var H4=Object.getPrototypeOf,K4=Object.prototype.hasOwnProperty;var a=(e,t)=>ll(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),qs=(e,t)=>{for(var n in t)ll(e,n,{get:t[n],enumerable:!0})},eg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of G4(t))!K4.call(e,r)&&r!==n&&ll(e,r,{get:()=>t[r],enumerable:!(i=MI(t,r))||i.enumerable});return e},Zs=(e,t,n)=>(eg(e,t,"default"),n&&eg(n,t,"default")),te=(e,t,n)=>(n=e!=null?W4(H4(e)):{},eg(t||!e||!e.__esModule?ll(n,"default",{value:e,enumerable:!0}):n,e)),tg=e=>eg(ll({},"__esModule",{value:!0}),e),y=(e,t,n,i)=>{for(var r=i>1?void 0:i?MI(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&&ll(t,n,r),r};var sN=Ve((rz,aN)=>{var zv=Object.defineProperty,X4=Object.getOwnPropertyDescriptor,J4=Object.getOwnPropertyNames,Q4=Object.prototype.hasOwnProperty,qv=a((e,t)=>{for(var n in t)zv(e,n,{get:t[n],enumerable:!0})},"d"),Y4=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of J4(t))!Q4.call(e,r)&&r!==n&&zv(e,r,{get:()=>t[r],enumerable:!(i=X4(t,r))||i.enumerable});return e},"Ye"),z4=a(e=>Y4(zv({},"__esModule",{value:!0}),e),"Ne"),VI={};qv(VI,{ALPViewType:()=>GI,ActionTitlePrefix:()=>tB,ActionType:()=>XI,ArtifactType:()=>KI,BindingPropertyRegexAsString:()=>nB,ControlType:()=>JI,CustomExtensionType:()=>gC,DATESETTINGSPATH:()=>uB,DataSourceType:()=>lC,DefinitionName:()=>eC,DirName:()=>YI,DraftDiscardEnabledSettings:()=>oC,ExportArtifacts:()=>WI,FIORI_FCL_ROOT_ID:()=>mB,FIORI_FCL_ROOT_VIEW_NAME:()=>gB,FRAGMENTNAMEPART:()=>pB,FacetBase:()=>qI,FacetTitlePrefix:()=>eB,Features:()=>mC,FileName:()=>zI,FioriElementsVersion:()=>kI,FlexChangeLayer:()=>UI,FlexibleColumnLayoutAggregations:()=>cC,FlexibleColumnLayoutType:()=>$I,GENERICAPPSETTINGS:()=>dB,LogSeverity:()=>pC,LogSeverityLabel:()=>vB,MANIFESTPATH:()=>iB,MacrosPropertyType:()=>rC,ManifestSection:()=>fC,OdataVersion:()=>jI,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>Z4,PageType:()=>q4,PageTypeV2:()=>Zv,PageTypeV4:()=>eT,PropertyName:()=>tC,QUICKVARPATH:()=>lB,QUICKVARPATHX:()=>fB,SAPUI5_FRAGMENT_CLASS:()=>yB,SAPUI5_VIEW_CLASS:()=>hB,SchemaKeyName:()=>iC,SchemaTag:()=>nC,SchemaType:()=>BI,SectionType:()=>HI,StatePreservationMode:()=>sC,TableColumnVerticalAlignment:()=>aC,TemplateType:()=>dC,UIVOCABULARY:()=>aB,UIVOCABULARYALPHADOT:()=>cB,UIVOCABULARYDOT:()=>sB,VOCWITHCOLONS:()=>oB,VOCWITHSLASH:()=>rB,ViewTemplateType:()=>ZI,ViewTypes:()=>uC,Visualization:()=>QI,v2:()=>hC,v4:()=>$C});aN.exports=z4(VI);var Zv=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Zv||{}),eT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(eT||{}),q4={...Zv,...eT},Z4=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),kI=(e=>(e.v2="v2",e.v4="v4",e))(kI||{}),jI=(e=>(e.v2="v2",e.v4="v4",e))(jI||{}),$I=(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))($I||{}),UI=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(UI||{}),BI=(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))(BI||{}),WI=(e=>(e.flex="flex",e.manifest="manifest",e))(WI||{}),GI=(e=>(e.Primary="primary",e.Secondary="secondary",e))(GI||{}),HI=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(HI||{}),KI=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(KI||{}),XI=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(XI||{}),JI=(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))(JI||{}),QI=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(QI||{}),YI=(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))(YI||{}),zI=(e=>(e.App="app.json",e))(zI||{}),eB="Facet ID: ",tB="Action ID: ",qI=(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))(qI||{}),nB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",ZI=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(ZI||{}),eC=(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.ViewTableColumnAction="ViewTableColumnAction",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.ViewTableColumnBasic="ViewTableColumnBasic",e.ViewTableColumnBasicAction="ViewTableColumnBasicAction",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e))(eC||{}),tC=(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))(tC||{}),nC=(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))(nC||{}),iC=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(iC||{}),iB="webapp/manifest.json",rB="/@com.sap.vocabularies",oB="::@com.sap.vocabularies",aB="com.sap.vocabularies.UI.v1",sB="com.sap.vocabularies.UI.v1.",cB="@com.sap.vocabularies.UI.v1.",lB="/quickVariantSelection",fB="/quickVariantSelectionX",uB="/filterSettings/dateSettings",pB=".fragment.",rC=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(rC||{}),oC=(e=>(e.restricted="restricted",e))(oC||{}),aC=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(aC||{}),sC=(e=>(e.persistence="persistence",e.discovery="discovery",e))(sC||{}),cC=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(cC||{}),lC=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(lC||{}),fC=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(fC||{}),dB="sap.ui.generic.app/settings",gB="sap.fe.templates.RootContainer.view.Fcl",mB="appRootView",uC=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(uC||{}),hB="sap.ui.core.mvc.View",yB="sap.ui.core.Fragment",pC=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(pC||{}),vB={error:"Error",warning:"Warning",info:"Information"},dC=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(dC||{}),gC=(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))(gC||{}),mC=(e=>(e.BuildingBlocks="BuildingBlocks",e))(mC||{}),hC={};qv(hC,{CardSettingsType:()=>TC,CardTemplateType:()=>vC,ChartCardType:()=>yC,ChartType:()=>wC,ContainerLayoutType:()=>jC,CreateMode:()=>kC,DateRangeType:()=>PC,DefaultContentView:()=>FC,DefaultDateRangeValueType:()=>OC,DefaultFilterMode:()=>_C,ExtensionFragmentTypes:()=>VC,FE_TEMPLATE_V2:()=>bB,FE_TEMPLATE_V2_ALP:()=>xB,FE_TEMPLATE_V2_LIST_REPORT:()=>SB,FE_TEMPLATE_V2_OBJECT_PAGE:()=>AB,FilterPathType:()=>IC,LinkListFlavorType:()=>xC,ListFlavorType:()=>bC,ListTypeType:()=>AC,LoadDataOnAppLaunchSettings:()=>DC,MeasureAggregateValues:()=>EC,SAPUI5_CONTROLLER_EXTENSION:()=>OB,SAPUI5_VIEW_EXTENSION:()=>PB,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>NB,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>CB,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>IB,SectionPosition:()=>MC,SortOrderType:()=>SC,Strategy:()=>RC,TableColumnExtensionTypeV2:()=>LC,TableTypeV2:()=>NC,cardTemplateSettingsMap:()=>EB,cardTemplateTypeMap:()=>TB,customColumnViewTypes:()=>CC});var yC=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(yC||{}),vC=(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))(vC||{}),TB={"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"},EB={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},TC=(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))(TC||{}),EC=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(EC||{}),bC=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(bC||{}),AC=(e=>(e.extended="extended",e.condensed="condensed",e))(AC||{}),SC=(e=>(e.ascending="ascending",e.descending="descending",e))(SC||{}),xC=(e=>(e.standard="standard",e.carousel="carousel",e))(xC||{}),PC=(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))(PC||{}),OC=(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))(OC||{}),IC=(e=>(e.key="key",e.catgory="category",e))(IC||{}),CC=(e=>(e.XML="XML",e))(CC||{}),NC=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(NC||{}),LC=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(LC||{}),RC=(e=>(e.extension="extension",e))(RC||{}),FC=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(FC||{}),_C=(e=>(e.visual="visual",e.compact="compact",e))(_C||{}),DC=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(DC||{}),wC=(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))(wC||{}),MC=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(MC||{}),VC=(e=>(e.XML="XML",e))(VC||{}),kC=(e=>(e.inline="inline",e))(kC||{}),bB="sap.suite.ui.generic.template",AB="sap.suite.ui.generic.template.ObjectPage",SB="sap.suite.ui.generic.template.ListReport",xB="sap.suite.ui.generic.template.AnalyticalListPage",PB="sap.ui.viewExtensions",OB="sap.ui.controllerExtensions",IB="sap.suite.ui.generic.template.ObjectPage.view.Details",CB="sap.suite.ui.generic.template.ListReport.view.ListReport",NB="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",jC=(e=>(e.fixed="fixed",e.resizable="resizable",e))(jC||{}),$C={};qv($C,{ActionPlacement:()=>UC,Availability:()=>nN,CustomSectionViewTypesV4:()=>qC,DefaultPathType:()=>HC,FE_TEMPLATE_V4:()=>LB,FE_TEMPLATE_V4_ALP:()=>DB,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>RB,FE_TEMPLATE_V4_LIST_REPORT:()=>_B,FE_TEMPLATE_V4_OBJECT_PAGE:()=>FB,FIORI_FCL_ROUTER_CLASS:()=>MB,FilterFieldPlacement:()=>JC,HorizontalAlign:()=>iN,InitialLayoutType:()=>XC,InitialLoadType:()=>GC,LayoutType:()=>KC,Placement:()=>tN,SAPUI5_CONTROLLER_EXTENSION:()=>kB,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>VB,SAPUI5_FRAGMENT_TYPE_V4:()=>wB,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>$B,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>jB,SectionLayoutType:()=>YC,SectionPosition:()=>zC,SectionPositionV4:()=>eN,SelectType:()=>QC,SelectionMode:()=>BC,TableCreationModeType:()=>ZC,TableTypeV4:()=>WC,VariantManagementTypeListReport:()=>oN,VariantManagementTypeObjectPage:()=>rN});var UC=(e=>(e.After="After",e.Before="Before",e))(UC||{}),BC=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(BC||{}),WC=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(WC||{}),GC=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(GC||{}),HC=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(HC||{}),KC=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(KC||{}),XC=(e=>(e.Compact="Compact",e.Visual="Visual",e))(XC||{}),JC=(e=>(e.After="After",e.Before="Before",e))(JC||{}),QC=(e=>(e.single="single",e.multi="multi",e))(QC||{}),YC=(e=>(e.Tabs="Tabs",e.Page="Page",e))(YC||{}),zC=(e=>(e.After="After",e.Before="Before",e))(zC||{}),qC=(e=>(e.XML="XML",e))(qC||{}),ZC=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(ZC||{}),LB="sap.fe.templates",RB="sap.fe.core.fpm",FB="sap.fe.templates.ObjectPage",_B="sap.fe.templates.ListReport",DB="sap.fe.templates.AnalyticalListPage",wB="XMLFragment",eN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(eN||{}),MB="sap.f.routing.Router",VB="sap.f",kB="sap.ui.controllerExtensions",jB="sap.fe.templates.ObjectPage.ObjectPageController",$B="sap.fe.templates.ListReport.ListReportController",tN=(e=>(e.After="After",e.Before="Before",e))(tN||{}),nN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(nN||{}),iN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(iN||{}),rN=(e=>(e.None="None",e.Control="Control",e))(rN||{}),oN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(oN||{})});var cN=Ve(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.Features=mi.CustomExtensionType=mi.TemplateType=mi.LogSeverityLabel=mi.LogSeverity=void 0;var UB;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(UB=mi.LogSeverity||(mi.LogSeverity={}));mi.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var BB;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(BB=mi.TemplateType||(mi.TemplateType={}));var WB;(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"})(WB=mi.CustomExtensionType||(mi.CustomExtensionType={}));var GB;(function(e){e.BuildingBlocks="BuildingBlocks"})(GB=mi.Features||(mi.Features={}))});var DN=Ve((sz,_N)=>{var tT=Object.defineProperty,HB=Object.getOwnPropertyDescriptor,KB=Object.getOwnPropertyNames,XB=Object.prototype.hasOwnProperty,JB=a((e,t)=>{for(var n in t)tT(e,n,{get:t[n],enumerable:!0})},"w"),QB=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of KB(t))!XB.call(e,r)&&r!==n&&tT(e,r,{get:()=>t[r],enumerable:!(i=HB(t,r))||i.enumerable});return e},"h"),YB=a(e=>QB(tT({},"__esModule",{value:!0}),e),"M"),lN={};JB(lN,{CardSettingsType:()=>pN,CardTemplateType:()=>uN,ChartCardType:()=>fN,ChartType:()=>CN,ContainerLayoutType:()=>FN,CreateMode:()=>RN,DateRangeType:()=>vN,DefaultContentView:()=>PN,DefaultDateRangeValueType:()=>TN,DefaultFilterMode:()=>ON,ExtensionFragmentTypes:()=>LN,FE_TEMPLATE_V2:()=>ZB,FE_TEMPLATE_V2_ALP:()=>nW,FE_TEMPLATE_V2_LIST_REPORT:()=>tW,FE_TEMPLATE_V2_OBJECT_PAGE:()=>eW,FilterPathType:()=>EN,LinkListFlavorType:()=>yN,ListFlavorType:()=>gN,ListTypeType:()=>mN,LoadDataOnAppLaunchSettings:()=>IN,MeasureAggregateValues:()=>dN,SAPUI5_CONTROLLER_EXTENSION:()=>rW,SAPUI5_VIEW_EXTENSION:()=>iW,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>sW,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>aW,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>oW,SectionPosition:()=>NN,SortOrderType:()=>hN,Strategy:()=>xN,TableColumnExtensionTypeV2:()=>SN,TableTypeV2:()=>AN,cardTemplateSettingsMap:()=>qB,cardTemplateTypeMap:()=>zB,customColumnViewTypes:()=>bN});_N.exports=YB(lN);var fN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(fN||{}),uN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(uN||{}),zB={"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"},qB={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},pN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(pN||{}),dN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(dN||{}),gN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(gN||{}),mN=(e=>(e.extended="extended",e.condensed="condensed",e))(mN||{}),hN=(e=>(e.ascending="ascending",e.descending="descending",e))(hN||{}),yN=(e=>(e.standard="standard",e.carousel="carousel",e))(yN||{}),vN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(vN||{}),TN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(TN||{}),EN=(e=>(e.key="key",e.catgory="category",e))(EN||{}),bN=(e=>(e.XML="XML",e))(bN||{}),AN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(AN||{}),SN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(SN||{}),xN=(e=>(e.extension="extension",e))(xN||{}),PN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(PN||{}),ON=(e=>(e.visual="visual",e.compact="compact",e))(ON||{}),IN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(IN||{}),CN=(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))(CN||{}),NN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(NN||{}),LN=(e=>(e.XML="XML",e))(LN||{}),RN=(e=>(e.inline="inline",e))(RN||{}),ZB="sap.suite.ui.generic.template",eW="sap.suite.ui.generic.template.ObjectPage",tW="sap.suite.ui.generic.template.ListReport",nW="sap.suite.ui.generic.template.AnalyticalListPage",iW="sap.ui.viewExtensions",rW="sap.ui.controllerExtensions",oW="sap.suite.ui.generic.template.ObjectPage.view.Details",aW="sap.suite.ui.generic.template.ListReport.view.ListReport",sW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",FN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(FN||{})});var nL=Ve((lz,tL)=>{var nT=Object.defineProperty,cW=Object.getOwnPropertyDescriptor,lW=Object.getOwnPropertyNames,fW=Object.prototype.hasOwnProperty,uW=a((e,t)=>{for(var n in t)nT(e,n,{get:t[n],enumerable:!0})},"w"),pW=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of lW(t))!fW.call(e,r)&&r!==n&&nT(e,r,{get:()=>t[r],enumerable:!(i=cW(t,r))||i.enumerable});return e},"h"),dW=a(e=>pW(nT({},"__esModule",{value:!0}),e),"R"),wN={};uW(wN,{ActionPlacement:()=>MN,Availability:()=>zN,CustomSectionViewTypesV4:()=>XN,DefaultPathType:()=>$N,FE_TEMPLATE_V4:()=>gW,FE_TEMPLATE_V4_ALP:()=>vW,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>mW,FE_TEMPLATE_V4_LIST_REPORT:()=>yW,FE_TEMPLATE_V4_OBJECT_PAGE:()=>hW,FIORI_FCL_ROUTER_CLASS:()=>EW,FilterFieldPlacement:()=>WN,HorizontalAlign:()=>qN,InitialLayoutType:()=>BN,InitialLoadType:()=>jN,LayoutType:()=>UN,Placement:()=>YN,SAPUI5_CONTROLLER_EXTENSION:()=>AW,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>bW,SAPUI5_FRAGMENT_TYPE_V4:()=>TW,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>xW,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>SW,SectionLayoutType:()=>HN,SectionPosition:()=>KN,SectionPositionV4:()=>QN,SelectType:()=>GN,SelectionMode:()=>VN,TableCreationModeType:()=>JN,TableTypeV4:()=>kN,VariantManagementTypeListReport:()=>eL,VariantManagementTypeObjectPage:()=>ZN});tL.exports=dW(wN);var MN=(e=>(e.After="After",e.Before="Before",e))(MN||{}),VN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(VN||{}),kN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(kN||{}),jN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(jN||{}),$N=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))($N||{}),UN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(UN||{}),BN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(BN||{}),WN=(e=>(e.After="After",e.Before="Before",e))(WN||{}),GN=(e=>(e.single="single",e.multi="multi",e))(GN||{}),HN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(HN||{}),KN=(e=>(e.After="After",e.Before="Before",e))(KN||{}),XN=(e=>(e.XML="XML",e))(XN||{}),JN=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(JN||{}),gW="sap.fe.templates",mW="sap.fe.core.fpm",hW="sap.fe.templates.ObjectPage",yW="sap.fe.templates.ListReport",vW="sap.fe.templates.AnalyticalListPage",TW="XMLFragment",QN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(QN||{}),EW="sap.f.routing.Router",bW="sap.f",AW="sap.ui.controllerExtensions",SW="sap.fe.templates.ObjectPage.ObjectPageController",xW="sap.fe.templates.ListReport.ListReportController",YN=(e=>(e.After="After",e.Before="Before",e))(YN||{}),zN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(zN||{}),qN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(qN||{}),ZN=(e=>(e.None="None",e.Control="Control",e))(ZN||{}),eL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(eL||{})});var se=Ve(hi=>{"use strict";var iL=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]}),PW=hi&&hi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rL=hi&&hi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iL(t,e,n)},oL=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)&&iL(t,e,n);return PW(t,e),t};Object.defineProperty(hi,"__esModule",{value:!0});hi.v4=hi.v2=void 0;rL(sN(),hi);rL(cN(),hi);hi.v2=oL(DN());hi.v4=oL(nL())});var uT=Ve((Lq,NL)=>{"use strict";var tG=a(function(t){return nG(t)&&!iG(t)},"isMergeableObject");function nG(e){return!!e&&typeof e=="object"}a(nG,"isNonNullObject");function iG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aG(e)}a(iG,"isSpecial");var rG=typeof Symbol=="function"&&Symbol.for,oG=rG?Symbol.for("react.element"):60103;function aG(e){return e.$$typeof===oG}a(aG,"isReactElement");function sG(e){return Array.isArray(e)?[]:{}}a(sG,"emptyTarget");function zf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?dl(sG(e),e,t):e}a(zf,"cloneUnlessOtherwiseSpecified");function cG(e,t,n){return e.concat(t).map(function(i){return zf(i,n)})}a(cG,"defaultArrayMerge");function lG(e,t){if(!t.customMerge)return dl;var n=t.customMerge(e);return typeof n=="function"?n:dl}a(lG,"getMergeFunction");function fG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}a(fG,"getEnumerableOwnPropertySymbols");function IL(e){return Object.keys(e).concat(fG(e))}a(IL,"getKeys");function CL(e,t){try{return t in e}catch{return!1}}a(CL,"propertyIsOnObject");function uG(e,t){return CL(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}a(uG,"propertyIsUnsafe");function pG(e,t,n){var i={};return n.isMergeableObject(e)&&IL(e).forEach(function(r){i[r]=zf(e[r],n)}),IL(t).forEach(function(r){uG(e,r)||(CL(e,r)&&n.isMergeableObject(t[r])?i[r]=lG(r,n)(e[r],t[r],n):i[r]=zf(t[r],n))}),i}a(pG,"mergeObject");function dl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||cG,n.isMergeableObject=n.isMergeableObject||tG,n.cloneUnlessOtherwiseSpecified=zf;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):pG(e,t,n):zf(t,n)}a(dl,"deepmerge");dl.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 dl(i,r,n)},{})},"deepmergeAll");var dG=dl;NL.exports=dG});var fg=Ve(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.mergeAnnotations=ht.addGetByValue=ht.createIndexedFind=ht.lazy=ht.Decimal=ht.isComplexTypeDefinition=ht.unalias=ht.alias=ht.substringBeforeLast=ht.substringBeforeFirst=ht.splitAtLast=ht.splitAtFirst=ht.defaultReferences=ht.TermToTypes=ht.EnumIsFlag=void 0;var gG=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(ht,"EnumIsFlag",{enumerable:!0,get:function(){return gG.EnumIsFlag}});var mG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(ht,"TermToTypes",{enumerable:!0,get:function(){return mG.TermToTypes}});var hG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(ht,"defaultReferences",{enumerable:!0,get:function(){return hG.VocabularyReferences}});function LL(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}a(LL,"splitAt");function RL(e,t){return t<0?e:e.substring(0,t)}a(RL,"substringAt");function lg(e,t){return LL(e,e.indexOf(t))}a(lg,"splitAtFirst");ht.splitAtFirst=lg;function FL(e,t){return LL(e,e.lastIndexOf(t))}a(FL,"splitAtLast");ht.splitAtLast=FL;function yG(e,t){return RL(e,e.indexOf(t))}a(yG,"substringBeforeFirst");ht.substringBeforeFirst=yG;function vG(e,t){return RL(e,e.lastIndexOf(t))}a(vG,"substringBeforeLast");ht.substringBeforeLast=vG;function _L(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((o,s)=>(o[s.namespace]=s,o),{})),!t)return t;let[n,i]=FL(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[o,s]=lg(t,"@");return`${o}@${_L(e,s)}`}else return t}a(_L,"alias");ht.alias=_L;function pT(e,t,n){var i;let r=a(o=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=lg(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]=lg(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(pT,"unalias");ht.unalias=pT;function TG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}a(TG,"isComplexTypeDefinition");ht.isComplexTypeDefinition=TG;function EG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}a(EG,"Decimal");ht.Decimal=EG;function bG(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(bG,"lazy");ht.lazy=bG;function DL(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(DL,"createIndexedFind");ht.createIndexedFind=DL;function AG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:DL(e,t)});else throw new Error(`Property '${n}' already exists`);return e}a(AG,"addGetByValue");ht.addGetByValue=AG;function SG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var o;for(let{target:s,annotations:l}of r){let u=(o=pT(e,s))!==null&&o!==void 0?o:s;n[u]||(n[u]=[]);let p=l.map(d=>{var m;return d.term=(m=pT(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(SG,"mergeAnnotations");ht.mergeAnnotations=SG});var JL=Ve(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.convert=void 0;var qf=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),ve=fg(),eo=Symbol("Annotation Target");function la(e,t){return e[e.length-1]!==t&&e.push(t),e}a(la,"appendObjectPath");function fr(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[eo]!==void 0)t=t[eo];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,L;let R=a(F=>(d.messages.push({message:F}),d.target=void 0,d),"error");if(d.target===void 0)return d;if(d.objectPath=la(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):R(`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=fr(e,d.target[eo],F);return U.objectPath.forEach(J=>{d.objectPath.includes(J)||(d.objectPath=la(d.objectPath,J))}),d.target=U.target,d.objectPath=la(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=fr(e,J.entityType,m);return d.target=re.target,d.objectPath=re.objectPath.reduce(la,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=fr(e,d.target.action,m);return d.target=J.target,d.objectPath=J.objectPath.reduce(la,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=(L=J.parameters[m])!==null&&L!==void 0?L: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=fr(e,F,m);return d.target=J.target,d.objectPath=J.objectPath.reduce(la,d.objectPath),d}break;case"NavigationProperty":let U=fr(e,d.target.targetType,m);return d.target=U.target,d.objectPath=U.objectPath.reduce(la,d.objectPath),d;default:if(m==="")return d;if(d.target[m])return d.target=d.target[m],d.objectPath=la(d.objectPath,d.target),d}return R(`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=jL(e,i,t.fullyQualifiedName);e.logError(`Unable to resolve the path expression:
|
|
1
|
+
var W4=Object.create;var fl=Object.defineProperty;var MI=Object.getOwnPropertyDescriptor;var G4=Object.getOwnPropertyNames;var H4=Object.getPrototypeOf,K4=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),qs=(e,t)=>{for(var n in t)fl(e,n,{get:t[n],enumerable:!0})},eg=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of G4(t))!K4.call(e,r)&&r!==n&&fl(e,r,{get:()=>t[r],enumerable:!(i=MI(t,r))||i.enumerable});return e},Zs=(e,t,n)=>(eg(e,t,"default"),n&&eg(n,t,"default")),te=(e,t,n)=>(n=e!=null?W4(H4(e)):{},eg(t||!e||!e.__esModule?fl(n,"default",{value:e,enumerable:!0}):n,e)),tg=e=>eg(fl({},"__esModule",{value:!0}),e),y=(e,t,n,i)=>{for(var r=i>1?void 0:i?MI(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 sN=Ve((sz,aN)=>{var zv=Object.defineProperty,X4=Object.getOwnPropertyDescriptor,J4=Object.getOwnPropertyNames,Q4=Object.prototype.hasOwnProperty,qv=a((e,t)=>{for(var n in t)zv(e,n,{get:t[n],enumerable:!0})},"d"),Y4=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of J4(t))!Q4.call(e,r)&&r!==n&&zv(e,r,{get:()=>t[r],enumerable:!(i=X4(t,r))||i.enumerable});return e},"Ye"),z4=a(e=>Y4(zv({},"__esModule",{value:!0}),e),"Ne"),VI={};qv(VI,{ALPViewType:()=>GI,ActionTitlePrefix:()=>tB,ActionType:()=>XI,ArtifactType:()=>KI,BindingPropertyRegexAsString:()=>nB,ControlType:()=>JI,CustomExtensionType:()=>gC,DATESETTINGSPATH:()=>uB,DataSourceType:()=>lC,DefinitionName:()=>eC,DirName:()=>YI,DraftDiscardEnabledSettings:()=>oC,ExportArtifacts:()=>WI,FIORI_FCL_ROOT_ID:()=>mB,FIORI_FCL_ROOT_VIEW_NAME:()=>gB,FRAGMENTNAMEPART:()=>pB,FacetBase:()=>qI,FacetTitlePrefix:()=>eB,Features:()=>mC,FileName:()=>zI,FioriElementsVersion:()=>kI,FlexChangeLayer:()=>UI,FlexibleColumnLayoutAggregations:()=>cC,FlexibleColumnLayoutType:()=>$I,GENERICAPPSETTINGS:()=>dB,LogSeverity:()=>pC,LogSeverityLabel:()=>vB,MANIFESTPATH:()=>iB,MacrosPropertyType:()=>rC,ManifestSection:()=>fC,OdataVersion:()=>jI,PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP:()=>Z4,PageType:()=>q4,PageTypeV2:()=>Zv,PageTypeV4:()=>eT,PropertyName:()=>tC,QUICKVARPATH:()=>lB,QUICKVARPATHX:()=>fB,SAPUI5_FRAGMENT_CLASS:()=>yB,SAPUI5_VIEW_CLASS:()=>hB,SchemaKeyName:()=>iC,SchemaTag:()=>nC,SchemaType:()=>BI,SectionType:()=>HI,StatePreservationMode:()=>sC,TableColumnVerticalAlignment:()=>aC,TemplateType:()=>dC,UIVOCABULARY:()=>aB,UIVOCABULARYALPHADOT:()=>cB,UIVOCABULARYDOT:()=>sB,VOCWITHCOLONS:()=>oB,VOCWITHSLASH:()=>rB,ViewTemplateType:()=>ZI,ViewTypes:()=>uC,Visualization:()=>QI,v2:()=>hC,v4:()=>$C});aN.exports=z4(VI);var Zv=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.OverviewPage="OverviewPage",e.CustomPage="CustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(Zv||{}),eT=(e=>(e.ObjectPage="ObjectPage",e.ListReport="ListReport",e.CustomPage="CustomPage",e.FPMCustomPage="FPMCustomPage",e.AnalyticalListPage="AnalyticalListPage",e))(eT||{}),q4={...Zv,...eT},Z4=new Map([["ListReport","sap.suite.ui.generic.template.ListReport.view.ListReport"],["AnalyticalListPage","sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"],["ObjectPage","sap.suite.ui.generic.template.ObjectPage.view.Details"]]),kI=(e=>(e.v2="v2",e.v4="v4",e))(kI||{}),jI=(e=>(e.v2="v2",e.v4="v4",e))(jI||{}),$I=(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))($I||{}),UI=(e=>(e.Vendor="VENDOR",e.Customer="CUSTOMER_BASE",e))(UI||{}),BI=(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))(BI||{}),WI=(e=>(e.flex="flex",e.manifest="manifest",e))(WI||{}),GI=(e=>(e.Primary="primary",e.Secondary="secondary",e))(GI||{}),HI=(e=>(e.Section="Section",e.SubSection="SubSection",e.HeaderSection="HeaderSection",e))(HI||{}),KI=(e=>(e.Manifest="Manifest",e.FlexChange="FlexChange",e.Annotation="Annotation",e.XMLProperty="XMLProperty",e))(KI||{}),XI=(e=>(e.Annotation="Annotation",e.Copy="Copy",e.Criticality="Criticality",e.Custom="Custom",e.Standard="Standard",e))(XI||{}),JI=(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))(JI||{}),QI=(e=>(e.LineItem="LineItem",e.Chart="Chart",e))(QI||{}),YI=(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))(YI||{}),zI=(e=>(e.App="app.json",e))(zI||{}),eB="Facet ID: ",tB="Action ID: ",qI=(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))(qI||{}),nB="^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$",ZI=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e.ResponsiveTableCellsExtension="ResponsiveTableCellsExtension",e))(ZI||{}),eC=(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.ViewTableColumnAction="ViewTableColumnAction",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.ViewTableColumnBasic="ViewTableColumnBasic",e.ViewTableColumnBasicAction="ViewTableColumnBasicAction",e.CustomExtensionFragment="CustomExtensionFragment",e.CustomFilterField="CustomFilterField",e.CustomFilterFieldPosition="CustomFilterFieldPosition",e.SaveAndEdit="SaveAndEdit",e))(eC||{}),tC=(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))(tC||{}),nC=(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))(nC||{}),iC=(e=>(e.id="ID",e.value="Value",e.action="Action",e.target="Target",e.key="Key",e.semanticObject="SemanticObject",e))(iC||{}),iB="webapp/manifest.json",rB="/@com.sap.vocabularies",oB="::@com.sap.vocabularies",aB="com.sap.vocabularies.UI.v1",sB="com.sap.vocabularies.UI.v1.",cB="@com.sap.vocabularies.UI.v1.",lB="/quickVariantSelection",fB="/quickVariantSelectionX",uB="/filterSettings/dateSettings",pB=".fragment.",rC=(e=>(e.Control="Control",e.Property="Property",e.Aggregation="Aggregation",e.Event="Event",e))(rC||{}),oC=(e=>(e.restricted="restricted",e))(oC||{}),aC=(e=>(e.Top="Top",e.Middle="Middle",e.Bottom="Bottom",e))(aC||{}),sC=(e=>(e.persistence="persistence",e.discovery="discovery",e))(sC||{}),cC=(e=>(e.BeginColumnPages="beginColumnPages",e.MidColumnPages="midColumnPages",e.EndColumnPages="endColumnPages",e))(cC||{}),lC=(e=>(e.OData="OData",e.ODataAnnotation="ODataAnnotation",e))(lC||{}),fC=(e=>(e.ui="sap.ui",e.app="sap.app",e.generic="sap.ui.generic.app",e.ovp="sap.ovp",e.ui5="sap.ui5",e))(fC||{}),dB="sap.ui.generic.app/settings",gB="sap.fe.templates.RootContainer.view.Fcl",mB="appRootView",uC=(e=>(e.XML="XML",e.HTML="HTML",e.JSON="JSON",e))(uC||{}),hB="sap.ui.core.mvc.View",yB="sap.ui.core.Fragment",pC=(e=>(e.Error="error",e.Warning="warning",e.Info="info",e))(pC||{}),vB={error:"Error",warning:"Warning",info:"Information"},dC=(e=>(e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4",e))(dC||{}),gC=(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))(gC||{}),mC=(e=>(e.BuildingBlocks="BuildingBlocks",e))(mC||{}),hC={};qv(hC,{CardSettingsType:()=>TC,CardTemplateType:()=>vC,ChartCardType:()=>yC,ChartType:()=>wC,ContainerLayoutType:()=>jC,CreateMode:()=>kC,DateRangeType:()=>PC,DefaultContentView:()=>FC,DefaultDateRangeValueType:()=>OC,DefaultFilterMode:()=>_C,ExtensionFragmentTypes:()=>VC,FE_TEMPLATE_V2:()=>bB,FE_TEMPLATE_V2_ALP:()=>xB,FE_TEMPLATE_V2_LIST_REPORT:()=>SB,FE_TEMPLATE_V2_OBJECT_PAGE:()=>AB,FilterPathType:()=>IC,LinkListFlavorType:()=>xC,ListFlavorType:()=>bC,ListTypeType:()=>AC,LoadDataOnAppLaunchSettings:()=>DC,MeasureAggregateValues:()=>EC,SAPUI5_CONTROLLER_EXTENSION:()=>OB,SAPUI5_VIEW_EXTENSION:()=>PB,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>NB,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>CB,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>IB,SectionPosition:()=>MC,SortOrderType:()=>SC,Strategy:()=>RC,TableColumnExtensionTypeV2:()=>LC,TableTypeV2:()=>NC,cardTemplateSettingsMap:()=>EB,cardTemplateTypeMap:()=>TB,customColumnViewTypes:()=>CC});var yC=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(yC||{}),vC=(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))(vC||{}),TB={"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"},EB={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},TC=(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))(TC||{}),EC=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(EC||{}),bC=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(bC||{}),AC=(e=>(e.extended="extended",e.condensed="condensed",e))(AC||{}),SC=(e=>(e.ascending="ascending",e.descending="descending",e))(SC||{}),xC=(e=>(e.standard="standard",e.carousel="carousel",e))(xC||{}),PC=(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))(PC||{}),OC=(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))(OC||{}),IC=(e=>(e.key="key",e.catgory="category",e))(IC||{}),CC=(e=>(e.XML="XML",e))(CC||{}),NC=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(NC||{}),LC=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(LC||{}),RC=(e=>(e.extension="extension",e))(RC||{}),FC=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(FC||{}),_C=(e=>(e.visual="visual",e.compact="compact",e))(_C||{}),DC=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(DC||{}),wC=(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))(wC||{}),MC=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(MC||{}),VC=(e=>(e.XML="XML",e))(VC||{}),kC=(e=>(e.inline="inline",e))(kC||{}),bB="sap.suite.ui.generic.template",AB="sap.suite.ui.generic.template.ObjectPage",SB="sap.suite.ui.generic.template.ListReport",xB="sap.suite.ui.generic.template.AnalyticalListPage",PB="sap.ui.viewExtensions",OB="sap.ui.controllerExtensions",IB="sap.suite.ui.generic.template.ObjectPage.view.Details",CB="sap.suite.ui.generic.template.ListReport.view.ListReport",NB="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",jC=(e=>(e.fixed="fixed",e.resizable="resizable",e))(jC||{}),$C={};qv($C,{ActionPlacement:()=>UC,Availability:()=>nN,CustomSectionViewTypesV4:()=>qC,DefaultPathType:()=>HC,FE_TEMPLATE_V4:()=>LB,FE_TEMPLATE_V4_ALP:()=>DB,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>RB,FE_TEMPLATE_V4_LIST_REPORT:()=>_B,FE_TEMPLATE_V4_OBJECT_PAGE:()=>FB,FIORI_FCL_ROUTER_CLASS:()=>MB,FilterFieldPlacement:()=>JC,HorizontalAlign:()=>iN,InitialLayoutType:()=>XC,InitialLoadType:()=>GC,LayoutType:()=>KC,Placement:()=>tN,SAPUI5_CONTROLLER_EXTENSION:()=>kB,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>VB,SAPUI5_FRAGMENT_TYPE_V4:()=>wB,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>$B,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>jB,SectionLayoutType:()=>YC,SectionPosition:()=>zC,SectionPositionV4:()=>eN,SelectType:()=>QC,SelectionMode:()=>BC,TableCreationModeType:()=>ZC,TableTypeV4:()=>WC,VariantManagementTypeListReport:()=>oN,VariantManagementTypeObjectPage:()=>rN});var UC=(e=>(e.After="After",e.Before="Before",e))(UC||{}),BC=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(BC||{}),WC=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(WC||{}),GC=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(GC||{}),HC=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))(HC||{}),KC=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(KC||{}),XC=(e=>(e.Compact="Compact",e.Visual="Visual",e))(XC||{}),JC=(e=>(e.After="After",e.Before="Before",e))(JC||{}),QC=(e=>(e.single="single",e.multi="multi",e))(QC||{}),YC=(e=>(e.Tabs="Tabs",e.Page="Page",e))(YC||{}),zC=(e=>(e.After="After",e.Before="Before",e))(zC||{}),qC=(e=>(e.XML="XML",e))(qC||{}),ZC=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(ZC||{}),LB="sap.fe.templates",RB="sap.fe.core.fpm",FB="sap.fe.templates.ObjectPage",_B="sap.fe.templates.ListReport",DB="sap.fe.templates.AnalyticalListPage",wB="XMLFragment",eN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(eN||{}),MB="sap.f.routing.Router",VB="sap.f",kB="sap.ui.controllerExtensions",jB="sap.fe.templates.ObjectPage.ObjectPageController",$B="sap.fe.templates.ListReport.ListReportController",tN=(e=>(e.After="After",e.Before="Before",e))(tN||{}),nN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(nN||{}),iN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(iN||{}),rN=(e=>(e.None="None",e.Control="Control",e))(rN||{}),oN=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(oN||{})});var cN=Ve(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.Features=mi.CustomExtensionType=mi.TemplateType=mi.LogSeverityLabel=mi.LogSeverity=void 0;var UB;(function(e){e.Error="error",e.Warning="warning",e.Info="info"})(UB=mi.LogSeverity||(mi.LogSeverity={}));mi.LogSeverityLabel={error:"Error",warning:"Warning",info:"Information"};var BB;(function(e){e.ListReportObjectPageV2="ListReportObjectPageV2",e.ListReportObjectPageV4="ListReportObjectPageV4",e.OverviewPageV2="OverviewPageV2",e.AnalyticalListPageV2="AnalyticalListPageV2",e.AnalyticalListPageV4="AnalyticalListPageV4",e.FreestylePageV4="FreestylePageV4"})(BB=mi.TemplateType||(mi.TemplateType={}));var WB;(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"})(WB=mi.CustomExtensionType||(mi.CustomExtensionType={}));var GB;(function(e){e.BuildingBlocks="BuildingBlocks"})(GB=mi.Features||(mi.Features={}))});var DN=Ve((fz,_N)=>{var tT=Object.defineProperty,HB=Object.getOwnPropertyDescriptor,KB=Object.getOwnPropertyNames,XB=Object.prototype.hasOwnProperty,JB=a((e,t)=>{for(var n in t)tT(e,n,{get:t[n],enumerable:!0})},"w"),QB=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of KB(t))!XB.call(e,r)&&r!==n&&tT(e,r,{get:()=>t[r],enumerable:!(i=HB(t,r))||i.enumerable});return e},"h"),YB=a(e=>QB(tT({},"__esModule",{value:!0}),e),"M"),lN={};JB(lN,{CardSettingsType:()=>pN,CardTemplateType:()=>uN,ChartCardType:()=>fN,ChartType:()=>CN,ContainerLayoutType:()=>FN,CreateMode:()=>RN,DateRangeType:()=>vN,DefaultContentView:()=>PN,DefaultDateRangeValueType:()=>TN,DefaultFilterMode:()=>ON,ExtensionFragmentTypes:()=>LN,FE_TEMPLATE_V2:()=>ZB,FE_TEMPLATE_V2_ALP:()=>nW,FE_TEMPLATE_V2_LIST_REPORT:()=>tW,FE_TEMPLATE_V2_OBJECT_PAGE:()=>eW,FilterPathType:()=>EN,LinkListFlavorType:()=>yN,ListFlavorType:()=>gN,ListTypeType:()=>mN,LoadDataOnAppLaunchSettings:()=>IN,MeasureAggregateValues:()=>dN,SAPUI5_CONTROLLER_EXTENSION:()=>rW,SAPUI5_VIEW_EXTENSION:()=>iW,SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE:()=>sW,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>aW,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>oW,SectionPosition:()=>NN,SortOrderType:()=>hN,Strategy:()=>xN,TableColumnExtensionTypeV2:()=>SN,TableTypeV2:()=>AN,cardTemplateSettingsMap:()=>qB,cardTemplateTypeMap:()=>zB,customColumnViewTypes:()=>bN});_N.exports=YB(lN);var fN=(e=>(e.cardBubble="cardBubble",e.cardchartsline="cardchartsline",e.cardchartsdonut="cardchartsdonut",e))(fN||{}),uN=(e=>(e.analytical="sap.ovp.cards.charts.analytical",e.analyticalv4="sap.ovp.cards.v4.charts.analytical",e.list="sap.ovp.cards.list",e.listv4="sap.ovp.cards.v4.list",e.linklist="sap.ovp.cards.linklist",e.linklistv4="sap.ovp.cards.v4.linklist",e.table="sap.ovp.cards.table",e.tablev4="sap.ovp.cards.v4.table",e.stack="sap.ovp.cards.stack",e))(uN||{}),zB={"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"},qB={"sap.ovp.cards.charts.analytical":"AnalyticalCardSettings","sap.ovp.cards.v4.charts.analytical":"AnalyticalCardSettingsv4"},pN=(e=>(e.analyticalCardSettings="analyticalCardSettings",e.analyticalCardSettingsv4="analyticalCardSettingsv4",e.listCardSettings="listCardSettings",e.listCardSettingsv4="listCardSettingsv4",e.stackCardSettings="stackCardSettings",e.linkListCardSettings="linkListCardSettings",e.tableCardSettings="tableCardSettings",e.tableCardSettingsv4="tableCardSettingsv4",e))(pN||{}),dN=(e=>(e.average="average",e.max="max",e.min="min",e.sum="sum",e.count="$count",e))(dN||{}),gN=(e=>(e.standard="standard",e.bar="bar",e.carousel="carousel",e))(gN||{}),mN=(e=>(e.extended="extended",e.condensed="condensed",e))(mN||{}),hN=(e=>(e.ascending="ascending",e.descending="descending",e))(hN||{}),yN=(e=>(e.standard="standard",e.carousel="carousel",e))(yN||{}),vN=(e=>(e.DATERANGE="DATERANGE",e.DATE="DATE",e.FROM="FROM",e.TO="TO",e.DAYS="DAYS",e.LASTDAYS="LASTDAYS",e.LASTWEEKS="LASTWEEKS",e.WEEK="WEEK",e.LASTMONTHS="LASTMONTHS",e.MONTH="MONTH",e.QUARTER="QUARTER",e.LASTQUARTERS="LASTQUARTERS",e.LASTYEARS="LASTYEARS",e.LASTYEAR="LASTYEAR",e.YEAR="YEAR",e.NEXTDAYS="NEXTDAYS",e.NEXTWEEKS="NEXTWEEKS",e.NEXTMONTHS="NEXTMONTHS",e.NEXTQUARTERS="NEXTQUARTERS",e.NEXTYEARS="NEXTYEARS",e.NEXT="NEXT",e.SPECIFICMONTH="SPECIFICMONTH",e.YESTERDAY="YESTERDAY",e.YEARTODATE="YEARTODATE",e.TODAY="TODAY",e.TOMORROW="TOMORROW",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.NEXTWEEK="NEXTWEEK",e.NEXT2WEEKS="NEXT2WEEKS",e.NEXT3WEEKS="NEXT3WEEKS",e.NEXT4WEEKS="NEXT4WEEKS",e.NEXT5WEEKS="NEXT5WEEKS",e.THISMONTH="THISMONTH",e.LASTMONTH="LASTMONTH",e.NEXTMONTH="NEXTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.NEXTQUARTER="NEXTQUARTER",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.TODAYFROMTO="TODAYFROMTO",e))(vN||{}),TN=(e=>(e.YESTERDAY="YESTERDAY",e.TODAY="TODAY",e.THISWEEK="THISWEEK",e.LASTWEEK="LASTWEEK",e.THISMONTH="THISMONTH",e.TOMORROW="TOMORROW",e.LASTMONTH="LASTMONTH",e.THISQUARTER="THISQUARTER",e.LASTQUARTER="LASTQUARTER",e.THISYEAR="THISYEAR",e.LASTYEAR="LASTYEAR",e.LAST2WEEKS="LAST2WEEKS",e.LAST3WEEKS="LAST3WEEKS",e.LAST4WEEKS="LAST4WEEKS",e.LAST5WEEKS="LAST5WEEKS",e.YEARTODATE="YEARTODATE",e.QUARTER1="QUARTER1",e.QUARTER2="QUARTER2",e.QUARTER3="QUARTER3",e.QUARTER4="QUARTER4",e.DATETOYEAR="DATETOYEAR",e))(TN||{}),EN=(e=>(e.key="key",e.catgory="category",e))(EN||{}),bN=(e=>(e.XML="XML",e))(bN||{}),AN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e.TreeTable="TreeTable",e))(AN||{}),SN=(e=>(e.ResponsiveTableColumnsExtension="ResponsiveTableColumnsExtension",e.AnalyticalTableColumnsExtension="AnalyticalTableColumnsExtension",e.TreeTableColumnsExtension="TreeTableColumnsExtension",e.GridTableColumnsExtension="GridTableColumnsExtension",e))(SN||{}),xN=(e=>(e.extension="extension",e))(xN||{}),PN=(e=>(e.charttable="charttable",e.chart="chart",e.table="table",e))(PN||{}),ON=(e=>(e.visual="visual",e.compact="compact",e))(ON||{}),IN=(e=>(e.always="always",e.never="never",e.ifAnyFilterExist="ifAnyFilterExist",e))(IN||{}),CN=(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))(CN||{}),NN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e.ReplaceFacet="ReplaceFacet",e))(NN||{}),LN=(e=>(e.XML="XML",e))(LN||{}),RN=(e=>(e.inline="inline",e))(RN||{}),ZB="sap.suite.ui.generic.template",eW="sap.suite.ui.generic.template.ObjectPage",tW="sap.suite.ui.generic.template.ListReport",nW="sap.suite.ui.generic.template.AnalyticalListPage",iW="sap.ui.viewExtensions",rW="sap.ui.controllerExtensions",oW="sap.suite.ui.generic.template.ObjectPage.view.Details",aW="sap.suite.ui.generic.template.ListReport.view.ListReport",sW="sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",FN=(e=>(e.fixed="fixed",e.resizable="resizable",e))(FN||{})});var nL=Ve((pz,tL)=>{var nT=Object.defineProperty,cW=Object.getOwnPropertyDescriptor,lW=Object.getOwnPropertyNames,fW=Object.prototype.hasOwnProperty,uW=a((e,t)=>{for(var n in t)nT(e,n,{get:t[n],enumerable:!0})},"w"),pW=a((e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of lW(t))!fW.call(e,r)&&r!==n&&nT(e,r,{get:()=>t[r],enumerable:!(i=cW(t,r))||i.enumerable});return e},"h"),dW=a(e=>pW(nT({},"__esModule",{value:!0}),e),"R"),wN={};uW(wN,{ActionPlacement:()=>MN,Availability:()=>zN,CustomSectionViewTypesV4:()=>XN,DefaultPathType:()=>$N,FE_TEMPLATE_V4:()=>gW,FE_TEMPLATE_V4_ALP:()=>vW,FE_TEMPLATE_V4_CUSTOM_PAGE:()=>mW,FE_TEMPLATE_V4_LIST_REPORT:()=>yW,FE_TEMPLATE_V4_OBJECT_PAGE:()=>hW,FIORI_FCL_ROUTER_CLASS:()=>EW,FilterFieldPlacement:()=>WN,HorizontalAlign:()=>qN,InitialLayoutType:()=>BN,InitialLoadType:()=>jN,LayoutType:()=>UN,Placement:()=>YN,SAPUI5_CONTROLLER_EXTENSION:()=>AW,SAPUI5_DEPENDENCY_LIB_SAP_F:()=>bW,SAPUI5_FRAGMENT_TYPE_V4:()=>TW,SAPUI5_VIEW_EXTENSION_LIST_REPORT:()=>xW,SAPUI5_VIEW_EXTENSION_OBJECT_PAGE:()=>SW,SectionLayoutType:()=>HN,SectionPosition:()=>KN,SectionPositionV4:()=>QN,SelectType:()=>GN,SelectionMode:()=>VN,TableCreationModeType:()=>JN,TableTypeV4:()=>kN,VariantManagementTypeListReport:()=>eL,VariantManagementTypeObjectPage:()=>ZN});tL.exports=dW(wN);var MN=(e=>(e.After="After",e.Before="Before",e))(MN||{}),VN=(e=>(e.Multi="Multi",e.None="None",e.Single="Single",e.Auto="Auto",e))(VN||{}),kN=(e=>(e.ResponsiveTable="ResponsiveTable",e.GridTable="GridTable",e.AnalyticalTable="AnalyticalTable",e))(kN||{}),jN=(e=>(e.Disabled="Disabled",e.Enabled="Enabled",e.Auto="Auto",e))(jN||{}),$N=(e=>(e.Primary="primary",e.Secondary="secondary",e.Both="both",e))($N||{}),UN=(e=>(e.Compact="Compact",e.CompactVisual="CompactVisual",e))(UN||{}),BN=(e=>(e.Compact="Compact",e.Visual="Visual",e))(BN||{}),WN=(e=>(e.After="After",e.Before="Before",e))(WN||{}),GN=(e=>(e.single="single",e.multi="multi",e))(GN||{}),HN=(e=>(e.Tabs="Tabs",e.Page="Page",e))(HN||{}),KN=(e=>(e.After="After",e.Before="Before",e))(KN||{}),XN=(e=>(e.XML="XML",e))(XN||{}),JN=(e=>(e.NewPage="NewPage",e.Inline="Inline",e))(JN||{}),gW="sap.fe.templates",mW="sap.fe.core.fpm",hW="sap.fe.templates.ObjectPage",yW="sap.fe.templates.ListReport",vW="sap.fe.templates.AnalyticalListPage",TW="XMLFragment",QN=(e=>(e.AfterFacet="AfterFacet",e.BeforeFacet="BeforeFacet",e))(QN||{}),EW="sap.f.routing.Router",bW="sap.f",AW="sap.ui.controllerExtensions",SW="sap.fe.templates.ObjectPage.ObjectPageController",xW="sap.fe.templates.ListReport.ListReportController",YN=(e=>(e.After="After",e.Before="Before",e))(YN||{}),zN=(e=>(e.Default="Default",e.Adaptation="Adaptation",e.Hidden="Hidden",e))(zN||{}),qN=(e=>(e.Begin="Begin",e.Center="Center",e.End="End",e))(qN||{}),ZN=(e=>(e.None="None",e.Control="Control",e))(ZN||{}),eL=(e=>(e.None="None",e.Control="Control",e.Page="Page",e))(eL||{})});var se=Ve(hi=>{"use strict";var iL=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]}),PW=hi&&hi.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),rL=hi&&hi.__exportStar||function(e,t){for(var n in e)n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n)&&iL(t,e,n)},oL=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)&&iL(t,e,n);return PW(t,e),t};Object.defineProperty(hi,"__esModule",{value:!0});hi.v4=hi.v2=void 0;rL(sN(),hi);rL(cN(),hi);hi.v2=oL(DN());hi.v4=oL(nL())});var uT=Ve((_q,NL)=>{"use strict";var tG=a(function(t){return nG(t)&&!iG(t)},"isMergeableObject");function nG(e){return!!e&&typeof e=="object"}a(nG,"isNonNullObject");function iG(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||aG(e)}a(iG,"isSpecial");var rG=typeof Symbol=="function"&&Symbol.for,oG=rG?Symbol.for("react.element"):60103;function aG(e){return e.$$typeof===oG}a(aG,"isReactElement");function sG(e){return Array.isArray(e)?[]:{}}a(sG,"emptyTarget");function zf(e,t){return t.clone!==!1&&t.isMergeableObject(e)?gl(sG(e),e,t):e}a(zf,"cloneUnlessOtherwiseSpecified");function cG(e,t,n){return e.concat(t).map(function(i){return zf(i,n)})}a(cG,"defaultArrayMerge");function lG(e,t){if(!t.customMerge)return gl;var n=t.customMerge(e);return typeof n=="function"?n:gl}a(lG,"getMergeFunction");function fG(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}a(fG,"getEnumerableOwnPropertySymbols");function IL(e){return Object.keys(e).concat(fG(e))}a(IL,"getKeys");function CL(e,t){try{return t in e}catch{return!1}}a(CL,"propertyIsOnObject");function uG(e,t){return CL(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}a(uG,"propertyIsUnsafe");function pG(e,t,n){var i={};return n.isMergeableObject(e)&&IL(e).forEach(function(r){i[r]=zf(e[r],n)}),IL(t).forEach(function(r){uG(e,r)||(CL(e,r)&&n.isMergeableObject(t[r])?i[r]=lG(r,n)(e[r],t[r],n):i[r]=zf(t[r],n))}),i}a(pG,"mergeObject");function gl(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||cG,n.isMergeableObject=n.isMergeableObject||tG,n.cloneUnlessOtherwiseSpecified=zf;var i=Array.isArray(t),r=Array.isArray(e),o=i===r;return o?i?n.arrayMerge(e,t,n):pG(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 dG=gl;NL.exports=dG});var fg=Ve(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.mergeAnnotations=ht.addGetByValue=ht.createIndexedFind=ht.lazy=ht.Decimal=ht.isComplexTypeDefinition=ht.unalias=ht.alias=ht.substringBeforeLast=ht.substringBeforeFirst=ht.splitAtLast=ht.splitAtFirst=ht.defaultReferences=ht.TermToTypes=ht.EnumIsFlag=void 0;var gG=require("@sap-ux/vocabularies-types/vocabularies/EnumIsFlag");Object.defineProperty(ht,"EnumIsFlag",{enumerable:!0,get:function(){return gG.EnumIsFlag}});var mG=require("@sap-ux/vocabularies-types/vocabularies/TermToTypes");Object.defineProperty(ht,"TermToTypes",{enumerable:!0,get:function(){return mG.TermToTypes}});var hG=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences");Object.defineProperty(ht,"defaultReferences",{enumerable:!0,get:function(){return hG.VocabularyReferences}});function LL(e,t){return t<0?[e,""]:[e.substring(0,t),e.substring(t+1)]}a(LL,"splitAt");function RL(e,t){return t<0?e:e.substring(0,t)}a(RL,"substringAt");function lg(e,t){return LL(e,e.indexOf(t))}a(lg,"splitAtFirst");ht.splitAtFirst=lg;function FL(e,t){return LL(e,e.lastIndexOf(t))}a(FL,"splitAtLast");ht.splitAtLast=FL;function yG(e,t){return RL(e,e.indexOf(t))}a(yG,"substringBeforeFirst");ht.substringBeforeFirst=yG;function vG(e,t){return RL(e,e.lastIndexOf(t))}a(vG,"substringBeforeLast");ht.substringBeforeLast=vG;function _L(e,t){if(e.reverseReferenceMap||(e.reverseReferenceMap=e.reduce((o,s)=>(o[s.namespace]=s,o),{})),!t)return t;let[n,i]=FL(t,"."),r=e.reverseReferenceMap[n];if(r)return`${r.alias}.${i}`;if(t.includes("@")){let[o,s]=lg(t,"@");return`${o}@${_L(e,s)}`}else return t}a(_L,"alias");ht.alias=_L;function pT(e,t,n){var i;let r=a(o=>{e.referenceMap||(e.referenceMap=Object.fromEntries(e.map(m=>[m.alias,m])));let[s,l]=lg(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]=lg(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(pT,"unalias");ht.unalias=pT;function TG(e){return!!e&&e._type==="ComplexType"&&!!e.properties}a(TG,"isComplexTypeDefinition");ht.isComplexTypeDefinition=TG;function EG(e){return{isDecimal(){return!0},valueOf(){return e},toString(){return e.toString()}}}a(EG,"Decimal");ht.Decimal=EG;function bG(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(bG,"lazy");ht.lazy=bG;function DL(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(DL,"createIndexedFind");ht.createIndexedFind=DL;function AG(e,t){let n=`by_${t}`;if(!e.hasOwnProperty(n))Object.defineProperty(e,n,{writable:!1,value:DL(e,t)});else throw new Error(`Property '${n}' already exists`);return e}a(AG,"addGetByValue");ht.addGetByValue=AG;function SG(e,...t){return t.reduceRight((n,{name:i,annotationList:r})=>{var o;for(let{target:s,annotations:l}of r){let u=(o=pT(e,s))!==null&&o!==void 0?o:s;n[u]||(n[u]=[]);let p=l.map(d=>{var m;return d.term=(m=pT(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(SG,"mergeAnnotations");ht.mergeAnnotations=SG});var JL=Ve(pg=>{"use strict";Object.defineProperty(pg,"__esModule",{value:!0});pg.convert=void 0;var qf=require("@sap-ux/vocabularies-types/vocabularies/VocabularyReferences"),ve=fg(),eo=Symbol("Annotation Target");function la(e,t){return e[e.length-1]!==t&&e.push(t),e}a(la,"appendObjectPath");function fr(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[eo]!==void 0)t=t[eo];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,L;let R=a(F=>(d.messages.push({message:F}),d.target=void 0,d),"error");if(d.target===void 0)return d;if(d.objectPath=la(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):R(`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=fr(e,d.target[eo],F);return U.objectPath.forEach(J=>{d.objectPath.includes(J)||(d.objectPath=la(d.objectPath,J))}),d.target=U.target,d.objectPath=la(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=fr(e,J.entityType,m);return d.target=re.target,d.objectPath=re.objectPath.reduce(la,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=fr(e,d.target.action,m);return d.target=J.target,d.objectPath=J.objectPath.reduce(la,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=(L=J.parameters[m])!==null&&L!==void 0?L: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=fr(e,F,m);return d.target=J.target,d.objectPath=J.objectPath.reduce(la,d.objectPath),d}break;case"NavigationProperty":let U=fr(e,d.target.targetType,m);return d.target=U.target,d.objectPath=U.objectPath.reduce(la,d.objectPath),d;default:if(m==="")return d;if(d.target[m])return d.target=d.target[m],d.objectPath=la(d.objectPath,d.target),d}return R(`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=jL(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: `+I.c),S=new Error(S),I.error=S,mt(I,"onerror",S),I}a(dn,"error");function
|
|
|
24
24
|
Actual: `+I.attribValue);else if(M==="xmlns"&&I.attribValue!==b)Fe(I,"xmlns: prefix must be bound to "+b+`
|
|
25
25
|
Actual: `+I.attribValue);else{var Re=I.tag,ct=I.tags[I.tags.length-1]||I;Re.ns===ct.ns&&(Re.ns=Object.create(ct.ns)),Re.ns[M]=I.attribValue}I.attribList.push([I.attribName,I.attribValue])}else I.tag.attributes[I.attribName]=I.attribValue,Ke(I,"onattribute",{name:I.attribName,value:I.attribValue});I.attribName=I.attribValue=""}a(en,"attrib");function Ln(I,S){if(I.opt.xmlns){var Y=I.tag,M=jn(I.tagName);Y.prefix=M.prefix,Y.local=M.local,Y.uri=Y.ns[M.prefix]||"",Y.prefix&&!Y.uri&&(Fe(I,"Unbound namespace prefix: "+JSON.stringify(I.tagName)),Y.uri=M.prefix);var Re=I.tags[I.tags.length-1]||I;Y.ns&&Re.ns!==Y.ns&&Object.keys(Y.ns).forEach(function(Vt){Ke(I,"onopennamespace",{prefix:Vt,uri:Y.ns[Vt]})});for(var ct=0,je=I.attribList.length;ct<je;ct++){var Tt=I.attribList[ct],sn=Tt[0],tn=Tt[1],Mt=jn(sn,!0),ii=Mt.prefix,nr=Mt.local,cn=ii===""?"":Y.ns[ii]||"",pi={name:sn,value:tn,prefix:ii,local:nr,uri:cn};ii&&ii!=="xmlns"&&!cn&&(Fe(I,"Unbound namespace prefix: "+JSON.stringify(ii)),pi.uri=ii),I.tag.attributes[sn]=pi,Ke(I,"onattribute",pi)}I.attribList.length=0}I.tag.isSelfClosing=!!S,I.sawRoot=!0,I.tags.push(I.tag),Ke(I,"onopentag",I.tag),S||(!I.noscript&&I.tagName.toLowerCase()==="script"?I.state=k.SCRIPT:I.state=k.TEXT,I.tag=null,I.tagName=""),I.attribName=I.attribValue="",I.attribList.length=0}a(Ln,"openTag");function ni(I){if(!I.tagName){Fe(I,"Weird empty close tag."),I.textNode+="</>",I.state=k.TEXT;return}if(I.script){if(I.tagName!=="script"){I.script+="</"+I.tagName+">",I.tagName="",I.state=k.SCRIPT;return}Ke(I,"onscript",I.script),I.script=""}var S=I.tags.length,Y=I.tagName;I.strict||(Y=Y[I.looseCase]());for(var M=Y;S--;){var Re=I.tags[S];if(Re.name!==M)Fe(I,"Unexpected close tag");else break}if(S<0){Fe(I,"Unmatched closing tag: "+I.tagName),I.textNode+="</"+I.tagName+">",I.state=k.TEXT;return}I.tagName=Y;for(var ct=I.tags.length;ct-- >S;){var je=I.tag=I.tags.pop();I.tagName=I.tag.name,Ke(I,"onclosetag",I.tagName);var Tt={};for(var sn in je.ns)Tt[sn]=je.ns[sn];var tn=I.tags[I.tags.length-1]||I;I.opt.xmlns&&je.ns!==tn.ns&&Object.keys(je.ns).forEach(function(Mt){var ii=je.ns[Mt];Ke(I,"onclosenamespace",{prefix:Mt,uri:ii})})}S===0&&(I.closedRoot=!0),I.tagName=I.attribValue=I.attribName="",I.attribList.length=0,I.state=k.TEXT}a(ni,"closeTag");function Le(I){var S=I.entity,Y=S.toLowerCase(),M,Re="";return I.ENTITIES[S]?I.ENTITIES[S]:I.ENTITIES[Y]?I.ENTITIES[Y]:(S=Y,S.charAt(0)==="#"&&(S.charAt(1)==="x"?(S=S.slice(2),M=parseInt(S,16),Re=M.toString(16)):(S=S.slice(1),M=parseInt(S,10),Re=M.toString(10))),S=S.replace(/^0+/,""),isNaN(M)||Re.toLowerCase()!==S?(Fe(I,"Invalid character entity"),"&"+I.entity+";"):String.fromCodePoint(M))}a(Le,"parseEntity");function Rn(I,S){S==="<"?(I.state=k.OPEN_WAKA,I.startTagPosition=I.position):U(S)||(Fe(I,"Non-whitespace before first tag."),I.textNode=S,I.state=k.TEXT)}a(Rn,"beginWhiteSpace");function Xn(I,S){var Y="";return S<I.length&&(Y=I.charAt(S)),Y}a(Xn,"charAt");function Ye(I){var S=this;if(this.error)throw this.error;if(S.closed)return dn(S,"Cannot write after close. Assign an onready handler.");if(I===null)return Zt(S);typeof I=="object"&&(I=I.toString());for(var Y=0,M="";M=Xn(I,Y++),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;Rn(S,M);continue;case k.BEGIN_WHITESPACE:Rn(S,M);continue;case k.TEXT:if(S.sawRoot&&!S.closedRoot){for(var Re=Y-1;M&&M!=="<"&&M!=="&";)M=Xn(I,Y++),M&&S.trackPosition&&(S.position++,M===`
|
|
27
|
-
`?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(Re,Y-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=wi(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(L,M)?S.tagName+=M:(Kn(S),M===">"?Ln(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===">"?(Ln(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===">"?Ln(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),Ln(S)):U(M)?S.state=k.ATTRIB_NAME_SAW_WHITE:Ce(L,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===">"?Ln(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===">"?Ln(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===">"?Ln(S):S.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(S.tagName)M===">"?ni(S):Ce(L,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,Tt;switch(S.state){case k.TEXT_ENTITY:je=k.TEXT,Tt="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:je=k.ATTRIB_VALUE_QUOTED,Tt="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:je=k.ATTRIB_VALUE_UNQUOTED,Tt="attribValue";break}if(M===";")if(S.opt.unparsedEntities){var sn=Le(S);S.entity="",S.state=je,S.write(sn)}else S[Tt]+=Le(S),S.entity="",S.state=je;else Ce(S.entity.length?F:R,M)?S.entity+=M:(Fe(S,"Invalid character in entity name"),S[Tt]+="&"+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(Ye,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,Y=a(function(){var M=16384,Re=[],ct,je,Tt=-1,sn=arguments.length;if(!sn)return"";for(var tn="";++Tt<sn;){var Mt=Number(arguments[Tt]);if(!isFinite(Mt)||Mt<0||Mt>1114111||S(Mt)!==Mt)throw RangeError("Invalid code point: "+Mt);Mt<=65535?Re.push(Mt):(Mt-=65536,ct=(Mt>>10)+55296,je=Mt%1024+56320,Re.push(ct,je)),(Tt+1===sn||Re.length>M)&&(tn+=I.apply(null,Re),Re.length=0)}return tn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof hg>"u"?hg.sax={}:hg)});var yg=Ve((Hq,nR)=>{nR.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var vg=Ve((Kq,iR)=>{var GG=yg().isArray;iR.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"&&!GG(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 xT=Ve((Xq,uR)=>{var HG=tR(),KG={on:function(){},parse:function(){}},et=vg(),gl=yg().isArray,G,ST=!0,$e;function XG(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(XG,"validateOptions");function lR(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}a(lR,"nativeType");function eu(e,t){var n;if(G.compact){if(!$e[G[e+"Key"]]&&(gl(G.alwaysArray)?G.alwaysArray.indexOf(G[e+"Key"])!==-1:G.alwaysArray)&&($e[G[e+"Key"]]=[]),$e[G[e+"Key"]]&&!gl($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}}gl($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(eu,"addField");function fR(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]=lR(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(fR,"manipulateAttributes");function JG(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=fR(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,eu("instruction",r)}}a(JG,"onInstruction");function rR(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=fR(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)&&(gl(G.alwaysArray)?G.alwaysArray.indexOf(e)!==-1:G.alwaysArray)&&($e[e]=[]),$e[e]&&!gl($e[e])&&($e[e]=[$e[e]]),gl($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(rR,"onStartElement");function oR(e){G.ignoreText||!e.trim()&&!G.captureSpacesBetweenElements||(G.trim&&(e=e.trim()),G.nativeType&&(e=lR(e)),G.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),eu("text",e))}a(oR,"onText");function aR(e){G.ignoreComment||(G.trim&&(e=e.trim()),eu("comment",e))}a(aR,"onComment");function sR(e){var t=$e[G.parentKey];G.addParent||delete $e[G.parentKey],$e=t}a(sR,"onEndElement");function QG(e){G.ignoreCdata||(G.trim&&(e=e.trim()),eu("cdata",e))}a(QG,"onCdata");function YG(e){G.ignoreDoctype||(e=e.replace(/^ /,""),G.trim&&(e=e.trim()),eu("doctype",e))}a(YG,"onDoctype");function cR(e){e.note=e}a(cR,"onError");uR.exports=function(e,t){var n=ST?HG.parser(!0,{}):n=new KG.Parser("UTF-8"),i={};if($e=i,G=XG(t),ST?(n.opt={strictEntities:!0},n.onopentag=rR,n.ontext=oR,n.oncomment=aR,n.onclosetag=sR,n.onerror=cR,n.oncdata=QG,n.ondoctype=YG,n.onprocessinginstruction=JG):(n.on("startElement",rR),n.on("text",oR),n.on("comment",aR),n.on("endElement",sR),n.on("error",cR)),ST)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 gR=Ve((Qq,dR)=>{var pR=vg(),zG=xT();function qG(e){var t=pR.copyOptions(e);return pR.ensureSpacesExists(t),t}a(qG,"validateOptions");dR.exports=function(e,t){var n,i,r,o;return n=qG(t),i=zG(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 OT=Ve((zq,SR)=>{var ot=vg(),ZG=yg().isArray,vi,Ti;function eH(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(eH,"validateOptions");function Io(e,t,n){return(!n&&e.spaces?`
|
|
27
|
+
`?(S.line++,S.column=0):S.column++);S.textNode+=I.substring(Re,Y-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=wi(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(L,M)?S.tagName+=M:(Kn(S),M===">"?Ln(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===">"?(Ln(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===">"?Ln(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),Ln(S)):U(M)?S.state=k.ATTRIB_NAME_SAW_WHITE:Ce(L,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===">"?Ln(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===">"?Ln(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===">"?Ln(S):S.state=k.ATTRIB;continue;case k.CLOSE_TAG:if(S.tagName)M===">"?ni(S):Ce(L,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,Tt;switch(S.state){case k.TEXT_ENTITY:je=k.TEXT,Tt="textNode";break;case k.ATTRIB_VALUE_ENTITY_Q:je=k.ATTRIB_VALUE_QUOTED,Tt="attribValue";break;case k.ATTRIB_VALUE_ENTITY_U:je=k.ATTRIB_VALUE_UNQUOTED,Tt="attribValue";break}if(M===";")if(S.opt.unparsedEntities){var sn=Le(S);S.entity="",S.state=je,S.write(sn)}else S[Tt]+=Le(S),S.entity="",S.state=je;else Ce(S.entity.length?F:R,M)?S.entity+=M:(Fe(S,"Invalid character in entity name"),S[Tt]+="&"+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(Ye,"write");String.fromCodePoint||function(){var I=String.fromCharCode,S=Math.floor,Y=a(function(){var M=16384,Re=[],ct,je,Tt=-1,sn=arguments.length;if(!sn)return"";for(var tn="";++Tt<sn;){var Mt=Number(arguments[Tt]);if(!isFinite(Mt)||Mt<0||Mt>1114111||S(Mt)!==Mt)throw RangeError("Invalid code point: "+Mt);Mt<=65535?Re.push(Mt):(Mt-=65536,ct=(Mt>>10)+55296,je=Mt%1024+56320,Re.push(ct,je)),(Tt+1===sn||Re.length>M)&&(tn+=I.apply(null,Re),Re.length=0)}return tn},"fromCodePoint");Object.defineProperty?Object.defineProperty(String,"fromCodePoint",{value:Y,configurable:!0,writable:!0}):String.fromCodePoint=Y}()})(typeof hg>"u"?hg.sax={}:hg)});var yg=Ve((Jq,nR)=>{nR.exports={isArray:function(e){return Array.isArray?Array.isArray(e):Object.prototype.toString.call(e)==="[object Array]"}}});var vg=Ve((Qq,iR)=>{var GG=yg().isArray;iR.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"&&!GG(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 xT=Ve((Yq,uR)=>{var HG=tR(),KG={on:function(){},parse:function(){}},tt=vg(),ml=yg().isArray,G,ST=!0,$e;function XG(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(XG,"validateOptions");function lR(e){var t=Number(e);if(!isNaN(t))return t;var n=e.toLowerCase();return n==="true"?!0:n==="false"?!1:e}a(lR,"nativeType");function eu(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(eu,"addField");function fR(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]=lR(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(fR,"manipulateAttributes");function JG(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=fR(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,eu("instruction",r)}}a(JG,"onInstruction");function rR(e,t){var n;if(typeof e=="object"&&(t=e.attributes,e=e.name),t=fR(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(rR,"onStartElement");function oR(e){G.ignoreText||!e.trim()&&!G.captureSpacesBetweenElements||(G.trim&&(e=e.trim()),G.nativeType&&(e=lR(e)),G.sanitize&&(e=e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")),eu("text",e))}a(oR,"onText");function aR(e){G.ignoreComment||(G.trim&&(e=e.trim()),eu("comment",e))}a(aR,"onComment");function sR(e){var t=$e[G.parentKey];G.addParent||delete $e[G.parentKey],$e=t}a(sR,"onEndElement");function QG(e){G.ignoreCdata||(G.trim&&(e=e.trim()),eu("cdata",e))}a(QG,"onCdata");function YG(e){G.ignoreDoctype||(e=e.replace(/^ /,""),G.trim&&(e=e.trim()),eu("doctype",e))}a(YG,"onDoctype");function cR(e){e.note=e}a(cR,"onError");uR.exports=function(e,t){var n=ST?HG.parser(!0,{}):n=new KG.Parser("UTF-8"),i={};if($e=i,G=XG(t),ST?(n.opt={strictEntities:!0},n.onopentag=rR,n.ontext=oR,n.oncomment=aR,n.onclosetag=sR,n.onerror=cR,n.oncdata=QG,n.ondoctype=YG,n.onprocessinginstruction=JG):(n.on("startElement",rR),n.on("text",oR),n.on("comment",aR),n.on("endElement",sR),n.on("error",cR)),ST)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 gR=Ve((qq,dR)=>{var pR=vg(),zG=xT();function qG(e){var t=pR.copyOptions(e);return pR.ensureSpacesExists(t),t}a(qG,"validateOptions");dR.exports=function(e,t){var n,i,r,o;return n=qG(t),i=zG(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 OT=Ve((e9,SR)=>{var ot=vg(),ZG=yg().isArray,vi,Ti;function eH(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(eH,"validateOptions");function Io(e,t,n){return(!n&&e.spaces?`
|
|
28
28
|
`:"")+Array(t+1).join(e.spaces)}a(Io,"writeIndentation");function Tg(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?Io(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(Io(t,n,!1)),l.join("")}a(Tg,"writeAttributes");function mR(e,t,n){return vi=e,Ti="xml",t.ignoreDeclaration?"":"<?xml"+Tg(e[t.attributesKey],t,n)+"?>"}a(mR,"writeDeclaration");function hR(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+Tg(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(hR,"writeInstruction");function yR(e,t){return t.ignoreComment?"":"<!--"+("commentFn"in t?t.commentFn(e,Ti,vi):e)+"-->"}a(yR,"writeComment");function vR(e,t){return t.ignoreCdata?"":"<![CDATA["+("cdataFn"in t?t.cdataFn(e,Ti,vi):e.replace("]]>","]]]]><![CDATA[>"))+"]]>"}a(vR,"writeCdata");function TR(e,t){return t.ignoreDoctype?"":"<!DOCTYPE "+("doctypeFn"in t?t.doctypeFn(e,Ti,vi):e)+">"}a(TR,"writeDoctype");function PT(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(PT,"writeText");function tH(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(tH,"hasContent");function nH(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(Tg(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(ER(e[t.elementsKey],t,n+1)),vi=e,Ti=e.name),i.push(t.spaces&&tH(e,t)?`
|
|
29
|
-
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}a(nH,"writeElement");function ER(e,t,n,i){return e.reduce(function(r,o){var s=Io(t,n,i&&!r);switch(o.type){case"element":return r+s+nH(o,t,n);case"comment":return r+s+yR(o[t.commentKey],t);case"doctype":return r+s+TR(o[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+vR(o[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+PT(o[t.textKey],t);case"instruction":var l={};return l[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],r+(t.indentInstruction?s:"")+hR(l,t,n)}},"")}a(ER,"writeElements");function bR(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(bR,"hasContentCompact");function iH(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(">"+PT(e,n)+"</"+o+">"),s.join("");e[n.attributesKey]&&s.push(Tg(e[n.attributesKey],n,i));var l=bR(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(AR(e,n,i+1,!1)),vi=e,Ti=t,t&&s.push((r?Io(n,i,!1):"")+"</"+o+">"),s.join("")}a(iH,"writeElementCompact");function AR(e,t,n,i){var r,o,s,l=[];for(o in e)if(e.hasOwnProperty(o))for(s=ZG(e[o])?e[o]:[e[o]],r=0;r<s.length;++r){switch(o){case t.declarationKey:l.push(mR(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Io(t,n,i):"")+hR(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Io(t,n,i):"")+PT(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Io(t,n,i):"")+vR(s[r],t));break;case t.doctypeKey:l.push(Io(t,n,i)+TR(s[r],t));break;case t.commentKey:l.push(Io(t,n,i)+yR(s[r],t));break;default:l.push(Io(t,n,i)+iH(s[r],o,t,n,bR(s[r],t)))}i=i&&!l.length}return l.join("")}a(AR,"writeElementsCompact");SR.exports=function(e,t){t=eH(t);var n=[];return vi=e,Ti="_root_",t.compact?n.push(AR(e,t,0,!0)):(e[t.declarationKey]&&n.push(mR(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(ER(e[t.elementsKey],t,0,!n.length))),n.join("")}});var PR=Ve((Zq,xR)=>{var rH=OT();xR.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 rH(n,t)}});var tc=Ve((e9,OR)=>{var oH=xT(),aH=gR(),sH=OT(),cH=PR();OR.exports={xml2js:oH,xml2json:aH,js2xml:sH,json2xml:cH}});var FR=Ve(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.convertEntityTypeAnnotations=Ui.convertPropertyAnnotations=Ui.convertNavigationPropertyAnnotations=Ui.convertEntitySetAnnotations=Ui.convertGenericAnnotations=Ui.convertV2Annotations=void 0;function lH(e,t,n){let i=[];switch(t){case"EntitySet":CR(e,i);break;case"EntityType":RR(e,i);break;case"NavigationProperty":NR(e,n,i);break;case"Property":LR(e,n,i);break;case"Singleton":break;default:break}return IR(e,n,i),i}a(lH,"convertV2Annotations");Ui.convertV2Annotations=lH;function IR(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(IR,"convertGenericAnnotations");Ui.convertGenericAnnotations=IR;function CR(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(CR,"convertEntitySetAnnotations");Ui.convertEntitySetAnnotations=CR;function NR(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(NR,"convertNavigationPropertyAnnotations");Ui.convertNavigationPropertyAnnotations=NR;function LR(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(LR,"convertPropertyAnnotations");Ui.convertPropertyAnnotations=LR;function RR(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(RR,"convertEntityTypeAnnotations");Ui.convertEntityTypeAnnotations=RR});var $R=Ve(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.parse=void 0;var fH=tc(),Be=AT(),tu=FR(),wR=/^Collection\((.+)\)$/;function uH(e){return e.Type!==null&&e.Type!==void 0}a(uH,"isV4NavProperty");function pH(e){return e.map(t=>t._attributes.Name)}a(pH,"getEntityTypeKeys");function MR(e,t,n,i){return e.reduce((r,o)=>{let s={_type:"Property",name:o._attributes.Name,fullyQualifiedName:`${n}/${o._attributes.Name}`,type:ml(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,tu.convertV2Annotations)(o._attributes,"Property",o._attributes.Name);return l.length>0&&i.push(nc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}a(MR,"parseProperties");function dH(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}a(dH,"parseReferentialConstraint");function gH(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(gH,"parseV2ReferentialConstraint");function VR(e,t,n,i){return e.reduce((r,o)=>{let s=o._attributes;if(uH(s)){let l=s.Type.match(wR),u=l!==null,p=Co(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:dH((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,tu.convertV2Annotations)(s,"NavigationProperty",s.Name);d.length>0&&i.push(nc(`${n}/${s.Name}`,d))}return r},[])}a(VR,"parseNavigationProperties");function mH(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(mH,"parseAssociationSets");function hH(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:gH((0,Be.ensureArray)(n.ReferentialConstraint),r)}})}a(hH,"parseAssociations");function yH(e,t,n){return e.reduce((i,r)=>{let o=r.Key?pH((0,Be.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=MR((0,Be.ensureArray)(r.Property),o,s,t),p=VR((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,tu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(nc(d.fullyQualifiedName,m)),i.push(d),i},[])}a(yH,"parseEntityTypes");function vH(e,t,n){return e.reduce((i,r)=>{let o=`${n}.${r._attributes.Name}`,{entityProperties:s}=MR((0,Be.ensureArray)(r.Property),[],o,t),l=VR((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(vH,"parseComplexTypes");function TH(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(TH,"parseTypeDefinitions");function EH(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:Co(o._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,tu.convertV2Annotations)(o._attributes,"EntitySet",o._attributes.Name);return u.length>0&&i.push(nc(l.fullyQualifiedName,u)),l})}a(EH,"parseEntitySets");function bH(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:Co(o._attributes.Type),nullable:o._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,tu.convertV2Annotations)(o._attributes,"Singleton",o._attributes.Name);return u.length>0&&i.push(nc(l.fullyQualifiedName,u)),l})}a(bH,"parseSingletons");function _R(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=>ml(u._attributes.Type).type).join(","):s=o?ml(r[0]._attributes.Type).type:"";let l=`${t}.${i._attributes.Name}(${s})`;return{_type:"Action",name:i._attributes.Name,isBound:o,sourceType:o?ml(r[0]._attributes.Type).type:"",fullyQualifiedName:l,isFunction:n,parameters:r.map(u=>{let{isCollection:p,type:d}=ml(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?ml(i.ReturnType._attributes.Type).type:""}})}a(_R,"parseActions");function AH(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(AH,"parseV2FunctionImport");function DR(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Co(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Co(r)}})}a(DR,"parseActionImports");function SH(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=jR(s,p,n):u&&(l.value=kR({[u]:o[u]},p,n)),i.Annotation){let d=Ag((0,Be.ensureArray)(i.Annotation),p,n);d&&d.length>0&&n.push(nc(p,d))}}return l})}a(SH,"parsePropertyValues");function bg(e,t,n){let i=Ag((0,Be.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Co(e._attributes.Type):void 0,propertyValues:SH((0,Be.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}a(bg,"parseRecord");function pa(e,t){return e[t]!=null}a(pa,"isExpressionOfType");function Eg(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(Eg,"parseModelPath");function CT(e,t,n){if(pa(e,"Record")){let i=(0,Be.ensureArray)(e.Record).map((r,o)=>bg(r,t+"/"+o,n));return i.type="Record",i}else if(pa(e,"PropertyPath")){let i=(0,Be.ensureArray)(e.PropertyPath).map(r=>Eg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(pa(e,"NavigationPropertyPath")){let i=(0,Be.ensureArray)(e.NavigationPropertyPath).map(r=>Eg(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(pa(e,"String")){let i=(0,Be.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(pa(e,"AnnotationPath")){let i=(0,Be.ensureArray)(e.AnnotationPath).map(r=>Eg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(pa(e,"Path")){let i=(0,Be.ensureArray)(e.Path).map(r=>Eg(r,"Path"));return i.type="Path",i}else if(pa(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(CT,"parseCollection");function kR(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:CT(e.Collection,t,n)};case"Record":return{type:"Record",Record:bg(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(kR,"parseInlineExpression");function jR(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:CT(e.Collection,t,n)};case"Record":return{type:"Record",Record:bg(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(jR,"parseExpression");function xH(e,t,n){let{Term:i,Qualifier:r,...o}=e._attributes,s={term:Co(i),qualifier:r},l=`${t}@${Co(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),o&&Object.keys(o).length>0&&(s.value=kR(o,l,n)),e.Annotation){let p=Ag((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 pa(e,"Record")?s.record=bg(e.Record,l,n):pa(e,"Collection")?s.collection=CT(e.Collection,l,n):u.length===1?s.value=jR({[u[0]]:e[u[0]]},l,n):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}a(xH,"parseAnnotation");function Ag(e,t,n){return e.map(i=>xH(i,t,n))}a(Ag,"parseAnnotations");function nc(e,t){return{target:e,annotations:t}}a(nc,"createAnnotationList");function PH(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(nc(Co(n._attributes.Target),Ag((0,Be.ensureArray)(n.Annotation),n._attributes.Target,t)))})}a(PH,"parseAnnotationLists");function OH(e,t,n){let i=e._attributes.Namespace,r=[],o=yH((0,Be.ensureArray)(e.EntityType),r,i),s=vH((0,Be.ensureArray)(e.ComplexType),r,i),l=TH((0,Be.ensureArray)(e.TypeDefinition),i),u=[],p=[],d=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],b=[];if(e.EntityContainer)if(u=EH((0,Be.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=bH((0,Be.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),d=mH((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(AH((0,Be.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")b=b.concat(DR((0,Be.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),b=b.concat(DR((0,Be.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(_R((0,Be.ensureArray)(e.Action),i,!1)),T=T.concat(_R((0,Be.ensureArray)(e.Function),i,!0)));let E=hH((0,Be.ensureArray)(e.Association),i);PH((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(OH,"parseSchema");function IH(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(IH,"parseReferences");var IT={};function ml(e){let t=e.match(wR),n=t?t[1]:e,i=Co(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}a(ml,"unaliasType");function Co(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=IT[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(Co,"unalias");function CH(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 L=C,R=n.find(F=>F.association===L.relationship);if(R){let F=R.associationEnd.find(U=>U.entitySet!==b.fullyQualifiedName);F&&(b.navigationPropertyBinding[C.name]=F.entitySet)}})}),o.forEach(b=>{b.navigationProperties.forEach(E=>{let C=E,L=t.find(R=>R.fullyQualifiedName===C.relationship);L&&L.referentialConstraints&&L.referentialConstraints.length>0&&(L.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?C.referentialConstraint=L.referentialConstraints:C.referentialConstraint=L.referentialConstraints.map(R=>({sourceTypeName:R.targetTypeName,sourceProperty:R.targetProperty,targetTypeName:R.sourceTypeName,targetProperty:R.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(CH,"mergeSchemas");function NH(e,t){IT=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{IT[n._attributes.Alias]=n._attributes.Namespace})}a(NH,"createAliasMap");function LH(e,t="serviceFile"){let n=(0,fH.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Be.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),o=IH((0,Be.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));NH(o,r);let s=r.map(u=>OH(u,i,t));return new Be.RawMetadataInstance(t,i,CH(s),o)}a(LH,"parse");Sg.parse=LH});var UR=Ve(hl=>{"use strict";Object.defineProperty(hl,"__esModule",{value:!0});hl.parse=hl.merge=void 0;var RH=eR();Object.defineProperty(hl,"merge",{enumerable:!0,get:function(){return RH.merge}});var FH=$R();Object.defineProperty(hl,"parse",{enumerable:!0,get:function(){return FH.parse}})});var tF=Ve(()=>{var eF;(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 Bs(Object.create(null))}:u?function(){return Bs({__proto__:null})}:function(){return Bs({})},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:Nf(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Lf(),E=typeof WeakMap=="function"?WeakMap:Rf(),C=r?Symbol.for("@reflect-metadata:registry"):void 0,L=Mi(),R=Cf(L);function F($,W,Q,ie){if(Le(Q)){if(!ct($))throw new TypeError;if(!Tt(W))throw new TypeError;return Xt($,W)}else{if(!ct($))throw new TypeError;if(!Ye(W))throw new TypeError;if(!Ye(ie)&&!Le(ie)&&!Rn(ie))throw new TypeError;return Rn(ie)&&(ie=void 0),Q=Re(Q),wi($,W,Q,ie)}}a(F,"decorate"),t("decorate",F);function U($,W){function Q(ie,Ne){if(!Ye(ie))throw new TypeError;if(!Le(Ne)&&!sn(Ne))throw new TypeError;jn($,W,ie,Ne)}return a(Q,"decorator"),Q}a(U,"metadata"),t("metadata",U);function J($,W,Q,ie){if(!Ye(Q))throw new TypeError;return Le(ie)||(ie=Re(ie)),jn($,W,Q,ie)}a(J,"defineMetadata"),t("defineMetadata",J);function re($,W,Q){if(!Ye(W))throw new TypeError;return Le(Q)||(Q=Re(Q)),dn($,W,Q)}a(re,"hasMetadata"),t("hasMetadata",re);function Ce($,W,Q){if(!Ye(W))throw new TypeError;return Le(Q)||(Q=Re(Q)),Zt($,W,Q)}a(Ce,"hasOwnMetadata"),t("hasOwnMetadata",Ce);function st($,W,Q){if(!Ye(W))throw new TypeError;return Le(Q)||(Q=Re(Q)),Fe($,W,Q)}a(st,"getMetadata"),t("getMetadata",st);function k($,W,Q){if(!Ye(W))throw new TypeError;return Le(Q)||(Q=Re(Q)),Kn($,W,Q)}a(k,"getOwnMetadata"),t("getOwnMetadata",k);function It($,W){if(!Ye($))throw new TypeError;return Le(W)||(W=Re(W)),en($,W)}a(It,"getMetadataKeys"),t("getMetadataKeys",It);function mt($,W){if(!Ye($))throw new TypeError;return Le(W)||(W=Re(W)),Ln($,W)}a(mt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",mt);function Ke($,W,Q){if(!Ye(W))throw new TypeError;if(Le(Q)||(Q=Re(Q)),!Ye(W))throw new TypeError;Le(Q)||(Q=Re(Q));var ie=Ar(W,Q,!1);return Le(ie)?!1:ie.OrdinaryDeleteMetadata($,W,Q)}a(Ke,"deleteMetadata"),t("deleteMetadata",Ke);function Xt($,W){for(var Q=$.length-1;Q>=0;--Q){var ie=$[Q],Ne=ie(W);if(!Le(Ne)&&!Rn(Ne)){if(!Tt(Ne))throw new TypeError;W=Ne}}return W}a(Xt,"DecorateConstructor");function wi($,W,Q,ie){for(var Ne=$.length-1;Ne>=0;--Ne){var ln=$[Ne],Sn=ln(W,Q,ie);if(!Le(Sn)&&!Rn(Sn)){if(!Ye(Sn))throw new TypeError;ie=Sn}}return ie}a(wi,"DecorateProperty");function dn($,W,Q){var ie=Zt($,W,Q);if(ie)return!0;var Ne=Vt(W);return Rn(Ne)?!1:dn($,Ne,Q)}a(dn,"OrdinaryHasMetadata");function Zt($,W,Q){var ie=Ar(W,Q,!1);return Le(ie)?!1:Y(ie.OrdinaryHasOwnMetadata($,W,Q))}a(Zt,"OrdinaryHasOwnMetadata");function Fe($,W,Q){var ie=Zt($,W,Q);if(ie)return Kn($,W,Q);var Ne=Vt(W);if(!Rn(Ne))return Fe($,Ne,Q)}a(Fe,"OrdinaryGetMetadata");function Kn($,W,Q){var ie=Ar(W,Q,!1);if(!Le(ie))return ie.OrdinaryGetOwnMetadata($,W,Q)}a(Kn,"OrdinaryGetOwnMetadata");function jn($,W,Q,ie){var Ne=Ar(Q,ie,!0);Ne.OrdinaryDefineOwnMetadata($,W,Q,ie)}a(jn,"OrdinaryDefineOwnMetadata");function en($,W){var Q=Ln($,W),ie=Vt($);if(ie===null)return Q;var Ne=en(ie,W);if(Ne.length<=0)return Q;if(Q.length<=0)return Ne;for(var ln=new b,Sn=[],qe=0,ue=Q;qe<ue.length;qe++){var xe=ue[qe],be=ln.has(xe);be||(ln.add(xe),Sn.push(xe))}for(var Oe=0,nt=Ne;Oe<nt.length;Oe++){var xe=nt[Oe],be=ln.has(xe);be||(ln.add(xe),Sn.push(xe))}return Sn}a(en,"OrdinaryMetadataKeys");function Ln($,W){var Q=Ar($,W,!1);return Q?Q.OrdinaryOwnMetadataKeys($,W):[]}a(Ln,"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 Le($){return $===void 0}a(Le,"IsUndefined");function Rn($){return $===null}a(Rn,"IsNull");function Xn($){return typeof $=="symbol"}a(Xn,"IsSymbol");function Ye($){return typeof $=="object"?$!==null:typeof $=="function"}a(Ye,"IsObject");function I($,W){switch(ni($)){case 0:return $;case 1:return $;case 2:return $;case 3:return $;case 4:return $;case 5:return $}var Q=W===3?"string":W===5?"number":"default",ie=Mt($,o);if(ie!==void 0){var Ne=ie.call($,Q);if(Ye(Ne))throw new TypeError;return Ne}return S($,Q==="default"?"number":Q)}a(I,"ToPrimitive");function S($,W){if(W==="string"){var Q=$.toString;if(je(Q)){var ie=Q.call($);if(!Ye(ie))return ie}var Ne=$.valueOf;if(je(Ne)){var ie=Ne.call($);if(!Ye(ie))return ie}}else{var Ne=$.valueOf;if(je(Ne)){var ie=Ne.call($);if(!Ye(ie))return ie}var ln=$.toString;if(je(ln)){var ie=ln.call($);if(!Ye(ie))return ie}}throw new TypeError}a(S,"OrdinaryToPrimitive");function Y($){return!!$}a(Y,"ToBoolean");function M($){return""+$}a(M,"ToString");function Re($){var W=I($,3);return Xn(W)?W:M(W)}a(Re,"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 Tt($){return typeof $=="function"}a(Tt,"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 Q=$[W];if(Q!=null){if(!je(Q))throw new TypeError;return Q}}a(Mt,"GetMethod");function ii($){var W=Mt($,s);if(!je(W))throw new TypeError;var Q=W.call($);if(!Ye(Q))throw new TypeError;return Q}a(ii,"GetIterator");function nr($){return $.value}a(nr,"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 Q=$.prototype,ie=Q&&Object.getPrototypeOf(Q);if(ie==null||ie===Object.prototype)return W;var Ne=ie.constructor;return typeof Ne!="function"||Ne===$?W:Ne}a(Vt,"OrdinaryGetPrototypeOf");function qo(){var $;!Le(C)&&typeof n.Reflect<"u"&&!(C in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&($=Us(n.Reflect));var W,Q,ie,Ne=new E,ln={registerProvider:Sn,getProvider:ue,setProvider:be};return ln;function Sn(Oe){if(!Object.isExtensible(ln))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case $===Oe:break;case Le(W):W=Oe;break;case W===Oe:break;case Le(Q):Q=Oe;break;case Q===Oe:break;default:ie===void 0&&(ie=new b),ie.add(Oe);break}}function qe(Oe,nt){if(!Le(W)){if(W.isProviderFor(Oe,nt))return W;if(!Le(Q)){if(Q.isProviderFor(Oe,nt))return W;if(!Le(ie))for(var kt=ii(ie);;){var nn=cn(kt);if(!nn)return;var ir=nr(nn);if(ir.isProviderFor(Oe,nt))return pi(kt),ir}}}if(!Le($)&&$.isProviderFor(Oe,nt))return $}function ue(Oe,nt){var kt=Ne.get(Oe),nn;return Le(kt)||(nn=kt.get(nt)),Le(nn)&&(nn=qe(Oe,nt),Le(nn)||(Le(kt)&&(kt=new T,Ne.set(Oe,kt)),kt.set(nt,nn))),nn}function xe(Oe){if(Le(Oe))throw new TypeError;return W===Oe||Q===Oe||!Le(ie)&&ie.has(Oe)}function be(Oe,nt,kt){if(!xe(kt))throw new Error("Metadata provider not registered.");var nn=ue(Oe,nt);if(nn!==kt){if(!Le(nn))return!1;var ir=Ne.get(Oe);Le(ir)&&(ir=new T,Ne.set(Oe,ir)),ir.set(nt,kt)}return!0}}a(qo,"CreateMetadataRegistry");function Mi(){var $;return!Le(C)&&Ye(n.Reflect)&&Object.isExtensible(n.Reflect)&&($=n.Reflect[C]),Le($)&&($=qo()),!Le(C)&&Ye(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,C,{enumerable:!1,configurable:!1,writable:!1,value:$}),$}a(Mi,"GetOrCreateMetadataRegistry");function Cf($){var W=new E,Q={isProviderFor:function(xe,be){var Oe=W.get(xe);return Le(Oe)?!1:Oe.has(be)},OrdinaryDefineOwnMetadata:Sn,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:ln,OrdinaryOwnMetadataKeys:qe,OrdinaryDeleteMetadata:ue};return L.registerProvider(Q),Q;function ie(xe,be,Oe){var nt=W.get(xe),kt=!1;if(Le(nt)){if(!Oe)return;nt=new T,W.set(xe,nt),kt=!0}var nn=nt.get(be);if(Le(nn)){if(!Oe)return;if(nn=new T,nt.set(be,nn),!$.setProvider(xe,be,Q))throw nt.delete(be),kt&&W.delete(xe),new Error("Wrong provider for target.")}return nn}a(ie,"GetOrCreateMetadataMap");function Ne(xe,be,Oe){var nt=ie(be,Oe,!1);return Le(nt)?!1:Y(nt.has(xe))}a(Ne,"OrdinaryHasOwnMetadata");function ln(xe,be,Oe){var nt=ie(be,Oe,!1);if(!Le(nt))return nt.get(xe)}a(ln,"OrdinaryGetOwnMetadata");function Sn(xe,be,Oe,nt){var kt=ie(Oe,nt,!0);kt.set(xe,be)}a(Sn,"OrdinaryDefineOwnMetadata");function qe(xe,be){var Oe=[],nt=ie(xe,be,!1);if(Le(nt))return Oe;for(var kt=nt.keys(),nn=ii(kt),ir=0;;){var ud=cn(nn);if(!ud)return Oe.length=ir,Oe;var jy=nr(ud);try{Oe[ir]=jy}catch(Ff){try{pi(nn)}finally{throw Ff}}ir++}}a(qe,"OrdinaryOwnMetadataKeys");function ue(xe,be,Oe){var nt=ie(be,Oe,!1);if(Le(nt)||!nt.delete(xe))return!1;if(nt.size===0){var kt=W.get(be);Le(kt)||(kt.delete(Oe),kt.size===0&&W.delete(kt))}return!0}a(ue,"OrdinaryDeleteMetadata")}a(Cf,"CreateMetadataProvider");function Us($){var W=$.defineMetadata,Q=$.hasOwnMetadata,ie=$.getOwnMetadata,Ne=$.getOwnMetadataKeys,ln=$.deleteMetadata,Sn=new E,qe={isProviderFor:function(ue,xe){var be=Sn.get(ue);return Le(be)?Ne(ue,xe).length?(Le(be)&&(be=new b,Sn.set(ue,be)),be.add(xe),!0):!1:be.has(xe)},OrdinaryDefineOwnMetadata:W,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ie,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:ln};return qe}a(Us,"CreateFallbackProvider");function Ar($,W,Q){var ie=L.getProvider($,W);if(!Le(ie))return ie;if(Q){if(L.setProvider($,W,R))return R;throw new Error("Illegal state.")}}a(Ar,"GetMetadataProvider");function Nf(){var $={},W=[],Q=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,Oe=xe+1;Oe<be;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];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 Q(this._keys,this._values,Ne)},qe.prototype.values=function(){return new Q(this._keys,this._values,ln)},qe.prototype.entries=function(){return new Q(this._keys,this._values,Sn)},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 Sn(qe,ue){return[qe,ue]}}a(Nf,"CreateMapPolyfill");function Lf(){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(Q){return this._map.has(Q)},W.prototype.add=function(Q){return this._map.set(Q,Q),this},W.prototype.delete=function(Q){return this._map.delete(Q)},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(Lf,"CreateSetPolyfill");function Rf(){var $=16,W=d.create(),Q=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 Oe=Ne(xe,!0);return Oe[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,Q)){if(!xe)return;Object.defineProperty(ue,Q,{value:d.create()})}return ue[Q]}function ln(ue,xe){for(var be=0;be<xe;++be)ue[be]=Math.random()*255|0;return ue}function Sn(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=Sn($);ue[6]=ue[6]&79|64,ue[8]=ue[8]&191|128;for(var xe="",be=0;be<$;++be){var Oe=ue[be];(be===4||be===6||be===8)&&(xe+="-"),Oe<16&&(xe+="0"),xe+=Oe.toString(16).toLowerCase()}return xe}}a(Rf,"CreateWeakMapPolyfill");function Bs($){return $.__=void 0,delete $.__,$}a(Bs,"MakeDictionary")})})(eF||(eF={}))});var sF=Ve((b9,aF)=>{var ZH=0,oF="changeUtils: ";function e5(){return"id-"+new Date().valueOf()+"-"+ZH++}a(e5,"uid");function t5(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}a(t5,"appendComponentToReference");function n5(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return t5(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}a(n5,"getFlexReference");function i5(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(i5,"getAppVersion");function r5(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}a(r5,"getProjectId");function rF(e){return JSON.stringify({fileName:e.id||e5().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:oF+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(rF,"createString");aF.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(oF,""),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=n5(t),e.appVersion=i5(t),e.projectId=r5(t,e.reference),rF(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 rF(e)}}});var lF=Ve((S9,cF)=>{cF.exports={change:sF()}});var JF=Ve(Vo=>{"use strict";var M5=/[|\\{}()[\]^$+*?.]/g,V5=Object.prototype.hasOwnProperty,XF=a(function(e,t){return V5.apply(e,[t])},"hasOwn");Vo.escapeRegExpChars=function(e){return e?String(e).replace(M5,"\\$&"):""};var k5={"&":"&","<":"<",">":">",'"':""","'":"'"},j5=/[&<>'"]/g;function $5(e){return k5[e]||e}a($5,"encode_char");var U5=`var _ENCODE_HTML_RULES = {
|
|
29
|
+
`+Array(n+1).join(t.spaces):""),i.push("</"+r+">")):i.push("/>"),i.join("")}a(nH,"writeElement");function ER(e,t,n,i){return e.reduce(function(r,o){var s=Io(t,n,i&&!r);switch(o.type){case"element":return r+s+nH(o,t,n);case"comment":return r+s+yR(o[t.commentKey],t);case"doctype":return r+s+TR(o[t.doctypeKey],t);case"cdata":return r+(t.indentCdata?s:"")+vR(o[t.cdataKey],t);case"text":return r+(t.indentText?s:"")+PT(o[t.textKey],t);case"instruction":var l={};return l[o[t.nameKey]]=o[t.attributesKey]?o:o[t.instructionKey],r+(t.indentInstruction?s:"")+hR(l,t,n)}},"")}a(ER,"writeElements");function bR(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(bR,"hasContentCompact");function iH(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(">"+PT(e,n)+"</"+o+">"),s.join("");e[n.attributesKey]&&s.push(Tg(e[n.attributesKey],n,i));var l=bR(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(AR(e,n,i+1,!1)),vi=e,Ti=t,t&&s.push((r?Io(n,i,!1):"")+"</"+o+">"),s.join("")}a(iH,"writeElementCompact");function AR(e,t,n,i){var r,o,s,l=[];for(o in e)if(e.hasOwnProperty(o))for(s=ZG(e[o])?e[o]:[e[o]],r=0;r<s.length;++r){switch(o){case t.declarationKey:l.push(mR(s[r],t,n));break;case t.instructionKey:l.push((t.indentInstruction?Io(t,n,i):"")+hR(s[r],t,n));break;case t.attributesKey:case t.parentKey:break;case t.textKey:l.push((t.indentText?Io(t,n,i):"")+PT(s[r],t));break;case t.cdataKey:l.push((t.indentCdata?Io(t,n,i):"")+vR(s[r],t));break;case t.doctypeKey:l.push(Io(t,n,i)+TR(s[r],t));break;case t.commentKey:l.push(Io(t,n,i)+yR(s[r],t));break;default:l.push(Io(t,n,i)+iH(s[r],o,t,n,bR(s[r],t)))}i=i&&!l.length}return l.join("")}a(AR,"writeElementsCompact");SR.exports=function(e,t){t=eH(t);var n=[];return vi=e,Ti="_root_",t.compact?n.push(AR(e,t,0,!0)):(e[t.declarationKey]&&n.push(mR(e[t.declarationKey],t,0)),e[t.elementsKey]&&e[t.elementsKey].length&&n.push(ER(e[t.elementsKey],t,0,!n.length))),n.join("")}});var PR=Ve((n9,xR)=>{var rH=OT();xR.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 rH(n,t)}});var tc=Ve((i9,OR)=>{var oH=xT(),aH=gR(),sH=OT(),cH=PR();OR.exports={xml2js:oH,xml2json:aH,js2xml:sH,json2xml:cH}});var FR=Ve(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.convertEntityTypeAnnotations=Ui.convertPropertyAnnotations=Ui.convertNavigationPropertyAnnotations=Ui.convertEntitySetAnnotations=Ui.convertGenericAnnotations=Ui.convertV2Annotations=void 0;function lH(e,t,n){let i=[];switch(t){case"EntitySet":CR(e,i);break;case"EntityType":RR(e,i);break;case"NavigationProperty":NR(e,n,i);break;case"Property":LR(e,n,i);break;case"Singleton":break;default:break}return IR(e,n,i),i}a(lH,"convertV2Annotations");Ui.convertV2Annotations=lH;function IR(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(IR,"convertGenericAnnotations");Ui.convertGenericAnnotations=IR;function CR(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(CR,"convertEntitySetAnnotations");Ui.convertEntitySetAnnotations=CR;function NR(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(NR,"convertNavigationPropertyAnnotations");Ui.convertNavigationPropertyAnnotations=NR;function LR(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(LR,"convertPropertyAnnotations");Ui.convertPropertyAnnotations=LR;function RR(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(RR,"convertEntityTypeAnnotations");Ui.convertEntityTypeAnnotations=RR});var $R=Ve(Sg=>{"use strict";Object.defineProperty(Sg,"__esModule",{value:!0});Sg.parse=void 0;var fH=tc(),Be=AT(),tu=FR(),wR=/^Collection\((.+)\)$/;function uH(e){return e.Type!==null&&e.Type!==void 0}a(uH,"isV4NavProperty");function pH(e){return e.map(t=>t._attributes.Name)}a(pH,"getEntityTypeKeys");function MR(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,tu.convertV2Annotations)(o._attributes,"Property",o._attributes.Name);return l.length>0&&i.push(nc(s.fullyQualifiedName,l)),r},{entityProperties:[],entityKeys:[]})}a(MR,"parseProperties");function dH(e,t,n){return e.reduce((i,r)=>(i.push({sourceTypeName:t,sourceProperty:r._attributes.Property,targetTypeName:n,targetProperty:r._attributes.ReferencedProperty}),i),[])}a(dH,"parseReferentialConstraint");function gH(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(gH,"parseV2ReferentialConstraint");function VR(e,t,n,i){return e.reduce((r,o)=>{let s=o._attributes;if(uH(s)){let l=s.Type.match(wR),u=l!==null,p=Co(l?l[1]:s.Type);r.push({_type:"NavigationProperty",name:s.Name,fullyQualifiedName:`${n}/${s.Name}`,partner:s.Partner,containsTarget:s.ContainsTarget==="true",isCollection:u,targetTypeName:p,referentialConstraint:dH((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,tu.convertV2Annotations)(s,"NavigationProperty",s.Name);d.length>0&&i.push(nc(`${n}/${s.Name}`,d))}return r},[])}a(VR,"parseNavigationProperties");function mH(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(mH,"parseAssociationSets");function hH(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:gH((0,Be.ensureArray)(n.ReferentialConstraint),r)}})}a(hH,"parseAssociations");function yH(e,t,n){return e.reduce((i,r)=>{let o=r.Key?pH((0,Be.ensureArray)(r.Key.PropertyRef)):[],s=`${n}.${r._attributes.Name}`,{entityProperties:l,entityKeys:u}=MR((0,Be.ensureArray)(r.Property),o,s,t),p=VR((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,tu.convertV2Annotations)(r._attributes,"EntityType",r._attributes.Name);return m.length>0&&t.push(nc(d.fullyQualifiedName,m)),i.push(d),i},[])}a(yH,"parseEntityTypes");function vH(e,t,n){return e.reduce((i,r)=>{let o=`${n}.${r._attributes.Name}`,{entityProperties:s}=MR((0,Be.ensureArray)(r.Property),[],o,t),l=VR((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(vH,"parseComplexTypes");function TH(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(TH,"parseTypeDefinitions");function EH(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:Co(o._attributes.EntityType),navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,tu.convertV2Annotations)(o._attributes,"EntitySet",o._attributes.Name);return u.length>0&&i.push(nc(l.fullyQualifiedName,u)),l})}a(EH,"parseEntitySets");function bH(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:Co(o._attributes.Type),nullable:o._attributes.Nullable!=="false",navigationPropertyBinding:s,fullyQualifiedName:`${t}.${n}/${o._attributes.Name}`},u=(0,tu.convertV2Annotations)(o._attributes,"Singleton",o._attributes.Name);return u.length>0&&i.push(nc(l.fullyQualifiedName,u)),l})}a(bH,"parseSingletons");function _R(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(_R,"parseActions");function AH(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(AH,"parseV2FunctionImport");function DR(e,t){return e.map(n=>{var i;let r=(i=n._attributes.Function)!==null&&i!==void 0?i:n._attributes.Action;return{_type:"ActionImport",name:Co(n._attributes.Name),fullyQualifiedName:`${t}/${n._attributes.Name}`,actionName:Co(r)}})}a(DR,"parseActionImports");function SH(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=jR(s,p,n):u&&(l.value=kR({[u]:o[u]},p,n)),i.Annotation){let d=Ag((0,Be.ensureArray)(i.Annotation),p,n);d&&d.length>0&&n.push(nc(p,d))}}return l})}a(SH,"parsePropertyValues");function bg(e,t,n){let i=Ag((0,Be.ensureArray)(e.Annotation),t,n),r={type:e._attributes?Co(e._attributes.Type):void 0,propertyValues:SH((0,Be.ensureArray)(e.PropertyValue),t,n)};return i&&i.length>0&&(r.annotations=i),r}a(bg,"parseRecord");function pa(e,t){return e[t]!=null}a(pa,"isExpressionOfType");function Eg(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(Eg,"parseModelPath");function CT(e,t,n){if(pa(e,"Record")){let i=(0,Be.ensureArray)(e.Record).map((r,o)=>bg(r,t+"/"+o,n));return i.type="Record",i}else if(pa(e,"PropertyPath")){let i=(0,Be.ensureArray)(e.PropertyPath).map(r=>Eg(r,"PropertyPath"));return i.type="PropertyPath",i}else if(pa(e,"NavigationPropertyPath")){let i=(0,Be.ensureArray)(e.NavigationPropertyPath).map(r=>Eg(r,"NavigationPropertyPath"));return i.type="NavigationPropertyPath",i}else if(pa(e,"String")){let i=(0,Be.ensureArray)(e.String).map(r=>r._text);return i.type="String",i}else if(pa(e,"AnnotationPath")){let i=(0,Be.ensureArray)(e.AnnotationPath).map(r=>Eg(r,"AnnotationPath"));return i.type="AnnotationPath",i}else if(pa(e,"Path")){let i=(0,Be.ensureArray)(e.Path).map(r=>Eg(r,"Path"));return i.type="Path",i}else if(pa(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(CT,"parseCollection");function kR(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:CT(e.Collection,t,n)};case"Record":return{type:"Record",Record:bg(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(kR,"parseInlineExpression");function jR(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:CT(e.Collection,t,n)};case"Record":return{type:"Record",Record:bg(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(jR,"parseExpression");function xH(e,t,n){let{Term:i,Qualifier:r,...o}=e._attributes,s={term:Co(i),qualifier:r},l=`${t}@${Co(i)}`;if(r!==""&&r!==void 0&&(l+=`#${r}`),o&&Object.keys(o).length>0&&(s.value=kR(o,l,n)),e.Annotation){let p=Ag((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 pa(e,"Record")?s.record=bg(e.Record,l,n):pa(e,"Collection")?s.collection=CT(e.Collection,l,n):u.length===1?s.value=jR({[u[0]]:e[u[0]]},l,n):u.length>1&&console.error(`Cannot parse ${JSON.stringify(e)}, expression type is not supported`),s}a(xH,"parseAnnotation");function Ag(e,t,n){return e.map(i=>xH(i,t,n))}a(Ag,"parseAnnotations");function nc(e,t){return{target:e,annotations:t}}a(nc,"createAnnotationList");function PH(e,t){e.filter(n=>n._attributes!==void 0).forEach(n=>{t.push(nc(Co(n._attributes.Target),Ag((0,Be.ensureArray)(n.Annotation),n._attributes.Target,t)))})}a(PH,"parseAnnotationLists");function OH(e,t,n){let i=e._attributes.Namespace,r=[],o=yH((0,Be.ensureArray)(e.EntityType),r,i),s=vH((0,Be.ensureArray)(e.ComplexType),r,i),l=TH((0,Be.ensureArray)(e.TypeDefinition),i),u=[],p=[],d=[],m={_type:"EntityContainer",fullyQualifiedName:""},T=[],b=[];if(e.EntityContainer)if(u=EH((0,Be.ensureArray)(e.EntityContainer.EntitySet),i,e.EntityContainer._attributes.Name,r),p=bH((0,Be.ensureArray)(e.EntityContainer.Singleton),i,e.EntityContainer._attributes.Name,r),d=mH((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(AH((0,Be.ensureArray)(e.EntityContainer.FunctionImport),u,m.fullyQualifiedName));else if(t==="4.0")b=b.concat(DR((0,Be.ensureArray)(e.EntityContainer.FunctionImport),m.fullyQualifiedName)),b=b.concat(DR((0,Be.ensureArray)(e.EntityContainer.ActionImport),m.fullyQualifiedName));else throw new Error(`Unsupported EDMX version: ${t}`);t==="4.0"&&(T=T.concat(_R((0,Be.ensureArray)(e.Action),i,!1)),T=T.concat(_R((0,Be.ensureArray)(e.Function),i,!0)));let E=hH((0,Be.ensureArray)(e.Association),i);PH((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(OH,"parseSchema");function IH(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(IH,"parseReferences");var IT={};function hl(e){let t=e.match(wR),n=t?t[1]:e,i=Co(n);return{type:t?`Collection(${i})`:i,isCollection:t!==null}}a(hl,"unaliasType");function Co(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=IT[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(Co,"unalias");function CH(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 L=C,R=n.find(F=>F.association===L.relationship);if(R){let F=R.associationEnd.find(U=>U.entitySet!==b.fullyQualifiedName);F&&(b.navigationPropertyBinding[C.name]=F.entitySet)}})}),o.forEach(b=>{b.navigationProperties.forEach(E=>{let C=E,L=t.find(R=>R.fullyQualifiedName===C.relationship);L&&L.referentialConstraints&&L.referentialConstraints.length>0&&(L.referentialConstraints[0].sourceTypeName===b.fullyQualifiedName?C.referentialConstraint=L.referentialConstraints:C.referentialConstraint=L.referentialConstraints.map(R=>({sourceTypeName:R.targetTypeName,sourceProperty:R.targetProperty,targetTypeName:R.sourceTypeName,targetProperty:R.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(CH,"mergeSchemas");function NH(e,t){IT=e.reduce((n,i)=>(n[i.alias]=i.namespace,n),{}),t.filter(n=>n._attributes.Alias).forEach(n=>{IT[n._attributes.Alias]=n._attributes.Namespace})}a(NH,"createAliasMap");function LH(e,t="serviceFile"){let n=(0,fH.xml2js)(e,{compact:!0}),i=n["edmx:Edmx"]._attributes.Version,r=(0,Be.ensureArray)(n["edmx:Edmx"]["edmx:DataServices"].Schema),o=IH((0,Be.ensureArray)(n["edmx:Edmx"]["edmx:Reference"]));NH(o,r);let s=r.map(u=>OH(u,i,t));return new Be.RawMetadataInstance(t,i,CH(s),o)}a(LH,"parse");Sg.parse=LH});var UR=Ve(yl=>{"use strict";Object.defineProperty(yl,"__esModule",{value:!0});yl.parse=yl.merge=void 0;var RH=eR();Object.defineProperty(yl,"merge",{enumerable:!0,get:function(){return RH.merge}});var FH=$R();Object.defineProperty(yl,"parse",{enumerable:!0,get:function(){return FH.parse}})});var tF=Ve(()=>{var eF;(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 Bs(Object.create(null))}:u?function(){return Bs({__proto__:null})}:function(){return Bs({})},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:Nf(),b=typeof Set=="function"&&typeof Set.prototype.entries=="function"?Set:Lf(),E=typeof WeakMap=="function"?WeakMap:Rf(),C=r?Symbol.for("@reflect-metadata:registry"):void 0,L=Mi(),R=Cf(L);function F($,W,Q,ie){if(Le(Q)){if(!ct($))throw new TypeError;if(!Tt(W))throw new TypeError;return Xt($,W)}else{if(!ct($))throw new TypeError;if(!Ye(W))throw new TypeError;if(!Ye(ie)&&!Le(ie)&&!Rn(ie))throw new TypeError;return Rn(ie)&&(ie=void 0),Q=Re(Q),wi($,W,Q,ie)}}a(F,"decorate"),t("decorate",F);function U($,W){function Q(ie,Ne){if(!Ye(ie))throw new TypeError;if(!Le(Ne)&&!sn(Ne))throw new TypeError;jn($,W,ie,Ne)}return a(Q,"decorator"),Q}a(U,"metadata"),t("metadata",U);function J($,W,Q,ie){if(!Ye(Q))throw new TypeError;return Le(ie)||(ie=Re(ie)),jn($,W,Q,ie)}a(J,"defineMetadata"),t("defineMetadata",J);function re($,W,Q){if(!Ye(W))throw new TypeError;return Le(Q)||(Q=Re(Q)),dn($,W,Q)}a(re,"hasMetadata"),t("hasMetadata",re);function Ce($,W,Q){if(!Ye(W))throw new TypeError;return Le(Q)||(Q=Re(Q)),Zt($,W,Q)}a(Ce,"hasOwnMetadata"),t("hasOwnMetadata",Ce);function st($,W,Q){if(!Ye(W))throw new TypeError;return Le(Q)||(Q=Re(Q)),Fe($,W,Q)}a(st,"getMetadata"),t("getMetadata",st);function k($,W,Q){if(!Ye(W))throw new TypeError;return Le(Q)||(Q=Re(Q)),Kn($,W,Q)}a(k,"getOwnMetadata"),t("getOwnMetadata",k);function It($,W){if(!Ye($))throw new TypeError;return Le(W)||(W=Re(W)),en($,W)}a(It,"getMetadataKeys"),t("getMetadataKeys",It);function mt($,W){if(!Ye($))throw new TypeError;return Le(W)||(W=Re(W)),Ln($,W)}a(mt,"getOwnMetadataKeys"),t("getOwnMetadataKeys",mt);function Ke($,W,Q){if(!Ye(W))throw new TypeError;if(Le(Q)||(Q=Re(Q)),!Ye(W))throw new TypeError;Le(Q)||(Q=Re(Q));var ie=Ar(W,Q,!1);return Le(ie)?!1:ie.OrdinaryDeleteMetadata($,W,Q)}a(Ke,"deleteMetadata"),t("deleteMetadata",Ke);function Xt($,W){for(var Q=$.length-1;Q>=0;--Q){var ie=$[Q],Ne=ie(W);if(!Le(Ne)&&!Rn(Ne)){if(!Tt(Ne))throw new TypeError;W=Ne}}return W}a(Xt,"DecorateConstructor");function wi($,W,Q,ie){for(var Ne=$.length-1;Ne>=0;--Ne){var ln=$[Ne],Sn=ln(W,Q,ie);if(!Le(Sn)&&!Rn(Sn)){if(!Ye(Sn))throw new TypeError;ie=Sn}}return ie}a(wi,"DecorateProperty");function dn($,W,Q){var ie=Zt($,W,Q);if(ie)return!0;var Ne=Vt(W);return Rn(Ne)?!1:dn($,Ne,Q)}a(dn,"OrdinaryHasMetadata");function Zt($,W,Q){var ie=Ar(W,Q,!1);return Le(ie)?!1:Y(ie.OrdinaryHasOwnMetadata($,W,Q))}a(Zt,"OrdinaryHasOwnMetadata");function Fe($,W,Q){var ie=Zt($,W,Q);if(ie)return Kn($,W,Q);var Ne=Vt(W);if(!Rn(Ne))return Fe($,Ne,Q)}a(Fe,"OrdinaryGetMetadata");function Kn($,W,Q){var ie=Ar(W,Q,!1);if(!Le(ie))return ie.OrdinaryGetOwnMetadata($,W,Q)}a(Kn,"OrdinaryGetOwnMetadata");function jn($,W,Q,ie){var Ne=Ar(Q,ie,!0);Ne.OrdinaryDefineOwnMetadata($,W,Q,ie)}a(jn,"OrdinaryDefineOwnMetadata");function en($,W){var Q=Ln($,W),ie=Vt($);if(ie===null)return Q;var Ne=en(ie,W);if(Ne.length<=0)return Q;if(Q.length<=0)return Ne;for(var ln=new b,Sn=[],Ze=0,ue=Q;Ze<ue.length;Ze++){var xe=ue[Ze],be=ln.has(xe);be||(ln.add(xe),Sn.push(xe))}for(var Oe=0,nt=Ne;Oe<nt.length;Oe++){var xe=nt[Oe],be=ln.has(xe);be||(ln.add(xe),Sn.push(xe))}return Sn}a(en,"OrdinaryMetadataKeys");function Ln($,W){var Q=Ar($,W,!1);return Q?Q.OrdinaryOwnMetadataKeys($,W):[]}a(Ln,"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 Le($){return $===void 0}a(Le,"IsUndefined");function Rn($){return $===null}a(Rn,"IsNull");function Xn($){return typeof $=="symbol"}a(Xn,"IsSymbol");function Ye($){return typeof $=="object"?$!==null:typeof $=="function"}a(Ye,"IsObject");function I($,W){switch(ni($)){case 0:return $;case 1:return $;case 2:return $;case 3:return $;case 4:return $;case 5:return $}var Q=W===3?"string":W===5?"number":"default",ie=Mt($,o);if(ie!==void 0){var Ne=ie.call($,Q);if(Ye(Ne))throw new TypeError;return Ne}return S($,Q==="default"?"number":Q)}a(I,"ToPrimitive");function S($,W){if(W==="string"){var Q=$.toString;if(je(Q)){var ie=Q.call($);if(!Ye(ie))return ie}var Ne=$.valueOf;if(je(Ne)){var ie=Ne.call($);if(!Ye(ie))return ie}}else{var Ne=$.valueOf;if(je(Ne)){var ie=Ne.call($);if(!Ye(ie))return ie}var ln=$.toString;if(je(ln)){var ie=ln.call($);if(!Ye(ie))return ie}}throw new TypeError}a(S,"OrdinaryToPrimitive");function Y($){return!!$}a(Y,"ToBoolean");function M($){return""+$}a(M,"ToString");function Re($){var W=I($,3);return Xn(W)?W:M(W)}a(Re,"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 Tt($){return typeof $=="function"}a(Tt,"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 Q=$[W];if(Q!=null){if(!je(Q))throw new TypeError;return Q}}a(Mt,"GetMethod");function ii($){var W=Mt($,s);if(!je(W))throw new TypeError;var Q=W.call($);if(!Ye(Q))throw new TypeError;return Q}a(ii,"GetIterator");function nr($){return $.value}a(nr,"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 Q=$.prototype,ie=Q&&Object.getPrototypeOf(Q);if(ie==null||ie===Object.prototype)return W;var Ne=ie.constructor;return typeof Ne!="function"||Ne===$?W:Ne}a(Vt,"OrdinaryGetPrototypeOf");function qo(){var $;!Le(C)&&typeof n.Reflect<"u"&&!(C in n.Reflect)&&typeof n.Reflect.defineMetadata=="function"&&($=Us(n.Reflect));var W,Q,ie,Ne=new E,ln={registerProvider:Sn,getProvider:ue,setProvider:be};return ln;function Sn(Oe){if(!Object.isExtensible(ln))throw new Error("Cannot add provider to a frozen registry.");switch(!0){case $===Oe:break;case Le(W):W=Oe;break;case W===Oe:break;case Le(Q):Q=Oe;break;case Q===Oe:break;default:ie===void 0&&(ie=new b),ie.add(Oe);break}}function Ze(Oe,nt){if(!Le(W)){if(W.isProviderFor(Oe,nt))return W;if(!Le(Q)){if(Q.isProviderFor(Oe,nt))return W;if(!Le(ie))for(var kt=ii(ie);;){var nn=cn(kt);if(!nn)return;var ir=nr(nn);if(ir.isProviderFor(Oe,nt))return pi(kt),ir}}}if(!Le($)&&$.isProviderFor(Oe,nt))return $}function ue(Oe,nt){var kt=Ne.get(Oe),nn;return Le(kt)||(nn=kt.get(nt)),Le(nn)&&(nn=Ze(Oe,nt),Le(nn)||(Le(kt)&&(kt=new T,Ne.set(Oe,kt)),kt.set(nt,nn))),nn}function xe(Oe){if(Le(Oe))throw new TypeError;return W===Oe||Q===Oe||!Le(ie)&&ie.has(Oe)}function be(Oe,nt,kt){if(!xe(kt))throw new Error("Metadata provider not registered.");var nn=ue(Oe,nt);if(nn!==kt){if(!Le(nn))return!1;var ir=Ne.get(Oe);Le(ir)&&(ir=new T,Ne.set(Oe,ir)),ir.set(nt,kt)}return!0}}a(qo,"CreateMetadataRegistry");function Mi(){var $;return!Le(C)&&Ye(n.Reflect)&&Object.isExtensible(n.Reflect)&&($=n.Reflect[C]),Le($)&&($=qo()),!Le(C)&&Ye(n.Reflect)&&Object.isExtensible(n.Reflect)&&Object.defineProperty(n.Reflect,C,{enumerable:!1,configurable:!1,writable:!1,value:$}),$}a(Mi,"GetOrCreateMetadataRegistry");function Cf($){var W=new E,Q={isProviderFor:function(xe,be){var Oe=W.get(xe);return Le(Oe)?!1:Oe.has(be)},OrdinaryDefineOwnMetadata:Sn,OrdinaryHasOwnMetadata:Ne,OrdinaryGetOwnMetadata:ln,OrdinaryOwnMetadataKeys:Ze,OrdinaryDeleteMetadata:ue};return L.registerProvider(Q),Q;function ie(xe,be,Oe){var nt=W.get(xe),kt=!1;if(Le(nt)){if(!Oe)return;nt=new T,W.set(xe,nt),kt=!0}var nn=nt.get(be);if(Le(nn)){if(!Oe)return;if(nn=new T,nt.set(be,nn),!$.setProvider(xe,be,Q))throw nt.delete(be),kt&&W.delete(xe),new Error("Wrong provider for target.")}return nn}a(ie,"GetOrCreateMetadataMap");function Ne(xe,be,Oe){var nt=ie(be,Oe,!1);return Le(nt)?!1:Y(nt.has(xe))}a(Ne,"OrdinaryHasOwnMetadata");function ln(xe,be,Oe){var nt=ie(be,Oe,!1);if(!Le(nt))return nt.get(xe)}a(ln,"OrdinaryGetOwnMetadata");function Sn(xe,be,Oe,nt){var kt=ie(Oe,nt,!0);kt.set(xe,be)}a(Sn,"OrdinaryDefineOwnMetadata");function Ze(xe,be){var Oe=[],nt=ie(xe,be,!1);if(Le(nt))return Oe;for(var kt=nt.keys(),nn=ii(kt),ir=0;;){var ud=cn(nn);if(!ud)return Oe.length=ir,Oe;var jy=nr(ud);try{Oe[ir]=jy}catch(Ff){try{pi(nn)}finally{throw Ff}}ir++}}a(Ze,"OrdinaryOwnMetadataKeys");function ue(xe,be,Oe){var nt=ie(be,Oe,!1);if(Le(nt)||!nt.delete(xe))return!1;if(nt.size===0){var kt=W.get(be);Le(kt)||(kt.delete(Oe),kt.size===0&&W.delete(kt))}return!0}a(ue,"OrdinaryDeleteMetadata")}a(Cf,"CreateMetadataProvider");function Us($){var W=$.defineMetadata,Q=$.hasOwnMetadata,ie=$.getOwnMetadata,Ne=$.getOwnMetadataKeys,ln=$.deleteMetadata,Sn=new E,Ze={isProviderFor:function(ue,xe){var be=Sn.get(ue);return Le(be)?Ne(ue,xe).length?(Le(be)&&(be=new b,Sn.set(ue,be)),be.add(xe),!0):!1:be.has(xe)},OrdinaryDefineOwnMetadata:W,OrdinaryHasOwnMetadata:Q,OrdinaryGetOwnMetadata:ie,OrdinaryOwnMetadataKeys:Ne,OrdinaryDeleteMetadata:ln};return Ze}a(Us,"CreateFallbackProvider");function Ar($,W,Q){var ie=L.getProvider($,W);if(!Le(ie))return ie;if(Q){if(L.setProvider($,W,R))return R;throw new Error("Illegal state.")}}a(Ar,"GetMetadataProvider");function Nf(){var $={},W=[],Q=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,Oe=xe+1;Oe<be;Oe++)this._keys[Oe-1]=this._keys[Oe],this._values[Oe-1]=this._values[Oe];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 Q(this._keys,this._values,Ne)},Ze.prototype.values=function(){return new Q(this._keys,this._values,ln)},Ze.prototype.entries=function(){return new Q(this._keys,this._values,Sn)},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 Sn(Ze,ue){return[Ze,ue]}}a(Nf,"CreateMapPolyfill");function Lf(){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(Q){return this._map.has(Q)},W.prototype.add=function(Q){return this._map.set(Q,Q),this},W.prototype.delete=function(Q){return this._map.delete(Q)},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(Lf,"CreateSetPolyfill");function Rf(){var $=16,W=d.create(),Q=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 Oe=Ne(xe,!0);return Oe[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,Q)){if(!xe)return;Object.defineProperty(ue,Q,{value:d.create()})}return ue[Q]}function ln(ue,xe){for(var be=0;be<xe;++be)ue[be]=Math.random()*255|0;return ue}function Sn(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=Sn($);ue[6]=ue[6]&79|64,ue[8]=ue[8]&191|128;for(var xe="",be=0;be<$;++be){var Oe=ue[be];(be===4||be===6||be===8)&&(xe+="-"),Oe<16&&(xe+="0"),xe+=Oe.toString(16).toLowerCase()}return xe}}a(Rf,"CreateWeakMapPolyfill");function Bs($){return $.__=void 0,delete $.__,$}a(Bs,"MakeDictionary")})})(eF||(eF={}))});var sF=Ve((x9,aF)=>{var ZH=0,oF="changeUtils: ";function e5(){return"id-"+new Date().valueOf()+"-"+ZH++}a(e5,"uid");function t5(e){return e&&e.indexOf(".Component")<0&&(e+=".Component"),e}a(t5,"appendComponentToReference");function n5(e){let t=e["sap.ui5"];if(t){if(t.appVariantId)return t.appVariantId;if(t.componentName)return t5(t.componentName)}let n=e["sap.app"];if(!n||!n.id)throw Error("app ID could not be determined");return n.id}a(n5,"getFlexReference");function i5(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(i5,"getAppVersion");function r5(e,t){return e&&e["sap.app"]&&e["sap.app"].sourceTemplate&&["ui5template.smartTemplate","ui5template.smarttemplate"].includes(e["sap.app"].sourceTemplate.id)?t:""}a(r5,"getProjectId");function rF(e){return JSON.stringify({fileName:e.id||e5().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:oF+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(rF,"createString");aF.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(oF,""),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=n5(t),e.appVersion=i5(t),e.projectId=r5(t,e.reference),rF(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 rF(e)}}});var lF=Ve((O9,cF)=>{cF.exports={change:sF()}});var JF=Ve(Vo=>{"use strict";var M5=/[|\\{}()[\]^$+*?.]/g,V5=Object.prototype.hasOwnProperty,XF=a(function(e,t){return V5.apply(e,[t])},"hasOwn");Vo.escapeRegExpChars=function(e){return e?String(e).replace(M5,"\\$&"):""};var k5={"&":"&","<":"<",">":">",'"':""","'":"'"},j5=/[&<>'"]/g;function $5(e){return k5[e]||e}a($5,"encode_char");var U5=`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
|
`;Vo.escapeXML=function(e){return e==null?"":String(e).replace(j5,$5)};function KF(){return Function.prototype.toString.call(this)+`;
|
|
41
|
-
`+U5}a(KF,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Vo.escapeXML,"toString",{value:KF}):Vo.escapeXML.toString=KF}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Vo.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)XF(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Vo.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(!XF(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Vo.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={}}};Vo.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Vo.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}()});var QF=Ve((
|
|
41
|
+
`+U5}a(KF,"escapeXMLToString");try{typeof Object.defineProperty=="function"?Object.defineProperty(Vo.escapeXML,"toString",{value:KF}):Vo.escapeXML.toString=KF}catch{console.warn("Unable to set escapeXML.toString (is the Function prototype frozen?)")}Vo.shallowCopy=function(e,t){if(t=t||{},e!=null)for(var n in t)XF(t,n)&&(n==="__proto__"||n==="constructor"||(e[n]=t[n]));return e};Vo.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(!XF(t,r)||r==="__proto__"||r==="constructor")continue;e[r]=t[r]}}return e};Vo.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={}}};Vo.hyphenToCamel=function(e){return e.replace(/-[a-z]/g,function(t){return t[1].toUpperCase()})};Vo.createNullProtoObjWherePossible=function(){return typeof Object.create=="function"?function(){return Object.create(null)}:{__proto__:null}instanceof Object?function(){return{}}:function(){return{__proto__:null}}}()});var QF=Ve((WZ,B5)=>{B5.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 r0=Ve(bt=>{"use strict";var EE=require("fs"),vu=require("path"),On=JF(),YF=!1,W5=QF().version,G5="<",H5=">",K5="%",n0="locals",X5="ejs",J5="(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)",i0=["delimiter","scope","context","debug","compileDebug","client","_with","rmWhitespace","strict","filename","async"],Q5=i0.concat("cache"),zF=/^\uFEFF/,TE=/^[a-zA-Z_$][0-9a-zA-Z_$]*$/;bt.cache=On.cache;bt.fileLoader=EE.readFileSync;bt.localsName=n0;bt.promiseImpl=new Function("return this;")().Promise;bt.resolveInclude=function(e,t,n){var i=vu.dirname,r=vu.extname,o=vu.resolve,s=o(n?t:i(t),e),l=r(e);return l||(s+=".ejs"),s};function qF(e,t){var n;if(t.some(function(i){return n=bt.resolveInclude(e,i,!0),EE.existsSync(n)}))return n}a(qF,"resolvePaths");function Y5(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=qF(e,t.root):n=bt.resolveInclude(e,t.root||"/",!0);else if(t.filename&&(i=bt.resolveInclude(e,t.filename),EE.existsSync(i)&&(n=i)),!n&&Array.isArray(r)&&(n=qF(e,r)),!n&&typeof t.includer!="function")throw new Error('Could not find the include file "'+t.escapeFunction(e)+'"');return n}a(Y5,"getIncludePath");function Tu(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=bt.cache.get(i),n)return n;r||(t=ZF(i).toString().replace(zF,""))}else if(!r){if(!i)throw new Error("Internal EJS error: no file name or template provided");t=ZF(i).toString().replace(zF,"")}return n=bt.compile(t,e),e.cache&&bt.cache.set(i,n),n}a(Tu,"handleCache");function z5(e,t,n){var i;if(n){try{i=Tu(e)(t)}catch(r){return n(r)}n(null,i)}else{if(typeof bt.promiseImpl=="function")return new bt.promiseImpl(function(r,o){try{i=Tu(e)(t),r(i)}catch(s){o(s)}});throw new Error("Please provide a callback function")}}a(z5,"tryHandleCache");function ZF(e){return bt.fileLoader(e)}a(ZF,"fileLoader");function q5(e,t){var n=On.shallowCopy(On.createNullProtoObjWherePossible(),t);if(n.filename=Y5(e,n),typeof t.includer=="function"){var i=t.includer(e,n.filename);if(i&&(i.filename&&(n.filename=i.filename),i.template))return Tu(n,i.template)}return Tu(n)}a(q5,"includeFile");function e0(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 Gn.modes.ESCAPED:this.source+=" ; __append(escapeFn("+t0(e)+`))
|
|
80
80
|
`;break;case Gn.modes.RAW:this.source+=" ; __append("+t0(e)+`)
|
|
81
81
|
`;break;case Gn.modes.COMMENT:break;case Gn.modes.LITERAL:this._addOutput(e);break}}else this._addOutput(e)}t.opts.compileDebug&&o&&(this.currentLine+=o,this.source+=" ; __line = "+this.currentLine+`
|
|
82
|
-
`)}};bt.escapeXML=On.escapeXML;bt.__express=bt.renderFile;bt.VERSION=W5;bt.name=X5;typeof window<"u"&&(window.ejs=bt)});var Qu,Jb=Xe(()=>{Qu="7.1.1"});function it(e){return e&&e.length===0}function Li(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 G0(e,t){for(var n=[],i=Li(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 gh(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(mh(e))for(var i=Li(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 $r(e){return typeof e=="string"}function Si(e){return e===void 0}function co(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function As(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Ur(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 xa(e,t){return Ur(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 mh(e)?e.hasOwnProperty(t):!1}function Lt(e,t){return Pa(e,function(n){return n===t})!==void 0}function vn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Ss(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Pa(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function H0(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?[]:Li(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 xa(e,function(t){return t==null})}function Yu(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 Lt(n,o)?i:(n.push(o),i.concat(r))},[])}function
|
|
82
|
+
`)}};bt.escapeXML=On.escapeXML;bt.__express=bt.renderFile;bt.VERSION=W5;bt.name=X5;typeof window<"u"&&(window.ejs=bt)});var Qu,Jb=Xe(()=>{Qu="7.1.1"});function it(e){return e&&e.length===0}function Li(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 G0(e,t){for(var n=[],i=Li(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 gh(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(mh(e))for(var i=Li(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 $r(e){return typeof e=="string"}function Si(e){return e===void 0}function co(e){return e instanceof Function}function wn(e,t){return t===void 0&&(t=1),e.slice(t,e.length)}function As(e,t){return t===void 0&&(t=1),e.slice(0,e.length-t)}function Ur(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 xa(e,t){return Ur(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 mh(e)?e.hasOwnProperty(t):!1}function Lt(e,t){return Pa(e,function(n){return n===t})!==void 0}function vn(e){for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t}function Ss(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}function Pa(e,t){for(var n=0;n<e.length;n++){var i=e[n];if(t.call(null,i))return i}}function H0(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?[]:Li(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 xa(e,function(t){return t==null})}function Yu(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 Lt(n,o)?i:(n.push(o),i.concat(r))},[])}function Xie(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 lo(e){return e instanceof RegExp}function mh(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 wc(e,t){return xa(e,function(n){return Lt(t,n)})}function hh(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return!0;return!1}function K0(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return n;return-1}function Jie(e,t){var n=vn(e);return n.sort(function(i,r){return t(i)-t(r)}),n}function Qie(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=Li(r),s=0;s<o.length;s++){var l=o[s];e[l]=r[l]}return e}function o3(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=Li(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 o3.apply(null,[{}].concat(e))}function X0(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 Qb(e,t){for(var n=Ss(e),i=Li(t),r=0;r<i.length;r++){var o=i[r],s=t[o];n[o]=s}return n}function Mn(){}function Yb(e){return e}function J0(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 qu(e){console&&console.error&&console.error("Error: "+e)}function yh(e){console&&console.warn&&console.warn("Warning: "+e)}function zb(){return typeof Map=="function"}function Q0(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 vh(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 Zu(e){return e[e.length-1]}function Th(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(Li,"keys");a(Dn,"values");a(G0,"mapValues");a(ce,"map");a(In,"flatten");a(Ai,"first");a(gh,"last");a(me,"forEach");a($r,"isString");a(Si,"isUndefined");a(co,"isFunction");a(wn,"drop");a(As,"dropRight");a(Ur,"filter");a(xa,"reject");a(dr,"pick");a(Ae,"has");a(Lt,"contains");a(vn,"cloneArr");a(Ss,"cloneObj");a(Pa,"find");a(H0,"findAll");a(on,"reduce");a(Oa,"compact");a(Yu,"uniq");a(Xie,"partial");a(li,"isArray");a(lo,"isRegExp");a(mh,"isObject");a(fi,"every");a(wc,"difference");a(hh,"some");a(K0,"indexOf");a(Jie,"sortBy");a(Qie,"zipObject");a(gr,"assign");a(o3,"assignNoOverwrite");a(zu,"defaults");a(X0,"groupBy");a(Qb,"merge");a(Mn,"NOOP");a(Yb,"IDENTITY");a(J0,"packArray");a(qu,"PRINT_ERROR");a(yh,"PRINT_WARNING");a(zb,"isES2015MapSupported");a(Q0,"applyMixins");a(vh,"toFastProperties");a(Zu,"peek");a(Th,"timer")});var bh=Ve((z0,Eh)=>{(function(e,t){typeof define=="function"&&define.amd?define([],t):typeof Eh=="object"&&Eh.exports?Eh.exports=t():e.regexpToAst=t()})(typeof self<"u"?self:z0,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 L={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(L,"global");break;case"i":s(L,"ignoreCase");break;case"m":s(L,"multiLine");break;case"u":s(L,"unicode");break;case"y":s(L,"sticky");break}if(this.idx!==this.input.length)throw Error("Redundant input: "+this.input.substring(this.idx));return{type:"Pattern",flags:L,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 L=this.disjunction();return this.consumeChar(")"),{type:C,value:L,loc:this.loc(E)}}u()},e.prototype.quantifier=function(E){var C,L=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 R=this.integerIncludingZero();switch(this.popChar()){case"}":C={atLeast:R,atMost:R};break;case",":var F;this.isDigit()?(F=this.integerIncludingZero(),C={atLeast:R,atMost:F}):C={atLeast:R,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(L),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 L=this.classAtom(),R=L.type==="Character";if(R&&this.isRangeDash()){this.consumeChar("-");var F=this.classAtom(),U=F.type==="Character";if(U){if(F.value<L.value)throw Error("Range out of order in character class");E.push({from:L.value,to:F.value})}else o(L.value,E),E.push(r("-")),o(F.value,E)}else o(L.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="",L=0;L<E;L++){var R=this.popChar();if(t.test(R)===!1)throw Error("Expecting a HexDecimal digits");C+=R}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(L){C.push(L)}):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 L=E[C];E.hasOwnProperty(C)&&(L.type!==void 0?this.visit(L):Array.isArray(L)&&L.forEach(function(R){this.visit(R)},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 Ql(e){var t=e.toString();if(Ah.hasOwnProperty(t))return Ah[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 L=E[C];E.hasOwnProperty(C)&&(L.type!==void 0?this.visit(L):Array.isArray(L)&&L.forEach(function(R){this.visit(R)},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 Ql(e){var t=e.toString();if(Ah.hasOwnProperty(t))return Ah[t];var n=a3.pattern(t);return Ah[t]=n,n}function Z0(){Ah={}}var q0,Ah,a3,Sh=Xe(()=>{q0=te(bh()),Ah={},a3=new q0.RegExpParser;a(Ql,"getRegExpAst");a(Z0,"clearRegExpParserCache")});function n_(e,t){t===void 0&&(t=!1);try{var n=Ql(e),i=qb(n.value,{},n.flags.ignoreCase);return i}catch(o){if(o.message===t_)t&&yh(""+ep+(" 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.`),qu(ep+`
|
|
96
96
|
`+(" Failed parsing: < "+e.toString()+` >
|
|
97
97
|
`)+(" Using the regexp-to-ast library version: "+Ph.VERSION+`
|
|
98
|
-
`)+" Please open an issue at: https://github.com/bd82/regexp-to-ast/issues"+r)}}return[]}function qb(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)qb(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":xh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(t_);me(s.value,function(p){if(typeof p=="number")xh(p,t,n);else{var d=p;if(n===!0)for(var m=d.from;m<=d.to;m++)xh(m,t,n);else{for(var m=d.from;m<=d.to&&m<Yl;m++)xh(m,t,n);if(d.to>=Yl)for(var T=d.from>=Yl?d.from:Yl,b=d.to,E=Wo(T),C=Wo(b),L=E;L<=C;L++)t[L]=L}}});break;case"Group":qb(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"&&Zb(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Dn(t)}function xh(e,t,n){var i=Wo(e);t[i]=i,n===!0&&
|
|
99
|
-
`;a(n_,"getOptimizedStartCodesIndices");a(qb,"firstCharOptimizedIndices");a(xh,"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 qb(e,t,n){switch(e.type){case"Disjunction":for(var i=0;i<e.value.length;i++)qb(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":xh(s.value,t,n);break;case"Set":if(s.complement===!0)throw Error(t_);me(s.value,function(p){if(typeof p=="number")xh(p,t,n);else{var d=p;if(n===!0)for(var m=d.from;m<=d.to;m++)xh(m,t,n);else{for(var m=d.from;m<=d.to&&m<Yl;m++)xh(m,t,n);if(d.to>=Yl)for(var T=d.from>=Yl?d.from:Yl,b=d.to,E=Wo(T),C=Wo(b),L=E;L<=C;L++)t[L]=L}}});break;case"Group":qb(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"&&Zb(s)===!1||s.type!=="Group"&&l===!1)break}break;default:throw Error("non exhaustive match!")}return Dn(t)}function xh(e,t,n){var i=Wo(e);t[i]=i,n===!0&&c3(e,t)}function c3(e,t){var n=String.fromCharCode(e),i=n.toUpperCase();if(i!==n){var r=Wo(i.charCodeAt(0));t[r]=r}else{var o=n.toLowerCase();if(o!==n){var r=Wo(o.charCodeAt(0));t[r]=r}}}function e_(e,t){return Pa(e.value,function(n){if(typeof n=="number")return Lt(t,n);var i=n;return Pa(t,function(r){return i.from<=r&&r<=i.to})!==void 0})}function Zb(e){return e.quantifier&&e.quantifier.atLeast===0?!0:e.value?li(e.value)?fi(e.value,Zb):Zb(e.value):!1}function Oh(e,t){if(t instanceof RegExp){var n=Ql(t),i=new l3(e);return i.visit(n),i.found}else return Pa(t,function(r){return Lt(e,r.charCodeAt(0))})!==void 0}var Ph,s3,t_,ep,l3,i_=Xe(()=>{Ph=te(bh());gt();Sh();eA();s3=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)}}(),t_="Complement Sets are not supported for first char optimization",ep=`Unable to use "first char" lexer optimizations:
|
|
99
|
+
`;a(n_,"getOptimizedStartCodesIndices");a(qb,"firstCharOptimizedIndices");a(xh,"addOptimizedIdxToResult");a(c3,"handleIgnoreCase");a(e_,"findCode");a(Zb,"isWholeOptional");l3=function(e){s3(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){Lt(this.targetCharCodes,n.value)&&(this.found=!0)},t.prototype.visitSet=function(n){n.complement?e_(n,this.targetCharCodes)===void 0&&(this.found=!0):e_(n,this.targetCharCodes)!==void 0&&(this.found=!0)},t}(Ph.BaseRegExpVisitor);a(Oh,"canMatchCharCode")});function s_(e,t){t=zu(t,{useSticky:iA,debug:!1,safeMode:!1,positionTracking:"full",lineTerminatorCharacters:["\r",`
|
|
100
|
+
`],tracer:function(F,U){return U()}});var n=t.tracer;n("initCharCodeToOptimizedIndexMap",function(){I3()});var i;n("Reject Lexer.NA",function(){i=xa(e,function(F){return F[Go]===Ri.NA})});var r=!1,o;n("Transform Patterns",function(){r=!1,o=ce(i,function(F){var U=F[Go];if(lo(U)){var J=U.source;return J.length===1&&J!=="^"&&J!=="$"&&J!=="."&&!U.ignoreCase?J:J.length===2&&J[0]==="\\"&&!Lt(["d","D","s","S","t","r","n","t","0","c","b","B","f","v","w","W"],J[1])?J[1]:t.useSticky?o_(U):r_(U)}else{if(co(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?o_(Ce):r_(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!==Ri.SKIPPED){if($r(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=K0(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=m_(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(g_(U,F)===!1)return Oh(F,U.PATTERN)}))});var T,b,E,C;n("Misc Mapping #2",function(){T=ce(i,p_),b=ce(o,P3),E=on(i,function(F,U){var J=U.GROUP;return $r(J)&&J!==Ri.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 L=!0,R=[];return t.safeMode||n("First Char Optimization",function(){R=on(i,function(F,U,J){if(typeof U.PATTERN=="string"){var re=U.PATTERN.charCodeAt(0),Ce=Wo(re);tA(F,Ce,C[J])}else if(li(U.START_CHARS_HINT)){var st;me(U.START_CHARS_HINT,function(It){var mt=typeof It=="string"?It.charCodeAt(0):It,Ke=Wo(mt);st!==Ke&&(st=Ke,tA(F,Ke,C[J]))})}else if(lo(U.PATTERN))if(U.PATTERN.unicode)L=!1,t.ensureOptimizations&&qu(""+ep+(" 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=n_(U.PATTERN,t.ensureOptimizations);it(k)&&(L=!1),me(k,function(It){tA(F,It,C[J])})}else t.ensureOptimizations&&qu(""+ep+(" 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`),L=!1;return F},[])}),n("ArrayPacking",function(){R=J0(R)}),{emptyGroups:E,patternIdxToConfig:C,charCodeToPatternIdxToConfig:R,hasCustom:r,canBeOptimized:L}}function c_(e,t){var n=[],i=
|
|
105
|
+
For details See: https://sap.github.io/chevrotain/docs/guide/resolving_lexer_errors.html#CUSTOM_OPTIMIZE`),L=!1;return F},[])}),n("ArrayPacking",function(){R=J0(R)}),{emptyGroups:E,patternIdxToConfig:C,charCodeToPatternIdxToConfig:R,hasCustom:r,canBeOptimized:L}}function c_(e,t){var n=[],i=u3(e);n=n.concat(i.errors);var r=p3(i.valid),o=r.valid;return n=n.concat(r.errors),n=n.concat(f3(o)),n=n.concat(E3(o)),n=n.concat(b3(o,t)),n=n.concat(A3(o)),n}function f3(e){var t=[],n=Ur(e,function(i){return lo(i[Go])});return t=t.concat(g3(n)),t=t.concat(y3(n)),t=t.concat(v3(n)),t=t.concat(T3(n)),t=t.concat(m3(n)),t}function u3(e){var t=Ur(e,function(r){return!Ae(r,Go)}),n=ce(t,function(r){return{message:"Token Type: ->"+r.name+"<- missing static 'PATTERN' property",type:an.MISSING_PATTERN,tokenTypes:[r]}}),i=wc(e,t);return{errors:n,valid:i}}function p3(e){var t=Ur(e,function(r){var o=r[Go];return!lo(o)&&!co(o)&&!Ae(o,"exec")&&!$r(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=wc(e,t);return{errors:n,valid:i}}function g3(e){var t=function(r){a_(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}(nA.BaseRegExpVisitor),n=Ur(e,function(r){var o=r[Go];try{var s=Ql(o),l=new t;return l.visit(s),l.found}catch{return d3.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 m3(e){var t=Ur(e,function(i){var r=i[Go];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 y3(e){var t=function(r){a_(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}(nA.BaseRegExpVisitor),n=Ur(e,function(r){var o=r[Go];try{var s=Ql(o),l=new t;return l.visit(s),l.found}catch{return h3.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 v3(e){var t=Ur(e,function(i){var r=i[Go];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 T3(e){var t=[],n=ce(e,function(o){return on(e,function(s,l){return o.PATTERN.source===l.PATTERN.source&&!Lt(t,l)&&l.PATTERN!==Ri.NA&&(t.push(l),s.push(l)),s},[])});n=Oa(n);var i=Ur(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 E3(e){var t=Ur(e,function(i){if(!Ae(i,"GROUP"))return!1;var r=i.GROUP;return r!==Ri.SKIPPED&&r!==Ri.NA&&!$r(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 b3(e,t){var n=Ur(e,function(r){return r.PUSH_MODE!==void 0&&!Lt(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 A3(e){var t=[],n=on(e,function(i,r,o){var s=r.PATTERN;return s===Ri.NA||($r(s)?i.push({str:s,idx:o,tokenType:r}):lo(s)&&x3(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&&S3(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 S3(e,t){if(lo(t)){var n=t.exec(e);return n!==null&&n.index===0}else{if(co(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 x3(e){var t=[".","\\","[","]","|","^","$","(",")","?","*","+","{"];return Pa(t,function(n){return e.source.indexOf(n)!==-1})===void 0}function r_(e){var t=e.ignoreCase?"i":"";return new RegExp("^(?:"+e.source+")",t)}function o_(e){var t=e.ignoreCase?"iy":"y";return new RegExp(""+e.source,t)}function l_(e,t,n){var i=[];return Ae(e,xs)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+xs+`> property in its definition
|
|
112
112
|
`,type:an.MULTI_MODE_LEXER_WITHOUT_DEFAULT_MODE}),Ae(e,Ih)||i.push({message:"A MultiMode Lexer cannot be initialized without a <"+Ih+`> property in its definition
|
|
113
113
|
`,type:an.MULTI_MODE_LEXER_WITHOUT_MODES_PROPERTY}),Ae(e,Ih)&&Ae(e,xs)&&!Ae(e.modes,e.defaultMode)&&i.push({message:"A MultiMode Lexer cannot be initialized with a "+xs+": <"+e.defaultMode+`>which does not exist
|
|
114
114
|
`,type:an.MULTI_MODE_LEXER_DEFAULT_MODE_VALUE_DOES_NOT_EXIST}),Ae(e,Ih)&&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 f_(e,t,n){var i=[],r=!1,o=Oa(In(G0(e.modes,function(u){return u}))),s=xa(o,function(u){return u[Go]===Ri.NA}),l=m_(n);return t&&me(s,function(u){var p=g_(u,l);if(p!==!1){var d=
|
|
115
|
+
`),type:an.LEXER_DEFINITION_CANNOT_CONTAIN_UNDEFINED})})}),i}function f_(e,t,n){var i=[],r=!1,o=Oa(In(G0(e.modes,function(u){return u}))),s=xa(o,function(u){return u[Go]===Ri.NA}),l=m_(n);return t&&me(s,function(u){var p=g_(u,l);if(p!==!1){var d=O3(u,p),m={message:d,type:p.issue,tokenType:u};i.push(m)}else Ae(u,"LINE_BREAKS")?u.LINE_BREAKS===!0&&(r=!0):Oh(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 u_(e){var t={},n=Li(e);return me(n,function(i){var r=e[i];if(li(r))t[i]=[];else throw Error("non exhaustive match")}),t}function p_(e){var t=e.PATTERN;if(lo(t))return!1;if(co(t))return!0;if(Ae(t,"exec"))return!0;if($r(t))return!1;throw Error("non exhaustive match")}function
|
|
119
|
+
for details.`,type:an.NO_LINE_BREAKS_FLAGS}),i}function u_(e){var t={},n=Li(e);return me(n,function(i){var r=e[i];if(li(r))t[i]=[];else throw Error("non exhaustive match")}),t}function p_(e){var t=e.PATTERN;if(lo(t))return!1;if(co(t))return!0;if(Ae(t,"exec"))return!0;if($r(t))return!1;throw Error("non exhaustive match")}function P3(e){return $r(e)&&e.length===1?e.charCodeAt(0):!1}function g_(e,t){if(Ae(e,"LINE_BREAKS"))return!1;if(lo(e.PATTERN)){try{Oh(t,e.PATTERN)}catch(n){return{issue:an.IDENTIFY_TERMINATOR,errMsg:n.message}}return!1}else{if($r(e.PATTERN))return!1;if(p_(e))return{issue:an.CUSTOM_LINE_BREAK};throw Error("non exhaustive match")}}function O3(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 m_(e){var t=ce(e,function(n){return $r(n)&&n.length>0?n.charCodeAt(0):n});return t}function tA(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Wo(e){return e<Yl?e:Ch[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 m_(e){var t=ce(e,function(n){return $r(n)&&n.length>0?n.charCodeAt(0):n});return t}function tA(e,t,n){e[t]===void 0?e[t]=[n]:e[t].push(n)}function Wo(e){return e<Yl?e:Ch[e]}function I3(){if(it(Ch)){Ch=new Array(65536);for(var e=0;e<65536;e++)Ch[e]=e>255?255+~~(e/255):e}}var nA,a_,Go,xs,Ih,iA,d3,h3,d_,Yl,Ch,eA=Xe(()=>{nA=te(bh());tp();gt();i_();Sh();a_=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)}}(),Go="PATTERN",xs="defaultMode",Ih="modes",iA=typeof new RegExp("(?:)").sticky=="boolean";a(s_,"analyzeTokenTypes");a(c_,"validatePatterns");a(f3,"validateRegExpPattern");a(u3,"findMissingPatterns");a(p3,"findInvalidPatterns");d3=/[^\\][\$]/;a(g3,"findEndOfInputAnchor");a(m3,"findEmptyMatchRegExps");h3=/[^\\[][\^]|^\^/;a(y3,"findStartOfInputAnchor");a(v3,"findUnsupportedFlags");a(T3,"findDuplicatePatterns");a(E3,"findInvalidGroupType");a(b3,"findModesThatDoNotExist");a(A3,"findUnreachablePatterns");a(S3,"testTokenType");a(x3,"noMetaChar");a(r_,"addStartOfInput");a(o_,"addStickyFlag");a(l_,"performRuntimeChecks");a(f_,"performWarningRuntimeChecks");a(u_,"cloneEmptyGroups");a(p_,"isCustomPattern");a(P3,"isShortPattern");d_={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(g_,"checkLineBreaksIssues");a(O3,"buildLineBreakIssueMessage");a(m_,"getCharCodes");a(tA,"addToMapOfArrays");Yl=256;a(Wo,"charCodeToOptimizedIndex");Ch=[];a(I3,"initCharCodeToOptimizedIndexMap")});function Mc(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 Ia(e){var t=C3(e);N3(t),R3(t),L3(t),me(t,function(n){n.isParent=n.categoryMatches.length>0})}function C3(e){for(var t=vn(e),n=e,i=!0;i;){n=Oa(In(ce(n,function(o){return o.CATEGORIES})));var r=wc(n,t);t=t.concat(r),it(r)?i=!1:n=r}return t}function N3(e){me(e,function(t){rA(t)||(v_[h_]=t,t.tokenTypeIdx=h_++),y_(t)&&!li(t.CATEGORIES)&&(t.CATEGORIES=[t.CATEGORIES]),y_(t)||(t.CATEGORIES=[]),F3(t)||(t.categoryMatches=[]),_3(t)||(t.categoryMatchesMap={})})}function L3(e){me(e,function(t){t.categoryMatches=[],me(t.categoryMatchesMap,function(n,i){t.categoryMatches.push(v_[i].tokenTypeIdx)})})}function R3(e){me(e,function(t){T_([],t)})}function T_(e,t){me(e,function(n){t.categoryMatchesMap[n.tokenTypeIdx]=!0}),me(t.CATEGORIES,function(n){var i=e.concat(t);Lt(i,n)||T_(i,n)})}function rA(e){return Ae(e,"tokenTypeIdx")}function y_(e){return Ae(e,"CATEGORIES")}function F3(e){return Ae(e,"categoryMatches")}function _3(e){return Ae(e,"categoryMatchesMap")}function E_(e){return Ae(e,"tokenTypeIdx")}var h_,v_,ql=Xe(()=>{gt();a(Mc,"tokenStructuredMatcher");a(zl,"tokenStructuredMatcherNoCategories");h_=1,v_={};a(Ia,"augmentTokenTypes");a(C3,"expandCategories");a(N3,"assignTokenDefaultProps");a(L3,"assignCategoriesTokensProp");a(R3,"assignCategoriesMapProp");a(T_,"singleAssignCategoriesToksMap");a(rA,"hasShortKeyProperty");a(y_,"hasCategoriesProperty");a(F3,"hasExtendingTokensTypesProperty");a(_3,"hasExtendingTokensTypesMapProperty");a(E_,"isTokenType")});var Nh,oA=Xe(()=>{Nh={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,np,Ri,tp=Xe(()=>{eA();gt();ql();oA();Sh();(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={}));np={deferDefinitionErrorsHandling:!1,positionTracking:"full",lineTerminatorsPattern:/\n|\r\n?/g,lineTerminatorCharacters:[`
|
|
125
125
|
`,"\r"],ensureOptimizations:!1,safeMode:!1,errorMessageProvider:Nh,traceInitPerf:!1,skipValidations:!1};Object.freeze(np);Ri=function(){function e(t,n){var i=this;if(n===void 0&&(n=np),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=Qb(np,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===np.lineTerminatorsPattern)i.config.lineTerminatorsPattern=d_;else if(i.config.lineTerminatorCharacters===np.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[xs]=vn(t),o[xs]=xs):(s=!1,o=Ss(t))}),i.config.skipValidations===!1&&(i.TRACE_INIT("performRuntimeChecks",function(){i.lexerDefinitionErrors=i.lexerDefinitionErrors.concat(l_(o,i.trackStartLines,i.config.lineTerminatorCharacters))}),i.TRACE_INIT("performWarningRuntimeChecks",function(){i.lexerDefinitionWarning=i.lexerDefinitionWarning.concat(f_(o,i.trackStartLines,i.config.lineTerminatorCharacters))})),o.modes=o.modes?o.modes:{},me(o.modes,function(d,m){o.modes[m]=xa(d,function(T){return Si(T)})});var l=Li(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(c_(d,l))}),it(i.lexerDefinitionErrors)){Ia(d);var T;i.TRACE_INIT("analyzeTokenTypes",function(){T=s_(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=Qb(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=Qb(np,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(){Z0()}),i.TRACE_INIT("toFastProperties",function(){vh(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,L,R,F,U=t,J=U.length,re=0,Ce=0,st=this.hasCustom?0:Math.floor(t.length/10),k=new Array(st),It=[],mt=this.trackStartLines?1:void 0,Ke=this.trackStartLines?1:void 0,Xt=u_(this.emptyGroups),wi=this.trackStartLines,dn=this.config.lineTerminatorsPattern,Zt=0,Fe=[],Kn=[],jn=[],en=[];Object.freeze(en);var Ln=void 0;function ni(){return Fe}a(ni,"getPossiblePatternsSlow");function Le(Vt){var qo=Wo(Vt),Mi=Kn[qo];return Mi===void 0?en:Mi}a(Le,"getPossiblePatternsOptimized");var Rn=a(function(Vt){if(jn.length===1&&Vt.tokenType.PUSH_MODE===void 0){var qo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Vt);It.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:qo})}else{jn.pop();var Mi=gh(jn);Fe=i.patternIdxToConfig[Mi],Kn=i.charCodeToPatternIdxToConfig[Mi],Zt=Fe.length;var Cf=i.canModeBeOptimized[Mi]&&i.config.safeMode===!1;Kn&&Cf?Ln=Le:Ln=ni}},"pop_mode");function Xn(Vt){jn.push(Vt),Kn=this.charCodeToPatternIdxToConfig[Vt],Fe=this.patternIdxToConfig[Vt],Zt=Fe.length,Zt=Fe.length;var qo=this.canModeBeOptimized[Vt]&&this.config.safeMode===!1;Kn&&qo?Ln=Le:Ln=ni}a(Xn,"push_mode"),Xn.call(this,n);for(var Ye;re<J;){u=null;var I=U.charCodeAt(re),S=Ln(I),Y=S.length;for(r=0;r<Y;r++){Ye=S[r];var M=Ye.pattern;p=null;var Re=Ye.short;if(Re!==!1?I===Re&&(u=M):Ye.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=Ye.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,Ye=ct)}break}}if(u!==null){if(m=u.length,T=Ye.group,T!==void 0&&(b=Ye.tokenTypeIdx,E=this.createTokenInstance(u,re,b,Ye.tokenType,mt,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),wi===!0&&Ye.canLineTerminator===!0){var Tt=0,sn=void 0,tn=void 0;dn.lastIndex=0;do sn=dn.test(u),sn===!0&&(tn=dn.lastIndex-1,Tt++);while(sn===!0);Tt!==0&&(mt=mt+Tt,Ke=m-tn,this.updateTokenEndLineColumnLocation(E,T,tn,Tt,mt,Ke,m))}this.handleModes(Ye,Rn,Xn,E)}else{for(var Mt=re,ii=mt,nr=Ke,cn=!1;!cn&&re<J;)for(L=U.charCodeAt(re),t=this.chopInput(t,1),re++,o=0;o<Zt;o++){var pi=Fe[o],M=pi.pattern,Re=pi.short;if(Re!==!1?U.charCodeAt(re)===Re&&(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,R=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(U,Mt,C,ii,nr),It.push({offset:Mt,line:ii,column:nr,length:C,message:R})}}return this.hasCustom||(k.length=Ce),{tokens:k,groups:Xt,errors:It}},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=Th(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 Ho(e){return aA(e)?e.LABEL:e.name}function N_(e){return e.name}function aA(e){return $r(e.LABEL)&&e.LABEL!==""}function ip(e){return
|
|
134
|
-
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ae(e,b_)&&(n.CATEGORIES=e[b_]),Ia([n]),Ae(e,A_)&&(n.LABEL=e[A_]),Ae(e,S_)&&(n.GROUP=e[S_]),Ae(e,P_)&&(n.POP_MODE=e[P_]),Ae(e,x_)&&(n.PUSH_MODE=e[x_]),Ae(e,O_)&&(n.LONGER_ALT=e[O_]),Ae(e,I_)&&(n.LINE_BREAKS=e[I_]),Ae(e,C_)&&(n.START_CHARS_HINT=e[C_]),n}function Ps(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 L_(e,t){return wc(e,t)}var F3,b_,A_,S_,x_,P_,O_,I_,C_,Br,Os=Xe(()=>{gt();tp();ql();a(Ho,"tokenLabel");a(N_,"tokenName");a(aA,"hasTokenLabel");F3="parent",b_="categories",A_="label",S_="group",x_="push_mode",P_="pop_mode",O_="longer_alt",I_="line_breaks",C_="start_chars_hint";a(ip,"createToken");a(_3,"createTokenInternal");Br=ip({name:"EOF",pattern:Ri.NA});Ia([Br]);a(Ps,"createTokenInstance");a(L_,"tokenMatcher")});function Lh(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 Cn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Nn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Zl(new pt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Tn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Zl(new pt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Ot)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof En)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof pt){var n={type:"Terminal",name:e.terminalType.name,label:Ho(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=lo(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 Ca,fo,zt,mr,Kt,qt,Cn,Nn,Ot,Tn,En,pt,Fi=Xe(()=>{gt();Os();Ca=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)}}(),fo=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){Ca(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}(fo),mr=function(e){Ca(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}(fo),Kt=function(e){Ca(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}(fo),qt=function(e){Ca(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}(fo),Cn=function(e){Ca(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}(fo),Nn=function(e){Ca(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}(fo),Ot=function(e){Ca(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}(fo),Tn=function(e){Ca(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}(fo),En=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,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}(fo),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(Lh,"serializeGrammar");a(Zl,"serializeProduction")});function R_(e,t,n){var i=[new qt({definition:[new pt({terminalType:e.separator})].concat(e.definition)})],r=i.concat(t,n);return r}var Mc,Rh=Xe(()=>{gt();Fi();Mc=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 Cn)i.walkAtLeastOne(r,s,n);else if(r instanceof Nn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Tn)i.walkManySep(r,s,n);else if(r instanceof Ot)i.walkMany(r,s,n);else if(r instanceof En)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=R_(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=R_(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(R_,"restForRepetitionWithSeparator")});var Wr,ef=Xe(()=>{Fi();Wr=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 Cn:return this.visitRepetitionMandatory(n);case Nn:return this.visitRepetitionMandatoryWithSeparator(n);case Tn:return this.visitRepetitionWithSeparator(n);case Ot:return this.visitRepetition(n);case En: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 F_(e){return e instanceof Kt||e instanceof qt||e instanceof Ot||e instanceof Cn||e instanceof Nn||e instanceof Tn||e instanceof pt||e instanceof mr}function tf(e,t){t===void 0&&(t=[]);var n=e instanceof qt||e instanceof Ot||e instanceof Tn;return n?!0:e instanceof En?hh(e.definition,function(i){return tf(i,t)}):e instanceof zt&&Lt(t,e)?!1:e instanceof fo?(e instanceof zt&&t.push(e),fi(e.definition,function(i){return tf(i,t)})):!1}function __(e){return e instanceof En}function hr(e){if(e instanceof zt)return"SUBRULE";if(e instanceof qt)return"OPTION";if(e instanceof En)return"OR";if(e instanceof Cn)return"AT_LEAST_ONE";if(e instanceof Nn)return"AT_LEAST_ONE_SEP";if(e instanceof Tn)return"MANY_SEP";if(e instanceof Ot)return"MANY";if(e instanceof pt)return"CONSUME";throw Error("non exhaustive match")}function D_(e){Fh.reset(),e.accept(Fh);var t=Fh.dslMethods;return Fh.reset(),t}var D3,sA,Fh,nf=Xe(()=>{gt();Fi();ef();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(F_,"isSequenceProd");a(tf,"isOptionalProd");a(__,"isBranchingProd");a(hr,"getProductionDslName");sA=function(e){D3(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}(Wr),Fh=new sA;a(D_,"collectMethods")});function Vc(e){if(e instanceof zt)return Vc(e.referencedRule);if(e instanceof pt)return V3(e);if(F_(e))return w3(e);if(__(e))return M3(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(Vc(o)),i=i+1,r=n.length>i;return Yu(t)}function M3(e){var t=ce(e.definition,function(n){return Vc(n)});return Yu(In(t))}function V3(e){return[e.terminalType]}var cA=Xe(()=>{gt();Fi();nf();a(Vc,"first");a(w3,"firstForSequence");a(M3,"firstForBranching");a(V3,"firstForTerminal")});var _h,lA=Xe(()=>{_h="_~IN~_"});function w_(e){var t={};return me(e,function(n){var i=new j3(n).startWalking();gr(t,i)}),t}function $3(e,t){return e.name+t+_h}var k3,j3,M_=Xe(()=>{Rh();cA();gt();lA();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)}}(),j3=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=$3(n.referencedRule,n.idx)+this.topProd.name,s=i.concat(r),l=new Kt({definition:s}),u=Vc(l);this.follows[o]=u},t}(Mc);a(w_,"computeAllProdsFollows");a($3,"buildBetweenProdsFollowPrefix")});var rp,Dh,Is,op=Xe(()=>{Os();gt();gt();Fi();nf();rp={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,o=aA(t),s=o?"--> "+Ho(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,L,R,F,U=t,J=U.length,re=0,Ce=0,st=this.hasCustom?0:Math.floor(t.length/10),k=new Array(st),It=[],mt=this.trackStartLines?1:void 0,Ke=this.trackStartLines?1:void 0,Xt=u_(this.emptyGroups),wi=this.trackStartLines,dn=this.config.lineTerminatorsPattern,Zt=0,Fe=[],Kn=[],jn=[],en=[];Object.freeze(en);var Ln=void 0;function ni(){return Fe}a(ni,"getPossiblePatternsSlow");function Le(Vt){var qo=Wo(Vt),Mi=Kn[qo];return Mi===void 0?en:Mi}a(Le,"getPossiblePatternsOptimized");var Rn=a(function(Vt){if(jn.length===1&&Vt.tokenType.PUSH_MODE===void 0){var qo=i.config.errorMessageProvider.buildUnableToPopLexerModeMessage(Vt);It.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:qo})}else{jn.pop();var Mi=gh(jn);Fe=i.patternIdxToConfig[Mi],Kn=i.charCodeToPatternIdxToConfig[Mi],Zt=Fe.length;var Cf=i.canModeBeOptimized[Mi]&&i.config.safeMode===!1;Kn&&Cf?Ln=Le:Ln=ni}},"pop_mode");function Xn(Vt){jn.push(Vt),Kn=this.charCodeToPatternIdxToConfig[Vt],Fe=this.patternIdxToConfig[Vt],Zt=Fe.length,Zt=Fe.length;var qo=this.canModeBeOptimized[Vt]&&this.config.safeMode===!1;Kn&&qo?Ln=Le:Ln=ni}a(Xn,"push_mode"),Xn.call(this,n);for(var Ye;re<J;){u=null;var I=U.charCodeAt(re),S=Ln(I),Y=S.length;for(r=0;r<Y;r++){Ye=S[r];var M=Ye.pattern;p=null;var Re=Ye.short;if(Re!==!1?I===Re&&(u=M):Ye.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=Ye.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,Ye=ct)}break}}if(u!==null){if(m=u.length,T=Ye.group,T!==void 0&&(b=Ye.tokenTypeIdx,E=this.createTokenInstance(u,re,b,Ye.tokenType,mt,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),wi===!0&&Ye.canLineTerminator===!0){var Tt=0,sn=void 0,tn=void 0;dn.lastIndex=0;do sn=dn.test(u),sn===!0&&(tn=dn.lastIndex-1,Tt++);while(sn===!0);Tt!==0&&(mt=mt+Tt,Ke=m-tn,this.updateTokenEndLineColumnLocation(E,T,tn,Tt,mt,Ke,m))}this.handleModes(Ye,Rn,Xn,E)}else{for(var Mt=re,ii=mt,nr=Ke,cn=!1;!cn&&re<J;)for(L=U.charCodeAt(re),t=this.chopInput(t,1),re++,o=0;o<Zt;o++){var pi=Fe[o],M=pi.pattern,Re=pi.short;if(Re!==!1?U.charCodeAt(re)===Re&&(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,R=this.config.errorMessageProvider.buildUnexpectedCharactersMessage(U,Mt,C,ii,nr),It.push({offset:Mt,line:ii,column:nr,length:C,message:R})}}return this.hasCustom||(k.length=Ce),{tokens:k,groups:Xt,errors:It}},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=Th(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 Ho(e){return aA(e)?e.LABEL:e.name}function N_(e){return e.name}function aA(e){return $r(e.LABEL)&&e.LABEL!==""}function ip(e){return w3(e)}function w3(e){var t=e.pattern,n={};if(n.name=e.name,Si(t)||(n.PATTERN=t),Ae(e,D3))throw`The parent property is no longer supported.
|
|
134
|
+
See: https://github.com/SAP/chevrotain/issues/564#issuecomment-349062346 for details.`;return Ae(e,b_)&&(n.CATEGORIES=e[b_]),Ia([n]),Ae(e,A_)&&(n.LABEL=e[A_]),Ae(e,S_)&&(n.GROUP=e[S_]),Ae(e,P_)&&(n.POP_MODE=e[P_]),Ae(e,x_)&&(n.PUSH_MODE=e[x_]),Ae(e,O_)&&(n.LONGER_ALT=e[O_]),Ae(e,I_)&&(n.LINE_BREAKS=e[I_]),Ae(e,C_)&&(n.START_CHARS_HINT=e[C_]),n}function Ps(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 L_(e,t){return Mc(e,t)}var D3,b_,A_,S_,x_,P_,O_,I_,C_,Br,Os=Xe(()=>{gt();tp();ql();a(Ho,"tokenLabel");a(N_,"tokenName");a(aA,"hasTokenLabel");D3="parent",b_="categories",A_="label",S_="group",x_="push_mode",P_="pop_mode",O_="longer_alt",I_="line_breaks",C_="start_chars_hint";a(ip,"createToken");a(w3,"createTokenInternal");Br=ip({name:"EOF",pattern:Ri.NA});Ia([Br]);a(Ps,"createTokenInstance");a(L_,"tokenMatcher")});function Lh(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 Cn)return{type:"RepetitionMandatory",idx:e.idx,definition:t(e.definition)};if(e instanceof Nn)return{type:"RepetitionMandatoryWithSeparator",idx:e.idx,separator:Zl(new pt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Tn)return{type:"RepetitionWithSeparator",idx:e.idx,separator:Zl(new pt({terminalType:e.separator})),definition:t(e.definition)};if(e instanceof Ot)return{type:"Repetition",idx:e.idx,definition:t(e.definition)};if(e instanceof En)return{type:"Alternation",idx:e.idx,definition:t(e.definition)};if(e instanceof pt){var n={type:"Terminal",name:e.terminalType.name,label:Ho(e.terminalType),idx:e.idx},i=e.terminalType.PATTERN;return e.terminalType.PATTERN&&(n.pattern=lo(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 Ca,fo,zt,mr,Kt,qt,Cn,Nn,Ot,Tn,En,pt,Fi=Xe(()=>{gt();Os();Ca=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)}}(),fo=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){Ca(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}(fo),mr=function(e){Ca(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}(fo),Kt=function(e){Ca(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}(fo),qt=function(e){Ca(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}(fo),Cn=function(e){Ca(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}(fo),Nn=function(e){Ca(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}(fo),Ot=function(e){Ca(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}(fo),Tn=function(e){Ca(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}(fo),En=function(e){Ca(t,e);function t(n){var i=e.call(this,n.definition)||this;return i.idx=1,i.ignoreAmbiguities=!1,i.hasPredicates=!1,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}(fo),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(Lh,"serializeGrammar");a(Zl,"serializeProduction")});function R_(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,Rh=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 Cn)i.walkAtLeastOne(r,s,n);else if(r instanceof Nn)i.walkAtLeastOneSep(r,s,n);else if(r instanceof Tn)i.walkManySep(r,s,n);else if(r instanceof Ot)i.walkMany(r,s,n);else if(r instanceof En)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=R_(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=R_(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(R_,"restForRepetitionWithSeparator")});var Wr,ef=Xe(()=>{Fi();Wr=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 Cn:return this.visitRepetitionMandatory(n);case Nn:return this.visitRepetitionMandatoryWithSeparator(n);case Tn:return this.visitRepetitionWithSeparator(n);case Ot:return this.visitRepetition(n);case En: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 F_(e){return e instanceof Kt||e instanceof qt||e instanceof Ot||e instanceof Cn||e instanceof Nn||e instanceof Tn||e instanceof pt||e instanceof mr}function tf(e,t){t===void 0&&(t=[]);var n=e instanceof qt||e instanceof Ot||e instanceof Tn;return n?!0:e instanceof En?hh(e.definition,function(i){return tf(i,t)}):e instanceof zt&&Lt(t,e)?!1:e instanceof fo?(e instanceof zt&&t.push(e),fi(e.definition,function(i){return tf(i,t)})):!1}function __(e){return e instanceof En}function hr(e){if(e instanceof zt)return"SUBRULE";if(e instanceof qt)return"OPTION";if(e instanceof En)return"OR";if(e instanceof Cn)return"AT_LEAST_ONE";if(e instanceof Nn)return"AT_LEAST_ONE_SEP";if(e instanceof Tn)return"MANY_SEP";if(e instanceof Ot)return"MANY";if(e instanceof pt)return"CONSUME";throw Error("non exhaustive match")}function D_(e){Fh.reset(),e.accept(Fh);var t=Fh.dslMethods;return Fh.reset(),t}var M3,sA,Fh,nf=Xe(()=>{gt();Fi();ef();M3=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(F_,"isSequenceProd");a(tf,"isOptionalProd");a(__,"isBranchingProd");a(hr,"getProductionDslName");sA=function(e){M3(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}(Wr),Fh=new sA;a(D_,"collectMethods")});function kc(e){if(e instanceof zt)return kc(e.referencedRule);if(e instanceof pt)return j3(e);if(F_(e))return V3(e);if(__(e))return k3(e);throw Error("non exhaustive match")}function V3(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 Yu(t)}function k3(e){var t=ce(e.definition,function(n){return kc(n)});return Yu(In(t))}function j3(e){return[e.terminalType]}var cA=Xe(()=>{gt();Fi();nf();a(kc,"first");a(V3,"firstForSequence");a(k3,"firstForBranching");a(j3,"firstForTerminal")});var _h,lA=Xe(()=>{_h="_~IN~_"});function w_(e){var t={};return me(e,function(n){var i=new U3(n).startWalking();gr(t,i)}),t}function B3(e,t){return e.name+t+_h}var $3,U3,M_=Xe(()=>{Rh();cA();gt();lA();Fi();$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)}}(),U3=function(e){$3(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=B3(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(w_,"computeAllProdsFollows");a(B3,"buildBetweenProdsFollowPrefix")});var rp,Dh,Is,op=Xe(()=>{Os();gt();gt();Fi();nf();rp={buildMismatchTokenMessage:function(e){var t=e.expected,n=e.actual,i=e.previous,r=e.ruleName,o=aA(t),s=o?"--> "+Ho(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 Ho(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 V_(e,t){var n=new B3(e,t);return n.resolveRefs(),n.errors}var U3,B3,k_=Xe(()=>{yr();gt();ef();U3=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_,"resolveGrammar");B3=function(e){U3(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:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Wr)});function Mh(e,t,n){n===void 0&&(n=[]),n=vn(n);var i=[],r=0;function o(p){return p.concat(wn(e,r+1))}a(o,"remainingPathWith");function s(p){var d=Mh(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 Cn){var u=l.definition.concat([new Ot({definition:l.definition})]);return s(u)}else if(l instanceof Nn){var u=[new Kt({definition:l.definition}),new Ot({definition:[new pt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Tn){var u=l.definition.concat([new Ot({definition:[new pt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Ot){var u=l.definition.concat([new Ot({definition:l.definition})]);i=s(u)}else{if(l instanceof En)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 Vh(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&&gh(m).idx<=p&&m.pop();continue}var b=T.def,E=T.idx,C=T.ruleStack,L=T.occurrenceStack;if(!it(b)){var R=b[0];if(R===r){var F={idx:E,def:wn(b),ruleStack:As(C),occurrenceStack:As(L)};m.push(F)}else if(R instanceof pt)if(E<u-1){var U=E+1,J=t[U];if(n(J,R.terminalType)){var F={idx:U,def:wn(b),ruleStack:C,occurrenceStack:L};m.push(F)}}else if(E===u-1)d.push({nextTokenType:R.terminalType,nextTokenOccurrence:R.idx,ruleStack:C,occurrenceStack:L}),l=!0;else throw Error("non exhaustive match");else if(R instanceof zt){var re=vn(C);re.push(R.nonTerminalName);var Ce=vn(L);Ce.push(R.idx);var F={idx:E,def:R.definition.concat(o,wn(b)),ruleStack:re,occurrenceStack:Ce};m.push(F)}else if(R instanceof qt){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:L};m.push(st),m.push(s);var k={idx:E,def:R.definition.concat(wn(b)),ruleStack:C,occurrenceStack:L};m.push(k)}else if(R instanceof Cn){var It=new Ot({definition:R.definition,idx:R.idx}),mt=R.definition.concat([It],wn(b)),F={idx:E,def:mt,ruleStack:C,occurrenceStack:L};m.push(F)}else if(R instanceof Nn){var Ke=new pt({terminalType:R.separator}),It=new Ot({definition:[Ke].concat(R.definition),idx:R.idx}),mt=R.definition.concat([It],wn(b)),F={idx:E,def:mt,ruleStack:C,occurrenceStack:L};m.push(F)}else if(R instanceof Tn){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:L};m.push(st),m.push(s);var Ke=new pt({terminalType:R.separator}),Xt=new Ot({definition:[Ke].concat(R.definition),idx:R.idx}),mt=R.definition.concat([Xt],wn(b)),k={idx:E,def:mt,ruleStack:C,occurrenceStack:L};m.push(k)}else if(R instanceof Ot){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:L};m.push(st),m.push(s);var Xt=new Ot({definition:R.definition,idx:R.idx}),mt=R.definition.concat([Xt],wn(b)),k={idx:E,def:mt,ruleStack:C,occurrenceStack:L};m.push(k)}else if(R instanceof En)for(var wi=R.definition.length-1;wi>=0;wi--){var dn=R.definition[wi],Zt={idx:E,def:dn.definition.concat(wn(b)),ruleStack:C,occurrenceStack:L};m.push(Zt),m.push(s)}else if(R instanceof Kt)m.push({idx:E,def:R.definition.concat(wn(b)),ruleStack:C,occurrenceStack:L});else if(R instanceof mr)m.push(G3(R,E,C,L));else throw Error("non exhaustive match")}}return d}function G3(e,t,n,i){var r=vn(n);r.push(e.name);var o=vn(i);return o.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:o}}var kc,W3,j_,wh,$_,fA,U_,uA,ap=Xe(()=>{Rh();gt();cA();Fi();kc=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)}}(),W3=function(e){kc(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=vn(this.path.ruleStack).reverse(),this.occurrenceStack=vn(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}(Mc),j_=function(e){kc(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=Vc(s),this.found=!0}},t}(W3),wh=function(e){kc(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}(Mc),$_=function(e){kc(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}(wh),fA=function(e){kc(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}(wh),U_=function(e){kc(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}(wh),uA=function(e){kc(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}(wh);a(Mh,"possiblePathsFrom");a(Vh,"nextPossibleTokensAfter");a(G3,"expandTopLevelRule")});function G_(e){if(e instanceof qt)return Rt.OPTION;if(e instanceof Ot)return Rt.REPETITION;if(e instanceof Cn)return Rt.REPETITION_MANDATORY;if(e instanceof Nn)return Rt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Tn)return Rt.REPETITION_WITH_SEPARATOR;if(e instanceof En)return Rt.ALTERNATION;throw Error("non exhaustive match")}function H_(e,t,n,i,r,o){var s=sp(e,t,n),l=q_(s)?zl:wc;return o(s,i,l,r)}function K_(e,t,n,i,r,o){var s=cp(e,t,r,n),l=q_(s)?zl:wc;return o(s[0],l,i)}function X_(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],L=C.length,R=0;R<L;R++){var F=this.LA(R+1);if(n(F,C[R])===!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 J_(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 B_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function pA(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 K3(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 Y_(e,t){for(var n=ce(e,function(d){return Mh([d],1)}),i=B_(n.length),r=ce(n,function(d){var m={};return me(d,function(T){var b=pA(T.partialPath);me(b,function(E){m[E]=!0})}),m}),o=n,s=1;s<=t;s++){var l=o;o=B_(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=pA(b),L=K3(r,C,d);if(L||it(E)||b.length===t){var R=i[d];if(kh(R,b)===!1){R.push(b);for(var F=0;F<C.length;F++){var U=C[F];r[d][U]=!0}}}else{var J=Mh(E,s+1,b);o[d]=o[d].concat(J),me(J,function(re){var Ce=pA(re.partialPath);me(Ce,function(st){r[d][st]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function sp(e,t,n,i){var r=new Q_(e,Rt.ALTERNATION,i);return t.accept(r),Y_(r.result,n)}function cp(e,t,n,i){var r=new Q_(e,n);t.accept(r);var o=r.result,s=new H3(t,e,n),l=s.startWalking(),u=new Kt({definition:o}),p=new Kt({definition:l});return Y_([u,p],i)}function kh(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 z_(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function q_(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return it(i.categoryMatches)})})})}var W_,Rt,H3,Q_,lp=Xe(()=>{gt();ap();Rh();ql();Fi();ef();W_=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"})(Rt||(Rt={}));a(G_,"getProdType");a(H_,"buildLookaheadFuncForOr");a(K_,"buildLookaheadFuncForOptionalProd");a(X_,"buildAlternativesLookAheadFunc");a(J_,"buildSingleAlternativeLookaheadFunction");H3=function(e){W_(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,Rt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Rt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Rt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Rt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Rt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Mc),Q_=function(e){W_(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,Rt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Rt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Rt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Rt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Rt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Rt.ALTERNATION)},t}(Wr);a(B_,"initializeArrayOfArrays");a(pA,"pathToHashKeys");a(K3,"isUniquePrefixHash");a(Y_,"lookAheadSequenceFromAlternatives");a(sp,"getLookaheadPathsForOr");a(cp,"getLookaheadPathsForOptionalProd");a(kh,"containsPath");a(z_,"isStrictPrefixOfPath");a(q_,"areTokenCategoriesNotUsed")});function Z_(e,t,n,i,r){var o=ce(e,function(b){return X3(b,i)}),s=ce(e,function(b){return nD(b,b,i)}),l=[],u=[],p=[];fi(s,it)&&(l=ce(e,function(b){return z3(b,i)}),u=ce(e,function(b){return q3(b,t,i)}),p=t7(e,t,i));var d=r7(e,n,i),m=ce(e,function(b){return e7(b,i)}),T=ce(e,function(b){return Y3(b,e,r,i)});return In(o.concat(p,s,l,u,d,m,T))}function X3(e,t){var n=new Q3;e.accept(n);var i=n.allProductions,r=X0(i,J3),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:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:u.idx},T=eD(u);return T&&(m.parameter=T),m});return s}function J3(e){return hr(e)+"_#_"+e.idx+"_#_"+eD(e)}function eD(e){return e instanceof pt?e.terminalType.name:e instanceof zt?e.nonTerminalName:""}function Y3(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:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function tD(e,t,n){var i=[],r;return Lt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function nD(e,t,n,i){i===void 0&&(i=[]);var r=[],o=jh(t.definition);if(it(o))return[];var s=e.name,l=Lt(o,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=Dc(o,i.concat([e])),p=ce(u,function(d){var m=vn(i);return m.push(d),nD(e,d,n,m)});return r.concat(In(p))}function jh(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 Cn||n instanceof Nn||n instanceof Tn||n instanceof Ot)t=t.concat(jh(n.definition));else if(n instanceof En)t=In(ce(n.definition,function(s){return jh(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(jh(o))}else return t}function z3(e,t){var n=new gA;e.accept(n);var i=n.alternations,r=on(i,function(o,s){var l=As(s.definition),u=ce(l,function(p,d){var m=Vh([p],[],null,1);return it(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:d}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:d+1}:null});return o.concat(Oa(u))},[]);return r}function q3(e,t,n){var i=new gA;e.accept(i);var r=i.alternations;r=xa(r,function(s){return s.ignoreAmbiguities===!0});var o=on(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,d=sp(u,e,p,l),m=n7(d,l,e,n),T=i7(d,l,e,n);return s.concat(m,T)},[]);return o}function e7(e,t){var n=new gA;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:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),o},[]);return r}function t7(e,t,n){var i=[];return me(e,function(r){var o=new Z3;r.accept(o);var s=o.allProductions;me(s,function(l){var u=G_(l),p=l.maxLookahead||t,d=l.idx,m=cp(d,r,u,p),T=m[0];if(it(In(T))){var b=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:b,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function n7(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&&kh(T,d)&&t.definition[b].ignoreAmbiguities!==!0&&m.push(b)}),m.length>1&&!kh(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:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function i7(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=H0(o,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&z_(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:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:b}});r=r.concat(m)}}),r}function r7(e,t,n){var i=[],r=ce(t,function(o){return o.name});return me(e,function(o){var s=o.name;if(Lt(r,s)){var l=n.buildNamespaceConflictError(o);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var dA,Q3,gA,Z3,mA=Xe(()=>{gt();gt();yr();nf();lp();ap();Fi();ef();dA=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(Z_,"validateGrammar");a(X3,"validateDuplicateProductions");a(J3,"identifyProductionForDuplicates");a(eD,"getExtraProductionArgument");Q3=function(e){dA(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}(Wr);a(Y3,"validateRuleDoesNotAlreadyExist");a(tD,"validateRuleIsOverridden");a(nD,"validateNoLeftRecursion");a(jh,"getFirstNoneTerminal");gA=function(e){dA(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}(Wr);a(z3,"validateEmptyOrAlternative");a(q3,"validateAmbiguousAlternationAlternatives");Z3=function(e){dA(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}(Wr);a(e7,"validateTooManyAlts");a(t7,"validateSomeNonEmptyLookaheadPath");a(n7,"checkAlternativesAmbiguities");a(i7,"checkPrefixAlternativesAmbiguities");a(r7,"checkTerminalAndNoneTerminalsNameSpace")});function $h(e){e=zu(e,{errMsgProvider:Dh});var t={};return me(e.rules,function(n){t[n.name]=n}),V_(t,e.errMsgProvider)}function Uh(e){return e=zu(e,{errMsgProvider:Is}),Z_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function iD(e){me(e.rules,function(t){var n=new sA;t.accept(n),me(n.dslMethods,function(i){me(i,function(r,o){r.idx=o+1})})})}var hA=Xe(()=>{gt();k_();mA();op();nf();a($h,"resolveGrammar");a(Uh,"validateGrammar");a(iD,"assignOccurrenceIndices")});function Na(e){return Lt(cD,e.name)}var fp,rD,oD,aD,sD,cD,Bh,rf,Wh,Gh,Hh,of=Xe(()=>{gt();fp=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)}}(),rD="MismatchedTokenException",oD="NoViableAltException",aD="EarlyExitException",sD="NotAllInputParsedException",cD=[rD,oD,aD,sD];Object.freeze(cD);a(Na,"isRecognitionException");Bh=function(e){fp(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){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=rD,o}return a(t,"MismatchedTokenException"),t}(Bh),Wh=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=oD,o}return a(t,"NoViableAltException"),t}(Bh),Gh=function(e){fp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=sD,r}return a(t,"NotAllInputParsedException"),t}(Bh),Hh=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=aD,o}return a(t,"EarlyExitException"),t}(Bh)});function lD(e){this.name=vA,this.message=e}function o7(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=Br,b=1),this.shouldInRepetitionRecoveryBeTried(T,b,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var yA,vA,fD,TA=Xe(()=>{Os();gt();of();lA();yr();yA={},vA="InRuleRecoveryException";a(lD,"InRuleRecoveryException");lD.prototype=Error.prototype;fD=function(){function e(){}return a(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ae(t,"recoveryEnabled")?t.recoveryEnabled:Qi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=o7)},e.prototype.getTokenToInsert=function(t){var n=Ps(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=As(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 lD("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=Pa(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 Lt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Lt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return yA;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?yA:{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===yA)return[Br];var n=t.ruleName+t.idxInCallingRule+_h+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Br)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return As(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,o,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=vn(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(o7,"attemptInRepetitionRecovery")});function Jh(e,t,n){return n|t|e}var uD,Ko,a7,Kh,Xh,up,pp,dp,af,Yoe,Qh=Xe(()=>{uD=4,Ko=8,a7=8,Kh=1<<Ko,Xh=2<<Ko,up=3<<Ko,pp=4<<Ko,dp=5<<Ko,af=6<<Ko;a(Jh,"getKeyForAutomaticLookahead");Yoe=32-a7});var pD,dD=Xe(()=>{lp();gt();yr();Qh();nf();pD=function(){function e(){}return a(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ae(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Qi.dynamicTokensEnabled,this.maxLookahead=Ae(t,"maxLookahead")?t.maxLookahead:Qi.maxLookahead,this.lookAheadFuncsCache=zb()?new Map:[],zb()?(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=D_(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=H_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=Jh(n.fullRuleNameToShort[i.name],Kh,m.idx);n.setLaFuncCache(E,b)})}),me(s,function(m){n.computeLookaheadFunc(i,m.idx,up,Rt.REPETITION,m.maxLookahead,hr(m))}),me(l,function(m){n.computeLookaheadFunc(i,m.idx,Xh,Rt.OPTION,m.maxLookahead,hr(m))}),me(u,function(m){n.computeLookaheadFunc(i,m.idx,pp,Rt.REPETITION_MANDATORY,m.maxLookahead,hr(m))}),me(p,function(m){n.computeLookaheadFunc(i,m.idx,af,Rt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,hr(m))}),me(d,function(m){n.computeLookaheadFunc(i,m.idx,dp,Rt.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=K_(n,t,o||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Jh(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return J_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return X_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Jh(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 EA(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function bA(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 gD(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function mD(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var hD=Xe(()=>{a(EA,"setNodeLocationOnlyOffset");a(bA,"setNodeLocationFull");a(gD,"addTerminalToCst");a(mD,"addNoneTerminalToCst")});function vD(e){return gp(e.constructor)}function gp(e){var t=e.name;return t||"anonymous"}function AA(e,t){var n=Object.getOwnPropertyDescriptor(e,yD);return Si(n)||n.configurable?(Object.defineProperty(e,yD,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var yD,SA=Xe(()=>{gt();a(vD,"classNameFromInstance");yD="name";a(gp,"functionName");a(AA,"defineNameProp")});function s7(e,t){for(var n=Li(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 TD(e,t){var n=a(function(){},"derivedConstructor");AA(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=c7(this,t);if(!it(r)){var o=ce(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+gp(this.constructor)+`>:
|
|
164
|
+
see: https://en.wikipedia.org/wiki/LL_parser#Left_Factoring.`;return r},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 V_(e,t){var n=new G3(e,t);return n.resolveRefs(),n.errors}var W3,G3,k_=Xe(()=>{yr();gt();ef();W3=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_,"resolveGrammar");G3=function(e){W3(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:Hn.UNRESOLVED_SUBRULE_REF,ruleName:this.currTopLevel.name,unresolvedRefName:n.nonTerminalName})}},t}(Wr)});function Mh(e,t,n){n===void 0&&(n=[]),n=vn(n);var i=[],r=0;function o(p){return p.concat(wn(e,r+1))}a(o,"remainingPathWith");function s(p){var d=Mh(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 Cn){var u=l.definition.concat([new Ot({definition:l.definition})]);return s(u)}else if(l instanceof Nn){var u=[new Kt({definition:l.definition}),new Ot({definition:[new pt({terminalType:l.separator})].concat(l.definition)})];return s(u)}else if(l instanceof Tn){var u=l.definition.concat([new Ot({definition:[new pt({terminalType:l.separator})].concat(l.definition)})]);i=s(u)}else if(l instanceof Ot){var u=l.definition.concat([new Ot({definition:l.definition})]);i=s(u)}else{if(l instanceof En)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 Vh(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&&gh(m).idx<=p&&m.pop();continue}var b=T.def,E=T.idx,C=T.ruleStack,L=T.occurrenceStack;if(!it(b)){var R=b[0];if(R===r){var F={idx:E,def:wn(b),ruleStack:As(C),occurrenceStack:As(L)};m.push(F)}else if(R instanceof pt)if(E<u-1){var U=E+1,J=t[U];if(n(J,R.terminalType)){var F={idx:U,def:wn(b),ruleStack:C,occurrenceStack:L};m.push(F)}}else if(E===u-1)d.push({nextTokenType:R.terminalType,nextTokenOccurrence:R.idx,ruleStack:C,occurrenceStack:L}),l=!0;else throw Error("non exhaustive match");else if(R instanceof zt){var re=vn(C);re.push(R.nonTerminalName);var Ce=vn(L);Ce.push(R.idx);var F={idx:E,def:R.definition.concat(o,wn(b)),ruleStack:re,occurrenceStack:Ce};m.push(F)}else if(R instanceof qt){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:L};m.push(st),m.push(s);var k={idx:E,def:R.definition.concat(wn(b)),ruleStack:C,occurrenceStack:L};m.push(k)}else if(R instanceof Cn){var It=new Ot({definition:R.definition,idx:R.idx}),mt=R.definition.concat([It],wn(b)),F={idx:E,def:mt,ruleStack:C,occurrenceStack:L};m.push(F)}else if(R instanceof Nn){var Ke=new pt({terminalType:R.separator}),It=new Ot({definition:[Ke].concat(R.definition),idx:R.idx}),mt=R.definition.concat([It],wn(b)),F={idx:E,def:mt,ruleStack:C,occurrenceStack:L};m.push(F)}else if(R instanceof Tn){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:L};m.push(st),m.push(s);var Ke=new pt({terminalType:R.separator}),Xt=new Ot({definition:[Ke].concat(R.definition),idx:R.idx}),mt=R.definition.concat([Xt],wn(b)),k={idx:E,def:mt,ruleStack:C,occurrenceStack:L};m.push(k)}else if(R instanceof Ot){var st={idx:E,def:wn(b),ruleStack:C,occurrenceStack:L};m.push(st),m.push(s);var Xt=new Ot({definition:R.definition,idx:R.idx}),mt=R.definition.concat([Xt],wn(b)),k={idx:E,def:mt,ruleStack:C,occurrenceStack:L};m.push(k)}else if(R instanceof En)for(var wi=R.definition.length-1;wi>=0;wi--){var dn=R.definition[wi],Zt={idx:E,def:dn.definition.concat(wn(b)),ruleStack:C,occurrenceStack:L};m.push(Zt),m.push(s)}else if(R instanceof Kt)m.push({idx:E,def:R.definition.concat(wn(b)),ruleStack:C,occurrenceStack:L});else if(R instanceof mr)m.push(K3(R,E,C,L));else throw Error("non exhaustive match")}}return d}function K3(e,t,n,i){var r=vn(n);r.push(e.name);var o=vn(i);return o.push(1),{idx:t,def:e.definition,ruleStack:r,occurrenceStack:o}}var jc,H3,j_,wh,$_,fA,U_,uA,ap=Xe(()=>{Rh();gt();cA();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)}}(),H3=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=vn(this.path.ruleStack).reverse(),this.occurrenceStack=vn(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),j_=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}(H3),wh=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),$_=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}(wh),fA=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}(wh),U_=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}(wh),uA=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}(wh);a(Mh,"possiblePathsFrom");a(Vh,"nextPossibleTokensAfter");a(K3,"expandTopLevelRule")});function G_(e){if(e instanceof qt)return Rt.OPTION;if(e instanceof Ot)return Rt.REPETITION;if(e instanceof Cn)return Rt.REPETITION_MANDATORY;if(e instanceof Nn)return Rt.REPETITION_MANDATORY_WITH_SEPARATOR;if(e instanceof Tn)return Rt.REPETITION_WITH_SEPARATOR;if(e instanceof En)return Rt.ALTERNATION;throw Error("non exhaustive match")}function H_(e,t,n,i,r,o){var s=sp(e,t,n),l=q_(s)?zl:Mc;return o(s,i,l,r)}function K_(e,t,n,i,r,o){var s=cp(e,t,r,n),l=q_(s)?zl:Mc;return o(s[0],l,i)}function X_(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],L=C.length,R=0;R<L;R++){var F=this.LA(R+1);if(n(F,C[R])===!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 J_(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 B_(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=[];return t}function pA(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 J3(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 Y_(e,t){for(var n=ce(e,function(d){return Mh([d],1)}),i=B_(n.length),r=ce(n,function(d){var m={};return me(d,function(T){var b=pA(T.partialPath);me(b,function(E){m[E]=!0})}),m}),o=n,s=1;s<=t;s++){var l=o;o=B_(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=pA(b),L=J3(r,C,d);if(L||it(E)||b.length===t){var R=i[d];if(kh(R,b)===!1){R.push(b);for(var F=0;F<C.length;F++){var U=C[F];r[d][U]=!0}}}else{var J=Mh(E,s+1,b);o[d]=o[d].concat(J),me(J,function(re){var Ce=pA(re.partialPath);me(Ce,function(st){r[d][st]=!0})})}}},"_loop_1"),p=0;p<l.length;p++)u(p)}return i}function sp(e,t,n,i){var r=new Q_(e,Rt.ALTERNATION,i);return t.accept(r),Y_(r.result,n)}function cp(e,t,n,i){var r=new Q_(e,n);t.accept(r);var o=r.result,s=new X3(t,e,n),l=s.startWalking(),u=new Kt({definition:o}),p=new Kt({definition:l});return Y_([u,p],i)}function kh(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 z_(e,t){return e.length<t.length&&fi(e,function(n,i){var r=t[i];return n===r||r.categoryMatchesMap[n.tokenTypeIdx]})}function q_(e){return fi(e,function(t){return fi(t,function(n){return fi(n,function(i){return it(i.categoryMatches)})})})}var W_,Rt,X3,Q_,lp=Xe(()=>{gt();ap();Rh();ql();Fi();ef();W_=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"})(Rt||(Rt={}));a(G_,"getProdType");a(H_,"buildLookaheadFuncForOr");a(K_,"buildLookaheadFuncForOptionalProd");a(X_,"buildAlternativesLookAheadFunc");a(J_,"buildSingleAlternativeLookaheadFunction");X3=function(e){W_(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,Rt.OPTION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOne=function(n,i,r){this.checkIsTarget(n,Rt.REPETITION_MANDATORY,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkAtLeastOneSep=function(n,i,r){this.checkIsTarget(n,Rt.REPETITION_MANDATORY_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkMany=function(n,i,r){this.checkIsTarget(n,Rt.REPETITION,i,r)||e.prototype.walkOption.call(this,n,i,r)},t.prototype.walkManySep=function(n,i,r){this.checkIsTarget(n,Rt.REPETITION_WITH_SEPARATOR,i,r)||e.prototype.walkOption.call(this,n,i,r)},t}(Vc),Q_=function(e){W_(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,Rt.OPTION)},t.prototype.visitRepetition=function(n){this.checkIsTarget(n,Rt.REPETITION)},t.prototype.visitRepetitionMandatory=function(n){this.checkIsTarget(n,Rt.REPETITION_MANDATORY)},t.prototype.visitRepetitionMandatoryWithSeparator=function(n){this.checkIsTarget(n,Rt.REPETITION_MANDATORY_WITH_SEPARATOR)},t.prototype.visitRepetitionWithSeparator=function(n){this.checkIsTarget(n,Rt.REPETITION_WITH_SEPARATOR)},t.prototype.visitAlternation=function(n){this.checkIsTarget(n,Rt.ALTERNATION)},t}(Wr);a(B_,"initializeArrayOfArrays");a(pA,"pathToHashKeys");a(J3,"isUniquePrefixHash");a(Y_,"lookAheadSequenceFromAlternatives");a(sp,"getLookaheadPathsForOr");a(cp,"getLookaheadPathsForOptionalProd");a(kh,"containsPath");a(z_,"isStrictPrefixOfPath");a(q_,"areTokenCategoriesNotUsed")});function Z_(e,t,n,i,r){var o=ce(e,function(b){return Q3(b,i)}),s=ce(e,function(b){return nD(b,b,i)}),l=[],u=[],p=[];fi(s,it)&&(l=ce(e,function(b){return Z3(b,i)}),u=ce(e,function(b){return e7(b,t,i)}),p=i7(e,t,i));var d=a7(e,n,i),m=ce(e,function(b){return n7(b,i)}),T=ce(e,function(b){return q3(b,e,r,i)});return In(o.concat(p,s,l,u,d,m,T))}function Q3(e,t){var n=new z3;e.accept(n);var i=n.allProductions,r=X0(i,Y3),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:Hn.DUPLICATE_PRODUCTIONS,ruleName:e.name,dslName:d,occurrence:u.idx},T=eD(u);return T&&(m.parameter=T),m});return s}function Y3(e){return hr(e)+"_#_"+e.idx+"_#_"+eD(e)}function eD(e){return e instanceof pt?e.terminalType.name:e instanceof zt?e.nonTerminalName:""}function q3(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:Hn.DUPLICATE_RULE_NAME,ruleName:e.name})}return r}function tD(e,t,n){var i=[],r;return Lt(t,e)||(r="Invalid rule override, rule: ->"+e+"<- cannot be overridden in the grammar: ->"+n+"<-as it is not defined in any of the super grammars ",i.push({message:r,type:Hn.INVALID_RULE_OVERRIDE,ruleName:e})),i}function nD(e,t,n,i){i===void 0&&(i=[]);var r=[],o=jh(t.definition);if(it(o))return[];var s=e.name,l=Lt(o,e);l&&r.push({message:n.buildLeftRecursionError({topLevelRule:e,leftRecursionPath:i}),type:Hn.LEFT_RECURSION,ruleName:s});var u=wc(o,i.concat([e])),p=ce(u,function(d){var m=vn(i);return m.push(d),nD(e,d,n,m)});return r.concat(In(p))}function jh(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 Cn||n instanceof Nn||n instanceof Tn||n instanceof Ot)t=t.concat(jh(n.definition));else if(n instanceof En)t=In(ce(n.definition,function(s){return jh(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(jh(o))}else return t}function Z3(e,t){var n=new gA;e.accept(n);var i=n.alternations,r=on(i,function(o,s){var l=As(s.definition),u=ce(l,function(p,d){var m=Vh([p],[],null,1);return it(m)?{message:t.buildEmptyAlternationError({topLevelRule:e,alternation:s,emptyChoiceIdx:d}),type:Hn.NONE_LAST_EMPTY_ALT,ruleName:e.name,occurrence:s.idx,alternative:d+1}:null});return o.concat(Oa(u))},[]);return r}function e7(e,t,n){var i=new gA;e.accept(i);var r=i.alternations;r=xa(r,function(s){return s.ignoreAmbiguities===!0});var o=on(r,function(s,l){var u=l.idx,p=l.maxLookahead||t,d=sp(u,e,p,l),m=r7(d,l,e,n),T=o7(d,l,e,n);return s.concat(m,T)},[]);return o}function n7(e,t){var n=new gA;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:Hn.TOO_MANY_ALTS,ruleName:e.name,occurrence:s.idx}),o},[]);return r}function i7(e,t,n){var i=[];return me(e,function(r){var o=new t7;r.accept(o);var s=o.allProductions;me(s,function(l){var u=G_(l),p=l.maxLookahead||t,d=l.idx,m=cp(d,r,u,p),T=m[0];if(it(In(T))){var b=n.buildEmptyRepetitionError({topLevelRule:r,repetition:l});i.push({message:b,type:Hn.NO_NON_EMPTY_LOOKAHEAD,ruleName:r.name})}})}),i}function r7(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&&kh(T,d)&&t.definition[b].ignoreAmbiguities!==!0&&m.push(b)}),m.length>1&&!kh(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:Hn.AMBIGUOUS_ALTS,ruleName:n.name,occurrence:t.idx,alternatives:[l.alts]}});return s}function o7(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=H0(o,function(T){return t.definition[T.idx].ignoreAmbiguities!==!0&&T.idx<u&&z_(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:Hn.AMBIGUOUS_PREFIX_ALTS,ruleName:n.name,occurrence:E,alternatives:b}});r=r.concat(m)}}),r}function a7(e,t,n){var i=[],r=ce(t,function(o){return o.name});return me(e,function(o){var s=o.name;if(Lt(r,s)){var l=n.buildNamespaceConflictError(o);i.push({message:l,type:Hn.CONFLICT_TOKENS_RULES_NAMESPACE,ruleName:s})}}),i}var dA,z3,gA,t7,mA=Xe(()=>{gt();gt();yr();nf();lp();ap();Fi();ef();dA=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(Z_,"validateGrammar");a(Q3,"validateDuplicateProductions");a(Y3,"identifyProductionForDuplicates");a(eD,"getExtraProductionArgument");z3=function(e){dA(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}(Wr);a(q3,"validateRuleDoesNotAlreadyExist");a(tD,"validateRuleIsOverridden");a(nD,"validateNoLeftRecursion");a(jh,"getFirstNoneTerminal");gA=function(e){dA(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}(Wr);a(Z3,"validateEmptyOrAlternative");a(e7,"validateAmbiguousAlternationAlternatives");t7=function(e){dA(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}(Wr);a(n7,"validateTooManyAlts");a(i7,"validateSomeNonEmptyLookaheadPath");a(r7,"checkAlternativesAmbiguities");a(o7,"checkPrefixAlternativesAmbiguities");a(a7,"checkTerminalAndNoneTerminalsNameSpace")});function $h(e){e=zu(e,{errMsgProvider:Dh});var t={};return me(e.rules,function(n){t[n.name]=n}),V_(t,e.errMsgProvider)}function Uh(e){return e=zu(e,{errMsgProvider:Is}),Z_(e.rules,e.maxLookahead,e.tokenTypes,e.errMsgProvider,e.grammarName)}function iD(e){me(e.rules,function(t){var n=new sA;t.accept(n),me(n.dslMethods,function(i){me(i,function(r,o){r.idx=o+1})})})}var hA=Xe(()=>{gt();k_();mA();op();nf();a($h,"resolveGrammar");a(Uh,"validateGrammar");a(iD,"assignOccurrenceIndices")});function Na(e){return Lt(cD,e.name)}var fp,rD,oD,aD,sD,cD,Bh,rf,Wh,Gh,Hh,of=Xe(()=>{gt();fp=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)}}(),rD="MismatchedTokenException",oD="NoViableAltException",aD="EarlyExitException",sD="NotAllInputParsedException",cD=[rD,oD,aD,sD];Object.freeze(cD);a(Na,"isRecognitionException");Bh=function(e){fp(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){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=rD,o}return a(t,"MismatchedTokenException"),t}(Bh),Wh=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=oD,o}return a(t,"NoViableAltException"),t}(Bh),Gh=function(e){fp(t,e);function t(n,i){var r=e.call(this,n,i)||this;return r.name=sD,r}return a(t,"NotAllInputParsedException"),t}(Bh),Hh=function(e){fp(t,e);function t(n,i,r){var o=e.call(this,n,i)||this;return o.previousToken=r,o.name=aD,o}return a(t,"EarlyExitException"),t}(Bh)});function lD(e){this.name=vA,this.message=e}function s7(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=Br,b=1),this.shouldInRepetitionRecoveryBeTried(T,b,s)&&this.tryInRepetitionRecovery(e,t,n,T)}var yA,vA,fD,TA=Xe(()=>{Os();gt();of();lA();yr();yA={},vA="InRuleRecoveryException";a(lD,"InRuleRecoveryException");lD.prototype=Error.prototype;fD=function(){function e(){}return a(e,"Recoverable"),e.prototype.initRecoverable=function(t){this.firstAfterRepMap={},this.resyncFollows={},this.recoveryEnabled=Ae(t,"recoveryEnabled")?t.recoveryEnabled:Qi.recoveryEnabled,this.recoveryEnabled&&(this.attemptInRepetitionRecovery=s7)},e.prototype.getTokenToInsert=function(t){var n=Ps(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=As(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 lD("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=Pa(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 Lt(i,t)},e.prototype.findReSyncTokenType=function(){for(var t=this.flattenFollowSet(),n=this.LA(1),i=2;;){var r=n.tokenType;if(Lt(t,r))return r;n=this.LA(i),i++}},e.prototype.getCurrFollowKey=function(){if(this.RULE_STACK.length===1)return yA;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?yA:{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===yA)return[Br];var n=t.ruleName+t.idxInCallingRule+_h+t.inRule;return this.resyncFollows[n]},e.prototype.addToResyncTokens=function(t,n){return this.tokenMatcher(t,Br)||n.push(t),n},e.prototype.reSyncTo=function(t){for(var n=[],i=this.LA(1);this.tokenMatcher(i,t)===!1;)i=this.SKIP_TOKEN(),this.addToResyncTokens(i,n);return As(n)},e.prototype.attemptInRepetitionRecovery=function(t,n,i,r,o,s,l){},e.prototype.getCurrentGrammarPath=function(t,n){var i=this.getHumanReadableRuleStack(),r=vn(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(s7,"attemptInRepetitionRecovery")});function Jh(e,t,n){return n|t|e}var uD,Ko,c7,Kh,Xh,up,pp,dp,af,Zoe,Qh=Xe(()=>{uD=4,Ko=8,c7=8,Kh=1<<Ko,Xh=2<<Ko,up=3<<Ko,pp=4<<Ko,dp=5<<Ko,af=6<<Ko;a(Jh,"getKeyForAutomaticLookahead");Zoe=32-c7});var pD,dD=Xe(()=>{lp();gt();yr();Qh();nf();pD=function(){function e(){}return a(e,"LooksAhead"),e.prototype.initLooksAhead=function(t){this.dynamicTokensEnabled=Ae(t,"dynamicTokensEnabled")?t.dynamicTokensEnabled:Qi.dynamicTokensEnabled,this.maxLookahead=Ae(t,"maxLookahead")?t.maxLookahead:Qi.maxLookahead,this.lookAheadFuncsCache=zb()?new Map:[],zb()?(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=D_(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=H_(m.idx,i,m.maxLookahead||n.maxLookahead,m.hasPredicates,n.dynamicTokensEnabled,n.lookAheadBuilderForAlternatives),E=Jh(n.fullRuleNameToShort[i.name],Kh,m.idx);n.setLaFuncCache(E,b)})}),me(s,function(m){n.computeLookaheadFunc(i,m.idx,up,Rt.REPETITION,m.maxLookahead,hr(m))}),me(l,function(m){n.computeLookaheadFunc(i,m.idx,Xh,Rt.OPTION,m.maxLookahead,hr(m))}),me(u,function(m){n.computeLookaheadFunc(i,m.idx,pp,Rt.REPETITION_MANDATORY,m.maxLookahead,hr(m))}),me(p,function(m){n.computeLookaheadFunc(i,m.idx,af,Rt.REPETITION_MANDATORY_WITH_SEPARATOR,m.maxLookahead,hr(m))}),me(d,function(m){n.computeLookaheadFunc(i,m.idx,dp,Rt.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=K_(n,t,o||l.maxLookahead,l.dynamicTokensEnabled,r,l.lookAheadBuilderForOptional),p=Jh(l.fullRuleNameToShort[t.name],i,n);l.setLaFuncCache(p,u)})},e.prototype.lookAheadBuilderForOptional=function(t,n,i){return J_(t,n,i)},e.prototype.lookAheadBuilderForAlternatives=function(t,n,i,r){return X_(t,n,i,r)},e.prototype.getKeyForAutomaticLookahead=function(t,n){var i=this.getLastExplicitRuleShortName();return Jh(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 EA(e,t){isNaN(e.startOffset)===!0?(e.startOffset=t.startOffset,e.endOffset=t.endOffset):e.endOffset<t.endOffset&&(e.endOffset=t.endOffset)}function bA(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 gD(e,t,n){e.children[n]===void 0?e.children[n]=[t]:e.children[n].push(t)}function mD(e,t,n){e.children[t]===void 0?e.children[t]=[n]:e.children[t].push(n)}var hD=Xe(()=>{a(EA,"setNodeLocationOnlyOffset");a(bA,"setNodeLocationFull");a(gD,"addTerminalToCst");a(mD,"addNoneTerminalToCst")});function vD(e){return gp(e.constructor)}function gp(e){var t=e.name;return t||"anonymous"}function AA(e,t){var n=Object.getOwnPropertyDescriptor(e,yD);return Si(n)||n.configurable?(Object.defineProperty(e,yD,{enumerable:!1,configurable:!0,writable:!1,value:t}),!0):!1}var yD,SA=Xe(()=>{gt();a(vD,"classNameFromInstance");yD="name";a(gp,"functionName");a(AA,"defineNameProp")});function l7(e,t){for(var n=Li(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 TD(e,t){var n=a(function(){},"derivedConstructor");AA(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=f7(this,t);if(!it(r)){var o=ce(r,function(s){return s.msg});throw Error("Errors Detected in CST Visitor <"+gp(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 ED(e,t,n){var i=a(function(){},"derivedConstructor");AA(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 ED(e,t,n){var i=a(function(){},"derivedConstructor");AA(i,e+"BaseSemanticsWithDefaults");var r=Object.create(n.prototype);return me(t,function(o){r[o]=l7}),i.prototype=r,i.prototype.constructor=i,i}function f7(e,t){var n=u7(e,t),i=d7(e,t);return n.concat(i)}function u7(e,t){var n=ce(t,function(i){if(!co(e[i]))return{msg:"Missing visitor method: <"+i+"> on "+gp(e.constructor)+" CST Visitor.",type:Yh.MISSING_METHOD,methodName:i}});return Oa(n)}function d7(e,t){var n=[];for(var i in e)co(e[i])&&!Lt(p7,i)&&!Lt(t,i)&&n.push({msg:"Redundant visitor method: <"+i+"> on "+gp(e.constructor)+` CST Visitor
|
|
169
169
|
There is no Grammar Rule corresponding to this method's name.
|
|
170
|
-
`,type:Yh.REDUNDANT_METHOD,methodName:i});return n}var Yh,f7,bD=Xe(()=>{gt();SA();a(s7,"defaultVisit");a(TD,"createBaseSemanticVisitorConstructor");a(ED,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Yh||(Yh={}));a(c7,"validateVisitor");a(l7,"validateMissingCstMethods");f7=["constructor","visit","validateVisitor"];a(u7,"validateRedundantMethods")});var AD,SD=Xe(()=>{hD();gt();bD();yr();AD=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:Qi.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=bA,this.setNodeLocationFromNode=bA,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=EA,this.setNodeLocationFromNode=EA,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];gD(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];mD(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=TD(this.className,Li(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=ED(this.className,Li(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 xD,PD=Xe(()=>{yr();xD=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 OD,ID=Xe(()=>{gt();of();yr();op();mA();Fi();OD=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),Lt(this.definedRulesNames,t)){var r=Is.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),o={message:r,type:Hn.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(tD(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(Na(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Lh(Dn(this.gastProductionsCache))},e}()});var CD,ND=Xe(()=>{gt();Qh();of();lp();ap();yr();TA();Os();ql();SA();CD=function(){function e(){}return a(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=vD(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:Yh.REDUNDANT_METHOD,methodName:i});return n}var Yh,p7,bD=Xe(()=>{gt();SA();a(l7,"defaultVisit");a(TD,"createBaseSemanticVisitorConstructor");a(ED,"createBaseVisitorConstructorWithDefaults");(function(e){e[e.REDUNDANT_METHOD=0]="REDUNDANT_METHOD",e[e.MISSING_METHOD=1]="MISSING_METHOD"})(Yh||(Yh={}));a(f7,"validateVisitor");a(u7,"validateMissingCstMethods");p7=["constructor","visit","validateVisitor"];a(d7,"validateRedundantMethods")});var AD,SD=Xe(()=>{hD();gt();bD();yr();AD=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:Qi.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=bA,this.setNodeLocationFromNode=bA,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=EA,this.setNodeLocationFromNode=EA,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];gD(i,n,t),this.setNodeLocationFromToken(i.location,n)},e.prototype.cstPostNonTerminal=function(t,n){var i=this.CST_STACK[this.CST_STACK.length-1];mD(i,n,t),this.setNodeLocationFromNode(i.location,t.location)},e.prototype.getBaseCstVisitorConstructor=function(){if(Si(this.baseCstVisitorConstructor)){var t=TD(this.className,Li(this.gastProductionsCache));return this.baseCstVisitorConstructor=t,t}return this.baseCstVisitorConstructor},e.prototype.getBaseCstVisitorConstructorWithDefaults=function(){if(Si(this.baseCstVisitorWithDefaultsConstructor)){var t=ED(this.className,Li(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 xD,PD=Xe(()=>{yr();xD=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 OD,ID=Xe(()=>{gt();of();yr();op();mA();Fi();OD=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),Lt(this.definedRulesNames,t)){var r=Is.buildDuplicateRuleNameError({topLevelRule:t,grammarName:this.className}),o={message:r,type:Hn.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(tD(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(Na(r))return!1;throw r}finally{this.reloadRecogState(i),this.isBackTrackingStack.pop()}}},e.prototype.getGAstProductions=function(){return this.gastProductionsCache},e.prototype.getSerializedGastProductions=function(){return Lh(Dn(this.gastProductionsCache))},e}()});var CD,ND=Xe(()=>{gt();Qh();of();lp();ap();yr();TA();Os();ql();SA();CD=function(){function e(){}return a(e,"RecognizerEngine"),e.prototype.initRecognizerEngine=function(t,n){if(this.className=vD(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)),E_)){var i=In(Dn(t.modes)),r=Yu(i);this.tokensMap=on(r,function(s,l){return s[l.name]=l,s},{})}else if(mh(t))this.tokensMap=Ss(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=Br;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<<uD+Ko;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(Na(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(Xh,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(pp,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,Rt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],o,pp,t,U_)},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,uA],u,af,t,uA)}else throw this.raiseEarlyExitException(t,Rt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(up,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,up,t,$_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dp,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,fA],u,dp,t,fA)}},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(Kh,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 Gh(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 Na(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===vA?i:o}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=vn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Br)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var LD,RD=Xe(()=>{of();gt();lp();yr();LD=function(){function e(){}return a(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ae(t,"errorMessageProvider")?t.errorMessageProvider:Qi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Na(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:vn(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 vn(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=cp(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 Hh(d,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],o=sp(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 Wh(p,this.LA(1),u))},e}()});var FD,_D=Xe(()=>{ap();gt();FD=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 Vh([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],o=new j_(r,t).startWalking();return o},e}()});function mp(e,t,n,i){i===void 0&&(i=!1),zh(n);var r=Zu(this.recordingProdStack),o=co(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(),qh}function d7(e,t){var n=this;zh(t);var i=Zu(this.recordingProdStack),r=li(e)===!1,o=r===!1?e:e.DEF,s=new En({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ae(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=hh(o,function(u){return co(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()}),qh}function MD(e){return e===0?"":""+e}function zh(e){if(e<0||e>wD){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
-
`+("Idx value must be a none negative value smaller than "+(wD+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var qh,DD,wD,VD,kD,
|
|
179
|
-
See: https://sap.github.io/chevrotain/docs/guide/internals.html#grammar-recording for details`,-1,-1,-1,-1,-1,-1);Object.freeze(kD);
|
|
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)),E_)){var i=In(Dn(t.modes)),r=Yu(i);this.tokensMap=on(r,function(s,l){return s[l.name]=l,s},{})}else if(mh(t))this.tokensMap=Ss(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=Br;var o=fi(Dn(t),function(s){return it(s.categoryMatches)});this.tokenMatcher=o?zl:Mc,Ia(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<<uD+Ko;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(Na(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(Xh,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(pp,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,Rt.REPETITION_MANDATORY,n.ERR_MSG);this.attemptInRepetitionRecovery(this.atLeastOneInternal,[t,n],o,pp,t,U_)},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,uA],u,af,t,uA)}else throw this.raiseEarlyExitException(t,Rt.REPETITION_MANDATORY_WITH_SEPARATOR,n.ERR_MSG)},e.prototype.manyInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(up,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,up,t,$_,p)},e.prototype.manySepFirstInternal=function(t,n){var i=this.getKeyForAutomaticLookahead(dp,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,fA],u,dp,t,fA)}},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(Kh,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 Gh(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 Na(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===vA?i:o}}else throw i},e.prototype.saveRecogState=function(){var t=this.errors,n=vn(this.RULE_STACK);return{errors:t,lexerState:this.exportLexerState(),RULE_STACK:n,CST_STACK:this.CST_STACK}},e.prototype.reloadRecogState=function(t){this.errors=t.errors,this.importLexerState(t.lexerState),this.RULE_STACK=t.RULE_STACK},e.prototype.ruleInvocationStateUpdate=function(t,n,i){this.RULE_OCCURRENCE_STACK.push(i),this.RULE_STACK.push(t),this.cstInvocationStateUpdate(n,t)},e.prototype.isBackTracking=function(){return this.isBackTrackingStack.length!==0},e.prototype.getCurrRuleFullName=function(){var t=this.getLastExplicitRuleShortName();return this.shortRuleNameToFull[t]},e.prototype.shortRuleNameToFullName=function(t){return this.shortRuleNameToFull[t]},e.prototype.isAtEndOfInput=function(){return this.tokenMatcher(this.LA(1),Br)},e.prototype.reset=function(){this.resetLexerState(),this.isBackTrackingStack=[],this.errors=[],this.RULE_STACK=[],this.CST_STACK=[],this.RULE_OCCURRENCE_STACK=[]},e}()});var LD,RD=Xe(()=>{of();gt();lp();yr();LD=function(){function e(){}return a(e,"ErrorHandler"),e.prototype.initErrorHandler=function(t){this._errors=[],this.errorMessageProvider=Ae(t,"errorMessageProvider")?t.errorMessageProvider:Qi.errorMessageProvider},e.prototype.SAVE_ERROR=function(t){if(Na(t))return t.context={ruleStack:this.getHumanReadableRuleStack(),ruleOccurrenceStack:vn(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 vn(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=cp(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 Hh(d,this.LA(1),this.LA(0)))},e.prototype.raiseNoAltException=function(t,n){for(var i=this.getCurrRuleFullName(),r=this.getGAstProductions()[i],o=sp(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 Wh(p,this.LA(1),u))},e}()});var FD,_D=Xe(()=>{ap();gt();FD=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 Vh([i],n,this.tokenMatcher,this.maxLookahead)},e.prototype.getNextPossibleTokenTypes=function(t){var n=Ai(t.ruleStack),i=this.getGAstProductions(),r=i[n],o=new j_(r,t).startWalking();return o},e}()});function mp(e,t,n,i){i===void 0&&(i=!1),zh(n);var r=Zu(this.recordingProdStack),o=co(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(),qh}function m7(e,t){var n=this;zh(t);var i=Zu(this.recordingProdStack),r=li(e)===!1,o=r===!1?e:e.DEF,s=new En({definition:[],idx:t,ignoreAmbiguities:r&&e.IGNORE_AMBIGUITIES===!0});Ae(e,"MAX_LOOKAHEAD")&&(s.maxLookahead=e.MAX_LOOKAHEAD);var l=hh(o,function(u){return co(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()}),qh}function MD(e){return e===0?"":""+e}function zh(e){if(e<0||e>wD){var t=new Error("Invalid DSL Method idx value: <"+e+`>
|
|
178
|
+
`+("Idx value must be a none negative value smaller than "+(wD+1)));throw t.KNOWN_RECORDER_ERROR=!0,t}}var qh,DD,wD,VD,kD,g7,jD,$D=Xe(()=>{gt();Fi();tp();ql();Os();yr();Qh();qh={description:"This Object indicates the Parser is during Recording Phase"};Object.freeze(qh);DD=!0,wD=Math.pow(2,Ko)-1,VD=ip({name:"RECORDING_PHASE_TOKEN",pattern:Ri.NA});Ia([VD]);kD=Ps(VD,`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(kD);g7={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:{}},jD=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 mp.call(this,qt,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){mp.call(this,Cn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){mp.call(this,Nn,n,t,DD)},e.prototype.manyInternalRecord=function(t,n){mp.call(this,Ot,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){mp.call(this,Tn,n,t,DD)},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=Zu(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=Zu(this.recordingProdStack),s=new pt({idx:n,terminalType:t});return o.definition.push(s),kD},e}();a(mp,"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 mp.call(this,qt,t,n)},e.prototype.atLeastOneInternalRecord=function(t,n){mp.call(this,Cn,n,t)},e.prototype.atLeastOneSepFirstInternalRecord=function(t,n){mp.call(this,Nn,n,t,DD)},e.prototype.manyInternalRecord=function(t,n){mp.call(this,Ot,n,t)},e.prototype.manySepFirstInternalRecord=function(t,n){mp.call(this,Tn,n,t,DD)},e.prototype.orInternalRecord=function(t,n){return m7.call(this,t,n)},e.prototype.subruleInternalRecord=function(t,n,i){if(zh(n),!t||Ae(t,"ruleName")===!1){var r=new Error("<SUBRULE"+MD(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=Zu(this.recordingProdStack),s=t.ruleName,l=new zt({idx:n,nonTerminalName:s,referencedRule:void 0});return o.definition.push(l),this.outputCst?g7:qh},e.prototype.consumeInternalRecord=function(t,n,i){if(zh(n),!rA(t)){var r=new Error("<CONSUME"+MD(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=Zu(this.recordingProdStack),s=new pt({idx:n,terminalType:t});return o.definition.push(s),kD},e}();a(mp,"recordProd");a(m7,"recordOrProd");a(MD,"getIdxSuffix");a(zh,"assertMethodIdxIsValid")});var UD,BD=Xe(()=>{gt();yr();UD=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=Qi.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=Th(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 GD(e){return e===void 0&&(e=void 0),function(){return e}}var WD,sf,Qi,cf,Hn,xA,HD,KD,yr=Xe(()=>{gt();M_();Os();op();hA();TA();dD();SD();PD();ID();ND();RD();_D();$D();BD();WD=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=Ps(Br,"",NaN,NaN,NaN,NaN,NaN,NaN);Object.freeze(sf);Qi=Object.freeze({recoveryEnabled:!1,maxLookahead:3,dynamicTokensEnabled:!1,outputCst:!0,errorMessageProvider:rp,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"})(Hn||(Hn={}));a(GD,"EMPTY_ALT");xA=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:Qi.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(){vh(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=$h({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=Uh({rules:Dn(t.gastProductionsCache),maxLookahead:t.maxLookahead,tokenTypes:Dn(t.tokensMap),errMsgProvider:Is,grammarName:i});t.definitionErrors.push.apply(t.definitionErrors,o)}}),it(t.definitionErrors)&&(t.recoveryEnabled&&t.TRACE_INIT("computeAllProdsFollows",function(){var o=w_(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
|
+
`+h7(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(YD,"genUmdModule");a(zD,"genWrapperFunction");a(qD,"genClass");a(
|
|
263
|
+
`;return t}function h7(e){var t=ce(e,function(n){return y7(n,1)});return t.join(`
|
|
264
|
+
`)}function y7(e,t){var n=_i(t,'$.RULE("'+e.name+'", function() {')+ti;return n+=Zh(e.definition,t+1),n+=_i(t+1,"})")+ti,n}function v7(e,t){var n=e.terminalType.name;return _i(t,"$.CONSUME"+e.idx+"(this.tokensMap."+n+")"+ti)}function T7(e,t){return _i(t,"$.SUBRULE"+e.idx+"($."+e.nonTerminalName+")"+ti)}function E7(e,t){var n=_i(t,"$.OR"+e.idx+"([")+ti,i=ce(e.definition,function(r){return b7(r,t+1)});return n+=i.join(","+ti),n+=ti+_i(t,"])"+ti),n}function b7(e,t){var n=_i(t,"{")+ti;return n+=_i(t+1,"ALT: function() {")+ti,n+=Zh(e.definition,t+1),n+=_i(t+1,"}")+ti,n+=_i(t,"}"),n}function A7(e,t){if(e instanceof zt)return T7(e,t);if(e instanceof qt)return hp("OPTION",e,t);if(e instanceof Cn)return hp("AT_LEAST_ONE",e,t);if(e instanceof Nn)return hp("AT_LEAST_ONE_SEP",e,t);if(e instanceof Tn)return hp("MANY_SEP",e,t);if(e instanceof Ot)return hp("MANY",e,t);if(e instanceof En)return E7(e,t);if(e instanceof pt)return v7(e,t);if(e instanceof Kt)return Zh(e.definition,t);throw Error("non exhaustive match")}function hp(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: "+QD(t.definition,n+2)+ti,i+=_i(n,"}")+ti):i+=QD(t.definition,n+1),i+=_i(n,")")+ti,i}function QD(e,t){var n="function() {"+ti;return n+=Zh(e,t),n+=_i(t,"}")+ti,n}function Zh(e,t){var n="";return me(e,function(i){n+=A7(i,t+1)}),n}function _i(e,t){var n=Array(e*4+1).join(" ");return n+t}var ti,ZD=Xe(()=>{gt();Fi();ti=`
|
|
265
|
+
`;a(YD,"genUmdModule");a(zD,"genWrapperFunction");a(qD,"genClass");a(h7,"genAllRules");a(y7,"genRule");a(v7,"genTerminal");a(T7,"genNonTerminal");a(E7,"genAlternation");a(b7,"genSingleAlt");a(A7,"genProd");a(hp,"genDSLRule");a(QD,"genDefFunction");a(Zh,"genDefinition");a(_i,"indent")});function e1(e){var t=zD({name:e.name,rules:e.rules}),n=new Function("tokenVocabulary","config","chevrotain",t);return function(i){return n(e.tokenVocabulary,i,(ty(),tg(ey)))}}function t1(e){return YD({name:e.name,rules:e.rules})}var n1=Xe(()=>{ZD();a(e1,"generateParserFactory");a(t1,"generateParserModule")});var ey={};qs(ey,{Alternation:()=>En,Alternative:()=>Kt,CstParser:()=>HD,EMPTY_ALT:()=>GD,EOF:()=>Br,EarlyExitException:()=>Hh,EmbeddedActionsParser:()=>KD,GAstVisitor:()=>Wr,Lexer:()=>Ri,LexerDefinitionErrorType:()=>an,MismatchedTokenException:()=>rf,NoViableAltException:()=>Wh,NonTerminal:()=>zt,NotAllInputParsedException:()=>Gh,Option:()=>qt,Parser:()=>x7,ParserDefinitionErrorType:()=>Hn,Repetition:()=>Ot,RepetitionMandatory:()=>Cn,RepetitionMandatoryWithSeparator:()=>Nn,RepetitionWithSeparator:()=>Tn,Rule:()=>mr,Terminal:()=>pt,VERSION:()=>Qu,assignOccurrenceIndices:()=>iD,clearCache:()=>S7,createSyntaxDiagramsCode:()=>XD,createToken:()=>ip,createTokenInstance:()=>Ps,defaultGrammarResolverErrorProvider:()=>Dh,defaultGrammarValidatorErrorProvider:()=>Is,defaultLexerErrorProvider:()=>Nh,defaultParserErrorProvider:()=>rp,generateParserFactory:()=>e1,generateParserModule:()=>t1,isRecognitionException:()=>Na,resolveGrammar:()=>$h,serializeGrammar:()=>Lh,serializeProduction:()=>Zl,tokenLabel:()=>Ho,tokenMatcher:()=>L_,tokenName:()=>N_,validateGrammar:()=>Uh});function S7(){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 IA=Ve((
|
|
269
|
-
`],lineTerminatorsPattern:/\n|\r\n/g});c1.exports={xmlLexer:H7,tokensDictionary:o1}});var f1=Ve((nce,l1)=>{var{CstParser:K7,tokenMatcher:X7}=(ty(),tg(ey)),{tokensDictionary:St}=IA(),NA=class NA extends K7{constructor(){super(St,{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(St.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(St.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(St.DocType),t.CONSUME(St.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(St.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:()=>t.LA(1).image==="SYSTEM",ALT:()=>{t.CONSUME2(St.Name,{LABEL:"System"}),t.CONSUME(St.STRING,{LABEL:"SystemLiteral"})}},{GATE:()=>t.LA(1).image==="PUBLIC",ALT:()=>{t.CONSUME3(St.Name,{LABEL:"Public"}),t.CONSUME2(St.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(St.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(St.CData)},{ALT:()=>t.CONSUME(St.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(St.Comment)}])})}),t.RULE("element",()=>{t.CONSUME(St.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(St.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:()=>{t.CONSUME(St.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(St.SLASH_OPEN),t.CONSUME2(St.Name,{LABEL:"END_NAME"}),t.CONSUME2(St.CLOSE,{LABEL:"END"})}},{ALT:()=>{t.CONSUME(St.SLASH_CLOSE)}}])}),t.RULE("reference",()=>{t.OR([{ALT:()=>t.CONSUME(St.EntityRef)},{ALT:()=>t.CONSUME(St.CharRef)}])}),t.RULE("attribute",()=>{t.CONSUME(St.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(St.EQUALS),t.CONSUME(St.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:()=>t.CONSUME(St.TEXT)},{ALT:()=>t.CONSUME(St.SEA_WS)}])}),t.RULE("misc",()=>{t.OR([{ALT:()=>t.CONSUME(St.Comment)},{ALT:()=>t.CONSUME(St.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(St.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=>X7(n,o));if(r!==void 0)return r;n=this.LA(i),i++}}};a(NA,"Parser");var CA=NA,J7=new CA;l1.exports={xmlParser:J7}});var LA=Ve((rce,u1)=>{var{xmlLexer:Q7}=IA(),{xmlParser:ny}=f1();u1.exports={parse:a(function(t){let n=Q7.tokenize(t);return ny.input=n.tokens,{cst:ny.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:ny.errors}},"parse"),BaseXmlCstVisitor:ny.getBaseCstVisitorConstructor()}});var Tp=Ve((ff,vp)=>{(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,L=4,R=8,F=16,U=32,J=64,re=128,Ce=256,st=512,k=30,It="...",mt=800,Ke=16,Xt=1,wi=2,dn=3,Zt=1/0,Fe=9007199254740991,Kn=17976931348623157e292,jn=NaN,en=4294967295,Ln=en-1,ni=en>>>1,Le=[["ary",re],["bind",E],["bindKey",C],["curry",R],["curryRight",F],["flip",st],["partial",U],["partialRight",J],["rearg",Ce]],Rn="[object Arguments]",Xn="[object Array]",Ye="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",Y="[object DOMException]",M="[object Error]",Re="[object Function]",ct="[object GeneratorFunction]",je="[object Map]",Tt="[object Number]",sn="[object Null]",tn="[object Object]",Mt="[object Promise]",ii="[object Proxy]",nr="[object RegExp]",cn="[object Set]",pi="[object String]",Vt="[object Symbol]",qo="[object Undefined]",Mi="[object WeakMap]",Cf="[object WeakSet]",Us="[object ArrayBuffer]",Ar="[object DataView]",Nf="[object Float32Array]",Lf="[object Float64Array]",Rf="[object Int8Array]",Bs="[object Int16Array]",$="[object Int32Array]",W="[object Uint8Array]",Q="[object Uint8ClampedArray]",ie="[object Uint16Array]",Ne="[object Uint32Array]",ln=/\b__p \+= '';/g,Sn=/\b(__p \+=) '' \+/g,qe=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ue=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,be=RegExp(ue.source),Oe=RegExp(xe.source),nt=/<%-([\s\S]+?)%>/g,kt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,ir=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ud=/^\w*$/,jy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ff=/[\\^$.*+?()[\]{}|]/g,vM=RegExp(Ff.source),$y=/^\s+/,TM=/\s/,EM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bM=/\{\n\/\* \[wrapped with (.+)\] \*/,AM=/,? & /,SM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xM=/[()=,{}\[\]\/\s]/,PM=/\\(\\)?/g,OM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fP=/\w*$/,IM=/^[-+]0x[0-9a-f]+$/i,CM=/^0b[01]+$/i,NM=/^\[object .+?Constructor\]$/,LM=/^0o[0-7]+$/i,RM=/^(?:0|[1-9]\d*)$/,FM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pd=/($^)/,_M=/['\n\r\u2028\u2029\\]/g,dd="\\ud800-\\udfff",DM="\\u0300-\\u036f",wM="\\ufe20-\\ufe2f",MM="\\u20d0-\\u20ff",uP=DM+wM+MM,pP="\\u2700-\\u27bf",dP="a-z\\xdf-\\xf6\\xf8-\\xff",VM="\\xac\\xb1\\xd7\\xf7",kM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jM="\\u2000-\\u206f",$M=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gP="A-Z\\xc0-\\xd6\\xd8-\\xde",mP="\\ufe0e\\ufe0f",hP=VM+kM+jM+$M,Uy="['\u2019]",UM="["+dd+"]",yP="["+hP+"]",gd="["+uP+"]",vP="\\d+",BM="["+pP+"]",TP="["+dP+"]",EP="[^"+dd+hP+vP+pP+dP+gP+"]",By="\\ud83c[\\udffb-\\udfff]",WM="(?:"+gd+"|"+By+")",bP="[^"+dd+"]",Wy="(?:\\ud83c[\\udde6-\\uddff]){2}",Gy="[\\ud800-\\udbff][\\udc00-\\udfff]",Yc="["+gP+"]",AP="\\u200d",SP="(?:"+TP+"|"+EP+")",GM="(?:"+Yc+"|"+EP+")",xP="(?:"+Uy+"(?:d|ll|m|re|s|t|ve))?",PP="(?:"+Uy+"(?:D|LL|M|RE|S|T|VE))?",OP=WM+"?",IP="["+mP+"]?",HM="(?:"+AP+"(?:"+[bP,Wy,Gy].join("|")+")"+IP+OP+")*",KM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",XM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",CP=IP+OP+HM,JM="(?:"+[BM,Wy,Gy].join("|")+")"+CP,QM="(?:"+[bP+gd+"?",gd,Wy,Gy,UM].join("|")+")",YM=RegExp(Uy,"g"),zM=RegExp(gd,"g"),Hy=RegExp(By+"(?="+By+")|"+QM+CP,"g"),qM=RegExp([Yc+"?"+TP+"+"+xP+"(?="+[yP,Yc,"$"].join("|")+")",GM+"+"+PP+"(?="+[yP,Yc+SP,"$"].join("|")+")",Yc+"?"+SP+"+"+xP,Yc+"+"+PP,XM,KM,vP,JM].join("|"),"g"),ZM=RegExp("["+AP+dd+uP+mP+"]"),eV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tV=["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"],nV=-1,Jt={};Jt[Nf]=Jt[Lf]=Jt[Rf]=Jt[Bs]=Jt[$]=Jt[W]=Jt[Q]=Jt[ie]=Jt[Ne]=!0,Jt[Rn]=Jt[Xn]=Jt[Us]=Jt[I]=Jt[Ar]=Jt[S]=Jt[M]=Jt[Re]=Jt[je]=Jt[Tt]=Jt[tn]=Jt[nr]=Jt[cn]=Jt[pi]=Jt[Mi]=!1;var Wt={};Wt[Rn]=Wt[Xn]=Wt[Us]=Wt[Ar]=Wt[I]=Wt[S]=Wt[Nf]=Wt[Lf]=Wt[Rf]=Wt[Bs]=Wt[$]=Wt[je]=Wt[Tt]=Wt[tn]=Wt[nr]=Wt[cn]=Wt[pi]=Wt[Vt]=Wt[W]=Wt[Q]=Wt[ie]=Wt[Ne]=!0,Wt[M]=Wt[Re]=Wt[Mi]=!1;var iV={\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"},rV={"&":"&","<":"<",">":">",'"':""","'":"'"},oV={"&":"&","<":"<",">":">",""":'"',"'":"'"},aV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sV=parseFloat,cV=parseInt,NP=typeof global=="object"&&global&&global.Object===Object&&global,lV=typeof self=="object"&&self&&self.Object===Object&&self,Jn=NP||lV||Function("return this")(),Ky=typeof ff=="object"&&ff&&!ff.nodeType&&ff,Ws=Ky&&typeof vp=="object"&&vp&&!vp.nodeType&&vp,LP=Ws&&Ws.exports===Ky,Xy=LP&&NP.process,Sr=function(){try{var V=Ws&&Ws.require&&Ws.require("util").types;return V||Xy&&Xy.binding&&Xy.binding("util")}catch{}}(),RP=Sr&&Sr.isArrayBuffer,FP=Sr&&Sr.isDate,_P=Sr&&Sr.isMap,DP=Sr&&Sr.isRegExp,wP=Sr&&Sr.isSet,MP=Sr&&Sr.isTypedArray;function rr(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(rr,"apply");function fV(V,X,H,he){for(var Ge=-1,Et=V==null?0:V.length;++Ge<Et;){var $n=V[Ge];X(he,$n,H($n),V)}return he}a(fV,"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 uV(V,X){for(var H=V==null?0:V.length;H--&&X(V[H],H,V)!==!1;);return V}a(uV,"arrayEachRight");function VP(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(VP,"arrayEvery");function Va(V,X){for(var H=-1,he=V==null?0:V.length,Ge=0,Et=[];++H<he;){var $n=V[H];X($n,H,V)&&(Et[Ge++]=$n)}return Et}a(Va,"arrayFilter");function md(V,X){var H=V==null?0:V.length;return!!H&&zc(V,X,0)>-1}a(md,"arrayIncludes");function Jy(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(Jy,"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 ka(V,X){for(var H=-1,he=X.length,Ge=V.length;++H<he;)V[Ge+H]=X[H];return V}a(ka,"arrayPush");function Qy(V,X,H,he){var Ge=-1,Et=V==null?0:V.length;for(he&&Et&&(H=V[++Ge]);++Ge<Et;)H=X(H,V[Ge],Ge,V);return H}a(Qy,"arrayReduce");function pV(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(pV,"arrayReduceRight");function Yy(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(Yy,"arraySome");var dV=zy("length");function gV(V){return V.split("")}a(gV,"asciiToArray");function mV(V){return V.match(SM)||[]}a(mV,"asciiWords");function kP(V,X,H){var he;return H(V,function(Ge,Et,$n){if(X(Ge,Et,$n))return he=Et,!1}),he}a(kP,"baseFindKey");function hd(V,X,H,he){for(var Ge=V.length,Et=H+(he?1:-1);he?Et--:++Et<Ge;)if(X(V[Et],Et,V))return Et;return-1}a(hd,"baseFindIndex");function zc(V,X,H){return X===X?IV(V,X,H):hd(V,jP,H)}a(zc,"baseIndexOf");function hV(V,X,H,he){for(var Ge=H-1,Et=V.length;++Ge<Et;)if(he(V[Ge],X))return Ge;return-1}a(hV,"baseIndexOfWith");function jP(V){return V!==V}a(jP,"baseIsNaN");function $P(V,X){var H=V==null?0:V.length;return H?Zy(V,X)/H:jn}a($P,"baseMean");function zy(V){return function(X){return X==null?e:X[V]}}a(zy,"baseProperty");function qy(V){return function(X){return V==null?e:V[X]}}a(qy,"basePropertyOf");function UP(V,X,H,he,Ge){return Ge(V,function(Et,$n,jt){H=he?(he=!1,Et):X(H,Et,$n,jt)}),H}a(UP,"baseReduce");function yV(V,X){var H=V.length;for(V.sort(X);H--;)V[H]=V[H].value;return V}a(yV,"baseSortBy");function Zy(V,X){for(var H,he=-1,Ge=V.length;++he<Ge;){var Et=X(V[he]);Et!==e&&(H=H===e?Et:H+Et)}return H}a(Zy,"baseSum");function ev(V,X){for(var H=-1,he=Array(V);++H<V;)he[H]=X(H);return he}a(ev,"baseTimes");function vV(V,X){return rn(X,function(H){return[H,V[H]]})}a(vV,"baseToPairs");function BP(V){return V&&V.slice(0,KP(V)+1).replace($y,"")}a(BP,"baseTrim");function or(V){return function(X){return V(X)}}a(or,"baseUnary");function tv(V,X){return rn(X,function(H){return V[H]})}a(tv,"baseValues");function _f(V,X){return V.has(X)}a(_f,"cacheHas");function WP(V,X){for(var H=-1,he=V.length;++H<he&&zc(X,V[H],0)>-1;);return H}a(WP,"charsStartIndex");function GP(V,X){for(var H=V.length;H--&&zc(X,V[H],0)>-1;);return H}a(GP,"charsEndIndex");function TV(V,X){for(var H=V.length,he=0;H--;)V[H]===X&&++he;return he}a(TV,"countHolders");var EV=qy(iV),bV=qy(rV);function AV(V){return"\\"+aV[V]}a(AV,"escapeStringChar");function SV(V,X){return V==null?e:V[X]}a(SV,"getValue");function qc(V){return ZM.test(V)}a(qc,"hasUnicode");function xV(V){return eV.test(V)}a(xV,"hasUnicodeWord");function PV(V){for(var X,H=[];!(X=V.next()).done;)H.push(X.value);return H}a(PV,"iteratorToArray");function nv(V){var X=-1,H=Array(V.size);return V.forEach(function(he,Ge){H[++X]=[Ge,he]}),H}a(nv,"mapToArray");function HP(V,X){return function(H){return V(X(H))}}a(HP,"overArg");function ja(V,X){for(var H=-1,he=V.length,Ge=0,Et=[];++H<he;){var $n=V[H];($n===X||$n===u)&&(V[H]=u,Et[Ge++]=H)}return Et}a(ja,"replaceHolders");function yd(V){var X=-1,H=Array(V.size);return V.forEach(function(he){H[++X]=he}),H}a(yd,"setToArray");function OV(V){var X=-1,H=Array(V.size);return V.forEach(function(he){H[++X]=[he,he]}),H}a(OV,"setToPairs");function IV(V,X,H){for(var he=H-1,Ge=V.length;++he<Ge;)if(V[he]===X)return he;return-1}a(IV,"strictIndexOf");function CV(V,X,H){for(var he=H+1;he--;)if(V[he]===X)return he;return he}a(CV,"strictLastIndexOf");function Zc(V){return qc(V)?LV(V):dV(V)}a(Zc,"stringSize");function Jr(V){return qc(V)?RV(V):gV(V)}a(Jr,"stringToArray");function KP(V){for(var X=V.length;X--&&TM.test(V.charAt(X)););return X}a(KP,"trimmedEndIndex");var NV=qy(oV);function LV(V){for(var X=Hy.lastIndex=0;Hy.test(V);)++X;return X}a(LV,"unicodeSize");function RV(V){return V.match(Hy)||[]}a(RV,"unicodeToArray");function FV(V){return V.match(qM)||[]}a(FV,"unicodeWords");var _V=a(function V(X){X=X==null?Jn:$a.defaults(Jn.Object(),X,$a.pick(Jn,tV));var H=X.Array,he=X.Date,Ge=X.Error,Et=X.Function,$n=X.Math,jt=X.Object,iv=X.RegExp,DV=X.String,Pr=X.TypeError,vd=H.prototype,wV=Et.prototype,el=jt.prototype,Td=X["__core-js_shared__"],Ed=wV.toString,Ct=el.hasOwnProperty,MV=0,XP=function(){var c=/[^.]+$/.exec(Td&&Td.keys&&Td.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),bd=el.toString,VV=Ed.call(jt),kV=Jn._,jV=iv("^"+Ed.call(Ct).replace(Ff,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ad=LP?X.Buffer:e,Ua=X.Symbol,Sd=X.Uint8Array,JP=Ad?Ad.allocUnsafe:e,xd=HP(jt.getPrototypeOf,jt),QP=jt.create,YP=el.propertyIsEnumerable,Pd=vd.splice,zP=Ua?Ua.isConcatSpreadable:e,Df=Ua?Ua.iterator:e,Gs=Ua?Ua.toStringTag:e,Od=function(){try{var c=Qs(jt,"defineProperty");return c({},"",{}),c}catch{}}(),$V=X.clearTimeout!==Jn.clearTimeout&&X.clearTimeout,UV=he&&he.now!==Jn.Date.now&&he.now,BV=X.setTimeout!==Jn.setTimeout&&X.setTimeout,Id=$n.ceil,Cd=$n.floor,rv=jt.getOwnPropertySymbols,WV=Ad?Ad.isBuffer:e,qP=X.isFinite,GV=vd.join,HV=HP(jt.keys,jt),Un=$n.max,di=$n.min,KV=he.now,XV=X.parseInt,ZP=$n.random,JV=vd.reverse,ov=Qs(X,"DataView"),wf=Qs(X,"Map"),av=Qs(X,"Promise"),tl=Qs(X,"Set"),Mf=Qs(X,"WeakMap"),Vf=Qs(jt,"create"),Nd=Mf&&new Mf,nl={},QV=Ys(ov),YV=Ys(wf),zV=Ys(av),qV=Ys(tl),ZV=Ys(Mf),Ld=Ua?Ua.prototype:e,kf=Ld?Ld.valueOf:e,eO=Ld?Ld.toString:e;function x(c){if(gn(c)&&!He(c)&&!(c instanceof lt)){if(c instanceof Or)return c;if(Ct.call(c,"__wrapped__"))return tI(c)}return new Or(c)}a(x,"lodash");var il=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 Rd(){}a(Rd,"baseLodash");function Or(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}a(Or,"LodashWrapper"),x.templateSettings={escape:nt,evaluate:kt,interpolate:nn,variable:"",imports:{_:x}},x.prototype=Rd.prototype,x.prototype.constructor=x,Or.prototype=il(Rd.prototype),Or.prototype.constructor=Or;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 ek(){var c=new lt(this.__wrapped__);return c.__actions__=Vi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Vi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Vi(this.__views__),c}a(ek,"lazyClone");function tk(){if(this.__filtered__){var c=new lt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}a(tk,"lazyReverse");function nk(){var c=this.__wrapped__.value(),f=this.__dir__,g=He(c),h=f<0,A=g?c.length:0,P=g2(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,Ie=di(j,this.__takeCount__);if(!g||!h&&A==j&&Ie==j)return xO(c,this.__actions__);var De=[];e:for(;j--&&de<Ie;){z+=f;for(var ze=-1,we=c[z];++ze<Z;){var rt=q[ze],ut=rt.iteratee,cr=rt.type,Ii=ut(we);if(cr==wi)we=Ii;else if(!Ii){if(cr==Xt)continue e;break e}}De[de++]=we}return De}a(nk,"lazyValue"),lt.prototype=il(Rd.prototype),lt.prototype.constructor=lt;function Hs(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(Hs,"Hash");function ik(){this.__data__=Vf?Vf(null):{},this.size=0}a(ik,"hashClear");function rk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}a(rk,"hashDelete");function ok(c){var f=this.__data__;if(Vf){var g=f[c];return g===s?e:g}return Ct.call(f,c)?f[c]:e}a(ok,"hashGet");function ak(c){var f=this.__data__;return Vf?f[c]!==e:Ct.call(f,c)}a(ak,"hashHas");function sk(c,f){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Vf&&f===e?s:f,this}a(sk,"hashSet"),Hs.prototype.clear=ik,Hs.prototype.delete=rk,Hs.prototype.get=ok,Hs.prototype.has=ak,Hs.prototype.set=sk;function Zo(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(Zo,"ListCache");function ck(){this.__data__=[],this.size=0}a(ck,"listCacheClear");function lk(c){var f=this.__data__,g=Fd(f,c);if(g<0)return!1;var h=f.length-1;return g==h?f.pop():Pd.call(f,g,1),--this.size,!0}a(lk,"listCacheDelete");function fk(c){var f=this.__data__,g=Fd(f,c);return g<0?e:f[g][1]}a(fk,"listCacheGet");function uk(c){return Fd(this.__data__,c)>-1}a(uk,"listCacheHas");function pk(c,f){var g=this.__data__,h=Fd(g,c);return h<0?(++this.size,g.push([c,f])):g[h][1]=f,this}a(pk,"listCacheSet"),Zo.prototype.clear=ck,Zo.prototype.delete=lk,Zo.prototype.get=fk,Zo.prototype.has=uk,Zo.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,"MapCache");function dk(){this.size=0,this.__data__={hash:new Hs,map:new(wf||Zo),string:new Hs}}a(dk,"mapCacheClear");function gk(c){var f=Gd(this,c).delete(c);return this.size-=f?1:0,f}a(gk,"mapCacheDelete");function mk(c){return Gd(this,c).get(c)}a(mk,"mapCacheGet");function hk(c){return Gd(this,c).has(c)}a(hk,"mapCacheHas");function yk(c,f){var g=Gd(this,c),h=g.size;return g.set(c,f),this.size+=g.size==h?0:1,this}a(yk,"mapCacheSet"),ea.prototype.clear=dk,ea.prototype.delete=gk,ea.prototype.get=mk,ea.prototype.has=hk,ea.prototype.set=yk;function Ks(c){var f=-1,g=c==null?0:c.length;for(this.__data__=new ea;++f<g;)this.add(c[f])}a(Ks,"SetCache");function vk(c){return this.__data__.set(c,s),this}a(vk,"setCacheAdd");function Tk(c){return this.__data__.has(c)}a(Tk,"setCacheHas"),Ks.prototype.add=Ks.prototype.push=vk,Ks.prototype.has=Tk;function Qr(c){var f=this.__data__=new Zo(c);this.size=f.size}a(Qr,"Stack");function Ek(){this.__data__=new Zo,this.size=0}a(Ek,"stackClear");function bk(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}a(bk,"stackDelete");function Ak(c){return this.__data__.get(c)}a(Ak,"stackGet");function Sk(c){return this.__data__.has(c)}a(Sk,"stackHas");function xk(c,f){var g=this.__data__;if(g instanceof Zo){var h=g.__data__;if(!wf||h.length<n-1)return h.push([c,f]),this.size=++g.size,this;g=this.__data__=new ea(h)}return g.set(c,f),this.size=g.size,this}a(xk,"stackSet"),Qr.prototype.clear=Ek,Qr.prototype.delete=bk,Qr.prototype.get=Ak,Qr.prototype.has=Sk,Qr.prototype.set=xk;function tO(c,f){var g=He(c),h=!g&&zs(c),A=!g&&!h&&Ka(c),P=!g&&!h&&!A&&sl(c),N=g||h||A||P,D=N?ev(c.length,DV):[],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")||ra(z,j)))&&D.push(z);return D}a(tO,"arrayLikeKeys");function nO(c){var f=c.length;return f?c[yv(0,f-1)]:e}a(nO,"arraySample");function Pk(c,f){return Hd(Vi(c),Xs(f,0,c.length))}a(Pk,"arraySampleSize");function Ok(c){return Hd(Vi(c))}a(Ok,"arrayShuffle");function sv(c,f,g){(g!==e&&!Yr(c[f],g)||g===e&&!(f in c))&&ta(c,f,g)}a(sv,"assignMergeValue");function jf(c,f,g){var h=c[f];(!(Ct.call(c,f)&&Yr(h,g))||g===e&&!(f in c))&&ta(c,f,g)}a(jf,"assignValue");function Fd(c,f){for(var g=c.length;g--;)if(Yr(c[g][0],f))return g;return-1}a(Fd,"assocIndexOf");function Ik(c,f,g,h){return Ba(c,function(A,P,N){f(h,A,g(A),N)}),h}a(Ik,"baseAggregator");function iO(c,f){return c&&Ao(f,Qn(f),c)}a(iO,"baseAssign");function Ck(c,f){return c&&Ao(f,ji(f),c)}a(Ck,"baseAssignIn");function ta(c,f,g){f=="__proto__"&&Od?Od(c,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[f]=g}a(ta,"baseAssignValue");function cv(c,f){for(var g=-1,h=f.length,A=H(h),P=c==null;++g<h;)A[g]=P?e:Bv(c,f[g]);return A}a(cv,"baseAt");function Xs(c,f,g){return c===c&&(g!==e&&(c=c<=g?c:g),f!==e&&(c=c>=f?c:f)),c}a(Xs,"baseClamp");function Ir(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=h2(c),!D)return Vi(c,N)}else{var Z=gi(c),de=Z==Re||Z==ct;if(Ka(c))return IO(c,D);if(Z==tn||Z==Rn||de&&!A){if(N=j||de?{}:KO(c),!D)return j?o2(c,Ck(N,c)):r2(c,iO(N,c))}else{if(!Wt[Z])return A?c:{};N=y2(c,Z,D)}}P||(P=new Qr);var Ie=P.get(c);if(Ie)return Ie;P.set(c,N),bI(c)?c.forEach(function(we){N.add(Ir(we,f,g,we,c,P))}):TI(c)&&c.forEach(function(we,rt){N.set(rt,Ir(we,f,g,rt,c,P))});var De=z?j?Cv:Iv:j?ji:Qn,ze=q?e:De(c);return xr(ze||c,function(we,rt){ze&&(rt=we,we=c[rt]),jf(N,rt,Ir(we,f,g,rt,c,P))}),N}a(Ir,"baseClone");function Nk(c){var f=Qn(c);return function(g){return rO(g,c,f)}}a(Nk,"baseConforms");function rO(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(rO,"baseConformsTo");function oO(c,f,g){if(typeof c!="function")throw new Pr(r);return Kf(function(){c.apply(e,g)},f)}a(oO,"baseDelay");function $f(c,f,g,h){var A=-1,P=md,N=!0,D=c.length,j=[],z=f.length;if(!D)return j;g&&(f=rn(f,or(g))),h?(P=Jy,N=!1):f.length>=n&&(P=_f,N=!1,f=new Ks(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($f,"baseDifference");var Ba=FO(bo),aO=FO(fv,!0);function Lk(c,f){var g=!0;return Ba(c,function(h,A,P){return g=!!f(h,A,P),g}),g}a(Lk,"baseEvery");function _d(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&&!sr(N):g(N,D)))var D=N,j=P}return j}a(_d,"baseExtremum");function Rk(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:SI(h);g<h;)c[g++]=f;return c}a(Rk,"baseFill");function sO(c,f){var g=[];return Ba(c,function(h,A,P){f(h,A,P)&&g.push(h)}),g}a(sO,"baseFilter");function ri(c,f,g,h,A){var P=-1,N=c.length;for(g||(g=E2),A||(A=[]);++P<N;){var D=c[P];f>0&&g(D)?f>1?ri(D,f-1,g,h,A):ka(A,D):h||(A[A.length]=D)}return A}a(ri,"baseFlatten");var lv=_O(),cO=_O(!0);function bo(c,f){return c&&lv(c,f,Qn)}a(bo,"baseForOwn");function fv(c,f){return c&&cO(c,f,Qn)}a(fv,"baseForOwnRight");function Dd(c,f){return Va(f,function(g){return oa(c[g])})}a(Dd,"baseFunctions");function Js(c,f){f=Ga(f,c);for(var g=0,h=f.length;c!=null&&g<h;)c=c[So(f[g++])];return g&&g==h?c:e}a(Js,"baseGet");function lO(c,f,g){var h=f(c);return He(c)?h:ka(h,g(c))}a(lO,"baseGetAllKeys");function Pi(c){return c==null?c===e?qo:sn:Gs&&Gs in jt(c)?d2(c):I2(c)}a(Pi,"baseGetTag");function uv(c,f){return c>f}a(uv,"baseGt");function Fk(c,f){return c!=null&&Ct.call(c,f)}a(Fk,"baseHas");function _k(c,f){return c!=null&&f in jt(c)}a(_k,"baseHasIn");function Dk(c,f,g){return c>=di(f,g)&&c<Un(f,g)}a(Dk,"baseInRange");function pv(c,f,g){for(var h=g?Jy:md,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,or(f))),j=di(q.length,j),D[N]=!g&&(f||A>=120&&q.length>=120)?new Ks(N&&q):e}q=c[0];var Z=-1,de=D[0];e:for(;++Z<A&&z.length<j;){var Ie=q[Z],De=f?f(Ie):Ie;if(Ie=g||Ie!==0?Ie:0,!(de?_f(de,De):h(z,De,g))){for(N=P;--N;){var ze=D[N];if(!(ze?_f(ze,De):h(c[N],De,g)))continue e}de&&de.push(De),z.push(Ie)}}return z}a(pv,"baseIntersection");function wk(c,f,g,h){return bo(c,function(A,P,N){f(h,g(A),P,N)}),h}a(wk,"baseInverter");function Uf(c,f,g){f=Ga(f,c),c=YO(c,f);var h=c==null?c:c[So(Nr(f))];return h==null?e:rr(h,c,g)}a(Uf,"baseInvoke");function fO(c){return gn(c)&&Pi(c)==Rn}a(fO,"baseIsArguments");function Mk(c){return gn(c)&&Pi(c)==Us}a(Mk,"baseIsArrayBuffer");function Vk(c){return gn(c)&&Pi(c)==S}a(Vk,"baseIsDate");function Bf(c,f,g,h,A){return c===f?!0:c==null||f==null||!gn(c)&&!gn(f)?c!==c&&f!==f:kk(c,f,g,h,Bf,A)}a(Bf,"baseIsEqual");function kk(c,f,g,h,A,P){var N=He(c),D=He(f),j=N?Xn:gi(c),z=D?Xn:gi(f);j=j==Rn?tn:j,z=z==Rn?tn:z;var q=j==tn,Z=z==tn,de=j==z;if(de&&Ka(c)){if(!Ka(f))return!1;N=!0,q=!1}if(de&&!q)return P||(P=new Qr),N||sl(c)?WO(c,f,g,h,A,P):u2(c,f,j,g,h,A,P);if(!(g&T)){var Ie=q&&Ct.call(c,"__wrapped__"),De=Z&&Ct.call(f,"__wrapped__");if(Ie||De){var ze=Ie?c.value():c,we=De?f.value():f;return P||(P=new Qr),A(ze,we,g,h,P)}}return de?(P||(P=new Qr),p2(c,f,g,h,A,P)):!1}a(kk,"baseIsEqualDeep");function jk(c){return gn(c)&&gi(c)==je}a(jk,"baseIsMap");function dv(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 Qr;if(h)var de=h(z,q,j,c,f,Z);if(!(de===e?Bf(q,z,T|b,h,Z):de))return!1}}return!0}a(dv,"baseIsMatch");function uO(c){if(!fn(c)||A2(c))return!1;var f=oa(c)?jV:NM;return f.test(Ys(c))}a(uO,"baseIsNative");function $k(c){return gn(c)&&Pi(c)==nr}a($k,"baseIsRegExp");function Uk(c){return gn(c)&&gi(c)==cn}a(Uk,"baseIsSet");function Bk(c){return gn(c)&&zd(c.length)&&!!Jt[Pi(c)]}a(Bk,"baseIsTypedArray");function pO(c){return typeof c=="function"?c:c==null?$i:typeof c=="object"?He(c)?mO(c[0],c[1]):gO(c):DI(c)}a(pO,"baseIteratee");function gv(c){if(!Hf(c))return HV(c);var f=[];for(var g in jt(c))Ct.call(c,g)&&g!="constructor"&&f.push(g);return f}a(gv,"baseKeys");function Wk(c){if(!fn(c))return O2(c);var f=Hf(c),g=[];for(var h in c)h=="constructor"&&(f||!Ct.call(c,h))||g.push(h);return g}a(Wk,"baseKeysIn");function mv(c,f){return c<f}a(mv,"baseLt");function dO(c,f){var g=-1,h=ki(c)?H(c.length):[];return Ba(c,function(A,P,N){h[++g]=f(A,P,N)}),h}a(dO,"baseMap");function gO(c){var f=Lv(c);return f.length==1&&f[0][2]?JO(f[0][0],f[0][1]):function(g){return g===c||dv(g,c,f)}}a(gO,"baseMatches");function mO(c,f){return Fv(c)&&XO(f)?JO(So(c),f):function(g){var h=Bv(g,c);return h===e&&h===f?Wv(g,c):Bf(f,h,T|b)}}a(mO,"baseMatchesProperty");function wd(c,f,g,h,A){c!==f&&lv(f,function(P,N){if(A||(A=new Qr),fn(P))Gk(c,f,N,g,wd,h,A);else{var D=h?h(Dv(c,N),P,N+"",c,f,A):e;D===e&&(D=P),sv(c,N,D)}},ji)}a(wd,"baseMerge");function Gk(c,f,g,h,A,P,N){var D=Dv(c,g),j=Dv(f,g),z=N.get(j);if(z){sv(c,g,z);return}var q=P?P(D,j,g+"",c,f,N):e,Z=q===e;if(Z){var de=He(j),Ie=!de&&Ka(j),De=!de&&!Ie&&sl(j);q=j,de||Ie||De?He(D)?q=D:xn(D)?q=Vi(D):Ie?(Z=!1,q=IO(j,!0)):De?(Z=!1,q=CO(j,!0)):q=[]:Xf(j)||zs(j)?(q=D,zs(D)?q=xI(D):(!fn(D)||oa(D))&&(q=KO(j))):Z=!1}Z&&(N.set(j,q),A(q,j,h,P,N),N.delete(j)),sv(c,g,q)}a(Gk,"baseMergeDeep");function hO(c,f){var g=c.length;if(g)return f+=f<0?g:0,ra(f,g)?c[f]:e}a(hO,"baseNth");function yO(c,f,g){f.length?f=rn(f,function(P){return He(P)?function(N){return Js(N,P.length===1?P[0]:P)}:P}):f=[$i];var h=-1;f=rn(f,or(_e()));var A=dO(c,function(P,N,D){var j=rn(f,function(z){return z(P)});return{criteria:j,index:++h,value:P}});return yV(A,function(P,N){return i2(P,N,g)})}a(yO,"baseOrderBy");function Hk(c,f){return vO(c,f,function(g,h){return Wv(c,h)})}a(Hk,"basePick");function vO(c,f,g){for(var h=-1,A=f.length,P={};++h<A;){var N=f[h],D=Js(c,N);g(D,N)&&Wf(P,Ga(N,c),D)}return P}a(vO,"basePickBy");function Kk(c){return function(f){return Js(f,c)}}a(Kk,"basePropertyDeep");function hv(c,f,g,h){var A=h?hV:zc,P=-1,N=f.length,D=c;for(c===f&&(f=Vi(f)),g&&(D=rn(c,or(g)));++P<N;)for(var j=0,z=f[P],q=g?g(z):z;(j=A(D,q,j,h))>-1;)D!==c&&Pd.call(D,j,1),Pd.call(c,j,1);return c}a(hv,"basePullAll");function TO(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;ra(A)?Pd.call(c,A,1):Ev(c,A)}}return c}a(TO,"basePullAt");function yv(c,f){return c+Cd(ZP()*(f-c+1))}a(yv,"baseRandom");function Xk(c,f,g,h){for(var A=-1,P=Un(Id((f-c)/(g||1)),0),N=H(P);P--;)N[h?P:++A]=c,c+=g;return N}a(Xk,"baseRange");function vv(c,f){var g="";if(!c||f<1||f>Fe)return g;do f%2&&(g+=c),f=Cd(f/2),f&&(c+=c);while(f);return g}a(vv,"baseRepeat");function Ze(c,f){return wv(QO(c,f,$i),c+"")}a(Ze,"baseRest");function Jk(c){return nO(cl(c))}a(Jk,"baseSample");function Qk(c,f){var g=cl(c);return Hd(g,Xs(f,0,g.length))}a(Qk,"baseSampleSize");function Wf(c,f,g,h){if(!fn(c))return c;f=Ga(f,c);for(var A=-1,P=f.length,N=P-1,D=c;D!=null&&++A<P;){var j=So(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:ra(f[A+1])?[]:{})}jf(D,j,z),D=D[j]}return c}a(Wf,"baseSet");var EO=Nd?function(c,f){return Nd.set(c,f),c}:$i,Yk=Od?function(c,f){return Od(c,"toString",{configurable:!0,enumerable:!1,value:Hv(f),writable:!0})}:$i;function zk(c){return Hd(cl(c))}a(zk,"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 qk(c,f){var g;return Ba(c,function(h,A,P){return g=f(h,A,P),!g}),!!g}a(qk,"baseSome");function Md(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&&!sr(N)&&(g?N<=f:N<f)?h=P+1:A=P}return A}return Tv(c,f,$i,g)}a(Md,"baseSortedIndex");function Tv(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=sr(f),z=f===e;A<P;){var q=Cd((A+P)/2),Z=g(c[q]),de=Z!==e,Ie=Z===null,De=Z===Z,ze=sr(Z);if(N)var we=h||De;else z?we=De&&(h||de):D?we=De&&de&&(h||!Ie):j?we=De&&de&&!Ie&&(h||!ze):Ie||ze?we=!1:we=h?Z<=f:Z<f;we?A=q+1:P=q}return di(P,Ln)}a(Tv,"baseSortedIndexBy");function bO(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(bO,"baseSortedUniq");function AO(c){return typeof c=="number"?c:sr(c)?jn:+c}a(AO,"baseToNumber");function ar(c){if(typeof c=="string")return c;if(He(c))return rn(c,ar)+"";if(sr(c))return eO?eO.call(c):"";var f=c+"";return f=="0"&&1/c==-Zt?"-0":f}a(ar,"baseToString");function Wa(c,f,g){var h=-1,A=md,P=c.length,N=!0,D=[],j=D;if(g)N=!1,A=Jy;else if(P>=n){var z=f?null:l2(c);if(z)return yd(z);N=!1,A=_f,j=new Ks}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(Wa,"baseUniq");function Ev(c,f){return f=Ga(f,c),c=YO(c,f),c==null||delete c[So(Nr(f))]}a(Ev,"baseUnset");function SO(c,f,g,h){return Wf(c,f,g(Js(c,f)),h)}a(SO,"baseUpdate");function Vd(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(Vd,"baseWhile");function xO(c,f){var g=c;return g instanceof lt&&(g=g.value()),Qy(f,function(h,A){return A.func.apply(A.thisArg,ka([h],A.args))},g)}a(xO,"baseWrapperValue");function bv(c,f,g){var h=c.length;if(h<2)return h?Wa(c[0]):[];for(var A=-1,P=H(h);++A<h;)for(var N=c[A],D=-1;++D<h;)D!=A&&(P[A]=$f(P[A]||N,c[D],f,g));return Wa(ri(P,1),f,g)}a(bv,"baseXor");function PO(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(PO,"baseZipObject");function Av(c){return xn(c)?c:[]}a(Av,"castArrayLikeObject");function Sv(c){return typeof c=="function"?c:$i}a(Sv,"castFunction");function Ga(c,f){return He(c)?c:Fv(c,f)?[c]:eI(Pt(c))}a(Ga,"castPath");var Zk=Ze;function Ha(c,f,g){var h=c.length;return g=g===e?h:g,!f&&g>=h?c:Cr(c,f,g)}a(Ha,"castSlice");var OO=$V||function(c){return Jn.clearTimeout(c)};function IO(c,f){if(f)return c.slice();var g=c.length,h=JP?JP(g):new c.constructor(g);return c.copy(h),h}a(IO,"cloneBuffer");function xv(c){var f=new c.constructor(c.byteLength);return new Sd(f).set(new Sd(c)),f}a(xv,"cloneArrayBuffer");function e2(c,f){var g=f?xv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}a(e2,"cloneDataView");function t2(c){var f=new c.constructor(c.source,fP.exec(c));return f.lastIndex=c.lastIndex,f}a(t2,"cloneRegExp");function n2(c){return kf?jt(kf.call(c)):{}}a(n2,"cloneSymbol");function CO(c,f){var g=f?xv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}a(CO,"cloneTypedArray");function NO(c,f){if(c!==f){var g=c!==e,h=c===null,A=c===c,P=sr(c),N=f!==e,D=f===null,j=f===f,z=sr(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(NO,"compareAscending");function i2(c,f,g){for(var h=-1,A=c.criteria,P=f.criteria,N=A.length,D=g.length;++h<N;){var j=NO(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(i2,"compareMultiple");function LO(c,f,g,h){for(var A=-1,P=c.length,N=g.length,D=-1,j=f.length,z=Un(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(LO,"composeArgs");function RO(c,f,g,h){for(var A=-1,P=c.length,N=-1,D=g.length,j=-1,z=f.length,q=Un(P-D,0),Z=H(q+z),de=!h;++A<q;)Z[A]=c[A];for(var Ie=A;++j<z;)Z[Ie+j]=f[j];for(;++N<D;)(de||A<P)&&(Z[Ie+g[N]]=c[A++]);return Z}a(RO,"composeArgsRight");function Vi(c,f){var g=-1,h=c.length;for(f||(f=H(h));++g<h;)f[g]=c[g];return f}a(Vi,"copyArray");function Ao(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?ta(g,D,j):jf(g,D,j)}return g}a(Ao,"copyObject");function r2(c,f){return Ao(c,Rv(c),f)}a(r2,"copySymbols");function o2(c,f){return Ao(c,GO(c),f)}a(o2,"copySymbolsIn");function kd(c,f){return function(g,h){var A=He(g)?fV:Ik,P=f?f():{};return A(g,c,_e(h,2),P)}}a(kd,"createAggregator");function rl(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&&Oi(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(rl,"createAssigner");function FO(c,f){return function(g,h){if(g==null)return g;if(!ki(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(FO,"createBaseEach");function _O(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(_O,"createBaseFor");function a2(c,f,g){var h=f&E,A=Gf(c);function P(){var N=this&&this!==Jn&&this instanceof P?A:c;return N.apply(h?g:this,arguments)}return a(P,"wrapper"),P}a(a2,"createBind");function DO(c){return function(f){f=Pt(f);var g=qc(f)?Jr(f):e,h=g?g[0]:f.charAt(0),A=g?Ha(g,1).join(""):f.slice(1);return h[c]()+A}}a(DO,"createCaseFirst");function ol(c){return function(f){return Qy(FI(RI(f).replace(YM,"")),c,"")}}a(ol,"createCompounder");function Gf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=il(c.prototype),h=c.apply(g,f);return fn(h)?h:g}}a(Gf,"createCtor");function s2(c,f,g){var h=Gf(c);function A(){for(var P=arguments.length,N=H(P),D=P,j=al(A);D--;)N[D]=arguments[D];var z=P<3&&N[0]!==j&&N[P-1]!==j?[]:ja(N,j);if(P-=z.length,P<g)return jO(c,f,jd,A.placeholder,e,N,z,e,e,g-P);var q=this&&this!==Jn&&this instanceof A?h:c;return rr(q,this,N)}return a(A,"wrapper"),A}a(s2,"createCurry");function wO(c){return function(f,g,h){var A=jt(f);if(!ki(f)){var P=_e(g,3);f=Qn(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(wO,"createFind");function MO(c){return ia(function(f){var g=f.length,h=g,A=Or.prototype.thru;for(c&&f.reverse();h--;){var P=f[h];if(typeof P!="function")throw new Pr(r);if(A&&!N&&Wd(P)=="wrapper")var N=new Or([],!0)}for(h=N?h:g;++h<g;){P=f[h];var D=Wd(P),j=D=="wrapper"?Nv(P):e;j&&_v(j[0])&&j[1]==(re|R|U|Ce)&&!j[4].length&&j[9]==1?N=N[Wd(j[0])].apply(N,j[3]):N=P.length==1&&_v(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(MO,"createFlow");function jd(c,f,g,h,A,P,N,D,j,z){var q=f&re,Z=f&E,de=f&C,Ie=f&(R|F),De=f&st,ze=de?e:Gf(c);function we(){for(var rt=arguments.length,ut=H(rt),cr=rt;cr--;)ut[cr]=arguments[cr];if(Ie)var Ii=al(we),lr=TV(ut,Ii);if(h&&(ut=LO(ut,h,A,Ie)),P&&(ut=RO(ut,P,N,Ie)),rt-=lr,Ie&&rt<z){var Pn=ja(ut,Ii);return jO(c,f,jd,we.placeholder,g,ut,Pn,D,j,z-rt)}var zr=Z?g:this,sa=de?zr[c]:c;return rt=ut.length,D?ut=C2(ut,D):De&&rt>1&&ut.reverse(),q&&j<rt&&(ut.length=j),this&&this!==Jn&&this instanceof we&&(sa=ze||Gf(sa)),sa.apply(zr,ut)}return a(we,"wrapper"),we}a(jd,"createHybrid");function VO(c,f){return function(g,h){return wk(g,c,f(h),{})}}a(VO,"createInverter");function $d(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=ar(g),h=ar(h)):(g=AO(g),h=AO(h)),A=c(g,h)}return A}}a($d,"createMathOperation");function Pv(c){return ia(function(f){return f=rn(f,or(_e())),Ze(function(g){var h=this;return c(f,function(A){return rr(A,h,g)})})})}a(Pv,"createOver");function Ud(c,f){f=f===e?" ":ar(f);var g=f.length;if(g<2)return g?vv(f,c):f;var h=vv(f,Id(c/Zc(f)));return qc(f)?Ha(Jr(h),0,c).join(""):h.slice(0,c)}a(Ud,"createPadding");function c2(c,f,g,h){var A=f&E,P=Gf(c);function N(){for(var D=-1,j=arguments.length,z=-1,q=h.length,Z=H(q+j),de=this&&this!==Jn&&this instanceof N?P:c;++z<q;)Z[z]=h[z];for(;j--;)Z[z++]=arguments[++D];return rr(de,A?g:this,Z)}return a(N,"wrapper"),N}a(c2,"createPartial");function kO(c){return function(f,g,h){return h&&typeof h!="number"&&Oi(f,g,h)&&(g=h=e),f=aa(f),g===e?(g=f,f=0):g=aa(g),h=h===e?f<g?1:-1:aa(h),Xk(f,g,h,c)}}a(kO,"createRange");function Bd(c){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=Lr(f),g=Lr(g)),c(f,g)}}a(Bd,"createRelationalOperation");function jO(c,f,g,h,A,P,N,D,j,z){var q=f&R,Z=q?N:e,de=q?e:N,Ie=q?P:e,De=q?e:P;f|=q?U:J,f&=~(q?J:U),f&L||(f&=~(E|C));var ze=[c,f,A,Ie,Z,De,de,D,j,z],we=g.apply(e,ze);return _v(c)&&zO(we,ze),we.placeholder=h,qO(we,c,f)}a(jO,"createRecurry");function Ov(c){var f=$n[c];return function(g,h){if(g=Lr(g),h=h==null?0:di(Je(h),292),h&&qP(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(Ov,"createRound");var l2=tl&&1/yd(new tl([,-0]))[1]==Zt?function(c){return new tl(c)}:Jv;function $O(c){return function(f){var g=gi(f);return g==je?nv(f):g==cn?OV(f):vV(f,c(f))}}a($O,"createToPairs");function na(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:Un(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:Nv(c),Ie=[c,f,g,h,A,q,Z,P,N,D];if(de&&P2(Ie,de),c=Ie[0],f=Ie[1],g=Ie[2],h=Ie[3],A=Ie[4],D=Ie[9]=Ie[9]===e?j?0:c.length:Un(Ie[9]-z,0),!D&&f&(R|F)&&(f&=~(R|F)),!f||f==E)var De=a2(c,f,g);else f==R||f==F?De=s2(c,f,D):(f==U||f==(E|U))&&!A.length?De=c2(c,f,g,h):De=jd.apply(e,Ie);var ze=de?EO:zO;return qO(ze(De,Ie),c,f)}a(na,"createWrap");function UO(c,f,g,h){return c===e||Yr(c,el[g])&&!Ct.call(h,g)?f:c}a(UO,"customDefaultsAssignIn");function BO(c,f,g,h,A,P){return fn(c)&&fn(f)&&(P.set(f,c),wd(c,f,e,BO,P),P.delete(f)),c}a(BO,"customDefaultsMerge");function f2(c){return Xf(c)?e:c}a(f2,"customOmitClone");function WO(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,Ie=g&b?new Ks: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(Ie){if(!Yy(f,function(rt,ut){if(!_f(Ie,ut)&&(De===rt||A(De,rt,g,h,P)))return Ie.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(WO,"equalArrays");function u2(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 Us:return!(c.byteLength!=f.byteLength||!P(new Sd(c),new Sd(f)));case I:case S:case Tt:return Yr(+c,+f);case M:return c.name==f.name&&c.message==f.message;case nr:case pi:return c==f+"";case je:var D=nv;case cn:var j=h&T;if(D||(D=yd),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=WO(D(c),D(f),h,A,P,N);return N.delete(c),q;case Vt:if(kf)return kf.call(c)==kf.call(f)}return!1}a(u2,"equalByTag");function p2(c,f,g,h,A,P){var N=g&T,D=Iv(c),j=D.length,z=Iv(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 Ie=P.get(c),De=P.get(f);if(Ie&&De)return Ie==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 cr=N?h(ut,rt,de,f,c,P):h(rt,ut,de,c,f,P);if(!(cr===e?rt===ut||A(rt,ut,g,h,P):cr)){ze=!1;break}we||(we=de=="constructor")}if(ze&&!we){var Ii=c.constructor,lr=f.constructor;Ii!=lr&&"constructor"in c&&"constructor"in f&&!(typeof Ii=="function"&&Ii instanceof Ii&&typeof lr=="function"&&lr instanceof lr)&&(ze=!1)}return P.delete(c),P.delete(f),ze}a(p2,"equalObjects");function ia(c){return wv(QO(c,e,rI),c+"")}a(ia,"flatRest");function Iv(c){return lO(c,Qn,Rv)}a(Iv,"getAllKeys");function Cv(c){return lO(c,ji,GO)}a(Cv,"getAllKeysIn");var Nv=Nd?function(c){return Nd.get(c)}:Jv;function Wd(c){for(var f=c.name+"",g=nl[f],h=Ct.call(nl,f)?g.length:0;h--;){var A=g[h],P=A.func;if(P==null||P==c)return A.name}return f}a(Wd,"getFuncName");function al(c){var f=Ct.call(x,"placeholder")?x:c;return f.placeholder}a(al,"getHolder");function _e(){var c=x.iteratee||Kv;return c=c===Kv?pO:c,arguments.length?c(arguments[0],arguments[1]):c}a(_e,"getIteratee");function Gd(c,f){var g=c.__data__;return b2(f)?g[typeof f=="string"?"string":"hash"]:g.map}a(Gd,"getMapData");function Lv(c){for(var f=Qn(c),g=f.length;g--;){var h=f[g],A=c[h];f[g]=[h,A,XO(A)]}return f}a(Lv,"getMatchData");function Qs(c,f){var g=SV(c,f);return uO(g)?g:e}a(Qs,"getNative");function d2(c){var f=Ct.call(c,Gs),g=c[Gs];try{c[Gs]=e;var h=!0}catch{}var A=bd.call(c);return h&&(f?c[Gs]=g:delete c[Gs]),A}a(d2,"getRawTag");var Rv=rv?function(c){return c==null?[]:(c=jt(c),Va(rv(c),function(f){return YP.call(c,f)}))}:Qv,GO=rv?function(c){for(var f=[];c;)ka(f,Rv(c)),c=xd(c);return f}:Qv,gi=Pi;(ov&&gi(new ov(new ArrayBuffer(1)))!=Ar||wf&&gi(new wf)!=je||av&&gi(av.resolve())!=Mt||tl&&gi(new tl)!=cn||Mf&&gi(new Mf)!=Mi)&&(gi=a(function(c){var f=Pi(c),g=f==tn?c.constructor:e,h=g?Ys(g):"";if(h)switch(h){case QV:return Ar;case YV:return je;case zV:return Mt;case qV:return cn;case ZV:return Mi}return f},"getTag"));function g2(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=Un(c,f-N);break}}return{start:c,end:f}}a(g2,"getView");function m2(c){var f=c.match(bM);return f?f[1].split(AM):[]}a(m2,"getWrapDetails");function HO(c,f,g){f=Ga(f,c);for(var h=-1,A=f.length,P=!1;++h<A;){var N=So(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)&&ra(N,A)&&(He(c)||zs(c)))}a(HO,"hasPath");function h2(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(h2,"initCloneArray");function KO(c){return typeof c.constructor=="function"&&!Hf(c)?il(xd(c)):{}}a(KO,"initCloneObject");function y2(c,f,g){var h=c.constructor;switch(f){case Us:return xv(c);case I:case S:return new h(+c);case Ar:return e2(c,g);case Nf:case Lf:case Rf:case Bs:case $:case W:case Q:case ie:case Ne:return CO(c,g);case je:return new h;case Tt:case pi:return new h(c);case nr:return t2(c);case cn:return new h;case Vt:return n2(c)}}a(y2,"initCloneByTag");function T2(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(EM,`{
|
|
267
|
+
Please avoid using it as it will be completely removed in the future`)}var x7,ty=Xe(()=>{Jb();yr();tp();Os();op();of();oA();Fi();Fi();ef();hA();JD();n1();a(S7,"clearCache");x7=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 IA=Ve((ice,c1)=>{var{createToken:P7,Lexer:PA}=(ty(),tg(ey)),r1={},lf=r1;function OA(e,t){r1[e]=typeof t=="string"?t:t.source}a(OA,"FRAGMENT");function yp(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(yp,"makePattern");var O7=[],o1={};function bn(e){let t=P7(e);return O7.push(t),o1[e.name]=t,t}a(bn,"createToken");OA("NameStartChar","(:|[a-zA-Z]|_|\\u2070-\\u218F|\\u2C00-\\u2FEF|\\u3001-\\uD7FF|\\uF900-\\uFDCF|\\uFDF0-\\uFFFD)");OA("NameChar",yp`${lf.NameStartChar}|-|\\.|\\d|\\u00B7||[\\u0300-\\u036F]|[\\u203F-\\u2040]`);OA("Name",yp`${lf.NameStartChar}(${lf.NameChar})*`);var i1=bn({name:"Comment",pattern:/<!--(.|\r?\n)*?-->/,line_breaks:!0}),I7=bn({name:"CData",pattern:/<!\[CDATA\[(.|\r?\n)*?]]>/,line_breaks:!0}),C7=bn({name:"DocType",pattern:/<!DOCTYPE/,push_mode:"INSIDE"}),N7=bn({name:"DTD",pattern:/<!.*?>/,group:PA.SKIPPED}),L7=bn({name:"EntityRef",pattern:yp`&${lf.Name};`}),R7=bn({name:"CharRef",pattern:/&#\d+;|&#x[a-fA-F0-9]/}),F7=bn({name:"SEA_WS",pattern:/( |\t|\n|\r\n)+/}),_7=bn({name:"XMLDeclOpen",pattern:/<\?xml[ \t\r\n]/,push_mode:"INSIDE"}),a1=bn({name:"SLASH_OPEN",pattern:/<\//,push_mode:"INSIDE"}),D7=bn({name:"INVALID_SLASH_OPEN",pattern:/<\//,categories:[a1]}),w7=bn({name:"PROCESSING_INSTRUCTION",pattern:yp`<\\?${lf.Name}.*\\?>`}),s1=bn({name:"OPEN",pattern:/</,push_mode:"INSIDE"}),M7=bn({name:"INVALID_OPEN_INSIDE",pattern:/</,categories:[s1]}),V7=bn({name:"TEXT",pattern:/[^<&]+/}),k7=bn({name:"CLOSE",pattern:/>/,pop_mode:!0}),j7=bn({name:"SPECIAL_CLOSE",pattern:/\?>/,pop_mode:!0}),$7=bn({name:"SLASH_CLOSE",pattern:/\/>/,pop_mode:!0}),U7=bn({name:"SLASH",pattern:/\//}),B7=bn({name:"STRING",pattern:/"[^<"]*"|'[^<']*'/}),W7=bn({name:"EQUALS",pattern:/=/}),G7=bn({name:"Name",pattern:yp`${lf.Name}`}),H7=bn({name:"S",pattern:/[ \t\r\n]/,group:PA.SKIPPED}),K7={defaultMode:"OUTSIDE",modes:{OUTSIDE:[i1,I7,C7,N7,L7,R7,F7,_7,a1,w7,s1,V7],INSIDE:[i1,D7,M7,k7,j7,$7,U7,W7,B7,G7,H7]}},X7=new PA(K7,{positionTracking:"full",ensureOptimizations:!1,lineTerminatorCharacters:[`
|
|
269
|
+
`],lineTerminatorsPattern:/\n|\r\n/g});c1.exports={xmlLexer:X7,tokensDictionary:o1}});var f1=Ve((oce,l1)=>{var{CstParser:J7,tokenMatcher:Q7}=(ty(),tg(ey)),{tokensDictionary:St}=IA(),NA=class NA extends J7{constructor(){super(St,{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(St.XMLDeclOpen),t.MANY(()=>{t.SUBRULE(t.attribute)}),t.CONSUME(St.SPECIAL_CLOSE)}),t.RULE("docTypeDecl",()=>{t.CONSUME(St.DocType),t.CONSUME(St.Name),t.OPTION(()=>{t.SUBRULE(t.externalID)}),t.CONSUME(St.CLOSE)}),t.RULE("externalID",()=>{t.OR([{GATE:()=>t.LA(1).image==="SYSTEM",ALT:()=>{t.CONSUME2(St.Name,{LABEL:"System"}),t.CONSUME(St.STRING,{LABEL:"SystemLiteral"})}},{GATE:()=>t.LA(1).image==="PUBLIC",ALT:()=>{t.CONSUME3(St.Name,{LABEL:"Public"}),t.CONSUME2(St.STRING,{LABEL:"PubIDLiteral"}),t.CONSUME3(St.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(St.CData)},{ALT:()=>t.CONSUME(St.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(St.Comment)}])})}),t.RULE("element",()=>{t.CONSUME(St.OPEN);try{this.deletionRecoveryEnabled=!1,t.CONSUME(St.Name)}finally{this.deletionRecoveryEnabled=!0}t.MANY(()=>{t.SUBRULE(t.attribute)}),t.OR([{ALT:()=>{t.CONSUME(St.CLOSE,{LABEL:"START_CLOSE"}),t.SUBRULE(t.content),t.CONSUME(St.SLASH_OPEN),t.CONSUME2(St.Name,{LABEL:"END_NAME"}),t.CONSUME2(St.CLOSE,{LABEL:"END"})}},{ALT:()=>{t.CONSUME(St.SLASH_CLOSE)}}])}),t.RULE("reference",()=>{t.OR([{ALT:()=>t.CONSUME(St.EntityRef)},{ALT:()=>t.CONSUME(St.CharRef)}])}),t.RULE("attribute",()=>{t.CONSUME(St.Name);try{this.deletionRecoveryEnabled=!1,t.CONSUME(St.EQUALS),t.CONSUME(St.STRING)}finally{this.deletionRecoveryEnabled=!0}}),t.RULE("chardata",()=>{t.OR([{ALT:()=>t.CONSUME(St.TEXT)},{ALT:()=>t.CONSUME(St.SEA_WS)}])}),t.RULE("misc",()=>{t.OR([{ALT:()=>t.CONSUME(St.Comment)},{ALT:()=>t.CONSUME(St.PROCESSING_INSTRUCTION)},{ALT:()=>t.CONSUME(St.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=>Q7(n,o));if(r!==void 0)return r;n=this.LA(i),i++}}};a(NA,"Parser");var CA=NA,Y7=new CA;l1.exports={xmlParser:Y7}});var LA=Ve((sce,u1)=>{var{xmlLexer:z7}=IA(),{xmlParser:ny}=f1();u1.exports={parse:a(function(t){let n=z7.tokenize(t);return ny.input=n.tokens,{cst:ny.document(),tokenVector:n.tokens,lexErrors:n.errors,parseErrors:ny.errors}},"parse"),BaseXmlCstVisitor:ny.getBaseCstVisitorConstructor()}});var Tp=Ve((ff,vp)=>{(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,L=4,R=8,F=16,U=32,J=64,re=128,Ce=256,st=512,k=30,It="...",mt=800,Ke=16,Xt=1,wi=2,dn=3,Zt=1/0,Fe=9007199254740991,Kn=17976931348623157e292,jn=NaN,en=4294967295,Ln=en-1,ni=en>>>1,Le=[["ary",re],["bind",E],["bindKey",C],["curry",R],["curryRight",F],["flip",st],["partial",U],["partialRight",J],["rearg",Ce]],Rn="[object Arguments]",Xn="[object Array]",Ye="[object AsyncFunction]",I="[object Boolean]",S="[object Date]",Y="[object DOMException]",M="[object Error]",Re="[object Function]",ct="[object GeneratorFunction]",je="[object Map]",Tt="[object Number]",sn="[object Null]",tn="[object Object]",Mt="[object Promise]",ii="[object Proxy]",nr="[object RegExp]",cn="[object Set]",pi="[object String]",Vt="[object Symbol]",qo="[object Undefined]",Mi="[object WeakMap]",Cf="[object WeakSet]",Us="[object ArrayBuffer]",Ar="[object DataView]",Nf="[object Float32Array]",Lf="[object Float64Array]",Rf="[object Int8Array]",Bs="[object Int16Array]",$="[object Int32Array]",W="[object Uint8Array]",Q="[object Uint8ClampedArray]",ie="[object Uint16Array]",Ne="[object Uint32Array]",ln=/\b__p \+= '';/g,Sn=/\b(__p \+=) '' \+/g,Ze=/(__e\(.*?\)|\b__t\)) \+\n'';/g,ue=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,be=RegExp(ue.source),Oe=RegExp(xe.source),nt=/<%-([\s\S]+?)%>/g,kt=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,ir=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ud=/^\w*$/,jy=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ff=/[\\^$.*+?()[\]{}|]/g,vM=RegExp(Ff.source),$y=/^\s+/,TM=/\s/,EM=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,bM=/\{\n\/\* \[wrapped with (.+)\] \*/,AM=/,? & /,SM=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xM=/[()=,{}\[\]\/\s]/,PM=/\\(\\)?/g,OM=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,fP=/\w*$/,IM=/^[-+]0x[0-9a-f]+$/i,CM=/^0b[01]+$/i,NM=/^\[object .+?Constructor\]$/,LM=/^0o[0-7]+$/i,RM=/^(?:0|[1-9]\d*)$/,FM=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pd=/($^)/,_M=/['\n\r\u2028\u2029\\]/g,dd="\\ud800-\\udfff",DM="\\u0300-\\u036f",wM="\\ufe20-\\ufe2f",MM="\\u20d0-\\u20ff",uP=DM+wM+MM,pP="\\u2700-\\u27bf",dP="a-z\\xdf-\\xf6\\xf8-\\xff",VM="\\xac\\xb1\\xd7\\xf7",kM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jM="\\u2000-\\u206f",$M=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",gP="A-Z\\xc0-\\xd6\\xd8-\\xde",mP="\\ufe0e\\ufe0f",hP=VM+kM+jM+$M,Uy="['\u2019]",UM="["+dd+"]",yP="["+hP+"]",gd="["+uP+"]",vP="\\d+",BM="["+pP+"]",TP="["+dP+"]",EP="[^"+dd+hP+vP+pP+dP+gP+"]",By="\\ud83c[\\udffb-\\udfff]",WM="(?:"+gd+"|"+By+")",bP="[^"+dd+"]",Wy="(?:\\ud83c[\\udde6-\\uddff]){2}",Gy="[\\ud800-\\udbff][\\udc00-\\udfff]",zc="["+gP+"]",AP="\\u200d",SP="(?:"+TP+"|"+EP+")",GM="(?:"+zc+"|"+EP+")",xP="(?:"+Uy+"(?:d|ll|m|re|s|t|ve))?",PP="(?:"+Uy+"(?:D|LL|M|RE|S|T|VE))?",OP=WM+"?",IP="["+mP+"]?",HM="(?:"+AP+"(?:"+[bP,Wy,Gy].join("|")+")"+IP+OP+")*",KM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",XM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",CP=IP+OP+HM,JM="(?:"+[BM,Wy,Gy].join("|")+")"+CP,QM="(?:"+[bP+gd+"?",gd,Wy,Gy,UM].join("|")+")",YM=RegExp(Uy,"g"),zM=RegExp(gd,"g"),Hy=RegExp(By+"(?="+By+")|"+QM+CP,"g"),qM=RegExp([zc+"?"+TP+"+"+xP+"(?="+[yP,zc,"$"].join("|")+")",GM+"+"+PP+"(?="+[yP,zc+SP,"$"].join("|")+")",zc+"?"+SP+"+"+xP,zc+"+"+PP,XM,KM,vP,JM].join("|"),"g"),ZM=RegExp("["+AP+dd+uP+mP+"]"),eV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tV=["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"],nV=-1,Jt={};Jt[Nf]=Jt[Lf]=Jt[Rf]=Jt[Bs]=Jt[$]=Jt[W]=Jt[Q]=Jt[ie]=Jt[Ne]=!0,Jt[Rn]=Jt[Xn]=Jt[Us]=Jt[I]=Jt[Ar]=Jt[S]=Jt[M]=Jt[Re]=Jt[je]=Jt[Tt]=Jt[tn]=Jt[nr]=Jt[cn]=Jt[pi]=Jt[Mi]=!1;var Wt={};Wt[Rn]=Wt[Xn]=Wt[Us]=Wt[Ar]=Wt[I]=Wt[S]=Wt[Nf]=Wt[Lf]=Wt[Rf]=Wt[Bs]=Wt[$]=Wt[je]=Wt[Tt]=Wt[tn]=Wt[nr]=Wt[cn]=Wt[pi]=Wt[Vt]=Wt[W]=Wt[Q]=Wt[ie]=Wt[Ne]=!0,Wt[M]=Wt[Re]=Wt[Mi]=!1;var iV={\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"},rV={"&":"&","<":"<",">":">",'"':""","'":"'"},oV={"&":"&","<":"<",">":">",""":'"',"'":"'"},aV={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sV=parseFloat,cV=parseInt,NP=typeof global=="object"&&global&&global.Object===Object&&global,lV=typeof self=="object"&&self&&self.Object===Object&&self,Jn=NP||lV||Function("return this")(),Ky=typeof ff=="object"&&ff&&!ff.nodeType&&ff,Ws=Ky&&typeof vp=="object"&&vp&&!vp.nodeType&&vp,LP=Ws&&Ws.exports===Ky,Xy=LP&&NP.process,Sr=function(){try{var V=Ws&&Ws.require&&Ws.require("util").types;return V||Xy&&Xy.binding&&Xy.binding("util")}catch{}}(),RP=Sr&&Sr.isArrayBuffer,FP=Sr&&Sr.isDate,_P=Sr&&Sr.isMap,DP=Sr&&Sr.isRegExp,wP=Sr&&Sr.isSet,MP=Sr&&Sr.isTypedArray;function rr(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(rr,"apply");function fV(V,X,H,he){for(var Ge=-1,Et=V==null?0:V.length;++Ge<Et;){var $n=V[Ge];X(he,$n,H($n),V)}return he}a(fV,"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 uV(V,X){for(var H=V==null?0:V.length;H--&&X(V[H],H,V)!==!1;);return V}a(uV,"arrayEachRight");function VP(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(VP,"arrayEvery");function Va(V,X){for(var H=-1,he=V==null?0:V.length,Ge=0,Et=[];++H<he;){var $n=V[H];X($n,H,V)&&(Et[Ge++]=$n)}return Et}a(Va,"arrayFilter");function md(V,X){var H=V==null?0:V.length;return!!H&&qc(V,X,0)>-1}a(md,"arrayIncludes");function Jy(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(Jy,"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 ka(V,X){for(var H=-1,he=X.length,Ge=V.length;++H<he;)V[Ge+H]=X[H];return V}a(ka,"arrayPush");function Qy(V,X,H,he){var Ge=-1,Et=V==null?0:V.length;for(he&&Et&&(H=V[++Ge]);++Ge<Et;)H=X(H,V[Ge],Ge,V);return H}a(Qy,"arrayReduce");function pV(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(pV,"arrayReduceRight");function Yy(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(Yy,"arraySome");var dV=zy("length");function gV(V){return V.split("")}a(gV,"asciiToArray");function mV(V){return V.match(SM)||[]}a(mV,"asciiWords");function kP(V,X,H){var he;return H(V,function(Ge,Et,$n){if(X(Ge,Et,$n))return he=Et,!1}),he}a(kP,"baseFindKey");function hd(V,X,H,he){for(var Ge=V.length,Et=H+(he?1:-1);he?Et--:++Et<Ge;)if(X(V[Et],Et,V))return Et;return-1}a(hd,"baseFindIndex");function qc(V,X,H){return X===X?IV(V,X,H):hd(V,jP,H)}a(qc,"baseIndexOf");function hV(V,X,H,he){for(var Ge=H-1,Et=V.length;++Ge<Et;)if(he(V[Ge],X))return Ge;return-1}a(hV,"baseIndexOfWith");function jP(V){return V!==V}a(jP,"baseIsNaN");function $P(V,X){var H=V==null?0:V.length;return H?Zy(V,X)/H:jn}a($P,"baseMean");function zy(V){return function(X){return X==null?e:X[V]}}a(zy,"baseProperty");function qy(V){return function(X){return V==null?e:V[X]}}a(qy,"basePropertyOf");function UP(V,X,H,he,Ge){return Ge(V,function(Et,$n,jt){H=he?(he=!1,Et):X(H,Et,$n,jt)}),H}a(UP,"baseReduce");function yV(V,X){var H=V.length;for(V.sort(X);H--;)V[H]=V[H].value;return V}a(yV,"baseSortBy");function Zy(V,X){for(var H,he=-1,Ge=V.length;++he<Ge;){var Et=X(V[he]);Et!==e&&(H=H===e?Et:H+Et)}return H}a(Zy,"baseSum");function ev(V,X){for(var H=-1,he=Array(V);++H<V;)he[H]=X(H);return he}a(ev,"baseTimes");function vV(V,X){return rn(X,function(H){return[H,V[H]]})}a(vV,"baseToPairs");function BP(V){return V&&V.slice(0,KP(V)+1).replace($y,"")}a(BP,"baseTrim");function or(V){return function(X){return V(X)}}a(or,"baseUnary");function tv(V,X){return rn(X,function(H){return V[H]})}a(tv,"baseValues");function _f(V,X){return V.has(X)}a(_f,"cacheHas");function WP(V,X){for(var H=-1,he=V.length;++H<he&&qc(X,V[H],0)>-1;);return H}a(WP,"charsStartIndex");function GP(V,X){for(var H=V.length;H--&&qc(X,V[H],0)>-1;);return H}a(GP,"charsEndIndex");function TV(V,X){for(var H=V.length,he=0;H--;)V[H]===X&&++he;return he}a(TV,"countHolders");var EV=qy(iV),bV=qy(rV);function AV(V){return"\\"+aV[V]}a(AV,"escapeStringChar");function SV(V,X){return V==null?e:V[X]}a(SV,"getValue");function Zc(V){return ZM.test(V)}a(Zc,"hasUnicode");function xV(V){return eV.test(V)}a(xV,"hasUnicodeWord");function PV(V){for(var X,H=[];!(X=V.next()).done;)H.push(X.value);return H}a(PV,"iteratorToArray");function nv(V){var X=-1,H=Array(V.size);return V.forEach(function(he,Ge){H[++X]=[Ge,he]}),H}a(nv,"mapToArray");function HP(V,X){return function(H){return V(X(H))}}a(HP,"overArg");function ja(V,X){for(var H=-1,he=V.length,Ge=0,Et=[];++H<he;){var $n=V[H];($n===X||$n===u)&&(V[H]=u,Et[Ge++]=H)}return Et}a(ja,"replaceHolders");function yd(V){var X=-1,H=Array(V.size);return V.forEach(function(he){H[++X]=he}),H}a(yd,"setToArray");function OV(V){var X=-1,H=Array(V.size);return V.forEach(function(he){H[++X]=[he,he]}),H}a(OV,"setToPairs");function IV(V,X,H){for(var he=H-1,Ge=V.length;++he<Ge;)if(V[he]===X)return he;return-1}a(IV,"strictIndexOf");function CV(V,X,H){for(var he=H+1;he--;)if(V[he]===X)return he;return he}a(CV,"strictLastIndexOf");function el(V){return Zc(V)?LV(V):dV(V)}a(el,"stringSize");function Jr(V){return Zc(V)?RV(V):gV(V)}a(Jr,"stringToArray");function KP(V){for(var X=V.length;X--&&TM.test(V.charAt(X)););return X}a(KP,"trimmedEndIndex");var NV=qy(oV);function LV(V){for(var X=Hy.lastIndex=0;Hy.test(V);)++X;return X}a(LV,"unicodeSize");function RV(V){return V.match(Hy)||[]}a(RV,"unicodeToArray");function FV(V){return V.match(qM)||[]}a(FV,"unicodeWords");var _V=a(function V(X){X=X==null?Jn:$a.defaults(Jn.Object(),X,$a.pick(Jn,tV));var H=X.Array,he=X.Date,Ge=X.Error,Et=X.Function,$n=X.Math,jt=X.Object,iv=X.RegExp,DV=X.String,Pr=X.TypeError,vd=H.prototype,wV=Et.prototype,tl=jt.prototype,Td=X["__core-js_shared__"],Ed=wV.toString,Ct=tl.hasOwnProperty,MV=0,XP=function(){var c=/[^.]+$/.exec(Td&&Td.keys&&Td.keys.IE_PROTO||"");return c?"Symbol(src)_1."+c:""}(),bd=tl.toString,VV=Ed.call(jt),kV=Jn._,jV=iv("^"+Ed.call(Ct).replace(Ff,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ad=LP?X.Buffer:e,Ua=X.Symbol,Sd=X.Uint8Array,JP=Ad?Ad.allocUnsafe:e,xd=HP(jt.getPrototypeOf,jt),QP=jt.create,YP=tl.propertyIsEnumerable,Pd=vd.splice,zP=Ua?Ua.isConcatSpreadable:e,Df=Ua?Ua.iterator:e,Gs=Ua?Ua.toStringTag:e,Od=function(){try{var c=Qs(jt,"defineProperty");return c({},"",{}),c}catch{}}(),$V=X.clearTimeout!==Jn.clearTimeout&&X.clearTimeout,UV=he&&he.now!==Jn.Date.now&&he.now,BV=X.setTimeout!==Jn.setTimeout&&X.setTimeout,Id=$n.ceil,Cd=$n.floor,rv=jt.getOwnPropertySymbols,WV=Ad?Ad.isBuffer:e,qP=X.isFinite,GV=vd.join,HV=HP(jt.keys,jt),Un=$n.max,di=$n.min,KV=he.now,XV=X.parseInt,ZP=$n.random,JV=vd.reverse,ov=Qs(X,"DataView"),wf=Qs(X,"Map"),av=Qs(X,"Promise"),nl=Qs(X,"Set"),Mf=Qs(X,"WeakMap"),Vf=Qs(jt,"create"),Nd=Mf&&new Mf,il={},QV=Ys(ov),YV=Ys(wf),zV=Ys(av),qV=Ys(nl),ZV=Ys(Mf),Ld=Ua?Ua.prototype:e,kf=Ld?Ld.valueOf:e,eO=Ld?Ld.toString:e;function x(c){if(gn(c)&&!He(c)&&!(c instanceof lt)){if(c instanceof Or)return c;if(Ct.call(c,"__wrapped__"))return tI(c)}return new Or(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 Rd(){}a(Rd,"baseLodash");function Or(c,f){this.__wrapped__=c,this.__actions__=[],this.__chain__=!!f,this.__index__=0,this.__values__=e}a(Or,"LodashWrapper"),x.templateSettings={escape:nt,evaluate:kt,interpolate:nn,variable:"",imports:{_:x}},x.prototype=Rd.prototype,x.prototype.constructor=x,Or.prototype=rl(Rd.prototype),Or.prototype.constructor=Or;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 ek(){var c=new lt(this.__wrapped__);return c.__actions__=Vi(this.__actions__),c.__dir__=this.__dir__,c.__filtered__=this.__filtered__,c.__iteratees__=Vi(this.__iteratees__),c.__takeCount__=this.__takeCount__,c.__views__=Vi(this.__views__),c}a(ek,"lazyClone");function tk(){if(this.__filtered__){var c=new lt(this);c.__dir__=-1,c.__filtered__=!0}else c=this.clone(),c.__dir__*=-1;return c}a(tk,"lazyReverse");function nk(){var c=this.__wrapped__.value(),f=this.__dir__,g=He(c),h=f<0,A=g?c.length:0,P=g2(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,Ie=di(j,this.__takeCount__);if(!g||!h&&A==j&&Ie==j)return xO(c,this.__actions__);var De=[];e:for(;j--&&de<Ie;){z+=f;for(var ze=-1,we=c[z];++ze<Z;){var rt=q[ze],ut=rt.iteratee,cr=rt.type,Ii=ut(we);if(cr==wi)we=Ii;else if(!Ii){if(cr==Xt)continue e;break e}}De[de++]=we}return De}a(nk,"lazyValue"),lt.prototype=rl(Rd.prototype),lt.prototype.constructor=lt;function Hs(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(Hs,"Hash");function ik(){this.__data__=Vf?Vf(null):{},this.size=0}a(ik,"hashClear");function rk(c){var f=this.has(c)&&delete this.__data__[c];return this.size-=f?1:0,f}a(rk,"hashDelete");function ok(c){var f=this.__data__;if(Vf){var g=f[c];return g===s?e:g}return Ct.call(f,c)?f[c]:e}a(ok,"hashGet");function ak(c){var f=this.__data__;return Vf?f[c]!==e:Ct.call(f,c)}a(ak,"hashHas");function sk(c,f){var g=this.__data__;return this.size+=this.has(c)?0:1,g[c]=Vf&&f===e?s:f,this}a(sk,"hashSet"),Hs.prototype.clear=ik,Hs.prototype.delete=rk,Hs.prototype.get=ok,Hs.prototype.has=ak,Hs.prototype.set=sk;function Zo(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(Zo,"ListCache");function ck(){this.__data__=[],this.size=0}a(ck,"listCacheClear");function lk(c){var f=this.__data__,g=Fd(f,c);if(g<0)return!1;var h=f.length-1;return g==h?f.pop():Pd.call(f,g,1),--this.size,!0}a(lk,"listCacheDelete");function fk(c){var f=this.__data__,g=Fd(f,c);return g<0?e:f[g][1]}a(fk,"listCacheGet");function uk(c){return Fd(this.__data__,c)>-1}a(uk,"listCacheHas");function pk(c,f){var g=this.__data__,h=Fd(g,c);return h<0?(++this.size,g.push([c,f])):g[h][1]=f,this}a(pk,"listCacheSet"),Zo.prototype.clear=ck,Zo.prototype.delete=lk,Zo.prototype.get=fk,Zo.prototype.has=uk,Zo.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,"MapCache");function dk(){this.size=0,this.__data__={hash:new Hs,map:new(wf||Zo),string:new Hs}}a(dk,"mapCacheClear");function gk(c){var f=Gd(this,c).delete(c);return this.size-=f?1:0,f}a(gk,"mapCacheDelete");function mk(c){return Gd(this,c).get(c)}a(mk,"mapCacheGet");function hk(c){return Gd(this,c).has(c)}a(hk,"mapCacheHas");function yk(c,f){var g=Gd(this,c),h=g.size;return g.set(c,f),this.size+=g.size==h?0:1,this}a(yk,"mapCacheSet"),ea.prototype.clear=dk,ea.prototype.delete=gk,ea.prototype.get=mk,ea.prototype.has=hk,ea.prototype.set=yk;function Ks(c){var f=-1,g=c==null?0:c.length;for(this.__data__=new ea;++f<g;)this.add(c[f])}a(Ks,"SetCache");function vk(c){return this.__data__.set(c,s),this}a(vk,"setCacheAdd");function Tk(c){return this.__data__.has(c)}a(Tk,"setCacheHas"),Ks.prototype.add=Ks.prototype.push=vk,Ks.prototype.has=Tk;function Qr(c){var f=this.__data__=new Zo(c);this.size=f.size}a(Qr,"Stack");function Ek(){this.__data__=new Zo,this.size=0}a(Ek,"stackClear");function bk(c){var f=this.__data__,g=f.delete(c);return this.size=f.size,g}a(bk,"stackDelete");function Ak(c){return this.__data__.get(c)}a(Ak,"stackGet");function Sk(c){return this.__data__.has(c)}a(Sk,"stackHas");function xk(c,f){var g=this.__data__;if(g instanceof Zo){var h=g.__data__;if(!wf||h.length<n-1)return h.push([c,f]),this.size=++g.size,this;g=this.__data__=new ea(h)}return g.set(c,f),this.size=g.size,this}a(xk,"stackSet"),Qr.prototype.clear=Ek,Qr.prototype.delete=bk,Qr.prototype.get=Ak,Qr.prototype.has=Sk,Qr.prototype.set=xk;function tO(c,f){var g=He(c),h=!g&&zs(c),A=!g&&!h&&Ka(c),P=!g&&!h&&!A&&cl(c),N=g||h||A||P,D=N?ev(c.length,DV):[],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")||ra(z,j)))&&D.push(z);return D}a(tO,"arrayLikeKeys");function nO(c){var f=c.length;return f?c[yv(0,f-1)]:e}a(nO,"arraySample");function Pk(c,f){return Hd(Vi(c),Xs(f,0,c.length))}a(Pk,"arraySampleSize");function Ok(c){return Hd(Vi(c))}a(Ok,"arrayShuffle");function sv(c,f,g){(g!==e&&!Yr(c[f],g)||g===e&&!(f in c))&&ta(c,f,g)}a(sv,"assignMergeValue");function jf(c,f,g){var h=c[f];(!(Ct.call(c,f)&&Yr(h,g))||g===e&&!(f in c))&&ta(c,f,g)}a(jf,"assignValue");function Fd(c,f){for(var g=c.length;g--;)if(Yr(c[g][0],f))return g;return-1}a(Fd,"assocIndexOf");function Ik(c,f,g,h){return Ba(c,function(A,P,N){f(h,A,g(A),N)}),h}a(Ik,"baseAggregator");function iO(c,f){return c&&Ao(f,Qn(f),c)}a(iO,"baseAssign");function Ck(c,f){return c&&Ao(f,ji(f),c)}a(Ck,"baseAssignIn");function ta(c,f,g){f=="__proto__"&&Od?Od(c,f,{configurable:!0,enumerable:!0,value:g,writable:!0}):c[f]=g}a(ta,"baseAssignValue");function cv(c,f){for(var g=-1,h=f.length,A=H(h),P=c==null;++g<h;)A[g]=P?e:Bv(c,f[g]);return A}a(cv,"baseAt");function Xs(c,f,g){return c===c&&(g!==e&&(c=c<=g?c:g),f!==e&&(c=c>=f?c:f)),c}a(Xs,"baseClamp");function Ir(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=h2(c),!D)return Vi(c,N)}else{var Z=gi(c),de=Z==Re||Z==ct;if(Ka(c))return IO(c,D);if(Z==tn||Z==Rn||de&&!A){if(N=j||de?{}:KO(c),!D)return j?o2(c,Ck(N,c)):r2(c,iO(N,c))}else{if(!Wt[Z])return A?c:{};N=y2(c,Z,D)}}P||(P=new Qr);var Ie=P.get(c);if(Ie)return Ie;P.set(c,N),bI(c)?c.forEach(function(we){N.add(Ir(we,f,g,we,c,P))}):TI(c)&&c.forEach(function(we,rt){N.set(rt,Ir(we,f,g,rt,c,P))});var De=z?j?Cv:Iv:j?ji:Qn,ze=q?e:De(c);return xr(ze||c,function(we,rt){ze&&(rt=we,we=c[rt]),jf(N,rt,Ir(we,f,g,rt,c,P))}),N}a(Ir,"baseClone");function Nk(c){var f=Qn(c);return function(g){return rO(g,c,f)}}a(Nk,"baseConforms");function rO(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(rO,"baseConformsTo");function oO(c,f,g){if(typeof c!="function")throw new Pr(r);return Kf(function(){c.apply(e,g)},f)}a(oO,"baseDelay");function $f(c,f,g,h){var A=-1,P=md,N=!0,D=c.length,j=[],z=f.length;if(!D)return j;g&&(f=rn(f,or(g))),h?(P=Jy,N=!1):f.length>=n&&(P=_f,N=!1,f=new Ks(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($f,"baseDifference");var Ba=FO(bo),aO=FO(fv,!0);function Lk(c,f){var g=!0;return Ba(c,function(h,A,P){return g=!!f(h,A,P),g}),g}a(Lk,"baseEvery");function _d(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&&!sr(N):g(N,D)))var D=N,j=P}return j}a(_d,"baseExtremum");function Rk(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:SI(h);g<h;)c[g++]=f;return c}a(Rk,"baseFill");function sO(c,f){var g=[];return Ba(c,function(h,A,P){f(h,A,P)&&g.push(h)}),g}a(sO,"baseFilter");function ri(c,f,g,h,A){var P=-1,N=c.length;for(g||(g=E2),A||(A=[]);++P<N;){var D=c[P];f>0&&g(D)?f>1?ri(D,f-1,g,h,A):ka(A,D):h||(A[A.length]=D)}return A}a(ri,"baseFlatten");var lv=_O(),cO=_O(!0);function bo(c,f){return c&&lv(c,f,Qn)}a(bo,"baseForOwn");function fv(c,f){return c&&cO(c,f,Qn)}a(fv,"baseForOwnRight");function Dd(c,f){return Va(f,function(g){return oa(c[g])})}a(Dd,"baseFunctions");function Js(c,f){f=Ga(f,c);for(var g=0,h=f.length;c!=null&&g<h;)c=c[So(f[g++])];return g&&g==h?c:e}a(Js,"baseGet");function lO(c,f,g){var h=f(c);return He(c)?h:ka(h,g(c))}a(lO,"baseGetAllKeys");function Pi(c){return c==null?c===e?qo:sn:Gs&&Gs in jt(c)?d2(c):I2(c)}a(Pi,"baseGetTag");function uv(c,f){return c>f}a(uv,"baseGt");function Fk(c,f){return c!=null&&Ct.call(c,f)}a(Fk,"baseHas");function _k(c,f){return c!=null&&f in jt(c)}a(_k,"baseHasIn");function Dk(c,f,g){return c>=di(f,g)&&c<Un(f,g)}a(Dk,"baseInRange");function pv(c,f,g){for(var h=g?Jy:md,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,or(f))),j=di(q.length,j),D[N]=!g&&(f||A>=120&&q.length>=120)?new Ks(N&&q):e}q=c[0];var Z=-1,de=D[0];e:for(;++Z<A&&z.length<j;){var Ie=q[Z],De=f?f(Ie):Ie;if(Ie=g||Ie!==0?Ie:0,!(de?_f(de,De):h(z,De,g))){for(N=P;--N;){var ze=D[N];if(!(ze?_f(ze,De):h(c[N],De,g)))continue e}de&&de.push(De),z.push(Ie)}}return z}a(pv,"baseIntersection");function wk(c,f,g,h){return bo(c,function(A,P,N){f(h,g(A),P,N)}),h}a(wk,"baseInverter");function Uf(c,f,g){f=Ga(f,c),c=YO(c,f);var h=c==null?c:c[So(Nr(f))];return h==null?e:rr(h,c,g)}a(Uf,"baseInvoke");function fO(c){return gn(c)&&Pi(c)==Rn}a(fO,"baseIsArguments");function Mk(c){return gn(c)&&Pi(c)==Us}a(Mk,"baseIsArrayBuffer");function Vk(c){return gn(c)&&Pi(c)==S}a(Vk,"baseIsDate");function Bf(c,f,g,h,A){return c===f?!0:c==null||f==null||!gn(c)&&!gn(f)?c!==c&&f!==f:kk(c,f,g,h,Bf,A)}a(Bf,"baseIsEqual");function kk(c,f,g,h,A,P){var N=He(c),D=He(f),j=N?Xn:gi(c),z=D?Xn:gi(f);j=j==Rn?tn:j,z=z==Rn?tn:z;var q=j==tn,Z=z==tn,de=j==z;if(de&&Ka(c)){if(!Ka(f))return!1;N=!0,q=!1}if(de&&!q)return P||(P=new Qr),N||cl(c)?WO(c,f,g,h,A,P):u2(c,f,j,g,h,A,P);if(!(g&T)){var Ie=q&&Ct.call(c,"__wrapped__"),De=Z&&Ct.call(f,"__wrapped__");if(Ie||De){var ze=Ie?c.value():c,we=De?f.value():f;return P||(P=new Qr),A(ze,we,g,h,P)}}return de?(P||(P=new Qr),p2(c,f,g,h,A,P)):!1}a(kk,"baseIsEqualDeep");function jk(c){return gn(c)&&gi(c)==je}a(jk,"baseIsMap");function dv(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 Qr;if(h)var de=h(z,q,j,c,f,Z);if(!(de===e?Bf(q,z,T|b,h,Z):de))return!1}}return!0}a(dv,"baseIsMatch");function uO(c){if(!fn(c)||A2(c))return!1;var f=oa(c)?jV:NM;return f.test(Ys(c))}a(uO,"baseIsNative");function $k(c){return gn(c)&&Pi(c)==nr}a($k,"baseIsRegExp");function Uk(c){return gn(c)&&gi(c)==cn}a(Uk,"baseIsSet");function Bk(c){return gn(c)&&zd(c.length)&&!!Jt[Pi(c)]}a(Bk,"baseIsTypedArray");function pO(c){return typeof c=="function"?c:c==null?$i:typeof c=="object"?He(c)?mO(c[0],c[1]):gO(c):DI(c)}a(pO,"baseIteratee");function gv(c){if(!Hf(c))return HV(c);var f=[];for(var g in jt(c))Ct.call(c,g)&&g!="constructor"&&f.push(g);return f}a(gv,"baseKeys");function Wk(c){if(!fn(c))return O2(c);var f=Hf(c),g=[];for(var h in c)h=="constructor"&&(f||!Ct.call(c,h))||g.push(h);return g}a(Wk,"baseKeysIn");function mv(c,f){return c<f}a(mv,"baseLt");function dO(c,f){var g=-1,h=ki(c)?H(c.length):[];return Ba(c,function(A,P,N){h[++g]=f(A,P,N)}),h}a(dO,"baseMap");function gO(c){var f=Lv(c);return f.length==1&&f[0][2]?JO(f[0][0],f[0][1]):function(g){return g===c||dv(g,c,f)}}a(gO,"baseMatches");function mO(c,f){return Fv(c)&&XO(f)?JO(So(c),f):function(g){var h=Bv(g,c);return h===e&&h===f?Wv(g,c):Bf(f,h,T|b)}}a(mO,"baseMatchesProperty");function wd(c,f,g,h,A){c!==f&&lv(f,function(P,N){if(A||(A=new Qr),fn(P))Gk(c,f,N,g,wd,h,A);else{var D=h?h(Dv(c,N),P,N+"",c,f,A):e;D===e&&(D=P),sv(c,N,D)}},ji)}a(wd,"baseMerge");function Gk(c,f,g,h,A,P,N){var D=Dv(c,g),j=Dv(f,g),z=N.get(j);if(z){sv(c,g,z);return}var q=P?P(D,j,g+"",c,f,N):e,Z=q===e;if(Z){var de=He(j),Ie=!de&&Ka(j),De=!de&&!Ie&&cl(j);q=j,de||Ie||De?He(D)?q=D:xn(D)?q=Vi(D):Ie?(Z=!1,q=IO(j,!0)):De?(Z=!1,q=CO(j,!0)):q=[]:Xf(j)||zs(j)?(q=D,zs(D)?q=xI(D):(!fn(D)||oa(D))&&(q=KO(j))):Z=!1}Z&&(N.set(j,q),A(q,j,h,P,N),N.delete(j)),sv(c,g,q)}a(Gk,"baseMergeDeep");function hO(c,f){var g=c.length;if(g)return f+=f<0?g:0,ra(f,g)?c[f]:e}a(hO,"baseNth");function yO(c,f,g){f.length?f=rn(f,function(P){return He(P)?function(N){return Js(N,P.length===1?P[0]:P)}:P}):f=[$i];var h=-1;f=rn(f,or(_e()));var A=dO(c,function(P,N,D){var j=rn(f,function(z){return z(P)});return{criteria:j,index:++h,value:P}});return yV(A,function(P,N){return i2(P,N,g)})}a(yO,"baseOrderBy");function Hk(c,f){return vO(c,f,function(g,h){return Wv(c,h)})}a(Hk,"basePick");function vO(c,f,g){for(var h=-1,A=f.length,P={};++h<A;){var N=f[h],D=Js(c,N);g(D,N)&&Wf(P,Ga(N,c),D)}return P}a(vO,"basePickBy");function Kk(c){return function(f){return Js(f,c)}}a(Kk,"basePropertyDeep");function hv(c,f,g,h){var A=h?hV:qc,P=-1,N=f.length,D=c;for(c===f&&(f=Vi(f)),g&&(D=rn(c,or(g)));++P<N;)for(var j=0,z=f[P],q=g?g(z):z;(j=A(D,q,j,h))>-1;)D!==c&&Pd.call(D,j,1),Pd.call(c,j,1);return c}a(hv,"basePullAll");function TO(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;ra(A)?Pd.call(c,A,1):Ev(c,A)}}return c}a(TO,"basePullAt");function yv(c,f){return c+Cd(ZP()*(f-c+1))}a(yv,"baseRandom");function Xk(c,f,g,h){for(var A=-1,P=Un(Id((f-c)/(g||1)),0),N=H(P);P--;)N[h?P:++A]=c,c+=g;return N}a(Xk,"baseRange");function vv(c,f){var g="";if(!c||f<1||f>Fe)return g;do f%2&&(g+=c),f=Cd(f/2),f&&(c+=c);while(f);return g}a(vv,"baseRepeat");function et(c,f){return wv(QO(c,f,$i),c+"")}a(et,"baseRest");function Jk(c){return nO(ll(c))}a(Jk,"baseSample");function Qk(c,f){var g=ll(c);return Hd(g,Xs(f,0,g.length))}a(Qk,"baseSampleSize");function Wf(c,f,g,h){if(!fn(c))return c;f=Ga(f,c);for(var A=-1,P=f.length,N=P-1,D=c;D!=null&&++A<P;){var j=So(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:ra(f[A+1])?[]:{})}jf(D,j,z),D=D[j]}return c}a(Wf,"baseSet");var EO=Nd?function(c,f){return Nd.set(c,f),c}:$i,Yk=Od?function(c,f){return Od(c,"toString",{configurable:!0,enumerable:!1,value:Hv(f),writable:!0})}:$i;function zk(c){return Hd(ll(c))}a(zk,"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 qk(c,f){var g;return Ba(c,function(h,A,P){return g=f(h,A,P),!g}),!!g}a(qk,"baseSome");function Md(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&&!sr(N)&&(g?N<=f:N<f)?h=P+1:A=P}return A}return Tv(c,f,$i,g)}a(Md,"baseSortedIndex");function Tv(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=sr(f),z=f===e;A<P;){var q=Cd((A+P)/2),Z=g(c[q]),de=Z!==e,Ie=Z===null,De=Z===Z,ze=sr(Z);if(N)var we=h||De;else z?we=De&&(h||de):D?we=De&&de&&(h||!Ie):j?we=De&&de&&!Ie&&(h||!ze):Ie||ze?we=!1:we=h?Z<=f:Z<f;we?A=q+1:P=q}return di(P,Ln)}a(Tv,"baseSortedIndexBy");function bO(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(bO,"baseSortedUniq");function AO(c){return typeof c=="number"?c:sr(c)?jn:+c}a(AO,"baseToNumber");function ar(c){if(typeof c=="string")return c;if(He(c))return rn(c,ar)+"";if(sr(c))return eO?eO.call(c):"";var f=c+"";return f=="0"&&1/c==-Zt?"-0":f}a(ar,"baseToString");function Wa(c,f,g){var h=-1,A=md,P=c.length,N=!0,D=[],j=D;if(g)N=!1,A=Jy;else if(P>=n){var z=f?null:l2(c);if(z)return yd(z);N=!1,A=_f,j=new Ks}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(Wa,"baseUniq");function Ev(c,f){return f=Ga(f,c),c=YO(c,f),c==null||delete c[So(Nr(f))]}a(Ev,"baseUnset");function SO(c,f,g,h){return Wf(c,f,g(Js(c,f)),h)}a(SO,"baseUpdate");function Vd(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(Vd,"baseWhile");function xO(c,f){var g=c;return g instanceof lt&&(g=g.value()),Qy(f,function(h,A){return A.func.apply(A.thisArg,ka([h],A.args))},g)}a(xO,"baseWrapperValue");function bv(c,f,g){var h=c.length;if(h<2)return h?Wa(c[0]):[];for(var A=-1,P=H(h);++A<h;)for(var N=c[A],D=-1;++D<h;)D!=A&&(P[A]=$f(P[A]||N,c[D],f,g));return Wa(ri(P,1),f,g)}a(bv,"baseXor");function PO(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(PO,"baseZipObject");function Av(c){return xn(c)?c:[]}a(Av,"castArrayLikeObject");function Sv(c){return typeof c=="function"?c:$i}a(Sv,"castFunction");function Ga(c,f){return He(c)?c:Fv(c,f)?[c]:eI(Pt(c))}a(Ga,"castPath");var Zk=et;function Ha(c,f,g){var h=c.length;return g=g===e?h:g,!f&&g>=h?c:Cr(c,f,g)}a(Ha,"castSlice");var OO=$V||function(c){return Jn.clearTimeout(c)};function IO(c,f){if(f)return c.slice();var g=c.length,h=JP?JP(g):new c.constructor(g);return c.copy(h),h}a(IO,"cloneBuffer");function xv(c){var f=new c.constructor(c.byteLength);return new Sd(f).set(new Sd(c)),f}a(xv,"cloneArrayBuffer");function e2(c,f){var g=f?xv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.byteLength)}a(e2,"cloneDataView");function t2(c){var f=new c.constructor(c.source,fP.exec(c));return f.lastIndex=c.lastIndex,f}a(t2,"cloneRegExp");function n2(c){return kf?jt(kf.call(c)):{}}a(n2,"cloneSymbol");function CO(c,f){var g=f?xv(c.buffer):c.buffer;return new c.constructor(g,c.byteOffset,c.length)}a(CO,"cloneTypedArray");function NO(c,f){if(c!==f){var g=c!==e,h=c===null,A=c===c,P=sr(c),N=f!==e,D=f===null,j=f===f,z=sr(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(NO,"compareAscending");function i2(c,f,g){for(var h=-1,A=c.criteria,P=f.criteria,N=A.length,D=g.length;++h<N;){var j=NO(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(i2,"compareMultiple");function LO(c,f,g,h){for(var A=-1,P=c.length,N=g.length,D=-1,j=f.length,z=Un(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(LO,"composeArgs");function RO(c,f,g,h){for(var A=-1,P=c.length,N=-1,D=g.length,j=-1,z=f.length,q=Un(P-D,0),Z=H(q+z),de=!h;++A<q;)Z[A]=c[A];for(var Ie=A;++j<z;)Z[Ie+j]=f[j];for(;++N<D;)(de||A<P)&&(Z[Ie+g[N]]=c[A++]);return Z}a(RO,"composeArgsRight");function Vi(c,f){var g=-1,h=c.length;for(f||(f=H(h));++g<h;)f[g]=c[g];return f}a(Vi,"copyArray");function Ao(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?ta(g,D,j):jf(g,D,j)}return g}a(Ao,"copyObject");function r2(c,f){return Ao(c,Rv(c),f)}a(r2,"copySymbols");function o2(c,f){return Ao(c,GO(c),f)}a(o2,"copySymbolsIn");function kd(c,f){return function(g,h){var A=He(g)?fV:Ik,P=f?f():{};return A(g,c,_e(h,2),P)}}a(kd,"createAggregator");function ol(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&&Oi(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 FO(c,f){return function(g,h){if(g==null)return g;if(!ki(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(FO,"createBaseEach");function _O(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(_O,"createBaseFor");function a2(c,f,g){var h=f&E,A=Gf(c);function P(){var N=this&&this!==Jn&&this instanceof P?A:c;return N.apply(h?g:this,arguments)}return a(P,"wrapper"),P}a(a2,"createBind");function DO(c){return function(f){f=Pt(f);var g=Zc(f)?Jr(f):e,h=g?g[0]:f.charAt(0),A=g?Ha(g,1).join(""):f.slice(1);return h[c]()+A}}a(DO,"createCaseFirst");function al(c){return function(f){return Qy(FI(RI(f).replace(YM,"")),c,"")}}a(al,"createCompounder");function Gf(c){return function(){var f=arguments;switch(f.length){case 0:return new c;case 1:return new c(f[0]);case 2:return new c(f[0],f[1]);case 3:return new c(f[0],f[1],f[2]);case 4:return new c(f[0],f[1],f[2],f[3]);case 5:return new c(f[0],f[1],f[2],f[3],f[4]);case 6:return new c(f[0],f[1],f[2],f[3],f[4],f[5]);case 7:return new c(f[0],f[1],f[2],f[3],f[4],f[5],f[6])}var g=rl(c.prototype),h=c.apply(g,f);return fn(h)?h:g}}a(Gf,"createCtor");function s2(c,f,g){var h=Gf(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?[]:ja(N,j);if(P-=z.length,P<g)return jO(c,f,jd,A.placeholder,e,N,z,e,e,g-P);var q=this&&this!==Jn&&this instanceof A?h:c;return rr(q,this,N)}return a(A,"wrapper"),A}a(s2,"createCurry");function wO(c){return function(f,g,h){var A=jt(f);if(!ki(f)){var P=_e(g,3);f=Qn(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(wO,"createFind");function MO(c){return ia(function(f){var g=f.length,h=g,A=Or.prototype.thru;for(c&&f.reverse();h--;){var P=f[h];if(typeof P!="function")throw new Pr(r);if(A&&!N&&Wd(P)=="wrapper")var N=new Or([],!0)}for(h=N?h:g;++h<g;){P=f[h];var D=Wd(P),j=D=="wrapper"?Nv(P):e;j&&_v(j[0])&&j[1]==(re|R|U|Ce)&&!j[4].length&&j[9]==1?N=N[Wd(j[0])].apply(N,j[3]):N=P.length==1&&_v(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(MO,"createFlow");function jd(c,f,g,h,A,P,N,D,j,z){var q=f&re,Z=f&E,de=f&C,Ie=f&(R|F),De=f&st,ze=de?e:Gf(c);function we(){for(var rt=arguments.length,ut=H(rt),cr=rt;cr--;)ut[cr]=arguments[cr];if(Ie)var Ii=sl(we),lr=TV(ut,Ii);if(h&&(ut=LO(ut,h,A,Ie)),P&&(ut=RO(ut,P,N,Ie)),rt-=lr,Ie&&rt<z){var Pn=ja(ut,Ii);return jO(c,f,jd,we.placeholder,g,ut,Pn,D,j,z-rt)}var zr=Z?g:this,sa=de?zr[c]:c;return rt=ut.length,D?ut=C2(ut,D):De&&rt>1&&ut.reverse(),q&&j<rt&&(ut.length=j),this&&this!==Jn&&this instanceof we&&(sa=ze||Gf(sa)),sa.apply(zr,ut)}return a(we,"wrapper"),we}a(jd,"createHybrid");function VO(c,f){return function(g,h){return wk(g,c,f(h),{})}}a(VO,"createInverter");function $d(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=ar(g),h=ar(h)):(g=AO(g),h=AO(h)),A=c(g,h)}return A}}a($d,"createMathOperation");function Pv(c){return ia(function(f){return f=rn(f,or(_e())),et(function(g){var h=this;return c(f,function(A){return rr(A,h,g)})})})}a(Pv,"createOver");function Ud(c,f){f=f===e?" ":ar(f);var g=f.length;if(g<2)return g?vv(f,c):f;var h=vv(f,Id(c/el(f)));return Zc(f)?Ha(Jr(h),0,c).join(""):h.slice(0,c)}a(Ud,"createPadding");function c2(c,f,g,h){var A=f&E,P=Gf(c);function N(){for(var D=-1,j=arguments.length,z=-1,q=h.length,Z=H(q+j),de=this&&this!==Jn&&this instanceof N?P:c;++z<q;)Z[z]=h[z];for(;j--;)Z[z++]=arguments[++D];return rr(de,A?g:this,Z)}return a(N,"wrapper"),N}a(c2,"createPartial");function kO(c){return function(f,g,h){return h&&typeof h!="number"&&Oi(f,g,h)&&(g=h=e),f=aa(f),g===e?(g=f,f=0):g=aa(g),h=h===e?f<g?1:-1:aa(h),Xk(f,g,h,c)}}a(kO,"createRange");function Bd(c){return function(f,g){return typeof f=="string"&&typeof g=="string"||(f=Lr(f),g=Lr(g)),c(f,g)}}a(Bd,"createRelationalOperation");function jO(c,f,g,h,A,P,N,D,j,z){var q=f&R,Z=q?N:e,de=q?e:N,Ie=q?P:e,De=q?e:P;f|=q?U:J,f&=~(q?J:U),f&L||(f&=~(E|C));var ze=[c,f,A,Ie,Z,De,de,D,j,z],we=g.apply(e,ze);return _v(c)&&zO(we,ze),we.placeholder=h,qO(we,c,f)}a(jO,"createRecurry");function Ov(c){var f=$n[c];return function(g,h){if(g=Lr(g),h=h==null?0:di(Je(h),292),h&&qP(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(Ov,"createRound");var l2=nl&&1/yd(new nl([,-0]))[1]==Zt?function(c){return new nl(c)}:Jv;function $O(c){return function(f){var g=gi(f);return g==je?nv(f):g==cn?OV(f):vV(f,c(f))}}a($O,"createToPairs");function na(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:Un(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:Nv(c),Ie=[c,f,g,h,A,q,Z,P,N,D];if(de&&P2(Ie,de),c=Ie[0],f=Ie[1],g=Ie[2],h=Ie[3],A=Ie[4],D=Ie[9]=Ie[9]===e?j?0:c.length:Un(Ie[9]-z,0),!D&&f&(R|F)&&(f&=~(R|F)),!f||f==E)var De=a2(c,f,g);else f==R||f==F?De=s2(c,f,D):(f==U||f==(E|U))&&!A.length?De=c2(c,f,g,h):De=jd.apply(e,Ie);var ze=de?EO:zO;return qO(ze(De,Ie),c,f)}a(na,"createWrap");function UO(c,f,g,h){return c===e||Yr(c,tl[g])&&!Ct.call(h,g)?f:c}a(UO,"customDefaultsAssignIn");function BO(c,f,g,h,A,P){return fn(c)&&fn(f)&&(P.set(f,c),wd(c,f,e,BO,P),P.delete(f)),c}a(BO,"customDefaultsMerge");function f2(c){return Xf(c)?e:c}a(f2,"customOmitClone");function WO(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,Ie=g&b?new Ks: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(Ie){if(!Yy(f,function(rt,ut){if(!_f(Ie,ut)&&(De===rt||A(De,rt,g,h,P)))return Ie.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(WO,"equalArrays");function u2(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 Us:return!(c.byteLength!=f.byteLength||!P(new Sd(c),new Sd(f)));case I:case S:case Tt:return Yr(+c,+f);case M:return c.name==f.name&&c.message==f.message;case nr:case pi:return c==f+"";case je:var D=nv;case cn:var j=h&T;if(D||(D=yd),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=WO(D(c),D(f),h,A,P,N);return N.delete(c),q;case Vt:if(kf)return kf.call(c)==kf.call(f)}return!1}a(u2,"equalByTag");function p2(c,f,g,h,A,P){var N=g&T,D=Iv(c),j=D.length,z=Iv(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 Ie=P.get(c),De=P.get(f);if(Ie&&De)return Ie==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 cr=N?h(ut,rt,de,f,c,P):h(rt,ut,de,c,f,P);if(!(cr===e?rt===ut||A(rt,ut,g,h,P):cr)){ze=!1;break}we||(we=de=="constructor")}if(ze&&!we){var Ii=c.constructor,lr=f.constructor;Ii!=lr&&"constructor"in c&&"constructor"in f&&!(typeof Ii=="function"&&Ii instanceof Ii&&typeof lr=="function"&&lr instanceof lr)&&(ze=!1)}return P.delete(c),P.delete(f),ze}a(p2,"equalObjects");function ia(c){return wv(QO(c,e,rI),c+"")}a(ia,"flatRest");function Iv(c){return lO(c,Qn,Rv)}a(Iv,"getAllKeys");function Cv(c){return lO(c,ji,GO)}a(Cv,"getAllKeysIn");var Nv=Nd?function(c){return Nd.get(c)}:Jv;function Wd(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(Wd,"getFuncName");function sl(c){var f=Ct.call(x,"placeholder")?x:c;return f.placeholder}a(sl,"getHolder");function _e(){var c=x.iteratee||Kv;return c=c===Kv?pO:c,arguments.length?c(arguments[0],arguments[1]):c}a(_e,"getIteratee");function Gd(c,f){var g=c.__data__;return b2(f)?g[typeof f=="string"?"string":"hash"]:g.map}a(Gd,"getMapData");function Lv(c){for(var f=Qn(c),g=f.length;g--;){var h=f[g],A=c[h];f[g]=[h,A,XO(A)]}return f}a(Lv,"getMatchData");function Qs(c,f){var g=SV(c,f);return uO(g)?g:e}a(Qs,"getNative");function d2(c){var f=Ct.call(c,Gs),g=c[Gs];try{c[Gs]=e;var h=!0}catch{}var A=bd.call(c);return h&&(f?c[Gs]=g:delete c[Gs]),A}a(d2,"getRawTag");var Rv=rv?function(c){return c==null?[]:(c=jt(c),Va(rv(c),function(f){return YP.call(c,f)}))}:Qv,GO=rv?function(c){for(var f=[];c;)ka(f,Rv(c)),c=xd(c);return f}:Qv,gi=Pi;(ov&&gi(new ov(new ArrayBuffer(1)))!=Ar||wf&&gi(new wf)!=je||av&&gi(av.resolve())!=Mt||nl&&gi(new nl)!=cn||Mf&&gi(new Mf)!=Mi)&&(gi=a(function(c){var f=Pi(c),g=f==tn?c.constructor:e,h=g?Ys(g):"";if(h)switch(h){case QV:return Ar;case YV:return je;case zV:return Mt;case qV:return cn;case ZV:return Mi}return f},"getTag"));function g2(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=Un(c,f-N);break}}return{start:c,end:f}}a(g2,"getView");function m2(c){var f=c.match(bM);return f?f[1].split(AM):[]}a(m2,"getWrapDetails");function HO(c,f,g){f=Ga(f,c);for(var h=-1,A=f.length,P=!1;++h<A;){var N=So(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)&&ra(N,A)&&(He(c)||zs(c)))}a(HO,"hasPath");function h2(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(h2,"initCloneArray");function KO(c){return typeof c.constructor=="function"&&!Hf(c)?rl(xd(c)):{}}a(KO,"initCloneObject");function y2(c,f,g){var h=c.constructor;switch(f){case Us:return xv(c);case I:case S:return new h(+c);case Ar:return e2(c,g);case Nf:case Lf:case Rf:case Bs:case $:case W:case Q:case ie:case Ne:return CO(c,g);case je:return new h;case Tt:case pi:return new h(c);case nr:return t2(c);case cn:return new h;case Vt:return n2(c)}}a(y2,"initCloneByTag");function T2(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(EM,`{
|
|
270
270
|
/* [wrapped with `+f+`] */
|
|
271
|
-
`)}a(T2,"insertWrapDetails");function E2(c){return He(c)||zs(c)||!!(zP&&c&&c[zP])}a(E2,"isFlattenable");function ra(c,f){var g=typeof c;return f=f??Fe,!!f&&(g=="number"||g!="symbol"&&RM.test(c))&&c>-1&&c%1==0&&c<f}a(ra,"isIndex");function Oi(c,f,g){if(!fn(g))return!1;var h=typeof f;return(h=="number"?ki(g)&&ra(f,g.length):h=="string"&&f in g)?Yr(g[f],c):!1}a(Oi,"isIterateeCall");function Fv(c,f){if(He(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||sr(c)?!0:ud.test(c)||!ir.test(c)||f!=null&&c in jt(f)}a(Fv,"isKey");function b2(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}a(b2,"isKeyable");function _v(c){var f=Wd(c),g=x[f];if(typeof g!="function"||!(f in lt.prototype))return!1;if(c===g)return!0;var h=Nv(g);return!!h&&c===h[0]}a(_v,"isLaziable");function A2(c){return!!XP&&XP in c}a(A2,"isMasked");var S2=Td?oa:Yv;function Hf(c){var f=c&&c.constructor,g=typeof f=="function"&&f.prototype||el;return c===g}a(Hf,"isPrototype");function XO(c){return c===c&&!fn(c)}a(XO,"isStrictComparable");function JO(c,f){return function(g){return g==null?!1:g[c]===f&&(f!==e||c in jt(g))}}a(JO,"matchesStrictComparable");function x2(c){var f=Qd(c,function(h){return g.size===l&&g.clear(),h}),g=f.cache;return f}a(x2,"memoizeCapped");function P2(c,f){var g=c[1],h=f[1],A=g|h,P=A<(E|C|re),N=h==re&&g==R||h==re&&g==Ce&&c[7].length<=f[8]||h==(re|Ce)&&f[7].length<=f[8]&&g==R;if(!(P||N))return c;h&E&&(c[2]=f[2],A|=g&E?0:L);var D=f[3];if(D){var j=c[3];c[3]=j?LO(j,D,f[4]):D,c[4]=j?ja(c[3],u):f[4]}return D=f[5],D&&(j=c[5],c[5]=j?RO(j,D,f[6]):D,c[6]=j?ja(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(P2,"mergeData");function O2(c){var f=[];if(c!=null)for(var g in jt(c))f.push(g);return f}a(O2,"nativeKeysIn");function I2(c){return bd.call(c)}a(I2,"objectToString");function QO(c,f,g){return f=Un(f===e?c.length-1:f,0),function(){for(var h=arguments,A=-1,P=Un(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),rr(c,this,D)}}a(QO,"overRest");function YO(c,f){return f.length<2?c:Js(c,Cr(f,0,-1))}a(YO,"parent");function C2(c,f){for(var g=c.length,h=di(f.length,g),A=Vi(c);h--;){var P=f[h];c[h]=ra(P,g)?A[P]:e}return c}a(C2,"reorder");function Dv(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}a(Dv,"safeGet");var zO=ZO(EO),Kf=BV||function(c,f){return Jn.setTimeout(c,f)},wv=ZO(Yk);function qO(c,f,g){var h=f+"";return wv(c,T2(h,N2(m2(h),g)))}a(qO,"setWrapToString");function ZO(c){var f=0,g=0;return function(){var h=KV(),A=Ke-(h-g);if(g=h,A>0){if(++f>=mt)return arguments[0]}else f=0;return c.apply(e,arguments)}}a(ZO,"shortOut");function Hd(c,f){var g=-1,h=c.length,A=h-1;for(f=f===e?h:f;++g<f;){var P=yv(g,A),N=c[P];c[P]=c[g],c[g]=N}return c.length=f,c}a(Hd,"shuffleSelf");var eI=x2(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(jy,function(g,h,A,P){f.push(A?P.replace(PM,"$1"):h||g)}),f});function So(c){if(typeof c=="string"||sr(c))return c;var f=c+"";return f=="0"&&1/c==-Zt?"-0":f}a(So,"toKey");function Ys(c){if(c!=null){try{return Ed.call(c)}catch{}try{return c+""}catch{}}return""}a(Ys,"toSource");function N2(c,f){return xr(Le,function(g){var h="_."+g[0];f&g[1]&&!md(c,h)&&c.push(h)}),c.sort()}a(N2,"updateWrapDetails");function tI(c){if(c instanceof lt)return c.clone();var f=new Or(c.__wrapped__,c.__chain__);return f.__actions__=Vi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}a(tI,"wrapperClone");function L2(c,f,g){(g?Oi(c,f,g):f===e)?f=1:f=Un(Je(f),0);var h=c==null?0:c.length;if(!h||f<1)return[];for(var A=0,P=0,N=H(Id(h/f));A<h;)N[P++]=Cr(c,A,A+=f);return N}a(L2,"chunk");function R2(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(R2,"compact");function F2(){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 ka(He(g)?Vi(g):[g],ri(f,1))}a(F2,"concat");var _2=Ze(function(c,f){return xn(c)?$f(c,ri(f,1,xn,!0)):[]}),D2=Ze(function(c,f){var g=Nr(f);return xn(g)&&(g=e),xn(c)?$f(c,ri(f,1,xn,!0),_e(g,2)):[]}),w2=Ze(function(c,f){var g=Nr(f);return xn(g)&&(g=e),xn(c)?$f(c,ri(f,1,xn,!0),e,g):[]});function M2(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(M2,"drop");function V2(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(V2,"dropRight");function k2(c,f){return c&&c.length?Vd(c,_e(f,3),!0,!0):[]}a(k2,"dropRightWhile");function j2(c,f){return c&&c.length?Vd(c,_e(f,3),!0):[]}a(j2,"dropWhile");function $2(c,f,g,h){var A=c==null?0:c.length;return A?(g&&typeof g!="number"&&Oi(c,f,g)&&(g=0,h=A),Rk(c,f,g,h)):[]}a($2,"fill");function nI(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=Un(h+A,0)),hd(c,_e(f,3),A)}a(nI,"findIndex");function iI(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?Un(h+A,0):di(A,h-1)),hd(c,_e(f,3),A,!0)}a(iI,"findLastIndex");function rI(c){var f=c==null?0:c.length;return f?ri(c,1):[]}a(rI,"flatten");function U2(c){var f=c==null?0:c.length;return f?ri(c,Zt):[]}a(U2,"flattenDeep");function B2(c,f){var g=c==null?0:c.length;return g?(f=f===e?1:Je(f),ri(c,f)):[]}a(B2,"flattenDepth");function W2(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(W2,"fromPairs");function oI(c){return c&&c.length?c[0]:e}a(oI,"head");function G2(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=Un(h+A,0)),zc(c,f,A)}a(G2,"indexOf");function H2(c){var f=c==null?0:c.length;return f?Cr(c,0,-1):[]}a(H2,"initial");var K2=Ze(function(c){var f=rn(c,Av);return f.length&&f[0]===c[0]?pv(f):[]}),X2=Ze(function(c){var f=Nr(c),g=rn(c,Av);return f===Nr(g)?f=e:g.pop(),g.length&&g[0]===c[0]?pv(g,_e(f,2)):[]}),J2=Ze(function(c){var f=Nr(c),g=rn(c,Av);return f=typeof f=="function"?f:e,f&&g.pop(),g.length&&g[0]===c[0]?pv(g,e,f):[]});function Q2(c,f){return c==null?"":GV.call(c,f)}a(Q2,"join");function Nr(c){var f=c==null?0:c.length;return f?c[f-1]:e}a(Nr,"last");function Y2(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?Un(h+A,0):di(A,h-1)),f===f?CV(c,f,A):hd(c,jP,A,!0)}a(Y2,"lastIndexOf");function z2(c,f){return c&&c.length?hO(c,Je(f)):e}a(z2,"nth");var q2=Ze(aI);function aI(c,f){return c&&c.length&&f&&f.length?hv(c,f):c}a(aI,"pullAll");function Z2(c,f,g){return c&&c.length&&f&&f.length?hv(c,f,_e(g,2)):c}a(Z2,"pullAllBy");function ej(c,f,g){return c&&c.length&&f&&f.length?hv(c,f,e,g):c}a(ej,"pullAllWith");var tj=ia(function(c,f){var g=c==null?0:c.length,h=cv(c,f);return TO(c,rn(f,function(A){return ra(A,g)?+A:A}).sort(NO)),h});function nj(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 TO(c,A),g}a(nj,"remove");function Mv(c){return c==null?c:JV.call(c)}a(Mv,"reverse");function ij(c,f,g){var h=c==null?0:c.length;return h?(g&&typeof g!="number"&&Oi(c,f,g)?(f=0,g=h):(f=f==null?0:Je(f),g=g===e?h:Je(g)),Cr(c,f,g)):[]}a(ij,"slice");function rj(c,f){return Md(c,f)}a(rj,"sortedIndex");function oj(c,f,g){return Tv(c,f,_e(g,2))}a(oj,"sortedIndexBy");function aj(c,f){var g=c==null?0:c.length;if(g){var h=Md(c,f);if(h<g&&Yr(c[h],f))return h}return-1}a(aj,"sortedIndexOf");function sj(c,f){return Md(c,f,!0)}a(sj,"sortedLastIndex");function cj(c,f,g){return Tv(c,f,_e(g,2),!0)}a(cj,"sortedLastIndexBy");function lj(c,f){var g=c==null?0:c.length;if(g){var h=Md(c,f,!0)-1;if(Yr(c[h],f))return h}return-1}a(lj,"sortedLastIndexOf");function fj(c){return c&&c.length?bO(c):[]}a(fj,"sortedUniq");function uj(c,f){return c&&c.length?bO(c,_e(f,2)):[]}a(uj,"sortedUniqBy");function pj(c){var f=c==null?0:c.length;return f?Cr(c,1,f):[]}a(pj,"tail");function dj(c,f,g){return c&&c.length?(f=g||f===e?1:Je(f),Cr(c,0,f<0?0:f)):[]}a(dj,"take");function gj(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(gj,"takeRight");function mj(c,f){return c&&c.length?Vd(c,_e(f,3),!1,!0):[]}a(mj,"takeRightWhile");function hj(c,f){return c&&c.length?Vd(c,_e(f,3)):[]}a(hj,"takeWhile");var yj=Ze(function(c){return Wa(ri(c,1,xn,!0))}),vj=Ze(function(c){var f=Nr(c);return xn(f)&&(f=e),Wa(ri(c,1,xn,!0),_e(f,2))}),Tj=Ze(function(c){var f=Nr(c);return f=typeof f=="function"?f:e,Wa(ri(c,1,xn,!0),e,f)});function Ej(c){return c&&c.length?Wa(c):[]}a(Ej,"uniq");function bj(c,f){return c&&c.length?Wa(c,_e(f,2)):[]}a(bj,"uniqBy");function Aj(c,f){return f=typeof f=="function"?f:e,c&&c.length?Wa(c,e,f):[]}a(Aj,"uniqWith");function Vv(c){if(!(c&&c.length))return[];var f=0;return c=Va(c,function(g){if(xn(g))return f=Un(g.length,f),!0}),ev(f,function(g){return rn(c,zy(g))})}a(Vv,"unzip");function sI(c,f){if(!(c&&c.length))return[];var g=Vv(c);return f==null?g:rn(g,function(h){return rr(f,e,h)})}a(sI,"unzipWith");var Sj=Ze(function(c,f){return xn(c)?$f(c,f):[]}),xj=Ze(function(c){return bv(Va(c,xn))}),Pj=Ze(function(c){var f=Nr(c);return xn(f)&&(f=e),bv(Va(c,xn),_e(f,2))}),Oj=Ze(function(c){var f=Nr(c);return f=typeof f=="function"?f:e,bv(Va(c,xn),e,f)}),Ij=Ze(Vv);function Cj(c,f){return PO(c||[],f||[],jf)}a(Cj,"zipObject");function Nj(c,f){return PO(c||[],f||[],Wf)}a(Nj,"zipObjectDeep");var Lj=Ze(function(c){var f=c.length,g=f>1?c[f-1]:e;return g=typeof g=="function"?(c.pop(),g):e,sI(c,g)});function cI(c){var f=x(c);return f.__chain__=!0,f}a(cI,"chain");function Rj(c,f){return f(c),c}a(Rj,"tap");function Kd(c,f){return f(c)}a(Kd,"thru");var Fj=ia(function(c){var f=c.length,g=f?c[0]:0,h=this.__wrapped__,A=a(function(P){return cv(P,c)},"interceptor");return f>1||this.__actions__.length||!(h instanceof lt)||!ra(g)?this.thru(A):(h=h.slice(g,+g+(f?1:0)),h.__actions__.push({func:Kd,args:[A],thisArg:e}),new Or(h,this.__chain__).thru(function(P){return f&&!P.length&&P.push(e),P}))});function _j(){return cI(this)}a(_j,"wrapperChain");function Dj(){return new Or(this.value(),this.__chain__)}a(Dj,"wrapperCommit");function wj(){this.__values__===e&&(this.__values__=AI(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}a(wj,"wrapperNext");function Mj(){return this}a(Mj,"wrapperToIterator");function Vj(c){for(var f,g=this;g instanceof Rd;){var h=tI(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(Vj,"wrapperPlant");function kj(){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:Kd,args:[Mv],thisArg:e}),new Or(f,this.__chain__)}return this.thru(Mv)}a(kj,"wrapperReverse");function jj(){return xO(this.__wrapped__,this.__actions__)}a(jj,"wrapperValue");var $j=kd(function(c,f,g){Ct.call(c,g)?++c[g]:ta(c,g,1)});function Uj(c,f,g){var h=He(c)?VP:Lk;return g&&Oi(c,f,g)&&(f=e),h(c,_e(f,3))}a(Uj,"every");function Bj(c,f){var g=He(c)?Va:sO;return g(c,_e(f,3))}a(Bj,"filter");var Wj=wO(nI),Gj=wO(iI);function Hj(c,f){return ri(Xd(c,f),1)}a(Hj,"flatMap");function Kj(c,f){return ri(Xd(c,f),Zt)}a(Kj,"flatMapDeep");function Xj(c,f,g){return g=g===e?1:Je(g),ri(Xd(c,f),g)}a(Xj,"flatMapDepth");function lI(c,f){var g=He(c)?xr:Ba;return g(c,_e(f,3))}a(lI,"forEach");function fI(c,f){var g=He(c)?uV:aO;return g(c,_e(f,3))}a(fI,"forEachRight");var Jj=kd(function(c,f,g){Ct.call(c,g)?c[g].push(f):ta(c,g,[f])});function Qj(c,f,g,h){c=ki(c)?c:cl(c),g=g&&!h?Je(g):0;var A=c.length;return g<0&&(g=Un(A+g,0)),qd(c)?g<=A&&c.indexOf(f,g)>-1:!!A&&zc(c,f,g)>-1}a(Qj,"includes");var Yj=Ze(function(c,f,g){var h=-1,A=typeof f=="function",P=ki(c)?H(c.length):[];return Ba(c,function(N){P[++h]=A?rr(f,N,g):Uf(N,f,g)}),P}),zj=kd(function(c,f,g){ta(c,g,f)});function Xd(c,f){var g=He(c)?rn:dO;return g(c,_e(f,3))}a(Xd,"map");function qj(c,f,g,h){return c==null?[]:(He(f)||(f=f==null?[]:[f]),g=h?e:g,He(g)||(g=g==null?[]:[g]),yO(c,f,g))}a(qj,"orderBy");var Zj=kd(function(c,f,g){c[g?0:1].push(f)},function(){return[[],[]]});function e$(c,f,g){var h=He(c)?Qy:UP,A=arguments.length<3;return h(c,_e(f,4),g,A,Ba)}a(e$,"reduce");function t$(c,f,g){var h=He(c)?pV:UP,A=arguments.length<3;return h(c,_e(f,4),g,A,aO)}a(t$,"reduceRight");function n$(c,f){var g=He(c)?Va:sO;return g(c,Yd(_e(f,3)))}a(n$,"reject");function i$(c){var f=He(c)?nO:Jk;return f(c)}a(i$,"sample");function r$(c,f,g){(g?Oi(c,f,g):f===e)?f=1:f=Je(f);var h=He(c)?Pk:Qk;return h(c,f)}a(r$,"sampleSize");function o$(c){var f=He(c)?Ok:zk;return f(c)}a(o$,"shuffle");function a$(c){if(c==null)return 0;if(ki(c))return qd(c)?Zc(c):c.length;var f=gi(c);return f==je||f==cn?c.size:gv(c).length}a(a$,"size");function s$(c,f,g){var h=He(c)?Yy:qk;return g&&Oi(c,f,g)&&(f=e),h(c,_e(f,3))}a(s$,"some");var c$=Ze(function(c,f){if(c==null)return[];var g=f.length;return g>1&&Oi(c,f[0],f[1])?f=[]:g>2&&Oi(f[0],f[1],f[2])&&(f=[f[0]]),yO(c,ri(f,1),[])}),Jd=UV||function(){return Jn.Date.now()};function l$(c,f){if(typeof f!="function")throw new Pr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}a(l$,"after");function uI(c,f,g){return f=g?e:f,f=c&&f==null?c.length:f,na(c,re,e,e,e,e,f)}a(uI,"ary");function pI(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(pI,"before");var kv=Ze(function(c,f,g){var h=E;if(g.length){var A=ja(g,al(kv));h|=U}return na(c,h,f,g,A)}),dI=Ze(function(c,f,g){var h=E|C;if(g.length){var A=ja(g,al(dI));h|=U}return na(f,h,c,g,A)});function gI(c,f,g){f=g?e:f;var h=na(c,R,e,e,e,e,e,f);return h.placeholder=gI.placeholder,h}a(gI,"curry");function mI(c,f,g){f=g?e:f;var h=na(c,F,e,e,e,e,e,f);return h.placeholder=mI.placeholder,h}a(mI,"curryRight");function hI(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=Lr(f)||0,fn(g)&&(q=!!g.leading,Z="maxWait"in g,P=Z?Un(Lr(g.maxWait)||0,f):P,de="trailing"in g?!!g.trailing:de);function Ie(Pn){var zr=h,sa=A;return h=A=e,z=Pn,N=c.apply(sa,zr),N}a(Ie,"invokeFunc");function De(Pn){return z=Pn,D=Kf(rt,f),q?Ie(Pn):N}a(De,"leadingEdge");function ze(Pn){var zr=Pn-j,sa=Pn-z,wI=f-zr;return Z?di(wI,P-sa):wI}a(ze,"remainingWait");function we(Pn){var zr=Pn-j,sa=Pn-z;return j===e||zr>=f||zr<0||Z&&sa>=P}a(we,"shouldInvoke");function rt(){var Pn=Jd();if(we(Pn))return ut(Pn);D=Kf(rt,ze(Pn))}a(rt,"timerExpired");function ut(Pn){return D=e,de&&h?Ie(Pn):(h=A=e,N)}a(ut,"trailingEdge");function cr(){D!==e&&OO(D),z=0,h=j=A=D=e}a(cr,"cancel");function Ii(){return D===e?N:ut(Jd())}a(Ii,"flush");function lr(){var Pn=Jd(),zr=we(Pn);if(h=arguments,A=this,j=Pn,zr){if(D===e)return De(j);if(Z)return OO(D),D=Kf(rt,f),Ie(j)}return D===e&&(D=Kf(rt,f)),N}return a(lr,"debounced"),lr.cancel=cr,lr.flush=Ii,lr}a(hI,"debounce");var f$=Ze(function(c,f){return oO(c,1,f)}),u$=Ze(function(c,f,g){return oO(c,Lr(f)||0,g)});function p$(c){return na(c,st)}a(p$,"flip");function Qd(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(Qd.Cache||ea),g}a(Qd,"memoize"),Qd.Cache=ea;function Yd(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(Yd,"negate");function d$(c){return pI(2,c)}a(d$,"once");var g$=Zk(function(c,f){f=f.length==1&&He(f[0])?rn(f[0],or(_e())):rn(ri(f,1),or(_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 rr(c,this,h)})}),jv=Ze(function(c,f){var g=ja(f,al(jv));return na(c,U,e,f,g)}),yI=Ze(function(c,f){var g=ja(f,al(yI));return na(c,J,e,f,g)}),m$=ia(function(c,f){return na(c,Ce,e,e,e,f)});function h$(c,f){if(typeof c!="function")throw new Pr(r);return f=f===e?f:Je(f),Ze(c,f)}a(h$,"rest");function y$(c,f){if(typeof c!="function")throw new Pr(r);return f=f==null?0:Un(Je(f),0),Ze(function(g){var h=g[f],A=Ha(g,0,f);return h&&ka(A,h),rr(c,this,A)})}a(y$,"spread");function v$(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),hI(c,f,{leading:h,maxWait:f,trailing:A})}a(v$,"throttle");function T$(c){return uI(c,1)}a(T$,"unary");function E$(c,f){return jv(Sv(f),c)}a(E$,"wrap");function b$(){if(!arguments.length)return[];var c=arguments[0];return He(c)?c:[c]}a(b$,"castArray");function A$(c){return Ir(c,m)}a(A$,"clone");function S$(c,f){return f=typeof f=="function"?f:e,Ir(c,m,f)}a(S$,"cloneWith");function x$(c){return Ir(c,p|m)}a(x$,"cloneDeep");function P$(c,f){return f=typeof f=="function"?f:e,Ir(c,p|m,f)}a(P$,"cloneDeepWith");function O$(c,f){return f==null||rO(c,f,Qn(f))}a(O$,"conformsTo");function Yr(c,f){return c===f||c!==c&&f!==f}a(Yr,"eq");var I$=Bd(uv),C$=Bd(function(c,f){return c>=f}),zs=fO(function(){return arguments}())?fO:function(c){return gn(c)&&Ct.call(c,"callee")&&!YP.call(c,"callee")},He=H.isArray,N$=RP?or(RP):Mk;function ki(c){return c!=null&&zd(c.length)&&!oa(c)}a(ki,"isArrayLike");function xn(c){return gn(c)&&ki(c)}a(xn,"isArrayLikeObject");function L$(c){return c===!0||c===!1||gn(c)&&Pi(c)==I}a(L$,"isBoolean");var Ka=WV||Yv,R$=FP?or(FP):Vk;function F$(c){return gn(c)&&c.nodeType===1&&!Xf(c)}a(F$,"isElement");function _$(c){if(c==null)return!0;if(ki(c)&&(He(c)||typeof c=="string"||typeof c.splice=="function"||Ka(c)||sl(c)||zs(c)))return!c.length;var f=gi(c);if(f==je||f==cn)return!c.size;if(Hf(c))return!gv(c).length;for(var g in c)if(Ct.call(c,g))return!1;return!0}a(_$,"isEmpty");function D$(c,f){return Bf(c,f)}a(D$,"isEqual");function w$(c,f,g){g=typeof g=="function"?g:e;var h=g?g(c,f):e;return h===e?Bf(c,f,e,g):!!h}a(w$,"isEqualWith");function $v(c){if(!gn(c))return!1;var f=Pi(c);return f==M||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!Xf(c)}a($v,"isError");function M$(c){return typeof c=="number"&&qP(c)}a(M$,"isFinite");function oa(c){if(!fn(c))return!1;var f=Pi(c);return f==Re||f==ct||f==Ye||f==ii}a(oa,"isFunction");function vI(c){return typeof c=="number"&&c==Je(c)}a(vI,"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 gn(c){return c!=null&&typeof c=="object"}a(gn,"isObjectLike");var TI=_P?or(_P):jk;function V$(c,f){return c===f||dv(c,f,Lv(f))}a(V$,"isMatch");function k$(c,f,g){return g=typeof g=="function"?g:e,dv(c,f,Lv(f),g)}a(k$,"isMatchWith");function j$(c){return EI(c)&&c!=+c}a(j$,"isNaN");function $$(c){if(S2(c))throw new Ge(i);return uO(c)}a($$,"isNative");function U$(c){return c===null}a(U$,"isNull");function B$(c){return c==null}a(B$,"isNil");function EI(c){return typeof c=="number"||gn(c)&&Pi(c)==Tt}a(EI,"isNumber");function Xf(c){if(!gn(c)||Pi(c)!=tn)return!1;var f=xd(c);if(f===null)return!0;var g=Ct.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&Ed.call(g)==VV}a(Xf,"isPlainObject");var Uv=DP?or(DP):$k;function W$(c){return vI(c)&&c>=-Fe&&c<=Fe}a(W$,"isSafeInteger");var bI=wP?or(wP):Uk;function qd(c){return typeof c=="string"||!He(c)&&gn(c)&&Pi(c)==pi}a(qd,"isString");function sr(c){return typeof c=="symbol"||gn(c)&&Pi(c)==Vt}a(sr,"isSymbol");var sl=MP?or(MP):Bk;function G$(c){return c===e}a(G$,"isUndefined");function H$(c){return gn(c)&&gi(c)==Mi}a(H$,"isWeakMap");function K$(c){return gn(c)&&Pi(c)==Cf}a(K$,"isWeakSet");var X$=Bd(mv),J$=Bd(function(c,f){return c<=f});function AI(c){if(!c)return[];if(ki(c))return qd(c)?Jr(c):Vi(c);if(Df&&c[Df])return PV(c[Df]());var f=gi(c),g=f==je?nv:f==cn?yd:cl;return g(c)}a(AI,"toArray");function aa(c){if(!c)return c===0?c:0;if(c=Lr(c),c===Zt||c===-Zt){var f=c<0?-1:1;return f*Kn}return c===c?c:0}a(aa,"toFinite");function Je(c){var f=aa(c),g=f%1;return f===f?g?f-g:f:0}a(Je,"toInteger");function SI(c){return c?Xs(Je(c),0,en):0}a(SI,"toLength");function Lr(c){if(typeof c=="number")return c;if(sr(c))return jn;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=BP(c);var g=CM.test(c);return g||LM.test(c)?cV(c.slice(2),g?2:8):IM.test(c)?jn:+c}a(Lr,"toNumber");function xI(c){return Ao(c,ji(c))}a(xI,"toPlainObject");function Q$(c){return c?Xs(Je(c),-Fe,Fe):c===0?c:0}a(Q$,"toSafeInteger");function Pt(c){return c==null?"":ar(c)}a(Pt,"toString");var Y$=rl(function(c,f){if(Hf(f)||ki(f)){Ao(f,Qn(f),c);return}for(var g in f)Ct.call(f,g)&&jf(c,g,f[g])}),PI=rl(function(c,f){Ao(f,ji(f),c)}),Zd=rl(function(c,f,g,h){Ao(f,ji(f),c,h)}),z$=rl(function(c,f,g,h){Ao(f,Qn(f),c,h)}),q$=ia(cv);function Z$(c,f){var g=il(c);return f==null?g:iO(g,f)}a(Z$,"create");var eU=Ze(function(c,f){c=jt(c);var g=-1,h=f.length,A=h>2?f[2]:e;for(A&&Oi(f[0],f[1],A)&&(h=1);++g<h;)for(var P=f[g],N=ji(P),D=-1,j=N.length;++D<j;){var z=N[D],q=c[z];(q===e||Yr(q,el[z])&&!Ct.call(c,z))&&(c[z]=P[z])}return c}),tU=Ze(function(c){return c.push(e,BO),rr(OI,e,c)});function nU(c,f){return kP(c,_e(f,3),bo)}a(nU,"findKey");function iU(c,f){return kP(c,_e(f,3),fv)}a(iU,"findLastKey");function rU(c,f){return c==null?c:lv(c,_e(f,3),ji)}a(rU,"forIn");function oU(c,f){return c==null?c:cO(c,_e(f,3),ji)}a(oU,"forInRight");function aU(c,f){return c&&bo(c,_e(f,3))}a(aU,"forOwn");function sU(c,f){return c&&fv(c,_e(f,3))}a(sU,"forOwnRight");function cU(c){return c==null?[]:Dd(c,Qn(c))}a(cU,"functions");function lU(c){return c==null?[]:Dd(c,ji(c))}a(lU,"functionsIn");function Bv(c,f,g){var h=c==null?e:Js(c,f);return h===e?g:h}a(Bv,"get");function fU(c,f){return c!=null&&HO(c,f,Fk)}a(fU,"has");function Wv(c,f){return c!=null&&HO(c,f,_k)}a(Wv,"hasIn");var uU=VO(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=bd.call(f)),c[f]=g},Hv($i)),pU=VO(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=bd.call(f)),Ct.call(c,f)?c[f].push(g):c[f]=[g]},_e),dU=Ze(Uf);function Qn(c){return ki(c)?tO(c):gv(c)}a(Qn,"keys");function ji(c){return ki(c)?tO(c,!0):Wk(c)}a(ji,"keysIn");function gU(c,f){var g={};return f=_e(f,3),bo(c,function(h,A,P){ta(g,f(h,A,P),h)}),g}a(gU,"mapKeys");function mU(c,f){var g={};return f=_e(f,3),bo(c,function(h,A,P){ta(g,A,f(h,A,P))}),g}a(mU,"mapValues");var hU=rl(function(c,f,g){wd(c,f,g)}),OI=rl(function(c,f,g,h){wd(c,f,g,h)}),yU=ia(function(c,f){var g={};if(c==null)return g;var h=!1;f=rn(f,function(P){return P=Ga(P,c),h||(h=P.length>1),P}),Ao(c,Cv(c),g),h&&(g=Ir(g,p|d|m,f2));for(var A=f.length;A--;)Ev(g,f[A]);return g});function vU(c,f){return II(c,Yd(_e(f)))}a(vU,"omitBy");var TU=ia(function(c,f){return c==null?{}:Hk(c,f)});function II(c,f){if(c==null)return{};var g=rn(Cv(c),function(h){return[h]});return f=_e(f),vO(c,g,function(h,A){return f(h,A[0])})}a(II,"pickBy");function EU(c,f,g){f=Ga(f,c);var h=-1,A=f.length;for(A||(A=1,c=e);++h<A;){var P=c==null?e:c[So(f[h])];P===e&&(h=A,P=g),c=oa(P)?P.call(c):P}return c}a(EU,"result");function bU(c,f,g){return c==null?c:Wf(c,f,g)}a(bU,"set");function AU(c,f,g,h){return h=typeof h=="function"?h:e,c==null?c:Wf(c,f,g,h)}a(AU,"setWith");var CI=$O(Qn),NI=$O(ji);function SU(c,f,g){var h=He(c),A=h||Ka(c)||sl(c);if(f=_e(f,4),g==null){var P=c&&c.constructor;A?g=h?new P:[]:fn(c)?g=oa(P)?il(xd(c)):{}:g={}}return(A?xr:bo)(c,function(N,D,j){return f(g,N,D,j)}),g}a(SU,"transform");function xU(c,f){return c==null?!0:Ev(c,f)}a(xU,"unset");function PU(c,f,g){return c==null?c:SO(c,f,Sv(g))}a(PU,"update");function OU(c,f,g,h){return h=typeof h=="function"?h:e,c==null?c:SO(c,f,Sv(g),h)}a(OU,"updateWith");function cl(c){return c==null?[]:tv(c,Qn(c))}a(cl,"values");function IU(c){return c==null?[]:tv(c,ji(c))}a(IU,"valuesIn");function CU(c,f,g){return g===e&&(g=f,f=e),g!==e&&(g=Lr(g),g=g===g?g:0),f!==e&&(f=Lr(f),f=f===f?f:0),Xs(Lr(c),f,g)}a(CU,"clamp");function NU(c,f,g){return f=aa(f),g===e?(g=f,f=0):g=aa(g),c=Lr(c),Dk(c,f,g)}a(NU,"inRange");function LU(c,f,g){if(g&&typeof g!="boolean"&&Oi(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=aa(c),f===e?(f=c,c=0):f=aa(f)),c>f){var h=c;c=f,f=h}if(g||c%1||f%1){var A=ZP();return di(c+A*(f-c+sV("1e-"+((A+"").length-1))),f)}return yv(c,f)}a(LU,"random");var RU=ol(function(c,f,g){return f=f.toLowerCase(),c+(g?LI(f):f)});function LI(c){return Gv(Pt(c).toLowerCase())}a(LI,"capitalize");function RI(c){return c=Pt(c),c&&c.replace(FM,EV).replace(zM,"")}a(RI,"deburr");function FU(c,f,g){c=Pt(c),f=ar(f);var h=c.length;g=g===e?h:Xs(Je(g),0,h);var A=g;return g-=f.length,g>=0&&c.slice(g,A)==f}a(FU,"endsWith");function _U(c){return c=Pt(c),c&&Oe.test(c)?c.replace(xe,bV):c}a(_U,"escape");function DU(c){return c=Pt(c),c&&vM.test(c)?c.replace(Ff,"\\$&"):c}a(DU,"escapeRegExp");var wU=ol(function(c,f,g){return c+(g?"-":"")+f.toLowerCase()}),MU=ol(function(c,f,g){return c+(g?" ":"")+f.toLowerCase()}),VU=DO("toLowerCase");function kU(c,f,g){c=Pt(c),f=Je(f);var h=f?Zc(c):0;if(!f||h>=f)return c;var A=(f-h)/2;return Ud(Cd(A),g)+c+Ud(Id(A),g)}a(kU,"pad");function jU(c,f,g){c=Pt(c),f=Je(f);var h=f?Zc(c):0;return f&&h<f?c+Ud(f-h,g):c}a(jU,"padEnd");function $U(c,f,g){c=Pt(c),f=Je(f);var h=f?Zc(c):0;return f&&h<f?Ud(f-h,g)+c:c}a($U,"padStart");function UU(c,f,g){return g||f==null?f=0:f&&(f=+f),XV(Pt(c).replace($y,""),f||0)}a(UU,"parseInt");function BU(c,f,g){return(g?Oi(c,f,g):f===e)?f=1:f=Je(f),vv(Pt(c),f)}a(BU,"repeat");function WU(){var c=arguments,f=Pt(c[0]);return c.length<3?f:f.replace(c[1],c[2])}a(WU,"replace");var GU=ol(function(c,f,g){return c+(g?"_":"")+f.toLowerCase()});function HU(c,f,g){return g&&typeof g!="number"&&Oi(c,f,g)&&(f=g=e),g=g===e?en:g>>>0,g?(c=Pt(c),c&&(typeof f=="string"||f!=null&&!Uv(f))&&(f=ar(f),!f&&qc(c))?Ha(Jr(c),0,g):c.split(f,g)):[]}a(HU,"split");var KU=ol(function(c,f,g){return c+(g?" ":"")+Gv(f)});function XU(c,f,g){return c=Pt(c),g=g==null?0:Xs(Je(g),0,c.length),f=ar(f),c.slice(g,g+f.length)==f}a(XU,"startsWith");function JU(c,f,g){var h=x.templateSettings;g&&Oi(c,f,g)&&(f=e),c=Pt(c),f=Zd({},f,h,UO);var A=Zd({},f.imports,h.imports,UO),P=Qn(A),N=tv(A,P),D,j,z=0,q=f.interpolate||pd,Z="__p += '",de=iv((f.escape||pd).source+"|"+q.source+"|"+(q===nn?OM:pd).source+"|"+(f.evaluate||pd).source+"|$","g"),Ie="//# sourceURL="+(Ct.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nV+"]")+`
|
|
271
|
+
`)}a(T2,"insertWrapDetails");function E2(c){return He(c)||zs(c)||!!(zP&&c&&c[zP])}a(E2,"isFlattenable");function ra(c,f){var g=typeof c;return f=f??Fe,!!f&&(g=="number"||g!="symbol"&&RM.test(c))&&c>-1&&c%1==0&&c<f}a(ra,"isIndex");function Oi(c,f,g){if(!fn(g))return!1;var h=typeof f;return(h=="number"?ki(g)&&ra(f,g.length):h=="string"&&f in g)?Yr(g[f],c):!1}a(Oi,"isIterateeCall");function Fv(c,f){if(He(c))return!1;var g=typeof c;return g=="number"||g=="symbol"||g=="boolean"||c==null||sr(c)?!0:ud.test(c)||!ir.test(c)||f!=null&&c in jt(f)}a(Fv,"isKey");function b2(c){var f=typeof c;return f=="string"||f=="number"||f=="symbol"||f=="boolean"?c!=="__proto__":c===null}a(b2,"isKeyable");function _v(c){var f=Wd(c),g=x[f];if(typeof g!="function"||!(f in lt.prototype))return!1;if(c===g)return!0;var h=Nv(g);return!!h&&c===h[0]}a(_v,"isLaziable");function A2(c){return!!XP&&XP in c}a(A2,"isMasked");var S2=Td?oa:Yv;function Hf(c){var f=c&&c.constructor,g=typeof f=="function"&&f.prototype||tl;return c===g}a(Hf,"isPrototype");function XO(c){return c===c&&!fn(c)}a(XO,"isStrictComparable");function JO(c,f){return function(g){return g==null?!1:g[c]===f&&(f!==e||c in jt(g))}}a(JO,"matchesStrictComparable");function x2(c){var f=Qd(c,function(h){return g.size===l&&g.clear(),h}),g=f.cache;return f}a(x2,"memoizeCapped");function P2(c,f){var g=c[1],h=f[1],A=g|h,P=A<(E|C|re),N=h==re&&g==R||h==re&&g==Ce&&c[7].length<=f[8]||h==(re|Ce)&&f[7].length<=f[8]&&g==R;if(!(P||N))return c;h&E&&(c[2]=f[2],A|=g&E?0:L);var D=f[3];if(D){var j=c[3];c[3]=j?LO(j,D,f[4]):D,c[4]=j?ja(c[3],u):f[4]}return D=f[5],D&&(j=c[5],c[5]=j?RO(j,D,f[6]):D,c[6]=j?ja(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(P2,"mergeData");function O2(c){var f=[];if(c!=null)for(var g in jt(c))f.push(g);return f}a(O2,"nativeKeysIn");function I2(c){return bd.call(c)}a(I2,"objectToString");function QO(c,f,g){return f=Un(f===e?c.length-1:f,0),function(){for(var h=arguments,A=-1,P=Un(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),rr(c,this,D)}}a(QO,"overRest");function YO(c,f){return f.length<2?c:Js(c,Cr(f,0,-1))}a(YO,"parent");function C2(c,f){for(var g=c.length,h=di(f.length,g),A=Vi(c);h--;){var P=f[h];c[h]=ra(P,g)?A[P]:e}return c}a(C2,"reorder");function Dv(c,f){if(!(f==="constructor"&&typeof c[f]=="function")&&f!="__proto__")return c[f]}a(Dv,"safeGet");var zO=ZO(EO),Kf=BV||function(c,f){return Jn.setTimeout(c,f)},wv=ZO(Yk);function qO(c,f,g){var h=f+"";return wv(c,T2(h,N2(m2(h),g)))}a(qO,"setWrapToString");function ZO(c){var f=0,g=0;return function(){var h=KV(),A=Ke-(h-g);if(g=h,A>0){if(++f>=mt)return arguments[0]}else f=0;return c.apply(e,arguments)}}a(ZO,"shortOut");function Hd(c,f){var g=-1,h=c.length,A=h-1;for(f=f===e?h:f;++g<f;){var P=yv(g,A),N=c[P];c[P]=c[g],c[g]=N}return c.length=f,c}a(Hd,"shuffleSelf");var eI=x2(function(c){var f=[];return c.charCodeAt(0)===46&&f.push(""),c.replace(jy,function(g,h,A,P){f.push(A?P.replace(PM,"$1"):h||g)}),f});function So(c){if(typeof c=="string"||sr(c))return c;var f=c+"";return f=="0"&&1/c==-Zt?"-0":f}a(So,"toKey");function Ys(c){if(c!=null){try{return Ed.call(c)}catch{}try{return c+""}catch{}}return""}a(Ys,"toSource");function N2(c,f){return xr(Le,function(g){var h="_."+g[0];f&g[1]&&!md(c,h)&&c.push(h)}),c.sort()}a(N2,"updateWrapDetails");function tI(c){if(c instanceof lt)return c.clone();var f=new Or(c.__wrapped__,c.__chain__);return f.__actions__=Vi(c.__actions__),f.__index__=c.__index__,f.__values__=c.__values__,f}a(tI,"wrapperClone");function L2(c,f,g){(g?Oi(c,f,g):f===e)?f=1:f=Un(Je(f),0);var h=c==null?0:c.length;if(!h||f<1)return[];for(var A=0,P=0,N=H(Id(h/f));A<h;)N[P++]=Cr(c,A,A+=f);return N}a(L2,"chunk");function R2(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(R2,"compact");function F2(){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 ka(He(g)?Vi(g):[g],ri(f,1))}a(F2,"concat");var _2=et(function(c,f){return xn(c)?$f(c,ri(f,1,xn,!0)):[]}),D2=et(function(c,f){var g=Nr(f);return xn(g)&&(g=e),xn(c)?$f(c,ri(f,1,xn,!0),_e(g,2)):[]}),w2=et(function(c,f){var g=Nr(f);return xn(g)&&(g=e),xn(c)?$f(c,ri(f,1,xn,!0),e,g):[]});function M2(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(M2,"drop");function V2(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(V2,"dropRight");function k2(c,f){return c&&c.length?Vd(c,_e(f,3),!0,!0):[]}a(k2,"dropRightWhile");function j2(c,f){return c&&c.length?Vd(c,_e(f,3),!0):[]}a(j2,"dropWhile");function $2(c,f,g,h){var A=c==null?0:c.length;return A?(g&&typeof g!="number"&&Oi(c,f,g)&&(g=0,h=A),Rk(c,f,g,h)):[]}a($2,"fill");function nI(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=Un(h+A,0)),hd(c,_e(f,3),A)}a(nI,"findIndex");function iI(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?Un(h+A,0):di(A,h-1)),hd(c,_e(f,3),A,!0)}a(iI,"findLastIndex");function rI(c){var f=c==null?0:c.length;return f?ri(c,1):[]}a(rI,"flatten");function U2(c){var f=c==null?0:c.length;return f?ri(c,Zt):[]}a(U2,"flattenDeep");function B2(c,f){var g=c==null?0:c.length;return g?(f=f===e?1:Je(f),ri(c,f)):[]}a(B2,"flattenDepth");function W2(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(W2,"fromPairs");function oI(c){return c&&c.length?c[0]:e}a(oI,"head");function G2(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=Un(h+A,0)),qc(c,f,A)}a(G2,"indexOf");function H2(c){var f=c==null?0:c.length;return f?Cr(c,0,-1):[]}a(H2,"initial");var K2=et(function(c){var f=rn(c,Av);return f.length&&f[0]===c[0]?pv(f):[]}),X2=et(function(c){var f=Nr(c),g=rn(c,Av);return f===Nr(g)?f=e:g.pop(),g.length&&g[0]===c[0]?pv(g,_e(f,2)):[]}),J2=et(function(c){var f=Nr(c),g=rn(c,Av);return f=typeof f=="function"?f:e,f&&g.pop(),g.length&&g[0]===c[0]?pv(g,e,f):[]});function Q2(c,f){return c==null?"":GV.call(c,f)}a(Q2,"join");function Nr(c){var f=c==null?0:c.length;return f?c[f-1]:e}a(Nr,"last");function Y2(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?Un(h+A,0):di(A,h-1)),f===f?CV(c,f,A):hd(c,jP,A,!0)}a(Y2,"lastIndexOf");function z2(c,f){return c&&c.length?hO(c,Je(f)):e}a(z2,"nth");var q2=et(aI);function aI(c,f){return c&&c.length&&f&&f.length?hv(c,f):c}a(aI,"pullAll");function Z2(c,f,g){return c&&c.length&&f&&f.length?hv(c,f,_e(g,2)):c}a(Z2,"pullAllBy");function ej(c,f,g){return c&&c.length&&f&&f.length?hv(c,f,e,g):c}a(ej,"pullAllWith");var tj=ia(function(c,f){var g=c==null?0:c.length,h=cv(c,f);return TO(c,rn(f,function(A){return ra(A,g)?+A:A}).sort(NO)),h});function nj(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 TO(c,A),g}a(nj,"remove");function Mv(c){return c==null?c:JV.call(c)}a(Mv,"reverse");function ij(c,f,g){var h=c==null?0:c.length;return h?(g&&typeof g!="number"&&Oi(c,f,g)?(f=0,g=h):(f=f==null?0:Je(f),g=g===e?h:Je(g)),Cr(c,f,g)):[]}a(ij,"slice");function rj(c,f){return Md(c,f)}a(rj,"sortedIndex");function oj(c,f,g){return Tv(c,f,_e(g,2))}a(oj,"sortedIndexBy");function aj(c,f){var g=c==null?0:c.length;if(g){var h=Md(c,f);if(h<g&&Yr(c[h],f))return h}return-1}a(aj,"sortedIndexOf");function sj(c,f){return Md(c,f,!0)}a(sj,"sortedLastIndex");function cj(c,f,g){return Tv(c,f,_e(g,2),!0)}a(cj,"sortedLastIndexBy");function lj(c,f){var g=c==null?0:c.length;if(g){var h=Md(c,f,!0)-1;if(Yr(c[h],f))return h}return-1}a(lj,"sortedLastIndexOf");function fj(c){return c&&c.length?bO(c):[]}a(fj,"sortedUniq");function uj(c,f){return c&&c.length?bO(c,_e(f,2)):[]}a(uj,"sortedUniqBy");function pj(c){var f=c==null?0:c.length;return f?Cr(c,1,f):[]}a(pj,"tail");function dj(c,f,g){return c&&c.length?(f=g||f===e?1:Je(f),Cr(c,0,f<0?0:f)):[]}a(dj,"take");function gj(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(gj,"takeRight");function mj(c,f){return c&&c.length?Vd(c,_e(f,3),!1,!0):[]}a(mj,"takeRightWhile");function hj(c,f){return c&&c.length?Vd(c,_e(f,3)):[]}a(hj,"takeWhile");var yj=et(function(c){return Wa(ri(c,1,xn,!0))}),vj=et(function(c){var f=Nr(c);return xn(f)&&(f=e),Wa(ri(c,1,xn,!0),_e(f,2))}),Tj=et(function(c){var f=Nr(c);return f=typeof f=="function"?f:e,Wa(ri(c,1,xn,!0),e,f)});function Ej(c){return c&&c.length?Wa(c):[]}a(Ej,"uniq");function bj(c,f){return c&&c.length?Wa(c,_e(f,2)):[]}a(bj,"uniqBy");function Aj(c,f){return f=typeof f=="function"?f:e,c&&c.length?Wa(c,e,f):[]}a(Aj,"uniqWith");function Vv(c){if(!(c&&c.length))return[];var f=0;return c=Va(c,function(g){if(xn(g))return f=Un(g.length,f),!0}),ev(f,function(g){return rn(c,zy(g))})}a(Vv,"unzip");function sI(c,f){if(!(c&&c.length))return[];var g=Vv(c);return f==null?g:rn(g,function(h){return rr(f,e,h)})}a(sI,"unzipWith");var Sj=et(function(c,f){return xn(c)?$f(c,f):[]}),xj=et(function(c){return bv(Va(c,xn))}),Pj=et(function(c){var f=Nr(c);return xn(f)&&(f=e),bv(Va(c,xn),_e(f,2))}),Oj=et(function(c){var f=Nr(c);return f=typeof f=="function"?f:e,bv(Va(c,xn),e,f)}),Ij=et(Vv);function Cj(c,f){return PO(c||[],f||[],jf)}a(Cj,"zipObject");function Nj(c,f){return PO(c||[],f||[],Wf)}a(Nj,"zipObjectDeep");var Lj=et(function(c){var f=c.length,g=f>1?c[f-1]:e;return g=typeof g=="function"?(c.pop(),g):e,sI(c,g)});function cI(c){var f=x(c);return f.__chain__=!0,f}a(cI,"chain");function Rj(c,f){return f(c),c}a(Rj,"tap");function Kd(c,f){return f(c)}a(Kd,"thru");var Fj=ia(function(c){var f=c.length,g=f?c[0]:0,h=this.__wrapped__,A=a(function(P){return cv(P,c)},"interceptor");return f>1||this.__actions__.length||!(h instanceof lt)||!ra(g)?this.thru(A):(h=h.slice(g,+g+(f?1:0)),h.__actions__.push({func:Kd,args:[A],thisArg:e}),new Or(h,this.__chain__).thru(function(P){return f&&!P.length&&P.push(e),P}))});function _j(){return cI(this)}a(_j,"wrapperChain");function Dj(){return new Or(this.value(),this.__chain__)}a(Dj,"wrapperCommit");function wj(){this.__values__===e&&(this.__values__=AI(this.value()));var c=this.__index__>=this.__values__.length,f=c?e:this.__values__[this.__index__++];return{done:c,value:f}}a(wj,"wrapperNext");function Mj(){return this}a(Mj,"wrapperToIterator");function Vj(c){for(var f,g=this;g instanceof Rd;){var h=tI(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(Vj,"wrapperPlant");function kj(){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:Kd,args:[Mv],thisArg:e}),new Or(f,this.__chain__)}return this.thru(Mv)}a(kj,"wrapperReverse");function jj(){return xO(this.__wrapped__,this.__actions__)}a(jj,"wrapperValue");var $j=kd(function(c,f,g){Ct.call(c,g)?++c[g]:ta(c,g,1)});function Uj(c,f,g){var h=He(c)?VP:Lk;return g&&Oi(c,f,g)&&(f=e),h(c,_e(f,3))}a(Uj,"every");function Bj(c,f){var g=He(c)?Va:sO;return g(c,_e(f,3))}a(Bj,"filter");var Wj=wO(nI),Gj=wO(iI);function Hj(c,f){return ri(Xd(c,f),1)}a(Hj,"flatMap");function Kj(c,f){return ri(Xd(c,f),Zt)}a(Kj,"flatMapDeep");function Xj(c,f,g){return g=g===e?1:Je(g),ri(Xd(c,f),g)}a(Xj,"flatMapDepth");function lI(c,f){var g=He(c)?xr:Ba;return g(c,_e(f,3))}a(lI,"forEach");function fI(c,f){var g=He(c)?uV:aO;return g(c,_e(f,3))}a(fI,"forEachRight");var Jj=kd(function(c,f,g){Ct.call(c,g)?c[g].push(f):ta(c,g,[f])});function Qj(c,f,g,h){c=ki(c)?c:ll(c),g=g&&!h?Je(g):0;var A=c.length;return g<0&&(g=Un(A+g,0)),qd(c)?g<=A&&c.indexOf(f,g)>-1:!!A&&qc(c,f,g)>-1}a(Qj,"includes");var Yj=et(function(c,f,g){var h=-1,A=typeof f=="function",P=ki(c)?H(c.length):[];return Ba(c,function(N){P[++h]=A?rr(f,N,g):Uf(N,f,g)}),P}),zj=kd(function(c,f,g){ta(c,g,f)});function Xd(c,f){var g=He(c)?rn:dO;return g(c,_e(f,3))}a(Xd,"map");function qj(c,f,g,h){return c==null?[]:(He(f)||(f=f==null?[]:[f]),g=h?e:g,He(g)||(g=g==null?[]:[g]),yO(c,f,g))}a(qj,"orderBy");var Zj=kd(function(c,f,g){c[g?0:1].push(f)},function(){return[[],[]]});function e$(c,f,g){var h=He(c)?Qy:UP,A=arguments.length<3;return h(c,_e(f,4),g,A,Ba)}a(e$,"reduce");function t$(c,f,g){var h=He(c)?pV:UP,A=arguments.length<3;return h(c,_e(f,4),g,A,aO)}a(t$,"reduceRight");function n$(c,f){var g=He(c)?Va:sO;return g(c,Yd(_e(f,3)))}a(n$,"reject");function i$(c){var f=He(c)?nO:Jk;return f(c)}a(i$,"sample");function r$(c,f,g){(g?Oi(c,f,g):f===e)?f=1:f=Je(f);var h=He(c)?Pk:Qk;return h(c,f)}a(r$,"sampleSize");function o$(c){var f=He(c)?Ok:zk;return f(c)}a(o$,"shuffle");function a$(c){if(c==null)return 0;if(ki(c))return qd(c)?el(c):c.length;var f=gi(c);return f==je||f==cn?c.size:gv(c).length}a(a$,"size");function s$(c,f,g){var h=He(c)?Yy:qk;return g&&Oi(c,f,g)&&(f=e),h(c,_e(f,3))}a(s$,"some");var c$=et(function(c,f){if(c==null)return[];var g=f.length;return g>1&&Oi(c,f[0],f[1])?f=[]:g>2&&Oi(f[0],f[1],f[2])&&(f=[f[0]]),yO(c,ri(f,1),[])}),Jd=UV||function(){return Jn.Date.now()};function l$(c,f){if(typeof f!="function")throw new Pr(r);return c=Je(c),function(){if(--c<1)return f.apply(this,arguments)}}a(l$,"after");function uI(c,f,g){return f=g?e:f,f=c&&f==null?c.length:f,na(c,re,e,e,e,e,f)}a(uI,"ary");function pI(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(pI,"before");var kv=et(function(c,f,g){var h=E;if(g.length){var A=ja(g,sl(kv));h|=U}return na(c,h,f,g,A)}),dI=et(function(c,f,g){var h=E|C;if(g.length){var A=ja(g,sl(dI));h|=U}return na(f,h,c,g,A)});function gI(c,f,g){f=g?e:f;var h=na(c,R,e,e,e,e,e,f);return h.placeholder=gI.placeholder,h}a(gI,"curry");function mI(c,f,g){f=g?e:f;var h=na(c,F,e,e,e,e,e,f);return h.placeholder=mI.placeholder,h}a(mI,"curryRight");function hI(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=Lr(f)||0,fn(g)&&(q=!!g.leading,Z="maxWait"in g,P=Z?Un(Lr(g.maxWait)||0,f):P,de="trailing"in g?!!g.trailing:de);function Ie(Pn){var zr=h,sa=A;return h=A=e,z=Pn,N=c.apply(sa,zr),N}a(Ie,"invokeFunc");function De(Pn){return z=Pn,D=Kf(rt,f),q?Ie(Pn):N}a(De,"leadingEdge");function ze(Pn){var zr=Pn-j,sa=Pn-z,wI=f-zr;return Z?di(wI,P-sa):wI}a(ze,"remainingWait");function we(Pn){var zr=Pn-j,sa=Pn-z;return j===e||zr>=f||zr<0||Z&&sa>=P}a(we,"shouldInvoke");function rt(){var Pn=Jd();if(we(Pn))return ut(Pn);D=Kf(rt,ze(Pn))}a(rt,"timerExpired");function ut(Pn){return D=e,de&&h?Ie(Pn):(h=A=e,N)}a(ut,"trailingEdge");function cr(){D!==e&&OO(D),z=0,h=j=A=D=e}a(cr,"cancel");function Ii(){return D===e?N:ut(Jd())}a(Ii,"flush");function lr(){var Pn=Jd(),zr=we(Pn);if(h=arguments,A=this,j=Pn,zr){if(D===e)return De(j);if(Z)return OO(D),D=Kf(rt,f),Ie(j)}return D===e&&(D=Kf(rt,f)),N}return a(lr,"debounced"),lr.cancel=cr,lr.flush=Ii,lr}a(hI,"debounce");var f$=et(function(c,f){return oO(c,1,f)}),u$=et(function(c,f,g){return oO(c,Lr(f)||0,g)});function p$(c){return na(c,st)}a(p$,"flip");function Qd(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(Qd.Cache||ea),g}a(Qd,"memoize"),Qd.Cache=ea;function Yd(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(Yd,"negate");function d$(c){return pI(2,c)}a(d$,"once");var g$=Zk(function(c,f){f=f.length==1&&He(f[0])?rn(f[0],or(_e())):rn(ri(f,1),or(_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 rr(c,this,h)})}),jv=et(function(c,f){var g=ja(f,sl(jv));return na(c,U,e,f,g)}),yI=et(function(c,f){var g=ja(f,sl(yI));return na(c,J,e,f,g)}),m$=ia(function(c,f){return na(c,Ce,e,e,e,f)});function h$(c,f){if(typeof c!="function")throw new Pr(r);return f=f===e?f:Je(f),et(c,f)}a(h$,"rest");function y$(c,f){if(typeof c!="function")throw new Pr(r);return f=f==null?0:Un(Je(f),0),et(function(g){var h=g[f],A=Ha(g,0,f);return h&&ka(A,h),rr(c,this,A)})}a(y$,"spread");function v$(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),hI(c,f,{leading:h,maxWait:f,trailing:A})}a(v$,"throttle");function T$(c){return uI(c,1)}a(T$,"unary");function E$(c,f){return jv(Sv(f),c)}a(E$,"wrap");function b$(){if(!arguments.length)return[];var c=arguments[0];return He(c)?c:[c]}a(b$,"castArray");function A$(c){return Ir(c,m)}a(A$,"clone");function S$(c,f){return f=typeof f=="function"?f:e,Ir(c,m,f)}a(S$,"cloneWith");function x$(c){return Ir(c,p|m)}a(x$,"cloneDeep");function P$(c,f){return f=typeof f=="function"?f:e,Ir(c,p|m,f)}a(P$,"cloneDeepWith");function O$(c,f){return f==null||rO(c,f,Qn(f))}a(O$,"conformsTo");function Yr(c,f){return c===f||c!==c&&f!==f}a(Yr,"eq");var I$=Bd(uv),C$=Bd(function(c,f){return c>=f}),zs=fO(function(){return arguments}())?fO:function(c){return gn(c)&&Ct.call(c,"callee")&&!YP.call(c,"callee")},He=H.isArray,N$=RP?or(RP):Mk;function ki(c){return c!=null&&zd(c.length)&&!oa(c)}a(ki,"isArrayLike");function xn(c){return gn(c)&&ki(c)}a(xn,"isArrayLikeObject");function L$(c){return c===!0||c===!1||gn(c)&&Pi(c)==I}a(L$,"isBoolean");var Ka=WV||Yv,R$=FP?or(FP):Vk;function F$(c){return gn(c)&&c.nodeType===1&&!Xf(c)}a(F$,"isElement");function _$(c){if(c==null)return!0;if(ki(c)&&(He(c)||typeof c=="string"||typeof c.splice=="function"||Ka(c)||cl(c)||zs(c)))return!c.length;var f=gi(c);if(f==je||f==cn)return!c.size;if(Hf(c))return!gv(c).length;for(var g in c)if(Ct.call(c,g))return!1;return!0}a(_$,"isEmpty");function D$(c,f){return Bf(c,f)}a(D$,"isEqual");function w$(c,f,g){g=typeof g=="function"?g:e;var h=g?g(c,f):e;return h===e?Bf(c,f,e,g):!!h}a(w$,"isEqualWith");function $v(c){if(!gn(c))return!1;var f=Pi(c);return f==M||f==Y||typeof c.message=="string"&&typeof c.name=="string"&&!Xf(c)}a($v,"isError");function M$(c){return typeof c=="number"&&qP(c)}a(M$,"isFinite");function oa(c){if(!fn(c))return!1;var f=Pi(c);return f==Re||f==ct||f==Ye||f==ii}a(oa,"isFunction");function vI(c){return typeof c=="number"&&c==Je(c)}a(vI,"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 gn(c){return c!=null&&typeof c=="object"}a(gn,"isObjectLike");var TI=_P?or(_P):jk;function V$(c,f){return c===f||dv(c,f,Lv(f))}a(V$,"isMatch");function k$(c,f,g){return g=typeof g=="function"?g:e,dv(c,f,Lv(f),g)}a(k$,"isMatchWith");function j$(c){return EI(c)&&c!=+c}a(j$,"isNaN");function $$(c){if(S2(c))throw new Ge(i);return uO(c)}a($$,"isNative");function U$(c){return c===null}a(U$,"isNull");function B$(c){return c==null}a(B$,"isNil");function EI(c){return typeof c=="number"||gn(c)&&Pi(c)==Tt}a(EI,"isNumber");function Xf(c){if(!gn(c)||Pi(c)!=tn)return!1;var f=xd(c);if(f===null)return!0;var g=Ct.call(f,"constructor")&&f.constructor;return typeof g=="function"&&g instanceof g&&Ed.call(g)==VV}a(Xf,"isPlainObject");var Uv=DP?or(DP):$k;function W$(c){return vI(c)&&c>=-Fe&&c<=Fe}a(W$,"isSafeInteger");var bI=wP?or(wP):Uk;function qd(c){return typeof c=="string"||!He(c)&&gn(c)&&Pi(c)==pi}a(qd,"isString");function sr(c){return typeof c=="symbol"||gn(c)&&Pi(c)==Vt}a(sr,"isSymbol");var cl=MP?or(MP):Bk;function G$(c){return c===e}a(G$,"isUndefined");function H$(c){return gn(c)&&gi(c)==Mi}a(H$,"isWeakMap");function K$(c){return gn(c)&&Pi(c)==Cf}a(K$,"isWeakSet");var X$=Bd(mv),J$=Bd(function(c,f){return c<=f});function AI(c){if(!c)return[];if(ki(c))return qd(c)?Jr(c):Vi(c);if(Df&&c[Df])return PV(c[Df]());var f=gi(c),g=f==je?nv:f==cn?yd:ll;return g(c)}a(AI,"toArray");function aa(c){if(!c)return c===0?c:0;if(c=Lr(c),c===Zt||c===-Zt){var f=c<0?-1:1;return f*Kn}return c===c?c:0}a(aa,"toFinite");function Je(c){var f=aa(c),g=f%1;return f===f?g?f-g:f:0}a(Je,"toInteger");function SI(c){return c?Xs(Je(c),0,en):0}a(SI,"toLength");function Lr(c){if(typeof c=="number")return c;if(sr(c))return jn;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=BP(c);var g=CM.test(c);return g||LM.test(c)?cV(c.slice(2),g?2:8):IM.test(c)?jn:+c}a(Lr,"toNumber");function xI(c){return Ao(c,ji(c))}a(xI,"toPlainObject");function Q$(c){return c?Xs(Je(c),-Fe,Fe):c===0?c:0}a(Q$,"toSafeInteger");function Pt(c){return c==null?"":ar(c)}a(Pt,"toString");var Y$=ol(function(c,f){if(Hf(f)||ki(f)){Ao(f,Qn(f),c);return}for(var g in f)Ct.call(f,g)&&jf(c,g,f[g])}),PI=ol(function(c,f){Ao(f,ji(f),c)}),Zd=ol(function(c,f,g,h){Ao(f,ji(f),c,h)}),z$=ol(function(c,f,g,h){Ao(f,Qn(f),c,h)}),q$=ia(cv);function Z$(c,f){var g=rl(c);return f==null?g:iO(g,f)}a(Z$,"create");var eU=et(function(c,f){c=jt(c);var g=-1,h=f.length,A=h>2?f[2]:e;for(A&&Oi(f[0],f[1],A)&&(h=1);++g<h;)for(var P=f[g],N=ji(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}),tU=et(function(c){return c.push(e,BO),rr(OI,e,c)});function nU(c,f){return kP(c,_e(f,3),bo)}a(nU,"findKey");function iU(c,f){return kP(c,_e(f,3),fv)}a(iU,"findLastKey");function rU(c,f){return c==null?c:lv(c,_e(f,3),ji)}a(rU,"forIn");function oU(c,f){return c==null?c:cO(c,_e(f,3),ji)}a(oU,"forInRight");function aU(c,f){return c&&bo(c,_e(f,3))}a(aU,"forOwn");function sU(c,f){return c&&fv(c,_e(f,3))}a(sU,"forOwnRight");function cU(c){return c==null?[]:Dd(c,Qn(c))}a(cU,"functions");function lU(c){return c==null?[]:Dd(c,ji(c))}a(lU,"functionsIn");function Bv(c,f,g){var h=c==null?e:Js(c,f);return h===e?g:h}a(Bv,"get");function fU(c,f){return c!=null&&HO(c,f,Fk)}a(fU,"has");function Wv(c,f){return c!=null&&HO(c,f,_k)}a(Wv,"hasIn");var uU=VO(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=bd.call(f)),c[f]=g},Hv($i)),pU=VO(function(c,f,g){f!=null&&typeof f.toString!="function"&&(f=bd.call(f)),Ct.call(c,f)?c[f].push(g):c[f]=[g]},_e),dU=et(Uf);function Qn(c){return ki(c)?tO(c):gv(c)}a(Qn,"keys");function ji(c){return ki(c)?tO(c,!0):Wk(c)}a(ji,"keysIn");function gU(c,f){var g={};return f=_e(f,3),bo(c,function(h,A,P){ta(g,f(h,A,P),h)}),g}a(gU,"mapKeys");function mU(c,f){var g={};return f=_e(f,3),bo(c,function(h,A,P){ta(g,A,f(h,A,P))}),g}a(mU,"mapValues");var hU=ol(function(c,f,g){wd(c,f,g)}),OI=ol(function(c,f,g,h){wd(c,f,g,h)}),yU=ia(function(c,f){var g={};if(c==null)return g;var h=!1;f=rn(f,function(P){return P=Ga(P,c),h||(h=P.length>1),P}),Ao(c,Cv(c),g),h&&(g=Ir(g,p|d|m,f2));for(var A=f.length;A--;)Ev(g,f[A]);return g});function vU(c,f){return II(c,Yd(_e(f)))}a(vU,"omitBy");var TU=ia(function(c,f){return c==null?{}:Hk(c,f)});function II(c,f){if(c==null)return{};var g=rn(Cv(c),function(h){return[h]});return f=_e(f),vO(c,g,function(h,A){return f(h,A[0])})}a(II,"pickBy");function EU(c,f,g){f=Ga(f,c);var h=-1,A=f.length;for(A||(A=1,c=e);++h<A;){var P=c==null?e:c[So(f[h])];P===e&&(h=A,P=g),c=oa(P)?P.call(c):P}return c}a(EU,"result");function bU(c,f,g){return c==null?c:Wf(c,f,g)}a(bU,"set");function AU(c,f,g,h){return h=typeof h=="function"?h:e,c==null?c:Wf(c,f,g,h)}a(AU,"setWith");var CI=$O(Qn),NI=$O(ji);function SU(c,f,g){var h=He(c),A=h||Ka(c)||cl(c);if(f=_e(f,4),g==null){var P=c&&c.constructor;A?g=h?new P:[]:fn(c)?g=oa(P)?rl(xd(c)):{}:g={}}return(A?xr:bo)(c,function(N,D,j){return f(g,N,D,j)}),g}a(SU,"transform");function xU(c,f){return c==null?!0:Ev(c,f)}a(xU,"unset");function PU(c,f,g){return c==null?c:SO(c,f,Sv(g))}a(PU,"update");function OU(c,f,g,h){return h=typeof h=="function"?h:e,c==null?c:SO(c,f,Sv(g),h)}a(OU,"updateWith");function ll(c){return c==null?[]:tv(c,Qn(c))}a(ll,"values");function IU(c){return c==null?[]:tv(c,ji(c))}a(IU,"valuesIn");function CU(c,f,g){return g===e&&(g=f,f=e),g!==e&&(g=Lr(g),g=g===g?g:0),f!==e&&(f=Lr(f),f=f===f?f:0),Xs(Lr(c),f,g)}a(CU,"clamp");function NU(c,f,g){return f=aa(f),g===e?(g=f,f=0):g=aa(g),c=Lr(c),Dk(c,f,g)}a(NU,"inRange");function LU(c,f,g){if(g&&typeof g!="boolean"&&Oi(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=aa(c),f===e?(f=c,c=0):f=aa(f)),c>f){var h=c;c=f,f=h}if(g||c%1||f%1){var A=ZP();return di(c+A*(f-c+sV("1e-"+((A+"").length-1))),f)}return yv(c,f)}a(LU,"random");var RU=al(function(c,f,g){return f=f.toLowerCase(),c+(g?LI(f):f)});function LI(c){return Gv(Pt(c).toLowerCase())}a(LI,"capitalize");function RI(c){return c=Pt(c),c&&c.replace(FM,EV).replace(zM,"")}a(RI,"deburr");function FU(c,f,g){c=Pt(c),f=ar(f);var h=c.length;g=g===e?h:Xs(Je(g),0,h);var A=g;return g-=f.length,g>=0&&c.slice(g,A)==f}a(FU,"endsWith");function _U(c){return c=Pt(c),c&&Oe.test(c)?c.replace(xe,bV):c}a(_U,"escape");function DU(c){return c=Pt(c),c&&vM.test(c)?c.replace(Ff,"\\$&"):c}a(DU,"escapeRegExp");var wU=al(function(c,f,g){return c+(g?"-":"")+f.toLowerCase()}),MU=al(function(c,f,g){return c+(g?" ":"")+f.toLowerCase()}),VU=DO("toLowerCase");function kU(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 Ud(Cd(A),g)+c+Ud(Id(A),g)}a(kU,"pad");function jU(c,f,g){c=Pt(c),f=Je(f);var h=f?el(c):0;return f&&h<f?c+Ud(f-h,g):c}a(jU,"padEnd");function $U(c,f,g){c=Pt(c),f=Je(f);var h=f?el(c):0;return f&&h<f?Ud(f-h,g)+c:c}a($U,"padStart");function UU(c,f,g){return g||f==null?f=0:f&&(f=+f),XV(Pt(c).replace($y,""),f||0)}a(UU,"parseInt");function BU(c,f,g){return(g?Oi(c,f,g):f===e)?f=1:f=Je(f),vv(Pt(c),f)}a(BU,"repeat");function WU(){var c=arguments,f=Pt(c[0]);return c.length<3?f:f.replace(c[1],c[2])}a(WU,"replace");var GU=al(function(c,f,g){return c+(g?"_":"")+f.toLowerCase()});function HU(c,f,g){return g&&typeof g!="number"&&Oi(c,f,g)&&(f=g=e),g=g===e?en:g>>>0,g?(c=Pt(c),c&&(typeof f=="string"||f!=null&&!Uv(f))&&(f=ar(f),!f&&Zc(c))?Ha(Jr(c),0,g):c.split(f,g)):[]}a(HU,"split");var KU=al(function(c,f,g){return c+(g?" ":"")+Gv(f)});function XU(c,f,g){return c=Pt(c),g=g==null?0:Xs(Je(g),0,c.length),f=ar(f),c.slice(g,g+f.length)==f}a(XU,"startsWith");function JU(c,f,g){var h=x.templateSettings;g&&Oi(c,f,g)&&(f=e),c=Pt(c),f=Zd({},f,h,UO);var A=Zd({},f.imports,h.imports,UO),P=Qn(A),N=tv(A,P),D,j,z=0,q=f.interpolate||pd,Z="__p += '",de=iv((f.escape||pd).source+"|"+q.source+"|"+(q===nn?OM:pd).source+"|"+(f.evaluate||pd).source+"|$","g"),Ie="//# sourceURL="+(Ct.call(f,"sourceURL")?(f.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nV+"]")+`
|
|
272
272
|
`;c.replace(de,function(we,rt,ut,cr,Ii,lr){return ut||(ut=cr),Z+=c.slice(z,lr).replace(_M,AV),rt&&(D=!0,Z+=`' +
|
|
273
273
|
__e(`+rt+`) +
|
|
274
274
|
'`),Ii&&(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(xM.test(De))throw new Ge(o);Z=(j?Z.replace(ln,""):Z).replace(Sn,"$1").replace(
|
|
282
|
+
`;else if(xM.test(De))throw new Ge(o);Z=(j?Z.replace(ln,""):Z).replace(Sn,"$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=_I(function(){return Et(P,Ie+"return "+Z).apply(e,N)});if(ze.source=Z,$v(ze))throw ze;return ze}a(JU,"template");function QU(c){return Pt(c).toLowerCase()}a(QU,"toLower");function YU(c){return Pt(c).toUpperCase()}a(YU,"toUpper");function zU(c,f,g){if(c=Pt(c),c&&(g||f===e))return BP(c);if(!c||!(f=ar(f)))return c;var h=Jr(c),A=Jr(f),P=WP(h,A),N=GP(h,A)+1;return Ha(h,P,N).join("")}a(zU,"trim");function qU(c,f,g){if(c=Pt(c),c&&(g||f===e))return c.slice(0,KP(c)+1);if(!c||!(f=ar(f)))return c;var h=Jr(c),A=GP(h,Jr(f))+1;return Ha(h,0,A).join("")}a(qU,"trimEnd");function ZU(c,f,g){if(c=Pt(c),c&&(g||f===e))return c.replace($y,"");if(!c||!(f=ar(f)))return c;var h=Jr(c),A=WP(h,Jr(f));return Ha(h,A).join("")}a(ZU,"trimStart");function e4(c,f){var g=k,h=It;if(fn(f)){var A="separator"in f?f.separator:A;g="length"in f?Je(f.length):g,h="omission"in f?ar(f.omission):h}c=Pt(c);var P=c.length;if(qc(c)){var N=Jr(c);P=N.length}if(g>=P)return c;var D=g-Zc(h);if(D<1)return h;var j=N?Ha(N,0,D).join(""):c.slice(0,D);if(A===e)return j+h;if(N&&(D+=j.length-D),Uv(A)){if(c.slice(D).search(A)){var z,q=j;for(A.global||(A=iv(A.source,Pt(fP.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(ar(A),D)!=D){var de=j.lastIndexOf(A);de>-1&&(j=j.slice(0,de))}return j+h}a(e4,"truncate");function t4(c){return c=Pt(c),c&&be.test(c)?c.replace(ue,NV):c}a(t4,"unescape");var n4=ol(function(c,f,g){return c+(g?" ":"")+f.toUpperCase()}),Gv=DO("toUpperCase");function FI(c,f,g){return c=Pt(c),f=g?e:f,f===e?xV(c)?FV(c):mV(c):c.match(f)||[]}a(FI,"words");var _I=Ze(function(c,f){try{return rr(c,e,f)}catch(g){return $v(g)?g:new Ge(g)}}),i4=ia(function(c,f){return xr(f,function(g){g=So(g),ta(c,g,kv(c[g],c))}),c});function r4(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(rr(P[0],this,h))return rr(P[1],this,h)}})}a(r4,"cond");function o4(c){return Nk(Ir(c,p))}a(o4,"conforms");function Hv(c){return function(){return c}}a(Hv,"constant");function a4(c,f){return c==null||c!==c?f:c}a(a4,"defaultTo");var s4=MO(),c4=MO(!0);function $i(c){return c}a($i,"identity");function Kv(c){return pO(typeof c=="function"?c:Ir(c,p))}a(Kv,"iteratee");function l4(c){return gO(Ir(c,p))}a(l4,"matches");function f4(c,f){return mO(c,Ir(f,p))}a(f4,"matchesProperty");var u4=Ze(function(c,f){return function(g){return Uf(g,c,f)}}),p4=Ze(function(c,f){return function(g){return Uf(c,g,f)}});function Xv(c,f,g){var h=Qn(f),A=Dd(f,h);g==null&&!(fn(f)&&(A.length||!h.length))&&(g=f,f=c,c=this,A=Dd(f,Qn(f)));var P=!(fn(g)&&"chain"in g)||!!g.chain,N=oa(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__=Vi(this.__actions__);return Z.push({func:j,args:arguments,thisArg:c}),q.__chain__=z,q}return j.apply(c,ka([this.value()],arguments))})}),c}a(Xv,"mixin");function d4(){return Jn._===this&&(Jn._=kV),this}a(d4,"noConflict");function Jv(){}a(Jv,"noop");function g4(c){return c=Je(c),Ze(function(f){return hO(f,c)})}a(g4,"nthArg");var m4=Pv(rn),h4=Pv(VP),y4=Pv(Yy);function DI(c){return Fv(c)?zy(So(c)):Kk(c)}a(DI,"property");function T4(c){return function(f){return c==null?e:Js(c,f)}}a(T4,"propertyOf");var E4=kO(),b4=kO(!0);function Qv(){return[]}a(Qv,"stubArray");function Yv(){return!1}a(Yv,"stubFalse");function A4(){return{}}a(A4,"stubObject");function S4(){return""}a(S4,"stubString");function x4(){return!0}a(x4,"stubTrue");function P4(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=ev(h,f);++g<c;)f(g);return A}a(P4,"times");function O4(c){return He(c)?rn(c,So):sr(c)?[c]:Vi(eI(Pt(c)))}a(O4,"toPath");function I4(c){var f=++MV;return Pt(c)+f}a(I4,"uniqueId");var C4=$d(function(c,f){return c+f},0),N4=Ov("ceil"),L4=$d(function(c,f){return c/f},1),R4=Ov("floor");function F4(c){return c&&c.length?_d(c,$i,uv):e}a(F4,"max");function _4(c,f){return c&&c.length?_d(c,_e(f,2),uv):e}a(_4,"maxBy");function D4(c){return $P(c,$i)}a(D4,"mean");function w4(c,f){return $P(c,_e(f,2))}a(w4,"meanBy");function M4(c){return c&&c.length?_d(c,$i,mv):e}a(M4,"min");function V4(c,f){return c&&c.length?_d(c,_e(f,2),mv):e}a(V4,"minBy");var k4=$d(function(c,f){return c*f},1),j4=Ov("round"),$4=$d(function(c,f){return c-f},0);function U4(c){return c&&c.length?Zy(c,$i):0}a(U4,"sum");function B4(c,f){return c&&c.length?Zy(c,_e(f,2)):0}return a(B4,"sumBy"),x.after=l$,x.ary=uI,x.assign=Y$,x.assignIn=PI,x.assignInWith=Zd,x.assignWith=z$,x.at=q$,x.before=pI,x.bind=kv,x.bindAll=i4,x.bindKey=dI,x.castArray=b$,x.chain=cI,x.chunk=L2,x.compact=R2,x.concat=F2,x.cond=r4,x.conforms=o4,x.constant=Hv,x.countBy=$j,x.create=Z$,x.curry=gI,x.curryRight=mI,x.debounce=hI,x.defaults=eU,x.defaultsDeep=tU,x.defer=f$,x.delay=u$,x.difference=_2,x.differenceBy=D2,x.differenceWith=w2,x.drop=M2,x.dropRight=V2,x.dropRightWhile=k2,x.dropWhile=j2,x.fill=$2,x.filter=Bj,x.flatMap=Hj,x.flatMapDeep=Kj,x.flatMapDepth=Xj,x.flatten=rI,x.flattenDeep=U2,x.flattenDepth=B2,x.flip=p$,x.flow=s4,x.flowRight=c4,x.fromPairs=W2,x.functions=cU,x.functionsIn=lU,x.groupBy=Jj,x.initial=H2,x.intersection=K2,x.intersectionBy=X2,x.intersectionWith=J2,x.invert=uU,x.invertBy=pU,x.invokeMap=Yj,x.iteratee=Kv,x.keyBy=zj,x.keys=Qn,x.keysIn=ji,x.map=Xd,x.mapKeys=gU,x.mapValues=mU,x.matches=l4,x.matchesProperty=f4,x.memoize=Qd,x.merge=hU,x.mergeWith=OI,x.method=u4,x.methodOf=p4,x.mixin=Xv,x.negate=Yd,x.nthArg=g4,x.omit=yU,x.omitBy=vU,x.once=d$,x.orderBy=qj,x.over=m4,x.overArgs=g$,x.overEvery=h4,x.overSome=y4,x.partial=jv,x.partialRight=yI,x.partition=Zj,x.pick=TU,x.pickBy=II,x.property=DI,x.propertyOf=T4,x.pull=q2,x.pullAll=aI,x.pullAllBy=Z2,x.pullAllWith=ej,x.pullAt=tj,x.range=E4,x.rangeRight=b4,x.rearg=m$,x.reject=n$,x.remove=nj,x.rest=h$,x.reverse=Mv,x.sampleSize=r$,x.set=bU,x.setWith=AU,x.shuffle=o$,x.slice=ij,x.sortBy=c$,x.sortedUniq=fj,x.sortedUniqBy=uj,x.split=HU,x.spread=y$,x.tail=pj,x.take=dj,x.takeRight=gj,x.takeRightWhile=mj,x.takeWhile=hj,x.tap=Rj,x.throttle=v$,x.thru=Kd,x.toArray=AI,x.toPairs=CI,x.toPairsIn=NI,x.toPath=O4,x.toPlainObject=xI,x.transform=SU,x.unary=T$,x.union=yj,x.unionBy=vj,x.unionWith=Tj,x.uniq=Ej,x.uniqBy=bj,x.uniqWith=Aj,x.unset=xU,x.unzip=Vv,x.unzipWith=sI,x.update=PU,x.updateWith=OU,x.values=cl,x.valuesIn=IU,x.without=Sj,x.words=FI,x.wrap=E$,x.xor=xj,x.xorBy=Pj,x.xorWith=Oj,x.zip=Ij,x.zipObject=Cj,x.zipObjectDeep=Nj,x.zipWith=Lj,x.entries=CI,x.entriesIn=NI,x.extend=PI,x.extendWith=Zd,Xv(x,x),x.add=C4,x.attempt=_I,x.camelCase=RU,x.capitalize=LI,x.ceil=N4,x.clamp=CU,x.clone=A$,x.cloneDeep=x$,x.cloneDeepWith=P$,x.cloneWith=S$,x.conformsTo=O$,x.deburr=RI,x.defaultTo=a4,x.divide=L4,x.endsWith=FU,x.eq=Yr,x.escape=_U,x.escapeRegExp=DU,x.every=Uj,x.find=Wj,x.findIndex=nI,x.findKey=nU,x.findLast=Gj,x.findLastIndex=iI,x.findLastKey=iU,x.floor=R4,x.forEach=lI,x.forEachRight=fI,x.forIn=rU,x.forInRight=oU,x.forOwn=aU,x.forOwnRight=sU,x.get=Bv,x.gt=I$,x.gte=C$,x.has=fU,x.hasIn=Wv,x.head=oI,x.identity=$i,x.includes=Qj,x.indexOf=G2,x.inRange=NU,x.invoke=dU,x.isArguments=zs,x.isArray=He,x.isArrayBuffer=N$,x.isArrayLike=ki,x.isArrayLikeObject=xn,x.isBoolean=L$,x.isBuffer=Ka,x.isDate=R$,x.isElement=F$,x.isEmpty=_$,x.isEqual=D$,x.isEqualWith=w$,x.isError=$v,x.isFinite=M$,x.isFunction=oa,x.isInteger=vI,x.isLength=zd,x.isMap=TI,x.isMatch=V$,x.isMatchWith=k$,x.isNaN=j$,x.isNative=$$,x.isNil=B$,x.isNull=U$,x.isNumber=EI,x.isObject=fn,x.isObjectLike=gn,x.isPlainObject=Xf,x.isRegExp=Uv,x.isSafeInteger=W$,x.isSet=bI,x.isString=qd,x.isSymbol=sr,x.isTypedArray=sl,x.isUndefined=G$,x.isWeakMap=H$,x.isWeakSet=K$,x.join=Q2,x.kebabCase=wU,x.last=Nr,x.lastIndexOf=Y2,x.lowerCase=MU,x.lowerFirst=VU,x.lt=X$,x.lte=J$,x.max=F4,x.maxBy=_4,x.mean=D4,x.meanBy=w4,x.min=M4,x.minBy=V4,x.stubArray=Qv,x.stubFalse=Yv,x.stubObject=A4,x.stubString=S4,x.stubTrue=x4,x.multiply=k4,x.nth=z2,x.noConflict=d4,x.noop=Jv,x.now=Jd,x.pad=kU,x.padEnd=jU,x.padStart=$U,x.parseInt=UU,x.random=LU,x.reduce=e$,x.reduceRight=t$,x.repeat=BU,x.replace=WU,x.result=EU,x.round=j4,x.runInContext=V,x.sample=i$,x.size=a$,x.snakeCase=GU,x.some=s$,x.sortedIndex=rj,x.sortedIndexBy=oj,x.sortedIndexOf=aj,x.sortedLastIndex=sj,x.sortedLastIndexBy=cj,x.sortedLastIndexOf=lj,x.startCase=KU,x.startsWith=XU,x.subtract=$4,x.sum=U4,x.sumBy=B4,x.template=JU,x.times=P4,x.toFinite=aa,x.toInteger=Je,x.toLength=SI,x.toLower=QU,x.toNumber=Lr,x.toSafeInteger=Q$,x.toString=Pt,x.toUpper=YU,x.trim=zU,x.trimEnd=qU,x.trimStart=ZU,x.truncate=e4,x.unescape=t4,x.uniqueId=I4,x.upperCase=n4,x.upperFirst=Gv,x.each=lI,x.eachRight=fI,x.first=oI,Xv(x,function(){var c={};return bo(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:Un(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==dn;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($i)},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 Uf(g,c,f)})}),lt.prototype.reject=function(c){return this.filter(Yd(_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)},bo(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,ka([rt],D));return h&&de?ut[0]:ut},"interceptor");q&&g&&typeof z=="function"&&z.length!=1&&(j=q=!1);var de=this.__chain__,Ie=!!this.__actions__.length,De=P&&!de,ze=j&&!Ie;if(!P&&q){N=ze?N:new lt(this);var we=c.apply(N,D);return we.__actions__.push({func:Kd,args:[Z],thisArg:e}),new Or(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=vd[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)})}}),bo(lt.prototype,function(c,f){var g=x[f];if(g){var h=g.name+"";Ct.call(nl,h)||(nl[h]=[]),nl[h].push({name:f,func:g})}}),nl[jd(e,C).name]=[{name:"wrapper",func:e}],lt.prototype.clone=ek,lt.prototype.reverse=tk,lt.prototype.value=nk,x.prototype.at=Fj,x.prototype.chain=_j,x.prototype.commit=Dj,x.prototype.next=wj,x.prototype.plant=Vj,x.prototype.reverse=kj,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=jj,x.prototype.first=x.prototype.head,Df&&(x.prototype[Df]=Mj),x},"runInContext"),$a=_V();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Jn._=$a,define(function(){return $a})):Ws?((Ws.exports=$a)._=$a,Ky._=$a):Jn._=$a}).call(ff)});var d1=Ve((sce,p1)=>{var{findIndex:Y7}=Tp();function z7(e,t){let i=Y7(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(z7,"findNextTextualToken");p1.exports={findNextTextualToken:z7}});var h1=Ve((lce,m1)=>{var g1=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function q7({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(g1);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}a(q7,"isXMLNamespaceKey");function Z7(e){if(typeof e!="string")return;let t=e.match(g1);if(t!==null)return t.groups&&t.groups.prefix||""}a(Z7,"getXMLNamespaceKeyPrefix");m1.exports={isXMLNamespaceKey:q7,getXMLNamespaceKeyPrefix:Z7}});var v1=Ve((uce,y1)=>{var{findNextTextualToken:eJ}=d1(),{isXMLNamespaceKey:tJ,getXMLNamespaceKeyPrefix:nJ}=h1();y1.exports={findNextTextualToken:eJ,isXMLNamespaceKey:tJ,getXMLNamespaceKeyPrefix:nJ}});var RA=Ve((pce,E1)=>{var{reduce:iJ,has:T1,isArray:rJ}=Tp();function oJ(e){return iJ(e,(n,i,r)=>(r==="parent"||(T1(i,"type")?n.push(i):rJ(i)&&i.length>0&&T1(i[0],"type")&&(n=n.concat(i))),n),[])}a(oJ,"getAstChildrenReflective");E1.exports={getAstChildrenReflective:oJ}});var FA=Ve((gce,b1)=>{b1.exports={DEFAULT_NS:"::DEFAULT"}});var N1=Ve((mce,C1)=>{var{BaseXmlCstVisitor:aJ}=LA(),{last:sJ,forEach:P1,reduce:cJ,map:Ep,pick:DA,sortBy:lJ,isEmpty:fJ,isArray:O1,assign:uJ}=Tp(),{findNextTextualToken:pJ,isXMLNamespaceKey:dJ,getXMLNamespaceKeyPrefix:gJ}=v1(),{getAstChildrenReflective:mJ}=RA(),{DEFAULT_NS:hJ}=FA();function yJ(e,t){A1.setState({tokenVector:t});let n=A1.visit(e);return n.rootElement!==jc&&I1(n.rootElement),n}a(yJ,"buildAst");var wA=class wA extends aJ{constructor(){super()}setState({tokenVector:t}){this.tokenVector=t}visit(t,n={}){return super.visit(t,{location:t.location,...n})}document(t,{location:n}){let i={type:"XMLDocument",rootElement:jc,position:n};return t.prolog!==void 0&&(i.prolog=this.visit(t.prolog[0])),t.element!==void 0&&fJ(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),iy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Ep(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),iy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Ep(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Ep(t.chardata,this.visit.bind(this))),{elements:i,textContents:r}}element(t,{location:n}){let i={type:"XMLElement",namespaces:Object.create(null),name:jc,attributes:[],subElements:[],textContents:[],position:n,syntax:{}};if(t.attribute!==void 0&&(i.attributes=Ep(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 EJ(i,t),bJ(i,t),AJ(i,t,this.tokenVector),iy(i),i}reference(t,{location:n}){}attribute(t,{location:n,isPrologParent:i}){let r={type:i?"XMLPrologAttribute":"XMLAttribute",position:n,key:jc,value:jc,syntax:{}};if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let o=t.Name[0];r.key=o.image,r.syntax.key=ry(o)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let o=t.STRING[0];r.value=vJ(o.image),r.syntax.value=ry(o)}return iy(r),r}chardata(t,{location:n}){let i={type:"XMLTextContent",position:n,text:jc},r=[];t.SEA_WS!==void 0&&(r=r.concat(t.SEA_WS)),t.TEXT!==void 0&&(r=r.concat(t.TEXT));let o=lJ(r,["startOffset"]),s=Ep(o,"image").join("");return i.text=s,i}misc(t,{location:n}){}};a(wA,"CstToAstVisitor");var _A=wA,A1=new _A;function iy(e){let t=mJ(e);P1(t,n=>n.parent=e)}a(iy,"setChildrenParent");function I1(e,t=[]){let n=cJ(e.attributes,(r,o)=>{if(o.key!==jc&&dJ({key:o.key,includeEmptyPrefix:!1})===!0){let s=gJ(o.key);if(o.value){let l=o.value;s!==""?r[s]=l:r[hJ]=l}}return r},{}),i=Object.create(null);e.namespaces=uJ(i,t,n),P1(e.subElements,r=>I1(r,e.namespaces))}a(I1,"updateNamespaces");function ry(e){return DA(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}a(ry,"toXMLToken");function S1(e){return DA(e,["startOffset","startLine","startColumn"])}a(S1,"startOfXMLToken");function x1(e){return DA(e,["endOffset","endLine","endColumn"])}a(x1,"endOfXMLToken");function La(e){return O1(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}a(La,"exists");function vJ(e){return e.substring(1,e.length-1)}a(vJ,"stripQuotes");function TJ(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}a(TJ,"nsToParts");var jc=null;function EJ(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=ry(n);let i=TJ(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=ry(t.END_NAME[0]))}a(EJ,"handleElementOpenCloseNameRanges");function bJ(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={...S1(t.OPEN[0]),...x1(n)}),La(t.SLASH_OPEN)&&La(t.END)&&(e.syntax.closeBody={...S1(t.SLASH_OPEN[0]),...x1(t.END[0])})}}a(bJ,"handleElementOpenCloseBodyRanges");function AJ(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=O1(t.attribute)?sJ(t.attribute).location.endOffset:t.Name[0].endOffset,s=pJ(n,o);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}a(AJ,"handleElementAttributeRanges");C1.exports={buildAst:yJ}});var F1=Ve((yce,R1)=>{var{forEach:SJ,isFunction:uf}=Tp(),{getAstChildrenReflective:xJ}=RA();function L1(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=xJ(e);SJ(n,i=>{L1(i,t)})}a(L1,"accept");R1.exports={accept:L1}});var D1=Ve((Tce,_1)=>{var{buildAst:PJ}=N1(),{accept:OJ}=F1(),{DEFAULT_NS:IJ}=FA();_1.exports={buildAst:PJ,accept:OJ,DEFAULT_NS:IJ}});var VA=Ve((jce,X1)=>{var UJ=require("crypto");X1.exports=a(function(){return UJ.randomBytes(16)},"nodeRNG")});var kA=Ve((Uce,Q1)=>{var J1=[];for(Sp=0;Sp<256;++Sp)J1[Sp]=(Sp+256).toString(16).substr(1);var Sp;function BJ(e,t){var n=t||0,i=J1;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(BJ,"bytesToUuid");Q1.exports=BJ});var q1=Ve((Wce,z1)=>{var WJ=VA(),GJ=kA(),Y1,jA,$A=0,UA=0;function HJ(e,t,n){var i=t&&n||0,r=t||[];e=e||{};var o=e.node||Y1,s=e.clockseq!==void 0?e.clockseq:jA;if(o==null||s==null){var l=WJ();o==null&&(o=Y1=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),s==null&&(s=jA=(l[6]<<8|l[7])&16383)}var u=e.msecs!==void 0?e.msecs:new Date().getTime(),p=e.nsecs!==void 0?e.nsecs:UA+1,d=u-$A+(p-UA)/1e4;if(d<0&&e.clockseq===void 0&&(s=s+1&16383),(d<0||u>$A)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$A=u,UA=p,jA=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||GJ(r)}a(HJ,"v1");z1.exports=HJ});var ew=Ve((Hce,Z1)=>{var KJ=VA(),XJ=kA();function JJ(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||KJ)();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||XJ(r)}a(JJ,"v4");Z1.exports=JJ});var iw=Ve((Xce,nw)=>{var QJ=q1(),tw=ew(),BA=tw;BA.v1=QJ;BA.v4=tw;nw.exports=BA});var pr={};qs(pr,{exportConfig:()=>X6,generateCustomExtension:()=>oP,generateSchema:()=>K6,getApiVersion:()=>z6,getChanges:()=>yM,getGenericSchema:()=>My,getPathToGenericSchema:()=>Mw,getProject:()=>nz,importConfig:()=>J6,importProject:()=>Q6,importProjectSchema:()=>Y6,isDirectory:()=>Z6,log:()=>oe,readDirectory:()=>lP});module.exports=tg(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 Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(Rr,"_classCallCheck");function iT(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(iT,"toPrimitive");function Jf(e){var t=iT(e,"string");return oi(t)=="symbol"?t:String(t)}a(Jf,"toPropertyKey");function aL(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,Jf(i.key),i)}}a(aL,"_defineProperties");function Fr(e,t,n){return t&&aL(e.prototype,t),n&&aL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}a(Fr,"_createClass");function qr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a(qr,"_assertThisInitialized");function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():a(function(i,r){return i.__proto__=r,i},"_setPrototypeOf"),Qf(e,t)}a(Qf,"_setPrototypeOf");function fl(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&&Qf(e,t)}a(fl,"_inherits");function ec(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 qr(e)}a(ec,"_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 xo(e,t,n){return t=Jf(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a(xo,"_defineProperty");function rT(e){if(Array.isArray(e))return e}a(rT,"_arrayWithHoles");function oT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}a(oT,"_iterableToArray");function ng(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(ng,"_arrayLikeToArray");function aT(e,t){if(e){if(typeof e=="string")return ng(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 ng(e,t)}}a(aT,"_unsupportedIterableToArray");function sT(){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(sT,"_nonIterableRest");function cT(e){return rT(e)||oT(e)||aT(e)||sT()}a(cT,"_toArray");function sL(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(sL,"ownKeys$6");function cL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(cL,"_objectSpread$6");var OW={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")},IW=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Rr(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||OW,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,cL(cL({},{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 IW,Xa=function(){function e(){Rr(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 Yf(){var e,t,n=new Promise(function(i,r){e=i,t=r});return n.resolve=e,n.reject=t,n}a(Yf,"defer");function lL(e){return e==null?"":""+e}a(lL,"makeString");function CW(e,t,n){e.forEach(function(i){t[i]&&(n[i]=t[i])})}a(CW,"copy");function fT(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(fT,"getLastOfPath");function fL(e,t,n){var i=fT(e,t,Object),r=i.obj,o=i.k;r[o]=n}a(fL,"setPath");function NW(e,t,n,i){var r=fT(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(NW,"pushPath");function og(e,t){var n=fT(e,t),i=n.obj,r=n.k;if(i)return i[r]}a(og,"getPath");function LW(e,t,n){var i=og(e,n);return i!==void 0?i:og(t,n)}a(LW,"getPathWithDefaults");function PL(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]):PL(e[i],t[i],n):e[i]=t[i]);return e}a(PL,"deepExtend");function ul(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}a(ul,"regexEscape");var RW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function FW(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return RW[t]}):e}a(FW,"escape");var cg=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,_W=[" ",",","?","!",";"];function DW(e,t,n){t=t||"",n=n||"";var i=_W.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(DW,"looksLikeObjectPath");function ag(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?ag(u,p,n):void 0}r=r[i[o]]}return r}}a(ag,"deepFind");function uL(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(uL,"ownKeys$5");function ig(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(ig,"_objectSpread$5");function wW(e){var t=MW();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 ec(this,r)},"_createSuperInternal")}a(wW,"_createSuper$3");function MW(){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(MW,"_isNativeReflectConstruct$3");var VW=function(e){fl(n,e);var t=wW(n);function n(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Rr(this,n),r=t.call(this),cg&&Xa.call(qr(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=og(this.data,d);return m||!p||typeof s!="string"?m:ag(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),fL(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=og(this.data,d)||{};l?PL(m,s,u):m=ig(ig({},m),s),fL(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"?ig(ig({},{}),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}(Xa),OL={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 pL(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(pL,"ownKeys$4");function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(yi,"_objectSpread$4");function kW(e){var t=jW();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 ec(this,r)},"_createSuperInternal")}a(kW,"_createSuper$2");function jW(){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(jW,"_isNativeReflectConstruct$2");var dL={},gL=function(e){fl(n,e);var t=kW(n);function n(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Rr(this,n),r=t.call(this),cg&&Xa.call(qr(r)),CW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,qr(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&&!DW(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 L=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(b).concat(L).concat(m),usedKey:m,exactUsedKey:m,usedLng:E,usedNS:b}:"".concat(b).concat(L).concat(m)}return u?{res:m,usedKey:m,exactUsedKey:m,usedLng:E,usedNS:b}:m}var R=this.resolve(r,o),F=R&&R.res,U=R&&R.usedKey||m,J=R&&R.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,It=typeof F!="string"&&typeof F!="boolean"&&typeof F!="number";if(k&&F&&It&&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 mt=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?(R.res=mt,R):mt}if(p){var Ke=re==="[object Array]",Xt=Ke?[]:{},wi=Ke?J:U;for(var dn in F)if(Object.prototype.hasOwnProperty.call(F,dn)){var Zt="".concat(wi).concat(p).concat(dn);Xt[dn]=this.translate(Zt,yi(yi({},o),{joinArrays:!1,ns:T})),Xt[dn]===Zt&&(Xt[dn]=F[dn])}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,Kn=!1,jn=o.count!==void 0&&typeof o.count!="string",en=n.hasDefaultValue(o),Ln=jn?this.pluralResolver.getSuffix(E,o.count,o):"",ni=o["defaultValue".concat(Ln)]||o.defaultValue;!this.isValidLookup(F)&&en&&(Fe=!0,F=ni),this.isValidLookup(F)||(Kn=!0,F=m);var Le=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Rn=Le&&Kn?void 0:F,Xn=en&&ni!==F&&this.options.updateMissing;if(Kn||Fe||Xn){if(this.logger.log(Xn?"updateKey":"missingKey",E,b,m,Xn?ni:F),p){var Ye=this.resolve(m,yi(yi({},o),{},{keySeparator:!1}));Ye&&Ye.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 I=[],S=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&S&&S[0])for(var Y=0;Y<S.length;Y++)I.push(S[Y]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(o.lng||this.language):I.push(o.lng||this.language);var M=a(function(ct,je,Tt){var sn=en&&Tt!==F?Tt:Rn;l.options.missingKeyHandler?l.options.missingKeyHandler(ct,b,je,sn,Xn,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(ct,b,je,sn,Xn,o),l.emit("missingKey",ct,b,je,F)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&jn?I.forEach(function(Re){l.pluralResolver.getSuffixes(Re,o).forEach(function(ct){M([Re],m+ct,o["defaultValue".concat(ct)]||ni)})}):M(I,m,ni))}F=this.extendTranslation(F,r,o,R,s),Kn&&F===m&&this.options.appendNamespaceToMissingKey&&(F="".concat(b,":").concat(m)),(Kn||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?(R.res=F,R):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 L=s.postProcess||this.options.postProcess,R=typeof L=="string"?[L]:L;return r!=null&&R&&R.length&&s.applyPostProcessor!==!1&&(r=OL.handle(R,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 L=s.count!==void 0&&typeof s.count!="string",R=L&&!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,!dL["".concat(U[0],"-").concat(J)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(m)&&(dL["".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;L&&(st=o.pluralResolver.getSuffix(re,s.count,s));var k="".concat(o.options.pluralSeparator,"zero");if(L&&(Ce.push(E+st),R&&Ce.push(E+k)),F){var It="".concat(E).concat(o.options.contextSeparator).concat(s.context);Ce.push(It),L&&(Ce.push(It+st),R&&Ce.push(It+k))}}for(var mt;mt=Ce.pop();)o.isValidLookup(l)||(p=mt,l=o.getResource(re,J,mt,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}(Xa);function lT(e){return e.charAt(0).toUpperCase()+e.slice(1)}a(lT,"capitalize");var mL=function(){function e(t){Rr(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]=lT(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]=lT(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=lT(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}(),$W=[{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}],UW={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},"_")},BW=["v1","v2","v3"],hL={zero:0,one:1,two:2,few:3,many:4,other:5};function WW(){var e={};return $W.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:UW[t.fc]}})}),e}a(WW,"createRules");var GW=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Rr(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=WW()}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 hL[s]-hL[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!BW.includes(this.options.compatibilityJSON)},"shouldUseIntlApi")}]),e}();function yL(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(yL,"ownKeys$3");function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(Zr,"_objectSpread$3");function vL(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=LW(e,t,n);return!o&&r&&typeof n=="string"&&(o=ag(e,n,i),o===void 0&&(o=ag(t,n,i))),o}a(vL,"deepFindWithDefaults");var HW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rr(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:FW,this.escapeValue=i.escapeValue!==void 0?i.escapeValue:!0,this.useRawValueToEscape=i.useRawValueToEscape!==void 0?i.useRawValueToEscape:!1,this.prefix=i.prefix?ul(i.prefix):i.prefixEscaped||"{{",this.suffix=i.suffix?ul(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?ul(i.nestingPrefix):i.nestingPrefixEscaped||ul("$t("),this.nestingSuffix=i.nestingSuffix?ul(i.nestingSuffix):i.nestingSuffixEscaped||ul(")"),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(L){return L.replace(/\$/g,"$$$$")}a(m,"regexSafe");var T=a(function(R){if(R.indexOf(s.formatSeparator)<0){var F=vL(i,d,R,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(F,void 0,r,Zr(Zr(Zr({},o),i),{},{interpolationkey:R})):F}var U=R.split(s.formatSeparator),J=U.shift().trim(),re=U.join(s.formatSeparator).trim();return s.format(vL(i,d,J,s.options.keySeparator,s.options.ignoreJSONStructure),re,r,Zr(Zr(Zr({},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(R){return m(R)},"safeValue")},{regex:this.regexp,safeValue:a(function(R){return s.escapeValue?m(s.escape(R)):m(R)},"safeValue")}];return C.forEach(function(L){for(p=0;l=L.regex.exec(n);){var R=l[1].trim();if(u=T(R),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,R))u="";else if(E){u=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),u="";else typeof u!="string"&&!s.useRawValueToEscape&&(u=lL(u));var U=L.safeValue(u);if(n=n.replace(l[0],U),E?(L.regex.lastIndex+=u.length,L.regex.lastIndex-=l[0].length):L.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 L=b.split(new RegExp("".concat(C,"[ ]*{"))),R="{".concat(L[1]);b=L[0],R=this.interpolate(R,u);var F=R.match(/'/g),U=R.match(/"/g);(F&&F.length%2===0&&!U||U.length%2!==0)&&(R=R.replace(/'/g,'"'));try{u=JSON.parse(R),E&&(u=Zr(Zr({},E),u))}catch(J){return this.logger.warn("failed parsing options string in nesting for key ".concat(b),J),"".concat(b).concat(C).concat(R)}return delete u.defaultValue,b}for(a(p,"handleHasOptions");s=this.nestingRegexp.exec(n);){var d=[];u=Zr({},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=lL(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,Zr(Zr({},o),{},{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n},"nest")}]),e}();function TL(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(TL,"ownKeys$2");function ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(ca,"_objectSpread$2");function KW(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=cT(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(KW,"parseFormatStr");function pl(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(pl,"createCachedFormatter");var XW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rr(this,e),this.logger=Oo.create("formatter"),this.options=t,this.formats={number:pl(function(n,i){var r=new Intl.NumberFormat(n,ca({},i));return function(o){return r.format(o)}}),currency:pl(function(n,i){var r=new Intl.NumberFormat(n,ca(ca({},i),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:pl(function(n,i){var r=new Intl.DateTimeFormat(n,ca({},i));return function(o){return r.format(o)}}),relativetime:pl(function(n,i){var r=new Intl.RelativeTimeFormat(n,ca({},i));return function(o){return r.format(o,i.range||"day")}}),list:pl(function(n,i){var r=new Intl.ListFormat(n,ca({},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()]=pl(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=KW(d),T=m.formatName,b=m.formatOptions;if(o.formats[T]){var E=p;try{var C=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},L=C.locale||C.lng||s.locale||s.lng||r;E=o.formats[T](p,L,ca(ca(ca({},b),s),C))}catch(R){o.logger.warn(R)}return E}else o.logger.warn("there was no format function for ".concat(T));return p},n);return u},"format")}]),e}();function EL(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(EL,"ownKeys$1");function bL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(bL,"_objectSpread$1");function JW(e){var t=QW();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 ec(this,r)},"_createSuperInternal")}a(JW,"_createSuper$1");function QW(){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(QW,"_isNativeReflectConstruct$1");function YW(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}a(YW,"removePending");var zW=function(e){fl(n,e);var t=JW(n);function n(i,r,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Rr(this,n),s=t.call(this),cg&&Xa.call(qr(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 L="".concat(b,"|").concat(C);!s.reload&&u.store.hasResourceBundle(b,C)?u.state[L]=2:u.state[L]<0||(u.state[L]===1?d[L]===void 0&&(d[L]=!0):(u.state[L]=1,E=!1,d[L]===void 0&&(d[L]=!0),p[L]===void 0&&(p[L]=!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){NW(m.loaded,[u],p),YW(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,L){if(l.readingCalls--,l.waitingReads.length>0){var R=l.waitingReads.shift();l.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(C&&L&&u<l.maxRetries){setTimeout(function(){l.read.call(l,r,o,s,u+1,p*2,d)},p);return}d(C,L)},"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=bL(bL({},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}(Xa);function AL(){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(AL,"get");function SL(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(SL,"transformOptions");function xL(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(xL,"ownKeys");function Po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(Po,"_objectSpread");function qW(e){var t=ZW();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 ec(this,r)},"_createSuperInternal")}a(qW,"_createSuper");function ZW(){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(ZW,"_isNativeReflectConstruct");function rg(){}a(rg,"noop");function eG(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}a(eG,"bindMemberFunctions");var sg=function(e){fl(n,e);var t=qW(n);function n(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Rr(this,n),i=t.call(this),cg&&Xa.call(qr(i)),i.options=SL(r),i.services={},i.logger=Oo,i.modules={external:[]},eG(qr(i)),o&&!i.isInitialized&&!r.isClone){if(!i.options.initImmediate)return i.init(r,o),ec(i,qr(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=AL();this.options=Po(Po(Po({},l),this.options),SL(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Po(Po({},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(R){return R?typeof R=="function"?new R:R: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=XW);var d=new mL(this.options);this.store=new VW(this.options.resources,this.options);var m=this.services;m.logger=Oo,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new GW(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 HW(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new zW(u(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(R){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,[R].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 gL(this.services,this.options),this.translator.on("*",function(R){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,[R].concat(U))}),this.modules.external.forEach(function(R){R.init&&R.init(r)})}if(this.format=this.options.interpolation.format,s||(s=rg),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(R){r[R]=function(){var F;return(F=r.store)[R].apply(F,arguments)}});var E=["addResource","addResources","addResourceBundle","removeResourceBundle"];E.forEach(function(R){r[R]=function(){var F;return(F=r.store)[R].apply(F,arguments),r}});var C=Yf(),L=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?L():setTimeout(L,0),C},"init")},{key:"loadResources",value:a(function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rg,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=Yf();return r||(r=this.languages),o||(o=this.options.ns),s||(s=rg),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"&&OL.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=Yf();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=Po({},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 L=l.options.keySeparator||".",R;return T.keyPrefix&&Array.isArray(d)?R=d.map(function(F){return"".concat(T.keyPrefix).concat(L).concat(F)}):R=T.keyPrefix?"".concat(T.keyPrefix).concat(L).concat(d):d,l.t(R,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=Yf();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=Yf();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 mL(AL());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]:rg,l=Po(Po(Po({},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=Po({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new gL(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}(Xa);xo(sg,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new sg(e,t)});var ee=sg.createInstance();ee.createInstance=sg.createInstance;var gq=ee.createInstance,mq=ee.dir,hq=ee.init,yq=ee.loadResources,vq=ee.reloadResources,Tq=ee.use,Eq=ee.changeLanguage,bq=ee.getFixedT,Aq=ee.t,Sq=ee.exists,xq=ee.setDefaultNamespace,Pq=ee.hasLoadedNamespace,Oq=ee.loadNamespaces,Iq=ee.loadLanguages;var WR=te(uT()),GR=te(ZL()),Og=te(UR()),Qe=require("@sap-ux/vocabularies-types/vocabularies/UI"),nu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var xg=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(`${xg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${xg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${xg.LogSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var B="#/definitions/",to=a((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function No(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Og.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,GR.convert)((0,Og.merge)(...n))),i}a(No,"parseAndMergeAndConvert");var yl=a(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function LT(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(LT,"evaluateCommonLabel");function Ig(e,t){let n=e.value;return e.$target&&(n=LT(e.$target.annotations,t,n)),n}a(Ig,"getLabelForPropertyPath");function Pg(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=LT(i.annotations,t,n)),n}a(Pg,"getLabelForDataField");function _H(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 LT(o.annotations,t,s)}}}else return}a(_H,"getLabel");function BR(e,t,n){let i=Pg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}a(BR,"getTitleForDataField");function Ei(e,t){var o,s,l;let n="",i,r;try{let u=_H(e.Label,t);switch(e.$Type){case Qe.UIAnnotationTypes.DataField:r=e,n=BR(r,t,u);break;case Qe.UIAnnotationTypes.DataFieldWithUrl:r=e,i=Pg(e,t),n=u||i||(typeof r.Value=="string"?r.Value:r.Value.path);break;case Qe.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Pg(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 Qe.UIAnnotationTypes.DataFieldForAction:case Qe.UIAnnotationTypes.DataFieldWithAction:case Qe.UIAnnotationTypes.DataFieldForIntentBasedNavigation:r=e,u?n=typeof u=="string"?u:r.Action:n=e.Action;break;case Qe.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:r=e,i=Pg(e,t),n=i||r.Value.path;break;case Qe.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=BR(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 da(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}a(da,"getPageTypeV2");function RT(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(RT,"getPageTypeV4");function DH(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}a(DH,"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 wH(e){return e.substring(e.lastIndexOf(".")+1,e.length)}a(wH,"getAnnotationFromMetaPath");function MH(e,t,n){var s;let i=e[e.length-1],r=wH(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(MH,"determineTargetAnnotation");function VH(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Qe.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}a(VH,"adjustKey");function kH(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=VH(t,u,o);let d=MH(u,n,e);if(d){let b=r===K.FioriElementsVersion.v2?"::":"#";t=DH(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(kH,"getKeyAndEntityTypeOfReferenceFacet");function HR(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!==Qe.UIAnnotationTypes.CollectionFacet&&"Target"in e){let b=yl(e.Target);if(!b){oe(i,{severity:K.LogSeverity.Error,message:ee.t("NOTARGET",{target:e.Target})});return}let{key:E,entityType:C,stopProcessing:L,namespace:R}=kH(n,l,p,b,r,o);if(L)return;l=E,p=C,u=R}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(HR,"getSectionFacet");var FT=a(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),KR=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=i&&i===p?n:p.replace("??","/");if(r!==void 0&&!o&&l.length-1===u)s[d]=r;else if(!s[d]){if(o)return;s[d]=FT(l[u+1])}s=s[d]}return s},"resolveManifestPath"),Lo=a((e,t,n,i,r=!1)=>KR(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),XR=a((e,t,n,i,r)=>{KR(e,t,i,r,n)},"setManifestSectionByPathV4");function _T(e){let t,n,i;switch(e.$Type){case Qe.UIAnnotationTypes.DataField:t=yl(e.Value);break;case Qe.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:yl(e.Value);break;case Qe.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 Qe.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ft(e.Action)}`);break;case Qe.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=yl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Qe.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ft(e.Action)}`);break;case Qe.UIAnnotationTypes.DataFieldWithNavigationPath:i=yl(e.Value),n=yl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}a(_T,"getSchemaKeyOfLineItemRecord");function jH(e,t,n){return e.includes(Qe.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Qe.UIAnnotationTerms.Chart:e.includes(Qe.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Qe.UIAnnotationTerms.Identification:n&&e.includes(Qe.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Qe.UIAnnotationTerms.LineItem:e.includes(Qe.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Qe.UIAnnotationTerms.FieldGroup:e.includes(Qe.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Qe.UIAnnotationTerms.DataPoint:e.includes(Qe.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Qe.UIAnnotationTerms.PresentationVariant:void 0}a(jH,"getUIAnnotationTerm");function $H(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?nu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?nu.CommunicationAnnotationTerms.Address:void 0}a($H,"getCommunicationAnnotationTerm");function UH(e,t,n){return jH(e,t,n)||$H(e,t)}a(UH,"getAnnotationTerm");function BH(e,t,n,i,r){var p,d,m,T,b,E,C,L,R;let o=ai(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(UH(s,o,i)){case Qe.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 Qe.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 Qe.UIAnnotationTerms.LineItem:{if(!s.includes(Qe.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let F=s.split("::");F[F.length-1]=`@${Qe.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 Qe.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 Qe.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 Qe.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 nu.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},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}case nu.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},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}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(BH,"evaluateTargetAnnotation");function DT(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}a(DT,"getAnnotationPathUsingFullyQualifiedName");function wT(e,t,n,i,r,o=K.FioriElementsVersion.v2,s){var u;let l=HR(e,i,t,s,o,!1);if(l)switch(e.$Type){case Qe.UIAnnotationTypes.ReferenceFacet:{BH(l,e,r,i,t);break}case Qe.UIAnnotationTypes.CollectionFacet:{let p=DT(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=>{wT(m,t,n,i,d.facets,o,s)});break}}}a(wT,"addFacetToConfig");function JR(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=>{wT(m,t,d,e,r,n,i)})}return r}a(JR,"getObjectPageHeaderFacets");function Cg(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=>{wT(d,t,p,e,r,n,i)})}return r}a(Cg,"getObjectPageFacets");function MT(e){return e[K.ManifestSection.generic]||e[K.ManifestSection.ovp]?K.FioriElementsVersion.v2:K.FioriElementsVersion.v4}a(MT,"getVersionFromManifest");function WH(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(da((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(da((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(WH,"determineV2Template");function iu(e){var i,r,o,s;let t,n=RT(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(iu,"determineV4PageTemplateType");function GH(e){let t;for(let n in e){let i=e[n];if(t=iu(i),t)break}return t}a(GH,"determineV4TemplateFromPages");function HH(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=GH(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(HH,"determineV4Template");function VT(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=WH(e,n):t===K.FioriElementsVersion.v4?i=HH(e,n):i||oe(n,{severity:K.LogSeverity.Error,message:ee.t("NOFE"),location:{path:K.MANIFESTPATH}}),i}a(VT,"getTemplateTypeFromManifest");function ga(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(ga,"addSectionTitleAndDescription");function ru(e,t,n){var i;ga(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(ru,"addTargetTitleAndSectionDescription");function ma(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,ga(t,i,n),i}a(ma,"createDefaultSection");function Ng(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=HR(m,e,t,n,i,!0);return T&&d.push(T),d},s)),s}}a(Ng,"getObjectPageFacetSection");var vl=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("??","/");if(r[l]){if(Object.keys(r[l]).length===0){Array.isArray(r)?r.splice(Number(l),1):delete r[l],o.pop(),vl(e,o.join("/"),n,i);return}r=r&&r[l]}})},"deleteEmptyStructure"),NT=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}`:NT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:NT(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=NT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Lg(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(Lg,"generatePageId");function kT(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(kT,"findMatchingKeysByAdditionalProperties");function KH(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=kT(t,s.additionalProperties,n);(u.some(d=>d in n)||p.length)&&i.push(o)}}}a(KH,"fillArrayFromAnyOfReference");function XH(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(B)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{KH(r,n,t,i)}),i.length===0))return;return i}a(XH,"fillArrayFromPropertyDefinition");function JH(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=Ro(t,n,i,u.targetDefinition,r,o,s),u;e.length>1&&e.forEach(L=>{L!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[L].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(JH,"determineNextDefinitionFromDefinitionArray");function Ro(e,t,n,i,r,o,s){let l;if(i.type==="array")return l=Ro(e,t,n,i.items,r,o,s),l;let u=XH(i,n,e);if(u)return l=JH(u,e,t,n,r,o,s,i),l}a(Ro,"getNextTargetDefinition");var jT=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,WR.default)(e[o],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Bi(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}a(Bi,"convertActionKeyToStableId");function un(e){return e==null?void 0:e.split(B)[1]}a(un,"getDefinitionKey");function QR(e){return`#/definitions/${e}`}a(QR,"getDefinitionsRef");function YR(e){return e instanceof Error?e.message:String(e)}a(YR,"getErrorMessage");function ic(e,t){return e==null?void 0:e.includes(t)}a(ic,"isFeatureSupported");function Fo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}a(Fo,"updatePropertyIndices");function Rg(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(Rg,"getJSONPropertyByPath");function zR(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}a(zR,"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 zo=require("@sap-ux/vocabularies-types/vocabularies/UI"),fe=te(se());var bi=te(se());var Gt=a((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Fg=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 QH(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(QH,"escapeId");var qR=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(qR||{}),ZR=(n=>(n.Editable="{= ${ui>/editMode} === 'Editable'}",n.NotEditable="{= ${ui>/editMode} !== 'Editable'}",n))(ZR||{});function YH(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(YH,"mapBreadcrumbs");var $T=a((e,t,n,i,r)=>{let o="listReport",s=[...n];({idBreadcrumbs:t}=YH(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}`,QH(u)},"buildColumnControlId"),Wi=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 zH(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(zH,"determinePattern");var UT=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=zH(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"),zn=a((e,t,n)=>{UT(e,t,n)},"addPatternForBindingChangeOfEnumLR"),dt=a((e,t,n)=>{let i=Object.values(qR);UT(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),Gi=a((e,t,n)=>{let i=Object.values(ZR);UT(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function rc(){}a(rc,"doNotDelete");var v9=te(tF());var nF=Symbol("specificationMetadataKey"),v=a(e=>Reflect.metadata(nF,e),"syncRule");function qn(e,t){let n;return e&&(n=Reflect.getMetadata(nF,e,t)),n}a(qn,"getReflectMetadata");var Dr=a(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),iF=Symbol("childId"),Ft=a(e=>Reflect.metadata(iF,e),"childId"),_g=a((e,t)=>Reflect.getMetadata(iF,e,t),"getChildId"),oc=a(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),qH=Symbol("validityMetadataKey"),O=a(e=>Reflect.metadata(qH,e),"validity");function Dg(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(Dg,"getTextForDeprecated");var uF=te(lF()),pF=te(se());var dF=uF.default.change,fF={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function gF(e,t){let n="";try{for(let i in fF)e[i]===void 0&&(e[i]=fF[i]);n=dF.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}a(gF,"createChangeString");function Qa(e){try{return dF.parse(e)}catch{return!1}}a(Qa,"parseChangeString");function wg(e,t,n,i,r){let o=n.layer?n.layer===pF.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(wg,"fillFlexChangeContent");function Te(e,t){return gF(e,t)}a(Te,"exportToFlexChange");var ac=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 Mg(e,t,n,i){if(t&&e)for(let r in t){let o=e[r];o&&(oe(i,{severity:ac.LogSeverity.Warning,message:Dg(r,o),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}a(Mg,"checkDeprecatedProperties");function BT(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(B)[1]];return BT(n,t)}else return e.title?e.title.startsWith(ac.FacetTitlePrefix)?e.title.split(ac.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}a(BT,"getSectionTitle");function Vg(e){let t=e.split(`${ac.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}a(Vg,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}a(_o,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var ha=require("@sap-ux/vocabularies-types/vocabularies/UI");function kg(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(kg,"replaceSpecialChars");var sc=a(function(e){return kg(zR(e))},"prepareId");function o5(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}a(o5,"evaluateConcat");function cc(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 o5(e);if(e&&typeof e=="string")return kg(e.replace(/ /g,"_"))}a(cc,"getStableIdPartFromValue");var mF=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"),ya=a(function(e){let t="";if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=mF(e),t;if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=sc(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=cc(e.Value)+"::"),t+=e.Action,sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataField)return t="DataField::",t+=cc(e.Value),sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=cc(e.Value)+"::",t+=mF(e),sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=cc(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=cc(e.Value),sc(t)},"getStableIdPartFromDataField");var pe=te(se());var ke=te(se());var Hi=require("@sap-ux/vocabularies-types/vocabularies/UI"),vF=require("path"),TF=te(tc());var lc="ResponsiveTableWithMultiSelect<LineItems>",fc="ResponsiveTableWithInlineDelete<LineItems>",jg="TreeTable<LineItems>",$g="AnalyticalTable<LineItems>",Ug="GridTable<LineItems>",WT=[lc,fc,jg,$g,Ug],hF="template::",Bg="template:::ObjectPageAction:::";function a5(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(a5,"addCustomColumnDefinition");function s5(e,t){let n;return e==="TableColumnActionIntentBased"?n=_T(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ft(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Hi.UIAnnotationTypes.DataFieldForAction?n=ft(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ft(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}a(s5,"getActionId");function GT(e,t,n,i,r){let o,s=n.lineItemId===ke.DefinitionName.LineItems?"":"ObjectPage",l=s5(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(GT,"handleActionRecord");function c5(e,t,n){e!==ke.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Hi.UIAnnotationTypes.DataFieldForAction||t.$Type===Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Hi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}a(c5,"getColumnActionType");function l5(e,t){let n=[];if(!(e.$Type!==Hi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Hi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Hi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),c5(t,e,n),n}a(l5,"getActionType");function EF(e,t,n){let i=_T(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}`,Xg(r.properties[i],e.lineItemRecord),Jg(e.lineItemRecord,r.properties,i)}}a(EF,"generateGenericColumn");function f5(e,t,n,i,r,o,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{GT(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{o&>(t,o,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{GT(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":EF(i,t,r)}}a(f5,"handleAnyAction");function bl(e,t,n,i,r){i=i||ke.DefinitionName.LineItems;let{actions:o,footerActions:s,lineItemPath:l}=Kg(e,t,n,i);if(t){let u=0;t.forEach(p=>{let d={lineItemPath:l,lineItemRecord:p,lineItemId:i,entityType:n},m=l5(p,i);m?m.forEach(T=>{f5(T,e,o,d,u,s,i)}):EF(d,e,u),u++})}r&&(e.definitions[i].properties.custom={$ref:`${B}${r}`})}a(bl,"addLineItemsType");function u5(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(u5,"addListReportLeadingProperties");function p5(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),va(m,r)}}a(p5,"addTabkeyEnum");function Wg(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,TF.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("\\"+vF.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");o.push(m)}}}),va(o,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}a(Wg,"addFragmentEnum");function Al(e,t,n,i,r,o=ke.DefinitionName.CustomColumns,s=ke.DefinitionName.CustomColumn,l){a5(e,o,s),u5(e,t,s),p5(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Wg(e,r,u,"fragmentName",s),Wg(e,r,u,"fragmentName",ke.DefinitionName.CustomColumn),Wg(e,r,u,"cellsFragmentName",s),Wg(e,r,u,"cellsFragmentName",ke.DefinitionName.CustomColumn)}a(Al,"addTableColumnExtensions");function bF(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}a(bF,"removeElementsFromEnum");function Gg(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=to(n==null?void 0:n.fullyQualifiedName,Hi.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=no(s);s.type==="PropertyPath"&&(l=Ig(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(Gg,"addSelectionFields");function Hg(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(Hg,"isDraftEnabled");function AF(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(AF,"isEntityDeletable");function SF(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(SF,"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 xF(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(xF,"addStandardFooterActionsOP");function d5(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(d5,"copyFieldProperties");function g5(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(g5,"determineFieldDefinitionName");function m5(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(m5,"addKeysTagForDataField");function h5(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)m5(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(h5,"addKeysTagToField");function y5(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(y5,"isConnectedField");function v5(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++),HT(e,t,T,`ConnectedFields::${o.qualifier}`,b.toString(),i,r,void 0,{actions:s,fields:s},o.fullyQualifiedName.split("@")[0])}}}return s}a(v5,"addConnectedFields");function PF(e,t,n){if(n)return n;let i=ft(t);return e.definitions[i].properties}a(PF,"getFieldsSchemaContainer");function HT(e,t,n,i,r,o,s,l=!0,u={},p=o.entityType.fullyQualifiedName){var E;let d=ya(n),m=s===pe.FioriElementsVersion.v2&&d&&d.includes("::")?d.split("::").splice(1).join("::"):d,T=g5(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=PF(t,`${e}${pe.DefinitionName.Actions}<${i}>`,u.actions),L=C[m]={$ref:`${B}${T}`};L[pe.SchemaTag.propertyIndex]=parseInt(r)}}else{let C=PF(t,`${e}${pe.DefinitionName.Fields}<${i}>`,u.fields);C[m]={$ref:`${B}${T}`,propertyIndex:parseInt(r)},y5(n)&&(b=v5(e,t,n,o,s))}t.definitions[T]={type:"object",properties:b,description:Ei(n,o.entityType),additionalProperties:!1},h5(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,Xg(t.definitions[T],n),d5(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(HT,"addField");function T5(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(T5,"determineTargetIdOfForm");function E5(e,t,n,i,r,o){if(e.base===pe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&HT(t,n,l,i,s,e,r,o)}else for(let s in e.target.Data){let l=e.target.Data[s];HT(t,n,l,i,s,e,r)}}a(E5,"addFieldsToFormDefinition");function b5(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]=to(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}a(b5,"addTagsToFormDefinition");function Qg(e,t,n,i,r,o){if(!t.target)return;let s=T5(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},b5(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][pe.SchemaTag.isViewNode]=!0,E5(t,e,i,s,r,d),s}a(Qg,"handleForm");function KT(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(KT,"replaceAlias");function Yg(e,t){let n=KT(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(Yg,"getActionNameAndId");function OF(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:OF(o.pages,t)}}a(OF,"isFirstObjectPage");function zg(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&&OF(r,t)&&!Hg(l)&&xF(e,o),delete e.definitions[pe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${pe.DefinitionName.ObjectPageFooter}<${pe.DefinitionName.ObjectPageFooterActions}>`]}a(zg,"addFooterActions");function qg(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(qg,"addHeaderActions");function Zg(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(Zg,"addCommonHeaderSchema");function IF(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}a(IF,"determineEntitySetOfEntityType");var ur=require("@sap-ux/vocabularies-types/vocabularies/UI");var tt=te(se());function va(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}a(va,"addEnumToSchema");function JT(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)}}va(r,n)}a(JT,"addEnumForValidAnnotations");function Ya(e,t,n){let i=t.definitions[n].properties[tt.SchemaTag.annotationPath],r=[ur.UIAnnotationTerms.SelectionVariant,ur.UIAnnotationTerms.SelectionPresentationVariant];JT(e,r,i)}a(Ya,"addEnumForSingleTabVariant");function CF(e,t,n){var o;let i=(o=e.definitions[t])==null?void 0:o.properties.annotationPath,r=[ur.UIAnnotationTerms.SelectionVariant,ur.UIAnnotationTerms.SelectionPresentationVariant];JT(n.entityType,r,i)}a(CF,"addEnumForMultiTabVariant");function NF(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(o=>{r.push(o.name)}),va(r,i)}a(NF,"addEnumForVariantEntitySet");function LF(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[ur.UIAnnotationTerms.SelectionVariant];JT(e,r,i)}a(LF,"addEnumForFilterBarAnnotationPath");function tm(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(tm,"addDefinitionForRelatedFacetKeys");function Pl(e){return e.replace("#","::")}a(Pl,"getFacetKeyInSchema");function RF(e,t){return`${e}<${Pl(t)}>`}a(RF,"getFacetDefinitionKey");function Dt(e,t,n,i=!0,r){let o=t;if(i&&(o=RF(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 em(e,t,n){let i;return t===tt.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${ur.UIAnnotationTerms.LineItem}`?i=`${B}${n}`:(i=`${B}${n}<${t}>`,Dt(n,t,e,!0)),i}a(em,"getCustomExtensionDefinitionName");function Kg(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=em(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=em(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=to(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(Kg,"addCommonLineItemDefinitions");function FF(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}a(FF,"getDataTypeFromAnnotation");function nm(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=FF(e.$Type)),t}a(nm,"determineDataTypeOfTarget");function no(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=nm((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=FF(e.$Type):e.type&&(t=e.type),t}catch{return t}}a(no,"determineDataType");function Xg(e,t){let n=no(t);n&&(e[tt.SchemaTag.dataType]=n)}a(Xg,"addDataTypeToDefinition");function Bn(e,t){return`${B}${RF(e,t)}`}a(Bn,"getFacetDefinitionLink");function za(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${B}${i}`}a(za,"addDefinitionRef");function im(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(im,"getFacetAnnotationPath");function ou(e,t,n,i,r,o,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${o}${e.base}${s}`;n.properties[t]={$ref:Bn(o?u:l,t)};let p=Dt(o?u:l,t,i,!0,o?u:void 0);ga(e,p,t),p[tt.SchemaTag.annotationPath]=e.annotationPath,p[tt.SchemaTag.isViewNode]=!0}a(ou,"handleAddressContact");function XT(e,t,n){typeof e=="object"&&(e[t]=n)}a(XT,"updateSchemaProperty");function Ol(e,t,n=ft("")){let i=t.entityProperties.map(o=>o.name),r=e.definitions[`${tt.DefinitionName.Fields4Dialog}${n}`];XT(r.properties.fields.items,"enum",i)}a(Ol,"addFieldsType");function A5(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}a(A5,"findFirstSchemaDefinitionKey");function rm(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=A5(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(rm,"getEnumEntry");function qa(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=rm(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];XT(l,"oneOf",r)}else XT(o,"oneOf",r)}a(qa,"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 Jg(e,t,n){var i,r,o;try{if(e.Value)t[n][tt.SchemaTag.keys]=[{name:tt.SchemaKeyName.value,value:cc(e.Value)}];else if(e.$Type===ur.UIAnnotationTypes.DataFieldWithAction||e.$Type===ur.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===ur.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===ur.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===ur.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)&&(t[n][tt.SchemaTag.keys]=[{name:"SemanticObject",value:e[tt.SchemaKeyName.semanticObject]},{name:"Action",value:e.Action}])}catch{return}}a(Jg,"addKeyToDefinition");var Il=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 DF="1.96.55";var Za=class Za{constructor(){Za.distTagsOfSpec.length===0&&(Za.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Za.distTagsOfSpec=[]}getSpecVersion(){return DF}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:Il.LogSeverity.Info,message:r,location:{path:Il.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Za.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=ee.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Il.LogSeverity.Warning,message:r,location:{path:Il.MANIFESTPATH}})}}};a(Za,"DistTagEvaluator"),Za.distTagsOfSpec=[];var au=Za;var le=te(se());var hn=te(se());var Fn=te(se());function O5(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}a(O5,"getCustomPageName");function wF(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(wF,"getViewType");function I5(e,t){return wF(e,t).toLowerCase()}a(I5,"getViewTypeExtension");function C5(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.viewPath)||(r==null?void 0:r.viewPath),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(C5,"getViewPath");function N5(e,t){let n=e.entitySet||O5(e),{viewPath:i,fileName:r}=C5(e,t,[n]),o=I5(e,t);return[...i,`${r}.view.${o}`].join("/")}a(N5,"getCustomPagePath");var QT=class QT{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=wF(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=N5(t,this.app);n.$filePath=i}};a(QT,"AppProvider");var es=QT;var We=te(se());var uc=te(se());function om(e,t,n){if(t.controlType.endsWith(uc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===uc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[uc.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",uc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}a(om,"addFlexForTable");var Cl=te(se());var Wn=a((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),MF=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"),VF=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 YT(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}a(YT,"getNewPageTemplate");function L5(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}a(L5,"findPageInManifest");function R5(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=YT(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:YT(e[t].pageType)}),!Array.isArray(n.pages))){let i=L5(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=YT(e[t].pageType)),zT(t,e,i)}}a(R5,"transformPageFromAssociation");function F5(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(F5,"deletePage");function zT(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)R5(t,r,n);Array.isArray(n.pages)||F5(n,t,i)}}a(zT,"transformPageToNewManifestV2");var A0=te(tc());var Rb={};qs(Rb,{ALPAnalyticalTable:()=>ME,ALPGridTable:()=>wE,ALPResponsiveTable:()=>DE,Action:()=>$E,AnalyticalCard:()=>_l,AnalyticalCardSettings:()=>lm,AnalyticalCardSettingsv4:()=>iE,AnalyticalListPageFilterBar:()=>pE,AnalyticalTable:()=>_E,BaseCustomSection:()=>wu,ChartSettings:()=>rb,ChartSettingsType:()=>ZT,CommonCardSettings:()=>rs,CommonFilterBar:()=>yu,CommonTableSettings:()=>ls,CommonTableSettingsForSections:()=>xc,CreateWithFilters:()=>IE,CustomCard:()=>tE,DataLoadSettings:()=>CE,DateRange:()=>cE,DefaultDateRange:()=>lE,DefaultSpanObject:()=>eE,FRAGMENT_DEFINITION:()=>ko,Field:()=>sE,FieldForAction:()=>yE,Fields4Dialog:()=>NE,Fields4DialogOP:()=>Pb,FooterAction:()=>BE,FormAction:()=>hE,GlobalChartSettings:()=>Sb,GlobalTableSettings:()=>Nb,GridTable:()=>VE,HeaderActionStandard:()=>XE,KPISettings:()=>ob,LinkListCardSettings:()=>oE,LinklistCard:()=>gu,ListCard:()=>Fl,ListCardSettings:()=>nE,ListReportFilterBar:()=>dE,ObjectPageAnalyticalTable:()=>Ob,ObjectPageChart:()=>Ab,ObjectPageCustomSectionFragment:()=>Mu,ObjectPageCustomSectionView:()=>Vu,ObjectPageFooterAction:()=>cb,ObjectPageFooterActionStandard:()=>QE,ObjectPageGridTable:()=>Ib,ObjectPageHeader:()=>ab,ObjectPageHeaderAction:()=>sb,ObjectPageHeaderActionStandard:()=>JE,ObjectPageLayout:()=>fb,ObjectPageResponsiveTable:()=>Pc,ObjectPageSectionAddressV2:()=>mb,ObjectPageSectionChartV2:()=>db,ObjectPageSectionContactV2:()=>hb,ObjectPageSectionFormV2:()=>pb,ObjectPageSectionTableV2:()=>gb,ObjectPageSectionV2:()=>ub,ObjectPageSubSectionChartV2:()=>Tb,ObjectPageSubSectionContactV2:()=>Eb,ObjectPageSubSectionFormV2:()=>vb,ObjectPageSubSectionTableV2:()=>bb,ObjectPageSubSectionV2:()=>yb,ObjectPageToolBarAction:()=>Lb,ObjectPageTreeTable:()=>Cb,QuickVariantSelection:()=>LE,QuickVariantSelectionOP:()=>xb,QuickVariantSelectionX:()=>RE,ResponsiveTable:()=>mc,SAP_UI_TABLE:()=>hm,SaveAndEditOP:()=>KE,SelectionFieldDateSettings:()=>fE,SelectionFields:()=>uE,Share:()=>WE,ShareOP:()=>GE,StackCard:()=>du,StackCardSettings:()=>rE,TableALP:()=>kl,TableCard:()=>Dl,TableCardSettings:()=>aE,TableColumn:()=>qE,TableColumnAction:()=>Mm,TableColumnActionIntentBased:()=>ZE,TableCustomColumn:()=>eb,ToolBar:()=>nb,ToolBarAction:()=>UE,TreeTable:()=>FE,UpAndDownNavigationOP:()=>HE,buildIntentBasedActionId:()=>YE,deleteColumnFromFragment:()=>Tm,deleteType:()=>$l,exportCreateParametersFields:()=>Om,exportCustomColumnsToFragment:()=>OE,exportDateSettings:()=>GF,exportDateSettingsField:()=>HF,exportDefaultSpan:()=>UF,exportType:()=>jl,getChartSectionControlId:()=>y0,getContactSubSectionControlId:()=>T0,getCustomColumnPath:()=>Em,getFormSectionControlId:()=>h0,getRootCustomColumnFromFragmentJSON:()=>Eu,getSectionControlId:()=>Sc,getSmartChartControlId:()=>Nu,getSmartTableControlId:()=>cs,getSubSectionControlId:()=>v0,getTableSectionControlId:()=>m0,importCreateParameters:()=>Pm,importDateSettings:()=>gE});var Zn=te(se());var Me=a(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),pc=a(e=>Me(e)+"/tableSettings","getTableSettingPathV2"),kF=a(e=>Me(e)+"/chartSettings","getChartSettingPathV2"),jF=a(e=>Me(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var mn=a(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),Pe=a(e=>{let t=[Zn.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var dc=a((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),cm=a(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ki=a(e=>{let t=[];return t.push(cm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Do=a(e=>Ki(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ro=a((e,t,n)=>{let i=[];i.push(cm(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),wr=a((e,t,n)=>ro(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),$F=a((e,t,n)=>ro(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),qT=a(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ta=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),`${qT()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),sm=class sm{};a(sm,"ApplicationV2"),y([Ft("settings")],sm.prototype,"settings",2);var am=sm,io=class io{};a(io,"AppSettings"),y([v({manifest:{path:()=>"sap.app"}})],io.prototype,"title",2),y([v({manifest:{path:()=>"sap.app"}})],io.prototype,"description",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.50.0"})],io.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.46.0"})],io.prototype,"forceGlobalRefresh",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.74.0"})],io.prototype,"tableColumnVerticalAlignment",2),y([v({manifest:{path:()=>"sap.ui5"}}),O({since:"1.56.0"})],io.prototype,"flexEnabled",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.96.0"})],io.prototype,"draftDiscardConfirmationSettings",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.96.0"})],io.prototype,"statePreservationMode",2);var ts=io;function UF(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}a(UF,"exportDefaultSpan");var fm=class fm{};a(fm,"ChartSettingsType"),y([v({manifest:{path:()=>mn()+"/chartSettings"}})],fm.prototype,"showDataLabel",2);var ZT=fm,ns=class ns{};a(ns,"DefaultSpanObject"),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"cols",2),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"rows",2),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"showOnlyHeader",2),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"minimumTitleRow",2),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"minimumSubTitleRow",2);var eE=ns,$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:UF}})],$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 rs=$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 tE=Nl,is=class is extends rs{};a(is,"ListCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"showLineItemDetail",2),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"imageSupported",2),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"enableAddToInsights",2),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"listFlavor",2),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"listType",2);var nE=is,su=class su{};a(su,"ListCard"),y([v({manifest:{path:t=>Pe(t)}})],su.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],su.prototype,"template",2);var Fl=su,wo=class wo extends rs{};a(wo,"AnalyticalCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"chartAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"ignoreSapText",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"enableAddToInsights",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"navigation",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"valueSelectionInfo",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"chartProperties",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"colorPalette",2);var lm=wo,um=class um extends lm{};a(um,"AnalyticalCardSettingsv4"),y([v({manifest:{path:t=>Pe(t)}})],um.prototype,"measureAggregate",2);var iE=um,cu=class cu{};a(cu,"AnalyticalCard"),y([v({manifest:{path:t=>Pe(t)}})],cu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],cu.prototype,"template",2);var _l=cu,Ll=class Ll extends rs{};a(Ll,"StackCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"itemText",2),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"objectStreamCardsNavigationProperty",2),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"objectStreamCardsSettings",2);var rE=Ll,lu=class lu{};a(lu,"StackCard"),y([v({manifest:{path:t=>Pe(t)}})],lu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],lu.prototype,"template",2);var du=lu,Rl=class Rl extends rs{};a(Rl,"LinkListCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"listFlavor",2),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"headerAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"staticContent",2);var oE=Rl,fu=class fu{};a(fu,"LinklistCard"),y([v({manifest:{path:t=>Pe(t)}})],fu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],fu.prototype,"template",2);var gu=fu,uu=class uu extends rs{};a(uu,"TableCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],uu.prototype,"showLineItemDetail",2),y([v({manifest:{path:t=>Pe(t)}})],uu.prototype,"enableAddToInsights",2);var aE=uu,pu=class pu{};a(pu,"TableCard"),y([v({manifest:{path:t=>Pe(t)}})],pu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],pu.prototype,"template",2);var Dl=pu;var BF=te(se());var _5=a((e,t,n,i,r)=>{let o=Yn(n[1],r),s=n.slice(-1)[0];return Gt(e,[o,s,"GroupElement"])},"getSmartFieldControlId"),pm=class pm{};a(pm,"Field"),y([v({flex:{controlId:_5,controlType:()=>BF.ControlType.GroupElement,createFlexChange:Te},generate:dt})],pm.prototype,"visible",2);var sE=pm;var gc=te(se());function gE(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(gE,"importDateSettings");function GF(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}a(GF,"exportDateSettings");function D5(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(D5,"importDateSettingsField");function HF(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(HF,"exportDateSettingsField");var wl=class wl{};a(wl,"DateRange"),y([v({manifest:{path:t=>Me(t)+gc.DATESETTINGSPATH}}),O({since:"1.77.0"})],wl.prototype,"useDateRange",2),y([v({manifest:{path:t=>Me(t)+gc.DATESETTINGSPATH,import:gE,export:GF}}),O({since:"1.77.0"})],wl.prototype,"selectedValues",2),y([v({manifest:{path:t=>Me(t)+gc.DATESETTINGSPATH}}),O({since:"1.77.0"})],wl.prototype,"exclude",2);var cE=wl,dm={controlId:Gt,controlType:()=>gc.ControlType.SmartFilterBar,createFlexChange:Te},mu={path:(e,t,n)=>`${Me(e)}${gc.DATESETTINGSPATH}/fields/${n}`},WF={...mu,import:D5,export:HF},gm=class gm{};a(gm,"DefaultDateRange"),y([v({manifest:mu}),O({since:"1.90.0"})],gm.prototype,"operation",2);var lE=gm,os=class os{};a(os,"SelectionFieldDateSettings"),y([v({manifest:WF}),O({since:"1.77.0"})],os.prototype,"selectedValues",2),y([v({manifest:mu}),O({since:"1.77.0"})],os.prototype,"exclude",2),y([v({manifest:mu}),O({since:"1.77.0"})],os.prototype,"customDateRangeImplementation",2),y([v({manifest:WF}),O({since:"1.77.0"})],os.prototype,"filter",2),y([v({manifest:mu}),O({since:"1.90.0"})],os.prototype,"defaultValue",2);var fE=os,mE=class mE{};a(mE,"SelectionFields");var uE=mE,oo=class oo{};a(oo,"CommonFilterBar"),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.38.0"})],oo.prototype,"smartVariantManagement",2),y([v({flex:dm}),O({since:"1.40.0"})],oo.prototype,"liveMode",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.48.0"})],oo.prototype,"variantManagementHidden",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.52.0"})],oo.prototype,"subTitleIfVariantMgmtHidden",2),y([v({manifest:{path:t=>Me(t)+"/filterSettings",import:gE}}),O({since:"1.77.0"})],oo.prototype,"dateSettings",2),y([v({flex:dm}),O({since:"1.28.0"})],oo.prototype,"showClearOnFB",2),y([v({flex:dm}),O({since:"1.38.0"})],oo.prototype,"showFilterConfiguration",2),y([v({flex:dm}),O({since:"1.28.0"})],oo.prototype,"showRestoreOnFB",2);var yu=oo,hu=class hu extends yu{};a(hu,"AnalyticalListPageFilterBar"),y([v({manifest:{path:t=>Me(t)}})],hu.prototype,"showGoButtonOnFilterBar",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.60.0"})],hu.prototype,"filterDefaultsFromSelectionVariant",2);var pE=hu,mm=class mm extends yu{};a(mm,"ListReportFilterBar"),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.86.0"})],mm.prototype,"annotationPath",2);var dE=mm;var vE=te(se());var w5=a((e,t,n,i,r)=>{if(i()===vE.ControlType.Button){let o=n[n.length-1],s=Yn(n[1],r);return`${e}action::${o}::${s}::FormAction`}return Gt(e,t)},"getFormActionButtonId"),Mo={controlId:w5,controlType:()=>vE.ControlType.Button,createFlexChange:Te},as=class as{};a(as,"FormAction"),y([v({flex:Mo,generate:dt})],as.prototype,"visible",2),y([v({flex:Mo})],as.prototype,"tooltip",2),y([v({flex:Mo})],as.prototype,"icon",2),y([v({flex:Mo})],as.prototype,"activeIcon",2),y([v({flex:Mo})],as.prototype,"type",2);var hE=as,ss=class ss{};a(ss,"FieldForAction"),y([v({flex:Mo,generate:dt})],ss.prototype,"visible",2),y([v({flex:Mo})],ss.prototype,"tooltip",2),y([v({flex:Mo})],ss.prototype,"icon",2),y([v({flex:Mo})],ss.prototype,"activeIcon",2),y([v({flex:Mo}),O({since:"1.73.0"})],ss.prototype,"type",2);var yE=ss;var Qt=te(se()),ao=te(tc());var bE=require("path"),Z5=te(se()),o0=te(r0()),a0=require("fs");var e8=(0,bE.join)(__dirname,"templates");var t8=a((e,t)=>{let n=(0,a0.readFileSync)(e,"utf8");return(0,o0.render)(n,t)},"renderTemplate");var AE=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 t8((0,bE.join)(e8,t+".xml"),n)},"getSingleColumnContent"),SE=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=AE(i,t);n=n+`
|
|
288
|
+
}`;var ze=_I(function(){return Et(P,Ie+"return "+Z).apply(e,N)});if(ze.source=Z,$v(ze))throw ze;return ze}a(JU,"template");function QU(c){return Pt(c).toLowerCase()}a(QU,"toLower");function YU(c){return Pt(c).toUpperCase()}a(YU,"toUpper");function zU(c,f,g){if(c=Pt(c),c&&(g||f===e))return BP(c);if(!c||!(f=ar(f)))return c;var h=Jr(c),A=Jr(f),P=WP(h,A),N=GP(h,A)+1;return Ha(h,P,N).join("")}a(zU,"trim");function qU(c,f,g){if(c=Pt(c),c&&(g||f===e))return c.slice(0,KP(c)+1);if(!c||!(f=ar(f)))return c;var h=Jr(c),A=GP(h,Jr(f))+1;return Ha(h,0,A).join("")}a(qU,"trimEnd");function ZU(c,f,g){if(c=Pt(c),c&&(g||f===e))return c.replace($y,"");if(!c||!(f=ar(f)))return c;var h=Jr(c),A=WP(h,Jr(f));return Ha(h,A).join("")}a(ZU,"trimStart");function e4(c,f){var g=k,h=It;if(fn(f)){var A="separator"in f?f.separator:A;g="length"in f?Je(f.length):g,h="omission"in f?ar(f.omission):h}c=Pt(c);var P=c.length;if(Zc(c)){var N=Jr(c);P=N.length}if(g>=P)return c;var D=g-el(h);if(D<1)return h;var j=N?Ha(N,0,D).join(""):c.slice(0,D);if(A===e)return j+h;if(N&&(D+=j.length-D),Uv(A)){if(c.slice(D).search(A)){var z,q=j;for(A.global||(A=iv(A.source,Pt(fP.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(ar(A),D)!=D){var de=j.lastIndexOf(A);de>-1&&(j=j.slice(0,de))}return j+h}a(e4,"truncate");function t4(c){return c=Pt(c),c&&be.test(c)?c.replace(ue,NV):c}a(t4,"unescape");var n4=al(function(c,f,g){return c+(g?" ":"")+f.toUpperCase()}),Gv=DO("toUpperCase");function FI(c,f,g){return c=Pt(c),f=g?e:f,f===e?xV(c)?FV(c):mV(c):c.match(f)||[]}a(FI,"words");var _I=et(function(c,f){try{return rr(c,e,f)}catch(g){return $v(g)?g:new Ge(g)}}),i4=ia(function(c,f){return xr(f,function(g){g=So(g),ta(c,g,kv(c[g],c))}),c});function r4(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(rr(P[0],this,h))return rr(P[1],this,h)}})}a(r4,"cond");function o4(c){return Nk(Ir(c,p))}a(o4,"conforms");function Hv(c){return function(){return c}}a(Hv,"constant");function a4(c,f){return c==null||c!==c?f:c}a(a4,"defaultTo");var s4=MO(),c4=MO(!0);function $i(c){return c}a($i,"identity");function Kv(c){return pO(typeof c=="function"?c:Ir(c,p))}a(Kv,"iteratee");function l4(c){return gO(Ir(c,p))}a(l4,"matches");function f4(c,f){return mO(c,Ir(f,p))}a(f4,"matchesProperty");var u4=et(function(c,f){return function(g){return Uf(g,c,f)}}),p4=et(function(c,f){return function(g){return Uf(c,g,f)}});function Xv(c,f,g){var h=Qn(f),A=Dd(f,h);g==null&&!(fn(f)&&(A.length||!h.length))&&(g=f,f=c,c=this,A=Dd(f,Qn(f)));var P=!(fn(g)&&"chain"in g)||!!g.chain,N=oa(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__=Vi(this.__actions__);return Z.push({func:j,args:arguments,thisArg:c}),q.__chain__=z,q}return j.apply(c,ka([this.value()],arguments))})}),c}a(Xv,"mixin");function d4(){return Jn._===this&&(Jn._=kV),this}a(d4,"noConflict");function Jv(){}a(Jv,"noop");function g4(c){return c=Je(c),et(function(f){return hO(f,c)})}a(g4,"nthArg");var m4=Pv(rn),h4=Pv(VP),y4=Pv(Yy);function DI(c){return Fv(c)?zy(So(c)):Kk(c)}a(DI,"property");function T4(c){return function(f){return c==null?e:Js(c,f)}}a(T4,"propertyOf");var E4=kO(),b4=kO(!0);function Qv(){return[]}a(Qv,"stubArray");function Yv(){return!1}a(Yv,"stubFalse");function A4(){return{}}a(A4,"stubObject");function S4(){return""}a(S4,"stubString");function x4(){return!0}a(x4,"stubTrue");function P4(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=ev(h,f);++g<c;)f(g);return A}a(P4,"times");function O4(c){return He(c)?rn(c,So):sr(c)?[c]:Vi(eI(Pt(c)))}a(O4,"toPath");function I4(c){var f=++MV;return Pt(c)+f}a(I4,"uniqueId");var C4=$d(function(c,f){return c+f},0),N4=Ov("ceil"),L4=$d(function(c,f){return c/f},1),R4=Ov("floor");function F4(c){return c&&c.length?_d(c,$i,uv):e}a(F4,"max");function _4(c,f){return c&&c.length?_d(c,_e(f,2),uv):e}a(_4,"maxBy");function D4(c){return $P(c,$i)}a(D4,"mean");function w4(c,f){return $P(c,_e(f,2))}a(w4,"meanBy");function M4(c){return c&&c.length?_d(c,$i,mv):e}a(M4,"min");function V4(c,f){return c&&c.length?_d(c,_e(f,2),mv):e}a(V4,"minBy");var k4=$d(function(c,f){return c*f},1),j4=Ov("round"),$4=$d(function(c,f){return c-f},0);function U4(c){return c&&c.length?Zy(c,$i):0}a(U4,"sum");function B4(c,f){return c&&c.length?Zy(c,_e(f,2)):0}return a(B4,"sumBy"),x.after=l$,x.ary=uI,x.assign=Y$,x.assignIn=PI,x.assignInWith=Zd,x.assignWith=z$,x.at=q$,x.before=pI,x.bind=kv,x.bindAll=i4,x.bindKey=dI,x.castArray=b$,x.chain=cI,x.chunk=L2,x.compact=R2,x.concat=F2,x.cond=r4,x.conforms=o4,x.constant=Hv,x.countBy=$j,x.create=Z$,x.curry=gI,x.curryRight=mI,x.debounce=hI,x.defaults=eU,x.defaultsDeep=tU,x.defer=f$,x.delay=u$,x.difference=_2,x.differenceBy=D2,x.differenceWith=w2,x.drop=M2,x.dropRight=V2,x.dropRightWhile=k2,x.dropWhile=j2,x.fill=$2,x.filter=Bj,x.flatMap=Hj,x.flatMapDeep=Kj,x.flatMapDepth=Xj,x.flatten=rI,x.flattenDeep=U2,x.flattenDepth=B2,x.flip=p$,x.flow=s4,x.flowRight=c4,x.fromPairs=W2,x.functions=cU,x.functionsIn=lU,x.groupBy=Jj,x.initial=H2,x.intersection=K2,x.intersectionBy=X2,x.intersectionWith=J2,x.invert=uU,x.invertBy=pU,x.invokeMap=Yj,x.iteratee=Kv,x.keyBy=zj,x.keys=Qn,x.keysIn=ji,x.map=Xd,x.mapKeys=gU,x.mapValues=mU,x.matches=l4,x.matchesProperty=f4,x.memoize=Qd,x.merge=hU,x.mergeWith=OI,x.method=u4,x.methodOf=p4,x.mixin=Xv,x.negate=Yd,x.nthArg=g4,x.omit=yU,x.omitBy=vU,x.once=d$,x.orderBy=qj,x.over=m4,x.overArgs=g$,x.overEvery=h4,x.overSome=y4,x.partial=jv,x.partialRight=yI,x.partition=Zj,x.pick=TU,x.pickBy=II,x.property=DI,x.propertyOf=T4,x.pull=q2,x.pullAll=aI,x.pullAllBy=Z2,x.pullAllWith=ej,x.pullAt=tj,x.range=E4,x.rangeRight=b4,x.rearg=m$,x.reject=n$,x.remove=nj,x.rest=h$,x.reverse=Mv,x.sampleSize=r$,x.set=bU,x.setWith=AU,x.shuffle=o$,x.slice=ij,x.sortBy=c$,x.sortedUniq=fj,x.sortedUniqBy=uj,x.split=HU,x.spread=y$,x.tail=pj,x.take=dj,x.takeRight=gj,x.takeRightWhile=mj,x.takeWhile=hj,x.tap=Rj,x.throttle=v$,x.thru=Kd,x.toArray=AI,x.toPairs=CI,x.toPairsIn=NI,x.toPath=O4,x.toPlainObject=xI,x.transform=SU,x.unary=T$,x.union=yj,x.unionBy=vj,x.unionWith=Tj,x.uniq=Ej,x.uniqBy=bj,x.uniqWith=Aj,x.unset=xU,x.unzip=Vv,x.unzipWith=sI,x.update=PU,x.updateWith=OU,x.values=ll,x.valuesIn=IU,x.without=Sj,x.words=FI,x.wrap=E$,x.xor=xj,x.xorBy=Pj,x.xorWith=Oj,x.zip=Ij,x.zipObject=Cj,x.zipObjectDeep=Nj,x.zipWith=Lj,x.entries=CI,x.entriesIn=NI,x.extend=PI,x.extendWith=Zd,Xv(x,x),x.add=C4,x.attempt=_I,x.camelCase=RU,x.capitalize=LI,x.ceil=N4,x.clamp=CU,x.clone=A$,x.cloneDeep=x$,x.cloneDeepWith=P$,x.cloneWith=S$,x.conformsTo=O$,x.deburr=RI,x.defaultTo=a4,x.divide=L4,x.endsWith=FU,x.eq=Yr,x.escape=_U,x.escapeRegExp=DU,x.every=Uj,x.find=Wj,x.findIndex=nI,x.findKey=nU,x.findLast=Gj,x.findLastIndex=iI,x.findLastKey=iU,x.floor=R4,x.forEach=lI,x.forEachRight=fI,x.forIn=rU,x.forInRight=oU,x.forOwn=aU,x.forOwnRight=sU,x.get=Bv,x.gt=I$,x.gte=C$,x.has=fU,x.hasIn=Wv,x.head=oI,x.identity=$i,x.includes=Qj,x.indexOf=G2,x.inRange=NU,x.invoke=dU,x.isArguments=zs,x.isArray=He,x.isArrayBuffer=N$,x.isArrayLike=ki,x.isArrayLikeObject=xn,x.isBoolean=L$,x.isBuffer=Ka,x.isDate=R$,x.isElement=F$,x.isEmpty=_$,x.isEqual=D$,x.isEqualWith=w$,x.isError=$v,x.isFinite=M$,x.isFunction=oa,x.isInteger=vI,x.isLength=zd,x.isMap=TI,x.isMatch=V$,x.isMatchWith=k$,x.isNaN=j$,x.isNative=$$,x.isNil=B$,x.isNull=U$,x.isNumber=EI,x.isObject=fn,x.isObjectLike=gn,x.isPlainObject=Xf,x.isRegExp=Uv,x.isSafeInteger=W$,x.isSet=bI,x.isString=qd,x.isSymbol=sr,x.isTypedArray=cl,x.isUndefined=G$,x.isWeakMap=H$,x.isWeakSet=K$,x.join=Q2,x.kebabCase=wU,x.last=Nr,x.lastIndexOf=Y2,x.lowerCase=MU,x.lowerFirst=VU,x.lt=X$,x.lte=J$,x.max=F4,x.maxBy=_4,x.mean=D4,x.meanBy=w4,x.min=M4,x.minBy=V4,x.stubArray=Qv,x.stubFalse=Yv,x.stubObject=A4,x.stubString=S4,x.stubTrue=x4,x.multiply=k4,x.nth=z2,x.noConflict=d4,x.noop=Jv,x.now=Jd,x.pad=kU,x.padEnd=jU,x.padStart=$U,x.parseInt=UU,x.random=LU,x.reduce=e$,x.reduceRight=t$,x.repeat=BU,x.replace=WU,x.result=EU,x.round=j4,x.runInContext=V,x.sample=i$,x.size=a$,x.snakeCase=GU,x.some=s$,x.sortedIndex=rj,x.sortedIndexBy=oj,x.sortedIndexOf=aj,x.sortedLastIndex=sj,x.sortedLastIndexBy=cj,x.sortedLastIndexOf=lj,x.startCase=KU,x.startsWith=XU,x.subtract=$4,x.sum=U4,x.sumBy=B4,x.template=JU,x.times=P4,x.toFinite=aa,x.toInteger=Je,x.toLength=SI,x.toLower=QU,x.toNumber=Lr,x.toSafeInteger=Q$,x.toString=Pt,x.toUpper=YU,x.trim=zU,x.trimEnd=qU,x.trimStart=ZU,x.truncate=e4,x.unescape=t4,x.uniqueId=I4,x.upperCase=n4,x.upperFirst=Gv,x.each=lI,x.eachRight=fI,x.first=oI,Xv(x,function(){var c={};return bo(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:Un(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==dn;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($i)},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 Uf(g,c,f)})}),lt.prototype.reject=function(c){return this.filter(Yd(_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)},bo(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,ka([rt],D));return h&&de?ut[0]:ut},"interceptor");q&&g&&typeof z=="function"&&z.length!=1&&(j=q=!1);var de=this.__chain__,Ie=!!this.__actions__.length,De=P&&!de,ze=j&&!Ie;if(!P&&q){N=ze?N:new lt(this);var we=c.apply(N,D);return we.__actions__.push({func:Kd,args:[Z],thisArg:e}),new Or(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=vd[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)})}}),bo(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[jd(e,C).name]=[{name:"wrapper",func:e}],lt.prototype.clone=ek,lt.prototype.reverse=tk,lt.prototype.value=nk,x.prototype.at=Fj,x.prototype.chain=_j,x.prototype.commit=Dj,x.prototype.next=wj,x.prototype.plant=Vj,x.prototype.reverse=kj,x.prototype.toJSON=x.prototype.valueOf=x.prototype.value=jj,x.prototype.first=x.prototype.head,Df&&(x.prototype[Df]=Mj),x},"runInContext"),$a=_V();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Jn._=$a,define(function(){return $a})):Ws?((Ws.exports=$a)._=$a,Ky._=$a):Jn._=$a}).call(ff)});var d1=Ve((fce,p1)=>{var{findIndex:q7}=Tp();function Z7(e,t){let i=q7(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(Z7,"findNextTextualToken");p1.exports={findNextTextualToken:Z7}});var h1=Ve((pce,m1)=>{var g1=/^xmlns(?<prefixWithColon>:(?<prefix>[^:]*))?$/;function eJ({key:e,includeEmptyPrefix:t}){if(typeof e!="string")return!1;let n=e.match(g1);return n===null?!1:!!(t===!0||!n.groups.prefixWithColon||n.groups.prefix)}a(eJ,"isXMLNamespaceKey");function tJ(e){if(typeof e!="string")return;let t=e.match(g1);if(t!==null)return t.groups&&t.groups.prefix||""}a(tJ,"getXMLNamespaceKeyPrefix");m1.exports={isXMLNamespaceKey:eJ,getXMLNamespaceKeyPrefix:tJ}});var v1=Ve((gce,y1)=>{var{findNextTextualToken:nJ}=d1(),{isXMLNamespaceKey:iJ,getXMLNamespaceKeyPrefix:rJ}=h1();y1.exports={findNextTextualToken:nJ,isXMLNamespaceKey:iJ,getXMLNamespaceKeyPrefix:rJ}});var RA=Ve((mce,E1)=>{var{reduce:oJ,has:T1,isArray:aJ}=Tp();function sJ(e){return oJ(e,(n,i,r)=>(r==="parent"||(T1(i,"type")?n.push(i):aJ(i)&&i.length>0&&T1(i[0],"type")&&(n=n.concat(i))),n),[])}a(sJ,"getAstChildrenReflective");E1.exports={getAstChildrenReflective:sJ}});var FA=Ve((yce,b1)=>{b1.exports={DEFAULT_NS:"::DEFAULT"}});var N1=Ve((vce,C1)=>{var{BaseXmlCstVisitor:cJ}=LA(),{last:lJ,forEach:P1,reduce:fJ,map:Ep,pick:DA,sortBy:uJ,isEmpty:pJ,isArray:O1,assign:dJ}=Tp(),{findNextTextualToken:gJ,isXMLNamespaceKey:mJ,getXMLNamespaceKeyPrefix:hJ}=v1(),{getAstChildrenReflective:yJ}=RA(),{DEFAULT_NS:vJ}=FA();function TJ(e,t){A1.setState({tokenVector:t});let n=A1.visit(e);return n.rootElement!==$c&&I1(n.rootElement),n}a(TJ,"buildAst");var wA=class wA extends cJ{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&&pJ(t.element[0].children)===!1&&(i.rootElement=this.visit(t.element[0])),iy(i),i}prolog(t,{location:n}){let i={type:"XMLProlog",attributes:[],position:n};return t.attribute!==void 0&&(i.attributes=Ep(t.attribute,r=>this.visit(r,{isPrologParent:!0}))),iy(i),i}docTypeDecl(t,n){}externalID(t,n){}content(t,{location:n}){let i=[],r=[];return t.element!==void 0&&(i=Ep(t.element,this.visit.bind(this))),t.chardata!==void 0&&(r=Ep(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=Ep(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 AJ(i,t),SJ(i,t),xJ(i,t,this.tokenVector),iy(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=ry(o)}if(t.STRING!==void 0&&t.STRING[0].isInsertedInRecovery!==!0){let o=t.STRING[0];r.value=EJ(o.image),r.syntax.value=ry(o)}return iy(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=uJ(r,["startOffset"]),s=Ep(o,"image").join("");return i.text=s,i}misc(t,{location:n}){}};a(wA,"CstToAstVisitor");var _A=wA,A1=new _A;function iy(e){let t=yJ(e);P1(t,n=>n.parent=e)}a(iy,"setChildrenParent");function I1(e,t=[]){let n=fJ(e.attributes,(r,o)=>{if(o.key!==$c&&mJ({key:o.key,includeEmptyPrefix:!1})===!0){let s=hJ(o.key);if(o.value){let l=o.value;s!==""?r[s]=l:r[vJ]=l}}return r},{}),i=Object.create(null);e.namespaces=dJ(i,t,n),P1(e.subElements,r=>I1(r,e.namespaces))}a(I1,"updateNamespaces");function ry(e){return DA(e,["image","startOffset","endOffset","startLine","endLine","startColumn","endColumn"])}a(ry,"toXMLToken");function S1(e){return DA(e,["startOffset","startLine","startColumn"])}a(S1,"startOfXMLToken");function x1(e){return DA(e,["endOffset","endLine","endColumn"])}a(x1,"endOfXMLToken");function La(e){return O1(e)&&e.length===1&&e[0].isInsertedInRecovery!==!0}a(La,"exists");function EJ(e){return e.substring(1,e.length-1)}a(EJ,"stripQuotes");function bJ(e){let t=/^([^:]+):([^:]+)$/.exec(e);if(t===null)return null;let n=t[1],i=t[2];return{ns:n,name:i}}a(bJ,"nsToParts");var $c=null;function AJ(e,t){if(t.Name!==void 0&&t.Name[0].isInsertedInRecovery!==!0){let n=t.Name[0];e.syntax.openName=ry(n);let i=bJ(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=ry(t.END_NAME[0]))}a(AJ,"handleElementOpenCloseNameRanges");function SJ(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={...S1(t.OPEN[0]),...x1(n)}),La(t.SLASH_OPEN)&&La(t.END)&&(e.syntax.closeBody={...S1(t.SLASH_OPEN[0]),...x1(t.END[0])})}}a(SJ,"handleElementOpenCloseBodyRanges");function xJ(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=O1(t.attribute)?lJ(t.attribute).location.endOffset:t.Name[0].endOffset,s=gJ(n,o);s!==null&&(e.syntax.guessedAttributesRange={startOffset:i,endOffset:s.endOffset-1})}}}a(xJ,"handleElementAttributeRanges");C1.exports={buildAst:TJ}});var F1=Ve((Ece,R1)=>{var{forEach:PJ,isFunction:uf}=Tp(),{getAstChildrenReflective:OJ}=RA();function L1(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=OJ(e);PJ(n,i=>{L1(i,t)})}a(L1,"accept");R1.exports={accept:L1}});var D1=Ve((Ace,_1)=>{var{buildAst:IJ}=N1(),{accept:CJ}=F1(),{DEFAULT_NS:NJ}=FA();_1.exports={buildAst:IJ,accept:CJ,DEFAULT_NS:NJ}});var VA=Ve((Bce,X1)=>{var WJ=require("crypto");X1.exports=a(function(){return WJ.randomBytes(16)},"nodeRNG")});var kA=Ve((Gce,Q1)=>{var J1=[];for(Sp=0;Sp<256;++Sp)J1[Sp]=(Sp+256).toString(16).substr(1);var Sp;function GJ(e,t){var n=t||0,i=J1;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(GJ,"bytesToUuid");Q1.exports=GJ});var q1=Ve((Kce,z1)=>{var HJ=VA(),KJ=kA(),Y1,jA,$A=0,UA=0;function XJ(e,t,n){var i=t&&n||0,r=t||[];e=e||{};var o=e.node||Y1,s=e.clockseq!==void 0?e.clockseq:jA;if(o==null||s==null){var l=HJ();o==null&&(o=Y1=[l[0]|1,l[1],l[2],l[3],l[4],l[5]]),s==null&&(s=jA=(l[6]<<8|l[7])&16383)}var u=e.msecs!==void 0?e.msecs:new Date().getTime(),p=e.nsecs!==void 0?e.nsecs:UA+1,d=u-$A+(p-UA)/1e4;if(d<0&&e.clockseq===void 0&&(s=s+1&16383),(d<0||u>$A)&&e.nsecs===void 0&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");$A=u,UA=p,jA=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||KJ(r)}a(XJ,"v1");z1.exports=XJ});var ew=Ve((Jce,Z1)=>{var JJ=VA(),QJ=kA();function YJ(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||JJ)();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||QJ(r)}a(YJ,"v4");Z1.exports=YJ});var iw=Ve((Yce,nw)=>{var zJ=q1(),tw=ew(),BA=tw;BA.v1=zJ;BA.v4=tw;nw.exports=BA});var pr={};qs(pr,{exportConfig:()=>Y6,generateCustomExtension:()=>oP,generateSchema:()=>Q6,getApiVersion:()=>ez,getChanges:()=>yM,getGenericSchema:()=>My,getPathToGenericSchema:()=>Mw,getProject:()=>oz,importConfig:()=>z6,importProject:()=>q6,importProjectSchema:()=>Z6,isDirectory:()=>nz,log:()=>oe,readDirectory:()=>lP});module.exports=tg(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 Rr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}a(Rr,"_classCallCheck");function iT(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(iT,"toPrimitive");function Jf(e){var t=iT(e,"string");return oi(t)=="symbol"?t:String(t)}a(Jf,"toPropertyKey");function aL(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,Jf(i.key),i)}}a(aL,"_defineProperties");function Fr(e,t,n){return t&&aL(e.prototype,t),n&&aL(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}a(Fr,"_createClass");function qr(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}a(qr,"_assertThisInitialized");function Qf(e,t){return Qf=Object.setPrototypeOf?Object.setPrototypeOf.bind():a(function(i,r){return i.__proto__=r,i},"_setPrototypeOf"),Qf(e,t)}a(Qf,"_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&&Qf(e,t)}a(ul,"_inherits");function ec(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 qr(e)}a(ec,"_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 xo(e,t,n){return t=Jf(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}a(xo,"_defineProperty");function rT(e){if(Array.isArray(e))return e}a(rT,"_arrayWithHoles");function oT(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}a(oT,"_iterableToArray");function ng(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(ng,"_arrayLikeToArray");function aT(e,t){if(e){if(typeof e=="string")return ng(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 ng(e,t)}}a(aT,"_unsupportedIterableToArray");function sT(){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(sT,"_nonIterableRest");function cT(e){return rT(e)||oT(e)||aT(e)||sT()}a(cT,"_toArray");function sL(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(sL,"ownKeys$6");function cL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(cL,"_objectSpread$6");var OW={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")},IW=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Rr(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||OW,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,cL(cL({},{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 IW,Xa=function(){function e(){Rr(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 Yf(){var e,t,n=new Promise(function(i,r){e=i,t=r});return n.resolve=e,n.reject=t,n}a(Yf,"defer");function lL(e){return e==null?"":""+e}a(lL,"makeString");function CW(e,t,n){e.forEach(function(i){t[i]&&(n[i]=t[i])})}a(CW,"copy");function fT(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(fT,"getLastOfPath");function fL(e,t,n){var i=fT(e,t,Object),r=i.obj,o=i.k;r[o]=n}a(fL,"setPath");function NW(e,t,n,i){var r=fT(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(NW,"pushPath");function og(e,t){var n=fT(e,t),i=n.obj,r=n.k;if(i)return i[r]}a(og,"getPath");function LW(e,t,n){var i=og(e,n);return i!==void 0?i:og(t,n)}a(LW,"getPathWithDefaults");function PL(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]):PL(e[i],t[i],n):e[i]=t[i]);return e}a(PL,"deepExtend");function pl(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}a(pl,"regexEscape");var RW={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function FW(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,function(t){return RW[t]}):e}a(FW,"escape");var cg=typeof window<"u"&&window.navigator&&typeof window.navigator.userAgentData>"u"&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,_W=[" ",",","?","!",";"];function DW(e,t,n){t=t||"",n=n||"";var i=_W.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(DW,"looksLikeObjectPath");function ag(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?ag(u,p,n):void 0}r=r[i[o]]}return r}}a(ag,"deepFind");function uL(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(uL,"ownKeys$5");function ig(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(ig,"_objectSpread$5");function wW(e){var t=MW();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 ec(this,r)},"_createSuperInternal")}a(wW,"_createSuper$3");function MW(){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(MW,"_isNativeReflectConstruct$3");var VW=function(e){ul(n,e);var t=wW(n);function n(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};return Rr(this,n),r=t.call(this),cg&&Xa.call(qr(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=og(this.data,d);return m||!p||typeof s!="string"?m:ag(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),fL(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=og(this.data,d)||{};l?PL(m,s,u):m=ig(ig({},m),s),fL(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"?ig(ig({},{}),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}(Xa),OL={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 pL(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(pL,"ownKeys$4");function yi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?pL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(yi,"_objectSpread$4");function kW(e){var t=jW();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 ec(this,r)},"_createSuperInternal")}a(kW,"_createSuper$2");function jW(){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(jW,"_isNativeReflectConstruct$2");var dL={},gL=function(e){ul(n,e);var t=kW(n);function n(i){var r,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Rr(this,n),r=t.call(this),cg&&Xa.call(qr(r)),CW(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],i,qr(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&&!DW(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 L=o.nsSeparator||this.options.nsSeparator;return u?{res:"".concat(b).concat(L).concat(m),usedKey:m,exactUsedKey:m,usedLng:E,usedNS:b}:"".concat(b).concat(L).concat(m)}return u?{res:m,usedKey:m,exactUsedKey:m,usedLng:E,usedNS:b}:m}var R=this.resolve(r,o),F=R&&R.res,U=R&&R.usedKey||m,J=R&&R.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,It=typeof F!="string"&&typeof F!="boolean"&&typeof F!="number";if(k&&F&&It&&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 mt=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?(R.res=mt,R):mt}if(p){var Ke=re==="[object Array]",Xt=Ke?[]:{},wi=Ke?J:U;for(var dn in F)if(Object.prototype.hasOwnProperty.call(F,dn)){var Zt="".concat(wi).concat(p).concat(dn);Xt[dn]=this.translate(Zt,yi(yi({},o),{joinArrays:!1,ns:T})),Xt[dn]===Zt&&(Xt[dn]=F[dn])}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,Kn=!1,jn=o.count!==void 0&&typeof o.count!="string",en=n.hasDefaultValue(o),Ln=jn?this.pluralResolver.getSuffix(E,o.count,o):"",ni=o["defaultValue".concat(Ln)]||o.defaultValue;!this.isValidLookup(F)&&en&&(Fe=!0,F=ni),this.isValidLookup(F)||(Kn=!0,F=m);var Le=o.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,Rn=Le&&Kn?void 0:F,Xn=en&&ni!==F&&this.options.updateMissing;if(Kn||Fe||Xn){if(this.logger.log(Xn?"updateKey":"missingKey",E,b,m,Xn?ni:F),p){var Ye=this.resolve(m,yi(yi({},o),{},{keySeparator:!1}));Ye&&Ye.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 I=[],S=this.languageUtils.getFallbackCodes(this.options.fallbackLng,o.lng||this.language);if(this.options.saveMissingTo==="fallback"&&S&&S[0])for(var Y=0;Y<S.length;Y++)I.push(S[Y]);else this.options.saveMissingTo==="all"?I=this.languageUtils.toResolveHierarchy(o.lng||this.language):I.push(o.lng||this.language);var M=a(function(ct,je,Tt){var sn=en&&Tt!==F?Tt:Rn;l.options.missingKeyHandler?l.options.missingKeyHandler(ct,b,je,sn,Xn,o):l.backendConnector&&l.backendConnector.saveMissing&&l.backendConnector.saveMissing(ct,b,je,sn,Xn,o),l.emit("missingKey",ct,b,je,F)},"send");this.options.saveMissing&&(this.options.saveMissingPlurals&&jn?I.forEach(function(Re){l.pluralResolver.getSuffixes(Re,o).forEach(function(ct){M([Re],m+ct,o["defaultValue".concat(ct)]||ni)})}):M(I,m,ni))}F=this.extendTranslation(F,r,o,R,s),Kn&&F===m&&this.options.appendNamespaceToMissingKey&&(F="".concat(b,":").concat(m)),(Kn||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?(R.res=F,R):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 L=s.postProcess||this.options.postProcess,R=typeof L=="string"?[L]:L;return r!=null&&R&&R.length&&s.applyPostProcessor!==!1&&(r=OL.handle(R,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 L=s.count!==void 0&&typeof s.count!="string",R=L&&!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,!dL["".concat(U[0],"-").concat(J)]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(m)&&(dL["".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;L&&(st=o.pluralResolver.getSuffix(re,s.count,s));var k="".concat(o.options.pluralSeparator,"zero");if(L&&(Ce.push(E+st),R&&Ce.push(E+k)),F){var It="".concat(E).concat(o.options.contextSeparator).concat(s.context);Ce.push(It),L&&(Ce.push(It+st),R&&Ce.push(It+k))}}for(var mt;mt=Ce.pop();)o.isValidLookup(l)||(p=mt,l=o.getResource(re,J,mt,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}(Xa);function lT(e){return e.charAt(0).toUpperCase()+e.slice(1)}a(lT,"capitalize");var mL=function(){function e(t){Rr(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]=lT(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]=lT(r[1].toLowerCase())),i.indexOf(r[2].toLowerCase())>-1&&(r[2]=lT(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}(),$W=[{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}],UW={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},"_")},BW=["v1","v2","v3"],hL={zero:0,one:1,two:2,few:3,many:4,other:5};function WW(){var e={};return $W.forEach(function(t){t.lngs.forEach(function(n){e[n]={numbers:t.nr,plurals:UW[t.fc]}})}),e}a(WW,"createRules");var GW=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Rr(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=WW()}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 hL[s]-hL[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!BW.includes(this.options.compatibilityJSON)},"shouldUseIntlApi")}]),e}();function yL(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(yL,"ownKeys$3");function Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(Zr,"_objectSpread$3");function vL(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=LW(e,t,n);return!o&&r&&typeof n=="string"&&(o=ag(e,n,i),o===void 0&&(o=ag(t,n,i))),o}a(vL,"deepFindWithDefaults");var HW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rr(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:FW,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(L){return L.replace(/\$/g,"$$$$")}a(m,"regexSafe");var T=a(function(R){if(R.indexOf(s.formatSeparator)<0){var F=vL(i,d,R,s.options.keySeparator,s.options.ignoreJSONStructure);return s.alwaysFormat?s.format(F,void 0,r,Zr(Zr(Zr({},o),i),{},{interpolationkey:R})):F}var U=R.split(s.formatSeparator),J=U.shift().trim(),re=U.join(s.formatSeparator).trim();return s.format(vL(i,d,J,s.options.keySeparator,s.options.ignoreJSONStructure),re,r,Zr(Zr(Zr({},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(R){return m(R)},"safeValue")},{regex:this.regexp,safeValue:a(function(R){return s.escapeValue?m(s.escape(R)):m(R)},"safeValue")}];return C.forEach(function(L){for(p=0;l=L.regex.exec(n);){var R=l[1].trim();if(u=T(R),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,R))u="";else if(E){u=l[0];continue}else s.logger.warn("missed to pass in variable ".concat(R," for interpolating ").concat(n)),u="";else typeof u!="string"&&!s.useRawValueToEscape&&(u=lL(u));var U=L.safeValue(u);if(n=n.replace(l[0],U),E?(L.regex.lastIndex+=u.length,L.regex.lastIndex-=l[0].length):L.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 L=b.split(new RegExp("".concat(C,"[ ]*{"))),R="{".concat(L[1]);b=L[0],R=this.interpolate(R,u);var F=R.match(/'/g),U=R.match(/"/g);(F&&F.length%2===0&&!U||U.length%2!==0)&&(R=R.replace(/'/g,'"'));try{u=JSON.parse(R),E&&(u=Zr(Zr({},E),u))}catch(J){return this.logger.warn("failed parsing options string in nesting for key ".concat(b),J),"".concat(b).concat(C).concat(R)}return delete u.defaultValue,b}for(a(p,"handleHasOptions");s=this.nestingRegexp.exec(n);){var d=[];u=Zr({},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=lL(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,Zr(Zr({},o),{},{interpolationkey:s[1].trim()}))},l.trim())),n=n.replace(s[0],l),this.regexp.lastIndex=0}return n},"nest")}]),e}();function TL(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(TL,"ownKeys$2");function ca(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?TL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(ca,"_objectSpread$2");function KW(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=cT(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(KW,"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 XW=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Rr(this,e),this.logger=Oo.create("formatter"),this.options=t,this.formats={number:dl(function(n,i){var r=new Intl.NumberFormat(n,ca({},i));return function(o){return r.format(o)}}),currency:dl(function(n,i){var r=new Intl.NumberFormat(n,ca(ca({},i),{},{style:"currency"}));return function(o){return r.format(o)}}),datetime:dl(function(n,i){var r=new Intl.DateTimeFormat(n,ca({},i));return function(o){return r.format(o)}}),relativetime:dl(function(n,i){var r=new Intl.RelativeTimeFormat(n,ca({},i));return function(o){return r.format(o,i.range||"day")}}),list:dl(function(n,i){var r=new Intl.ListFormat(n,ca({},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=KW(d),T=m.formatName,b=m.formatOptions;if(o.formats[T]){var E=p;try{var C=s&&s.formatParams&&s.formatParams[s.interpolationkey]||{},L=C.locale||C.lng||s.locale||s.lng||r;E=o.formats[T](p,L,ca(ca(ca({},b),s),C))}catch(R){o.logger.warn(R)}return E}else o.logger.warn("there was no format function for ".concat(T));return p},n);return u},"format")}]),e}();function EL(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(EL,"ownKeys$1");function bL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(bL,"_objectSpread$1");function JW(e){var t=QW();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 ec(this,r)},"_createSuperInternal")}a(JW,"_createSuper$1");function QW(){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(QW,"_isNativeReflectConstruct$1");function YW(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}a(YW,"removePending");var zW=function(e){ul(n,e);var t=JW(n);function n(i,r,o){var s,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Rr(this,n),s=t.call(this),cg&&Xa.call(qr(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 L="".concat(b,"|").concat(C);!s.reload&&u.store.hasResourceBundle(b,C)?u.state[L]=2:u.state[L]<0||(u.state[L]===1?d[L]===void 0&&(d[L]=!0):(u.state[L]=1,E=!1,d[L]===void 0&&(d[L]=!0),p[L]===void 0&&(p[L]=!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){NW(m.loaded,[u],p),YW(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,L){if(l.readingCalls--,l.waitingReads.length>0){var R=l.waitingReads.shift();l.read(R.lng,R.ns,R.fcName,R.tried,R.wait,R.callback)}if(C&&L&&u<l.maxRetries){setTimeout(function(){l.read.call(l,r,o,s,u+1,p*2,d)},p);return}d(C,L)},"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=bL(bL({},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}(Xa);function AL(){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(AL,"get");function SL(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(SL,"transformOptions");function xL(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(xL,"ownKeys");function Po(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xL(Object(n),!0).forEach(function(i){xo(e,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xL(Object(n)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(n,i))})}return e}a(Po,"_objectSpread");function qW(e){var t=ZW();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 ec(this,r)},"_createSuperInternal")}a(qW,"_createSuper");function ZW(){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(ZW,"_isNativeReflectConstruct");function rg(){}a(rg,"noop");function eG(e){var t=Object.getOwnPropertyNames(Object.getPrototypeOf(e));t.forEach(function(n){typeof e[n]=="function"&&(e[n]=e[n].bind(e))})}a(eG,"bindMemberFunctions");var sg=function(e){ul(n,e);var t=qW(n);function n(){var i,r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=arguments.length>1?arguments[1]:void 0;if(Rr(this,n),i=t.call(this),cg&&Xa.call(qr(i)),i.options=SL(r),i.services={},i.logger=Oo,i.modules={external:[]},eG(qr(i)),o&&!i.isInitialized&&!r.isClone){if(!i.options.initImmediate)return i.init(r,o),ec(i,qr(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=AL();this.options=Po(Po(Po({},l),this.options),SL(o)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=Po(Po({},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(R){return R?typeof R=="function"?new R:R: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=XW);var d=new mL(this.options);this.store=new VW(this.options.resources,this.options);var m=this.services;m.logger=Oo,m.resourceStore=this.store,m.languageUtils=d,m.pluralResolver=new GW(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 HW(this.options),m.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},m.backendConnector=new zW(u(this.modules.backend),m.resourceStore,m,this.options),m.backendConnector.on("*",function(R){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,[R].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 gL(this.services,this.options),this.translator.on("*",function(R){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,[R].concat(U))}),this.modules.external.forEach(function(R){R.init&&R.init(r)})}if(this.format=this.options.interpolation.format,s||(s=rg),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(R){r[R]=function(){var F;return(F=r.store)[R].apply(F,arguments)}});var E=["addResource","addResources","addResourceBundle","removeResourceBundle"];E.forEach(function(R){r[R]=function(){var F;return(F=r.store)[R].apply(F,arguments),r}});var C=Yf(),L=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?L():setTimeout(L,0),C},"init")},{key:"loadResources",value:a(function(r){var o=this,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:rg,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=Yf();return r||(r=this.languages),o||(o=this.options.ns),s||(s=rg),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"&&OL.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=Yf();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=Po({},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 L=l.options.keySeparator||".",R;return T.keyPrefix&&Array.isArray(d)?R=d.map(function(F){return"".concat(T.keyPrefix).concat(L).concat(F)}):R=T.keyPrefix?"".concat(T.keyPrefix).concat(L).concat(d):d,l.t(R,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=Yf();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=Yf();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 mL(AL());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]:rg,l=Po(Po(Po({},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=Po({},this.services),u.services.utils={hasLoadedNamespace:u.hasLoadedNamespace.bind(u)},u.translator=new gL(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}(Xa);xo(sg,"createInstance",function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new sg(e,t)});var ee=sg.createInstance();ee.createInstance=sg.createInstance;var yq=ee.createInstance,vq=ee.dir,Tq=ee.init,Eq=ee.loadResources,bq=ee.reloadResources,Aq=ee.use,Sq=ee.changeLanguage,xq=ee.getFixedT,Pq=ee.t,Oq=ee.exists,Iq=ee.setDefaultNamespace,Cq=ee.hasLoadedNamespace,Nq=ee.loadNamespaces,Lq=ee.loadLanguages;var WR=te(uT()),GR=te(ZL()),Og=te(UR()),Qe=require("@sap-ux/vocabularies-types/vocabularies/UI"),nu=require("@sap-ux/vocabularies-types/vocabularies/Communication");var xg=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(`${xg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}, ${t.location.range}`,...n):console.log(`${xg.LogSeverityLabel[t.severity]}: ${t.message}, location: ${t.location.path}`,...n):console.log(`${xg.LogSeverityLabel[t.severity]}: ${t.message}`,...n)},"log");var B="#/definitions/",to=a((e,t,n)=>{if(!e)return;let i=`/${e}/@${t}`;return n&&(i+=`#${n}`),i},"createAnnotationPath");function No(e,t){let n=[],i;return e&&e.forEach(function(r){try{n.push((0,Og.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,GR.convert)((0,Og.merge)(...n))),i}a(No,"parseAndMergeAndConvert");var vl=a(e=>(e==null?void 0:e.value)||(e==null?void 0:e.path),"getAnnotationPropertyValue");function LT(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(LT,"evaluateCommonLabel");function Ig(e,t){let n=e.value;return e.$target&&(n=LT(e.$target.annotations,t,n)),n}a(Ig,"getLabelForPropertyPath");function Pg(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=LT(i.annotations,t,n)),n}a(Pg,"getLabelForDataField");function _H(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 LT(o.annotations,t,s)}}}else return}a(_H,"getLabel");function BR(e,t,n){let i=Pg(e,t);return n||i||(e.Value.$target?e.Value.$target.name:e.Value.value||e.Value.path)}a(BR,"getTitleForDataField");function Ei(e,t){var s,l,u,p;let n="",i,r,o="";try{let d=_H(e.Label,t);switch(e.$Type){case Qe.UIAnnotationTypes.DataField:n=BR(e,t,d);break;case Qe.UIAnnotationTypes.DataFieldWithUrl:i=Pg(e,t),n=d||i||(typeof e.Value=="string"?e.Value:e.Value.path);break;case Qe.UIAnnotationTypes.DataFieldForAnnotation:r=e,i=Pg(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 Qe.UIAnnotationTypes.DataFieldForAction:case Qe.UIAnnotationTypes.DataFieldWithAction:case Qe.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 Qe.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=Pg(e,t),n=i||e.Value.path;break;case Qe.UIAnnotationTypes.DataFieldWithNavigationPath:r=e,n=BR(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 da(e){if(e){let t=`${K.v2.FE_TEMPLATE_V2}.`;return e.split(t)[1]}}a(da,"getPageTypeV2");function RT(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(RT,"getPageTypeV4");function DH(e,t=!1){let n=`${e.term}#${e.qualifier}`;return`${t?"":"@"}${e.qualifier?n:e.term}`}a(DH,"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 wH(e){return e.substring(e.lastIndexOf(".")+1,e.length)}a(wH,"getAnnotationFromMetaPath");function MH(e,t,n){var s,l;let i=e[e.length-1],r=wH(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(MH,"determineTargetAnnotation");function VH(e,t,n){let i=t[t.length-1].split("#")[0];if(i.includes(".LineItem")){let r=e.split("::");r[r.length-1]=`${n?"":"@"}${Qe.UIAnnotationTerms.LineItem}`,e=r.join("::")}else e=i.replace("@UI",`${n?"":"@"}${K.UIVOCABULARY}`);return e}a(VH,"adjustKey");function kH(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=VH(t,u,o);let d=MH(u,n,e);if(d){let b=r===K.FioriElementsVersion.v2?"::":"#";t=DH(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(kH,"getKeyAndEntityTypeOfReferenceFacet");function HR(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!==Qe.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:L,namespace:R}=kH(n,l,p,b,r,o);if(L)return;l=E,p=C,u=R}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(HR,"getSectionFacet");var FT=a(e=>e!=null&&e.endsWith("[]")?[]:{},"prepareValueForPath"),KR=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=i&&i===p?n:p.replace("??","/");if(r!==void 0&&!o&&l.length-1===u)s[d]=r;else if(!s[d]){if(o)return;s[d]=FT(l[u+1])}s=s[d]}return s},"resolveManifestPath"),Lo=a((e,t,n,i,r=!1)=>KR(e,t,n,i,void 0,r),"getManifestSectionByPathV4"),XR=a((e,t,n,i,r)=>{KR(e,t,i,r,n)},"setManifestSectionByPathV4");function _T(e){let t,n,i;switch(e.$Type){case Qe.UIAnnotationTypes.DataField:t=vl(e.Value);break;case Qe.UIAnnotationTypes.DataFieldWithUrl:t=typeof e.Value=="string"?e.Value:vl(e.Value);break;case Qe.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 Qe.UIAnnotationTypes.DataFieldForAction:e.Inline&&(t=`DataFieldForAction:::sAction::${ft(e.Action)}`);break;case Qe.UIAnnotationTypes.DataFieldWithIntentBasedNavigation:i=vl(e.Value),t=`DataFieldWithIntentBasedNavigation:::sProperty::${i}:::sSemanticObject::${e.SemanticObject}:::sAction::${e.Action}`;break;case Qe.UIAnnotationTypes.DataFieldForIntentBasedNavigation:e.Inline&&(t=`DataFieldForIntentBasedNavigation:::sSemanticObject::${e.SemanticObject}:::sAction::${ft(e.Action)}`);break;case Qe.UIAnnotationTypes.DataFieldWithNavigationPath:i=vl(e.Value),n=vl(e.Target),t="DataFieldWithNavigationPath:::sProperty::"+i+":::sTarget::"+n;break;default:break}return t}a(_T,"getSchemaKeyOfLineItemRecord");function jH(e,t,n){return e.includes(Qe.UIAnnotationTerms.Chart)||e.includes(t+".Chart")?Qe.UIAnnotationTerms.Chart:e.includes(Qe.UIAnnotationTerms.Identification)||e.includes(t+".Identification")?Qe.UIAnnotationTerms.Identification:n&&e.includes(Qe.UIAnnotationTerms.LineItem)||e.includes(t+".LineItem")?Qe.UIAnnotationTerms.LineItem:e.includes(Qe.UIAnnotationTerms.FieldGroup)||e.includes(t+".FieldGroup")?Qe.UIAnnotationTerms.FieldGroup:e.includes(Qe.UIAnnotationTerms.DataPoint)||e.includes(t+".DataPoint")?Qe.UIAnnotationTerms.DataPoint:e.includes(Qe.UIAnnotationTerms.PresentationVariant)||e.includes(t+".PresentationVariant")?Qe.UIAnnotationTerms.PresentationVariant:void 0}a(jH,"getUIAnnotationTerm");function $H(e,t){return e.includes("com.sap.vocabularies.Communication.v1.Contact")||e.includes(t+".Contact")?nu.CommunicationAnnotationTerms.Contact:e.includes("com.sap.vocabularies.Communication.v1.Address")||e.includes(t+".Address")?nu.CommunicationAnnotationTerms.Address:void 0}a($H,"getCommunicationAnnotationTerm");function UH(e,t,n){return jH(e,t,n)||$H(e,t)}a(UH,"getAnnotationTerm");function BH(e,t,n,i,r){var p,d,m,T,b,E,C,L,R;let o=ai(K.UIVOCABULARY,r),s=e?e.key:"",l=e.entityType;switch(UH(s,o,i)){case Qe.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 Qe.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 Qe.UIAnnotationTerms.LineItem:{if(!s.includes(Qe.UIAnnotationTerms.LineItem)&&s.includes(".LineItem")){let F=s.split("::");F[F.length-1]=`@${Qe.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 Qe.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 Qe.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 Qe.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 nu.CommunicationAnnotationTerms.Contact:{n[s]={base:K.FacetBase.Contact},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}case nu.CommunicationAnnotationTerms.Address:{n[s]={base:K.FacetBase.Address},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}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(BH,"evaluateTargetAnnotation");function DT(e,t){return`/${e.fullyQualifiedName}/${t.split(e.fullyQualifiedName)[1]}`}a(DT,"getAnnotationPathUsingFullyQualifiedName");function wT(e,t,n,i,r,o=K.FioriElementsVersion.v2,s){var u;let l=HR(e,i,t,s,o,!1);if(l)switch(e.$Type){case Qe.UIAnnotationTypes.ReferenceFacet:{BH(l,e,r,i,t);break}case Qe.UIAnnotationTypes.CollectionFacet:{let p=DT(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=>{wT(m,t,n,i,d.facets,o,s)});break}}}a(wT,"addFacetToConfig");function JR(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=>{wT(m,t,d,e,r,n,i)})}return r}a(JR,"getObjectPageHeaderFacets");function Cg(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=>{wT(d,t,p,e,r,n,i)})}return r}a(Cg,"getObjectPageFacets");function MT(e){return e[K.ManifestSection.generic]||e[K.ManifestSection.ovp]?K.FioriElementsVersion.v2:K.FioriElementsVersion.v4}a(MT,"getVersionFromManifest");function WH(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(da((i=l.component)==null?void 0:i.name)===K.PageTypeV2.AnalyticalListPage){n=K.TemplateType.AnalyticalListPageV2;break}else if(da((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(WH,"determineV2Template");function iu(e){var i,r,o,s;let t,n=RT(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(iu,"determineV4PageTemplateType");function GH(e){let t;for(let n in e){let i=e[n];if(t=iu(i),t)break}return t}a(GH,"determineV4TemplateFromPages");function HH(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=GH(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(HH,"determineV4Template");function VT(e,t,n){let i;return e[K.ManifestSection.ovp]?i=K.TemplateType.OverviewPageV2:t===K.FioriElementsVersion.v2?i=WH(e,n):t===K.FioriElementsVersion.v4?i=HH(e,n):i||oe(n,{severity:K.LogSeverity.Error,message:ee.t("NOFE"),location:{path:K.MANIFESTPATH}}),i}a(VT,"getTemplateTypeFromManifest");function ga(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(ga,"addSectionTitleAndDescription");function ru(e,t,n){var i;ga(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(ru,"addTargetTitleAndSectionDescription");function ma(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,ga(t,i,n),i}a(ma,"createDefaultSection");function Ng(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=HR(m,e,t,n,i,!0);return T&&d.push(T),d},s)),s}}a(Ng,"getObjectPageFacetSection");var Tl=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("??","/");if(r[l]){if(Object.keys(r[l]).length===0){Array.isArray(r)?r.splice(Number(l),1):delete r[l],o.pop(),Tl(e,o.join("/"),n,i);return}r=r&&r[l]}})},"deleteEmptyStructure"),NT=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}`:NT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}case K.PageTypeV4.FPMCustomPage:case K.SchemaType.FPMCustomPage:{i.filename=n?`${K.SchemaType.FPMCustomPage}_${n}`:NT(K.SchemaType.FPMCustomPage),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}default:{i.filename=NT(e),i.path=`../${K.DirName.Schemas}/${i.filename}`;break}}return i.path+=".json",i},"getSchemaFilePath");function Lg(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(Lg,"generatePageId");function kT(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(kT,"findMatchingKeysByAdditionalProperties");function KH(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=kT(t,s.additionalProperties,n);(u.some(d=>d in n)||p.length)&&i.push(o)}}}a(KH,"fillArrayFromAnyOfReference");function XH(e,t,n){let i=[];if(e.$ref)i.push(e.$ref.split(B)[1]);else if(e.anyOf&&(t&&e.anyOf.forEach(r=>{KH(r,n,t,i)}),i.length===0))return;return i}a(XH,"fillArrayFromPropertyDefinition");function JH(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=Ro(t,n,i,u.targetDefinition,r,o,s),u;e.length>1&&e.forEach(L=>{L!==""&&(u.targetDefinition.properties={...u.targetDefinition.properties,...t.definitions[L].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(JH,"determineNextDefinitionFromDefinitionArray");function Ro(e,t,n,i,r,o,s){let l;if(i.type==="array")return l=Ro(e,t,n,i.items,r,o,s),l;let u=XH(i,n,e);if(u)return l=JH(u,e,t,n,r,o,s,i),l}a(Ro,"getNextTargetDefinition");var jT=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,WR.default)(e[o],r,n):e.indexOf(r)===-1&&i.push(r)}),i},"arrayCombineMerge");function Bi(e){if(e)return(e.indexOf("??")>-1?e.split("??")[1]:e).replace(/@/g,"::")}a(Bi,"convertActionKeyToStableId");function un(e){return e==null?void 0:e.split(B)[1]}a(un,"getDefinitionKey");function QR(e){return`#/definitions/${e}`}a(QR,"getDefinitionsRef");function YR(e){return e instanceof Error?e.message:String(e)}a(YR,"getErrorMessage");function ic(e,t){return e==null?void 0:e.includes(t)}a(ic,"isFeatureSupported");function Fo(e,t){t.forEach((n,i)=>{e.properties[n]&&(e.properties[n].propertyIndex=i)})}a(Fo,"updatePropertyIndices");function Rg(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(Rg,"getJSONPropertyByPath");function zR(e){return e=e.replace(K.UIVOCABULARYDOT,""),e=e.replace("com.sap.vocabularies.Communication.v1.",""),e}a(zR,"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 zo=require("@sap-ux/vocabularies-types/vocabularies/UI"),fe=te(se());var bi=te(se());var Gt=a((e,t)=>e+t.join("::"),"buildControlIdFromParent"),Fg=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 QH(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(QH,"escapeId");var qR=(n=>(n.Editable="{ui>/editable}",n.NotEditable="{= !${ui>/editable}}",n))(qR||{}),ZR=(n=>(n.Editable="{= ${ui>/editMode} === 'Editable'}",n.NotEditable="{= ${ui>/editMode} !== 'Editable'}",n))(ZR||{});function YH(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(YH,"mapBreadcrumbs");var $T=a((e,t,n,i,r)=>{let o="listReport",s=[...n];({idBreadcrumbs:t}=YH(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}`,QH(u)},"buildColumnControlId"),Wi=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 zH(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(zH,"determinePattern");var UT=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=zH(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"),zn=a((e,t,n)=>{UT(e,t,n)},"addPatternForBindingChangeOfEnumLR"),dt=a((e,t,n)=>{let i=Object.values(qR);UT(e,t,n,i)},"addPatternForBindingChangeOfEnumOP"),Gi=a((e,t,n)=>{let i=Object.values(ZR);UT(e,t,n,i)},"addPatternForBindingChangeOfEnumOPV4");function rc(){}a(rc,"doNotDelete");var b9=te(tF());var nF=Symbol("specificationMetadataKey"),v=a(e=>Reflect.metadata(nF,e),"syncRule");function qn(e,t){let n;return e&&(n=Reflect.getMetadata(nF,e,t)),n}a(qn,"getReflectMetadata");var Dr=a(e=>t=>{t.prototype.pageLayoutInformation=e},"pageLayoutInformation"),iF=Symbol("childId"),Ft=a(e=>Reflect.metadata(iF,e),"childId"),_g=a((e,t)=>Reflect.getMetadata(iF,e,t),"getChildId"),oc=a(e=>Object.getPrototypeOf(e).pageLayoutInformation,"getPageLayoutInformation"),qH=Symbol("validityMetadataKey"),O=a(e=>Reflect.metadata(qH,e),"validity");function Dg(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(Dg,"getTextForDeprecated");var uF=te(lF()),pF=te(se());var dF=uF.default.change,fF={isCustomer:!1,sapui5Version:" ",creatingTool:"SAPFioriTools",type:"propertyChange"};function gF(e,t){let n="";try{for(let i in fF)e[i]===void 0&&(e[i]=fF[i]);n=dF.createChangeString(e,t)}catch(i){console.error("Error while create flex change.",i)}return n}a(gF,"createChangeString");function Qa(e){try{return dF.parse(e)}catch{return!1}}a(Qa,"parseChangeString");function wg(e,t,n,i,r){let o=n.layer?n.layer===pF.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(wg,"fillFlexChangeContent");function Te(e,t){return gF(e,t)}a(Te,"exportToFlexChange");var ac=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 Mg(e,t,n,i){if(t&&e)for(let r in t){let o=e[r];o&&(oe(i,{severity:ac.LogSeverity.Warning,message:Dg(r,o),location:{path:"webapp/manifest.json/",range:n.split("/")}}),delete e[r])}}a(Mg,"checkDeprecatedProperties");function BT(e,t){if(e.$ref&&!e.title){let n=t.definitions[e.$ref.split(B)[1]];return BT(n,t)}else return e.title?e.title.startsWith(ac.FacetTitlePrefix)?e.title.split(ac.FacetTitlePrefix)[1].replace(/com.sap/g,"@com.sap"):e.title.replace(/com.sap/g,"@com.sap"):void 0}a(BT,"getSectionTitle");function Vg(e){let t=e.split(`${ac.DefinitionName.CustomColumns}<`);if(t[1])return t[1].split(">")[0]}a(Vg,"getTargetFromCustomColumnRef");function _o(e,t){e[t]&&Object.keys(e[t]).length<1&&delete e[t]}a(_o,"removeEmptyStructure");var _t=require("@sap-ux/vocabularies-types/vocabularies/UI");var ha=require("@sap-ux/vocabularies-types/vocabularies/UI");function kg(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(kg,"replaceSpecialChars");var sc=a(function(e){return kg(zR(e))},"prepareId");function o5(e){let t="";for(let n of e.Apply.Path)n._text&&(t&&(t+="::"),t+=n._text);return t}a(o5,"evaluateConcat");function cc(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 o5(e);if(e&&typeof e=="string")return kg(e.replace(/ /g,"_"))}a(cc,"getStableIdPartFromValue");var mF=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"),ya=a(function(e){let t="";if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldForAction)return t="DataFieldForAction::",t+=e.Action,sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldForIntentBasedNavigation)return t="DataFieldForIntentBasedNavigation::",t+=mF(e),t;if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldForAnnotation)return t="DataFieldForAnnotation::",t+=sc(e.Target.$AnnotationPath||e.Target.value),t;if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldWithAction)return t="DataFieldWithAction::",e.Value&&(t+=cc(e.Value)+"::"),t+=e.Action,sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataField)return t="DataField::",t+=cc(e.Value),sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldWithIntentBasedNavigation)return t="DataFieldWithIntentBasedNavigation::",t+=cc(e.Value)+"::",t+=mF(e),sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldWithNavigationPath)return t="DataFieldWithNavigationPath::",t+=cc(e.Value),e.Target&&e.Target.$NavigationPropertyPath&&(t+="::"+e.Target.$NavigationPropertyPath),sc(t);if(e.$Type&&e.$Type===ha.UIAnnotationTypes.DataFieldWithUrl)return t="DataFieldWithUrl::",t+=cc(e.Value),sc(t)},"getStableIdPartFromDataField");var pe=te(se());var ke=te(se());var Hi=require("@sap-ux/vocabularies-types/vocabularies/UI"),vF=require("path"),TF=te(tc());var lc="ResponsiveTableWithMultiSelect<LineItems>",fc="ResponsiveTableWithInlineDelete<LineItems>",jg="TreeTable<LineItems>",$g="AnalyticalTable<LineItems>",Ug="GridTable<LineItems>",WT=[lc,fc,jg,$g,Ug],hF="template::",Bg="template:::ObjectPageAction:::";function a5(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(a5,"addCustomColumnDefinition");function s5(e,t){let n;return e==="TableColumnActionIntentBased"?n=_T(t.lineItemRecord):e==="ToolBarActionIntentBased"||e==="FooterActionIntentBased"?n=ft(`${t.lineItemRecord.SemanticObject}::${t.lineItemRecord.Action}`):e==="TableColumnAction"&&t.lineItemRecord.$Type===Hi.UIAnnotationTypes.DataFieldForAction?n=ft(`DataFieldForAction:::sAction::${t.lineItemRecord.Action}`):n=ft(t.lineItemRecord.Action),t.lineItemId&&t.lineItemId!=="LineItems"?`${t.lineItemId}??${n}`:n}a(s5,"getActionId");function GT(e,t,n,i,r){let o,s=n.lineItemId===ke.DefinitionName.LineItems?"":"ObjectPage",l=s5(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}=uc(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(GT,"handleActionRecord");function c5(e,t,n){e!==ke.DefinitionName.LineItems&&t.Inline===!0&&(t.$Type===Hi.UIAnnotationTypes.DataFieldForAction||t.$Type===Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation)?n.push("ObjectPageTableColumnAction"):t.Inline===!0&&t.$Type===Hi.UIAnnotationTypes.DataFieldForAction?n.push("TableColumnAction"):t.Inline===!0&&t.$Type===Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("TableColumnActionIntentBased")}a(c5,"getColumnActionType");function l5(e,t){let n=[];if(!(e.$Type!==Hi.UIAnnotationTypes.DataFieldForAction&&e.$Type!==Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation))return e.Inline!==!0&&e.Determining!==!0&&e.$Type===Hi.UIAnnotationTypes.DataFieldForAction?n.push("ToolBarAction"):e.Inline!==!0&&e.Determining!==!0&&e.$Type===Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation?n.push("ToolBarActionIntentBased"):e.Determining===!0&&e.$Type===Hi.UIAnnotationTypes.DataFieldForAction?n.push("FooterAction"):e.Determining===!0&&e.$Type===Hi.UIAnnotationTypes.DataFieldForIntentBasedNavigation&&n.push("FooterActionIntentBased"),c5(t,e,n),n}a(l5,"getActionType");function EF(e,t,n){let i=_T(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}`,Xg(r.properties[i],e.lineItemRecord),Jg(e.lineItemRecord,r.properties,i)}}a(EF,"generateGenericColumn");function f5(e,t,n,i,r,o,s){switch(e){case"ToolBarAction":case"ToolBarActionIntentBased":{GT(t,n,i,e,r);break}case"FooterAction":case"FooterActionIntentBased":{o&>(t,o,i,e,r);break}case"TableColumnAction":case"TableColumnActionIntentBased":{GT(t,t.definitions[s],i,e,r);break}case"ObjectPageTableColumnAction":EF(i,t,r)}}a(f5,"handleAnyAction");function Al(e,t,n,i,r){i=i||ke.DefinitionName.LineItems;let{actions:o,footerActions:s,lineItemPath:l}=Kg(e,t,n,i);if(t){let u=0;t.forEach(p=>{let d={lineItemPath:l,lineItemRecord:p,lineItemId:i,entityType:n},m=l5(p,i);m?m.forEach(T=>{f5(T,e,o,d,u,s,i)}):EF(d,e,u),u++})}r&&(e.definitions[i].properties.custom={$ref:`${B}${r}`})}a(Al,"addLineItemsType");function u5(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(u5,"addListReportLeadingProperties");function p5(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),va(m,r)}}a(p5,"addTabkeyEnum");function Wg(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,TF.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("\\"+vF.sep,"g"),"/");let m=n+p.split(".fragment.xml")[0].replace(/\//g,".");o.push(m)}}}),va(o,(l=(s=e.definitions[r])==null?void 0:s.properties)==null?void 0:l[i])}a(Wg,"addFragmentEnum");function Sl(e,t,n,i,r,o=ke.DefinitionName.CustomColumns,s=ke.DefinitionName.CustomColumn,l){a5(e,o,s),u5(e,t,s),p5(e,s,n,l);let u=i&&i["sap.app"]&&i["sap.app"].id;Wg(e,r,u,"fragmentName",s),Wg(e,r,u,"fragmentName",ke.DefinitionName.CustomColumn),Wg(e,r,u,"cellsFragmentName",s),Wg(e,r,u,"cellsFragmentName",ke.DefinitionName.CustomColumn)}a(Sl,"addTableColumnExtensions");function bF(e,t){for(let n of t){let i=e.indexOf(n);i!==-1&&e.splice(i,1)}}a(bF,"removeElementsFromEnum");function Gg(e,t,n){e.definitions.SelectionFields={...e.definitions.SelectionFields,properties:{},additionalProperties:!1};let i=e.definitions.SelectionFields,r=to(n==null?void 0:n.fullyQualifiedName,Hi.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=no(s);s.type==="PropertyPath"&&(l=Ig(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(Gg,"addSelectionFields");function Hg(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(Hg,"isDraftEnabled");function AF(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(AF,"isEntityDeletable");function SF(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(SF,"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 xF(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(xF,"addStandardFooterActionsOP");function d5(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(d5,"copyFieldProperties");function g5(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(g5,"determineFieldDefinitionName");function m5(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(m5,"addKeysTagForDataField");function h5(e,t,n){if(e.$Type===_t.UIAnnotationTypes.DataField||e.$Type===_t.UIAnnotationTypes.DataFieldWithUrl||e.$Type===_t.UIAnnotationTypes.DataFieldWithNavigationPath)m5(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(h5,"addKeysTagToField");function y5(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(y5,"isConnectedField");function v5(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++),HT(e,t,T,`ConnectedFields::${o.qualifier}`,b.toString(),i,r,void 0,{actions:s,fields:s},o.fullyQualifiedName.split("@")[0])}}}return s}a(v5,"addConnectedFields");function PF(e,t,n){if(n)return n;let i=ft(t);return e.definitions[i].properties}a(PF,"getFieldsSchemaContainer");function HT(e,t,n,i,r,o,s,l=!0,u={},p=o.entityType.fullyQualifiedName){var E;let d=ya(n),m=s===pe.FioriElementsVersion.v2&&d&&d.includes("::")?d.split("::").splice(1).join("::"):d,T=g5(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=PF(t,`${e}${pe.DefinitionName.Actions}<${i}>`,u.actions),L=C[m]={$ref:`${B}${T}`};L[pe.SchemaTag.propertyIndex]=parseInt(r)}}else{let C=PF(t,`${e}${pe.DefinitionName.Fields}<${i}>`,u.fields);C[m]={$ref:`${B}${T}`,propertyIndex:parseInt(r)},y5(n)&&(b=v5(e,t,n,o,s))}t.definitions[T]={type:"object",properties:b,description:Ei(n,o.entityType),additionalProperties:!1},h5(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,Xg(t.definitions[T],n),d5(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(HT,"addField");function T5(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(T5,"determineTargetIdOfForm");function E5(e,t,n,i,r,o){if(e.base===pe.FacetBase.Identification)for(let s in e.target){let l=e.target[s];l&&HT(t,n,l,i,s,e,r,o)}else for(let s in e.target.Data){let l=e.target.Data[s];HT(t,n,l,i,s,e,r)}}a(E5,"addFieldsToFormDefinition");function b5(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]=to(e.entityType.fullyQualifiedName,e.target.term,e.target.qualifier))}a(b5,"addTagsToFormDefinition");function Qg(e,t,n,i,r,o){if(!t.target)return;let s=T5(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},b5(t,i,l),i.definitions[u]={type:"object",properties:{},description:"Fields",additionalProperties:!1},i.definitions[u][pe.SchemaTag.isViewNode]=!0,E5(t,e,i,s,r,d),s}a(Qg,"handleForm");function KT(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(KT,"replaceAlias");function Yg(e,t){let n=KT(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(Yg,"getActionNameAndId");function OF(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:OF(o.pages,t)}}a(OF,"isFirstObjectPage");function zg(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&&OF(r,t)&&!Hg(l)&&xF(e,o),delete e.definitions[pe.DefinitionName.ObjectPageFooterActions],delete e.definitions[`${pe.DefinitionName.ObjectPageFooter}<${pe.DefinitionName.ObjectPageFooterActions}>`]}a(zg,"addFooterActions");function qg(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(qg,"addHeaderActions");function Zg(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(Zg,"addCommonHeaderSchema");function IF(e,t){return e?t.entitySets.find(n=>n.entityType.fullyQualifiedName===e.fullyQualifiedName):void 0}a(IF,"determineEntitySetOfEntityType");var ur=require("@sap-ux/vocabularies-types/vocabularies/UI");var qe=te(se());function va(e,t){t&&e.length>0&&(e.length>1?t.enum=e:t.const=e[0])}a(va,"addEnumToSchema");function JT(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)}}va(r,n)}a(JT,"addEnumForValidAnnotations");function Ya(e,t,n){let i=t.definitions[n].properties[qe.SchemaTag.annotationPath],r=[ur.UIAnnotationTerms.SelectionVariant,ur.UIAnnotationTerms.SelectionPresentationVariant];JT(e,r,i)}a(Ya,"addEnumForSingleTabVariant");function CF(e,t,n){var o;let i=(o=e.definitions[t])==null?void 0:o.properties.annotationPath,r=[ur.UIAnnotationTerms.SelectionVariant,ur.UIAnnotationTerms.SelectionPresentationVariant];JT(n.entityType,r,i)}a(CF,"addEnumForMultiTabVariant");function NF(e,t,n){let i=t.definitions[n].properties.entitySet,r=[];e.entitySets.forEach(o=>{r.push(o.name)}),va(r,i)}a(NF,"addEnumForVariantEntitySet");function LF(e,t,n){let i=t.definitions[n].properties.annotationPath,r=[ur.UIAnnotationTerms.SelectionVariant];JT(e,r,i)}a(LF,"addEnumForFilterBarAnnotationPath");function tm(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(tm,"addDefinitionForRelatedFacetKeys");function Pl(e){return e.replace("#","::")}a(Pl,"getFacetKeyInSchema");function RF(e,t){return`${e}<${Pl(t)}>`}a(RF,"getFacetDefinitionKey");function Dt(e,t,n,i=!0,r){let o=t;if(i&&(o=RF(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 em(e,t,n){let i;return t===qe.DefinitionName.LineItems||t==="LineItemsOfSPV::LineItem"||t===`@${ur.UIAnnotationTerms.LineItem}`?i=`${B}${n}`:(i=`${B}${n}<${t}>`,Dt(n,t,e,!0)),i}a(em,"getCustomExtensionDefinitionName");function Kg(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=em(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=em(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=to(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(Kg,"addCommonLineItemDefinitions");function FF(e){return e.substring(e.lastIndexOf(".")+1).replace(/Type$/,"")}a(FF,"getDataTypeFromAnnotation");function nm(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=FF(e.$Type)),t}a(nm,"determineDataTypeOfTarget");function no(e){var n,i,r;let t;try{return e.Value?(n=e.Value.$target)!=null&&n.type?t=e.Value.$target.type.replace("Edm.",""):t="String":e.Target?t=nm((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=FF(e.$Type):e.type&&(t=e.type),t}catch{return t}}a(no,"determineDataType");function Xg(e,t){let n=no(t);n&&(e[qe.SchemaTag.dataType]=n)}a(Xg,"addDataTypeToDefinition");function Bn(e,t){return`${B}${RF(e,t)}`}a(Bn,"getFacetDefinitionLink");function za(e,t,n){let i=n?`${t}<${n}>`:t;e.$ref=`${B}${i}`}a(za,"addDefinitionRef");function im(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(im,"getFacetAnnotationPath");function ou(e,t,n,i,r,o,s=""){let l=`ObjectPage${r}${e.base}${s}`,u=`ObjectPage${o}${e.base}${s}`;n.properties[t]={$ref:Bn(o?u:l,t)};let p=Dt(o?u:l,t,i,!0,o?u:void 0);ga(e,p,t),p[qe.SchemaTag.annotationPath]=e.annotationPath,p[qe.SchemaTag.isViewNode]=!0}a(ou,"handleAddressContact");function XT(e,t,n){typeof e=="object"&&(e[t]=n)}a(XT,"updateSchemaProperty");function Ol(e,t,n=ft("")){let i=t.entityProperties.map(o=>o.name),r=e.definitions[`${qe.DefinitionName.Fields4Dialog}${n}`];XT(r.properties.fields.items,"enum",i)}a(Ol,"addFieldsType");function A5(e,t){if(!(!t||!e))for(let n of t){let i=e.find(r=>r.name===n);if(i)return i}}a(A5,"findFirstSchemaDefinitionKey");function rm(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=A5(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(rm,"getEnumEntry");function qa(e,t,n,i){var s;if(typeof t!="object")return;let r=[];for(let l in t.properties){if((i==null?void 0:i.excludeKey)===l)continue;let u=t.properties[l],p=rm(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];XT(l,"oneOf",r)}else XT(o,"oneOf",r)}a(qa,"addDescriptiveEnumDefinition");function uc(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(uc,"getActionKey");function Jg(e,t,n){var i,r,o;try{if(e.Value)t[n][qe.SchemaTag.keys]=[{name:qe.SchemaKeyName.value,value:cc(e.Value)}];else if(e.$Type===ur.UIAnnotationTypes.DataFieldWithAction||e.$Type===ur.UIAnnotationTypes.DataFieldForAction){let{key:s,ns:l}=uc(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===ur.UIAnnotationTypes.DataFieldForAnnotation){let{key:s}=uc(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===ur.UIAnnotationTypes.DataFieldForIntentBasedNavigation||e.$Type===ur.UIAnnotationTypes.DataFieldWithIntentBasedNavigation){let s=typeof e.Action=="string"?e.Action:e.Action.path,{key:l,ns:u}=uc(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(Jg,"addKeyToDefinition");var Il=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 DF="1.96.56";var Za=class Za{constructor(){Za.distTagsOfSpec.length===0&&(Za.distTagsOfSpec=this.getDistTagsOfVersion())}static resetDistTagsOfSpec(){Za.distTagsOfSpec=[]}getSpecVersion(){return DF}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:Il.LogSeverity.Info,message:r,location:{path:Il.MANIFESTPATH}});return}let i=t==="latest"?"latest":t.substring(0,t.lastIndexOf("."));if(Za.distTagsOfSpec.findIndex(r=>r.endsWith(i))===-1){let r=ee.t("WRONGMINUI5VERSION",{minUI5Version:t});oe(n,{severity:Il.LogSeverity.Warning,message:r,location:{path:Il.MANIFESTPATH}})}}};a(Za,"DistTagEvaluator"),Za.distTagsOfSpec=[];var au=Za;var le=te(se());var hn=te(se());var Fn=te(se());function O5(e){var n;let t=(n=e.view.name)==null?void 0:n.split(".");return t[t.length-1]}a(O5,"getCustomPageName");function wF(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(wF,"getViewType");function I5(e,t){return wF(e,t).toLowerCase()}a(I5,"getViewTypeExtension");function C5(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.viewPath)||(r==null?void 0:r.viewPath),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(C5,"getViewPath");function N5(e,t){let n=e.entitySet||O5(e),{viewPath:i,fileName:r}=C5(e,t,[n]),o=I5(e,t);return[...i,`${r}.view.${o}`].join("/")}a(N5,"getCustomPagePath");var QT=class QT{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=wF(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=N5(t,this.app);n.$filePath=i}};a(QT,"AppProvider");var es=QT;var We=te(se());var pc=te(se());function om(e,t,n){if(t.controlType.endsWith(pc.DefinitionName.Table))e[t.propertyId]=t.newValue;else if(t.controlType===pc.ControlType.TableColumn){if(!(n==null?void 0:n.definitions[pc.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",pc.VOCWITHCOLONS).replace("/",":2f");e.columns||(e.columns={}),e.columns[l]||(e.columns[l]={}),e.columns[l][t.propertyId]=t.newValue}}a(om,"addFlexForTable");var Cl=te(se());var Wn=a((e,t)=>{let n=e;return t.split("/").forEach(function(i){n[i]||(n[i]={}),n=n&&n[i]}),n||{}},"ensureManifestSectionByPathV2"),MF=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"),VF=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 YT(e){return{component:{name:"sap.suite.ui.generic.template."+e}}}a(YT,"getNewPageTemplate");function L5(e,t,n){if(e)for(let i in e){let r=e[i];if(r.entitySet===t&&r.navigationProperty===n)return r}}a(L5,"findPageInManifest");function R5(e,t,n){if(e[t]&&(n.pages&&!Object.values(n.pages)[0]&&(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=YT(e[t].pageType)),n.pages||(n.pages={[`${e[t].pageType}|${e[t].entitySet}`]:YT(e[t].pageType)}),!Array.isArray(n.pages))){let i=L5(n.pages,e[t].entitySet,e[t].navigationProperty);i||(n.pages[`${e[t].pageType}|${e[t].entitySet}`]=i=YT(e[t].pageType)),zT(t,e,i)}}a(R5,"transformPageFromAssociation");function F5(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(F5,"deletePage");function zT(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)R5(t,r,n);Array.isArray(n.pages)||F5(n,t,i)}}a(zT,"transformPageToNewManifestV2");var A0=te(tc());var Rb={};qs(Rb,{ALPAnalyticalTable:()=>ME,ALPGridTable:()=>wE,ALPResponsiveTable:()=>DE,Action:()=>$E,AnalyticalCard:()=>_l,AnalyticalCardSettings:()=>lm,AnalyticalCardSettingsv4:()=>iE,AnalyticalListPageFilterBar:()=>pE,AnalyticalTable:()=>_E,BaseCustomSection:()=>wu,ChartSettings:()=>rb,ChartSettingsType:()=>ZT,CommonCardSettings:()=>rs,CommonFilterBar:()=>yu,CommonTableSettings:()=>ls,CommonTableSettingsForSections:()=>Pc,CreateWithFilters:()=>IE,CustomCard:()=>tE,DataLoadSettings:()=>CE,DateRange:()=>cE,DefaultDateRange:()=>lE,DefaultSpanObject:()=>eE,FRAGMENT_DEFINITION:()=>ko,Field:()=>sE,FieldForAction:()=>yE,Fields4Dialog:()=>NE,Fields4DialogOP:()=>Pb,FooterAction:()=>BE,FormAction:()=>hE,GlobalChartSettings:()=>Sb,GlobalTableSettings:()=>Nb,GridTable:()=>VE,HeaderActionStandard:()=>XE,KPISettings:()=>ob,LinkListCardSettings:()=>oE,LinklistCard:()=>gu,ListCard:()=>Fl,ListCardSettings:()=>nE,ListReportFilterBar:()=>dE,ObjectPageAnalyticalTable:()=>Ob,ObjectPageChart:()=>Ab,ObjectPageCustomSectionFragment:()=>Mu,ObjectPageCustomSectionView:()=>Vu,ObjectPageFooterAction:()=>cb,ObjectPageFooterActionStandard:()=>QE,ObjectPageGridTable:()=>Ib,ObjectPageHeader:()=>ab,ObjectPageHeaderAction:()=>sb,ObjectPageHeaderActionStandard:()=>JE,ObjectPageLayout:()=>fb,ObjectPageResponsiveTable:()=>Oc,ObjectPageSectionAddressV2:()=>mb,ObjectPageSectionChartV2:()=>db,ObjectPageSectionContactV2:()=>hb,ObjectPageSectionFormV2:()=>pb,ObjectPageSectionTableV2:()=>gb,ObjectPageSectionV2:()=>ub,ObjectPageSubSectionChartV2:()=>Tb,ObjectPageSubSectionContactV2:()=>Eb,ObjectPageSubSectionFormV2:()=>vb,ObjectPageSubSectionTableV2:()=>bb,ObjectPageSubSectionV2:()=>yb,ObjectPageToolBarAction:()=>Lb,ObjectPageTreeTable:()=>Cb,QuickVariantSelection:()=>LE,QuickVariantSelectionOP:()=>xb,QuickVariantSelectionX:()=>RE,ResponsiveTable:()=>hc,SAP_UI_TABLE:()=>hm,SaveAndEditOP:()=>KE,SelectionFieldDateSettings:()=>fE,SelectionFields:()=>uE,Share:()=>WE,ShareOP:()=>GE,StackCard:()=>du,StackCardSettings:()=>rE,TableALP:()=>kl,TableCard:()=>Dl,TableCardSettings:()=>aE,TableColumn:()=>qE,TableColumnAction:()=>Mm,TableColumnActionIntentBased:()=>ZE,TableCustomColumn:()=>eb,ToolBar:()=>nb,ToolBarAction:()=>UE,TreeTable:()=>FE,UpAndDownNavigationOP:()=>HE,buildIntentBasedActionId:()=>YE,deleteColumnFromFragment:()=>Tm,deleteType:()=>$l,exportCreateParametersFields:()=>Om,exportCustomColumnsToFragment:()=>OE,exportDateSettings:()=>GF,exportDateSettingsField:()=>HF,exportDefaultSpan:()=>UF,exportType:()=>jl,getChartSectionControlId:()=>y0,getContactSubSectionControlId:()=>T0,getCustomColumnPath:()=>Em,getFormSectionControlId:()=>h0,getRootCustomColumnFromFragmentJSON:()=>Eu,getSectionControlId:()=>xc,getSmartChartControlId:()=>Nu,getSmartTableControlId:()=>cs,getSubSectionControlId:()=>v0,getTableSectionControlId:()=>m0,importCreateParameters:()=>Pm,importDateSettings:()=>gE});var Zn=te(se());var Me=a(e=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings`,"getAppSettingPathV2"),dc=a(e=>Me(e)+"/tableSettings","getTableSettingPathV2"),kF=a(e=>Me(e)+"/chartSettings","getChartSettingPathV2"),jF=a(e=>Me(e)+"/dataLoadSettings","getDataLoadSettingPathV2");var mn=a(()=>Zn.ManifestSection.ovp,"getOVPsettingPath"),Pe=a(e=>{let t=[Zn.ManifestSection.ovp+"/cards"];return e.forEach(n=>{n in Zn.v2.CardSettingsType?t.push("settings"):t.push(n)}),t.pop(),t.join("/")},"getCardSettingsPath");var gc=a((e,t)=>`${Zn.ManifestSection.generic}/pages/${e[0]}/component/settings/keyPerformanceIndicators/${t}`,"getKPISettingsPath"),cm=a(e=>{let t=[Zn.ManifestSection.generic];return e.forEach(n=>{t.push("pages/"+n)}),t.join("/")},"getAppRootSettingOBJPath"),Ki=a(e=>{let t=[];return t.push(cm(e)),t.push("component/settings"),t.join("/")},"getAppSettingOBJPathV2"),Do=a(e=>Ki(e)+"/tableSettings","getGlobalTableSettingsPathV2"),ro=a((e,t,n)=>{let i=[];i.push(cm(e));let r=n.replace(Zn.VOCWITHCOLONS,"::com.sap.vocabularies");return i.push("component/settings/sections/"+r),i.join("/")},"getAppSettingOBJsectionPathV2"),wr=a((e,t,n)=>ro(e,{},n)+"/tableSettings","getTableSettingsOBJsectionPathV2"),$F=a((e,t,n)=>ro(e,{},n)+"/chartSettings","getChartSettingsOBJsectionPathV2"),qT=a(()=>`sap.ui5/extends/extensions/${Zn.v2.SAPUI5_VIEW_EXTENSION}/${Zn.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`,"getViewExtensionsPath"),Ta=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),`${qT()}/${i.join("/")}`},"getObjectPageCustomSectionPath"),sm=class sm{};a(sm,"ApplicationV2"),y([Ft("settings")],sm.prototype,"settings",2);var am=sm,io=class io{};a(io,"AppSettings"),y([v({manifest:{path:()=>"sap.app"}})],io.prototype,"title",2),y([v({manifest:{path:()=>"sap.app"}})],io.prototype,"description",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.50.0"})],io.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.46.0"})],io.prototype,"forceGlobalRefresh",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.74.0"})],io.prototype,"tableColumnVerticalAlignment",2),y([v({manifest:{path:()=>"sap.ui5"}}),O({since:"1.56.0"})],io.prototype,"flexEnabled",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.96.0"})],io.prototype,"draftDiscardConfirmationSettings",2),y([v({manifest:{path:()=>Zn.GENERICAPPSETTINGS}}),O({since:"1.96.0"})],io.prototype,"statePreservationMode",2);var ts=io;function UF(e,t,n){let i=t[n];i==="auto"&&(e[n]=i)}a(UF,"exportDefaultSpan");var fm=class fm{};a(fm,"ChartSettingsType"),y([v({manifest:{path:()=>mn()+"/chartSettings"}})],fm.prototype,"showDataLabel",2);var ZT=fm,ns=class ns{};a(ns,"DefaultSpanObject"),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"cols",2),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"rows",2),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"showOnlyHeader",2),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"minimumTitleRow",2),y([v({manifest:{path:t=>Pe(t)}})],ns.prototype,"minimumSubTitleRow",2);var eE=ns,$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:UF}})],$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 rs=$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 tE=Nl,is=class is extends rs{};a(is,"ListCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"showLineItemDetail",2),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"imageSupported",2),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"enableAddToInsights",2),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"listFlavor",2),y([v({manifest:{path:t=>Pe(t)}})],is.prototype,"listType",2);var nE=is,su=class su{};a(su,"ListCard"),y([v({manifest:{path:t=>Pe(t)}})],su.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],su.prototype,"template",2);var Fl=su,wo=class wo extends rs{};a(wo,"AnalyticalCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"chartAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"ignoreSapText",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"enableAddToInsights",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"navigation",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"valueSelectionInfo",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"chartProperties",2),y([v({manifest:{path:t=>Pe(t)}})],wo.prototype,"colorPalette",2);var lm=wo,um=class um extends lm{};a(um,"AnalyticalCardSettingsv4"),y([v({manifest:{path:t=>Pe(t)}})],um.prototype,"measureAggregate",2);var iE=um,cu=class cu{};a(cu,"AnalyticalCard"),y([v({manifest:{path:t=>Pe(t)}})],cu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],cu.prototype,"template",2);var _l=cu,Ll=class Ll extends rs{};a(Ll,"StackCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"itemText",2),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"objectStreamCardsNavigationProperty",2),y([v({manifest:{path:t=>Pe(t)}})],Ll.prototype,"objectStreamCardsSettings",2);var rE=Ll,lu=class lu{};a(lu,"StackCard"),y([v({manifest:{path:t=>Pe(t)}})],lu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],lu.prototype,"template",2);var du=lu,Rl=class Rl extends rs{};a(Rl,"LinkListCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"listFlavor",2),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"headerAnnotationPath",2),y([v({manifest:{path:t=>Pe(t)}})],Rl.prototype,"staticContent",2);var oE=Rl,fu=class fu{};a(fu,"LinklistCard"),y([v({manifest:{path:t=>Pe(t)}})],fu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],fu.prototype,"template",2);var gu=fu,uu=class uu extends rs{};a(uu,"TableCardSettings"),y([v({manifest:{path:t=>Pe(t)}})],uu.prototype,"showLineItemDetail",2),y([v({manifest:{path:t=>Pe(t)}})],uu.prototype,"enableAddToInsights",2);var aE=uu,pu=class pu{};a(pu,"TableCard"),y([v({manifest:{path:t=>Pe(t)}})],pu.prototype,"model",2),y([v({manifest:{path:t=>Pe(t)}})],pu.prototype,"template",2);var Dl=pu;var BF=te(se());var _5=a((e,t,n,i,r)=>{let o=Yn(n[1],r),s=n.slice(-1)[0];return Gt(e,[o,s,"GroupElement"])},"getSmartFieldControlId"),pm=class pm{};a(pm,"Field"),y([v({flex:{controlId:_5,controlType:()=>BF.ControlType.GroupElement,createFlexChange:Te},generate:dt})],pm.prototype,"visible",2);var sE=pm;var mc=te(se());function gE(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(gE,"importDateSettings");function GF(e,t,n){e[n]=JSON.parse(JSON.stringify(t[n]));let i=t[n];n==="selectedValues"&&(e[n]=i.join())}a(GF,"exportDateSettings");function D5(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(D5,"importDateSettingsField");function HF(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(HF,"exportDateSettingsField");var wl=class wl{};a(wl,"DateRange"),y([v({manifest:{path:t=>Me(t)+mc.DATESETTINGSPATH}}),O({since:"1.77.0"})],wl.prototype,"useDateRange",2),y([v({manifest:{path:t=>Me(t)+mc.DATESETTINGSPATH,import:gE,export:GF}}),O({since:"1.77.0"})],wl.prototype,"selectedValues",2),y([v({manifest:{path:t=>Me(t)+mc.DATESETTINGSPATH}}),O({since:"1.77.0"})],wl.prototype,"exclude",2);var cE=wl,dm={controlId:Gt,controlType:()=>mc.ControlType.SmartFilterBar,createFlexChange:Te},mu={path:(e,t,n)=>`${Me(e)}${mc.DATESETTINGSPATH}/fields/${n}`},WF={...mu,import:D5,export:HF},gm=class gm{};a(gm,"DefaultDateRange"),y([v({manifest:mu}),O({since:"1.90.0"})],gm.prototype,"operation",2);var lE=gm,os=class os{};a(os,"SelectionFieldDateSettings"),y([v({manifest:WF}),O({since:"1.77.0"})],os.prototype,"selectedValues",2),y([v({manifest:mu}),O({since:"1.77.0"})],os.prototype,"exclude",2),y([v({manifest:mu}),O({since:"1.77.0"})],os.prototype,"customDateRangeImplementation",2),y([v({manifest:WF}),O({since:"1.77.0"})],os.prototype,"filter",2),y([v({manifest:mu}),O({since:"1.90.0"})],os.prototype,"defaultValue",2);var fE=os,mE=class mE{};a(mE,"SelectionFields");var uE=mE,oo=class oo{};a(oo,"CommonFilterBar"),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.38.0"})],oo.prototype,"smartVariantManagement",2),y([v({flex:dm}),O({since:"1.40.0"})],oo.prototype,"liveMode",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.48.0"})],oo.prototype,"variantManagementHidden",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.52.0"})],oo.prototype,"subTitleIfVariantMgmtHidden",2),y([v({manifest:{path:t=>Me(t)+"/filterSettings",import:gE}}),O({since:"1.77.0"})],oo.prototype,"dateSettings",2),y([v({flex:dm}),O({since:"1.28.0"})],oo.prototype,"showClearOnFB",2),y([v({flex:dm}),O({since:"1.38.0"})],oo.prototype,"showFilterConfiguration",2),y([v({flex:dm}),O({since:"1.28.0"})],oo.prototype,"showRestoreOnFB",2);var yu=oo,hu=class hu extends yu{};a(hu,"AnalyticalListPageFilterBar"),y([v({manifest:{path:t=>Me(t)}})],hu.prototype,"showGoButtonOnFilterBar",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.60.0"})],hu.prototype,"filterDefaultsFromSelectionVariant",2);var pE=hu,mm=class mm extends yu{};a(mm,"ListReportFilterBar"),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.86.0"})],mm.prototype,"annotationPath",2);var dE=mm;var vE=te(se());var w5=a((e,t,n,i,r)=>{if(i()===vE.ControlType.Button){let o=n[n.length-1],s=Yn(n[1],r);return`${e}action::${o}::${s}::FormAction`}return Gt(e,t)},"getFormActionButtonId"),Mo={controlId:w5,controlType:()=>vE.ControlType.Button,createFlexChange:Te},as=class as{};a(as,"FormAction"),y([v({flex:Mo,generate:dt})],as.prototype,"visible",2),y([v({flex:Mo})],as.prototype,"tooltip",2),y([v({flex:Mo})],as.prototype,"icon",2),y([v({flex:Mo})],as.prototype,"activeIcon",2),y([v({flex:Mo})],as.prototype,"type",2);var hE=as,ss=class ss{};a(ss,"FieldForAction"),y([v({flex:Mo,generate:dt})],ss.prototype,"visible",2),y([v({flex:Mo})],ss.prototype,"tooltip",2),y([v({flex:Mo})],ss.prototype,"icon",2),y([v({flex:Mo})],ss.prototype,"activeIcon",2),y([v({flex:Mo}),O({since:"1.73.0"})],ss.prototype,"type",2);var yE=ss;var Qt=te(se()),ao=te(tc());var bE=require("path"),Z5=te(se()),o0=te(r0()),a0=require("fs");var e8=(0,bE.join)(__dirname,"templates");var t8=a((e,t)=>{let n=(0,a0.readFileSync)(e,"utf8");return(0,o0.render)(n,t)},"renderTemplate");var AE=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 t8((0,bE.join)(e8,t+".xml"),n)},"getSingleColumnContent"),SE=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=AE(i,t);n=n+`
|
|
290
290
|
`+r}return n+`
|
|
291
291
|
</core:FragmentDefinition>`},"getColumnFragmentContent"),xE=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 ym=require("path");var ko="core:FragmentDefinition",hm="sap.ui.table",PE=new Map([[Qt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Qt.ViewTemplateType.TreeTableColumnsExtension,{namespace:hm,name:"Column"}],[Qt.ViewTemplateType.GridTableColumnsExtension,{namespace:hm,name:"Column"}],[Qt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:hm,name:"AnalyticalColumn"}]]),n8=new Map([[Qt.v2.FE_TEMPLATE_V2_LIST_REPORT,Qt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Qt.v2.FE_TEMPLATE_V2_ALP,Qt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Qt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Qt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),c0={type:"element",name:"Text",attributes:{text:"Placeholder"}},i8=JSON.stringify(c0);function r8(e,t){let n=t?e[ko]._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(r8,"getFragmentNamespaces");function s0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}a(s0,"getTagName");function vm(e,t,n=e){let i=r8(n,!!(t||n!==e));if(t){let r=PE.get(t);return s0(r,i.get(r.namespace))}else{let r=PE.keys();for(let o of r){let s=PE.get(o),l=i?s0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}a(vm,"getTagNameFromFragmentJSON");function Eu(e,t=e){let n=vm(e,void 0,t);return e[n]}a(Eu,"getRootCustomColumnFromFragmentJSON");function o8(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(o8,"addP13nData");function l0(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=o8(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(l0,"handleFragmentColumn");function a8(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]+Qt.FRAGMENTNAMEPART+o;for(let u of t){let p=u.dataSourceUri.split(ym.sep);if(p[p.length-1]===l){let d=JSON.parse((0,ao.xml2json)(u.fileContent,{compact:!0})),m=vm(d[ko]);m&&(delete d[ko][m],u.fileContent=(0,ao.json2xml)(JSON.stringify(d),{compact:!0,spaces:4}));break}}}a(a8,"deleteColumnsFromFragment");function f0(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===i8&&(e.splice(n,1),t-=1,t===0));n++);}a(f0,"deleteNumberOfCells");function s8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),o=r[r.length-1]+Qt.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&&f0(l.elements[0].elements,u.length),s.fileContent=(0,ao.json2xml)(JSON.stringify(l),{spaces:4});break}}a(s8,"deleteCellsFromFragment");function Tm(e,t,n,i){if(i){a8(e,i,t,n);let r=t.replace(Qt.ViewTemplateType.ResponsiveTableColumnsExtension,Qt.ViewTemplateType.ResponsiveTableCellsExtension),o=e[r];o&&s8(o,i,n)}}a(Tm,"deleteColumnFromFragment");function c8(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(c0)}a(c8,"addNewColumnsInFragment");function l8(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)c8(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;f0(o,r)}e.fileContent=(0,ao.json2xml)(JSON.stringify(n),{spaces:4})}}a(l8,"updateNonEmptyCellsFragment");function f8(e,t,n){let i=!1;for(let r of e){let o=r.dataSourceUri.split(ym.sep);if(o[o.length-1]===t){i=!0,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=xE(n):l8(r,n);break}}return i}a(f8,"updateCellsFragment");function u8(e,t,n,i,r){var d;let o,s,l=t.manifest,u=Wn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:Qt.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,ym.sep))+Qt.FRAGMENTNAMEPART+p}if(e.indexOf(Qt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){let m=e.replace(Qt.ViewTemplateType.ResponsiveTableColumnsExtension,Qt.ViewTemplateType.ResponsiveTableCellsExtension),T=Wn(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()):VF(l,m)}return{manifestSection:u,lsFilePath:o,cellsFragmentName:s,fragmentType:p}}a(u8,"exportCustomColumnsToManifest");function p8(e,t,n,i,r){let o=AE(e,t);if(o){let s=JSON.parse((0,ao.xml2json)(o,{compact:!0})),l=Eu(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(p8,"insertNewColumnInFragment");function d8(e,t){let n=[];for(let i=0;i<e.length;i++)l0(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}a(d8,"processCustomColumnInArray");function g8(e,t,n){if(e){if(Array.isArray(e))d8(e,t);else if(!l0(e,t)){let r=vm(n[ko]);r&&(delete n[ko][r],e=void 0)}}return e}a(g8,"maintainExistingColumnInFragment");function m8(e,t,n,i,r){for(let o of e)if(o.fragmentName.endsWith(t)){let s=e.indexOf(o);n=p8(o,i,n,r,s)}return n}a(m8,"insertNewColumnsInFragment");function h8(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=SE(i,r);else{let u=JSON.parse((0,ao.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Eu(u[ko]),l=g8(l,i,u),l=m8(i,n,l,r,u);let d=vm(u,r);u[ko][d]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ao.json2xml)(m,{compact:!0,spaces:4}))}break}return o}a(h8,"updateColumnsInFragment");function OE(e,t,n,i,r,o){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:d}=u8(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]+Qt.FRAGMENTNAMEPART+d;let L=p==null?void 0:p.split("."),R=L?L[L.length-1]:null,F=R?R+Qt.FRAGMENTNAMEPART+d:null,U=h8(s,T,b,m,r),J=!1;if(p?J=f8(s,F,n):J=!0,!U){let re={fileContent:SE(m,r),dataSourceUri:u};e.fragments.push(re)}if(!J){let re={fileContent:xE(n),dataSourceUri:u.replace(T,F)};e.fragments.push(re)}}a(OE,"exportCustomColumnsToFragment");var Em=a((e,t,n,i)=>{var u,p,d,m;let r=n8.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 pn=te(se());var cs=a((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+pn.PropertyName.table:Gt(e,t),"getSmartTableControlId");function Pm(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(Pm,"importCreateParameters");function Om(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(Om,"exportCreateParametersFields");function y8(e,t){t.variants&&(Object.keys(t.variants).length>0?v8(e,t):delete e.variants)}a(y8,"exportQuickVariantSelectionX");function v8(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(v8,"exportVariants");var bm=class bm{};a(bm,"CreateWithFilters"),y([v({manifest:{path:t=>Me(t)+"/createWithFilters"}})],bm.prototype,"strategy",2);var IE=bm;function Su(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(Su,"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 Am=class Am{};a(Am,"DataLoadSettings"),y([v({manifest:{path:t=>jF(t)}}),O({since:"1.75.2"})],Am.prototype,"loadDataOnAppLaunch",2);var CE=Am,Sm=class Sm{};a(Sm,"Fields4Dialog"),y([v({manifest:{path:t=>pc(t)+"/createWithParameterDialog",export:Om}}),O({since:"1.77.0"})],Sm.prototype,"fields",2);var NE=Sm,bu=class bu{};a(bu,"QuickVariantSelection"),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATH}}),O({since:"1.48.0"})],bu.prototype,"showCounts",2),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATH}}),O({since:"1.48.0"})],bu.prototype,"variants",2);var LE=bu,Ml=class Ml{};a(Ml,"QuickVariantSelectionX"),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATHX}}),O({since:"1.48.0"})],Ml.prototype,"showCounts",2),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATHX}}),O({since:"1.48.0"})],Ml.prototype,"enableAutoBinding",2),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATHX,export:y8}}),O({since:"1.48.0"})],Ml.prototype,"variants",2);var RE=Ml,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=>pc(t),import:Pm}}),O({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:Gt,controlType:()=>pn.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.38.0"})],si.prototype,"showTablePersonalisation",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.26.0"})],si.prototype,"useExportToExcel",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.50.0"})],si.prototype,"exportType",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.SmartTable,createFlexChange:Te}})],si.prototype,"fitContainer",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.48.0"})],si.prototype,"quickVariantSelection",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.48.0"})],si.prototype,"quickVariantSelectionX",2),y([v({manifest:{path:t=>pc(t)}}),O({since:"1.38.0"})],si.prototype,"multiSelect",2),y([v({manifest:{path:t=>pc(t)}}),O({since:"1.70.0"})],si.prototype,"selectAll",2),y([v({manifest:{path:t=>pc(t)}}),O({since:"1.70.0"})],si.prototype,"selectionLimit",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.75.2"})],si.prototype,"dataLoadSettings",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.42.0"})],si.prototype,"condensedTableLayout",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.56.0"})],si.prototype,"enableTableFilterInPageVariant",2),y([Ft("toolBar")],si.prototype,"toolBar",2);var ls=si,jo=class jo extends ls{};a(jo,"ResponsiveTable"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],jo.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.54.0"})],jo.prototype,"createWithFilters",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.Table,createFlexChange:Te},generate:zn}),O({since:"1.52.0"})],jo.prototype,"popinLayout",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.Table,createFlexChange:Te}})],jo.prototype,"includeItemInSelection",2),y([v({manifest:{path:t=>pc(t)}}),O({since:"1.77.0"})],jo.prototype,"inlineDelete",2),y([v({manifest:{path:()=>pn.GENERICAPPSETTINGS}}),O({since:"1.63.0"})],jo.prototype,"showDraftToggle",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.Table,createFlexChange:Te}}),O({since:"1.16.0"})],jo.prototype,"growingThreshold",2);var mc=jo,Au=class Au extends ls{};a(Au,"TreeTable"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],Au.prototype,"type",2),y([v({manifest:{path:()=>pn.GENERICAPPSETTINGS}}),O({since:"1.63.0"})],Au.prototype,"showDraftToggle",2);var FE=Au,Mr=class Mr extends ls{};a(Mr,"AnalyticalTable"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],Mr.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}})],Mr.prototype,"qualifier",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.38.0"}),v({manifest:{path:t=>Me(t)}})],Mr.prototype,"defaultContentView",2),y([v({manifest:{path:t=>Me(t)}})],Mr.prototype,"defaultFilterMode",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.60.0"})],Mr.prototype,"contentTitle",2),y([v({manifest:{path:t=>Me(t)}})],Mr.prototype,"autoHide",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.78.0"})],Mr.prototype,"allFiltersAsInParameters",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.54.0"})],Mr.prototype,"createWithFilters",2),y([v({manifest:{path:()=>pn.GENERICAPPSETTINGS}}),O({since:"1.63.0"})],Mr.prototype,"showDraftToggle",2);var _E=Mr,$o=class $o extends ls{};a($o,"TableALP"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],$o.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}})],$o.prototype,"qualifier",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.38.0"}),v({manifest:{path:t=>Me(t)}})],$o.prototype,"defaultContentView",2),y([v({manifest:{path:t=>Me(t)}})],$o.prototype,"defaultFilterMode",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.60.0"})],$o.prototype,"contentTitle",2),y([v({manifest:{path:t=>Me(t)}})],$o.prototype,"autoHide",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.78.0"})],$o.prototype,"allFiltersAsInParameters",2);var kl=$o,xm=class xm extends kl{};a(xm,"ALPResponsiveTable"),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.Table,createFlexChange:Te}}),O({since:"1.16.0"})],xm.prototype,"growingThreshold",2);var DE=xm,kE=class kE extends kl{};a(kE,"ALPGridTable");var wE=kE,jE=class jE extends kl{};a(jE,"ALPAnalyticalTable");var ME=jE,Vl=class Vl extends ls{};a(Vl,"GridTable"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],Vl.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.54.0"})],Vl.prototype,"createWithFilters",2),y([v({manifest:{path:()=>pn.GENERICAPPSETTINGS}}),O({since:"1.63.0"})],Vl.prototype,"showDraftToggle",2);var VE=Vl;var xu=te(se());var T8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}action::${Bi(i).replace(":2f","::")}`},"getActionButtonId"),E8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}template::${i}`},"getStandardActionButtonId"),b8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}${Bg}${i}`},"getStandardFooterActionOPButtonId"),YE=a((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Wi(n);return`${e}action::${i}::${Bi(r)}`},"buildIntentBasedActionId"),A8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}action::${Bi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),fs={controlId:T8,controlType:()=>xu.ControlType.Button,createFlexChange:Te},Pu={controlId:E8,controlType:()=>xu.ControlType.Button,createFlexChange:Te},u0={controlId:b8,controlType:()=>xu.ControlType.Button,createFlexChange:Te},Im={controlId:A8,controlType:()=>xu.ControlType.Button,createFlexChange:Te},hc=class hc{};a(hc,"Action"),y([v({flex:fs})],hc.prototype,"tooltip",2),y([v({flex:fs})],hc.prototype,"icon",2),y([v({flex:fs})],hc.prototype,"activeIcon",2),y([v({flex:fs})],hc.prototype,"type",2);var $E=hc,yc=class yc{};a(yc,"ToolBarAction"),y([v({flex:fs})],yc.prototype,"tooltip",2),y([v({flex:fs})],yc.prototype,"icon",2),y([v({flex:fs})],yc.prototype,"activeIcon",2),y([v({flex:fs})],yc.prototype,"type",2);var UE=yc,vc=class vc{};a(vc,"FooterAction"),y([v({flex:Im})],vc.prototype,"tooltip",2),y([v({flex:Im})],vc.prototype,"icon",2),y([v({flex:Im})],vc.prototype,"activeIcon",2),y([v({flex:Im})],vc.prototype,"type",2);var BE=vc,Cm=class Cm{};a(Cm,"Share"),y([v({flex:Pu})],Cm.prototype,"visible",2);var WE=Cm,Nm=class Nm{};a(Nm,"ShareOP"),y([v({flex:Pu})],Nm.prototype,"visible",2);var GE=Nm,Lm=class Lm{};a(Lm,"UpAndDownNavigationOP"),y([v({flex:Pu})],Lm.prototype,"visible",2);var HE=Lm,Rm=class Rm{};a(Rm,"SaveAndEditOP"),y([v({flex:u0,generate:dt})],Rm.prototype,"visible",2);var KE=Rm,Fm=class Fm{};a(Fm,"HeaderActionStandard"),y([v({flex:Pu})],Fm.prototype,"visible",2);var XE=Fm,_m=class _m{};a(_m,"ObjectPageHeaderActionStandard"),y([v({flex:Pu})],_m.prototype,"visible",2);var JE=_m,Dm=class Dm{};a(Dm,"ObjectPageFooterActionStandard"),y([v({flex:u0})],Dm.prototype,"visible",2);var QE=Dm;var Cu=te(se());var S8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o}=Wi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${o}`},"buildColumnActionId"),x8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o,semanticObjectId:s}=Wi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${o}`},"buildColumnIntentBasedId"),P8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),zE={controlId:S8,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te},Ou={controlId:P8,controlType:()=>Cu.ControlType.Button,createFlexChange:Te},p0={...zE,controlId:x8},wm={...Ou,controlId:YE},Iu=class Iu{};a(Iu,"TableColumn"),y([v({flex:{controlId:$T,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te}})],Iu.prototype,"width",2),y([v({flex:{controlId:$T,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te},generate:zn})],Iu.prototype,"hAlign",2);var qE=Iu,Ea=class Ea{};a(Ea,"TableColumnAction"),y([v({flex:zE})],Ea.prototype,"width",2),y([v({flex:zE,generate:zn})],Ea.prototype,"hAlign",2),y([v({flex:Ou})],Ea.prototype,"tooltip",2),y([v({flex:Ou})],Ea.prototype,"icon",2),y([v({flex:Ou})],Ea.prototype,"activeIcon",2),y([v({flex:Ou})],Ea.prototype,"type",2);var Mm=Ea,ba=class ba extends Mm{};a(ba,"TableColumnActionIntentBased"),y([v({flex:p0})],ba.prototype,"width",2),y([v({flex:p0,generate:zn})],ba.prototype,"hAlign",2),y([v({flex:wm})],ba.prototype,"tooltip",2),y([v({flex:wm})],ba.prototype,"icon",2),y([v({flex:wm})],ba.prototype,"activeIcon",2),y([v({flex:wm})],ba.prototype,"type",2);var ZE=ba,tb=class tb{};a(tb,"TableCustomColumn");var eb=tb;var ib=class ib{};a(ib,"ToolBar");var nb=ib;var Tc=te(se());var Nu=a(e=>e+Tc.PropertyName.chart,"getSmartChartControlId"),us=class us{};a(us,"ChartSettings"),y([v({flex:{controlId:Nu,controlType:()=>Tc.ControlType.SmartChart,createFlexChange:Te}})],us.prototype,"showLegendButton",2),y([v({flex:{controlId:Nu,controlType:()=>Tc.ControlType.SmartChart,createFlexChange:Te}})],us.prototype,"showDownloadButton",2),y([v({flex:{controlId:Nu,controlType:()=>Tc.ControlType.SmartChart,createFlexChange:Te}})],us.prototype,"showChartTypeSelectionButton",2),y([v({flex:{controlId:Nu,controlType:()=>Tc.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}})],us.prototype,"ignoredChartTypes",2),y([v({manifest:{path:t=>kF(t)}}),O({since:"1.81.0"})],us.prototype,"showDataLabel",2);var rb=us;var Aa=class Aa{};a(Aa,"KPISettings"),y([v({manifest:{path:(t,n,i)=>dc(t,i)}})],Aa.prototype,"model",2),y([v({manifest:{path:(t,n,i)=>dc(t,i)}})],Aa.prototype,"entitySet",2),y([v({manifest:{path:(t,n,i)=>dc(t,i)}})],Aa.prototype,"qualifier",2),y([v({manifest:{path:(t,n,i)=>dc(t,i)}})],Aa.prototype,"filterable",2),y([v({manifest:{path:(t,n,i)=>dc(t,i)}})],Aa.prototype,"detailNavigation",2),y([v({manifest:{path:(t,n,i)=>dc(t,i)}})],Aa.prototype,"groupId",2);var ob=Aa;var d0=te(se());var O8=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectImage",Gt(e,n)},"getAvatarControlId"),Ec=class Ec{};a(Ec,"ObjectPageHeader"),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.46.0"})],Ec.prototype,"showRelatedApps",2),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.46.0"})],Ec.prototype,"editableHeaderContent",2),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.48.0"})],Ec.prototype,"simpleHeaderFacets",2),y([v({flex:{controlId:O8,controlType:()=>d0.ControlType.Avatar,createFlexChange:Te},generate:dt})],Ec.prototype,"displayShape",2);var ab=Ec;var Vm=te(se());var I8=a((e,t,n,i)=>{if(i()===Vm.ControlType.Button||i()===Vm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Bi(r)}`}return Gt(e,t)},"getActionButtonId"),Lu={controlId:I8,controlType:()=>Vm.ControlType.HeaderAction,createFlexChange:Te},ps=class ps{};a(ps,"ObjectPageHeaderAction"),y([v({flex:Lu,generate:dt})],ps.prototype,"visible",2),y([v({flex:Lu})],ps.prototype,"tooltip",2),y([v({flex:Lu})],ps.prototype,"icon",2),y([v({flex:Lu})],ps.prototype,"activeIcon",2),y([v({flex:Lu})],ps.prototype,"type",2);var sb=ps;var lb=te(se());var C8=a((e,t,n,i)=>{if(i()===lb.ControlType.Button){let{actionId:r}=Wi(n);return`${e}action::${Bi(r)}::Determining`}return Gt(e,t)},"getFooterActionButtonId"),Ru={controlId:C8,controlType:()=>lb.ControlType.Button,createFlexChange:Te},ds=class ds{};a(ds,"ObjectPageFooterAction"),y([v({flex:Ru,generate:dt})],ds.prototype,"visible",2),y([v({flex:Ru})],ds.prototype,"tooltip",2),y([v({flex:Ru})],ds.prototype,"icon",2),y([v({flex:Ru})],ds.prototype,"activeIcon",2),y([v({flex:Ru})],ds.prototype,"type",2);var cb=ds;var Fu=te(se());var km=a((e,t)=>{let n=t.slice(0);return n[t.length-1]="objectPage",Gt(e,n)},"getControlId"),bc=class bc{};a(bc,"ObjectPageLayout"),y([v({flex:{controlId:km,controlType:()=>Fu.ControlType.ObjectPageLayout,createFlexChange:Te},generate:dt})],bc.prototype,"showHeaderContent",2),y([v({flex:{controlId:km,controlType:()=>Fu.ControlType.ObjectPageLayout,createFlexChange:Te}})],bc.prototype,"showAnchorBar",2),y([v({flex:{controlId:km,controlType:()=>Fu.ControlType.ObjectPageLayout,createFlexChange:Te}})],bc.prototype,"useIconTabBar",2),y([v({flex:{controlId:km,controlType:()=>Fu.ControlType.ObjectPageLayout,createFlexChange:Te}}),O({since:"1.34.0"})],bc.prototype,"alwaysShowContentHeader",2);var fb=bc;var g0=te(se());var Ac=class Ac{};a(Ac,"BaseCustomSection"),y([v({manifest:{path:Ta,export:!1,import:(t,n)=>n.split("|")[2]}}),O({since:"1.52.0"})],Ac.prototype,"relatedFacet",2),y([v({manifest:{path:Ta,export:!1,import:(t,n)=>n.split("|")[0]}}),O({since:"1.52.0"})],Ac.prototype,"relativePosition",2),y([v({manifest:{path:(t,n,i)=>Ta(t,{},i,g0.ManifestSection.generic)}}),O({since:"1.52.0"})],Ac.prototype,"title",2),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],Ac.prototype,"className",2);var wu=Ac,_u=class _u extends wu{};a(_u,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],_u.prototype,"fragmentName",2),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],_u.prototype,"type",2);var Mu=_u,Du=class Du extends wu{};a(Du,"ObjectPageCustomSectionView"),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],Du.prototype,"viewName",2),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],Du.prototype,"type",2);var Vu=Du;var Xi=te(se());var m0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),Xi.DefinitionName.Table];return Gt(e,s)},"getTableSectionControlId"),h0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"FormGroup"];return Gt(e,s)},"getFormSectionControlId"),y0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"Chart"];return Gt(e,s)},"getChartSectionControlId"),Sc=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"Section"];return Gt(e,s)},"getSectionControlId"),v0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"SubSection"];return Gt(e,s)},"getSubSectionControlId"),T0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"ContactsList"];return Gt(e,s)},"getContactSubSectionControlId"),jm=class jm{};a(jm,"ObjectPageSectionV2"),y([v({flex:{controlId:Sc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],jm.prototype,"visible",2);var ub=jm,$m=class $m{};a($m,"ObjectPageSectionFormV2"),y([v({flex:{controlId:Sc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],$m.prototype,"visible",2);var pb=$m,Um=class Um{};a(Um,"ObjectPageSectionChartV2"),y([v({flex:{controlId:Sc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],Um.prototype,"visible",2);var db=Um,Bm=class Bm{};a(Bm,"ObjectPageSectionTableV2"),y([v({flex:{controlId:Sc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],Bm.prototype,"visible",2);var gb=Bm,Wm=class Wm{};a(Wm,"ObjectPageSectionAddressV2"),y([v({flex:{controlId:Sc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],Wm.prototype,"visible",2);var mb=Wm,Gm=class Gm{};a(Gm,"ObjectPageSectionContactV2"),y([v({flex:{controlId:Sc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],Gm.prototype,"visible",2);var hb=Gm,Hm=class Hm{};a(Hm,"ObjectPageSubSectionV2"),y([v({flex:{controlId:v0,controlType:()=>Xi.ControlType.SubSection,createFlexChange:Te},generate:dt})],Hm.prototype,"visible",2);var yb=Hm,Km=class Km{};a(Km,"ObjectPageSubSectionFormV2"),y([v({flex:{controlId:h0,controlType:()=>Xi.ControlType.Group,createFlexChange:Te},generate:dt})],Km.prototype,"visible",2);var vb=Km,Xm=class Xm{};a(Xm,"ObjectPageSubSectionChartV2"),y([v({flex:{controlId:y0,controlType:()=>Xi.ControlType.SmartChart,createFlexChange:Te},generate:dt})],Xm.prototype,"visible",2);var Tb=Xm,Jm=class Jm{};a(Jm,"ObjectPageSubSectionContactV2"),y([v({flex:{controlId:T0,controlType:()=>Xi.ControlType.SubSection,createFlexChange:Te},generate:dt})],Jm.prototype,"visible",2);var Eb=Jm,Qm=class Qm{};a(Qm,"ObjectPageSubSectionTableV2"),y([v({flex:{controlId:m0,controlType:()=>Xi.ControlType.SmartTable,createFlexChange:Te},generate:dt})],Qm.prototype,"visible",2);var bb=Qm;var Ym=class Ym{};a(Ym,"ObjectPageChart"),y([v({manifest:{path:$F}}),O({since:"1.78.0"})],Ym.prototype,"variantManagement",2);var Ab=Ym,zm=class zm{};a(zm,"GlobalChartSettings"),y([v({manifest:{path:t=>Ki(t)+"/chartSettings"}}),O({since:"1.78.0"})],zm.prototype,"variantManagement",2);var Sb=zm;var kr=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=kr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),o.push(s),o[0]=Yn(o[0],r),Gt(e,o)},"getSmartTableControlId"),ku=class ku{};a(ku,"QuickVariantSelectionOP"),y([v({manifest:{path:(t,n,i)=>ro(t,n,i)+kr.QUICKVARPATH}}),O({since:"1.48.0"})],ku.prototype,"showCounts",2),y([v({manifest:{path:(t,n,i)=>ro(t,n,i)+kr.QUICKVARPATH}}),O({since:"1.48.0"})],ku.prototype,"variants",2);var xb=ku,qm=class qm{};a(qm,"Fields4DialogOP"),y([v({manifest:{path:(t,n,i)=>wr(t,n,i)+"/createWithParameterDialog",export:Om}}),O({since:"1.77.0"})],qm.prototype,"fields",2);var Pb=qm,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:Pm}}),O({since:"1.77.0"})],Ci.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.28.0"})],Ci.prototype,"editable",2),y([v({manifest:{path:wr}}),O({since:"1.54.0"})],Ci.prototype,"multiSelect",2),y([v({manifest:{path:wr}}),O({since:"1.70.0"})],Ci.prototype,"selectAll",2),y([v({manifest:{path:wr}}),O({since:"1.70.0"})],Ci.prototype,"selectionLimit",2),y([v({manifest:{path:ro}}),O({since:"1.63.0"})],Ci.prototype,"quickVariantSelection",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.26.0"})],Ci.prototype,"useExportToExcel",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.50.0"})],Ci.prototype,"exportType",2),y([v({manifest:{path:ro}}),O({since:"1.48.5"})],Ci.prototype,"createMode",2),y([v({manifest:{path:ro}}),O({since:"1.61.0"})],Ci.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:wr}}),O({since:"1.78.0"})],Ci.prototype,"variantManagement",2),y([Ft("toolBar")],Ci.prototype,"toolBar",2);var xc=Ci,gs=class gs extends xc{};a(gs,"ObjectPageResponsiveTable"),y([v({manifest:{path:wr}})],gs.prototype,"type",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.Table,createFlexChange:Te}})],gs.prototype,"includeItemInSelection",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.Table,createFlexChange:Te},generate:dt}),O({since:"1.52.0"})],gs.prototype,"popinLayout",2),y([v({manifest:{path:wr}}),O({since:"1.77.0"})],gs.prototype,"inlineDelete",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.Table,createFlexChange:Te}}),O({since:"1.16.0"})],gs.prototype,"growingThreshold",2);var Pc=gs,ju=class ju extends xc{};a(ju,"ObjectPageAnalyticalTable"),y([v({manifest:{path:wr}})],ju.prototype,"type",2),y([v({manifest:{path:ro}}),O({since:"1.67.0"})],ju.prototype,"condensedTableLayout",2);var Ob=ju,$u=class $u extends xc{};a($u,"ObjectPageGridTable"),y([v({manifest:{path:wr}})],$u.prototype,"type",2),y([v({manifest:{path:ro}}),O({since:"1.67.0"})],$u.prototype,"condensedTableLayout",2);var Ib=$u,Uu=class Uu extends xc{};a(Uu,"ObjectPageTreeTable"),y([v({manifest:{path:wr}})],Uu.prototype,"type",2),y([v({manifest:{path:ro}}),O({since:"1.67.0"})],Uu.prototype,"condensedTableLayout",2);var Cb=Uu,Vr=class Vr{};a(Vr,"GlobalTableSettings"),y([v({manifest:{path:Do}}),O({since:"1.70.0"})],Vr.prototype,"selectAll",2),y([v({manifest:{path:Do}}),O({since:"1.70.0"})],Vr.prototype,"selectionLimit",2),y([v({manifest:{path:Do}}),O({since:"1.48.5"})],Vr.prototype,"createMode",2),y([v({manifest:{path:Do}}),O({since:"1.61.0"})],Vr.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:Do}}),O({since:"1.78.0"})],Vr.prototype,"variantManagement",2),y([v({manifest:{path:Do}})],Vr.prototype,"type",2),y([v({manifest:{path:Do}}),O({since:"1.54.0"})],Vr.prototype,"multiSelect",2),y([v({manifest:{path:Do}}),O({since:"1.67.0"})],Vr.prototype,"condensedTableLayout",2),y([v({manifest:{path:Do}}),O({since:"1.77.0"})],Vr.prototype,"inlineDelete",2);var Nb=Vr;var E0=te(se());var N8=a((e,t,n,i,r)=>{let{actionId:o}=Wi(n),s=Yn(n[1],r);return`${e}${s}::action::${Bi(o).replace(":2f","::")}`},"getActionButtonId"),Bu={controlId:N8,controlType:()=>E0.ControlType.Button,createFlexChange:Te},ms=class ms{};a(ms,"ObjectPageToolBarAction"),y([v({flex:Bu,generate:dt})],ms.prototype,"visible",2),y([v({flex:Bu})],ms.prototype,"tooltip",2),y([v({flex:Bu})],ms.prototype,"icon",2),y([v({flex:Bu})],ms.prototype,"activeIcon",2),y([v({flex:Bu})],ms.prototype,"type",2);var Lb=ms;function hs(e){return e.replace("/","::")}a(hs,"convertActionKey");function Fb(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}a(Fb,"convertSelector");function L8(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(L8,"addSmartFilterBarFlex");function R8(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=Bi((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(R8,"filterActions");function F8(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}a(F8,"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 D8(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=R8(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"&&F8(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(D8,"addActionFlex");function w8(e,t,n,i){var o;if(i.definitions.ChartSettings.properties[t]){let s=qn(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(w8,"addSmartChartFlex");function M8(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)&&om(e.table,i,n)}a(M8,"addAdditionalFlexChanges");function Zm(e,t,n,i){var r,o;try{let s=Qa(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=Fb(s.controlId),s.controlType){case We.ControlType.SmartFilterBar:{L8(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&&D8(e,l,s,n,u);break}case We.ControlType.SmartChart:{w8(e,l,s,n);break}default:{M8(e,s,n);break}}}catch(s){oe(i,{severity:We.LogSeverity.Error,message:ee.t("FLEXERROR")},...s)}}a(Zm,"addFlex");function V8(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(V8,"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=qn(e,u);if(p!=null&&p.manifest){let d=p.manifest.path([i],t,o);s=Wn(t,d),El(p,s,u,e),Mg(l,s,d,r)}V8(u,e)}}a(_n,"transferSettingsOfObject");function eh(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(eh,"determineTableType");function b0(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(b0,"evaluateFragmentColumn");function k8(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(k8,"determineCellsFragmentName");function j8(e,t,n,i,r,o,s){var l;if(e[0]){let p=JSON.parse((0,A0.xml2json)(e[0].fileContent,{compact:!0}))[ko],d=Eu(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)b0(m,n,i,r,t,o,s);else b0(d,n,i,r,t,o,s)}}a(j8,"analyzeFilteredFragments");function $8(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=k8(m,e,u,p),C=b.split(".");b=C[C.length-1]+We.FRAGMENTNAMEPART+T;let L=r.filter(R=>R.dataSourceUri.endsWith(b));j8(L,i,e,o,d,m,E)}}}a($8,"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;$8(u,s,o,e,r)}}a(Bl,"addFragments");function th(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(th,"importHeaderActions");var Ut=te(se());var x0=te(se());var _b={};qs(_b,{ANNOERR:()=>nK,ANNOTATIONFILE:()=>iK,COMPONENTNOTDEFINED:()=>rK,CONTEXTPATHCOULDNOTBERESOLVED:()=>q8,ENTITYSETNOTFOUND:()=>z8,FLEXERROR:()=>uK,INVALIDANCHOR:()=>pK,INVALIDTARGETDEFINITION:()=>gK,MACROS_ANNOTATION_ERROR:()=>yK,NOALP:()=>eK,NOBASEPATH:()=>W8,NOENTITYSET:()=>J8,NOENTITYTYPE4SET:()=>Q8,NOFE:()=>H8,NOFRAGMENT:()=>dK,NOGENERICSCHEMA:()=>K8,NOID4SECTION:()=>mK,NOLINEITEMS:()=>aK,NOLR:()=>Z8,NOPAGEFORENTITYSET:()=>X8,NOPAGES:()=>G8,NOPRESENTATIONVARIANT:()=>Y8,NOROUTING:()=>oK,NOROUTINGID:()=>fK,NOTARGET:()=>lK,NOTARGETS:()=>cK,NOTEMPLATE:()=>tK,NOVISUALIZATIONS:()=>sK,UNKNOWNMINUI5VERSION:()=>B8,WRONGMINUI5VERSION:()=>U8,XMLPARSEFAILURE:()=>hK,default:()=>vK});var U8="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",B8="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",W8="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",G8="No pages found in manifest for app with id '{{- appId}}'",H8="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",K8="No generic schema found while generating page schema for {{- pageType}}",X8="No page found in manifest for entitySet '{{- entitySet}}'",J8="No entitySet defined for page '{{- pageName}}'",Q8="No entityType could be found for the given entity set '{{- entitySetName}}'",Y8="No PresentationVariant defined for '{{- key}}'",z8="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",q8="Either entitySet '{{- entitySet}}' or contextPath '{{- contextPath}}' was incorrectly specified in manifest, as this entity set or contextPath could not be found in metadata",Z8="No page found in manifest for list report",eK="No page found in manifest for analytical list page",tK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",nK="Error while parsing annotation files",iK="Annotation file: '{{- file}}'",rK="Component name is not defined for page '{{- pageName}}'",oK="Incomplete manifest definition: no routing defined",aK="UI.LineItem annotation has not been defined",sK="Empty Collection for Visualizations",cK="Incomplete manifest definition: no targets defined",lK="Invalid reference: annotation target '{{- target}}' not found",fK="No page found in manifest for routingId '{{- routingId}}'",uK="Error while parsing flex change",pK="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",dK="fragmentName is undefined for columnKey '{{- columnKey}}'",gK="Invalid routing target definition in manifest: '{{- target}}'",mK="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",hK="Parsing of XML file failed with error - {{- error}}",yK="Error during resolving annotation for '{{- control}}'",vK={WRONGMINUI5VERSION:U8,UNKNOWNMINUI5VERSION:B8,NOBASEPATH:W8,NOPAGES:G8,NOFE:H8,NOGENERICSCHEMA:K8,NOPAGEFORENTITYSET:X8,NOENTITYSET:J8,NOENTITYTYPE4SET:Q8,NOPRESENTATIONVARIANT:Y8,ENTITYSETNOTFOUND:z8,CONTEXTPATHCOULDNOTBERESOLVED:q8,NOLR:Z8,NOALP:eK,NOTEMPLATE:tK,ANNOERR:nK,ANNOTATIONFILE:iK,COMPONENTNOTDEFINED:rK,NOROUTING:oK,NOLINEITEMS:aK,NOVISUALIZATIONS:sK,NOTARGETS:cK,NOTARGET:lK,NOROUTINGID:fK,FLEXERROR:uK,INVALIDANCHOR:pK,NOFRAGMENT:dK,INVALIDTARGETDEFINITION:gK,NOID4SECTION:mK,XMLPARSEFAILURE:hK,MACROS_ANNOTATION_ERROR:yK};function S0(e){e.addResourceBundle(e.language,"translation",_b)}a(S0,"initI18n");function Yt(e="en"){ee.init({resources:{en:{translation:x0.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
293
|
+
</core:FragmentDefinition>`},"getResponsiveTableCellsFragment");var ym=require("path");var ko="core:FragmentDefinition",hm="sap.ui.table",PE=new Map([[Qt.ViewTemplateType.ResponsiveTableColumnsExtension,{namespace:"sap.m",name:"Column"}],[Qt.ViewTemplateType.TreeTableColumnsExtension,{namespace:hm,name:"Column"}],[Qt.ViewTemplateType.GridTableColumnsExtension,{namespace:hm,name:"Column"}],[Qt.ViewTemplateType.AnalyticalTableColumnsExtension,{namespace:hm,name:"AnalyticalColumn"}]]),n8=new Map([[Qt.v2.FE_TEMPLATE_V2_LIST_REPORT,Qt.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Qt.v2.FE_TEMPLATE_V2_ALP,Qt.v2.SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE],[Qt.v2.FE_TEMPLATE_V2_OBJECT_PAGE,Qt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),c0={type:"element",name:"Text",attributes:{text:"Placeholder"}},i8=JSON.stringify(c0);function r8(e,t){let n=t?e[ko]._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(r8,"getFragmentNamespaces");function s0(e,t){return t?t.includes("xmlns")?e.name:`${t}:${e.name}`:`${e.namespace}:${e.name}`}a(s0,"getTagName");function vm(e,t,n=e){let i=r8(n,!!(t||n!==e));if(t){let r=PE.get(t);return s0(r,i.get(r.namespace))}else{let r=PE.keys();for(let o of r){let s=PE.get(o),l=i?s0(s,i.get(s.namespace)):s.name;if(e[l])return l}}}a(vm,"getTagNameFromFragmentJSON");function Eu(e,t=e){let n=vm(e,void 0,t);return e[n]}a(Eu,"getRootCustomColumnFromFragmentJSON");function o8(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(o8,"addP13nData");function l0(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=o8(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(l0,"handleFragmentColumn");function a8(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]+Qt.FRAGMENTNAMEPART+o;for(let u of t){let p=u.dataSourceUri.split(ym.sep);if(p[p.length-1]===l){let d=JSON.parse((0,ao.xml2json)(u.fileContent,{compact:!0})),m=vm(d[ko]);m&&(delete d[ko][m],u.fileContent=(0,ao.json2xml)(JSON.stringify(d),{compact:!0,spaces:4}));break}}}a(a8,"deleteColumnsFromFragment");function f0(e,t){for(let n=0;n<Object.keys(e).length&&!(JSON.stringify(e[n])===i8&&(e.splice(n,1),t-=1,t===0));n++);}a(f0,"deleteNumberOfCells");function s8(e,t,n){let i=e.type?e.type.toLowerCase():"xml",r=e.fragmentName.substr(n.length+1).split("."),o=r[r.length-1]+Qt.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&&f0(l.elements[0].elements,u.length),s.fileContent=(0,ao.json2xml)(JSON.stringify(l),{spaces:4});break}}a(s8,"deleteCellsFromFragment");function Tm(e,t,n,i){if(i){a8(e,i,t,n);let r=t.replace(Qt.ViewTemplateType.ResponsiveTableColumnsExtension,Qt.ViewTemplateType.ResponsiveTableCellsExtension),o=e[r];o&&s8(o,i,n)}}a(Tm,"deleteColumnFromFragment");function c8(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(c0)}a(c8,"addNewColumnsInFragment");function l8(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)c8(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;f0(o,r)}e.fileContent=(0,ao.json2xml)(JSON.stringify(n),{spaces:4})}}a(l8,"updateNonEmptyCellsFragment");function f8(e,t,n){let i=!1;for(let r of e){let o=r.dataSourceUri.split(ym.sep);if(o[o.length-1]===t){i=!0,!r.fileContent||Object.keys(r.fileContent).length===0?r.fileContent=xE(n):l8(r,n);break}}return i}a(f8,"updateCellsFragment");function u8(e,t,n,i,r){var d;let o,s,l=t.manifest,u=Wn(l,e),p=u.type?u.type.toLowerCase():"xml";u.type=p.toUpperCase();for(let m of n){if(!m.fragmentName){oe(r,{severity:Qt.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,ym.sep))+Qt.FRAGMENTNAMEPART+p}if(e.indexOf(Qt.ViewTemplateType.ResponsiveTableColumnsExtension)>-1){let m=e.replace(Qt.ViewTemplateType.ResponsiveTableColumnsExtension,Qt.ViewTemplateType.ResponsiveTableCellsExtension),T=Wn(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()):VF(l,m)}return{manifestSection:u,lsFilePath:o,cellsFragmentName:s,fragmentType:p}}a(u8,"exportCustomColumnsToManifest");function p8(e,t,n,i,r){let o=AE(e,t);if(o){let s=JSON.parse((0,ao.xml2json)(o,{compact:!0})),l=Eu(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(p8,"insertNewColumnInFragment");function d8(e,t){let n=[];for(let i=0;i<e.length;i++)l0(e[i],t)||n.push(i);for(let i=n.length-1;i>=0;i--)e.splice(n[i],1)}a(d8,"processCustomColumnInArray");function g8(e,t,n){if(e){if(Array.isArray(e))d8(e,t);else if(!l0(e,t)){let r=vm(n[ko]);r&&(delete n[ko][r],e=void 0)}}return e}a(g8,"maintainExistingColumnInFragment");function m8(e,t,n,i,r){for(let o of e)if(o.fragmentName.endsWith(t)){let s=e.indexOf(o);n=p8(o,i,n,r,s)}return n}a(m8,"insertNewColumnsInFragment");function h8(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=SE(i,r);else{let u=JSON.parse((0,ao.xml2json)(s.fileContent,{compact:!0})),p=JSON.stringify(u);l=Eu(u[ko]),l=g8(l,i,u),l=m8(i,n,l,r,u);let d=vm(u,r);u[ko][d]=l;let m=JSON.stringify(u);m!==p&&(s.fileContent=(0,ao.json2xml)(m,{compact:!0,spaces:4}))}break}return o}a(h8,"updateColumnsInFragment");function OE(e,t,n,i,r,o){let s=e.fragments,{manifestSection:l,lsFilePath:u,cellsFragmentName:p,fragmentType:d}=u8(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]+Qt.FRAGMENTNAMEPART+d;let L=p==null?void 0:p.split("."),R=L?L[L.length-1]:null,F=R?R+Qt.FRAGMENTNAMEPART+d:null,U=h8(s,T,b,m,r),J=!1;if(p?J=f8(s,F,n):J=!0,!U){let re={fileContent:SE(m,r),dataSourceUri:u};e.fragments.push(re)}if(!J){let re={fileContent:xE(n),dataSourceUri:u.replace(T,F)};e.fragments.push(re)}}a(OE,"exportCustomColumnsToFragment");var Em=a((e,t,n,i)=>{var u,p,d,m;let r=n8.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 pn=te(se());var cs=a((e,t,n,i)=>i()==="sap.m.Table"?e+"responsiveTable":i()==="sap.ui.comp.smarttable.SmartTable"&&(e!=null&&e.includes("AnalyticalListPage"))?e+pn.PropertyName.table:Gt(e,t),"getSmartTableControlId");function Pm(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(Pm,"importCreateParameters");function Om(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(Om,"exportCreateParametersFields");function y8(e,t){t.variants&&(Object.keys(t.variants).length>0?v8(e,t):delete e.variants)}a(y8,"exportQuickVariantSelectionX");function v8(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(v8,"exportVariants");var bm=class bm{};a(bm,"CreateWithFilters"),y([v({manifest:{path:t=>Me(t)+"/createWithFilters"}})],bm.prototype,"strategy",2);var IE=bm;function Su(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(Su,"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 Am=class Am{};a(Am,"DataLoadSettings"),y([v({manifest:{path:t=>jF(t)}}),O({since:"1.75.2"})],Am.prototype,"loadDataOnAppLaunch",2);var CE=Am,Sm=class Sm{};a(Sm,"Fields4Dialog"),y([v({manifest:{path:t=>dc(t)+"/createWithParameterDialog",export:Om}}),O({since:"1.77.0"})],Sm.prototype,"fields",2);var NE=Sm,bu=class bu{};a(bu,"QuickVariantSelection"),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATH}}),O({since:"1.48.0"})],bu.prototype,"showCounts",2),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATH}}),O({since:"1.48.0"})],bu.prototype,"variants",2);var LE=bu,Ml=class Ml{};a(Ml,"QuickVariantSelectionX"),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATHX}}),O({since:"1.48.0"})],Ml.prototype,"showCounts",2),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATHX}}),O({since:"1.48.0"})],Ml.prototype,"enableAutoBinding",2),y([v({manifest:{path:t=>Me(t)+pn.QUICKVARPATHX,export:y8}}),O({since:"1.48.0"})],Ml.prototype,"variants",2);var RE=Ml,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=>dc(t),import:Pm}}),O({since:"1.77.0"})],si.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:Gt,controlType:()=>pn.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.38.0"})],si.prototype,"showTablePersonalisation",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.26.0"})],si.prototype,"useExportToExcel",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.50.0"})],si.prototype,"exportType",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.SmartTable,createFlexChange:Te}})],si.prototype,"fitContainer",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.48.0"})],si.prototype,"quickVariantSelection",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.48.0"})],si.prototype,"quickVariantSelectionX",2),y([v({manifest:{path:t=>dc(t)}}),O({since:"1.38.0"})],si.prototype,"multiSelect",2),y([v({manifest:{path:t=>dc(t)}}),O({since:"1.70.0"})],si.prototype,"selectAll",2),y([v({manifest:{path:t=>dc(t)}}),O({since:"1.70.0"})],si.prototype,"selectionLimit",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.75.2"})],si.prototype,"dataLoadSettings",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.42.0"})],si.prototype,"condensedTableLayout",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.56.0"})],si.prototype,"enableTableFilterInPageVariant",2),y([Ft("toolBar")],si.prototype,"toolBar",2);var ls=si,jo=class jo extends ls{};a(jo,"ResponsiveTable"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],jo.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.54.0"})],jo.prototype,"createWithFilters",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.Table,createFlexChange:Te},generate:zn}),O({since:"1.52.0"})],jo.prototype,"popinLayout",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.Table,createFlexChange:Te}})],jo.prototype,"includeItemInSelection",2),y([v({manifest:{path:t=>dc(t)}}),O({since:"1.77.0"})],jo.prototype,"inlineDelete",2),y([v({manifest:{path:()=>pn.GENERICAPPSETTINGS}}),O({since:"1.63.0"})],jo.prototype,"showDraftToggle",2),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.Table,createFlexChange:Te}}),O({since:"1.16.0"})],jo.prototype,"growingThreshold",2);var hc=jo,Au=class Au extends ls{};a(Au,"TreeTable"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],Au.prototype,"type",2),y([v({manifest:{path:()=>pn.GENERICAPPSETTINGS}}),O({since:"1.63.0"})],Au.prototype,"showDraftToggle",2);var FE=Au,Mr=class Mr extends ls{};a(Mr,"AnalyticalTable"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],Mr.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}})],Mr.prototype,"qualifier",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.38.0"}),v({manifest:{path:t=>Me(t)}})],Mr.prototype,"defaultContentView",2),y([v({manifest:{path:t=>Me(t)}})],Mr.prototype,"defaultFilterMode",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.60.0"})],Mr.prototype,"contentTitle",2),y([v({manifest:{path:t=>Me(t)}})],Mr.prototype,"autoHide",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.78.0"})],Mr.prototype,"allFiltersAsInParameters",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.54.0"})],Mr.prototype,"createWithFilters",2),y([v({manifest:{path:()=>pn.GENERICAPPSETTINGS}}),O({since:"1.63.0"})],Mr.prototype,"showDraftToggle",2);var _E=Mr,$o=class $o extends ls{};a($o,"TableALP"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],$o.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}})],$o.prototype,"qualifier",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.38.0"}),v({manifest:{path:t=>Me(t)}})],$o.prototype,"defaultContentView",2),y([v({manifest:{path:t=>Me(t)}})],$o.prototype,"defaultFilterMode",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.60.0"})],$o.prototype,"contentTitle",2),y([v({manifest:{path:t=>Me(t)}})],$o.prototype,"autoHide",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.78.0"})],$o.prototype,"allFiltersAsInParameters",2);var kl=$o,xm=class xm extends kl{};a(xm,"ALPResponsiveTable"),y([v({flex:{controlId:cs,controlType:()=>pn.ControlType.Table,createFlexChange:Te}}),O({since:"1.16.0"})],xm.prototype,"growingThreshold",2);var DE=xm,kE=class kE extends kl{};a(kE,"ALPGridTable");var wE=kE,jE=class jE extends kl{};a(jE,"ALPAnalyticalTable");var ME=jE,Vl=class Vl extends ls{};a(Vl,"GridTable"),y([v({manifest:{path:t=>Me(t),import:Su,export:jl,delete:$l}}),O({since:"1.50.0"})],Vl.prototype,"type",2),y([v({manifest:{path:t=>Me(t)}}),O({since:"1.54.0"})],Vl.prototype,"createWithFilters",2),y([v({manifest:{path:()=>pn.GENERICAPPSETTINGS}}),O({since:"1.63.0"})],Vl.prototype,"showDraftToggle",2);var VE=Vl;var xu=te(se());var T8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}action::${Bi(i).replace(":2f","::")}`},"getActionButtonId"),E8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}template::${i}`},"getStandardActionButtonId"),b8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}${Bg}${i}`},"getStandardFooterActionOPButtonId"),YE=a((e,t,n)=>{let{semanticObjectId:i,actionId:r}=Wi(n);return`${e}action::${i}::${Bi(r)}`},"buildIntentBasedActionId"),A8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}action::${Bi(i).replace(":2f","::")}::Determining`},"getFooterActionButtonId"),fs={controlId:T8,controlType:()=>xu.ControlType.Button,createFlexChange:Te},Pu={controlId:E8,controlType:()=>xu.ControlType.Button,createFlexChange:Te},u0={controlId:b8,controlType:()=>xu.ControlType.Button,createFlexChange:Te},Im={controlId:A8,controlType:()=>xu.ControlType.Button,createFlexChange:Te},yc=class yc{};a(yc,"Action"),y([v({flex:fs})],yc.prototype,"tooltip",2),y([v({flex:fs})],yc.prototype,"icon",2),y([v({flex:fs})],yc.prototype,"activeIcon",2),y([v({flex:fs})],yc.prototype,"type",2);var $E=yc,vc=class vc{};a(vc,"ToolBarAction"),y([v({flex:fs})],vc.prototype,"tooltip",2),y([v({flex:fs})],vc.prototype,"icon",2),y([v({flex:fs})],vc.prototype,"activeIcon",2),y([v({flex:fs})],vc.prototype,"type",2);var UE=vc,Tc=class Tc{};a(Tc,"FooterAction"),y([v({flex:Im})],Tc.prototype,"tooltip",2),y([v({flex:Im})],Tc.prototype,"icon",2),y([v({flex:Im})],Tc.prototype,"activeIcon",2),y([v({flex:Im})],Tc.prototype,"type",2);var BE=Tc,Cm=class Cm{};a(Cm,"Share"),y([v({flex:Pu})],Cm.prototype,"visible",2);var WE=Cm,Nm=class Nm{};a(Nm,"ShareOP"),y([v({flex:Pu})],Nm.prototype,"visible",2);var GE=Nm,Lm=class Lm{};a(Lm,"UpAndDownNavigationOP"),y([v({flex:Pu})],Lm.prototype,"visible",2);var HE=Lm,Rm=class Rm{};a(Rm,"SaveAndEditOP"),y([v({flex:u0,generate:dt})],Rm.prototype,"visible",2);var KE=Rm,Fm=class Fm{};a(Fm,"HeaderActionStandard"),y([v({flex:Pu})],Fm.prototype,"visible",2);var XE=Fm,_m=class _m{};a(_m,"ObjectPageHeaderActionStandard"),y([v({flex:Pu})],_m.prototype,"visible",2);var JE=_m,Dm=class Dm{};a(Dm,"ObjectPageFooterActionStandard"),y([v({flex:u0})],Dm.prototype,"visible",2);var QE=Dm;var Cu=te(se());var S8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o}=Wi(n),s=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${s}:::sAction::${o}`},"buildColumnActionId"),x8=a((e,t,n)=>{let i="template:::TableColumn",{actionType:r,actionId:o,semanticObjectId:s}=Wi(n),l=`sSmartTableId::${t[0]}`;return`${e}${i}:::${r}:::${l}:::sSemanticObject::${s}:::sAction::${o}`},"buildColumnIntentBasedId"),P8=a((e,t,n)=>{let{actionId:i}=Wi(n);return`${e}action::${i.replace(":2f","::")}`},"buildColumnActionButtonId"),zE={controlId:S8,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te},Ou={controlId:P8,controlType:()=>Cu.ControlType.Button,createFlexChange:Te},p0={...zE,controlId:x8},wm={...Ou,controlId:YE},Iu=class Iu{};a(Iu,"TableColumn"),y([v({flex:{controlId:$T,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te}})],Iu.prototype,"width",2),y([v({flex:{controlId:$T,controlType:()=>Cu.ControlType.TableColumn,createFlexChange:Te},generate:zn})],Iu.prototype,"hAlign",2);var qE=Iu,Ea=class Ea{};a(Ea,"TableColumnAction"),y([v({flex:zE})],Ea.prototype,"width",2),y([v({flex:zE,generate:zn})],Ea.prototype,"hAlign",2),y([v({flex:Ou})],Ea.prototype,"tooltip",2),y([v({flex:Ou})],Ea.prototype,"icon",2),y([v({flex:Ou})],Ea.prototype,"activeIcon",2),y([v({flex:Ou})],Ea.prototype,"type",2);var Mm=Ea,ba=class ba extends Mm{};a(ba,"TableColumnActionIntentBased"),y([v({flex:p0})],ba.prototype,"width",2),y([v({flex:p0,generate:zn})],ba.prototype,"hAlign",2),y([v({flex:wm})],ba.prototype,"tooltip",2),y([v({flex:wm})],ba.prototype,"icon",2),y([v({flex:wm})],ba.prototype,"activeIcon",2),y([v({flex:wm})],ba.prototype,"type",2);var ZE=ba,tb=class tb{};a(tb,"TableCustomColumn");var eb=tb;var ib=class ib{};a(ib,"ToolBar");var nb=ib;var Ec=te(se());var Nu=a(e=>e+Ec.PropertyName.chart,"getSmartChartControlId"),us=class us{};a(us,"ChartSettings"),y([v({flex:{controlId:Nu,controlType:()=>Ec.ControlType.SmartChart,createFlexChange:Te}})],us.prototype,"showLegendButton",2),y([v({flex:{controlId:Nu,controlType:()=>Ec.ControlType.SmartChart,createFlexChange:Te}})],us.prototype,"showDownloadButton",2),y([v({flex:{controlId:Nu,controlType:()=>Ec.ControlType.SmartChart,createFlexChange:Te}})],us.prototype,"showChartTypeSelectionButton",2),y([v({flex:{controlId:Nu,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}})],us.prototype,"ignoredChartTypes",2),y([v({manifest:{path:t=>kF(t)}}),O({since:"1.81.0"})],us.prototype,"showDataLabel",2);var rb=us;var Aa=class Aa{};a(Aa,"KPISettings"),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Aa.prototype,"model",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Aa.prototype,"entitySet",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Aa.prototype,"qualifier",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Aa.prototype,"filterable",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Aa.prototype,"detailNavigation",2),y([v({manifest:{path:(t,n,i)=>gc(t,i)}})],Aa.prototype,"groupId",2);var ob=Aa;var d0=te(se());var O8=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=>Ki(t)}}),O({since:"1.46.0"})],bc.prototype,"showRelatedApps",2),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.46.0"})],bc.prototype,"editableHeaderContent",2),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.48.0"})],bc.prototype,"simpleHeaderFacets",2),y([v({flex:{controlId:O8,controlType:()=>d0.ControlType.Avatar,createFlexChange:Te},generate:dt})],bc.prototype,"displayShape",2);var ab=bc;var Vm=te(se());var I8=a((e,t,n,i)=>{if(i()===Vm.ControlType.Button||i()===Vm.ControlType.HeaderAction){let r=n[2];return`${e}action::${Bi(r)}`}return Gt(e,t)},"getActionButtonId"),Lu={controlId:I8,controlType:()=>Vm.ControlType.HeaderAction,createFlexChange:Te},ps=class ps{};a(ps,"ObjectPageHeaderAction"),y([v({flex:Lu,generate:dt})],ps.prototype,"visible",2),y([v({flex:Lu})],ps.prototype,"tooltip",2),y([v({flex:Lu})],ps.prototype,"icon",2),y([v({flex:Lu})],ps.prototype,"activeIcon",2),y([v({flex:Lu})],ps.prototype,"type",2);var sb=ps;var lb=te(se());var C8=a((e,t,n,i)=>{if(i()===lb.ControlType.Button){let{actionId:r}=Wi(n);return`${e}action::${Bi(r)}::Determining`}return Gt(e,t)},"getFooterActionButtonId"),Ru={controlId:C8,controlType:()=>lb.ControlType.Button,createFlexChange:Te},ds=class ds{};a(ds,"ObjectPageFooterAction"),y([v({flex:Ru,generate:dt})],ds.prototype,"visible",2),y([v({flex:Ru})],ds.prototype,"tooltip",2),y([v({flex:Ru})],ds.prototype,"icon",2),y([v({flex:Ru})],ds.prototype,"activeIcon",2),y([v({flex:Ru})],ds.prototype,"type",2);var cb=ds;var Fu=te(se());var km=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:km,controlType:()=>Fu.ControlType.ObjectPageLayout,createFlexChange:Te},generate:dt})],Ac.prototype,"showHeaderContent",2),y([v({flex:{controlId:km,controlType:()=>Fu.ControlType.ObjectPageLayout,createFlexChange:Te}})],Ac.prototype,"showAnchorBar",2),y([v({flex:{controlId:km,controlType:()=>Fu.ControlType.ObjectPageLayout,createFlexChange:Te}})],Ac.prototype,"useIconTabBar",2),y([v({flex:{controlId:km,controlType:()=>Fu.ControlType.ObjectPageLayout,createFlexChange:Te}}),O({since:"1.34.0"})],Ac.prototype,"alwaysShowContentHeader",2);var fb=Ac;var g0=te(se());var Sc=class Sc{};a(Sc,"BaseCustomSection"),y([v({manifest:{path:Ta,export:!1,import:(t,n)=>n.split("|")[2]}}),O({since:"1.52.0"})],Sc.prototype,"relatedFacet",2),y([v({manifest:{path:Ta,export:!1,import:(t,n)=>n.split("|")[0]}}),O({since:"1.52.0"})],Sc.prototype,"relativePosition",2),y([v({manifest:{path:(t,n,i)=>Ta(t,{},i,g0.ManifestSection.generic)}}),O({since:"1.52.0"})],Sc.prototype,"title",2),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],Sc.prototype,"className",2);var wu=Sc,_u=class _u extends wu{};a(_u,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],_u.prototype,"fragmentName",2),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],_u.prototype,"type",2);var Mu=_u,Du=class Du extends wu{};a(Du,"ObjectPageCustomSectionView"),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],Du.prototype,"viewName",2),y([v({manifest:{path:Ta}}),O({since:"1.52.0"})],Du.prototype,"type",2);var Vu=Du;var Xi=te(se());var m0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),Xi.DefinitionName.Table];return Gt(e,s)},"getTableSectionControlId"),h0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"FormGroup"];return Gt(e,s)},"getFormSectionControlId"),y0=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"),v0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"SubSection"];return Gt(e,s)},"getSubSectionControlId"),T0=a((e,t,n,i,r)=>{let s=[Yn(n[1],r),"ContactsList"];return Gt(e,s)},"getContactSubSectionControlId"),jm=class jm{};a(jm,"ObjectPageSectionV2"),y([v({flex:{controlId:xc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],jm.prototype,"visible",2);var ub=jm,$m=class $m{};a($m,"ObjectPageSectionFormV2"),y([v({flex:{controlId:xc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],$m.prototype,"visible",2);var pb=$m,Um=class Um{};a(Um,"ObjectPageSectionChartV2"),y([v({flex:{controlId:xc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],Um.prototype,"visible",2);var db=Um,Bm=class Bm{};a(Bm,"ObjectPageSectionTableV2"),y([v({flex:{controlId:xc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],Bm.prototype,"visible",2);var gb=Bm,Wm=class Wm{};a(Wm,"ObjectPageSectionAddressV2"),y([v({flex:{controlId:xc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],Wm.prototype,"visible",2);var mb=Wm,Gm=class Gm{};a(Gm,"ObjectPageSectionContactV2"),y([v({flex:{controlId:xc,controlType:()=>Xi.ControlType.Section,createFlexChange:Te},generate:dt})],Gm.prototype,"visible",2);var hb=Gm,Hm=class Hm{};a(Hm,"ObjectPageSubSectionV2"),y([v({flex:{controlId:v0,controlType:()=>Xi.ControlType.SubSection,createFlexChange:Te},generate:dt})],Hm.prototype,"visible",2);var yb=Hm,Km=class Km{};a(Km,"ObjectPageSubSectionFormV2"),y([v({flex:{controlId:h0,controlType:()=>Xi.ControlType.Group,createFlexChange:Te},generate:dt})],Km.prototype,"visible",2);var vb=Km,Xm=class Xm{};a(Xm,"ObjectPageSubSectionChartV2"),y([v({flex:{controlId:y0,controlType:()=>Xi.ControlType.SmartChart,createFlexChange:Te},generate:dt})],Xm.prototype,"visible",2);var Tb=Xm,Jm=class Jm{};a(Jm,"ObjectPageSubSectionContactV2"),y([v({flex:{controlId:T0,controlType:()=>Xi.ControlType.SubSection,createFlexChange:Te},generate:dt})],Jm.prototype,"visible",2);var Eb=Jm,Qm=class Qm{};a(Qm,"ObjectPageSubSectionTableV2"),y([v({flex:{controlId:m0,controlType:()=>Xi.ControlType.SmartTable,createFlexChange:Te},generate:dt})],Qm.prototype,"visible",2);var bb=Qm;var Ym=class Ym{};a(Ym,"ObjectPageChart"),y([v({manifest:{path:$F}}),O({since:"1.78.0"})],Ym.prototype,"variantManagement",2);var Ab=Ym,zm=class zm{};a(zm,"GlobalChartSettings"),y([v({manifest:{path:t=>Ki(t)+"/chartSettings"}}),O({since:"1.78.0"})],zm.prototype,"variantManagement",2);var Sb=zm;var kr=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=kr.DefinitionName.Table:i()==="sap.m.Table"&&(s="responsiveTable"),o.push(s),o[0]=Yn(o[0],r),Gt(e,o)},"getSmartTableControlId"),ku=class ku{};a(ku,"QuickVariantSelectionOP"),y([v({manifest:{path:(t,n,i)=>ro(t,n,i)+kr.QUICKVARPATH}}),O({since:"1.48.0"})],ku.prototype,"showCounts",2),y([v({manifest:{path:(t,n,i)=>ro(t,n,i)+kr.QUICKVARPATH}}),O({since:"1.48.0"})],ku.prototype,"variants",2);var xb=ku,qm=class qm{};a(qm,"Fields4DialogOP"),y([v({manifest:{path:(t,n,i)=>wr(t,n,i)+"/createWithParameterDialog",export:Om}}),O({since:"1.77.0"})],qm.prototype,"fields",2);var Pb=qm,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:Pm}}),O({since:"1.77.0"})],Ci.prototype,"createWithParameterDialog",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.28.0"})],Ci.prototype,"editable",2),y([v({manifest:{path:wr}}),O({since:"1.54.0"})],Ci.prototype,"multiSelect",2),y([v({manifest:{path:wr}}),O({since:"1.70.0"})],Ci.prototype,"selectAll",2),y([v({manifest:{path:wr}}),O({since:"1.70.0"})],Ci.prototype,"selectionLimit",2),y([v({manifest:{path:ro}}),O({since:"1.63.0"})],Ci.prototype,"quickVariantSelection",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.26.0"})],Ci.prototype,"useExportToExcel",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.SmartTable,createFlexChange:Te}}),O({since:"1.50.0"})],Ci.prototype,"exportType",2),y([v({manifest:{path:ro}}),O({since:"1.48.5"})],Ci.prototype,"createMode",2),y([v({manifest:{path:ro}}),O({since:"1.61.0"})],Ci.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:wr}}),O({since:"1.78.0"})],Ci.prototype,"variantManagement",2),y([Ft("toolBar")],Ci.prototype,"toolBar",2);var Pc=Ci,gs=class gs extends Pc{};a(gs,"ObjectPageResponsiveTable"),y([v({manifest:{path:wr}})],gs.prototype,"type",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.Table,createFlexChange:Te}})],gs.prototype,"includeItemInSelection",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.Table,createFlexChange:Te},generate:dt}),O({since:"1.52.0"})],gs.prototype,"popinLayout",2),y([v({manifest:{path:wr}}),O({since:"1.77.0"})],gs.prototype,"inlineDelete",2),y([v({flex:{controlId:Ul,controlType:()=>kr.ControlType.Table,createFlexChange:Te}}),O({since:"1.16.0"})],gs.prototype,"growingThreshold",2);var Oc=gs,ju=class ju extends Pc{};a(ju,"ObjectPageAnalyticalTable"),y([v({manifest:{path:wr}})],ju.prototype,"type",2),y([v({manifest:{path:ro}}),O({since:"1.67.0"})],ju.prototype,"condensedTableLayout",2);var Ob=ju,$u=class $u extends Pc{};a($u,"ObjectPageGridTable"),y([v({manifest:{path:wr}})],$u.prototype,"type",2),y([v({manifest:{path:ro}}),O({since:"1.67.0"})],$u.prototype,"condensedTableLayout",2);var Ib=$u,Uu=class Uu extends Pc{};a(Uu,"ObjectPageTreeTable"),y([v({manifest:{path:wr}})],Uu.prototype,"type",2),y([v({manifest:{path:ro}}),O({since:"1.67.0"})],Uu.prototype,"condensedTableLayout",2);var Cb=Uu,Vr=class Vr{};a(Vr,"GlobalTableSettings"),y([v({manifest:{path:Do}}),O({since:"1.70.0"})],Vr.prototype,"selectAll",2),y([v({manifest:{path:Do}}),O({since:"1.70.0"})],Vr.prototype,"selectionLimit",2),y([v({manifest:{path:Do}}),O({since:"1.48.5"})],Vr.prototype,"createMode",2),y([v({manifest:{path:Do}}),O({since:"1.61.0"})],Vr.prototype,"disableDefaultInlineCreateSort",2),y([v({manifest:{path:Do}}),O({since:"1.78.0"})],Vr.prototype,"variantManagement",2),y([v({manifest:{path:Do}})],Vr.prototype,"type",2),y([v({manifest:{path:Do}}),O({since:"1.54.0"})],Vr.prototype,"multiSelect",2),y([v({manifest:{path:Do}}),O({since:"1.67.0"})],Vr.prototype,"condensedTableLayout",2),y([v({manifest:{path:Do}}),O({since:"1.77.0"})],Vr.prototype,"inlineDelete",2);var Nb=Vr;var E0=te(se());var N8=a((e,t,n,i,r)=>{let{actionId:o}=Wi(n),s=Yn(n[1],r);return`${e}${s}::action::${Bi(o).replace(":2f","::")}`},"getActionButtonId"),Bu={controlId:N8,controlType:()=>E0.ControlType.Button,createFlexChange:Te},ms=class ms{};a(ms,"ObjectPageToolBarAction"),y([v({flex:Bu,generate:dt})],ms.prototype,"visible",2),y([v({flex:Bu})],ms.prototype,"tooltip",2),y([v({flex:Bu})],ms.prototype,"icon",2),y([v({flex:Bu})],ms.prototype,"activeIcon",2),y([v({flex:Bu})],ms.prototype,"type",2);var Lb=ms;function hs(e){return e.replace("/","::")}a(hs,"convertActionKey");function Fb(e){return e.replace(/:2f/g,"/").replace(/:23/g,"#").replace(/:40/g,"@")}a(Fb,"convertSelector");function L8(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(L8,"addSmartFilterBarFlex");function R8(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=Bi((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(R8,"filterActions");function F8(e,t,n){e.configPart||(e.configPart=t.table.columns={}),e.configPart[`${n}`]||(e.configPart[`${n}`]={})}a(F8,"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 D8(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=R8(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"&&F8(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(D8,"addActionFlex");function w8(e,t,n,i){var o;if(i.definitions.ChartSettings.properties[t]){let s=qn(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(w8,"addSmartChartFlex");function M8(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)&&om(e.table,i,n)}a(M8,"addAdditionalFlexChanges");function Zm(e,t,n,i){var r,o;try{let s=Qa(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=Fb(s.controlId),s.controlType){case We.ControlType.SmartFilterBar:{L8(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&&D8(e,l,s,n,u);break}case We.ControlType.SmartChart:{w8(e,l,s,n);break}default:{M8(e,s,n);break}}}catch(s){oe(i,{severity:We.LogSeverity.Error,message:ee.t("FLEXERROR")},...s)}}a(Zm,"addFlex");function V8(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(V8,"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=qn(e,u);if(p!=null&&p.manifest){let d=p.manifest.path([i],t,o);s=Wn(t,d),bl(p,s,u,e),Mg(l,s,d,r)}V8(u,e)}}a(_n,"transferSettingsOfObject");function eh(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(eh,"determineTableType");function b0(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(b0,"evaluateFragmentColumn");function k8(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(k8,"determineCellsFragmentName");function j8(e,t,n,i,r,o,s){var l;if(e[0]){let p=JSON.parse((0,A0.xml2json)(e[0].fileContent,{compact:!0}))[ko],d=Eu(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)b0(m,n,i,r,t,o,s);else b0(d,n,i,r,t,o,s)}}a(j8,"analyzeFilteredFragments");function $8(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=k8(m,e,u,p),C=b.split(".");b=C[C.length-1]+We.FRAGMENTNAMEPART+T;let L=r.filter(R=>R.dataSourceUri.endsWith(b));j8(L,i,e,o,d,m,E)}}}a($8,"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;$8(u,s,o,e,r)}}a(Bl,"addFragments");function th(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(th,"importHeaderActions");var Ut=te(se());var x0=te(se());var _b={};qs(_b,{ANNOERR:()=>nK,ANNOTATIONFILE:()=>iK,COMPONENTNOTDEFINED:()=>rK,CONTEXTPATHCOULDNOTBERESOLVED:()=>q8,ENTITYSETNOTFOUND:()=>z8,FLEXERROR:()=>uK,INVALIDANCHOR:()=>pK,INVALIDTARGETDEFINITION:()=>gK,MACROS_ANNOTATION_ERROR:()=>yK,NOALP:()=>eK,NOBASEPATH:()=>W8,NOENTITYSET:()=>J8,NOENTITYTYPE4SET:()=>Q8,NOFE:()=>H8,NOFRAGMENT:()=>dK,NOGENERICSCHEMA:()=>K8,NOID4SECTION:()=>mK,NOLINEITEMS:()=>aK,NOLR:()=>Z8,NOPAGEFORENTITYSET:()=>X8,NOPAGES:()=>G8,NOPRESENTATIONVARIANT:()=>Y8,NOROUTING:()=>oK,NOROUTINGID:()=>fK,NOTARGET:()=>lK,NOTARGETS:()=>cK,NOTEMPLATE:()=>tK,NOVISUALIZATIONS:()=>sK,UNKNOWNMINUI5VERSION:()=>B8,WRONGMINUI5VERSION:()=>U8,XMLPARSEFAILURE:()=>hK,default:()=>vK});var U8="The minUI5Version {{- minUI5Version}} from manifest.json does not fit to the given version of @sap/ux-specification, update the specification version in package.json",B8="The minUI5Version can not be determined from the pattern '{{- minUI5Version}}'",W8="No base path was passed in the API call for creating a custom call, app id = '{{- appId}}'",G8="No pages found in manifest for app with id '{{- appId}}'",H8="The manifest passed is not correct for Fiori Elements V2: section sap.ui.generic.app is missing",K8="No generic schema found while generating page schema for {{- pageType}}",X8="No page found in manifest for entitySet '{{- entitySet}}'",J8="No entitySet defined for page '{{- pageName}}'",Q8="No entityType could be found for the given entity set '{{- entitySetName}}'",Y8="No PresentationVariant defined for '{{- key}}'",z8="Entity set '{{- entitySetName}}' was specified in manifest, but this entity set could not be found in metadata",q8="The contextPath '{{- contextPath}}' was specified in manifest, but could not be resolved, following the metadata definitions",Z8="No page found in manifest for list report",eK="No page found in manifest for analytical list page",tK="No Fiori Elements template could be determined, as section '{{- section}}' is not defined in manifest",nK="Error while parsing annotation files",iK="Annotation file: '{{- file}}'",rK="Component name is not defined for page '{{- pageName}}'",oK="Incomplete manifest definition: no routing defined",aK="UI.LineItem annotation has not been defined",sK="Empty Collection for Visualizations",cK="Incomplete manifest definition: no targets defined",lK="Invalid reference: annotation target '{{- target}}' not found",fK="No page found in manifest for routingId '{{- routingId}}'",uK="Error while parsing flex change",pK="Custom column with ID '{{- id}}' has an invalid anchor '{{- anchor}}'",dK="fragmentName is undefined for columnKey '{{- columnKey}}'",gK="Invalid routing target definition in manifest: '{{- target}}'",mK="No ID has been defined for collection facet '{{- facet}}'. As a consequence, no stable ID can be calculated.",hK="Parsing of XML file failed with error - {{- error}}",yK="Error during resolving annotation for '{{- control}}'",vK={WRONGMINUI5VERSION:U8,UNKNOWNMINUI5VERSION:B8,NOBASEPATH:W8,NOPAGES:G8,NOFE:H8,NOGENERICSCHEMA:K8,NOPAGEFORENTITYSET:X8,NOENTITYSET:J8,NOENTITYTYPE4SET:Q8,NOPRESENTATIONVARIANT:Y8,ENTITYSETNOTFOUND:z8,CONTEXTPATHCOULDNOTBERESOLVED:q8,NOLR:Z8,NOALP:eK,NOTEMPLATE:tK,ANNOERR:nK,ANNOTATIONFILE:iK,COMPONENTNOTDEFINED:rK,NOROUTING:oK,NOLINEITEMS:aK,NOVISUALIZATIONS:sK,NOTARGETS:cK,NOTARGET:lK,NOROUTINGID:fK,FLEXERROR:uK,INVALIDANCHOR:pK,NOFRAGMENT:dK,INVALIDTARGETDEFINITION:gK,NOID4SECTION:mK,XMLPARSEFAILURE:hK,MACROS_ANNOTATION_ERROR:yK};function S0(e){e.addResourceBundle(e.language,"translation",_b)}a(S0,"initI18n");function Yt(e="en"){ee.init({resources:{en:{translation:x0.default}},lng:e,fallbackLng:"en",joinArrays:`
|
|
294
294
|
|
|
295
|
-
`}),S0(ee)}a(Yt,"initI18n");var wt=te(se());function Oc(e,t,n){var r;let i;for(let o in e){let s=e[o];if(da((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(da((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),da((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 Db(e,t){let n=e.split("|");return wt.v2.SectionPosition[n[0]]&&n[1]===t}a(Db,"isAssociatedCustomSection");function P0(e,t){let n=Wn(e,`sap.ui5/extends/extensions/${wt.v2.SAPUI5_VIEW_EXTENSION}/${wt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Db(r,t)&&(i[r]=n[r]);return i}a(P0,"findCustomSectionExtensions");function TK(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(TK,"removeEmptySettingsOfFooter");function EK(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(EK,"removeEmptySettingsOfFilterBar");function bK(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(bK,"removeEmptySettingsOfToolBar");function nh(e){bK(e),EK(e),TK(e)}a(nh,"removeEmptySettings");var Mb={};qs(Mb,{AnalyticalListPage:()=>jr,ListReport:()=>so,ObjectPage:()=>ci,OverviewPage:()=>Ht,exportFilterSettings:()=>C0,importDateSettingsOVP:()=>O0,importFilterSettings:()=>I0});var ih=te(se());var jr=class{};a(jr,"AnalyticalListPage"),y([v({flex:{controlId:Fg,controlType:()=>ih.ControlType.DynamicPage,createFlexChange:Te}})],jr.prototype,"fitContent",2),y([Ft("table")],jr.prototype,"table",2),y([Ft("template::SmartFilterBar")],jr.prototype,"filterBar",2),y([Ft("analyticalListPageChart")],jr.prototype,"chart",2),y([Ft("analyticalListFooter")],jr.prototype,"footer",2),jr=y([Dr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:ih.v2.FE_TEMPLATE_V2_ALP})],jr);var Wu=te(se());var so=class{};a(so,"ListReport"),y([v({flex:{controlId:Fg,controlType:()=>Wu.ControlType.DynamicPage,createFlexChange:Te}})],so.prototype,"fitContent",2),y([Ft("listReportFilter")],so.prototype,"filterBar",2),y([Ft("listReport")],so.prototype,"table",2),y([Ft("listReportFooter")],so.prototype,"footer",2),so=y([Dr({id:Wu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Wu.v2.FE_TEMPLATE_V2_LIST_REPORT})],so);var wb=te(se());var ci=class{};a(ci,"ObjectPage"),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),y([v({manifest:{path:t=>Ki(t)}}),O({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=>cm(t)}}),O({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),y([v({manifest:{path:t=>Ki(t),import:t=>{if("chartSettings"in t)return t.chartSettings},key:"chartSettings"}}),O({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),y([v({manifest:{path:t=>Ki(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:rc}}),O({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=y([Dr({id:wb.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:wb.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function AK(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(AK,"importDateSettingsFieldsOVP");function O0(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&&AK(e,t),t}a(O0,"importDateSettingsOVP");function I0(e){let t={};return t.dateSettings=O0(e.filterSettings),t}a(I0,"importFilterSettings");function SK(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(SK,"exportFilterFields");function C0(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&&SK(t,n,e))}a(C0,"exportFilterSettings");var Ht=class{};a(Ht,"OverviewPage"),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"globalFilterModel",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"globalFilterEntityType",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"globalFilterEntitySet",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"showBasicSearch",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"disableErrorPage",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"smartVariantRequired",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"bHeaderExpanded",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"containerLayout",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"showDateInRelativeFormat",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"disableTableCardFlexibility",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"enableLiveFilter",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"enableLazyRendering",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"refreshStrategyOnAppRestore",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"considerAnalyticalParameters",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"refreshIntervalInMinutes",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"useDateRangeType",2),y([v({manifest:{path:()=>mn(),import:I0,export:C0}}),O({since:"1.80.0"})],Ht.prototype,"filterSettings",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"dataLoadSettings",2),y([v({manifest:{path:()=>mn()}})],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 Vb=class Vb{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(Vb,"MetadataFactory");var Xl=Vb;var ei=te(se());var xK={},PK={Table:mc,ResponsiveTableWithMultiSelect:mc,ResponsiveTableWithInlineDelete:mc},OK={[ei.v2.CardSettingsType.listCardSettings]:Fl,[ei.v2.CardSettingsType.listCardSettingsv4]:Fl,[ei.v2.CardSettingsType.analyticalCardSettings]:_l,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:_l,[ei.v2.CardSettingsType.stackCardSettings]:du,[ei.v2.CardSettingsType.linkListCardSettings]:gu,[ei.v2.CardSettingsType.tableCardSettings]:Dl,[ei.v2.CardSettingsType.tableCardSettingsv4]:Dl},IK={[ei.SAPUI5_VIEW_CLASS]:Vu,[ei.SAPUI5_FRAGMENT_CLASS]:Mu,Table:Pc,ObjectPageResponsiveTableWithMultiSelect:Pc,ObjectPageResponsiveTableWithInlineDelete:Pc},CK={[ei.PageTypeV2.AnalyticalListPage]:xK,[ei.PageTypeV2.ListReport]:PK,[ei.PageTypeV2.ObjectPage]:IK,[ei.PageTypeV2.OverviewPage]:OK},kb=class kb extends Xl{constructor(){super(Rb,Mb,CK)}};a(kb,"MetadataInstanceFactoryV2");var Ni=kb;function NK(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(NK,"importFilterBar");function LK(e,t,n,i,r){var s;let o;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?o=t[e+"<LineItems>"]:t[lc]&&t[fc]&&(o=JSON.parse(JSON.stringify(t[lc])),o.properties={...o.properties,...t[fc].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(LK,"importTable");function RK(e,t,n,i){let r=e.jsonSchema.definitions,o=eh(e.manifest,i);if(t.table=n.createInstance(Ut.PageTypeV2.ListReport,o,t.table),th(t,n,r),LK(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=hs(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)}NK(t,n,e,r,i),t.footer={actions:{}};let s=r[Ut.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=hs(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(RK,"addSettings");function rh(e){if(Yt(),!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 RK(e,i,n,r[0]),e.flex.forEach(s=>{Qa(s)&&Zm(i,s,e.jsonSchema,e.logger)}),Bl(i,e.manifest,o,Ut.PageTypeV2.ListReport,e.fragments),nh(i),i}a(rh,"createListReportConfig");var At=te(se());function FK(e,t,n,i){var u,p;let r=eh(e.manifest,i),o=e.jsonSchema.definitions;if(th(t,n,o),t.table=n.createInstance(At.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),_n(t.table,e.manifest,o[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,o[At.DefinitionName.ToolBar],i,e.logger),o[At.DefinitionName.ActionsLR])for(let d in o[At.DefinitionName.ActionsLR].properties){let m=hs(d);t.table.toolBar.actions[m]=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.Action),_n(t.table.toolBar.actions[m],e.manifest,o[At.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,o[At.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),o[At.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let d=o[At.DefinitionName.SelectionFields].properties;for(let m in d){let T=m;t.filterBar.selectionFields[T]=n.createInstance(At.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[T],e.manifest,o.SelectionFieldDateSettings,i,e.logger,T)}}t.chart=n.createInstance(At.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,o.ChartSettings,i,e.logger),t.footer={actions:{}};let s=o[At.DefinitionName.FooterActionsLR];if(s)for(let d in s.properties){let m=hs(d);t.footer.actions[m]=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.FooterAction),_n(t.footer.actions[m],e.manifest,o[At.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[At.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(At.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(At.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[d],e.manifest,o.KPISettings,i,e.logger,d)})}a(FK,"addSettings");function oh(e){if(Yt(),!Gl(e))return;let n=new Ni,i=n.createPageInstance(At.PageTypeV2.AnalyticalListPage),r=[],o=Kl(e.manifest[At.ManifestSection.generic].pages,r,e.logger);if(Hl(o,e.logger,o==null?void 0:o.entitySet),!!o)return FK(e,i,n,r[0]),e.flex.forEach(s=>{Qa(s)&&Zm(i,s,e.jsonSchema)}),Bl(i,e.manifest,o,At.PageTypeV2.AnalyticalListPage,e.fragments),nh(i),i}a(oh,"createAnalyticalListPageConfig");var Ee=te(se());var Gu=require("@sap-ux/vocabularies-types/vocabularies/UI");var DK=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function wK(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(`${Gu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ActionTitlePrefix}${t}`;else if(e[0].indexOf(Gu.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(wK,"getSingleSelectorIdPart");function MK(e){let t,n=e.split(":::");if(n.length===1)t=wK(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(`::${Gu.UIAnnotationTerms.LineItem}`,`/@${Gu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}a(MK,"getFacetID");function VK(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let d=Qa(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=MK(T);T=Fb(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(VK,"prepareFlexChanges");var kK=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 jK(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&&om(n,u,i.jsonSchema)}}a(jK,"importFlexChangesOfTable");function $K(e,t){return e.facetId==="template"&&t}a($K,"isStandardActionFlexChange");function UK(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&&DK.includes(t.controlType)||$K(t,l)}a(UK,"matchSelector");function BK(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;UK(e,d,s,l,r,o)&&(t[i]=d.newValue)}}a(BK,"importFlexChanges");function WK(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:Dg(r,o),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}a(WK,"checkDeprecatedProperties");function GK(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=Wn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Wn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Wn(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 WK(p,o,n,u),p}a(GK,"importManifestSetting");function Ji(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=qn(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"))jK(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);BK(n,t,i.flexChanges,p,m,o)}else d!=null&&d.manifest&&GK(d,i.pageKeys,e,t,p,s,r)}}a(Ji,"transferSettingsAndFlexChanges");function L0(e,t,n,i){let r=Bi(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=`${hF}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Bg}${r}`;break}}return r.replace(/@/g,"")}a(L0,"getActionId");function HK(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=L0(s,o,"","");e.actions[o]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Ji(n,e[Ee.PropertyName.actions][o],n.jsonSchema.definitions[l],i,{},u)}}}a(HK,"fillStandardActions");function ah(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=hs(p),m=L0(s,d,r,o);m&&(n[Ee.PropertyName.actions][d]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Ji(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]}}HK(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}a(ah,"fillActions");function KK(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}`;Ji(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(KK,"fillFields");function XK(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(XK,"prepareTableSchema");function JK(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=XK(p,t,m);Ji(e,i[t.id],t.schema,r,{title:t.title}),Ji(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");ah(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(JK,"fillTableInConfig");function QK(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,o=r?Vg(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(QK,"fillCustomColumnsInConfig");function YK(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)&&(Ji(e,i[t.id],t.schema,r,{title:t.title}),Ji(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}a(YK,"fillChartSection");function zK(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&&Ji(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&&ah(e,o.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&KK(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(zK,"fillFormSection");function N0(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Ji(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,R0(e,o,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}a(N0,"fillSubSection");function R0(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:kK(t[l]),schema:t[l],title:BT(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=o[`${p.type}<${l}>`],JK(e,p,n,i,r),QK(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=o[`${p.type}<${l}>`],YK(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=o[`${p.type}<${l}>`],zK(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":{p.schema=o[`${p.type}<${l}>`],N0(e,p,n,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=o[`${p.type}<${l}>`],N0(e,p,n,i,r))}}a(R0,"fillSectionsInConfig");function qK(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"];Ji(r,s,l,n,{id:o}),t.sections.custom.push(s)}}}a(qK,"fillCustomSectionsInConfig");function ZK(e,t){var p;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Ji(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Ji(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>"];Ji(e,n.header,r,t);let o=i[Ee.DefinitionName.ObjectPageHeaderActions];o&&ah(e,o.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&ah(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Ji(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;R0(e,l.properties,d,n.sections,t)}let u=P0(e.manifest,e.entitySet);return qK(u,n,t,i,e),n}a(ZK,"fillConfig");function sh(e){Yt();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=VK(e.flex,n),s=new Ni;return ZK(e,{pageKeys:i,flexChanges:o,v2Page:r,factory:s})}a(sh,"createObjectPageConfigV2");function lh(e,t){var n,i;return(n=e.component)!=null&&n.name?Lg(da((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}a(lh,"generateId");function eX(e,t,n,i,r,o,s){e.navigation={};let l=F0(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=lh(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(eX,"getPageConfigsAndNavigations");function F0(e,t,n,i,r,o){var l;let s={};for(let u in e){let p=e[u],d=lh(p,u);if(!d)continue;let m={pageType:da((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===hn.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[T],fragments:r,logger:o};m.config=rh(b)}else if(m.pageType===hn.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[T],fragments:r,logger:o};m.config=oh(b)}else{let b={manifest:n,flex:t,jsonSchema:i[T],entitySet:m.entitySet,fragments:r,logger:o};m.config=sh(b)}p.pages&&eX(m,p,t,n,i,r,s)}return s}a(F0,"getPagesAndConfigs");var jb=class jb extends es{constructor(t){Yt();let n;t.manifest[hn.ManifestSection.generic]?n=t.manifest[hn.ManifestSection.generic].pages:oe(t.logger,{severity:hn.LogSeverity.Error,message:ee.t("NOFE"),location:{path:hn.MANIFESTPATH,range:[hn.ManifestSection.generic]}}),n||oe(t.logger,{severity:hn.LogSeverity.Error,message:ee.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:hn.MANIFESTPATH,range:[hn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&lh(n[i],i),o=new ts,s=Nt(hn.SchemaType.Application),l=t.appSchemas[s.filename];_n(o,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,F0(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),hn.FioriElementsVersion.v2,o)}};a(jb,"V2AppProvider");var ch=jb;function Hu(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:hn.LogSeverity.Error,message:ee.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:hn.MANIFESTPATH}}),((o=l.component)==null?void 0:o.name)===t){let u=lh(l,s);i[u]=l}if(t===hn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Hu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}a(Hu,"getPages");var Sa=te(se());var vs=te(se());var Ub=te(uT());var yn=te(se());var tX=["colorPalette","tabs"];function nX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}a(nX,"createCard");function _0(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),_0(e,n.join("|"))}return t}a(_0,"findAvailableId");function Ku(e,t,n,i,r,o){i!=null&&i.properties&&$b(e,t,n,i.properties,r,o)}a(Ku,"transferManifestEntriesOVP");function Ic(e,t,n,i){return e.createInstance(yn.PageTypeV2.OverviewPage,i,n,t)}a(Ic,"assignReflectMetadataRules");function iX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(B),r=e.appSchema.definitions[i[1]];t=Ic(e.factory,i[1],t,"CustomCard"),Ku(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}a(iX,"processAnyOfDefinitionsOfOVP");function rX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!tX.includes(i)?t[i]=(0,Ub.default)(t[i]||{},r||{},{arrayMerge:jT}):t[i]=r}a(rX,"checkSyncRuleForExport");function oX(e,t,n,i,r,o){let s=e.manifest.path([...t,n]),l=Wn(i.manifest,s);if(n in yn.v2.CardSettingsType||n==="settings")l.settings=(0,Ub.default)(l.settings||{},r||{},{arrayMerge:jT});else if(r!==void 0){let u=e.manifest.export;rX(u,l,o,n,r)}else l[n]!==void 0&&delete l[n]}a(oX,"transferToManifest");function aX(e,t,n,i){Object.keys(e).forEach(r=>{let o=e[r].template,s;Object.values(yn.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]=Ic(n,s[0],e[r],"CustomCard"),nX(r,i.manifest[yn.ManifestSection.ovp]),Ku(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[yn.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[yn.ManifestSection.ovp].cards[r]})}a(aX,"transferCards");function sX(e,t,n){if(t==="cards")aX(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Ro(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,yn.PageTypeV2.OverviewPage);if(e.propertyList[t].$ref){let r=e.propertyList[t].$ref.split(B);e.currentObject=Ic(e.factory,t,e.currentObject,r[1]),e.pathHierarchy=[...e.pathHierarchy,t],Ku(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],$b(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],$b(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}a(sX,"exportOfObject");function $b(e,t,n,i,r,o){for(let s in i){if(s==="description")continue;let l=e[s],u=qn(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=iX(p)):l&&typeof l=="object"&&i[s]&&sX(p,s,r),u!=null&&u.manifest&&oX(u,o,s,t,l,e)}}a($b,"processProperties");function cX(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=wg(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 L=JSON.parse(m);return L={content:L.content,selector:L.selector},JSON.stringify(C)===JSON.stringify(L)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}a(cX,"evaluateFlexRule");function lX(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(lX,"exportConfigValue");function fX(e,t,n,i,r){let o=Wn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)lX(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]}vl(e.exportResults.manifest,t)}a(fX,"evaluateManifestRule");function uX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(yn.FacetTitlePrefix)?r.split(yn.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}a(uX,"getManifestPathOfSections");function pX(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}a(pX,"getManifestPathOfTable");function dX(e,t,n,i,r){let o;return t[0]===yn.PropertyName.sections?o=uX(t,o,n,e,r):t[0]===yn.PropertyName.table?o=pX(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(dX,"getManifestPath");function gX(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)cX(e,i,t,r,o,n,s);else if(t.manifest){let u=dX(e,i,t,n,o);fX(e,u,t,s,n)}}a(gX,"evaluateExportRule");function mX(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)&&(Tm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(yn.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(yn.ViewTemplateType.ResponsiveTableColumnsExtension,yn.ViewTemplateType.ResponsiveTableCellsExtension);Tm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}a(mX,"deleteObsoleteColumn");function hX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=MF(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&mX(r,e,n)}a(hX,"deleteObsoleteColumnsFromFragment");function yX(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}=Em(n,i,s.tabKey||r,s.extensionType);o[l]||(o[l]={viewTemplateType:u,columns:[]}),o[l].columns.push(s)}return o}a(yX,"clusterConfigColumnsByPath");function D0(e,t,n,i){let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in yn.v2.TableColumnExtensionTypeV2){let{path:u}=Em(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};hX(p)}if(t){let l=yX(t,n,e.v2Page,s,r);for(let u in l)OE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}a(D0,"transferColumnExtensions");function vX(e,t,n,i,r,o){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let d=_0(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]];ys(e,t[p],i,[...r,s[p]],T)}let u=Wn(e.exportResults.manifest,qT());for(let p in u)Db(p,l)&&!s.includes(p)&&delete u[p]}a(vX,"transferManifestExtensions");function TX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===yn.PropertyName.table){n=e[i-1];break}return Yn(n,t)}a(TX,"getSectionId");function EX(e,t,n,i,r,o){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Ro(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ys(t,u.configObject,r,[...o,i],u.targetDefinition,l)})}a(EX,"transferIndexTable");function bX(e,t,n,i,r,o){let s,l=Vg(e.$ref);l&&(s={target:l,key:TX(t,n)}),D0(i,r==null?void 0:r.custom,o.targetDefinition,s)}a(bX,"transferCustomColumns");function AX(e,t,n,i,r,o,s){e.anyOf.forEach(l=>{let u=Ro(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ys(t,u.configObject,o,[...s,r],u.targetDefinition,u.title)})}a(AX,"handleAnyOfDefinitions");function SX(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")vX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(o&&r==="custom"){bX(l,t,s,e,n,o);return}else o?ys(e,o.configObject,i,[...t,r],o.targetDefinition,o.title):l.anyOf&&AX(l,e,s,n==null?void 0:n[r],r,i,t)}a(SX,"transferComplexProperty");function ys(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&&_g(t,l),p=u?[...n,u]:n,d=qn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=Ro(e.appSchema,o,s,m,l,e.factory,e.pageType);if(gX(e,d,t,[...i],p,o,l),EX(s,e,o,l,p,i),s===void 0||typeof s=="object")SX(e,i,t,p,l,T,o);else if((m==null?void 0:m.$ref)===B+"TableCustomColumns"){D0(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}a(ys,"transferManifestEntriesAndFlexChange");function w0(e,t,n,i,r,o,s){let l=t[t.length-1],u=e.definitions[l];n[i]=Ic(r,i,n[i],l),o.push(i),Bb(r,n[i],s,u.properties,e,o)}a(w0,"transferSettingsOfRef");function xX(e,t,n,i,r,o,s){if(n[t].$ref){e[t]={};let l=n[t].$ref.split(B);w0(i,l,e,t,r,o,s)}else if(t==="settings"&&n[t].anyOf){e[t]={};let u=`${B}${vs.v2.cardTemplateSettingsMap[e.template]}`.split(B);w0(i,u,e,t,r,o,s)}}a(xX,"processPropertiesOfObject");function PX(e,t,n,i,r,o,s){let l=qn(e,t);if(l!=null&&l.manifest){let u=l.manifest.path([...n,t]),p=Wn(i,u);Object.prototype.hasOwnProperty.call(p,t)&&El(l,p,t,e)}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&xX(e,t,r,o,s,n,i)}a(PX,"processOvpProperty");function Bb(e,t,n,i,r,o){for(let s in i)PX(t,s,o,n,i,r,e)}a(Bb,"processOvpProperties");function OX(e,t,n,i){Bb(i,e,t,n.properties,n,[]),e.cards={},Object.keys(t[vs.ManifestSection.ovp].cards).forEach(r=>{let o=t[vs.ManifestSection.ovp].cards[r].template,s=vs.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[r]=Ic(i,s,{},"CustomCard"),e.cards=Ic(i,s,e.cards,"CustomCard"),Bb(i,e.cards[r],t,n.definitions[s].properties,n,[r])})}a(OX,"addSettings");function fh(e){let t=new Ni,n=t.createPageInstance(vs.PageTypeV2.OverviewPage);return e.jsonSchema&&OX(n,e.manifest,e.jsonSchema,t),n}a(fh,"createOverviewPageConfig");var Wb=class Wb extends es{constructor(t){let n={},i=t.manifest[Sa.ManifestSection.ovp],r=new ts,o=Nt(Sa.SchemaType.Application);_n(r,t.manifest,t.appSchemas[o.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(d=>d.includes(Sa.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s]},u={pageType:Sa.PageTypeV2.OverviewPage,config:fh(l),entitySet:i.globalFilterEntitySet},p=Lg(u.pageType,u.entitySet);n[p]=u,super(t.manifest,t.appSchemas,p,n,Sa.FioriElementsVersion.v2,r,t.logger)}};a(Wb,"V2OvpProvider");var uh=Wb;var Uo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ne=te(se()),M0=require("path");function IX(){return([e,t],[n,i])=>t[ne.SchemaTag.propertyIndex]-i[ne.SchemaTag.propertyIndex]}a(IX,"sortByPropertyIndex");function Xu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(IX())}a(Xu,"sortPropertiesRecords");function V0(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(V0,"getExtensionText");function Gb(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(Gb,"addExtensionToSortedArray");function CX(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(CX,"addRemainingTargetByBefore");function Hb(e,t,n,i,r=!1){var u,p;let o=Object.entries(e).length,s=a((d,m)=>{let T=V0(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?(Gb(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&&CX(e,d,m,n,T)}else r&&(Gb(m,n,n.length,d,T),delete e[d])}let l=Object.entries(e).length;l>0&&o!==l?Hb(e,t,n,i):l>0&&Hb(e,t,n,i,!0)}a(Hb,"adjustCustomExtReferringToCustomExt");function NX(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(NX,"getExtensionAnchor");function LX(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(LX,"getLocalExtensionsToSkip");function RX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ne.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let 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(RX,"getExtensionIndexByMergedApproach");function FX(e,t,n,i,r=!1){return r?RX(e,t,n):n.findIndex(o=>o[0]===i)}a(FX,"getExtensionIndex");function Ts(e,t,n,i="template",r,o=!1){let s=[...t],l={...e},u=LX(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:V0(d)||p,keys:[{name:ne.SchemaKeyName.key,value:`${p}`}],actionType:ne.ActionType.Custom},T=NX(d,s);if(T){let b=FX(d,e,t,T,o);b>-1&&(Gb(d,t,b,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&Hb(l,n,t,r),t}a(Ts,"addExtensionToArray");function Cc(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=Xu(l),p=o?o.replace(/::/g,"/"):`@${Uo.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=Ts(d,u,i,void 0,n));for(let L=0;L<u.length;L++)u[L][1][ne.SchemaTag.propertyIndex]=L;let m={};u.forEach(([L,R])=>m[L]=R),e.definitions[s].properties=m}a(Cc,"addCustomColumnDefinition");function _X(e,t,n,i,r,o=!0){if(i.Determining!==!0){let s;e.entitySet?s=ne.DefinitionName.ViewTableColumnBasicAction: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=kg(i.Action),m=t.properties[`${p}::${d}`]={description:u};o?m.$ref=Bn(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]=no(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 DX(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=ya(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]=no(s),d[l]=m,Jg(s,d,l)}}a(DX,"addLineItemRecordToSchema");function Nc(e,t=ne.DefinitionName.TableColumn,n,i){let{actions:r,lineItemPath:o}=Kg(e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);Kb(e,r,o,void 0,t)}a(Nc,"addLineItemsTypeToSchema");function Kb(e,t,n,i,r=ne.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let o=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Uo.UIAnnotationTypes.DataFieldForAction||s.$Type===Uo.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===Uo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;DX(e,l,u,o,i)}o++})}a(Kb,"appendLineItemsToSchema");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:`@${Uo.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;va(s,E)}}a(Lc,"addFragmentEnumForAnchor");function Bo(e,t,n=ne.DefinitionName.CustomActionPosition){qa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}a(Bo,"addEnumForActionAnchor");function ph(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(ph,"findPageV4");function k0(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(k0,"alignSchemaWithTemplateType");function Es(e,t,n,i=ne.DefinitionName.CustomTableAction,r="",o=""){var d,m,T,b;let s=e.definitions[r];if(!s)return;let l=Xu(s),u;o?i.indexOf(ne.DefinitionName.CustomFormActionOP)!==-1?u=o.replace(/::/g,"#"):u=o.replace(/::/g,"/"):i===ne.DefinitionName.CustomFormActionOP?u=`@${Uo.UIAnnotationTerms.FieldGroup}`:u=`@${Uo.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=Ts(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,L])=>E[C]=L),e.definitions[r].properties=E}}a(Es,"addCustomActionDefinition");function dh(e,t,n,i=ne.DefinitionName.CustomHeaderActionOP,r=""){var p,d,m,T,b,E,C,L;let o=e.definitions[r];if(!o)return;let s=Xu(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=(L=(C=(E=(b=t.options)==null?void 0:b.settings)==null?void 0:E.content)==null?void 0:C.footer)==null?void 0:L.actions,l&&(s=Ts(l,s,i,"press",n));let u={};if(s){for(let R=0;R<s.length;R++)s[R][1][ne.SchemaTag.propertyIndex]=R;s.forEach(([R,F])=>u[R]=F)}e.definitions[r].properties=u}a(dh,"addHeaderFooterCustomActionDefinition");function Rc(e,t,n){let i=Rg(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=Rg(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(Rc,"getManifestPage");function Fc(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,M0.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(Fc,"getPageCustomExtensionFile");function bs(e,t,n,i){let r=Rc(n,t,i),o=Rg(r,["options","settings","viewName"]);return r&&typeof o=="string"?Fc(e,r,n,"view",o):void 0}a(bs,"getPageCustomViewFile");function j0(e,t,n,i,r,o,s){var d,m,T,b,E,C,L,R;let l=Xu(t),u=new Map;if(l=l.map(F=>{let U=rm(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=Ts(F.subSections,l,i,"template",s,r))}else{let F=(R=(L=(C=n.options)==null?void 0:C.settings)==null?void 0:L.content)==null?void 0:R.header;F&&"facets"in F&&(l=Ts(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(j0,"addCustomSectionDefinition");function $0(e,t,n){var l,u,p;let i=Xu(t),r=new Map;i=i.map(d=>{let m=rm(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[`@${Uo.UIAnnotationTerms.SelectionFields}`];typeof o=="object"&&"filterFields"in o&&(i=Ts(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($0,"addCustomFilterFieldDefinition");var w=te(se()),_c=require("@sap-ux/vocabularies-types/vocabularies/UI");var wX=["header","filterBar","chart","table"];function Xb(e,t,n,i){if(i||(i=t.definitions[w.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[w.SchemaTag.annotationPath]=to(e.fullyQualifiedName,_c.UIAnnotationTerms.SelectionFields)),n){let r=0;n==null||n.forEach(o=>{var p,d;let s=o.value,l="SelectionField::"+ft(o.value);o.type==="PropertyPath"&&(s=Ig(o,e)),i.properties[l]={$ref:B+l},i.properties[l][w.SchemaTag.propertyIndex]=r;let u=no(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++})}return i}a(Xb,"addSelectionFields");function MX(e){var n,i,r;let t=(r=(i=(n=e.options.settings)==null?void 0:n.controlConfiguration)==null?void 0:i[`@${_c.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(MX,"getVisualFilters");function VX(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(VX,"getPropertiesIndex");function kX(e,t,n,i){var s,l,u,p,d,m;let r=VX(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:Bn(w.DefinitionName.VisualFilter,T)},C=r.indexOf(T);C!==-1&&(E[w.SchemaTag.propertyIndex]=C);let L=Dt(w.DefinitionName.VisualFilter,T,t);(s=b.visualFilter)!=null&&s.valueList&&(L[w.SchemaTag.annotationPath]=`${T}/@${b.visualFilter.valueList}`);let R=(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();L.description=R||T,L[w.SchemaTag.keys]=[{name:w.SchemaKeyName.value,value:T}]}}}a(kX,"addVisualFilters");function jX(e,t,n){t.additionalProperties={$ref:`#/definitions/${w.DefinitionName.CustomFilterField}`},$0(e,t,n);let i=e.definitions[w.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&qa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[w.SchemaKeyName.value,w.SchemaKeyName.key],descriptionAsFallback:!0})}a(jX,"applyCustomFilterFields");function $X(e,t,n,i){var l,u;let r=MX(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={},kX(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=Xb(e,t,o,s),jX(t,s,n)}a($X,"addFilterBar");function W0(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(W0,"defineActions");function U0(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(U0,"findTheRightVisualization");function UX(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(UX,"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}=U0(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}=U0((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}/@${_c.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}=UX(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 BX(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(BX,"addALPChartView");function WX(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);BX(e,u,p,l);let d="Actions<ALPChart>";e.definitions[w.DefinitionName.ViewChartToolBar].properties.actions.$ref=B+d,W0(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,L;if(m&&m.indexOf(w.FacetBase.LineItem)>-1?(C=m.split(".")[1],L=t[0].secondary[0].annotationPath.split(w.UIVOCABULARYDOT)[1]):r&&(C=L=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};Nc(k,w.DefinitionName.ViewTableColumn),T&&(e.definitions[w.DefinitionName.ALPTable][w.SchemaTag.annotationPath]=T);let It=l[L].fullyQualifiedName.split("@");E[w.SchemaTag.annotationPath]=`/${It[0]}/@${It[1]}`,E[w.SchemaTag.key]="secondary",E[w.SchemaTag.keys]=[{name:w.SchemaKeyName.key,value:"secondary"}]}Cc(e,o,i.logger);let R=`${w.DefinitionName.Actions}<${ft(w.DefinitionName.LineItems)}>`;Es(e,o,i.logger,void 0,R),Bo(e,R,w.DefinitionName.CustomActionPosition)}a(WX,"addALPViews");function GX(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 W0(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[w.PropertyName.actions].$ref=`${B}${r}`,n}a(GX,"addViewChartDefinitions");function HX(e,t,n,i,r,o){let s=GX(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(HX,"addViewChart");function KX(e,t,n,i,r){var T;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:(T=e.targetEntityType)==null?void 0:T.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s,entitySet:l.entitySet},m=w.DefinitionName.ViewTableColumn;if(l.entitySet!==void 0){let{definitions:b}=e.appSchema;m=w.DefinitionName.ViewTableColumnBasic;let E=b[w.DefinitionName.ViewTableColumn];b[m]=B0(E);let C=w.DefinitionName.ViewTableColumnBasicAction,L=`${w.DefinitionName.ViewTableColumnAction}`;b[C]=B0(b[L])}Nc(d,m,l.entitySet?void 0:w.DefinitionName.ViewCustomColumn,l.entitySet?void 0:w.DefinitionName.ViewCustomAction)}a(KX,"addViewLineItems");function XX(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(XX,"addTagsToView");function JX(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(JX,"getTargetEntityType");function QX(e,t,n,i){let r=`${w.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.navPropName?`${e.navPropName}/`:""}@${_c.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),Cc(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}>`;Es(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}`,Bo(e.appSchema,u,d),e.appSchema.definitions.CustomActionPosition&&delete e.appSchema.definitions.CustomActionPosition}a(QX,"addViewCustomExtensions");function YX(e,t){let{properties:n}=e;if(n)for(let i in n)n[i].artifactType===w.ArtifactType.Manifest&&t.indexOf(i)===-1&&delete n[i]}a(YX,"handleViewProperties");function B0(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}a(B0,"createEmptyProperties");function zX(e,t,n,i,r,o,s){if((e==null?void 0:e.indexOf(w.Visualization.LineItem))>-1)KX(n,t,e,n.targetAnnotation,i),s.entitySet===void 0?QX(n,i,e,r):YX(n.appSchema.definitions[`${w.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)HX(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(zX,"addLRViewParts");function qX(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=JX(i,d,r,n),b=T==null?void 0:T.annotations.UI,{visualization:E,targetAnnotation:C,namespace:L,title:R}=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===L))==null?void 0:p.name);let F=ft(d[w.SchemaTag.key]),U={viewKey:F,appSchema:e,targetAnnotation:C,navPropName:m,targetEntityType:T,title:R,entitySet:d.entitySet};zX(E,u,U,r,o,b,d),XX(u,F,L,d)}}a(qX,"addLRViews");function ZX(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)}`,L=e.definitions[`${s}SPV`]=JSON.parse(JSON.stringify(e.definitions[s]));delete L[w.SchemaTag.isViewNode],za(L.properties.toolBar,w.DefinitionName.ToolBar,C),L[w.SchemaTag.annotationPath]=p,L.properties.columns={},za(L.properties.columns,C),delete l.properties,za(l,`${s}SPV`),l[w.SchemaTag.annotationPath]=`/${d}/@${i}`;let R=t==null?void 0:t.annotations.UI[E];R||oe(n.logger,{severity:w.LogSeverity.Error,message:ee.t("NOTARGET",{target:E})});let F={appSchema:e,lineItemAnnotation:R,entityType:t,oDataServiceAVT:n.serviceAVT,lineItemId:C};Nc(F,w.DefinitionName.TableColumn,w.DefinitionName.CustomColumn,w.DefinitionName.CustomTableAction);let U=(m=E.split("#"))==null?void 0:m[1],J=U?`@${_c.UIAnnotationTerms.LineItem}#${U}`:`@${_c.UIAnnotationTerms.LineItem}`;Cc(e,r,n.logger,void 0,C,J),Lc(e,C,r,void 0,J);let re=`${w.DefinitionName.Actions}<${C}>`,Ce=em(e,C,w.DefinitionName.CustomTableAction);Es(e,r,n.logger,un(Ce),re,J),Bo(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};Nc(C,w.DefinitionName.TableColumn,w.DefinitionName.CustomColumn,w.DefinitionName.CustomTableAction),Cc(e,r,n.logger),Lc(e,w.DefinitionName.LineItems,r),E&&(l[w.SchemaTag.annotationPath]=to(t==null?void 0:t.fullyQualifiedName,E.term,E.qualifier));let L=`${w.DefinitionName.Actions}<${ft(w.DefinitionName.LineItems)}>`;Es(e,r,n.logger,void 0,L),Bo(e,L,w.DefinitionName.CustomActionPosition)}}a(ZX,"adaptTableDefinition");function e3(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(e3,"getDefaultAnnotationPath");function t3(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=e3(t,o,n.templateType),u=k0(e,n);$X(o,e,t,i),n.templateType===w.TemplateType.ListReportObjectPageV4?(r?qX(e,r,o,s,n,t,u):((b=(T=t.options)==null?void 0:T.settings)!=null&&b.views||(e.definitions.MultiTableModeV4.properties={}),ZX(e,o,n,l,t,i,u)),e.properties[w.PropertyName.chart][w.SchemaTag.hidden]=!0):n.templateType===w.TemplateType.AnalyticalListPageV4&&(WX(e,r,o,n,l,t,u),Lc(e,w.DefinitionName.LineItems,t))}a(t3,"addTableAndViews");function n3(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",dh(e,t,n,o,i);let l=w.DefinitionName.CustomHeaderActionPosition;Dt(l,l,e,!1),s.properties.position.$ref=`${B}${l}`,Bo(e,i,l)}a(n3,"addHeaderActions");function Ju(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,Ya(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=ph(l,n,e.entitySet,i);if(!u)return r;n3(r,u,e.logger),t3(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Fo(r,wX),r}a(Ju,"generateListReportSchemaV4");var vr=require("@sap-ux/vocabularies-types/vocabularies/UI"),_=te(se());var w1=te(tc()),M1=te(D1()),V1=te(LA());var k1=te(se()),j1=te(se());function CJ(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(CJ,"findElementByXMLPath");function $1(e,t){return e[t]?!1:(e[t]={},!0)}a($1,"ensureObjectExists");function NJ(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(NJ,"getPropertiesFromRef");function LJ(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:o,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,d=$1(l,i),m=l[i];return $c({fullSchema:u,schema:p[i],element:o,contextPath:s,config:m,parent:e},t)||d}a(LJ,"traverseDefaultAggregation");function RJ(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(RJ,"isDefaultAggregationAppliable");function $c(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=NJ(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&&RJ(u,p)&&(l=LJ(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,L=C.slice(r.length),R=CJ(i,L);l=$1(o,T)||l;let F=o[T];l=$c({fullSchema:e.fullSchema,schema:b,element:R,contextPath:C,config:F,parent:e},t)||l}else l=t(e,b,o,T)||l}return l}a($c,"traverseSchema");function pf(e,t,n){let i;try{if(t){let{cst:r,tokenVector:o}=(0,V1.parse)(e.fileContent),s=(0,M1.buildAst)(r,o);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,w1.xml2js)(e.fileContent)}catch(r){oe(n,{severity:j1.LogSeverity.Error,message:ee.t("XMLPARSEFAILURE",{error:YR(r)}),location:{path:e.dataSourceUri}})}return i}a(pf,"parseXML");function df(e){return`${k1.DefinitionName.CustomExtensionFragment}<${e}>`}a(df,"getCustomExtensionFragmentDefinitionKey");function oy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}a(oy,"getRootElement");var WA=te(se()),GA=te(se());var bp=te(se());function Cs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}a(Cs,"getAttribute");function U1(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}a(U1,"getNodeByName");function FJ(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(FJ,"resolveMetaPath");function MA(e){var d;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Cs(t,"contextPath")||i.contextPath,o=Cs(t,"metaPath"),s=i.entitySet;if(!r&&!s)return;let l=r||`/${s}`;if(o){let m=FJ(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(MA,"getEntityTypeResolution");function B1(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}a(B1,"applyAnnotationPath");function _J(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=DT(r,o.fullyQualifiedName))}}if(o)return{lineItem:o,annotationPath:s}}a(_J,"getTableLineItemAnnotationData");var W1={"sap.fe.macros.Chart":e=>{let t=MA(e);B1(e.schema,t)},"sap.fe.macros.FilterBar":e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=MA(e),o=(s=t.properties)==null?void 0:s.filterFields;if(typeof o=="object"&&r){o.properties||(o.properties={});let d=ai(bp.UIVOCABULARY,n),m=d&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[d])==null?void 0:p.SelectionFields);Xb(r.entityType,i,m,o)}},"sap.fe.macros.Table":e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=MA(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(bp.UIVOCABULARY,n);if(B1(t,r),t.annotationPath){let u=_J(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:bp.DefinitionName.LineItems};Kb(p,s,t.annotationPath,o)}}}};var G1=te(se());var DJ=new Map([["filterFields","SelectionField::"]]),wJ=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Ap={anchor:"anchor",placement:"placement",key:"key"};function MJ(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 Ap.anchor in r&&Ap.placement in r}return!1}a(MJ,"isCustomExtensionSchema");function H1(e){let t=DJ.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=wJ.get(e),t&&(n.prefix=t)),n}a(H1,"getAnnotationPrefix");function VJ(e,t,n,i){let r=t.properties[n],o=H1(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Cs(l,Ap.key)||n,p=Cs(l,Ap.anchor),d=Cs(l,Ap.placement)||G1.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(VJ,"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}=VJ(e,t,s,n);i[p]=u,o[p]=s}else r.push([s,l])}Ts(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 jJ(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=Cs(e.subElements[s],"key")||r}return r}a(jJ,"getCorrectedAnchorEnumKey");function $J(e,t,n,i){var o,s;let r=H1(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;qa(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let 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=jJ(e,m.const,r,t.properties[m.const]))}}a($J,"applyEnumsForAnchors");function K1(e,t,n,i){MJ(t,n)&&(i=i||e.name,kJ(e,t,i),$J(e,t,n,i))}a(K1,"handleExtensions");var ow=te(iw());var rw="sap.fe.macros",YJ=["id","key","title","text","label","header"];function aw(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}a(aw,"getElementName");function zJ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}a(zJ,"isElementWithNamespace");function qJ(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(qJ,"getDependencies");function ZJ(e,t){let n="",i=e.attributes||[];for(let r of YJ){let o=i.find(s=>s.key===r);if(o){n=`${r==="id"?"#":""}${o.value}`;break}}return n?`${t} ${n}`:t}a(ZJ,"getViewNodeDescription");function eQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}a(eQ,"findAvailableName");function sw(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(sw,"prepareSchemaProperties");function tQ(e,t,n){t.properties||sw(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(tQ,"handleAttributes");function nQ(e){e.type===GA.MacrosPropertyType.Control&&(e.internalId=(0,ow.v4)())}a(nQ,"applyIdForMacros");function iQ(e,t,n){var i,r;try{(r=(i=W1)[e])==null||r.call(i,t)}catch{oe(n,{severity:WA.LogSeverity.Error,message:ee.t("MACROS_ANNOTATION_ERROR",{control:e})})}}a(iQ,"callAnnotationHandler");function rQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===GA.MacrosPropertyType.Control&&(e.controlName=n)}a(rQ,"updateMetadataByReference");function oQ(e,t,n,i){var T,b,E,C,L;let r=n.schema;t.properties||sw(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?eQ(i,t.properties):i,d=[];o!=null&&o.$ref?d.push(un(o.$ref)):d=[`${rw}.${i}`,`${rw}.table.${i}`];let m=!1;for(let R of d){let F=(L=r.definitions)==null?void 0:L[R];if(typeof F!="object")continue;rQ(u,F,R);let U=ZJ(e,i),J={$ref:QR(R),description:U,propertyIndex:n.index,metadata:u};tQ(e,J,r),t.properties[p]=J,m=!0,iQ(R,{...n,node:e,schema:J,rootSchema:n.schema},n.logger);break}if(nQ(u),!m)if(!(o!=null&&o.properties)||!(p in t.properties)){let R={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=R}else o.metadata=u;return p}a(oQ,"addControlToSchema");function cw(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)}cw(r,t)}}a(cw,"populateUsedDefinitionKeys");function aQ(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(aQ,"isElementAddableToSchema");function sQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!U1(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}a(sQ,"getDefaultAggregation");function cQ(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,lw(s,t,{...n,isUnique:l,index:o,path:[...n.path,{name:aw(s),index:o}]},i)}}a(cQ,"handleSubElementsOfXMLNode");function lw(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(zJ(e,o)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let b=(T=t.metadata)==null?void 0:T.defaultAggregation;b&&aQ(e,t.properties[b])&&(t=t.properties[b]);let E=e.name.split(":"),C=oQ(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),cw(t,i));let p=sQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),cQ(l,t,n,i),r.push({node:e,schema:t});for(let b of r)K1(b.node,b.schema,n.schema,b.name)}a(lw,"handleXMLNode");function lQ(e,t){var i;let n=[];return(i=e==null?void 0:e.metadata)!=null&&i.namespaces&&e.metadata.namespaces.forEach(r=>{r in t&&n.push(t[r])}),n}a(lQ,"getMacrosPrefixes");function Uc(e,t,n,i){let r=pf(t.file,!0,i),o=[];if(!r)return;Yt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:WA.LogSeverity.Error,message:ee.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=qJ(l),p=lQ(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,lw(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:b,path:[{name:aw(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(Uc,"generateMacrosSchemaDefinition");function fw(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&&fw(i.subSections,t)}}a(fw,"populateTemplates");function uw(e,t,n,i){var s,l,u;let r=Rc(n.manifest,i),o=[];fw(((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=Fc(n.fragments,r,n.manifest,"fragment",p);if(T){d.metadata.filePath=T.relativeFilePath;let{properties:b={},definitions:E={}}=Uc(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(uw,"resolveFragments");var fQ=["header","layout","sections","footer"],uQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],HA="Custom Action";function KA(e,t,n,i,r,o,s){let{actionName:l,namespace:u}=Yg(t.item,e),p=ya(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]=no(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(KA,"addSingleHeaderActionV4");function pw(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(pw,"addStandardHeaderAction");function dw(e,t,n,i,r,o){let s=ya(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(dw,"addSingleFooterAction");function pQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===vr.UIAnnotationTypes.DataFieldForAction||i.$Type===vr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(uQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}a(pQ,"groupByCriticality");function dQ(e,t,n,i,r){for(let o=0;o<e.length;o++)KA(t,e[o],_.ActionType.Criticality,n,i,r,o)}a(dQ,"addCriticalActions");function gQ(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&&(KA(t,e[s],_.ActionType.Copy,n,i,r,o),o++,e.splice(s,1))}a(gQ,"addCopyAction");function mQ(e,t,n,i,r,o){for(let s of e)KA(t,s,_.ActionType.Annotation,n,i,r,o),o++}a(mQ,"addUncriticalActions");function gw(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(gw,"setAnnotationPathFromEntitySetOrEntityType");function hQ(e,t,n,i,r,o){let{criticalActions:s=[],unCriticalActions:l=[]}=n?pQ(n):{};dQ(s,r,t,e,i);let u=AF(o),p=SF(o);if(Hg(o)&&p){let m=pw("Edit",t,i,s.length);gw(m,o,e,"UpdateHidden")}if(u){let m=pw("Delete",t,i,s.length+1);gw(m,o,e,"DeleteHidden")}let d=s.length+2;gQ(l,r,t,e,i,d),mQ(l,r,t,e,i,d)}a(hQ,"addHeaderActionCallBackV4");function yQ(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];dw(l,_.ActionType.Criticality,e,t,n,s)}for(let s=0;s<o.length;s++){let l=o[s];dw(l,_.ActionType.Annotation,e,t,n,r.length+s)}}a(yQ,"addFooterActionCallBackV4");function vQ(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}>`;Cc(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(vQ,"addCustomColumnsOP");function TQ(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=HA;let u=`${_.DefinitionName.CustomTableActionOP}<${n}>`,p=`${_.DefinitionName.Actions}<${ft(n)}>`;Es(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}`,Bo(e,p,m)}a(TQ,"addTableCustomActionsOP");function hw(e,t,n,i){let r=e.definitions[n];r[_.SchemaTag.isViewNode]=!0,r.description=HA;let o=n===_.DefinitionName.CustomHeaderActionOP?_.DefinitionName.ObjectPageHeaderActions:_.DefinitionName.FooterActions;dh(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}`,Bo(e,o,s),e.definitions[o]&&(e.definitions[o].additionalProperties={$ref:`${B}${n}`})}a(hw,"addHeaderFooterCustomActionsOP");function EQ(e,t,n,i,r){let o=`${_.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[o];s[_.SchemaTag.isViewNode]=!0,s.description=HA;let l=`${_.DefinitionName.CustomFormActionOP}<${n}>`,u=`${_.DefinitionName.SectionActions}<${ft(n)}>`;Es(e,t,r,l,u,i),Dt(_.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${_.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${B}${p}`,Bo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${B}${o}`})}a(EQ,"addFormCustomActionsOP");function bQ(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=Bn(_.DefinitionName.ObjectPageToolBar,t),d.properties.quickVariantSelection.$ref=Bn(_.DefinitionName.QuickVariantSelectionV4OP,t);let m=Dt(_.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=Bn(_.DefinitionName.AnnotationPathAsObject,t),Dt(_.DefinitionName.AnnotationPathAsObject,t,n),Ya(e.entityType,n,`${_.DefinitionName.AnnotationPathAsObject}<${l}>`);let T={appSchema:n,lineItemAnnotation:i.target,entityType:i.entityType,oDataServiceAVT:r,lineItemId:l};return Nc(T,_.DefinitionName.ObjectPageTableColumn,_.DefinitionName.CustomColumnOP,_.DefinitionName.CustomTableActionOP),vQ(n,o,l,t,s),TQ(n,o,l,t,s),d}a(bQ,"handleLineItem");function yw(e,t,n,i,r,o,s){s&&(s.properties[t]={$ref:Bn(_.DefinitionName.ObjectPageSectionTableV4,t)});let l=Dt(_.DefinitionName.ObjectPageSectionTableV4,t,n);ga(e,l,Pl(t)),l[_.SchemaTag.annotationPath]=e.annotationPath,l[_.SchemaTag.target]=e.namespace,l.properties.table.$ref=Bn(_.DefinitionName.ObjectPageTable,t);let u=bQ(e,t,n,i,r.serviceAVT,o,r.logger);return{sectionTable:l,table:u}}a(yw,"handleSectionTable");function AQ(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:Bn(l,n)};let u=Dt(l,n,r);e.ID||(u.properties={}),ga(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),EQ(r,t,p,d,s)}}a(AQ,"handleFormIdentification");function mw(e,t,n,i,r){n.properties[t]={$ref:`${B}${r}`};let o=Dt(_.DefinitionName.CommonHeaderFacetSettings,r,i,!1);ru(e,o,t),o[_.SchemaTag.annotationPath]=e.annotationPath,o[_.SchemaTag.target]=e.namespace,o[_.SchemaTag.dataType]=nm(e==null?void 0:e.target),o[_.SchemaTag.isViewNode]=!0}a(mw,"handleHeaderFacet");function SQ(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:Bn(_.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]=im(s),m[_.SchemaTag.dataType]=no(s),m.properties={},o++})}return r}a(SQ,"handleChartActions");function xQ(e,t,n,i){let r=Dt(_.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[_.SchemaTag.annotationPath]=im(e),r[_.SchemaTag.dataType]=nm(e.target||e),r[_.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=Bn(_.DefinitionName.ObjectPageToolBar,t);let o=Dt(_.DefinitionName.ObjectPageToolBar,t,n);o.properties.actions.$ref=Bn(_.DefinitionName.ObjectPageToolBarActions,t);let s=SQ(e,t,n,i);return{chart:r,chartActions:s}}a(xQ,"handleChart");function vw(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:Bn(_.DefinitionName.ObjectPageSectionChart,t)});let o=Dt(_.DefinitionName.ObjectPageSectionChart,t,n);ru(e,o,t),o[_.SchemaTag.annotationPath]=im(e),o.properties.chart.$ref=Bn(_.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=xQ(e.target||e,t,n,r);return{sectionChart:o,chart:s,chartActions:l}}a(vw,"handleSectionChart");function PQ(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="@"+KT(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let E=r.entityType.navigationProperties.find(L=>L.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:Bn(_.DefinitionName.ObjectPageSectionChart,C)};let{sectionChart:L,chart:R}=vw(s,C,n,void 0,e.entityType);L[_.SchemaTag.annotationPath]=e.annotationPath,ru(e,L,t),R[_.SchemaTag.annotationPath]=`/${E}/${l}`,R[_.SchemaTag.target]=E}else if(b.startsWith(_.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:Bn(_.DefinitionName.ObjectPageSectionTableV4,C)};let{sectionTable:L,table:R}=yw(e,C,n,{target:u,entityType:e.entityType},r,o);L[_.SchemaTag.annotationPath]=e.annotationPath,ru(e,L,t),delete L[_.SchemaTag.isViewNode],R[_.SchemaTag.annotationPath]=`/${E}/${l}`,R[_.SchemaTag.target]=E}}}a(PQ,"handleSectionPresentationVariant");function OQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===_.FacetBase.CollectionFacet)return!0;return!1}a(OQ,"containsCollectionFacet");function IQ(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"}}};ic(n,_.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}a(IQ,"createCustomSubSectionReference");function Tw(e,t,n,i,r,o){var d,m,T,b,E;let s=!1,l;r&&o?(s=!OQ(r),l=IQ(t,o,n.featureToggles)):l=_.DefinitionName.ObjectPageCustomHeaderSectionFragment,e.additionalProperties={$ref:`${B}${l}`},j0(t,e,i,l,s,o,n.logger);let u=t.definitions[l];typeof u=="object"&&qa(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],L=C&&"subSections"in C?C.subSections:{};for(let R=p.oneOf.length-1;R>=0;R--){let F=p.oneOf[R];L[F.const]||(F.hidden=!0)}}}a(Tw,"applyCustomSections");function CQ(e,t,n,i,r,o,s,l){let u=l===0,p=i.properties[t]=ma(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)XA(o,e.facets,T,d,n,r,s,m);u&&Tw(d,n,o,s,e,t)}a(CQ,"handleCollection");function XA(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:{PQ(u,n,r,i,e,s);break}case _.FacetBase.CollectionFacet:{CQ(u,n,r,i,o,e,s,l);break}case _.FacetBase.LineItem:{if(o===_.SectionType.Section){let d=t[n];yw(u,n,r,d,e,s,i)}break}case _.FacetBase.Form:case _.FacetBase.Identification:{AQ(u,s,n,i,r,o,e.logger);break}case _.FacetBase.DataPoint:{mw(u,n,i,r,p);break}case _.FacetBase.Chart:{o===_.SectionType.HeaderSection?mw(u,n,i,r,p):o===_.SectionType.Section&&vw(u,n,r,i);break}case _.FacetBase.Address:case _.FacetBase.Contact:{ou(u,n,i,r,o);break}default:i.properties[n]=ma(r,u,n)}}a(XA,"addSection");function NQ(e,t,n){let i=Cg(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)XA(e,i,o,r,t,_.SectionType.Section,n);t.definitions[_.DefinitionName.CustomSections]&&(r.properties={...r.properties,...t.definitions[_.DefinitionName.CustomSections].properties})}a(NQ,"addSections");function LQ(e,t,n,i){let r=JR(n,e.serviceAVT,_.FioriElementsVersion.v4,e.logger),o=t.definitions[_.DefinitionName.HeaderSections];if(o.properties={},o.additionalProperties=!1,!!r){for(let s in r)XA(e,r,s,o,t,_.SectionType.HeaderSection,i);Tw(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(LQ,"addHeaderSections");function RQ(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=Ng(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})}tm(t,[_.DefinitionName.ObjectPageCustomSectionFragment],d,["ID","label","key"])}})}a(RQ,"addRelatedFacetKeysType");function FQ(e,t,n){let i=e.entityType;Zg(t,i),qg(t,i,e.entitySet,e.serviceAVT,hQ),hw(t,n,_.DefinitionName.CustomHeaderActionOP,e.logger),i&&(t.definitions[_.DefinitionName.HeaderSections][_.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${vr.UIAnnotationTerms.HeaderFacets}`),LQ(e,t,i,n)}a(FQ,"addHeader");function xp(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=ph(s,_.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(FQ(e,r,l),o[_.SchemaTag.isViewNode]=!0,e.entityType&&(o[_.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${vr.UIAnnotationTerms.Facets}`),NQ(e,r,l),RQ(e,r,s,n),ic(e.featureToggles,_.Features.BuildingBlocks)&&i){r.definitions[_.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{uw(r,i,e,l.id)}catch(u){oe(e.logger,{severity:_.LogSeverity.Error,message:u})}}zg(r,e,_.FioriElementsVersion.v4,yQ),hw(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],Fo(r,fQ),r}a(xp,"generateObjectPageSchemaV4");function JA(e,t){return JSON.parse(JSON.stringify(t))}a(JA,"generateFreestyleSchemaV4");var Gr=te(se());function QA(e,t,n,i,r,o,s,l,u){let p=No(n,r),{entitySet:d,entityType:m}=Bc(p,s,t,r),T={templateType:Gr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:i,fragments:o,serviceAVT:p,logger:r,entitySet:d,entityType:m,featureToggles:u};return xp(T,e,s,l)}a(QA,"generateObjectPageInterfaceV4");function ay(e,t,n,i,r,o,s){Yt();let l=No(i,r),{entitySet:u,entityType:p}=Bc(l,s,n,r),d={templateType:e,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:o,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Gr.TemplateType.ListReportObjectPageV4?Gr.v4.FE_TEMPLATE_V4_LIST_REPORT:Gr.v4.FE_TEMPLATE_V4_ALP;return Ju(d,t,m,s)}a(ay,"generateListReportInterfaceV4");function YA(e,t,n,i,r,o){let s=No(n,o),l={templateType:e,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:o};return JA(l,t)}a(YA,"generateFreestyleInterfaceV4");function zA(e,t,n,i,r,o,s){let l={};if(ic(o,Gr.Features.BuildingBlocks)){let u=No(r,s),p=bs(i||[],t,n,s);l=p!=null&&p.file.fileContent?Uc(e,p,u,s):{}}return l}a(zA,"generateFPMCustomPageInterfaceV4");var Gc=require("@sap-ux/vocabularies-types/vocabularies/UI"),xw=te(se());var Wc=te(se());var Aw=new Map([[Wc.PageTypeV2.ListReport,Wc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Wc.PageTypeV2.ObjectPage,Wc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Ew=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"),bw=a(e=>{var t;for(let[n,i]of Aw)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"),_Q=a((e,t)=>{let n="";for(let[r,o]of Aw)e.startsWith(r)&&(n=o);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Sw={manifest:{path:()=>`sap.ui5/extends/extensions/${Wc.v4.SAPUI5_CONTROLLER_EXTENSION}`,import:e=>{let t={};if(e&&typeof e=="object")for(let n in e){let i=bw(n);i&&(t[i]={},Ew(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=_Q(s,i);e[l]||(e[l]={}),Ew(r[s],e[l])}for(let s in e){let l=bw(s);l&&!r[l]&&delete e[s]}}}};var xt=a(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),ly=a(e=>xt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),fy=a(e=>xt(e)+"/content/header","getSettingsPathForHeaderOP"),DQ=a(e=>xt(e)+"/content/footer","getSettingsPathForFooterOP"),Hr=a(e=>xt(e)+"/controlConfiguration","getControlConfigurationPath"),uy=a((e,t,n)=>Hr(e)+`/@${Gc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),py=a(e=>Hr(e)+`/@${Gc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ns=a((e,t,n,i)=>Hr(e)+`/@${Gc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),qA=a((e,t,n,i)=>py(e)+`/filterFields/${i}`,"getFilterFieldPath"),Kr=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Hr(e)+`/${o}/tableSettings`:void 0},"getTableSettingsPathForView"),Yi=a((e,t,n,i,r)=>r?Kr(e,t,n,i,r):Hr(e)+`/@${Gc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),dy=a((e,t,n,i,r)=>Yi(e,t,n,i,r)+xw.QUICKVARPATH,"getQuickVariantPath"),zi=a((e,t,n,i,r)=>{let o=r.replace(/\//gi,"??");return Hr(e)+`/${o}/columns/${i}`},"getColumnsPathForView"),Di=a((e,t,n,i,r)=>r?zi(e,t,n,i,r):Hr(e)+`/@${Gc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),uo=a((e,t,n,i,r)=>{let o=r.replace(/\//gi,"::");return Hr(e)+`/${o}/actions/${i}`},"getActionsPathForView"),Tr=a((e,t,n,i,r)=>r?uo(e,t,n,i,r):Hr(e)+`/@${Gc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),qi=a((e,t,n,i)=>Hr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Vn=a((e,t,n,i)=>Hr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),ui=a((e,t,n,i)=>fy(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),po=a((e,t,n,i)=>DQ(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),kn=a((e,t,n)=>Hr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Ra=a((e,t,n,i)=>{let r=xt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Er=a((e,t,n,i)=>{let r=xt(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=xt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),cy=class cy{};a(cy,"ApplicationV4"),y([Ft("settings")],cy.prototype,"settings",2);var sy=cy,Xo=class Xo{};a(Xo,"AppSettings"),y([v({manifest:{path:()=>"sap.app"}})],Xo.prototype,"title",2),y([v({manifest:{path:()=>"sap.app"}})],Xo.prototype,"description",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}}),O({since:"1.78.0"})],Xo.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:()=>"sap.ui5"}}),O({since:"1.56.0"})],Xo.prototype,"flexEnabled",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}})],Xo.prototype,"viewType",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}})],Xo.prototype,"viewPath",2),y([v(Sw)],Xo.prototype,"controllerExtensions",2);var gf=Xo;var ge=te(se());function vt(e,t,n,i,r,o,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=o&&o.replace("/","::");for(let d in n.properties){let m=qn(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),Mg(u,l,T,s))}}}a(vt,"importSettingsOfObject");var jx={};qs(jx,{ALPChart:()=>iS,ALPTable:()=>rS,ActionAfterExecutionConfiguration:()=>hS,ActionAfterExecutionConfigurationFooter:()=>wx,ActionAfterExecutionConfigurationForm:()=>VS,ActionAfterExecutionConfigurationOP:()=>Xp,ActionAfterExecutionConfigurationObjectPageHeader:()=>Lx,ActionAfterExecutionConfigurationToolBarLR:()=>IS,Actions:()=>SS,CommonHeaderFacetSettings:()=>Ds,CommonViewSettings:()=>Ef,CustomActionPosition:()=>LS,CustomActionPositionOP:()=>wS,CustomFilterField:()=>XS,CustomFilterFieldPosition:()=>KS,CustomFooterActionOP:()=>kx,CustomFooterActionPositionOP:()=>Vx,CustomFormActionOP:()=>WS,CustomHeaderAction:()=>qS,CustomHeaderActionOP:()=>_x,CustomHeaderActionPosition:()=>Wp,CustomHeaderActionPositionOP:()=>Fx,CustomTableAction:()=>RS,CustomTableActionOP:()=>MS,FilterBar:()=>GS,FlexSettings:()=>fx,FooterActionV4:()=>Mx,FormAction:()=>kS,Header:()=>QS,HeaderActions:()=>JS,HeaderSections:()=>hx,LRChartView:()=>oS,LRTableView:()=>aS,MultiTableModeV4:()=>cS,ObjectPageCustomHeaderSectionFlexSettings:()=>Ix,ObjectPageCustomHeaderSectionFragment:()=>Cx,ObjectPageCustomSectionFragment:()=>xf,ObjectPageCustomSubSectionFragment:()=>Nx,ObjectPageFooter:()=>sx,ObjectPageFooterActions:()=>ax,ObjectPageForm:()=>$S,ObjectPageFormActions:()=>jS,ObjectPageHeader:()=>rx,ObjectPageHeaderAction:()=>Rx,ObjectPageHeaderActions:()=>ix,ObjectPageHeaderSectionAddress:()=>mx,ObjectPageHeaderSectionChart:()=>px,ObjectPageHeaderSectionContact:()=>gx,ObjectPageHeaderSectionDataPoint:()=>dx,ObjectPageHeaderSectionForm:()=>ux,ObjectPageLayout:()=>Sx,ObjectPageTable:()=>Yp,ObjectPageTableColumn:()=>bf,ObjectPageTableColumnAction:()=>ZS,ObjectPageToolBarAction:()=>DS,PersonalizationType:()=>eS,PersonalizationTypeOP:()=>Px,Position:()=>TS,PositionOP:()=>ex,QuickVariantSelectionV4:()=>nS,QuickVariantSelectionV4OP:()=>Ox,Table:()=>lS,TableColumn:()=>vy,TableColumnAction:()=>yS,TableCreationModeOP:()=>xx,TableCustomColumn:()=>bS,TableCustomColumnOP:()=>tx,TableSettings:()=>gy,TableViewExtension:()=>sS,TableViewSettings:()=>Ip,ToolBar:()=>xS,ToolBarAction:()=>CS,ViewCustomActionPosition:()=>FS,ViewPersonalizationType:()=>tS,ViewPosition:()=>ES,ViewTableColumn:()=>Ty,ViewTableColumnAction:()=>vS,ViewTableCustomAction:()=>_S,ViewTableCustomColumn:()=>AS,ViewToolBarAction:()=>NS,VisualFilter:()=>HS,checkViewOrder:()=>uS,deleteCreationModeCreateAtEnd:()=>mS,deleteCreationModeName:()=>pS,deletePersonalizationProperty:()=>vo,exportCreationModeCreateAtEnd:()=>gS,exportCreationModeName:()=>fS,exportPersonalization:()=>VQ,exportPersonalizationProperty:()=>yo});var ZA=te(se());var wQ=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 ho(e,t,n,i,r,o){let s=ly(e),l=wQ(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let d=l[p];if(d&&(d[ZA.SchemaTag.key]===(o==null?void 0:o.key)||d[ZA.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}a(ho,"getSettingsPathForLRViewsPath");function fS(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}a(fS,"exportCreationModeName");function MQ(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(MQ,"fillNewlyOrderedViews");function uS(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=MQ(e,n,r,s,l,o);for(let p of Object.keys(u))e[p]=u[p]}}a(uS,"checkViewOrder");function VQ(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}a(VQ,"exportPersonalization");function yo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}a(yo,"exportPersonalizationProperty");function pS(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(pS,"deleteCreationModeName");function vo(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}a(vo,"deletePersonalizationProperty");function dS(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(dS,"deleteView");function gS(e,t,n,i){typeof e.creationMode=="object"?e.creationMode[i]=t[n]:typeof e.creationMode=="string"&&(e.creationMode={name:t.name,[i]:t[n]})}a(gS,"exportCreationModeCreateAtEnd");function mS(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}a(mS,"deleteCreationModeCreateAtEnd");function Pw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}a(Pw,"importPersonalization");function Ow(e,t,n,i){let r=e.findIndex(o=>o.key===i[0]);return r===-1?void 0:r}a(Ow,"determineIndexOfView");var hf=class hf{};a(hf,"PersonalizationType"),y([v({manifest:{path:Yi,export:yo,delete:vo}})],hf.prototype,"column",2),y([v({manifest:{path:Yi,export:yo,delete:vo}})],hf.prototype,"sort",2),y([v({manifest:{path:Yi,export:yo,delete:vo}})],hf.prototype,"filter",2);var eS=hf,yf=class yf{};a(yf,"ViewPersonalizationType"),y([v({manifest:{path:Kr,export:yo,delete:vo}})],yf.prototype,"column",2),y([v({manifest:{path:Kr,export:yo,delete:vo}})],yf.prototype,"sort",2),y([v({manifest:{path:Yi,export:yo,delete:vo}})],yf.prototype,"filter",2);var tS=yf,vf=class vf{};a(vf,"QuickVariantSelectionV4"),y([v({manifest:{path:dy}})],vf.prototype,"paths",2),y([v({manifest:{path:dy}})],vf.prototype,"hideTableTitle",2),y([v({manifest:{path:dy}})],vf.prototype,"showCounts",2);var nS=vf,go=class go{};a(go,"TableSettings"),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"type",2),y([v({manifest:{path:Yi,import:Pw}}),O({since:"1.86.0"})],go.prototype,"personalization",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"selectionMode",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"selectAll",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"selectionLimit",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"enableExport",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"quickVariantSelection",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"condensedTableLayout",2);var gy=go,my=class my{};a(my,"ALPChart"),y([v({manifest:{path:t=>xt(t)+"/views/paths/0/primary/0",delete:dS}})],my.prototype,"annotationPath",2);var iS=my,Hc=class Hc{};a(Hc,"CommonViewSettings"),y([v({manifest:{path:ho,delete:rc}})],Hc.prototype,"key",2),y([v({manifest:{path:ly,import:Ow,export:(t,n)=>{uS(t,n)},delete:dS}})],Hc.prototype,"index",2),y([v({manifest:{path:ho,delete:rc}})],Hc.prototype,"annotationPath",2),y([v({manifest:{path:ho}})],Hc.prototype,"entitySet",2);var Ef=Hc,mo=class mo extends Ef{};a(mo,"TableViewSettings"),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"type",2),y([v({manifest:{path:Kr,import:Pw}}),O({since:"1.86.0"})],mo.prototype,"personalization",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"selectionMode",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"selectAll",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"selectionLimit",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"enableExport",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"quickVariantSelection",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"condensedTableLayout",2);var Ip=mo;function kQ(e){return Ip}a(kQ,"getTableViewSettings");var Pp=class Pp extends Ip{};a(Pp,"ALPTable"),y([v({manifest:{path:t=>xt(t)+"/views/paths/0/secondary/0",delete:rc}})],Pp.prototype,"annotationPath",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Pp.prototype,"initialLoad",2);var rS=Pp,hy=class hy extends Ef{};a(hy,"LRChartView"),y([v({manifest:{path:ho},generate:zn})],hy.prototype,"visible",2);var oS=hy,Tf=class Tf extends kQ(Ef){};a(Tf,"LRTableView"),y([v({manifest:{path:ho}})],Tf.prototype,"keepPreviousPersonalization",2),y([v({manifest:{path:ho}})],Tf.prototype,"entitySet",2),y([v({manifest:{path:ho},generate:zn})],Tf.prototype,"visible",2);var aS=Tf,Ls=class Ls{};a(Ls,"TableViewExtension"),y([v({manifest:{path:ho}})],Ls.prototype,"key",2),y([v({manifest:{path:ly,import:Ow,export:(t,n)=>{uS(t,n)},delete:dS}})],Ls.prototype,"index",2),y([v({manifest:{path:ho}})],Ls.prototype,"label",2),y([v({manifest:{path:ho}})],Ls.prototype,"template",2),y([v({manifest:{path:ho},generate:zn})],Ls.prototype,"visible",2);var sS=Ls,yy=class yy{};a(yy,"MultiTableModeV4"),y([v({manifest:{path:t=>xt(t)+"/views"}})],yy.prototype,"showCounts",2);var cS=yy,Op=class Op extends gy{};a(Op,"Table"),y([v({manifest:{path:t=>xt(t)+"/views/paths/0/secondary/0",delete:rc}})],Op.prototype,"annotationPath",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Op.prototype,"initialLoad",2);var lS=Op;var Cp=class Cp{};a(Cp,"ActionAfterExecutionConfiguration"),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Cp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Cp.prototype,"enableAutoScroll",2);var hS=Cp,Np=class Np{};a(Np,"TableColumn"),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Np.prototype,"width",2),y([v({manifest:{path:Di}}),O({since:"1.85.0"})],Np.prototype,"availability",2);var vy=Np,Lp=class Lp{};a(Lp,"ViewTableColumn"),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Lp.prototype,"width",2),y([v({manifest:{path:zi}}),O({since:"1.85.0"})],Lp.prototype,"availability",2);var Ty=Lp,Ey=class Ey extends vy{};a(Ey,"TableColumnAction"),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Ey.prototype,"afterExecution",2);var yS=Ey,by=class by extends Ty{};a(by,"ViewTableColumnAction"),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],by.prototype,"afterExecution",2);var vS=by,Rp=class Rp{};a(Rp,"Position"),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Rp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Rp.prototype,"placement",2);var TS=Rp,Fp=class Fp{};a(Fp,"ViewPosition"),y([v({manifest:{path:(t,n,i,r,o)=>zi(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Fp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>zi(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Fp.prototype,"placement",2);var ES=Fp,Jo=class Jo{};a(Jo,"TableCustomColumn"),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"position",2),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"header",2),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"width",2),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"template",2),y([v({manifest:{path:Di}}),O({since:"1.86.0"})],Jo.prototype,"horizontalAlign",2),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"availability",2),y([v({manifest:{path:Di}}),O({since:"1.85.0"})],Jo.prototype,"properties",2);var bS=Jo,Qo=class Qo{};a(Qo,"ViewTableCustomColumn"),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"position",2),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"header",2),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"width",2),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"template",2),y([v({manifest:{path:zi}}),O({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"availability",2),y([v({manifest:{path:zi}}),O({since:"1.85.0"})],Qo.prototype,"properties",2);var AS=Qo;var PS=class PS{};a(PS,"Actions");var SS=PS,OS=class OS{};a(OS,"ToolBar");var xS=OS;var _p=class _p{};a(_p,"ActionAfterExecutionConfigurationToolBarLR"),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/afterExecution"}})],_p.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/afterExecution"}})],_p.prototype,"enableAutoScroll",2);var IS=_p,Dp=class Dp{};a(Dp,"ToolBarAction"),y([v({manifest:{path:Tr}})],Dp.prototype,"enableOnSelect",2),y([v({manifest:{path:Tr}})],Dp.prototype,"afterExecution",2);var CS=Dp,Ay=class Ay{};a(Ay,"ViewToolBarAction"),y([v({manifest:{path:uo}})],Ay.prototype,"enableOnSelect",2);var NS=Ay,wp=class wp{};a(wp,"CustomActionPosition"),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],wp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],wp.prototype,"placement",2);var LS=wp,Fa=class Fa{};a(Fa,"CustomTableAction"),y([v({manifest:{path:Tr}}),O({since:"1.84.0"})],Fa.prototype,"text",2),y([v({manifest:{path:Tr}}),O({since:"1.84.0"})],Fa.prototype,"position",2),y([v({manifest:{path:Tr}}),O({since:"1.84.0"})],Fa.prototype,"press",2),y([v({manifest:{path:Tr}}),O({since:"1.84.0"})],Fa.prototype,"requiresSelection",2),y([v({manifest:{path:Tr},generate:zn}),O({since:"1.84.0"})],Fa.prototype,"visible",2),y([v({manifest:{path:Tr},generate:zn}),O({since:"1.84.0"})],Fa.prototype,"enabled",2);var RS=Fa,Mp=class Mp{};a(Mp,"ViewCustomActionPosition"),y([v({manifest:{path:(t,n,i,r,o)=>uo(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Mp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>uo(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Mp.prototype,"placement",2);var FS=Mp,_a=class _a{};a(_a,"ViewTableCustomAction"),y([v({manifest:{path:uo}}),O({since:"1.84.0"})],_a.prototype,"text",2),y([v({manifest:{path:uo}}),O({since:"1.84.0"})],_a.prototype,"position",2),y([v({manifest:{path:uo}}),O({since:"1.84.0"})],_a.prototype,"press",2),y([v({manifest:{path:uo}}),O({since:"1.84.0"})],_a.prototype,"requiresSelection",2),y([v({manifest:{path:uo},generate:zn}),O({since:"1.84.0"})],_a.prototype,"visible",2),y([v({manifest:{path:uo},generate:zn}),O({since:"1.84.0"})],_a.prototype,"enabled",2);var _S=_a;var Sy=class Sy{};a(Sy,"ObjectPageToolBarAction"),y([v({manifest:{path:Vn}})],Sy.prototype,"enableOnSelect",2);var DS=Sy,Vp=class Vp{};a(Vp,"CustomActionPositionOP"),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Vp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Vp.prototype,"placement",2);var wS=Vp,Da=class Da{};a(Da,"CustomTableActionOP"),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Da.prototype,"text",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Da.prototype,"position",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Da.prototype,"press",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Da.prototype,"requiresSelection",2),y([v({manifest:{path:Vn},generate:Gi}),O({since:"1.84.0"})],Da.prototype,"visible",2),y([v({manifest:{path:Vn},generate:Gi}),O({since:"1.84.0"})],Da.prototype,"enabled",2);var MS=Da;var kp=class kp{};a(kp,"ActionAfterExecutionConfigurationForm"),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/afterExecution"}})],kp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/afterExecution"}})],kp.prototype,"enableAutoScroll",2);var VS=kp,xy=class xy{};a(xy,"FormAction"),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],xy.prototype,"afterExecution",2);var kS=xy,US=class US{};a(US,"ObjectPageFormActions");var jS=US,BS=class BS{};a(BS,"ObjectPageForm");var $S=BS;var Rs=class Rs{};a(Rs,"CustomFormActionOP"),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Rs.prototype,"text",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Rs.prototype,"position",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Rs.prototype,"press",2),y([v({manifest:{path:Vn},generate:Gi}),O({since:"1.84.0"})],Rs.prototype,"visible",2),y([v({manifest:{path:Vn},generate:Gi}),O({since:"1.84.0"})],Rs.prototype,"enabled",2);var WS=Rs;function jQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}a(jQ,"exportVisualFilterValueList");var jp=class jp{};a(jp,"FilterBar"),y([v({manifest:{path:py}}),O({since:"1.93.0"})],jp.prototype,"initialLayout",2),y([v({manifest:{path:py}}),O({since:"1.93.0"})],jp.prototype,"layout",2);var GS=jp,$p=class $p{};a($p,"VisualFilter"),y([v({manifest:{path:qA}}),O({since:"1.93.0"})],$p.prototype,"availability",2),y([v({manifest:{path:qA,import:t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},export:jQ,key:"visualFilter"}}),O({since:"1.93.0"})],$p.prototype,"visualFilterValueList",2);var HS=$p,Up=class Up{};a(Up,"CustomFilterFieldPosition"),y([v({manifest:{path:(t,n,i,r)=>Ns(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Up.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>Ns(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Up.prototype,"placement",2);var KS=Up,Fs=class Fs{};a(Fs,"CustomFilterField"),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"label",2),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"property",2),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"template",2),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"required",2),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"position",2);var XS=Fs;var YS=class YS{};a(YS,"HeaderActions");var JS=YS,zS=class zS{};a(zS,"Header");var QS=zS;var Bp=class Bp{};a(Bp,"CustomHeaderActionPosition"),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Bp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Bp.prototype,"placement",2);var Wp=Bp,_s=class _s{};a(_s,"CustomHeaderAction"),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],_s.prototype,"text",2),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],_s.prototype,"position",2),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],_s.prototype,"press",2),y([v({manifest:{path:ui},generate:zn}),O({since:"1.84.0"})],_s.prototype,"visible",2),y([v({manifest:{path:ui},generate:zn}),O({since:"1.84.0"})],_s.prototype,"enabled",2);var qS=_s;var Gp=class Gp{};a(Gp,"ActionAfterExecutionConfigurationOP"),y([v({manifest:{path:(t,n,i,r)=>qi(t,n,i,r)+"/afterExecution"}})],Gp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>qi(t,n,i,r)+"/afterExecution"}})],Gp.prototype,"enableAutoScroll",2);var Xp=Gp,Hp=class Hp{};a(Hp,"ObjectPageTableColumn"),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Hp.prototype,"width",2),y([v({manifest:{path:qi}}),O({since:"1.85.0"})],Hp.prototype,"availability",2);var bf=Hp,nx=class nx extends bf{};a(nx,"ObjectPageTableColumnAction");var ZS=nx,Kp=class Kp{};a(Kp,"PositionOP"),y([v({manifest:{path:(t,n,i,r)=>qi(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Kp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>qi(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Kp.prototype,"placement",2);var ex=Kp,Yo=class Yo{};a(Yo,"TableCustomColumnOP"),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"position",2),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"header",2),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"width",2),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"template",2),y([v({manifest:{path:qi}}),O({since:"1.86.0"})],Yo.prototype,"horizontalAlign",2),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"availability",2),y([v({manifest:{path:qi}}),O({since:"1.85.0"})],Yo.prototype,"properties",2);var tx=Yo;var ox=class ox{};a(ox,"ObjectPageHeaderActions");var ix=ox,Kc=class Kc{};a(Kc,"ObjectPageHeader"),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Kc.prototype,"editableHeaderContent",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Kc.prototype,"showRelatedApps",2),y([v({manifest:{path:fy}}),O({since:"1.84.0"})],Kc.prototype,"visible",2),y([v({manifest:{path:fy}}),O({since:"1.84.0"})],Kc.prototype,"anchorBarVisible",2);var rx=Kc;var cx=class cx{};a(cx,"ObjectPageFooterActions");var ax=cx,lx=class lx{};a(lx,"ObjectPageFooter");var sx=lx;var Py=class Py{};a(Py,"FlexSettings"),y([v({manifest:{path:(t,n,i)=>uy(t,n,i)+"/flexSettings"}}),O({since:"1.81.0"})],Py.prototype,"designtime",2);var fx=Py,Jp=class Jp{};a(Jp,"CommonHeaderFacetSettings"),y([v({manifest:{path:uy}}),O({since:"1.81.0"})],Jp.prototype,"stashed",2),y([v({manifest:{path:uy}}),O({since:"1.81.0"})],Jp.prototype,"flexSettings",2);var Ds=Jp,yx=class yx extends Ds{};a(yx,"ObjectPageHeaderSectionForm");var ux=yx,vx=class vx extends Ds{};a(vx,"ObjectPageHeaderSectionChart");var px=vx,Tx=class Tx extends Ds{};a(Tx,"ObjectPageHeaderSectionDataPoint");var dx=Tx,Ex=class Ex extends Ds{};a(Ex,"ObjectPageHeaderSectionContact");var gx=Ex,bx=class bx extends Ds{};a(bx,"ObjectPageHeaderSectionAddress");var mx=bx,Ax=class Ax{};a(Ax,"HeaderSections");var hx=Ax;var Oy=class Oy{};a(Oy,"ObjectPageLayout"),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Oy.prototype,"sectionLayout",2);var Sx=Oy;var Iy=te(se());var Qp=class Qp{};a(Qp,"TableCreationModeOP"),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:(t,n,i,r)=>{fS(t,n,i,r)},delete:(t,n,i,r)=>{pS(t,r)}}})],Qp.prototype,"name",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:(t,n,i,r)=>{gS(t,n,i,r)},delete:(t,n,i,r)=>{mS(t,r)}}})],Qp.prototype,"createAtEnd",2);var xx=Qp,Af=class Af{};a(Af,"PersonalizationTypeOP"),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:yo,delete:vo}})],Af.prototype,"column",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:yo,delete:vo}})],Af.prototype,"sort",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:yo,delete:vo}})],Af.prototype,"filter",2);var Px=Af,Sf=class Sf{};a(Sf,"QuickVariantSelectionV4OP"),y([v({manifest:{path:(t,n,i)=>kn(t,n,i)+Iy.QUICKVARPATH}})],Sf.prototype,"paths",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i)+Iy.QUICKVARPATH}})],Sf.prototype,"hideTableTitle",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i)+Iy.QUICKVARPATH}})],Sf.prototype,"showCounts",2);var Ox=Sf,Zi=class Zi{};a(Zi,"ObjectPageTable"),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"type",2),y([v({manifest:{path:kn,import:t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}}}}),O({since:"1.84.0"})],Zi.prototype,"creationMode",2),y([v({manifest:{path:kn,import:t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}}}}),O({since:"1.86.0"})],Zi.prototype,"personalization",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"selectionMode",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"selectAll",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"selectionLimit",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"enableExport",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"quickVariantSelection",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"condensedTableLayout",2),y([v({manifest:{path:kn}}),O({since:"1.86.0"})],Zi.prototype,"enableFullScreen",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"enablePaste",2);var Yp=Zi;var Cy=class Cy{};a(Cy,"ObjectPageCustomHeaderSectionFlexSettings"),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"flexSettings")}}),O({since:"1.81.0"})],Cy.prototype,"designtime",2);var Ix=Cy,er=class er{};a(er,"ObjectPageCustomHeaderSectionFragment"),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"position"),key:"anchor"}}),O({since:"1.77.0"})],er.prototype,"relatedFacet",2),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"position"),key:"placement"}}),O({since:"1.77.0"})],er.prototype,"relativePosition",2),y([v({manifest:{path:Er},generate:Gi}),O({since:"1.84.0"})],er.prototype,"visible",2),y([v({manifest:{path:Er}}),O({since:"1.77.0"})],er.prototype,"title",2),y([v({manifest:{path:Er}}),O({since:"1.77.0"})],er.prototype,"subTitle",2),y([v({manifest:{path:Er,import:t=>t.name||t.template,key:"template"}}),O({since:"1.77.0"})],er.prototype,"fragmentName",2),y([v({manifest:{path:Er,import:t=>t.templateEdit,key:"templateEdit"}}),O({since:"1.86.0"})],er.prototype,"templateEdit",2),y([v({manifest:{path:Er}}),O({since:"1.81.0"})],er.prototype,"stashed",2),y([v({manifest:{path:Er}}),O({since:"1.81.0"})],er.prototype,"flexSettings",2),y([v({manifest:{path:Er}}),O({since:"1.81.0"})],er.prototype,"requestGroupId",2),y([v({manifest:{path:Er,import:!1,export:!1},xml:t=>t.fragmentName}),O({since:"1.96.0"})],er.prototype,"controls",2);var Cx=er;var Ms=te(se());var To=class To{};a(To,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:(t,n,i)=>Ra(t,n,i,"position"),key:"anchor"}}),O({since:"1.77.0"})],To.prototype,"relatedFacet",2),y([v({manifest:{path:Ra,import:(t,n)=>n,export:!1}}),O({since:"1.77.0"})],To.prototype,"id",2),y([v({manifest:{path:(t,n,i)=>Ra(t,n,i,"position"),key:"placement"}}),O({since:"1.77.0"})],To.prototype,"relativePosition",2),y([v({manifest:{path:Ra}}),O({since:"1.77.0"})],To.prototype,"title",2),y([v({manifest:{path:Ra,import:t=>!t.type||t.type.startsWith(Ms.v4.CustomSectionViewTypesV4.XML)?Ms.v4.CustomSectionViewTypesV4.XML:"",export:(t,n)=>{let i="";"type"in n&&(i+=n.type),"className"in n&&(n.className===Ms.SAPUI5_FRAGMENT_CLASS?i+="Fragment":i+=n.className),t.type=i}}}),O({since:"1.77.0"})],To.prototype,"type",2),y([v({manifest:{path:Ra,import:t=>!t.type||t.type.startsWith(Ms.v4.CustomSectionViewTypesV4.XML)?!t.type||t.type==="XMLFragment"?Ms.SAPUI5_FRAGMENT_CLASS:t.type.slice(Ms.v4.CustomSectionViewTypesV4.XML.length):t.type,export:!1}}),O({since:"1.77.0"})],To.prototype,"className",2),y([v({manifest:{path:Ra,import:t=>t.name||t.template,key:"template"}}),O({since:"1.77.0"})],To.prototype,"fragmentName",2),y([v({manifest:{path:Ra,import:!1,export:!1},xml:t=>t.fragmentName}),O({since:"1.96.0"})],To.prototype,"controls",2);var xf=To,ws=class ws extends xf{};a(ws,"ObjectPageCustomSubSectionFragment"),y([v({manifest:{path:(...t)=>`${mf.apply({},t)}/position`,key:"anchor"}}),O({since:"1.77.0"})],ws.prototype,"relatedFacet",2),y([v({manifest:{path:(...t)=>`${mf.apply({},t)}/position`,key:"placement"}}),O({since:"1.77.0"})],ws.prototype,"relativePosition",2),y([v({manifest:{path:mf}}),O({since:"1.77.0"})],ws.prototype,"title",2),y([v({manifest:{path:mf,import:t=>t.name||t.template,key:"template"}}),O({since:"1.77.0"})],ws.prototype,"fragmentName",2),y([v({manifest:{path:mf,import:!1,export:!1},xml:t=>t.fragmentName}),O({since:"1.96.0"})],ws.prototype,"controls",2);var Nx=ws;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 Lx=zp,Ny=class Ny{};a(Ny,"ObjectPageHeaderAction"),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],Ny.prototype,"afterExecution",2);var Rx=Ny,Dx=class Dx extends Wp{};a(Dx,"CustomHeaderActionPositionOP");var Fx=Dx,Vs=class Vs{};a(Vs,"CustomHeaderActionOP"),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],Vs.prototype,"text",2),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],Vs.prototype,"position",2),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],Vs.prototype,"press",2),y([v({manifest:{path:ui},generate:Gi}),O({since:"1.84.0"})],Vs.prototype,"visible",2),y([v({manifest:{path:ui},generate:Gi}),O({since:"1.84.0"})],Vs.prototype,"enabled",2);var _x=Vs;var qp=class qp{};a(qp,"ActionAfterExecutionConfigurationFooter"),y([v({manifest:{path:(t,n,i,r)=>po(t,n,i,r)+"/afterExecution"}})],qp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>po(t,n,i,r)+"/afterExecution"}})],qp.prototype,"enableAutoScroll",2);var wx=qp,Ly=class Ly{};a(Ly,"FooterActionV4"),y([v({manifest:{path:po}}),O({since:"1.84.0"})],Ly.prototype,"afterExecution",2);var Mx=Ly,Zp=class Zp{};a(Zp,"CustomFooterActionPositionOP"),y([v({manifest:{path:(t,n,i,r)=>po(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Zp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>po(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Zp.prototype,"placement",2);var Vx=Zp,ks=class ks{};a(ks,"CustomFooterActionOP"),y([v({manifest:{path:po}}),O({since:"1.84.0"})],ks.prototype,"text",2),y([v({manifest:{path:po}}),O({since:"1.84.0"})],ks.prototype,"position",2),y([v({manifest:{path:po}}),O({since:"1.84.0"})],ks.prototype,"press",2),y([v({manifest:{path:po},generate:Gi}),O({since:"1.84.0"})],ks.prototype,"visible",2),y([v({manifest:{path:po},generate:Gi}),O({since:"1.84.0"})],ks.prototype,"enabled",2);var kx=ks;var Wx={};qs(Wx,{FreestylePage:()=>Ux,ListReport:()=>br,ObjectPage:()=>Eo});function $Q(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($Q,"deleteAllALPViews");function UQ(){}a(UQ,"doNotExport");function BQ(){}a(BQ,"doNotImport");var br=class{};a(br,"ListReport"),y([v({manifest:{path:t=>xt(t)+"/views",import:BQ,export:UQ,delete:$Q}})],br.prototype,"chart",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],br.prototype,"variantManagement",2),y([v({manifest:{path:t=>xt(t)+"/views/paths/[]/0"}})],br.prototype,"defaultPath",2),y([v({manifest:{path:t=>xt(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 $x=te(se());var Eo=class{};a(Eo,"ObjectPage"),y([Ft("header")],Eo.prototype,"header",2),y([Ft("layout")],Eo.prototype,"layout",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Eo.prototype,"variantManagement",2),y([Ft("sections")],Eo.prototype,"sections",2),Eo=y([Dr({id:`${$x.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:$x.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Eo);var Bx=class Bx{};a(Bx,"FreestylePage");var Ux=Bx;var Ry=te(se());var WQ={},GQ={},HQ={Table:Yp,TableColumn:bf,ObjectPageCustomSectionView:xf,ActionAfterExecutionConfiguration:Xp},KQ={[Ry.PageTypeV2.AnalyticalListPage]:WQ,[Ry.PageTypeV2.ListReport]:GQ,[Ry.PageTypeV2.ObjectPage]:HQ},Gx=class Gx extends Xl{constructor(){super(jx,Wx,KQ)}};a(Gx,"MetadataInstanceFactoryV4");var wa=Gx;var Hx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Kx(e,t,n,i,r,o,s){var d,m,T,b,E,C;let l=t.jsonSchema.definitions,u=o&&o!==`@${Hx.UIAnnotationTerms.LineItem}`?o:ge.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let L in p.properties){let F=l[u].properties[L].$ref.split(B)[1].split("<")[0];e.columns[L]=n.createInstance(i,F);let U=s||o;vt(e.columns[L],t.manifest,l[F],r,[L,U],U,t.logger),_o(e.columns,L)}_o(e,"columns")}else{let L=(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;(!L||L.paths.length<1)&&oe(t.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOLINEITEMS")})}}a(Kx,"transferColumns");function XQ(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),vt(t.visualFilters[l],e.manifest,o[p],r,[l])}}_o(t,"visualFilters")}}a(XQ,"importVisualFilters");function JQ(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=`@${Hx.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),vt(t.toolBar.actions[d],e.manifest,l[T],r,[d,u]),_o(t.toolBar.actions,d)}}}a(JQ,"importActions");function Xx(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,vt(u.toolBar,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.ToolBarLR],r,[]),JQ(e,u,n,i,r,o,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}a(Xx,"transferToolBar");function Iw(e,t){var r;let n=(r=e[t])==null?void 0:r[ge.SchemaTag.annotationPath];return n==null?void 0:n.substr(n.lastIndexOf("@"))}a(Iw,"determineTargetAnnotationOfView");function QQ(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];vt(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:{}}),vt(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);Xx(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));vt(d,e.manifest,p,r,[p[ge.SchemaTag.key],m]),Kx(d,e,n,i,r,void 0,m)}}a(QQ,"importALPViews");function YQ(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(YQ,"getViewTypeByDefinition");function zQ(e,t,n,i,r){let o=t.table.views=n.createInstance(i,ge.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;vt(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=YQ(d),T=o[p[0]]=n.createInstance(i,m),b=Iw(s,d);if(!s[d].entitySet&&(vt(T,e.manifest,s[d],r,[p[0],b]),m===ge.DefinitionName.LRTableView)){let E=`${ge.DefinitionName.LineItemsOfView}::${p[0]}`;Xx(e,T,n,i,r,E,b),Kx(T,e,n,i,r,E,b)}Object.keys(T).length===0&&delete o[p[0]]}_o(t.table,"views")}a(zQ,"importLRViews");function qQ(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),vt(t[s].actions[u],i,e.definitions[T],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}a(qQ,"transferHeaderActions");function ZQ(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];vt(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}a(ZQ,"importCustomFilterFields");function eY(e,t,n,i,r,o){if(vt(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ge.DefinitionName.Header),vt(t.header,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.Header],r,[]),qQ(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ge.DefinitionName.FilterBar),vt(t.filterBar,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.FilterBar],r,[]),XQ(e,t.filterBar,n,i,r),ZQ(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=Iw(e.jsonSchema.definitions,s);vt(t.table,e.manifest,l,r,[s,p]),Xx(e,t,n,i,r,u),Kx(t.table,e,n,i,r,u,p),zQ(e,t,n,i,r)}else o===ge.SchemaType.AnalyticalListPage&&QQ(e,t,n,i,r)}a(eY,"addSettings");function Xc(e,t){if(Yt(),!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 wa,r=i.createPageInstance(ge.PageTypeV4.ListReport);for(let o in n){let s=n[o],l=RT(s);if("name"in s&&(l===ge.PageTypeV4.ListReport||l===ge.PageTypeV4.AnalyticalListPage)){eY(e,r,i,ge.PageTypeV4.ListReport,o,t);break}}return r}a(Xc,"createListReportConfig");var ye=te(se()),Jc=require("@sap-ux/vocabularies-types/vocabularies/UI");function tY(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(tY,"isBoolean");function nY(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(nY,"isNumber");function iY(e,t){let n=e.toString();return tY(n,t)?n==="true":nY(n,t)?parseFloat(n):e}a(iY,"convertValue");function rY(e,t,n,i){let{element:r}=e,o=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=iY(r.attributes[i],t);s!==n[i]&&(n[i]=s,o=!0)}return o}a(rY,"importProperty");function Cw(e,t,n){let i,r=pf(e.file,!1,n);if(r){let o=oy(r);i={},$c({fullSchema:t,schema:t,element:o,contextPath:[],config:i},rY)}return i}a(Cw,"convertXmlFileToConfig");function Fy(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:o}=e;if(!i||Object.keys(i).length===0)return;let s=bs(t||[],r,n,o),l;return s&&(l=Cw(s,i,e.logger)),l}a(Fy,"createCustomPageConfig");function ed(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=Rc(i,o),d=Fc(n||[],p,i,"fragment",t),m;if(d){let b={...u,definitions:r.definitions};m=Cw(d,b,s)}return m}a(ed,"createCustomFragmentConfig");function Jx(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(Jx,"getManifestId");function _y(e){return e.replace(/#/g,"::").replace(/\//g,"::")}a(_y,"getDefinitionId");function oY(e,t,n,i,r,o){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[_y(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);vt(d,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],o),Object.keys(d).length>0&&(n[i].table.columns[u]=d)}}}a(oY,"fillTableColumnsInConfig");function aY(e,t,n,i,r=t){let o=e.jsonSchema.definitions[`${ye.DefinitionName.Actions}<${_y(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),vt(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(aY,"fillTableActionsInConfig");function sY(e,t,n,i,r,o=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageSectionForm}<${_y(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===Jc.UIAnnotationTypes.DataFieldForAction||C.description==="Custom Action"){let L=un(C.$ref)||E.split("<")[0];i[n].form.actions[T]=r.createInstance(ye.PageTypeV4.ObjectPage,L),vt(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[L],e.routingId,[T.replace("/","??")],o),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}a(sY,"fillFormActionsInConfig");function Nw(e,t,n,i,r,o){var u;let s=o||Jx(i,!1,Jc.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?_y(o):i.replace("#","::")}>`;vt(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:{}}),aY(e,i,n,r,s),oY(e,l,n,i,r,s)}}a(Nw,"fillTableInConfig");function cY(e,t,n,i,r){var l;let o=Jx(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:{}}),sY(e,s,i,n,r,o))}a(cY,"fillFormInConfig");function lY(e,t,n,i,r,o){let s=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(B)[1];if(vt(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],o),s.fragmentName){let u=ed(e,s.fragmentName);s.controls=u}n[i]=s}a(lY,"fillCustomSubSectionInConfig");function Rw(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(Jc.UIAnnotationTerms.PresentationVariant)&&((s=T.$ref)!=null&&s.startsWith(B+ye.DefinitionName.ObjectPageSectionTableV4))){let E=T.$ref.split(B)[1];b=E?Jx(E,!0,Jc.UIAnnotationTerms.LineItem):m,Nw(e,n,i,m,r,b)}else(l=T.$ref)!=null&&l.startsWith(B+ye.DefinitionName.ObjectPageSectionTableV4)?Nw(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},Rw(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(`@${Jc.UIAnnotationTerms.FieldGroup}::`))?cY(e,n,i,m,r):(d=T.$ref)!=null&&d.startsWith(B+ye.DefinitionName.ObjectPageCustomSubSectionFragment)&&lY(e,T,i,m,r,o)}}a(Rw,"fillSectionsInConfig");function fY(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);vt(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l);let d=u.template;if(d){let m=ed(e,d);p.controls=m}n.sections.custom.push(p)}}}a(fY,"fillCustomSectionsInConfig");function uY(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);vt(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let d=u.template;if(d){let T=ed(e,d);p.controls=T}let m=u.templateEdit;if(m){let T=ed(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}a(uY,"fillCustomHeaderSectionsInConfig");function pY(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):{},vt(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ye.FacetTitlePrefix)[1]))}}}a(pY,"fillHeaderFacets");function dY(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;vt(m,o,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}a(dY,"importActionSettingsOfReference");function Lw(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&&dY(d,e,n,u,p,i,r)}}}a(Lw,"fillHeaderFooterActions");function gY(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),vt(i.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageFooter),vt(i.footer,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageLayout),vt(i.layout,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageLayout],e.routingId,[]),vt(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={},Rw(e,e.jsonSchema.definitions[ye.DefinitionName.Sections].properties,r,i.sections,n)),fY(e,r,i,n),pY(e.jsonSchema,i,n,e.manifest,e.routingId),uY(e,r,i,n),Lw(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.ObjectPageHeaderActions,ye.PropertyName.header),Lw(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.FooterActions,ye.PropertyName.footer)),i}a(gY,"fillObjectPageConfig");function Dy(e){if(Yt(),!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 wa;return gY(e,n,i)}a(Dy,"createObjectPageConfigV4");var Ue=te(se());var Qx=[],wy={};function mY(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(mY,"routesSorter");function Yx(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(Yx,"resolveTarget");function hY(e){let t={};e=e.concat().sort(mY);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),o;Array.isArray(i.target)?(o=Yx(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(hY,"populateAssociations");function yY(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(yY,"determinePageType");function vY(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=Dy(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=Fy(r)}else if(e.templateType===Ue.TemplateType.ListReportObjectPageV4){let r={manifest:e.manifest,jsonSchema:e.schemas[i],logger:e.logger};e.page.config=Xc(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=Xc(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=iu(e.target)===Ue.TemplateType.AnalyticalListPageV4?Ue.SchemaType.AnalyticalListPage:Ue.SchemaType.ListReport;e.page.config=Xc(r,s)}}}a(vY,"convertSettingsToConfig");function TY(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(TY,"updateUnhandledControllers");function EY(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(EY,"setVariantManagmentAndNavigation");function bY(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}=Bc(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(bY,"setEntitySetEntityTypeContextPath");function AY(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.path&&{viewPath:e.path},...e.viewPath&&{viewPath:e.viewPath}};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(AY,"evaluateCustomPageSettings");function SY(e,t,n,i){let r=e.targets[t],o=yY(r,i.logger,t),s={pageType:o};if(bY(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),wy[t]&&wy[t].indexOf(".")!==-1){let p=wy[t].split(".");s.navigationProperty=p[p.length-1]}AY(r,s,o),EY(r,s),TY(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}};vY(u)}a(SY,"getSinglePageAndConfig");function Fw(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}wy=hY(n.routes||[]);for(let i in n.targets)SY(n,i,t,e);return t}a(Fw,"getPagesAndConfigs");function _w(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return Yx(t?t.target:e.routes[0].target)}else return}a(_w,"getHome");function Dw(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.path&&{viewPath:t.path},...t.viewPath&&{viewPath:t.viewPath}}:{}}a(Dw,"getSettings");function Pf(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(Pf,"getPages");var zx=class zx extends es{constructor(t){Yt();let n=new gf,i=Nt(Ue.SchemaType.Application),r=t.appSchemas[i.filename];vt(n,t.manifest,r.definitions.AppSettings,"",[]),super(t.manifest,t.appSchemas,_w(t.manifest[Ue.ManifestSection.ui5].routing),Fw(t),Ue.FioriElementsVersion.v4,{...Dw(t.manifest[Ue.ManifestSection.ui5].routing),...n},t.logger),this.unhandledControllers=Qx}};a(zx,"V4AppProvider");var td=zx;var ww=require("fs"),Qc=require("path"),nd=te(se());var Mw=a((e,t,n=__dirname)=>{let i;switch(t){case nd.SchemaType.Application:{i=`${nd.SchemaType.Application}${e.toUpperCase()}.json`;break}case nd.SchemaType.FPMCustomPage:{i=`${nd.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"),xY=a(async e=>new Promise((t,n)=>{(0,ww.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),My=a(async(e,t)=>{try{let n=Mw(e,t,__dirname);return await xY(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function PY(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 My(t,r)}return n}a(PY,"getGenericSchemas");function kw(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(kw,"getAnnotationsForUi");function id(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}a(id,"getEntitySetByEntitySetName");function Bc(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(Bc,"getEntityTypeEntitySetFromContextPath");function Vw(e,t,n){let i=Hu(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=id(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]=rd(e,t[u.filename])}}a(Vw,"generateObjectPageSchemasV2");function OY(e,t,n){var l,u;let i=Pf(e.manifest,le.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Pf(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}=Bc(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=iu(o[p])),n[E.filename]=Ju(e,t[C.filename],o[p].name,m)}}a(OY,"generateListReportSchemasV4");function IY(e,t,n){var r;let i=Hu(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=id(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]=od(e,n[u.filename])}}a(IY,"generateAppSchemaV2LR");function CY(e,t,n){var o,s;let i=Pf(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}=Bc(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]=xp(e,t[b.filename],p,t[E.filename])}}a(CY,"generateObjectPageSchemasV4");function NY(e,t,n,i){var o;let r={};if(i===le.TemplateType.ListReportObjectPageV2&&n)IY(e,r,t),Vw(e,t,r);else if(i===le.TemplateType.AnalyticalListPageV2&&n){let s=Hu(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=id(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]=ad(e,t[d.filename])}Vw(e,t,r)}else if(i===le.TemplateType.OverviewPageV2){let s=Nt(le.SchemaType.OverviewPage),l=Nt(le.SchemaType.OverviewPage);r[s.filename]=sd(t[l.filename],e.manifest)}return{...t,...r}}a(NY,"generateAppSchemasV2");function LY(e,t,n){if(!ic(e.featureToggles,le.Features.BuildingBlocks))return;let i=Pf(e.manifest,le.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let o=i[r],s=bs(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]=Uc(t[p.filename],s,e.serviceAVT,e.logger)}}}a(LY,"generateCustomPageSchemasV4");function RY(e,t,n){let i={};return n&&(OY(e,t,i),CY(e,t,i),LY(e,t,i)),{...t,...i}}a(RY,"generateAppSchemasV4");async function jw(e,t,n){let i=await PY(n,e.fioriElementsVersion);return e.fioriElementsVersion===le.FioriElementsVersion.v4?RY(e,i,t):NY(e,i,t,n)}a(jw,"generateAppSchemas");function FY(e){let t,n=[];switch(e.templateType){case le.TemplateType.ListReportObjectPageV2:case le.TemplateType.AnalyticalListPageV2:t=new ch(e);break;case le.TemplateType.AnalyticalListPageV4:case le.TemplateType.ListReportObjectPageV4:case le.TemplateType.FreestylePageV4:t=new td(e);break;case le.TemplateType.OverviewPageV2:t=new uh(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(FY,"importConfigs");function $w(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($w,"getFileList");async function qx(e){var E,C;Yt();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,featureToggles:s}=e;new au().doesUi5VersionFitDistTags((C=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:C.minUI5Version,i);let u=MT(t),p=No(n,i),d=kw(p),m=VT(t,u,i),b=await jw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:o,fioriElementsVersion:u,logger:i,featureToggles:s},d,m);return $w(b)}a(qx,"importProjectSchema");async function Zx(e){var R,F;Yt();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,flex:s,featureToggles:l}=e;new au().doesUi5VersionFitDistTags((F=(R=t["sap.ui5"])==null?void 0:R.dependencies)==null?void 0:F.minUI5Version,i);let p=MT(t),d=No(n,i),m=VT(t,p,i),T={templateType:m,manifest:t,serviceAVT:d,fragments:r,views:o,fioriElementsVersion:p,logger:i,featureToggles:l},b=kw(d),E=await jw(T,b,m),L=FY({manifest:t,flexChanges:s,appSchemas:E,templateType:m,logger:i,serviceAVT:d,fragments:r,views:o});return $w(E,L)}a(Zx,"importProjectSchemaAndConfig");var _Y=["header","sections","footer"];function DY(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(DY,"addFlexChangeForSection");function wY(e,t,n,i,r){n==null||n.forEach(o=>{if(!o.Determining&&o.$Type===zo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Yg(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(`@${zo.UIAnnotationTerms.Identification}`,`/@${zo.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(wY,"addHeaderActionCallBackV2");function MY(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===zo.UIAnnotationTypes.DataFieldForAction){let o=ya(r).split("::").splice(1).join("::"),s=Ei(r,e),l=ft(`${fe.DefinitionName.ObjectPageFooterAction}<${o}>`),u=r.fullyQualifiedName.replace(`@${zo.UIAnnotationTerms.Identification}`,`/@${zo.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(MY,"addFooterActionCallBackV2");function VY(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(VY,"ensureCustomColumnDefinitionExists");function Vy(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&DY(e,t,"visible",n)}a(Vy,"addAppSchemaDefinition");function kY(e,t,n){e.properties[t]={$ref:`${B}${n}`}}a(kY,"addSectionReference");function cd(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}>`,Ya(n.entityType,i,`QuickVariant<${t}>`)}a(cd,"addTableDefinition");function jY(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]=ma(n,i,t);let u=n.definitions[l];Vy(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,ga(i,u,t),cd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),cd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),cd("ObjectPageGridTable",t,i,n),cd("ObjectPageTreeTable",t,i,n),cd("ObjectPageAnalyticalTable",t,i,n);let p,d=IF(i.entityType,e.serviceAVT);d&&(p=VY(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(jY,"handleLineItem");function $Y(e,t,n,i,r){e.definitions[t]=ma(e,n,i);let o=e.definitions[t];Vy(e,o,r,"ObjectPageSubSectionV2"),o.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},o.properties.subsections[fe.SchemaTag.isViewNode]=!0}a($Y,"handleSubSection");function UY(e,t,n,i,r){e.definitions[t]=ma(e,n,i);let o=e.definitions[t];Vy(e,o,r,"ObjectPageSectionChartV2")}a(UY,"handleSectionChart");function BY(e,t,n,i,r){e.definitions[t]=ma(e,n,i);let o=e.definitions[t];return Vy(e,o,r,"ObjectPageSectionFormV2"),o[fe.SchemaTag.annotationPath]=n.annotationPath,o[fe.SchemaTag.isViewNode]=!0,o}a(BY,"handleFormSection");function WY(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(WY,"getSectionType");function GY(e,t,n){let i=t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${zo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}a(GY,"getReferenceKey");function Uw(e,t,n,i,r,o=!1){let s=t[n],l=WY(s.base,o),u=GY(s,n,l),p=`${l}<${u}>`;switch(kY(i,u,p),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":{o=!0,$Y(r,p,s,n,l);let d=r.definitions[p].properties.subsections;for(let m in s.facets)Uw(e,s.facets,m,d,r,o);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{jY(e,n,r,s,t,l),Ol(r,s.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{UY(r,p,s,n,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let d=BY(r,p,s,n,l);Qg(fe.SectionType.Section,s,d,r,fe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{ou(s,n,i,r,fe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{ou(s,n,i,r,fe.SectionType.Section,fe.SectionType.SubSection,"V2");break}default:i.properties[n]=ma(r,s,n)}}a(Uw,"addSection");function Bw(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}/@${zo.UIAnnotationTerms.Facets}`),!n)return;let r=Cg((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)Uw(e,r,T,i,t);else Bw(e,t,m.pages)}let o=t.definitions.CustomSections;for(let d in o.properties)i.properties[d]=o.properties[d]}a(Bw,"addSections");function HY(e,t,n,i){Zg(e,n),qg(e,n,t,i,wY,!0)}a(HY,"addHeader");function KY(e,t,n,i){let r=Ng(t,n,i,void 0,!0);r&&tm(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}a(KY,"addRelatedFacetKeysType");function rd(e,t){var s;Yt();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?(HY(n,e.entitySet,r,e.serviceAVT),n.definitions[fe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Bw(e,n,o),KY(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]),zg(n,e,fe.FioriElementsVersion.v2,MY,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,Fo(n,_Y),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(rd,"generateObjectPageSchemaV2");var tr=te(se());var XY=["filterBar","table","footer"];function eP(e,t,n,i){Ya(e,n,"QuickVariant"),CF(n,"QuickVariantX",t),NF(i,n,"QuickVariantX")}a(eP,"addEnumForVariantPaths");function od(e,t){var m,T,b,E,C,L,R;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=B+lc,n.properties.table.anyOf[1].$ref=B+fc,n.properties.table.anyOf[2].$ref=B+jg,n.properties.table.anyOf[3].$ref=B+$g,n.properties.table.anyOf[4].$ref=B+Ug;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+tr.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+tr.DefinitionName.ToolBarLR;n.definitions[lc]=i,n.definitions[fc]=r,n.definitions[jg]=o,n.definitions[$g]=s,n.definitions[Ug]=l,WT.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:tr.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&&WT.forEach(Ce=>{n.definitions[Ce][tr.SchemaTag.annotationPath]=to(d==null?void 0:d.fullyQualifiedName,F.term,F.qualifier)}),bl(n,F,d);let U=(R=(L=d==null?void 0:d.annotations)==null?void 0:L.UI)==null?void 0:R.SelectionFields;Gg(n,U,d),Ol(n,d);let J=[],re=Wl(e.manifest[tr.ManifestSection.generic].pages,J);if(!re)return oe(e.logger,{severity:tr.LogSeverity.Error,message:ee.t("NOLR"),location:{path:tr.MANIFESTPATH,range:[tr.ManifestSection.generic]}}),n;Al(n,d,re,e.manifest,e.fragments),eP(d,e.entitySet,n,e.serviceAVT),LF(d,n,tr.DefinitionName.ListReportFilterBar),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Fo(n,XY),n}a(od,"generateListReportSchemaV2");var Bt=te(se());var JY=["filterBar","keyPerformanceIndicators","chart","table","footer"];function QY(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(QY,"getVisualizations");function YY(e,t){let n=e.definitions[Bt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Bt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}a(YY,"addChart");function ad(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,bF(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:L}=QY(b,E),R=C||E.LineItem,F=L||E.Chart;bl(n,R,s),F&&YY(n,F);let U=(m=(d=s==null?void 0:s.annotations)==null?void 0:d.UI)==null?void 0:m.SelectionFields;if(Gg(n,U,s),Ol(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),eP(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 Fo(n,JY),n}a(ad,"generateAnalyticalListReportSchemaV2");function zY(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(zY,"getCardDefinitionNames");function qY(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"},va(o,s.CardModel);let l=zY(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=B+"CardModel"}}a(qY,"addModelsEnum");function Ww(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},qY(n,t),n}a(Ww,"generateOverviewPageSchemaV2");var js=te(se());function tP(e,t,n,i,r,o){Yt();let s=No(e,t),l={templateType:o,fioriElementsVersion:js.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=id(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:js.LogSeverity.Error,message:ee.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}a(tP,"prepareGenerationV2");function nP(e,t,n,i,r,o){let s=tP(n,o,i,r,t,js.TemplateType.ListReportObjectPageV2);return rd(s,e)}a(nP,"generateObjectPageInterfaceV2");function iP(e,t,n,i,r,o){let s=tP(n,o,i,r,t,js.TemplateType.ListReportObjectPageV2);return od(s,e)}a(iP,"generateListReportInterfaceV2");function rP(e,t,n,i,r,o){let s=tP(n,o,i,r,t,js.TemplateType.AnalyticalListPageV2);return ad(s,e)}a(rP,"generateAnalyticalListPageInterfaceV2");function sd(e,t){return Ww(e,t)}a(sd,"generateOVPInterfaceV2");var at=te(se());var ld=a(e=>({flexChanges:[],manifest:{[at.ManifestSection.generic]:{pages:{}}},fragments:e||[]}),"getDefaultExportResult");function Gw(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(Gw,"getClassesForSingleSection");function Hw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Gw(n,i,t),Hw(n,t)}}a(Hw,"getSubsectionClasses");function ZY(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Gw(i,r,n),Hw(i,n)}a(ZY,"getExportClassesForSections");function e6(e,t){let n=e.page.config,i=e.page.entitySet,r=ld(e.fragments),o=new Ni,s=o.createPageInstance(at.PageTypeV2.ListReport,n),l=oc(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};ys(m,s,[],[],e.jsonSchema)}return r}a(e6,"exportListReportPage");function t6(e,t){let n=e.page.config,i=e.page.entitySet,r=ld(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let o=new Ni,s=o.createPageInstance(at.PageTypeV2.AnalyticalListPage,n),l=oc(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};ys(m,s,[],[],e.jsonSchema)}return r}}a(t6,"exportAnalyticalListPage");function n6(e,t){let n=e.page.config,i=e.page.entitySet,r=ld(e.fragments),o=new Ni,s=o.createPageInstance(at.PageTypeV2.ObjectPage,n);if(r.manifest=JSON.parse(JSON.stringify(e.manifest)),n){let l=oc(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&&ZY(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};ys(m,s,[],[],e.jsonSchema)}}return r}a(n6,"exportObjectPage");var i6=a(e=>{let t=ld();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&&Ku(i,t,e.jsonSchema,e.jsonSchema,n,[]),t},"exportOverviewPage"),r6=a((e,t,n)=>{var s;let i=ld();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new am,e);r.settings=Object.assign(new ts,e.settings);for(let l in n.definitions.AppSettings.properties){let u=qn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),d=Wn(i.manifest,p);e.settings&&e.settings[l]!==void 0?d[l]=e.settings[l]:delete d[l]}}let o=(s=i.manifest[at.ManifestSection.generic])==null?void 0:s.pages;return o&&e.pages&&zT(e.home,e.pages,Object.values(o)[0]),i},"exportApplicationV2");function Kw(e,t){if(e[at.SchemaType.ListReport])return e6(e[at.SchemaType.ListReport],t);if(e[at.SchemaType.ObjectPage])return n6(e[at.SchemaType.ObjectPage],t);if(e[at.SchemaType.OverviewPage])return i6(e[at.SchemaType.OverviewPage]);if(e[at.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[at.SchemaType.Application];return r6(n,i,r)}else if(e[at.SchemaType.AnalyticalListPage])return t6(e[at.SchemaType.AnalyticalListPage],t)}a(Kw,"exportPageV2");var Of=te(se()),Jw=require("@sap-ux/vocabularies-types/vocabularies/UI");function Xw(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(Xw,"updateDependencyLib");function ky(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(ky,"extractLastIdPart");function Qw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:Of.LogSeverity.Error,message:ee.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let o=r.lastIndexOf(Of.PropertyName.sections),s=o>-1?ky(r[o+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Jw.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:Of.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return oP(d),!0}a(Qw,"createNewCustomColumn");var Ma=te(se());var zw=a((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Yw=a((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function o6(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}a(o6,"initializeRouting");function a6(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}a(a6,"setTargetOptions");function s6(e,t,n){let i="";return e.forEach((r,o)=>{let s="";t&&t.pageType!==Ma.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${o?o+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}a(s6,"calculateQueryPattern");function qw(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){qw(e,t,n,s);return}}}a(qw,"fillNavigationParts");function c6(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(c6,"fillParentKeys");function l6(e,t,n,i,r){for(let o in e.navigation){let s=e.navigation[o],l=t[s.route];if(a6(n,o,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=[];qw(u,o,t,r,l==null?void 0:l.contextPath);let p=c6(e.routePattern),d=s6(u,l,p);i.routes.push(zw(d,s.route,s.route))}}}a(l6,"handlePageNavigation");function f6(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(f6,"removeDeletedPages");function u6(e,t){var n,i,r,o;e.contextPath?(t.options||(t.options=Yw({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Yw({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(o=(r=t.options)==null?void 0:r.settings)==null||delete o.entitySet}a(u6,"transferEntitySetandContextPath");function p6(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===Ma.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(p6,"deleteRemovedCustomSections");function d6(e,t,n){let i=e.routes.find(r=>r.name===t);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}a(d6,"updateRouteLayout");function g6(e,t,n,i){return e.pageType&&![Ma.PageTypeV4.CustomPage,Ma.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,viewPath:e.view.viewPath,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ma.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}a(g6,"fillTarget");function Zw(e,t,n){var r,o;let i=o6(n[Ma.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.name===e)&&i.routes.push(zw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=g6(u,l,s,t),u6(u,l),p6(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={}),l6(u,t,l,i,s),d6(i,s,u),i.targets[s]=l}return f6(i,t),i}a(Zw,"transformRoutingV4");var xi=te(se());var eM=[xi.FlexibleColumnLayoutAggregations.BeginColumnPages,xi.FlexibleColumnLayoutAggregations.MidColumnPages,xi.FlexibleColumnLayoutAggregations.EndColumnPages],tM=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:eM[r]?s.controlAggregation=eM[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)tM(e,t,l.navigation[d].route,o.target,r)}},"applyFCLRouting"),m6=a((e,t)=>{e.routing.config.routerClass=xi.v4.FIORI_FCL_ROUTER_CLASS,tM(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,Xw(e,xi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),h6=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"),nM=a((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?m6(e,t):h6(e)},"updateFcl");var ae=te(se()),fd=require("@sap-ux/vocabularies-types/vocabularies/UI");var iM=te(tc()),rM=te(se());function y6(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}a(y6,"isExportValueEquals");function v6(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)===rM.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(v6,"deleteProperty");function oM(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),$c({fullSchema:o,schema:t,element:d,contextPath:[...r,{name:i,index:0}],config:n[i],parent:e},oM)}else y6((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]&&(v6(e,i),l=!0);return l}a(oM,"exportProperty");function aM(e,t,n,i,r,o){let s=pf(e.file,!1,o);if(s){let l=oy(s);if($c({fullSchema:i,schema:i,element:l,contextPath:[],config:n},oM)){let p=(0,iM.js2xml)(s,{spaces:4}),d={dataSourceUri:e.file.dataSourceUri,fileContent:p};r==="view"?t.views=[d]:r==="fragment"&&t.fragments.push(d)}}}a(aM,"getExtensionExportResult");var sM=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=bs(i||[],s.name,r,l)),u&&aM(u,n,s.config,o,"view",l),n},"exportFPMCustomPageConfig"),cM=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=Rc(u,s[0]);p=Fc(o,m,u,d,t)}if(p){let m=df(t),b={...i.definitions[m],definitions:i.definitions};aM(p,r,n,b,d,l)}},"exportXMLFragmentConfig");var lM={flexChanges:[],manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},fragments:[],views:[]},sP=a(e=>{let t=lM;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function T6(e,t,n,i,r,o){let s=e.flex.controlId(t.baseId,n,i,e.flex.controlType,t.title),l=wg(r,e,t.ui5Version,o,s);t.exportResults.flexChanges.push(e.flex.createFlexChange(l,t.exportResults.manifest))}a(T6,"exportFlexChange");function E6(e,t,n){var s,l,u,p;let i=`@${fd.UIAnnotationTerms.LineItem}`,r=`@${fd.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(E6,"determineTargetAnnotationOfTable");function b6(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(b6,"determineTargetAnnotationOfChart");function A6(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.navigationProperty?`${u.navigationProperty}/${p}`:p}}return{targetAnnotation:n,targetAnnotationEncoded:i}}a(A6,"determineTargetAnnotationOfViews");function S6(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(S6,"determineTargetAnnotationOfHeaderSections");function x6(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=ky(e[1]);n=r&&r.replace(/\//g,"::"),i=n&&n.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:n,targetAnnotation:i}}a(x6,"determineTargetAnnotationOfSections");function P6(e,t,n){let i,r,o=!1;return e[0]===ae.PropertyName.table&&e[1]!==ae.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=E6(e,t,n):e[0]===ae.PropertyName.chart&&t.templateType===ae.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=b6(e,t,r,i,n):e[0]===ae.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=x6(e,o,r,i):e[1]===ae.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=S6(e,o,r,i,t.title):e[1]===ae.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=A6(t,e,i,r)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:o}}a(P6,"determineTargetAnnotation");function O6(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(O6,"determineKeyForSyncRule");function I6(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(I6,"createNewObjectInManifest");function fM(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&&I6(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(fM,"transferPropertyToManifest");function C6(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}=P6(e,n,r),T=O6(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 L={exportHandler:t.manifest.export,manifestSection:E,configObject:r,configPropertyKey:i,manifestKey:C,syncRuleKey:T};fM(L,o,s)}else if(t.manifest.delete){let L=t.manifest.delete;typeof L=="function"&&L(E,r,i,C,T,n.config)}else E[C]!==void 0&&delete E[C]}vl(n.exportResults.manifest,b,d,p)}a(C6,"exportManifestChange");function N6(e,t,n,i,r,o,s){let l=qn(i,n);if(l)if(l.xml){let u=l.xml(i);cM(e,u,s.configObject)}else l.flex?T6(l,e,r,t,i,n):l.manifest&&C6(r,l,e,n,i,o,s)}a(N6,"evaluateExportRule");function L6(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,cP(e.transferParameters,l,[...i,...u],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}}a(L6,"transferSubObject");function R6(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=xt(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(R6,"createALPTableView");function F6(e,t,n){var s;let i=!1;if(!t[n]||Object.keys(t[n]).length===0)return{newElementCreated:i,stopProcessing:!0};let r=xt(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)||fd.UIAnnotationTerms.LineItem}]),{newElementCreated:i,stopProcessing:!1}}a(F6,"createALPChartView");function _6(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=xt(e.pageNameArray),r=Lo(e.exportResults.manifest,i),o=`@${fd.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(_6,"createVisualFilters");function D6(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,o=xt(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(D6,"createLRTableView");function w6(e,t,n,i,r,o,s=!1){let l=!1,u=!1;if(t&&!s)if(t.startsWith(ae.DefinitionName.CustomColumn))l=Qw(n,o,i[n],o.logger,r);else{if(t===ae.DefinitionName.ALPChartView&&n===ae.PropertyName.chart&&i)return F6(o,i,n);if(t===ae.DefinitionName.ALPTableView&&n===ae.PropertyName.table&&i)return R6(o,i,n);n&&(t.startsWith(ae.DefinitionName.LRTableView)||t.startsWith(ae.DefinitionName.LRChartView))?l=D6(e,o,n,i[n]):n&&t.startsWith(ae.DefinitionName.VisualFilters)&&(l=_6(o,i[n]))}return{newElementCreated:l,stopProcessing:u}}a(w6,"createNewElement");function M6(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}a(M6,"isDefinitionTraversable");function aP(e,t,n,i=!1){var d;let r=e.configObject[e.key],o=_g(e.configObject,e.key),s=Ro(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=w6(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||N6(e.transferParameters,e.breadcrumbs,e.key,e.configObject,p,e.propertyDefinition,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||M6(e.propertyDefinition)&&s.configObject)&&!u){let m=o?[...n,o]:n;L6(e,s,r,p,m)}}a(aP,"transferSortedListEntry");function V6(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]],aP(e,i,r),o=!0):typeof l[1]=="object"&&t.forEach(u=>{u.$ref&&(e.key=l[0],e.propertyDefinition=u,aP(e,i,r),o=!0)}),e.index++})}return o}a(V6,"transferConfigEntriesWithAnyOfDefinitions");function k6(e,t,n,i){let r=kT(e.appSchema,t,i);for(let o of r)n.some(s=>s[0]===o)||n.push([o,t])}a(k6,"mergeEntriesForInsert");function cP(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=V6(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&&k6(e,u,m,t),s=0,m.forEach(b=>{l.key=b[0],l.propertyDefinition=b[1],l.index=s,aP(l,n,i,d),b[1].$ref&&s++}))}a(cP,"transferManifestEntriesAndFlexChange");function uM(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(uM,"getClassesForSingleSection");function pM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],uM(n,i,t),pM(n,t)}}a(pM,"getSubsectionClasses");function j6(e,t,n){let i;for(let r in e.sections)i=t.sections[r],uM(e,r,n),pM(i,n)}a(j6,"getExportClassesForSections");var $6=a((e,t)=>{var p;let n=sP(e.manifest),i=new wa,r=i.createPageInstance(ae.PageTypeV2.ObjectPage,e.page.config),o=oc(r),s=e.page.name,l=`${e.appId}::${o.id}::${s}--`;(p=e.page.config)!=null&&p[ae.PropertyName.sections]&&j6(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 cP(u,r,[],[],[],e.jsonSchema),n},"exportObjectPage"),U6=a((e,t,n,i,r,o)=>{var L,R;let s=sP(e.manifest),l=e.jsonSchema,u=(L=n.table)!=null&&L[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((R=p.toolBar)!=null&&R.actions&&m)for(let F in m.properties)p.toolBar.actions[F]=t.createInstance(i,ae.DefinitionName.ToolBarAction,p.toolBar.actions[F]);let T=oc(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 cP(C,n,[],[],[],l),s},"exportListPage"),dM=a((e,t,n)=>{let i=new wa,r=i.createPageInstance(ae.PageTypeV2.ListReport,e.page.config);return U6(e,i,r,ae.PageTypeV4.ListReport,t,n)},"exportListReportPage"),B6=a((e,t)=>dM(e,t,ae.TemplateType.AnalyticalListPageV4),"exportAnalyticalListPage"),W6=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=FT());let u={exportHandler:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=o.definitions.AppSettings.properties[n];fM(u,p,{}),!l&&Object.keys(s).length&&XR(r,t,s)},"applyExportRule"),G6=a((e,t,n)=>{var o;let i=sP(t),r=Object.assign(new sy,e);r.settings=Object.assign(new gf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=qn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)W6(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]}vl(i.manifest,u)}}return i.manifest[ae.ManifestSection.ui5].routing=Zw(e.home,e.pages,i.manifest),nM(i.manifest[ae.ManifestSection.ui5],e),i},"exportApplicationV4"),gM=a((e,t)=>{if(e[ae.SchemaType.ListReport])return dM(e[ae.SchemaType.ListReport],t,ae.TemplateType.ListReportObjectPageV4);if(e[ae.SchemaType.ObjectPage])return $6(e[ae.SchemaType.ObjectPage],t);if(e[ae.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ae.SchemaType.Application];return G6(n,i,r)}else{if(e[ae.SchemaType.AnalyticalListPage])return B6(e[ae.SchemaType.AnalyticalListPage],t);if(e[ae.SchemaType.FPMCustomPage])return sM(e[ae.SchemaType.FPMCustomPage],lM)}},"exportPageV4");var An=require("@sap-ux/fe-fpm-writer");var H6=new Map([[Se.CustomExtensionType.CustomPage,An.generateCustomPage],[Se.CustomExtensionType.CustomColumn,An.generateCustomColumn],[Se.CustomExtensionType.CustomSection,An.generateCustomSection],[Se.CustomExtensionType.ObjectPage,An.generateObjectPage],[Se.CustomExtensionType.CustomAction,An.generateCustomAction],[Se.CustomExtensionType.CustomView,An.generateCustomView],[Se.CustomExtensionType.ControllerExtension,An.generateControllerExtension],[Se.CustomExtensionType.CustomSubSection,An.generateCustomSubSection],[Se.CustomExtensionType.CustomFilterField,An.generateCustomFilter],[Se.CustomExtensionType.CustomHeaderSection,An.generateCustomHeaderSection]]);function K6(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=iP(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=nP(i,r,o,s,l,u)}else if(n[Se.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[Se.SchemaType.OverviewPage];t=sd(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=rP(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=ay(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=QA(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=ay(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=YA(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=zA(i,r,o,s,u,e.featureToggles,l)}}return t}a(K6,"generateSchema");function X6(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=Kw(i,n)}else if(e[Se.FioriElementsVersion.v4]){let i=e[Se.FioriElementsVersion.v4];t=gM(i,n)}return t}a(X6,"exportConfig");function J6(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];n[Se.SchemaType.ListReport]?t=rh(n[Se.SchemaType.ListReport]):n[Se.SchemaType.ObjectPage]?t=sh(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.OverviewPage]?t=fh(n[Se.SchemaType.OverviewPage]):n[Se.SchemaType.AnalyticalListPage]&&(t=oh(n[Se.SchemaType.AnalyticalListPage]))}else if(e[Se.FioriElementsVersion.v4]){let n=e[Se.FioriElementsVersion.v4];n[Se.SchemaType.ListReport]?t=Xc(n[Se.SchemaType.ListReport],Se.SchemaType.ListReport):n[Se.SchemaType.ObjectPage]?t=Dy(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.AnalyticalListPage]?t=Xc(n[Se.SchemaType.AnalyticalListPage],Se.SchemaType.AnalyticalListPage):n[Se.SchemaType.FPMCustomPage]&&(t=Fy(n[Se.SchemaType.FPMCustomPage]))}return t}a(J6,"importConfig");async function Q6(e){return Zx(e)}a(Q6,"importProject");async function Y6(e){return qx(e)}a(Y6,"importProjectSchema");function z6(){return{version:"13",fpmWriter:"10"}}a(z6,"getApiVersion");function oP(e){let t=H6.get(e.customExtension);if(t&&typeof t=="function")return(0,An.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}a(oP,"generateCustomExtension");var Xr=require("path"),$s=require("fs");var If=a(async e=>new Promise((t,n)=>{(0,$s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),q6=a(async e=>JSON.parse(await If(e)),"readJSON"),lP=a(async e=>new Promise((t,n)=>{(0,$s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),Z6=a(async e=>new Promise(t=>{(0,$s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),hM=a(async e=>new Promise(t=>{(0,$s.exists)(e,n=>{t(n)})}),"resourceExists"),ez=a(async e=>q6((0,Xr.join)(e,"manifest.json")),"getManifest"),yM=a(async e=>{let t=[],n=(0,Xr.join)(e,"changes");if(!await hM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await lP(n);for(let o of r)i.some(s=>o.endsWith(s))&&t.push(await If((0,Xr.join)(n,o)));return t},"getChanges"),mM=a(async(e,t="fragments")=>{let n=[],i=(0,Xr.join)(e,"ext",t);if(!await hM(i))return n;let r=await lP(i);for(let o of r){let s=(0,Xr.join)(i,o),l=await If(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),tz=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,Xr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await If(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,Xr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:b,fileContent:await If(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,Xr.join)(t,b.settings.localUri);n.push({dataSourceUri:E,fileContent:await If(E)})}}return n},"getAnnotations"),nz=a(async e=>{let t=(0,Xr.basename)(e),n=(0,Xr.join)(e,"webapp"),i=await ez(n),r=await tz(i,n),o=await yM(n),s=await mM(n),l=await mM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:o,fragments:s,views:l}},"getProject");Zs(pr,te(se()),module.exports);0&&(module.exports={exportConfig,generateCustomExtension,generateSchema,getApiVersion,getChanges,getGenericSchema,getPathToGenericSchema,getProject,importConfig,importProject,importProjectSchema,isDirectory,log,readDirectory});
|
|
295
|
+
`}),S0(ee)}a(Yt,"initI18n");var wt=te(se());function Ic(e,t,n){var r;let i;for(let o in e){let s=e[o];if(da((r=s.component)==null?void 0:r.name)===wt.PageTypeV2.ObjectPage&&s.entitySet===t)return n.unshift(o),s;if(s.pages&&(i=Ic(s.pages,t,n),i))return n.unshift(o),i}}a(Ic,"findObjectPageV2");function Wl(e,t){var n;for(let i in e){let r=e[i];if(da((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),da((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 Db(e,t){let n=e.split("|");return wt.v2.SectionPosition[n[0]]&&n[1]===t}a(Db,"isAssociatedCustomSection");function P0(e,t){let n=Wn(e,`sap.ui5/extends/extensions/${wt.v2.SAPUI5_VIEW_EXTENSION}/${wt.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE}`),i={};for(let r in n)Db(r,t)&&(i[r]=n[r]);return i}a(P0,"findCustomSectionExtensions");function TK(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(TK,"removeEmptySettingsOfFooter");function EK(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(EK,"removeEmptySettingsOfFilterBar");function bK(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(bK,"removeEmptySettingsOfToolBar");function nh(e){bK(e),EK(e),TK(e)}a(nh,"removeEmptySettings");var Mb={};qs(Mb,{AnalyticalListPage:()=>jr,ListReport:()=>so,ObjectPage:()=>ci,OverviewPage:()=>Ht,exportFilterSettings:()=>C0,importDateSettingsOVP:()=>O0,importFilterSettings:()=>I0});var ih=te(se());var jr=class{};a(jr,"AnalyticalListPage"),y([v({flex:{controlId:Fg,controlType:()=>ih.ControlType.DynamicPage,createFlexChange:Te}})],jr.prototype,"fitContent",2),y([Ft("table")],jr.prototype,"table",2),y([Ft("template::SmartFilterBar")],jr.prototype,"filterBar",2),y([Ft("analyticalListPageChart")],jr.prototype,"chart",2),y([Ft("analyticalListFooter")],jr.prototype,"footer",2),jr=y([Dr({id:"sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage",pageId:ih.v2.FE_TEMPLATE_V2_ALP})],jr);var Wu=te(se());var so=class{};a(so,"ListReport"),y([v({flex:{controlId:Fg,controlType:()=>Wu.ControlType.DynamicPage,createFlexChange:Te}})],so.prototype,"fitContent",2),y([Ft("listReportFilter")],so.prototype,"filterBar",2),y([Ft("listReport")],so.prototype,"table",2),y([Ft("listReportFooter")],so.prototype,"footer",2),so=y([Dr({id:Wu.v2.SAPUI5_VIEW_EXTENSION_LIST_REPORT,pageId:Wu.v2.FE_TEMPLATE_V2_LIST_REPORT})],so);var wb=te(se());var ci=class{};a(ci,"ObjectPage"),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.52.0"})],ci.prototype,"showConfirmationOnDraftActivate",2),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.52.1"})],ci.prototype,"hideChevronForUnauthorizedExtNav",2),y([v({manifest:{path:t=>Ki(t)}}),O({since:"1.48.0"})],ci.prototype,"allowDeepLinking",2),y([v({manifest:{path:t=>Ki(t)}}),O({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=>cm(t)}}),O({since:"1.77.0"})],ci.prototype,"defaultLayoutTypeIfExternalNavigation",2),y([v({manifest:{path:t=>Ki(t),import:t=>{if("chartSettings"in t)return t.chartSettings},key:"chartSettings"}}),O({since:"1.78.0"})],ci.prototype,"globalChartSettings",2),y([v({manifest:{path:t=>Ki(t),import:t=>{if("tableSettings"in t)return t.tableSettings},key:"tableSettings",delete:rc}}),O({since:"1.71.0"})],ci.prototype,"globalTableSettings",2),ci=y([Dr({id:wb.v2.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE,pageId:wb.v2.FE_TEMPLATE_V2_OBJECT_PAGE})],ci);function AK(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(AK,"importDateSettingsFieldsOVP");function O0(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&&AK(e,t),t}a(O0,"importDateSettingsOVP");function I0(e){let t={};return t.dateSettings=O0(e.filterSettings),t}a(I0,"importFilterSettings");function SK(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(SK,"exportFilterFields");function C0(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&&SK(t,n,e))}a(C0,"exportFilterSettings");var Ht=class{};a(Ht,"OverviewPage"),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"globalFilterModel",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"globalFilterEntityType",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"globalFilterEntitySet",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"showBasicSearch",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"disableErrorPage",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"smartVariantRequired",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"bHeaderExpanded",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"containerLayout",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"showDateInRelativeFormat",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"disableTableCardFlexibility",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"enableLiveFilter",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"enableLazyRendering",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"refreshStrategyOnAppRestore",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"considerAnalyticalParameters",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"refreshIntervalInMinutes",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"useDateRangeType",2),y([v({manifest:{path:()=>mn(),import:I0,export:C0}}),O({since:"1.80.0"})],Ht.prototype,"filterSettings",2),y([v({manifest:{path:()=>mn()}})],Ht.prototype,"dataLoadSettings",2),y([v({manifest:{path:()=>mn()}})],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 Vb=class Vb{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(Vb,"MetadataFactory");var Xl=Vb;var ei=te(se());var xK={},PK={Table:hc,ResponsiveTableWithMultiSelect:hc,ResponsiveTableWithInlineDelete:hc},OK={[ei.v2.CardSettingsType.listCardSettings]:Fl,[ei.v2.CardSettingsType.listCardSettingsv4]:Fl,[ei.v2.CardSettingsType.analyticalCardSettings]:_l,[ei.v2.CardSettingsType.analyticalCardSettingsv4]:_l,[ei.v2.CardSettingsType.stackCardSettings]:du,[ei.v2.CardSettingsType.linkListCardSettings]:gu,[ei.v2.CardSettingsType.tableCardSettings]:Dl,[ei.v2.CardSettingsType.tableCardSettingsv4]:Dl},IK={[ei.SAPUI5_VIEW_CLASS]:Vu,[ei.SAPUI5_FRAGMENT_CLASS]:Mu,Table:Oc,ObjectPageResponsiveTableWithMultiSelect:Oc,ObjectPageResponsiveTableWithInlineDelete:Oc},CK={[ei.PageTypeV2.AnalyticalListPage]:xK,[ei.PageTypeV2.ListReport]:PK,[ei.PageTypeV2.ObjectPage]:IK,[ei.PageTypeV2.OverviewPage]:OK},kb=class kb extends Xl{constructor(){super(Rb,Mb,CK)}};a(kb,"MetadataInstanceFactoryV2");var Ni=kb;function NK(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(NK,"importFilterBar");function LK(e,t,n,i,r){var s;let o;e==="TreeTable"||e==="AnalyticalTable"||e==="GridTable"?o=t[e+"<LineItems>"]:t[lc]&&t[fc]&&(o=JSON.parse(JSON.stringify(t[lc])),o.properties={...o.properties,...t[fc].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(LK,"importTable");function RK(e,t,n,i){let r=e.jsonSchema.definitions,o=eh(e.manifest,i);if(t.table=n.createInstance(Ut.PageTypeV2.ListReport,o,t.table),th(t,n,r),LK(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=hs(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)}NK(t,n,e,r,i),t.footer={actions:{}};let s=r[Ut.DefinitionName.FooterActionsLR];if(s)for(let l in s.properties){let u=hs(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(RK,"addSettings");function rh(e){if(Yt(),!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 RK(e,i,n,r[0]),e.flex.forEach(s=>{Qa(s)&&Zm(i,s,e.jsonSchema,e.logger)}),Bl(i,e.manifest,o,Ut.PageTypeV2.ListReport,e.fragments),nh(i),i}a(rh,"createListReportConfig");var At=te(se());function FK(e,t,n,i){var u,p;let r=eh(e.manifest,i),o=e.jsonSchema.definitions;if(th(t,n,o),t.table=n.createInstance(At.PageTypeV2.AnalyticalListPage,`ALP${r}`,t.table),_n(t.table,e.manifest,o[`ALP${r}<LineItems>`],i,e.logger),t.table.toolBar=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.ToolBar,{actions:{}}),_n(t.table.toolBar,e.manifest,o[At.DefinitionName.ToolBar],i,e.logger),o[At.DefinitionName.ActionsLR])for(let d in o[At.DefinitionName.ActionsLR].properties){let m=hs(d);t.table.toolBar.actions[m]=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.Action),_n(t.table.toolBar.actions[m],e.manifest,o[At.DefinitionName.Action],i,e.logger)}if(t.filterBar=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.AnalyticalListPageFilterBar,t.filterBar),_n(t.filterBar,e.manifest,o[At.DefinitionName.AnalyticalListPageFilterBar],i,e.logger),o[At.DefinitionName.SelectionFields]){t.filterBar.selectionFields=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.AnalyticalListPageFilterBar,t.filterBar.selectionFields);let d=o[At.DefinitionName.SelectionFields].properties;for(let m in d){let T=m;t.filterBar.selectionFields[T]=n.createInstance(At.PageTypeV2.AnalyticalListPage,"SelectionFieldDateSettings"),_n(t.filterBar.selectionFields[T],e.manifest,o.SelectionFieldDateSettings,i,e.logger,T)}}t.chart=n.createInstance(At.PageTypeV2.AnalyticalListPage,"ChartSettings",t.chart),_n(t.chart,e.manifest,o.ChartSettings,i,e.logger),t.footer={actions:{}};let s=o[At.DefinitionName.FooterActionsLR];if(s)for(let d in s.properties){let m=hs(d);t.footer.actions[m]=n.createInstance(At.PageTypeV2.AnalyticalListPage,At.DefinitionName.FooterAction),_n(t.footer.actions[m],e.manifest,o[At.DefinitionName.Action],i,e.logger)}t.keyPerformanceIndicators={};let l=(p=(u=e.manifest[At.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(At.PageTypeV2.AnalyticalListPage,"KPISettings"),t.keyPerformanceIndicators=n.createInstance(At.PageTypeV2.AnalyticalListPage,"KPISettings",t.keyPerformanceIndicators),_n(t.keyPerformanceIndicators[d],e.manifest,o.KPISettings,i,e.logger,d)})}a(FK,"addSettings");function oh(e){if(Yt(),!Gl(e))return;let n=new Ni,i=n.createPageInstance(At.PageTypeV2.AnalyticalListPage),r=[],o=Kl(e.manifest[At.ManifestSection.generic].pages,r,e.logger);if(Hl(o,e.logger,o==null?void 0:o.entitySet),!!o)return FK(e,i,n,r[0]),e.flex.forEach(s=>{Qa(s)&&Zm(i,s,e.jsonSchema)}),Bl(i,e.manifest,o,At.PageTypeV2.AnalyticalListPage,e.fragments),nh(i),i}a(oh,"createAnalyticalListPageConfig");var Ee=te(se());var Gu=require("@sap-ux/vocabularies-types/vocabularies/UI");var DK=[Ee.ControlType.Avatar,Ee.ControlType.ObjectPageLayout,Ee.ControlType.DynamicPage];function wK(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(`${Gu.UIAnnotationTerms.LineItem}::`)[1].split("::")[0],t=`${Ee.ActionTitlePrefix}${t}`;else if(e[0].indexOf(Gu.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(wK,"getSingleSelectorIdPart");function MK(e){let t,n=e.split(":::");if(n.length===1)t=wK(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(`::${Gu.UIAnnotationTerms.LineItem}`,`/@${Gu.UIAnnotationTerms.LineItem}`);break}}else t=n[0];return t}a(MK,"getFacetID");function VK(e,t,n){let i={},r=/.+DataField.+:::sSmartTableId::.+/;return e.forEach(s=>{var l,u,p;try{let d=Qa(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=MK(T);T=Fb(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(VK,"prepareFlexChanges");var kK=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 jK(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&&om(n,u,i.jsonSchema)}}a(jK,"importFlexChangesOfTable");function $K(e,t){return e.facetId==="template"&&t}a($K,"isStandardActionFlexChange");function UK(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&&DK.includes(t.controlType)||$K(t,l)}a(UK,"matchSelector");function BK(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;UK(e,d,s,l,r,o)&&(t[i]=d.newValue)}}a(BK,"importFlexChanges");function WK(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:Dg(r,o),location:{path:"webapp/manifest.json/",range:i.split("/")}}),delete t[r])}}a(WK,"checkDeprecatedProperties");function GK(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=Wn(n.manifest,u),Object.values(p).length===0&&(u=e.manifest.path(t,{},l),p=Wn(n.manifest,u))):(u=e.manifest.path(t,{},l),p=Wn(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 WK(p,o,n,u),p}a(GK,"importManifestSetting");function Ji(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=qn(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"))jK(i.flexChanges,p,t,e,r.title,r.id);else{let m=(r==null?void 0:r.title)||(r==null?void 0:r.id);BK(n,t,i.flexChanges,p,m,o)}else d!=null&&d.manifest&&GK(d,i.pageKeys,e,t,p,s,r)}}a(Ji,"transferSettingsAndFlexChanges");function L0(e,t,n,i){let r=Bi(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=`${hF}${r}`;break}case"ObjectPageFooterActionStandard":{r=`${Bg}${r}`;break}}return r.replace(/@/g,"")}a(L0,"getActionId");function HK(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=L0(s,o,"","");e.actions[o]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,l,{}),Ji(n,e[Ee.PropertyName.actions][o],n.jsonSchema.definitions[l],i,{},u)}}}a(HK,"fillStandardActions");function ah(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=hs(p),m=L0(s,d,r,o);m&&(n[Ee.PropertyName.actions][d]=i.factory.createInstance(Ee.PageTypeV2.ObjectPage,s),Ji(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]}}HK(n,t,e,i),Object.keys(n[Ee.PropertyName.actions]).length===0&&delete n[Ee.PropertyName.actions]}a(ah,"fillActions");function KK(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}`;Ji(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(KK,"fillFields");function XK(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(XK,"prepareTableSchema");function JK(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=XK(p,t,m);Ji(e,i[t.id],t.schema,r,{title:t.title}),Ji(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");ah(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(JK,"fillTableInConfig");function QK(e,t,n,i){let r=e.jsonSchema.definitions[t].properties.custom,o=r?Vg(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(QK,"fillCustomColumnsInConfig");function YK(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)&&(Ji(e,i[t.id],t.schema,r,{title:t.title}),Ji(e,i[t.id][Ee.PropertyName.chart],e.jsonSchema.definitions[Ee.DefinitionName.ObjectPageChart],r,t))}a(YK,"fillChartSection");function zK(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&&Ji(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&&ah(e,o.properties,n[t.id].form,i,"FormAction",s);let l=e.jsonSchema.definitions[`SectionFields${r}`];l!=null&&l.properties&&KK(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(zK,"fillFormSection");function N0(e,t,n,i,r){var l;i[t.id]=r.factory.createInstance(Ee.PageTypeV2.ObjectPage,t.type,{subsections:{}}),r.flexChanges&&Ji(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,R0(e,o,n,i[t.id].subsections,r),Object.keys(i[t.id].subsections).length<1&&delete i[t.id].subsections}a(N0,"fillSubSection");function R0(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:kK(t[l]),schema:t[l],title:BT(t[l],e.jsonSchema)};if(p.schema.$ref&&p.type)switch(p.type){case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{p.schema=o[`${p.type}<${l}>`],JK(e,p,n,i,r),QK(e,u,i,r.v2Page);break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{p.schema=o[`${p.type}<${l}>`],YK(e,p,n,i,r);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{p.schema=o[`${p.type}<${l}>`],zK(e,p,i,r);break}case"ObjectPageSectionV2":case"ObjectPageSectionAddressV2":case"ObjectPageSubSectionAddressV2":case"ObjectPageSectionContactV2":case"ObjectPageSubSectionContactV2":case"ObjectPageSubSectionV2":{p.schema=o[`${p.type}<${l}>`],N0(e,p,n,i,r);break}}else(s=p.schema.properties)!=null&&s.subsections&&(p.schema=o[`${p.type}<${l}>`],N0(e,p,n,i,r))}}a(R0,"fillSectionsInConfig");function qK(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"];Ji(r,s,l,n,{id:o}),t.sections.custom.push(s)}}}a(qK,"fillCustomSectionsInConfig");function ZK(e,t){var p;let n=t.factory.createPageInstance(Ee.PageTypeV2.ObjectPage);Ji(e,n,e.jsonSchema.properties,t),n.globalTableSettings=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,Ee.DefinitionName.GlobalTableSettings);let i=e.jsonSchema.definitions;Ji(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>"];Ji(e,n.header,r,t);let o=i[Ee.DefinitionName.ObjectPageHeaderActions];o&&ah(e,o.properties,n.header,t,"ObjectPageHeaderAction"),n.footer={};let s=i[Ee.DefinitionName.FooterActions];s&&ah(e,s.properties,n.footer,t,"ObjectPageFooterAction"),n.layout=t.factory.createInstance(Ee.PageTypeV2.ObjectPage,"ObjectPageLayout"),Ji(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;R0(e,l.properties,d,n.sections,t)}let u=P0(e.manifest,e.entitySet);return qK(u,n,t,i,e),n}a(ZK,"fillConfig");function sh(e){Yt();let t=Gl(e);if(!t)return;let n=e.entitySet,i=[],r=Ic(t,e.entitySet,i);if(Hl(r,e.logger,n),!r)return;let o=VK(e.flex,n),s=new Ni;return ZK(e,{pageKeys:i,flexChanges:o,v2Page:r,factory:s})}a(sh,"createObjectPageConfigV2");function lh(e,t){var n,i;return(n=e.component)!=null&&n.name?Lg(da((i=e.component)==null?void 0:i.name),e.entitySet,void 0,t):t}a(lh,"generateId");function eX(e,t,n,i,r,o,s){e.navigation={};let l=F0(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=lh(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(eX,"getPageConfigsAndNavigations");function F0(e,t,n,i,r,o){var l;let s={};for(let u in e){let p=e[u],d=lh(p,u);if(!d)continue;let m={pageType:da((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===hn.PageTypeV2.ListReport){let b={manifest:n,flex:t,jsonSchema:i[T],fragments:r,logger:o};m.config=rh(b)}else if(m.pageType===hn.PageTypeV2.AnalyticalListPage){let b={manifest:n,flex:t,jsonSchema:i[T],fragments:r,logger:o};m.config=oh(b)}else{let b={manifest:n,flex:t,jsonSchema:i[T],entitySet:m.entitySet,fragments:r,logger:o};m.config=sh(b)}p.pages&&eX(m,p,t,n,i,r,s)}return s}a(F0,"getPagesAndConfigs");var jb=class jb extends es{constructor(t){Yt();let n;t.manifest[hn.ManifestSection.generic]?n=t.manifest[hn.ManifestSection.generic].pages:oe(t.logger,{severity:hn.LogSeverity.Error,message:ee.t("NOFE"),location:{path:hn.MANIFESTPATH,range:[hn.ManifestSection.generic]}}),n||oe(t.logger,{severity:hn.LogSeverity.Error,message:ee.t("NOPAGES",{appId:t.manifest["sap.app"].id}),location:{path:hn.MANIFESTPATH,range:[hn.ManifestSection.generic]}});let i=n&&Object.keys(n)[0],r=n&&lh(n[i],i),o=new ts,s=Nt(hn.SchemaType.Application),l=t.appSchemas[s.filename];_n(o,t.manifest,l.definitions.AppSettings,void 0),super(t.manifest,t.appSchemas,r,F0(n,t.flexChanges,t.manifest,t.appSchemas,t.fragments,t.logger),hn.FioriElementsVersion.v2,o)}};a(jb,"V2AppProvider");var ch=jb;function Hu(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:hn.LogSeverity.Error,message:ee.t("COMPONENTNOTDEFINED",{pageName:s}),location:{path:hn.MANIFESTPATH}}),((o=l.component)==null?void 0:o.name)===t){let u=lh(l,s);i[u]=l}if(t===hn.v2.FE_TEMPLATE_V2_OBJECT_PAGE&&l.pages){let u=Hu(l.pages,t,n);for(let p in u)i[p]=u[p]}}return i}a(Hu,"getPages");var Sa=te(se());var vs=te(se());var Ub=te(uT());var yn=te(se());var tX=["colorPalette","tabs"];function nX(e,t){t.cards||(t.cards={}),e in t.cards||(t.cards[e]={template:""})}a(nX,"createCard");function _0(e,t){if(e.includes(t)){let n=t.split("|");return n.push("1"),_0(e,n.join("|"))}return t}a(_0,"findAvailableId");function Ku(e,t,n,i,r,o){i!=null&&i.properties&&$b(e,t,n,i.properties,r,o)}a(Ku,"transferManifestEntriesOVP");function Cc(e,t,n,i){return e.createInstance(yn.PageTypeV2.OverviewPage,i,n,t)}a(Cc,"assignReflectMetadataRules");function iX(e){e.pathHierarchy.pop();let t=e.currentObject;for(let n in e.propertyList.anyOf)if(e.propertyList.anyOf[n].$ref){let i=e.propertyList.anyOf[n].$ref.split(B),r=e.appSchema.definitions[i[1]];t=Cc(e.factory,i[1],t,"CustomCard"),Ku(t,e.exportResults,e.appSchema,r,e.factory,[...e.pathHierarchy])}return t}a(iX,"processAnyOfDefinitionsOfOVP");function rX(e,t,n,i,r){e&&typeof e=="function"?e(t,n,i):typeof r=="object"&&!tX.includes(i)?t[i]=(0,Ub.default)(t[i]||{},r||{},{arrayMerge:jT}):t[i]=r}a(rX,"checkSyncRuleForExport");function oX(e,t,n,i,r,o){let s=e.manifest.path([...t,n]),l=Wn(i.manifest,s);if(n in yn.v2.CardSettingsType||n==="settings")l.settings=(0,Ub.default)(l.settings||{},r||{},{arrayMerge:jT});else if(r!==void 0){let u=e.manifest.export;rX(u,l,o,n,r)}else l[n]!==void 0&&delete l[n]}a(oX,"transferToManifest");function aX(e,t,n,i){Object.keys(e).forEach(r=>{let o=e[r].template,s;Object.values(yn.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"),nX(r,i.manifest[yn.ManifestSection.ovp]),Ku(e[r],i,t,t.definitions[s[0]],n,[r])}),Object.keys(i.manifest[yn.ManifestSection.ovp].cards).forEach(r=>{e[r]||delete i.manifest[yn.ManifestSection.ovp].cards[r]})}a(aX,"transferCards");function sX(e,t,n){if(t==="cards")aX(e.currentObject,e.appSchema,n,e.exportResults);else{let i=Ro(e.appSchema,"",e.currentObject,e.propertyList[t],t,n,yn.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],Ku(e.currentObject,e.exportResults,e.appSchema,i.targetDefinition,n,e.pathHierarchy)}else e.propertyList[t].anyOf?(e.pathHierarchy=[...e.pathHierarchy,t,"anyOf"],$b(e.configObject,e.exportResults,e.appSchema,e.propertyList[t],n,e.pathHierarchy)):e.propertyList[t].properties!==void 0&&(e.pathHierarchy=[...e.pathHierarchy,t],$b(e.configObject[t],e.exportResults,e.appSchema,e.propertyList[t].properties,e.factory,e.pathHierarchy))}}a(sX,"exportOfObject");function $b(e,t,n,i,r,o){for(let s in i){if(s==="description")continue;let l=e[s],u=qn(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=iX(p)):l&&typeof l=="object"&&i[s]&&sX(p,s,r),u!=null&&u.manifest&&oX(u,o,s,t,l,e)}}a($b,"processProperties");function cX(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=wg(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 L=JSON.parse(m);return L={content:L.content,selector:L.selector},JSON.stringify(C)===JSON.stringify(L)&&(E=!0),E})||e.exportResults.flexChanges.push(m)}a(cX,"evaluateFlexRule");function lX(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(lX,"exportConfigValue");function fX(e,t,n,i,r){let o=Wn(e.exportResults.manifest,t),s=n.manifest.key||i;if(r[i]!==void 0)lX(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]}Tl(e.exportResults.manifest,t)}a(fX,"evaluateManifestRule");function uX(e,t,n,i,r){return e[1]==="custom"?t=n.manifest.path(i.pageKeys,{},e[2]):(t=n.manifest.path(i.pageKeys,{},r!=null&&r.startsWith(yn.FacetTitlePrefix)?r.split(yn.FacetTitlePrefix)[1]:e[1],e[e.length-1]),t=t.replace("/@","::").replace(/VOCWITHCOLONS/g,"::com.sap.vocabularies")),t}a(uX,"getManifestPathOfSections");function pX(e,t,n,i,r){return e[1]==="columns"&&e[2]==="custom"?t=n.manifest.path(i.pageKeys,i.exportResults.manifest,r.tabKey):t=n.manifest.path(i.pageKeys,{},e[e.length-1]),t}a(pX,"getManifestPathOfTable");function dX(e,t,n,i,r){let o;return t[0]===yn.PropertyName.sections?o=uX(t,o,n,e,r):t[0]===yn.PropertyName.table?o=pX(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(dX,"getManifestPath");function gX(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)cX(e,i,t,r,o,n,s);else if(t.manifest){let u=dX(e,i,t,n,o);fX(e,u,t,s,n)}}a(gX,"evaluateExportRule");function mX(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)&&(Tm(n,e,t.appId,t.exportResults.fragments),delete n[e],e.startsWith(yn.ViewTemplateType.ResponsiveTableColumnsExtension))){let u=e.replace(yn.ViewTemplateType.ResponsiveTableColumnsExtension,yn.ViewTemplateType.ResponsiveTableCellsExtension);Tm(n,u,t.appId,t.exportResults.fragments),delete n[u]}}}a(mX,"deleteObsoleteColumn");function hX(e){let t=e.path.substring(0,e.path.lastIndexOf("/")),n=MF(e.exportResults.manifest,t),i=e.path.substring(e.path.lastIndexOf("/")+1);for(let r in n)r.startsWith(i)&&mX(r,e,n)}a(hX,"deleteObsoleteColumnsFromFragment");function yX(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}=Em(n,i,s.tabKey||r,s.extensionType);o[l]||(o[l]={viewTemplateType:u,columns:[]}),o[l].columns.push(s)}return o}a(yX,"clusterConfigColumnsByPath");function D0(e,t,n,i){let r=i?i.key:void 0,s=(i?i.target:void 0)||e.v2Page.entitySet;for(let l in yn.v2.TableColumnExtensionTypeV2){let{path:u}=Em(e.v2Page,s,r,l);if(!u)continue;let p={path:u,exportResults:e.exportResults,entitySet:s,config:t,sectionKey:r,extensionType:l,appId:e.appId};hX(p)}if(t){let l=yX(t,n,e.v2Page,s,r);for(let u in l)OE(e.exportResults,u,l[u].columns,e.appId,l[u].viewTemplateType,e.logger)}}a(D0,"transferColumnExtensions");function vX(e,t,n,i,r,o){let s=[],l=n.split("|")[1];if(!t)return;for(let p of t){let d=_0(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]];ys(e,t[p],i,[...r,s[p]],T)}let u=Wn(e.exportResults.manifest,qT());for(let p in u)Db(p,l)&&!s.includes(p)&&delete u[p]}a(vX,"transferManifestExtensions");function TX(e,t){let n;for(let i=e.length-1;i>=0;i--)if(e[i]===yn.PropertyName.table){n=e[i-1];break}return Yn(n,t)}a(TX,"getSectionId");function EX(e,t,n,i,r,o){let s=t.propertyDefinition;!e||!(s!=null&&s.additionalProperties)||Object.keys(e).forEach(l=>{let u=Ro(t.appSchema,n,e[l],s.additionalProperties,i,t.factory,t.pageType);ys(t,u.configObject,r,[...o,i],u.targetDefinition,l)})}a(EX,"transferIndexTable");function bX(e,t,n,i,r,o){let s,l=Vg(e.$ref);l&&(s={target:l,key:TX(t,n)}),D0(i,r==null?void 0:r.custom,o.targetDefinition,s)}a(bX,"transferCustomColumns");function AX(e,t,n,i,r,o,s){e.anyOf.forEach(l=>{let u=Ro(t.appSchema,n,i,l,r,t.factory,t.pageType);u&&ys(t,u.configObject,o,[...s,r],u.targetDefinition,u.title)})}a(AX,"handleAnyOfDefinitions");function SX(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")vX(e,n[r],e.pageKeys[e.pageKeys.length-1],i,[...t,r],l==null?void 0:l.items);else if(o&&r==="custom"){bX(l,t,s,e,n,o);return}else o?ys(e,o.configObject,i,[...t,r],o.targetDefinition,o.title):l.anyOf&&AX(l,e,s,n==null?void 0:n[r],r,i,t)}a(SX,"transferComplexProperty");function ys(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&&_g(t,l),p=u?[...n,u]:n,d=qn(t,l),m=e.propertyDefinition=r.properties[l],T=e.nextDefinition=Ro(e.appSchema,o,s,m,l,e.factory,e.pageType);if(gX(e,d,t,[...i],p,o,l),EX(s,e,o,l,p,i),s===void 0||typeof s=="object")SX(e,i,t,p,l,T,o);else if((m==null?void 0:m.$ref)===B+"TableCustomColumns"){D0(e,[],e.appSchema.definitions.TableCustomColumn);continue}}}a(ys,"transferManifestEntriesAndFlexChange");function w0(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),Bb(r,n[i],s,u.properties,e,o)}a(w0,"transferSettingsOfRef");function xX(e,t,n,i,r,o,s){if(n[t].$ref){e[t]={};let l=n[t].$ref.split(B);w0(i,l,e,t,r,o,s)}else if(t==="settings"&&n[t].anyOf){e[t]={};let u=`${B}${vs.v2.cardTemplateSettingsMap[e.template]}`.split(B);w0(i,u,e,t,r,o,s)}}a(xX,"processPropertiesOfObject");function PX(e,t,n,i,r,o,s){let l=qn(e,t);if(l!=null&&l.manifest){let u=l.manifest.path([...n,t]),p=Wn(i,u);Object.prototype.hasOwnProperty.call(p,t)&&bl(l,p,t,e)}else t!=="cards"&&t!=="$schema"&&typeof r[t]=="object"&&xX(e,t,r,o,s,n,i)}a(PX,"processOvpProperty");function Bb(e,t,n,i,r,o){for(let s in i)PX(t,s,o,n,i,r,e)}a(Bb,"processOvpProperties");function OX(e,t,n,i){Bb(i,e,t,n.properties,n,[]),e.cards={},Object.keys(t[vs.ManifestSection.ovp].cards).forEach(r=>{let o=t[vs.ManifestSection.ovp].cards[r].template,s=vs.v2.cardTemplateTypeMap[o]??"CustomCard";e.cards[r]=Cc(i,s,{},"CustomCard"),e.cards=Cc(i,s,e.cards,"CustomCard"),Bb(i,e.cards[r],t,n.definitions[s].properties,n,[r])})}a(OX,"addSettings");function fh(e){let t=new Ni,n=t.createPageInstance(vs.PageTypeV2.OverviewPage);return e.jsonSchema&&OX(n,e.manifest,e.jsonSchema,t),n}a(fh,"createOverviewPageConfig");var Wb=class Wb extends es{constructor(t){let n={},i=t.manifest[Sa.ManifestSection.ovp],r=new ts,o=Nt(Sa.SchemaType.Application);_n(r,t.manifest,t.appSchemas[o.filename].definitions.AppSettings,void 0);let s=Object.keys(t.appSchemas).find(d=>d.includes(Sa.PageTypeV2.OverviewPage)),l={manifest:t.manifest,jsonSchema:t.appSchemas[s]},u={pageType:Sa.PageTypeV2.OverviewPage,config:fh(l),entitySet:i.globalFilterEntitySet},p=Lg(u.pageType,u.entitySet);n[p]=u,super(t.manifest,t.appSchemas,p,n,Sa.FioriElementsVersion.v2,r,t.logger)}};a(Wb,"V2OvpProvider");var uh=Wb;var Uo=require("@sap-ux/vocabularies-types/vocabularies/UI");var ne=te(se()),M0=require("path");function IX(){return([e,t],[n,i])=>t[ne.SchemaTag.propertyIndex]-i[ne.SchemaTag.propertyIndex]}a(IX,"sortByPropertyIndex");function Xu(e){e=typeof e=="object"?e:{};let t=[...Object.entries(e.properties)];return!e.properties||Object.keys(e.properties).length===0?t:t.sort(IX())}a(Xu,"sortPropertiesRecords");function V0(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(V0,"getExtensionText");function Gb(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(Gb,"addExtensionToSortedArray");function CX(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(CX,"addRemainingTargetByBefore");function Hb(e,t,n,i,r=!1){var u,p;let o=Object.entries(e).length,s=a((d,m)=>{let T=V0(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?(Gb(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&&CX(e,d,m,n,T)}else r&&(Gb(m,n,n.length,d,T),delete e[d])}let l=Object.entries(e).length;l>0&&o!==l?Hb(e,t,n,i):l>0&&Hb(e,t,n,i,!0)}a(Hb,"adjustCustomExtReferringToCustomExt");function NX(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(NX,"getExtensionAnchor");function LX(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(LX,"getLocalExtensionsToSkip");function RX(e,t,n){var l,u;let i=((l=e.position)==null?void 0:l.placement)||ne.v4.Placement.After;if((u=e.position)==null?void 0:u.anchor)return n.length;let 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(RX,"getExtensionIndexByMergedApproach");function FX(e,t,n,i,r=!1){return r?RX(e,t,n):n.findIndex(o=>o[0]===i)}a(FX,"getExtensionIndex");function Ts(e,t,n,i="template",r,o=!1){let s=[...t],l={...e},u=LX(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:V0(d)||p,keys:[{name:ne.SchemaKeyName.key,value:`${p}`}],actionType:ne.ActionType.Custom},T=NX(d,s);if(T){let b=FX(d,e,t,T,o);b>-1&&(Gb(d,t,b,p,m),delete l[p])}else t.push([p,m]),delete l[p]}return Object.keys(l).length>0&&Hb(l,n,t,r),t}a(Ts,"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=Xu(l),p=o?o.replace(/::/g,"/"):`@${Uo.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=Ts(d,u,i,void 0,n));for(let L=0;L<u.length;L++)u[L][1][ne.SchemaTag.propertyIndex]=L;let m={};u.forEach(([L,R])=>m[L]=R),e.definitions[s].properties=m}a(Nc,"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 DX(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}=uc(n,!0);e[ne.SchemaTag.keys].push({name:ne.SchemaKeyName.action,value:i}),r&&(e[ne.SchemaTag.target]=r)}a(DX,"addTargetAndKeysOfAction");function wX(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=kg(p),m=t.properties[`${u}::${d}`]={description:l};if(o?m.$ref=Bn(s,ft(d)):(m.properties={},m.type="object",m.isViewNode=!0),m[ne.SchemaTag.propertyIndex]=r,m[ne.SchemaTag.dataType]=no(i),DX(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(wX,"addActionRecordToSchema");function MX(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=ya(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]=no(s),d[l]=m,Jg(s,d,l)}}a(MX,"addLineItemRecordToSchema");function Lc(e,t=ne.DefinitionName.TableColumn,n,i){let{actions:r,lineItemPath:o}=Kg(e.appSchema,e.lineItemAnnotation,e.entityType,e.lineItemId,n,i);Kb(e,r,o,void 0,t)}a(Lc,"addLineItemsTypeToSchema");function Kb(e,t,n,i,r=ne.DefinitionName.TableColumn){if(!e.lineItemAnnotation)return;let o=0;e.lineItemAnnotation.forEach(s=>{if((s.$Type===Uo.UIAnnotationTypes.DataFieldForAction||s.$Type===Uo.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(s.Inline!==!0||s.Determining===!0))wX(e,t,n,s,o,!i);else{let l={lineItemRecord:s,lineItemId:e.lineItemId,lineItemPath:n},u=s.$Type===Uo.UIAnnotationTypes.DataFieldForAction?`${r}Action`:r;MX(e,l,u,o,i)}o++})}a(Kb,"appendLineItemsToSchema");function Rc(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:`@${Uo.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;va(s,E)}}a(Rc,"addFragmentEnumForAnchor");function Bo(e,t,n=ne.DefinitionName.CustomActionPosition){qa(e,e.definitions[t],{definition:n,property:"anchor"},{resolveDefinition:!0})}a(Bo,"addEnumForActionAnchor");function ph(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(ph,"findPageV4");function k0(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(k0,"alignSchemaWithTemplateType");function Es(e,t,n,i=ne.DefinitionName.CustomTableAction,r="",o=""){var d,m,T,b;let s=e.definitions[r];if(!s)return;let l=Xu(s),u;o?i.indexOf(ne.DefinitionName.CustomFormActionOP)!==-1?u=o.replace(/::/g,"#"):u=o.replace(/::/g,"/"):i===ne.DefinitionName.CustomFormActionOP?u=`@${Uo.UIAnnotationTerms.FieldGroup}`:u=`@${Uo.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=Ts(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,L])=>E[C]=L),e.definitions[r].properties=E}}a(Es,"addCustomActionDefinition");function dh(e,t,n,i=ne.DefinitionName.CustomHeaderActionOP,r=""){var p,d,m,T,b,E,C,L;let o=e.definitions[r];if(!o)return;let s=Xu(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=(L=(C=(E=(b=t.options)==null?void 0:b.settings)==null?void 0:E.content)==null?void 0:C.footer)==null?void 0:L.actions,l&&(s=Ts(l,s,i,"press",n));let u={};if(s){for(let R=0;R<s.length;R++)s[R][1][ne.SchemaTag.propertyIndex]=R;s.forEach(([R,F])=>u[R]=F)}e.definitions[r].properties=u}a(dh,"addHeaderFooterCustomActionDefinition");function Fc(e,t,n){let i=Rg(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=Rg(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,M0.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 bs(e,t,n,i){let r=Fc(n,t,i),o=Rg(r,["options","settings","viewName"]);return r&&typeof o=="string"?_c(e,r,n,"view",o):void 0}a(bs,"getPageCustomViewFile");function j0(e,t,n,i,r,o,s){var d,m,T,b,E,C,L,R;let l=Xu(t),u=new Map;if(l=l.map(F=>{let U=rm(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=Ts(F.subSections,l,i,"template",s,r))}else{let F=(R=(L=(C=n.options)==null?void 0:C.settings)==null?void 0:L.content)==null?void 0:R.header;F&&"facets"in F&&(l=Ts(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(j0,"addCustomSectionDefinition");function $0(e,t,n){var l,u,p;let i=Xu(t),r=new Map;i=i.map(d=>{let m=rm(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[`@${Uo.UIAnnotationTerms.SelectionFields}`];typeof o=="object"&&"filterFields"in o&&(i=Ts(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($0,"addCustomFilterFieldDefinition");var w=te(se()),Dc=require("@sap-ux/vocabularies-types/vocabularies/UI");var VX=["header","filterBar","chart","table"];function Xb(e,t,n,i){if(i||(i=t.definitions[w.DefinitionName.SelectionFields],i.additionalProperties=!1,i.properties={}),e&&(i[w.SchemaTag.annotationPath]=to(e.fullyQualifiedName,Dc.UIAnnotationTerms.SelectionFields)),n){let r=0;n==null||n.forEach(o=>{var p,d;let s=o.value,l="SelectionField::"+ft(o.value);o.type==="PropertyPath"&&(s=Ig(o,e)),i.properties[l]={$ref:B+l},i.properties[l][w.SchemaTag.propertyIndex]=r;let u=no(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++})}return i}a(Xb,"addSelectionFields");function kX(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(kX,"getVisualFilters");function jX(e,t){let n=[];return e==null||e.forEach(i=>n.push(i.value)),t&&t.entityProperties.forEach(i=>n.includes(i.name)?void 0:n.push(i.name)),n}a(jX,"getPropertiesIndex");function $X(e,t,n,i){var s,l,u,p,d,m;let r=jX(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:Bn(w.DefinitionName.VisualFilter,T)},C=r.indexOf(T);C!==-1&&(E[w.SchemaTag.propertyIndex]=C);let L=Dt(w.DefinitionName.VisualFilter,T,t);(s=b.visualFilter)!=null&&s.valueList&&(L[w.SchemaTag.annotationPath]=`${T}/@${b.visualFilter.valueList}`);let R=(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();L.description=R||T,L[w.SchemaTag.keys]=[{name:w.SchemaKeyName.value,value:T}]}}}a($X,"addVisualFilters");function UX(e,t,n){t.additionalProperties={$ref:`#/definitions/${w.DefinitionName.CustomFilterField}`},$0(e,t,n);let i=e.definitions[w.DefinitionName.CustomFilterFieldPosition];typeof i=="object"&&qa(e,t,{schema:i,property:"anchor"},{resolveDefinition:!0,keyProperties:[w.SchemaKeyName.value,w.SchemaKeyName.key],descriptionAsFallback:!0})}a(UX,"applyCustomFilterFields");function BX(e,t,n,i){var l,u;let r=kX(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={},$X(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=Xb(e,t,o,s),UX(t,s,n)}a(BX,"addFilterBar");function W0(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(W0,"defineActions");function U0(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(U0,"findTheRightVisualization");function WX(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(WX,"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}=U0(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}=U0((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}=WX(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 GX(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(GX,"addALPChartView");function HX(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);GX(e,u,p,l);let d="Actions<ALPChart>";e.definitions[w.DefinitionName.ViewChartToolBar].properties.actions.$ref=B+d,W0(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,L;if(m&&m.indexOf(w.FacetBase.LineItem)>-1?(C=m.split(".")[1],L=t[0].secondary[0].annotationPath.split(w.UIVOCABULARYDOT)[1]):r&&(C=L=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 It=l[L].fullyQualifiedName.split("@");E[w.SchemaTag.annotationPath]=`/${It[0]}/@${It[1]}`,E[w.SchemaTag.key]="secondary",E[w.SchemaTag.keys]=[{name:w.SchemaKeyName.key,value:"secondary"}]}Nc(e,o,i.logger);let R=`${w.DefinitionName.Actions}<${ft(w.DefinitionName.LineItems)}>`;Es(e,o,i.logger,void 0,R),Bo(e,R,w.DefinitionName.CustomActionPosition)}a(HX,"addALPViews");function KX(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 W0(e.appSchema,r,t,e.targetAnnotation,e.targetEntityType),e.appSchema.definitions[i].properties[w.PropertyName.actions].$ref=`${B}${r}`,n}a(KX,"addViewChartDefinitions");function XX(e,t,n,i,r,o){let s=KX(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(XX,"addViewChart");function JX(e,t,n,i,r){var T;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:(T=e.targetEntityType)==null?void 0:T.annotations.UI[p],entityType:e.targetEntityType,oDataServiceAVT:r.serviceAVT,lineItemId:s,entitySet:l.entitySet},m=w.DefinitionName.ViewTableColumn;if(l.entitySet!==void 0){let{definitions:b}=e.appSchema;m=w.DefinitionName.ViewTableColumnBasic;let E=b[w.DefinitionName.ViewTableColumn];b[m]=B0(E);let C=w.DefinitionName.ViewTableColumnBasicAction,L=`${w.DefinitionName.ViewTableColumnAction}`;b[C]=B0(b[L])}Lc(d,m,l.entitySet?void 0:w.DefinitionName.ViewCustomColumn,l.entitySet?void 0:w.DefinitionName.ViewCustomAction)}a(JX,"addViewLineItems");function QX(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(QX,"addTagsToView");function YX(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(YX,"getTargetEntityType");function zX(e,t,n,i){let r=`${w.DefinitionName.LineItemsOfView}::${e.viewKey}`,s=`${e.navPropName?`${e.navPropName}/`:""}@${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),Rc(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}>`;Es(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}`,Bo(e.appSchema,u,d),e.appSchema.definitions.CustomActionPosition&&delete e.appSchema.definitions.CustomActionPosition}a(zX,"addViewCustomExtensions");function qX(e,t){let{properties:n}=e;if(n)for(let i in n)n[i].artifactType===w.ArtifactType.Manifest&&t.indexOf(i)===-1&&delete n[i]}a(qX,"handleViewProperties");function B0(e){return typeof e=="object"?{...e,properties:{}}:{properties:{}}}a(B0,"createEmptyProperties");function ZX(e,t,n,i,r,o,s){if((e==null?void 0:e.indexOf(w.Visualization.LineItem))>-1)JX(n,t,e,n.targetAnnotation,i),s.entitySet===void 0?zX(n,i,e,r):qX(n.appSchema.definitions[`${w.DefinitionName.LRTableView}<${s.key}>`],["visible"]);else if((e==null?void 0:e.indexOf("Chart"))>-1)XX(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(ZX,"addLRViewParts");function e3(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=YX(i,d,r,n),b=T==null?void 0:T.annotations.UI,{visualization:E,targetAnnotation:C,namespace:L,title:R}=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===L))==null?void 0:p.name);let F=ft(d[w.SchemaTag.key]),U={viewKey:F,appSchema:e,targetAnnotation:C,navPropName:m,targetEntityType:T,title:R,entitySet:d.entitySet};ZX(E,u,U,r,o,b,d),QX(u,F,L,d)}}a(e3,"addLRViews");function t3(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)}`,L=e.definitions[`${s}SPV`]=JSON.parse(JSON.stringify(e.definitions[s]));delete L[w.SchemaTag.isViewNode],za(L.properties.toolBar,w.DefinitionName.ToolBar,C),L[w.SchemaTag.annotationPath]=p,L.properties.columns={},za(L.properties.columns,C),delete l.properties,za(l,`${s}SPV`),l[w.SchemaTag.annotationPath]=`/${d}/@${i}`;let R=t==null?void 0:t.annotations.UI[E];R||oe(n.logger,{severity:w.LogSeverity.Error,message:ee.t("NOTARGET",{target:E})});let F={appSchema:e,lineItemAnnotation:R,entityType:t,oDataServiceAVT:n.serviceAVT,lineItemId:C};Lc(F,w.DefinitionName.TableColumn,w.DefinitionName.CustomColumn,w.DefinitionName.CustomTableAction);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),Rc(e,C,r,void 0,J);let re=`${w.DefinitionName.Actions}<${C}>`,Ce=em(e,C,w.DefinitionName.CustomTableAction);Es(e,r,n.logger,un(Ce),re,J),Bo(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,w.DefinitionName.TableColumn,w.DefinitionName.CustomColumn,w.DefinitionName.CustomTableAction),Nc(e,r,n.logger),Rc(e,w.DefinitionName.LineItems,r),E&&(l[w.SchemaTag.annotationPath]=to(t==null?void 0:t.fullyQualifiedName,E.term,E.qualifier));let L=`${w.DefinitionName.Actions}<${ft(w.DefinitionName.LineItems)}>`;Es(e,r,n.logger,void 0,L),Bo(e,L,w.DefinitionName.CustomActionPosition)}}a(t3,"adaptTableDefinition");function n3(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(n3,"getDefaultAnnotationPath");function i3(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=n3(t,o,n.templateType),u=k0(e,n);BX(o,e,t,i),n.templateType===w.TemplateType.ListReportObjectPageV4?(r?e3(e,r,o,s,n,t,u):((b=(T=t.options)==null?void 0:T.settings)!=null&&b.views||(e.definitions.MultiTableModeV4.properties={}),t3(e,o,n,l,t,i,u)),e.properties[w.PropertyName.chart][w.SchemaTag.hidden]=!0):n.templateType===w.TemplateType.AnalyticalListPageV4&&(HX(e,r,o,n,l,t,u),Rc(e,w.DefinitionName.LineItems,t))}a(i3,"addTableAndViews");function r3(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",dh(e,t,n,o,i);let l=w.DefinitionName.CustomHeaderActionPosition;Dt(l,l,e,!1),s.properties.position.$ref=`${B}${l}`,Bo(e,i,l)}a(r3,"addHeaderActions");function Ju(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,Ya(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=ph(l,n,e.entitySet,i);if(!u)return r;r3(r,u,e.logger),i3(r,u,e,s)}return delete r.definitions.GenericColumns,delete r.definitions.Action,Fo(r,VX),r}a(Ju,"generateListReportSchemaV4");var vr=require("@sap-ux/vocabularies-types/vocabularies/UI"),_=te(se());var w1=te(tc()),M1=te(D1()),V1=te(LA());var k1=te(se()),j1=te(se());function LJ(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(LJ,"findElementByXMLPath");function $1(e,t){return e[t]?!1:(e[t]={},!0)}a($1,"ensureObjectExists");function RJ(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(RJ,"getPropertiesFromRef");function FJ(e,t,n){let{defaultAggregation:i}=n,{schema:r,element:o,contextPath:s,config:l={},fullSchema:u}=e,{properties:p={}}=r,d=$1(l,i),m=l[i];return Uc({fullSchema:u,schema:p[i],element:o,contextPath:s,config:m,parent:e},t)||d}a(FJ,"traverseDefaultAggregation");function _J(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(_J,"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=RJ(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&&_J(u,p)&&(l=FJ(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,L=C.slice(r.length),R=LJ(i,L);l=$1(o,T)||l;let F=o[T];l=Uc({fullSchema:e.fullSchema,schema:b,element:R,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,V1.parse)(e.fileContent),s=(0,M1.buildAst)(r,o);if(!s.rootElement)throw new Error("Invalid XML");i=s}else i=(0,w1.xml2js)(e.fileContent)}catch(r){oe(n,{severity:j1.LogSeverity.Error,message:ee.t("XMLPARSEFAILURE",{error:YR(r)}),location:{path:e.dataSourceUri}})}return i}a(pf,"parseXML");function df(e){return`${k1.DefinitionName.CustomExtensionFragment}<${e}>`}a(df,"getCustomExtensionFragmentDefinitionKey");function oy(e){var t;return(t=e.elements)==null?void 0:t.find(n=>n.type!=="comment")}a(oy,"getRootElement");var WA=te(se()),GA=te(se());var bp=te(se());function Cs(e,t){var n;return(n=e.attributes.find(i=>i.key===t))==null?void 0:n.value}a(Cs,"getAttribute");function U1(e,t){var n;return(n=e.subElements)==null?void 0:n.find(i=>i.name===t)}a(U1,"getNodeByName");function DJ(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(DJ,"resolveMetaPath");function MA(e){var d;let{node:t,serviceAVT:n,connectionContext:i}=e,r=Cs(t,"contextPath")||i.contextPath,o=Cs(t,"metaPath"),s=i.entitySet;if(!r&&!s)return;let l=r||`/${s}`;if(o){let m=DJ(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(MA,"getEntityTypeResolution");function B1(e,t){if(t!=null&&t.metaPath){let{entityType:n,metaPath:i}=t;e.annotationPath=`/${n.fullyQualifiedName}/${i}`}}a(B1,"applyAnnotationPath");function wJ(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=DT(r,o.fullyQualifiedName))}}if(o)return{lineItem:o,annotationPath:s}}a(wJ,"getTableLineItemAnnotationData");var W1={"sap.fe.macros.Chart":e=>{let t=MA(e);B1(e.schema,t)},"sap.fe.macros.FilterBar":e=>{var s,l,u,p;let{schema:t,serviceAVT:n,rootSchema:i}=e,r=MA(e),o=(s=t.properties)==null?void 0:s.filterFields;if(typeof o=="object"&&r){o.properties||(o.properties={});let d=ai(bp.UIVOCABULARY,n),m=d&&((p=(u=(l=r.entityType)==null?void 0:l.annotations)==null?void 0:u[d])==null?void 0:p.SelectionFields);Xb(r.entityType,i,m,o)}},"sap.fe.macros.Table":e=>{let{schema:t,serviceAVT:n,rootSchema:i}=e,r=MA(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(bp.UIVOCABULARY,n);if(B1(t,r),t.annotationPath){let u=wJ(r,n,l);u!=null&&u.annotationPath&&(t.annotationPath=u.annotationPath);let p={appSchema:i,lineItemAnnotation:u.lineItem,entityType:r.entityType,oDataServiceAVT:n,lineItemId:bp.DefinitionName.LineItems};Kb(p,s,t.annotationPath,o)}}}};var G1=te(se());var MJ=new Map([["filterFields","SelectionField::"]]),VJ=new Map([["columns","DataField::"],["actions","DataFieldForAction::"]]),Ap={anchor:"anchor",placement:"placement",key:"key"};function kJ(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 Ap.anchor in r&&Ap.placement in r}return!1}a(kJ,"isCustomExtensionSchema");function H1(e){let t=MJ.get(e),n={prefix:"",replace:!1};return t?(n.prefix=t,n.replace=!0):(t=VJ.get(e),t&&(n.prefix=t)),n}a(H1,"getAnnotationPrefix");function jJ(e,t,n,i){let r=t.properties[n],o=H1(i),s=r.metadata.path,l=e.subElements[s[s.length-1].index],u=Cs(l,Ap.key)||n,p=Cs(l,Ap.anchor),d=Cs(l,Ap.placement)||G1.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(jJ,"getExtensionData");function $J(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}=jJ(e,t,s,n);i[p]=u,o[p]=s}else r.push([s,l])}Ts(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($J,"updatePropertyIndices");function UJ(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=Cs(e.subElements[s],"key")||r}return r}a(UJ,"getCorrectedAnchorEnumKey");function BJ(e,t,n,i){var o,s;let r=H1(i);for(let l in t.properties){let u="anchor",p=t.properties[l];if(!p.metadata)continue;qa(n,t,{property:u,schema:p},{excludeKey:l,resolveDefinition:!0});let 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=UJ(e,m.const,r,t.properties[m.const]))}}a(BJ,"applyEnumsForAnchors");function K1(e,t,n,i){kJ(t,n)&&(i=i||e.name,$J(e,t,i),BJ(e,t,n,i))}a(K1,"handleExtensions");var ow=te(iw());var rw="sap.fe.macros",qJ=["id","key","title","text","label","header"];function aw(e){let{ns:t,name:n}=e;return t?`${t}:${n}`:n}a(aw,"getElementName");function ZJ(e,t){let{ns:n=""}=e;return t?t.includes(n):!n}a(ZJ,"isElementWithNamespace");function eQ(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(eQ,"getDependencies");function tQ(e,t){let n="",i=e.attributes||[];for(let r of qJ){let o=i.find(s=>s.key===r);if(o){n=`${r==="id"?"#":""}${o.value}`;break}}return n?`${t} ${n}`:t}a(tQ,"getViewNodeDescription");function nQ(e,t){let n=e,i=2;for(;n in t;)n=`${e}${i}`,i++;return n}a(nQ,"findAvailableName");function sw(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(sw,"prepareSchemaProperties");function iQ(e,t,n){t.properties||sw(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(iQ,"handleAttributes");function rQ(e){e.type===GA.MacrosPropertyType.Control&&(e.internalId=(0,ow.v4)())}a(rQ,"applyIdForMacros");function oQ(e,t,n){var i,r;try{(r=(i=W1)[e])==null||r.call(i,t)}catch{oe(n,{severity:WA.LogSeverity.Error,message:ee.t("MACROS_ANNOTATION_ERROR",{control:e})})}}a(oQ,"callAnnotationHandler");function aQ(e,t,n){e.type||(e.type=t.metadata.type),t.metadata.defaultAggregation&&(e.defaultAggregation=t.metadata.defaultAggregation),e.type===GA.MacrosPropertyType.Control&&(e.controlName=n)}a(aQ,"updateMetadataByReference");function sQ(e,t,n,i){var T,b,E,C,L;let r=n.schema;t.properties||sw(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?nQ(i,t.properties):i,d=[];o!=null&&o.$ref?d.push(un(o.$ref)):d=[`${rw}.${i}`,`${rw}.table.${i}`];let m=!1;for(let R of d){let F=(L=r.definitions)==null?void 0:L[R];if(typeof F!="object")continue;aQ(u,F,R);let U=tQ(e,i),J={$ref:QR(R),description:U,propertyIndex:n.index,metadata:u};iQ(e,J,r),t.properties[p]=J,m=!0,oQ(R,{...n,node:e,schema:J,rootSchema:n.schema},n.logger);break}if(rQ(u),!m)if(!(o!=null&&o.properties)||!(p in t.properties)){let R={properties:{},isViewNode:!0,type:"object",description:i,propertyIndex:n.index,metadata:u};t.properties[p]=R}else o.metadata=u;return p}a(sQ,"addControlToSchema");function cw(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)}cw(r,t)}}a(cw,"populateUsedDefinitionKeys");function cQ(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(cQ,"isElementAddableToSchema");function lQ(e,t){var i;let n=(i=t.metadata)==null?void 0:i.defaultAggregation;if(n&&!U1(e,n)){let r=t.properties[n];if(typeof r=="object")return{schema:r,name:n}}}a(lQ,"getDefaultAggregation");function fQ(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,lw(s,t,{...n,isUnique:l,index:o,path:[...n.path,{name:aw(s),index:o}]},i)}}a(fQ,"handleSubElementsOfXMLNode");function lw(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(ZJ(e,o)||typeof s=="object"&&((m=s.properties)!=null&&m[e.name])){let b=(T=t.metadata)==null?void 0:T.defaultAggregation;b&&cQ(e,t.properties[b])&&(t=t.properties[b]);let E=e.name.split(":"),C=sQ(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),cw(t,i));let p=lQ(e,t);p&&r.push({node:e,schema:p.schema,name:p.name}),fQ(l,t,n,i),r.push({node:e,schema:t});for(let b of r)K1(b.node,b.schema,n.schema,b.name)}a(lw,"handleXMLNode");function uQ(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(uQ,"getMacrosPrefixes");function Bc(e,t,n,i){let r=pf(t.file,!0,i),o=[];if(!r)return;Yt();let s={type:"object",properties:{},definitions:{},additionalProperties:!1,$schema:"http://json-schema.org/draft-07/schema#"};if(!e){oe(i,{severity:WA.LogSeverity.Error,message:ee.t("NOGENERICSCHEMA",{pageType:"FPM Custom Page"})});return}let l=r.rootElement,u=eQ(l),p=uQ(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,lw(T,s,{macrosPrefixes:p,schema:s,dependencies:u,index:m,isUnique:b,path:[{name:aw(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 fw(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&&fw(i.subSections,t)}}a(fw,"populateTemplates");function uw(e,t,n,i){var s,l,u;let r=Fc(n.manifest,i),o=[];fw(((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(uw,"resolveFragments");var pQ=["header","layout","sections","footer"],dQ=["UI.CriticalityType/Positive","UI.CriticalityType/VeryPositive","UI.CriticalityType/Negative","UI.CriticalityType/VeryNegative"],HA="Custom Action";function KA(e,t,n,i,r,o,s){let{actionName:l,namespace:u}=Yg(t.item,e),p=ya(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]=no(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(KA,"addSingleHeaderActionV4");function pw(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(pw,"addStandardHeaderAction");function dw(e,t,n,i,r,o){let s=ya(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(dw,"addSingleFooterAction");function gQ(e){let t=[],n=[];return e.forEach((i,r)=>{(!i.Determining&&i.$Type===vr.UIAnnotationTypes.DataFieldForAction||i.$Type===vr.UIAnnotationTypes.DataFieldForIntentBasedNavigation)&&(dQ.includes(i.Criticality)?t.push({index:r,item:i}):n.push({index:r,item:i}))}),{criticalActions:t,unCriticalActions:n}}a(gQ,"groupByCriticality");function mQ(e,t,n,i,r){for(let o=0;o<e.length;o++)KA(t,e[o],_.ActionType.Criticality,n,i,r,o)}a(mQ,"addCriticalActions");function hQ(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&&(KA(t,e[s],_.ActionType.Copy,n,i,r,o),o++,e.splice(s,1))}a(hQ,"addCopyAction");function yQ(e,t,n,i,r,o){for(let s of e)KA(t,s,_.ActionType.Annotation,n,i,r,o),o++}a(yQ,"addUncriticalActions");function gw(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(gw,"setAnnotationPathFromEntitySetOrEntityType");function vQ(e,t,n,i,r,o){let{criticalActions:s=[],unCriticalActions:l=[]}=n?gQ(n):{};if(mQ(s,r,t,e,i),o){let p=AF(o),d=SF(o);if(Hg(o)&&d){let m=pw("Edit",t,i,s.length);gw(m,o,e,"UpdateHidden")}if(p){let m=pw("Delete",t,i,s.length+1);gw(m,o,e,"DeleteHidden")}}let u=s.length+2;hQ(l,r,t,e,i,u),yQ(l,r,t,e,i,u)}a(vQ,"addHeaderActionCallBackV4");function TQ(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];dw(l,_.ActionType.Criticality,e,t,n,s)}for(let s=0;s<o.length;s++){let l=o[s];dw(l,_.ActionType.Annotation,e,t,n,r.length+s)}}a(TQ,"addFooterActionCallBackV4");function EQ(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}`,Rc(e,n,t,d,i.replace(/::/g,"/"))}a(EQ,"addCustomColumnsOP");function bQ(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=HA;let u=`${_.DefinitionName.CustomTableActionOP}<${n}>`,p=`${_.DefinitionName.Actions}<${ft(n)}>`;Es(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}`,Bo(e,p,m)}a(bQ,"addTableCustomActionsOP");function hw(e,t,n,i){let r=e.definitions[n];r[_.SchemaTag.isViewNode]=!0,r.description=HA;let o=n===_.DefinitionName.CustomHeaderActionOP?_.DefinitionName.ObjectPageHeaderActions:_.DefinitionName.FooterActions;dh(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}`,Bo(e,o,s),e.definitions[o]&&(e.definitions[o].additionalProperties={$ref:`${B}${n}`})}a(hw,"addHeaderFooterCustomActionsOP");function AQ(e,t,n,i,r){let o=`${_.DefinitionName.CustomFormActionOP}<${n}>`,s=e.definitions[o];s[_.SchemaTag.isViewNode]=!0,s.description=HA;let l=`${_.DefinitionName.CustomFormActionOP}<${n}>`,u=`${_.DefinitionName.SectionActions}<${ft(n)}>`;Es(e,t,r,l,u,i),Dt(_.DefinitionName.CustomActionPositionOP,n,e,!0);let p=`${_.DefinitionName.CustomActionPositionOP}<${n}>`;s.properties.position.$ref=`${B}${p}`,Bo(e,u,p),e.definitions[u]&&(e.definitions[u].additionalProperties={$ref:`${B}${o}`})}a(AQ,"addFormCustomActionsOP");function SQ(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=Bn(_.DefinitionName.ObjectPageToolBar,t),d.properties.quickVariantSelection.$ref=Bn(_.DefinitionName.QuickVariantSelectionV4OP,t);let m=Dt(_.DefinitionName.QuickVariantSelectionV4OP,t,n);m.properties.paths.items.$ref=Bn(_.DefinitionName.AnnotationPathAsObject,t),Dt(_.DefinitionName.AnnotationPathAsObject,t,n),Ya(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),EQ(n,o,l,t,s),bQ(n,o,l,t,s),d}a(SQ,"handleLineItem");function yw(e,t,n,i,r,o,s){s&&(s.properties[t]={$ref:Bn(_.DefinitionName.ObjectPageSectionTableV4,t)});let l=Dt(_.DefinitionName.ObjectPageSectionTableV4,t,n);ga(e,l,Pl(t)),l[_.SchemaTag.annotationPath]=e.annotationPath,l[_.SchemaTag.target]=e.namespace,l.properties.table.$ref=Bn(_.DefinitionName.ObjectPageTable,t);let u=SQ(e,t,n,i,r.serviceAVT,o,r.logger);return{sectionTable:l,table:u}}a(yw,"handleSectionTable");function xQ(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:Bn(l,n)};let u=Dt(l,n,r);e.ID||(u.properties={}),ga(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),AQ(r,t,p,d,s)}}a(xQ,"handleFormIdentification");function mw(e,t,n,i,r){n.properties[t]={$ref:`${B}${r}`};let o=Dt(_.DefinitionName.CommonHeaderFacetSettings,r,i,!1);ru(e,o,t),o[_.SchemaTag.annotationPath]=e.annotationPath,o[_.SchemaTag.target]=e.namespace,o[_.SchemaTag.dataType]=nm(e==null?void 0:e.target),o[_.SchemaTag.isViewNode]=!0}a(mw,"handleHeaderFacet");function PQ(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:Bn(_.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]=im(s),m[_.SchemaTag.dataType]=no(s),m.properties={},o++})}return r}a(PQ,"handleChartActions");function OQ(e,t,n,i){let r=Dt(_.DefinitionName.ObjectPageChart,t,n);e.Title&&(r.description=e.Title),r[_.SchemaTag.annotationPath]=im(e),r[_.SchemaTag.dataType]=nm(e.target||e),r[_.SchemaTag.isViewNode]=!0,r.properties.toolBar.$ref=Bn(_.DefinitionName.ObjectPageToolBar,t);let o=Dt(_.DefinitionName.ObjectPageToolBar,t,n);o.properties.actions.$ref=Bn(_.DefinitionName.ObjectPageToolBarActions,t);let s=PQ(e,t,n,i);return{chart:r,chartActions:s}}a(OQ,"handleChart");function vw(e,t,n,i,r=e.entityType){i&&(i.properties[t]={$ref:Bn(_.DefinitionName.ObjectPageSectionChart,t)});let o=Dt(_.DefinitionName.ObjectPageSectionChart,t,n);ru(e,o,t),o[_.SchemaTag.annotationPath]=im(e),o.properties.chart.$ref=Bn(_.DefinitionName.ObjectPageChart,t);let{chart:s,chartActions:l}=OQ(e.target||e,t,n,r);return{sectionChart:o,chart:s,chartActions:l}}a(vw,"handleSectionChart");function IQ(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="@"+KT(`${s.targetString.split("@")[1].split("/")[0]}`,r.serviceAVT);let E=r.entityType.navigationProperties.find(L=>L.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:Bn(_.DefinitionName.ObjectPageSectionChart,C)};let{sectionChart:L,chart:R}=vw(s,C,n,void 0,e.entityType);L[_.SchemaTag.annotationPath]=e.annotationPath,ru(e,L,t),R[_.SchemaTag.annotationPath]=`/${E}/${l}`,R[_.SchemaTag.target]=E}else if(b.startsWith(_.Visualization.LineItem)){i.properties[`${t}<${l}>`]={$ref:Bn(_.DefinitionName.ObjectPageSectionTableV4,C)};let{sectionTable:L,table:R}=yw(e,C,n,{target:u,entityType:e.entityType},r,o);L[_.SchemaTag.annotationPath]=e.annotationPath,ru(e,L,t),delete L[_.SchemaTag.isViewNode],R[_.SchemaTag.annotationPath]=`/${E}/${l}`,R[_.SchemaTag.target]=E}}}a(IQ,"handleSectionPresentationVariant");function CQ(e){let t=e.facets||{};for(let n in t)if(t[n].base===_.FacetBase.CollectionFacet)return!0;return!1}a(CQ,"containsCollectionFacet");function NQ(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"}}};ic(n,_.Features.BuildingBlocks)&&(l.properties.controls={type:"object"}),e.definitions[i]=l}return i}a(NQ,"createCustomSubSectionReference");function Tw(e,t,n,i,r,o){var d,m,T,b,E;let s=!1,l;r&&o?(s=!CQ(r),l=NQ(t,o,n.featureToggles)):l=_.DefinitionName.ObjectPageCustomHeaderSectionFragment,e.additionalProperties={$ref:`${B}${l}`},j0(t,e,i,l,s,o,n.logger);let u=t.definitions[l];typeof u=="object"&&qa(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],L=C&&"subSections"in C?C.subSections:{};for(let R=p.oneOf.length-1;R>=0;R--){let F=p.oneOf[R];L[F.const]||(F.hidden=!0)}}}a(Tw,"applyCustomSections");function LQ(e,t,n,i,r,o,s,l){let u=l===0,p=i.properties[t]=ma(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)XA(o,e.facets,T,d,n,r,s,m);u&&Tw(d,n,o,s,e,t)}a(LQ,"handleCollection");function XA(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:{IQ(u,n,r,i,e,s);break}case _.FacetBase.CollectionFacet:{LQ(u,n,r,i,o,e,s,l);break}case _.FacetBase.LineItem:{if(o===_.SectionType.Section){let d=t[n];yw(u,n,r,d,e,s,i)}break}case _.FacetBase.Form:case _.FacetBase.Identification:{xQ(u,s,n,i,r,o,e.logger);break}case _.FacetBase.DataPoint:{mw(u,n,i,r,p);break}case _.FacetBase.Chart:{o===_.SectionType.HeaderSection?mw(u,n,i,r,p):o===_.SectionType.Section&&vw(u,n,r,i);break}case _.FacetBase.Address:case _.FacetBase.Contact:{ou(u,n,i,r,o);break}default:i.properties[n]=ma(r,u,n)}}a(XA,"addSection");function RQ(e,t,n){let i=Cg(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)XA(e,i,o,r,t,_.SectionType.Section,n);t.definitions[_.DefinitionName.CustomSections]&&(r.properties={...r.properties,...t.definitions[_.DefinitionName.CustomSections].properties})}a(RQ,"addSections");function FQ(e,t,n,i){let r=JR(n,e.serviceAVT,_.FioriElementsVersion.v4,e.logger),o=t.definitions[_.DefinitionName.HeaderSections];if(o.properties={},o.additionalProperties=!1,!!r){for(let s in r)XA(e,r,s,o,t,_.SectionType.HeaderSection,i);Tw(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(FQ,"addHeaderSections");function _Q(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=Ng(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})}tm(t,[_.DefinitionName.ObjectPageCustomSectionFragment],d,["ID","label","key"])}})}a(_Q,"addRelatedFacetKeysType");function DQ(e,t,n){let i=e.entityType;Zg(t,i),qg(t,i,e.entitySet,e.serviceAVT,vQ),hw(t,n,_.DefinitionName.CustomHeaderActionOP,e.logger),i&&(t.definitions[_.DefinitionName.HeaderSections][_.SchemaTag.annotationPath]=`/${i.fullyQualifiedName}/@${vr.UIAnnotationTerms.HeaderFacets}`),FQ(e,t,i,n)}a(DQ,"addHeader");function xp(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=ph(s,_.v4.FE_TEMPLATE_V4_OBJECT_PAGE,e.entitySet,n);if(!l)return r;if(DQ(e,r,l),o[_.SchemaTag.isViewNode]=!0,e.entityType&&(o[_.SchemaTag.annotationPath]=`/${e.entityType.fullyQualifiedName}/@${vr.UIAnnotationTerms.Facets}`),RQ(e,r,l),_Q(e,r,s,n),ic(e.featureToggles,_.Features.BuildingBlocks)&&i){r.definitions[_.DefinitionName.ObjectPageCustomSectionFragment].properties.controls={type:"object"};try{uw(r,i,e,l.id)}catch(u){oe(e.logger,{severity:_.LogSeverity.Error,message:u})}}zg(r,e,_.FioriElementsVersion.v4,TQ),hw(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],Fo(r,pQ),r}a(xp,"generateObjectPageSchemaV4");function JA(e,t){return JSON.parse(JSON.stringify(t))}a(JA,"generateFreestyleSchemaV4");var Gr=te(se());function QA(e,t,n,i,r,o,s,l,u){let p=No(n,r),{entitySet:d,entityType:m}=Wc(p,s,t,r),T={templateType:Gr.TemplateType.ListReportObjectPageV4,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:i,fragments:o,serviceAVT:p,logger:r,entitySet:d,entityType:m,featureToggles:u};return xp(T,e,s,l)}a(QA,"generateObjectPageInterfaceV4");function ay(e,t,n,i,r,o,s){Yt();let l=No(i,r),{entitySet:u,entityType:p}=Wc(l,s,n,r),d={templateType:e,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:o,serviceAVT:l,logger:r,entitySet:u,entityType:p},m=e===Gr.TemplateType.ListReportObjectPageV4?Gr.v4.FE_TEMPLATE_V4_LIST_REPORT:Gr.v4.FE_TEMPLATE_V4_ALP;return Ju(d,t,m,s)}a(ay,"generateListReportInterfaceV4");function YA(e,t,n,i,r,o){let s=No(n,o),l={templateType:e,fioriElementsVersion:Gr.FioriElementsVersion.v4,manifest:i,serviceAVT:s,logger:o};return JA(l,t)}a(YA,"generateFreestyleInterfaceV4");function zA(e,t,n,i,r,o,s){let l={};if(ic(o,Gr.Features.BuildingBlocks)){let u=No(r,s),p=bs(i||[],t,n,s);l=p!=null&&p.file.fileContent?Bc(e,p,u,s):{}}return l}a(zA,"generateFPMCustomPageInterfaceV4");var Hc=require("@sap-ux/vocabularies-types/vocabularies/UI"),xw=te(se());var Gc=te(se());var Aw=new Map([[Gc.PageTypeV2.ListReport,Gc.v4.SAPUI5_VIEW_EXTENSION_LIST_REPORT],[Gc.PageTypeV2.ObjectPage,Gc.v4.SAPUI5_VIEW_EXTENSION_OBJECT_PAGE]]),Ew=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"),bw=a(e=>{var t;for(let[n,i]of Aw)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"),wQ=a((e,t)=>{let n="";for(let[r,o]of Aw)e.startsWith(r)&&(n=o);let i=e.split("#");if(i.length>1){let r=i[1];n=`${n}#${t}::${r}`}return n},"getExtensionKeyForExport"),Sw={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=bw(n);i&&(t[i]={},Ew(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=wQ(s,i);e[l]||(e[l]={}),Ew(r[s],e[l])}for(let s in e){let l=bw(s);l&&!r[l]&&delete e[s]}}}};var xt=a(e=>`sap.ui5/routing/targets/${e[0]}/options/settings`,"getSettingsPathForPage"),ly=a(e=>xt(e)+"/views/paths","getSettingsPathForLRViewsPaths"),fy=a(e=>xt(e)+"/content/header","getSettingsPathForHeaderOP"),MQ=a(e=>xt(e)+"/content/footer","getSettingsPathForFooterOP"),Hr=a(e=>xt(e)+"/controlConfiguration","getControlConfigurationPath"),uy=a((e,t,n)=>Hr(e)+`/@${Hc.UIAnnotationTerms.HeaderFacets}/facets/${n}`,"getHeaderFacetSettingPath"),py=a(e=>Hr(e)+`/@${Hc.UIAnnotationTerms.SelectionFields}`,"getSelectionFieldsPath"),Ns=a((e,t,n,i)=>Hr(e)+`/@${Hc.UIAnnotationTerms.SelectionFields}/filterFields/${i}`,"getCustomFilterFieldFieldPath"),qA=a((e,t,n,i)=>py(e)+`/filterFields/${i}`,"getFilterFieldPath"),Kr=a((e,t,n,i,r)=>{let o=r==null?void 0:r.replace(/\//gi,"??");return o?Hr(e)+`/${o}/tableSettings`:void 0},"getTableSettingsPathForView"),Yi=a((e,t,n,i,r)=>r?Kr(e,t,n,i,r):Hr(e)+`/@${Hc.UIAnnotationTerms.LineItem}/tableSettings`,"getTableSettingsPathForLR"),dy=a((e,t,n,i,r)=>Yi(e,t,n,i,r)+xw.QUICKVARPATH,"getQuickVariantPath"),zi=a((e,t,n,i,r)=>{let o=r.replace(/\//gi,"??");return Hr(e)+`/${o}/columns/${i}`},"getColumnsPathForView"),Di=a((e,t,n,i,r)=>r?zi(e,t,n,i,r):Hr(e)+`/@${Hc.UIAnnotationTerms.LineItem}/columns/${i}`,"getColumnsPathForLR"),uo=a((e,t,n,i,r)=>{let o=r.replace(/\//gi,"::");return Hr(e)+`/${o}/actions/${i}`},"getActionsPathForView"),Tr=a((e,t,n,i,r)=>r?uo(e,t,n,i,r):Hr(e)+`/@${Hc.UIAnnotationTerms.LineItem}/actions/${i}`,"getActionsPathForLR"),qi=a((e,t,n,i)=>Hr(e)+`/${n}/columns/${i}`,"getColumnsPathForOP"),Vn=a((e,t,n,i)=>Hr(e)+`/${n}/actions/${i.replace("/","??")}`,"getActionsPathForOP"),ui=a((e,t,n,i)=>fy(e)+`/actions/${i.replace("/","??")}`,"getHeaderActionsPath"),po=a((e,t,n,i)=>MQ(e)+`/actions/${i.replace("/","??")}`,"getFooterActionsPath"),kn=a((e,t,n)=>Hr(e)+`/${n}/tableSettings`,"getTableSettingsPathForOP"),Ra=a((e,t,n,i)=>{let r=xt(e)+`/content/body/sections/${n}`;return i&&(r+="/"+i),r},"getCustomSectionPath"),Er=a((e,t,n,i)=>{let r=xt(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=xt(e)+`/content/body/sections/${l}`;return i&&(u+="/"+i),u},"getCustomSubSectionPath"),cy=class cy{};a(cy,"ApplicationV4"),y([Ft("settings")],cy.prototype,"settings",2);var sy=cy,Xo=class Xo{};a(Xo,"AppSettings"),y([v({manifest:{path:()=>"sap.app"}})],Xo.prototype,"title",2),y([v({manifest:{path:()=>"sap.app"}})],Xo.prototype,"description",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}}),O({since:"1.78.0"})],Xo.prototype,"flexibleColumnLayout",2),y([v({manifest:{path:()=>"sap.ui5"}}),O({since:"1.56.0"})],Xo.prototype,"flexEnabled",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}})],Xo.prototype,"viewType",2),y([v({manifest:{path:()=>"sap.ui5/routing/config"}})],Xo.prototype,"viewPath",2),y([v(Sw)],Xo.prototype,"controllerExtensions",2);var gf=Xo;var ge=te(se());function vt(e,t,n,i,r,o,s){if(!n)return;let l={},u=e==null?void 0:e.getDeprecated,p=o&&o.replace("/","::");for(let d in n.properties){let m=qn(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),Mg(u,l,T,s))}}}a(vt,"importSettingsOfObject");var jx={};qs(jx,{ALPChart:()=>iS,ALPTable:()=>rS,ActionAfterExecutionConfiguration:()=>hS,ActionAfterExecutionConfigurationFooter:()=>wx,ActionAfterExecutionConfigurationForm:()=>VS,ActionAfterExecutionConfigurationOP:()=>Xp,ActionAfterExecutionConfigurationObjectPageHeader:()=>Lx,ActionAfterExecutionConfigurationToolBarLR:()=>IS,Actions:()=>SS,CommonHeaderFacetSettings:()=>Ds,CommonViewSettings:()=>Ef,CustomActionPosition:()=>LS,CustomActionPositionOP:()=>wS,CustomFilterField:()=>XS,CustomFilterFieldPosition:()=>KS,CustomFooterActionOP:()=>kx,CustomFooterActionPositionOP:()=>Vx,CustomFormActionOP:()=>WS,CustomHeaderAction:()=>qS,CustomHeaderActionOP:()=>_x,CustomHeaderActionPosition:()=>Wp,CustomHeaderActionPositionOP:()=>Fx,CustomTableAction:()=>RS,CustomTableActionOP:()=>MS,FilterBar:()=>GS,FlexSettings:()=>fx,FooterActionV4:()=>Mx,FormAction:()=>kS,Header:()=>QS,HeaderActions:()=>JS,HeaderSections:()=>hx,LRChartView:()=>oS,LRTableView:()=>aS,MultiTableModeV4:()=>cS,ObjectPageCustomHeaderSectionFlexSettings:()=>Ix,ObjectPageCustomHeaderSectionFragment:()=>Cx,ObjectPageCustomSectionFragment:()=>xf,ObjectPageCustomSubSectionFragment:()=>Nx,ObjectPageFooter:()=>sx,ObjectPageFooterActions:()=>ax,ObjectPageForm:()=>$S,ObjectPageFormActions:()=>jS,ObjectPageHeader:()=>rx,ObjectPageHeaderAction:()=>Rx,ObjectPageHeaderActions:()=>ix,ObjectPageHeaderSectionAddress:()=>mx,ObjectPageHeaderSectionChart:()=>px,ObjectPageHeaderSectionContact:()=>gx,ObjectPageHeaderSectionDataPoint:()=>dx,ObjectPageHeaderSectionForm:()=>ux,ObjectPageLayout:()=>Sx,ObjectPageTable:()=>Yp,ObjectPageTableColumn:()=>bf,ObjectPageTableColumnAction:()=>ZS,ObjectPageToolBarAction:()=>DS,PersonalizationType:()=>eS,PersonalizationTypeOP:()=>Px,Position:()=>TS,PositionOP:()=>ex,QuickVariantSelectionV4:()=>nS,QuickVariantSelectionV4OP:()=>Ox,Table:()=>lS,TableColumn:()=>vy,TableColumnAction:()=>yS,TableCreationModeOP:()=>xx,TableCustomColumn:()=>bS,TableCustomColumnOP:()=>tx,TableSettings:()=>gy,TableViewExtension:()=>sS,TableViewSettings:()=>Ip,ToolBar:()=>xS,ToolBarAction:()=>CS,ViewCustomActionPosition:()=>FS,ViewPersonalizationType:()=>tS,ViewPosition:()=>ES,ViewTableColumn:()=>Ty,ViewTableColumnAction:()=>vS,ViewTableCustomAction:()=>_S,ViewTableCustomColumn:()=>AS,ViewToolBarAction:()=>NS,VisualFilter:()=>HS,checkViewOrder:()=>uS,deleteCreationModeCreateAtEnd:()=>mS,deleteCreationModeName:()=>pS,deletePersonalizationProperty:()=>vo,exportCreationModeCreateAtEnd:()=>gS,exportCreationModeName:()=>fS,exportPersonalization:()=>jQ,exportPersonalizationProperty:()=>yo});var ZA=te(se());var VQ=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 ho(e,t,n,i,r,o){let s=ly(e),l=VQ(JSON.parse(JSON.stringify(t)),s),u;for(let p=0;p<l.length;p++){let d=l[p];if(d&&(d[ZA.SchemaTag.key]===(o==null?void 0:o.key)||d[ZA.SchemaTag.key]===i)){u=`${s}/${p}`;break}}return u||(u=`${s}/[]`),u}a(ho,"getSettingsPathForLRViewsPath");function fS(e,t,n,i){typeof e.creationMode=="string"&&(e.creationMode={}),e.creationMode[i]=t[n]}a(fS,"exportCreationModeName");function kQ(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(kQ,"fillNewlyOrderedViews");function uS(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=kQ(e,n,r,s,l,o);for(let p of Object.keys(u))e[p]=u[p]}}a(uS,"checkViewOrder");function jQ(e,t,n,i){!e[i]&&typeof t[n]=="object"&&Object.keys(t[n]).length&&(t[n]={})}a(jQ,"exportPersonalization");function yo(e,t,n,i){(typeof e.personalization=="boolean"||!e.personalization)&&(e.personalization={}),e.personalization[i]=t[n]}a(yo,"exportPersonalizationProperty");function pS(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(pS,"deleteCreationModeName");function vo(e,t,n,i){typeof e.personalization=="object"&&e.personalization[i]!==void 0?(delete e.personalization[i],Object.keys(e.personalization).length===0&&delete e.personalization):typeof e.personalization=="string"&&e.personalization!==void 0&&delete e.personalization}a(vo,"deletePersonalizationProperty");function dS(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(dS,"deleteView");function gS(e,t,n,i){typeof e.creationMode=="object"?e.creationMode[i]=t[n]:typeof e.creationMode=="string"&&(e.creationMode={name:t.name,[i]:t[n]})}a(gS,"exportCreationModeCreateAtEnd");function mS(e,t){typeof e.creationMode=="object"&&e.creationMode[t]!==void 0&&delete e.creationMode[t]}a(mS,"deleteCreationModeCreateAtEnd");function Pw(e){let t=e.personalization;if(typeof t=="object")return t;if(typeof t=="boolean")return{column:t,sort:t,filter:t}}a(Pw,"importPersonalization");function Ow(e,t,n,i){let r=e.findIndex(o=>o.key===i[0]);return r===-1?void 0:r}a(Ow,"determineIndexOfView");var hf=class hf{};a(hf,"PersonalizationType"),y([v({manifest:{path:Yi,export:yo,delete:vo}})],hf.prototype,"column",2),y([v({manifest:{path:Yi,export:yo,delete:vo}})],hf.prototype,"sort",2),y([v({manifest:{path:Yi,export:yo,delete:vo}})],hf.prototype,"filter",2);var eS=hf,yf=class yf{};a(yf,"ViewPersonalizationType"),y([v({manifest:{path:Kr,export:yo,delete:vo}})],yf.prototype,"column",2),y([v({manifest:{path:Kr,export:yo,delete:vo}})],yf.prototype,"sort",2),y([v({manifest:{path:Yi,export:yo,delete:vo}})],yf.prototype,"filter",2);var tS=yf,vf=class vf{};a(vf,"QuickVariantSelectionV4"),y([v({manifest:{path:dy}})],vf.prototype,"paths",2),y([v({manifest:{path:dy}})],vf.prototype,"hideTableTitle",2),y([v({manifest:{path:dy}})],vf.prototype,"showCounts",2);var nS=vf,go=class go{};a(go,"TableSettings"),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"type",2),y([v({manifest:{path:Yi,import:Pw}}),O({since:"1.86.0"})],go.prototype,"personalization",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"selectionMode",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"selectAll",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"selectionLimit",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"enableExport",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"quickVariantSelection",2),y([v({manifest:{path:Yi}}),O({since:"1.84.0"})],go.prototype,"condensedTableLayout",2);var gy=go,my=class my{};a(my,"ALPChart"),y([v({manifest:{path:t=>xt(t)+"/views/paths/0/primary/0",delete:dS}})],my.prototype,"annotationPath",2);var iS=my,Kc=class Kc{};a(Kc,"CommonViewSettings"),y([v({manifest:{path:ho,delete:rc}})],Kc.prototype,"key",2),y([v({manifest:{path:ly,import:Ow,export:(t,n)=>{uS(t,n)},delete:dS}})],Kc.prototype,"index",2),y([v({manifest:{path:ho,delete:rc}})],Kc.prototype,"annotationPath",2),y([v({manifest:{path:ho}})],Kc.prototype,"entitySet",2);var Ef=Kc,mo=class mo extends Ef{};a(mo,"TableViewSettings"),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"type",2),y([v({manifest:{path:Kr,import:Pw}}),O({since:"1.86.0"})],mo.prototype,"personalization",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"selectionMode",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"selectAll",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"selectionLimit",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"enableExport",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"quickVariantSelection",2),y([v({manifest:{path:Kr}}),O({since:"1.84.0"})],mo.prototype,"condensedTableLayout",2);var Ip=mo;function $Q(e){return Ip}a($Q,"getTableViewSettings");var Pp=class Pp extends Ip{};a(Pp,"ALPTable"),y([v({manifest:{path:t=>xt(t)+"/views/paths/0/secondary/0",delete:rc}})],Pp.prototype,"annotationPath",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Pp.prototype,"initialLoad",2);var rS=Pp,hy=class hy extends Ef{};a(hy,"LRChartView"),y([v({manifest:{path:ho},generate:zn})],hy.prototype,"visible",2);var oS=hy,Tf=class Tf extends $Q(Ef){};a(Tf,"LRTableView"),y([v({manifest:{path:ho}})],Tf.prototype,"keepPreviousPersonalization",2),y([v({manifest:{path:ho}})],Tf.prototype,"entitySet",2),y([v({manifest:{path:ho},generate:zn})],Tf.prototype,"visible",2);var aS=Tf,Ls=class Ls{};a(Ls,"TableViewExtension"),y([v({manifest:{path:ho}})],Ls.prototype,"key",2),y([v({manifest:{path:ly,import:Ow,export:(t,n)=>{uS(t,n)},delete:dS}})],Ls.prototype,"index",2),y([v({manifest:{path:ho}})],Ls.prototype,"label",2),y([v({manifest:{path:ho}})],Ls.prototype,"template",2),y([v({manifest:{path:ho},generate:zn})],Ls.prototype,"visible",2);var sS=Ls,yy=class yy{};a(yy,"MultiTableModeV4"),y([v({manifest:{path:t=>xt(t)+"/views"}})],yy.prototype,"showCounts",2);var cS=yy,Op=class Op extends gy{};a(Op,"Table"),y([v({manifest:{path:t=>xt(t)+"/views/paths/0/secondary/0",delete:rc}})],Op.prototype,"annotationPath",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Op.prototype,"initialLoad",2);var lS=Op;var Cp=class Cp{};a(Cp,"ActionAfterExecutionConfiguration"),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Cp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/afterExecution"}})],Cp.prototype,"enableAutoScroll",2);var hS=Cp,Np=class Np{};a(Np,"TableColumn"),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Np.prototype,"width",2),y([v({manifest:{path:Di}}),O({since:"1.85.0"})],Np.prototype,"availability",2);var vy=Np,Lp=class Lp{};a(Lp,"ViewTableColumn"),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Lp.prototype,"width",2),y([v({manifest:{path:zi}}),O({since:"1.85.0"})],Lp.prototype,"availability",2);var Ty=Lp,Ey=class Ey extends vy{};a(Ey,"TableColumnAction"),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Ey.prototype,"afterExecution",2);var yS=Ey,by=class by extends Ty{};a(by,"ViewTableColumnAction"),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],by.prototype,"afterExecution",2);var vS=by,Rp=class Rp{};a(Rp,"Position"),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Rp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Di(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Rp.prototype,"placement",2);var TS=Rp,Fp=class Fp{};a(Fp,"ViewPosition"),y([v({manifest:{path:(t,n,i,r,o)=>zi(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Fp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>zi(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Fp.prototype,"placement",2);var ES=Fp,Jo=class Jo{};a(Jo,"TableCustomColumn"),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"position",2),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"header",2),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"width",2),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"template",2),y([v({manifest:{path:Di}}),O({since:"1.86.0"})],Jo.prototype,"horizontalAlign",2),y([v({manifest:{path:Di}}),O({since:"1.84.0"})],Jo.prototype,"availability",2),y([v({manifest:{path:Di}}),O({since:"1.85.0"})],Jo.prototype,"properties",2);var bS=Jo,Qo=class Qo{};a(Qo,"ViewTableCustomColumn"),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"position",2),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"header",2),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"width",2),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"template",2),y([v({manifest:{path:zi}}),O({since:"1.86.0"})],Qo.prototype,"horizontalAlign",2),y([v({manifest:{path:zi}}),O({since:"1.84.0"})],Qo.prototype,"availability",2),y([v({manifest:{path:zi}}),O({since:"1.85.0"})],Qo.prototype,"properties",2);var AS=Qo;var PS=class PS{};a(PS,"Actions");var SS=PS,OS=class OS{};a(OS,"ToolBar");var xS=OS;var _p=class _p{};a(_p,"ActionAfterExecutionConfigurationToolBarLR"),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/afterExecution"}})],_p.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/afterExecution"}})],_p.prototype,"enableAutoScroll",2);var IS=_p,Dp=class Dp{};a(Dp,"ToolBarAction"),y([v({manifest:{path:Tr}})],Dp.prototype,"enableOnSelect",2),y([v({manifest:{path:Tr}})],Dp.prototype,"afterExecution",2);var CS=Dp,Ay=class Ay{};a(Ay,"ViewToolBarAction"),y([v({manifest:{path:uo}})],Ay.prototype,"enableOnSelect",2);var NS=Ay,wp=class wp{};a(wp,"CustomActionPosition"),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],wp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>Tr(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],wp.prototype,"placement",2);var LS=wp,Fa=class Fa{};a(Fa,"CustomTableAction"),y([v({manifest:{path:Tr}}),O({since:"1.84.0"})],Fa.prototype,"text",2),y([v({manifest:{path:Tr}}),O({since:"1.84.0"})],Fa.prototype,"position",2),y([v({manifest:{path:Tr}}),O({since:"1.84.0"})],Fa.prototype,"press",2),y([v({manifest:{path:Tr}}),O({since:"1.84.0"})],Fa.prototype,"requiresSelection",2),y([v({manifest:{path:Tr},generate:zn}),O({since:"1.84.0"})],Fa.prototype,"visible",2),y([v({manifest:{path:Tr},generate:zn}),O({since:"1.84.0"})],Fa.prototype,"enabled",2);var RS=Fa,Mp=class Mp{};a(Mp,"ViewCustomActionPosition"),y([v({manifest:{path:(t,n,i,r,o)=>uo(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Mp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r,o)=>uo(t,n,i,r,o)+"/position"}}),O({since:"1.84.0"})],Mp.prototype,"placement",2);var FS=Mp,_a=class _a{};a(_a,"ViewTableCustomAction"),y([v({manifest:{path:uo}}),O({since:"1.84.0"})],_a.prototype,"text",2),y([v({manifest:{path:uo}}),O({since:"1.84.0"})],_a.prototype,"position",2),y([v({manifest:{path:uo}}),O({since:"1.84.0"})],_a.prototype,"press",2),y([v({manifest:{path:uo}}),O({since:"1.84.0"})],_a.prototype,"requiresSelection",2),y([v({manifest:{path:uo},generate:zn}),O({since:"1.84.0"})],_a.prototype,"visible",2),y([v({manifest:{path:uo},generate:zn}),O({since:"1.84.0"})],_a.prototype,"enabled",2);var _S=_a;var Sy=class Sy{};a(Sy,"ObjectPageToolBarAction"),y([v({manifest:{path:Vn}})],Sy.prototype,"enableOnSelect",2);var DS=Sy,Vp=class Vp{};a(Vp,"CustomActionPositionOP"),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Vp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Vp.prototype,"placement",2);var wS=Vp,Da=class Da{};a(Da,"CustomTableActionOP"),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Da.prototype,"text",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Da.prototype,"position",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Da.prototype,"press",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Da.prototype,"requiresSelection",2),y([v({manifest:{path:Vn},generate:Gi}),O({since:"1.84.0"})],Da.prototype,"visible",2),y([v({manifest:{path:Vn},generate:Gi}),O({since:"1.84.0"})],Da.prototype,"enabled",2);var MS=Da;var kp=class kp{};a(kp,"ActionAfterExecutionConfigurationForm"),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/afterExecution"}})],kp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>Vn(t,n,i,r)+"/afterExecution"}})],kp.prototype,"enableAutoScroll",2);var VS=kp,xy=class xy{};a(xy,"FormAction"),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],xy.prototype,"afterExecution",2);var kS=xy,US=class US{};a(US,"ObjectPageFormActions");var jS=US,BS=class BS{};a(BS,"ObjectPageForm");var $S=BS;var Rs=class Rs{};a(Rs,"CustomFormActionOP"),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Rs.prototype,"text",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Rs.prototype,"position",2),y([v({manifest:{path:Vn}}),O({since:"1.84.0"})],Rs.prototype,"press",2),y([v({manifest:{path:Vn},generate:Gi}),O({since:"1.84.0"})],Rs.prototype,"visible",2),y([v({manifest:{path:Vn},generate:Gi}),O({since:"1.84.0"})],Rs.prototype,"enabled",2);var WS=Rs;function UQ(e,t,n,i){e[i]?e[i].valueList=t[n]:e[i]={valueList:t[n]}}a(UQ,"exportVisualFilterValueList");var jp=class jp{};a(jp,"FilterBar"),y([v({manifest:{path:py}}),O({since:"1.93.0"})],jp.prototype,"initialLayout",2),y([v({manifest:{path:py}}),O({since:"1.93.0"})],jp.prototype,"layout",2);var GS=jp,$p=class $p{};a($p,"VisualFilter"),y([v({manifest:{path:qA}}),O({since:"1.93.0"})],$p.prototype,"availability",2),y([v({manifest:{path:qA,import:t=>{var n;return(n=t==null?void 0:t.visualFilter)==null?void 0:n.valueList},export:UQ,key:"visualFilter"}}),O({since:"1.93.0"})],$p.prototype,"visualFilterValueList",2);var HS=$p,Up=class Up{};a(Up,"CustomFilterFieldPosition"),y([v({manifest:{path:(t,n,i,r)=>Ns(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Up.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>Ns(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Up.prototype,"placement",2);var KS=Up,Fs=class Fs{};a(Fs,"CustomFilterField"),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"label",2),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"property",2),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"template",2),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"required",2),y([v({manifest:{path:Ns}}),O({since:"1.77.0"})],Fs.prototype,"position",2);var XS=Fs;var YS=class YS{};a(YS,"HeaderActions");var JS=YS,zS=class zS{};a(zS,"Header");var QS=zS;var Bp=class Bp{};a(Bp,"CustomHeaderActionPosition"),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Bp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>ui(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Bp.prototype,"placement",2);var Wp=Bp,_s=class _s{};a(_s,"CustomHeaderAction"),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],_s.prototype,"text",2),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],_s.prototype,"position",2),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],_s.prototype,"press",2),y([v({manifest:{path:ui},generate:zn}),O({since:"1.84.0"})],_s.prototype,"visible",2),y([v({manifest:{path:ui},generate:zn}),O({since:"1.84.0"})],_s.prototype,"enabled",2);var qS=_s;var Gp=class Gp{};a(Gp,"ActionAfterExecutionConfigurationOP"),y([v({manifest:{path:(t,n,i,r)=>qi(t,n,i,r)+"/afterExecution"}})],Gp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>qi(t,n,i,r)+"/afterExecution"}})],Gp.prototype,"enableAutoScroll",2);var Xp=Gp,Hp=class Hp{};a(Hp,"ObjectPageTableColumn"),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Hp.prototype,"width",2),y([v({manifest:{path:qi}}),O({since:"1.85.0"})],Hp.prototype,"availability",2);var bf=Hp,nx=class nx extends bf{};a(nx,"ObjectPageTableColumnAction");var ZS=nx,Kp=class Kp{};a(Kp,"PositionOP"),y([v({manifest:{path:(t,n,i,r)=>qi(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Kp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>qi(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Kp.prototype,"placement",2);var ex=Kp,Yo=class Yo{};a(Yo,"TableCustomColumnOP"),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"position",2),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"header",2),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"width",2),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"template",2),y([v({manifest:{path:qi}}),O({since:"1.86.0"})],Yo.prototype,"horizontalAlign",2),y([v({manifest:{path:qi}}),O({since:"1.84.0"})],Yo.prototype,"availability",2),y([v({manifest:{path:qi}}),O({since:"1.85.0"})],Yo.prototype,"properties",2);var tx=Yo;var ox=class ox{};a(ox,"ObjectPageHeaderActions");var ix=ox,Xc=class Xc{};a(Xc,"ObjectPageHeader"),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Xc.prototype,"editableHeaderContent",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Xc.prototype,"showRelatedApps",2),y([v({manifest:{path:fy}}),O({since:"1.84.0"})],Xc.prototype,"visible",2),y([v({manifest:{path:fy}}),O({since:"1.84.0"})],Xc.prototype,"anchorBarVisible",2);var rx=Xc;var cx=class cx{};a(cx,"ObjectPageFooterActions");var ax=cx,lx=class lx{};a(lx,"ObjectPageFooter");var sx=lx;var Py=class Py{};a(Py,"FlexSettings"),y([v({manifest:{path:(t,n,i)=>uy(t,n,i)+"/flexSettings"}}),O({since:"1.81.0"})],Py.prototype,"designtime",2);var fx=Py,Jp=class Jp{};a(Jp,"CommonHeaderFacetSettings"),y([v({manifest:{path:uy}}),O({since:"1.81.0"})],Jp.prototype,"stashed",2),y([v({manifest:{path:uy}}),O({since:"1.81.0"})],Jp.prototype,"flexSettings",2);var Ds=Jp,yx=class yx extends Ds{};a(yx,"ObjectPageHeaderSectionForm");var ux=yx,vx=class vx extends Ds{};a(vx,"ObjectPageHeaderSectionChart");var px=vx,Tx=class Tx extends Ds{};a(Tx,"ObjectPageHeaderSectionDataPoint");var dx=Tx,Ex=class Ex extends Ds{};a(Ex,"ObjectPageHeaderSectionContact");var gx=Ex,bx=class bx extends Ds{};a(bx,"ObjectPageHeaderSectionAddress");var mx=bx,Ax=class Ax{};a(Ax,"HeaderSections");var hx=Ax;var Oy=class Oy{};a(Oy,"ObjectPageLayout"),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Oy.prototype,"sectionLayout",2);var Sx=Oy;var Iy=te(se());var Qp=class Qp{};a(Qp,"TableCreationModeOP"),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:(t,n,i,r)=>{fS(t,n,i,r)},delete:(t,n,i,r)=>{pS(t,r)}}})],Qp.prototype,"name",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:(t,n,i,r)=>{gS(t,n,i,r)},delete:(t,n,i,r)=>{mS(t,r)}}})],Qp.prototype,"createAtEnd",2);var xx=Qp,Af=class Af{};a(Af,"PersonalizationTypeOP"),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:yo,delete:vo}})],Af.prototype,"column",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:yo,delete:vo}})],Af.prototype,"sort",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i),export:yo,delete:vo}})],Af.prototype,"filter",2);var Px=Af,Sf=class Sf{};a(Sf,"QuickVariantSelectionV4OP"),y([v({manifest:{path:(t,n,i)=>kn(t,n,i)+Iy.QUICKVARPATH}})],Sf.prototype,"paths",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i)+Iy.QUICKVARPATH}})],Sf.prototype,"hideTableTitle",2),y([v({manifest:{path:(t,n,i)=>kn(t,n,i)+Iy.QUICKVARPATH}})],Sf.prototype,"showCounts",2);var Ox=Sf,Zi=class Zi{};a(Zi,"ObjectPageTable"),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"type",2),y([v({manifest:{path:kn,import:t=>{let n=t.creationMode;if(typeof n=="object")return n;if(typeof n=="string")return{name:n}}}}),O({since:"1.84.0"})],Zi.prototype,"creationMode",2),y([v({manifest:{path:kn,import:t=>{let n=t.personalization;if(typeof n=="object")return n;if(typeof n=="boolean")return{column:n,sort:n,filter:n}}}}),O({since:"1.86.0"})],Zi.prototype,"personalization",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"selectionMode",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"selectAll",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"selectionLimit",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"enableExport",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"quickVariantSelection",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"condensedTableLayout",2),y([v({manifest:{path:kn}}),O({since:"1.86.0"})],Zi.prototype,"enableFullScreen",2),y([v({manifest:{path:kn}}),O({since:"1.84.0"})],Zi.prototype,"enablePaste",2);var Yp=Zi;var Cy=class Cy{};a(Cy,"ObjectPageCustomHeaderSectionFlexSettings"),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"flexSettings")}}),O({since:"1.81.0"})],Cy.prototype,"designtime",2);var Ix=Cy,er=class er{};a(er,"ObjectPageCustomHeaderSectionFragment"),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"position"),key:"anchor"}}),O({since:"1.77.0"})],er.prototype,"relatedFacet",2),y([v({manifest:{path:(t,n,i)=>Er(t,n,i,"position"),key:"placement"}}),O({since:"1.77.0"})],er.prototype,"relativePosition",2),y([v({manifest:{path:Er},generate:Gi}),O({since:"1.84.0"})],er.prototype,"visible",2),y([v({manifest:{path:Er}}),O({since:"1.77.0"})],er.prototype,"title",2),y([v({manifest:{path:Er}}),O({since:"1.77.0"})],er.prototype,"subTitle",2),y([v({manifest:{path:Er,import:t=>t.name||t.template,key:"template"}}),O({since:"1.77.0"})],er.prototype,"fragmentName",2),y([v({manifest:{path:Er,import:t=>t.templateEdit,key:"templateEdit"}}),O({since:"1.86.0"})],er.prototype,"templateEdit",2),y([v({manifest:{path:Er}}),O({since:"1.81.0"})],er.prototype,"stashed",2),y([v({manifest:{path:Er}}),O({since:"1.81.0"})],er.prototype,"flexSettings",2),y([v({manifest:{path:Er}}),O({since:"1.81.0"})],er.prototype,"requestGroupId",2),y([v({manifest:{path:Er,import:!1,export:!1},xml:t=>t.fragmentName}),O({since:"1.96.0"})],er.prototype,"controls",2);var Cx=er;var Ms=te(se());var To=class To{};a(To,"ObjectPageCustomSectionFragment"),y([v({manifest:{path:(t,n,i)=>Ra(t,n,i,"position"),key:"anchor"}}),O({since:"1.77.0"})],To.prototype,"relatedFacet",2),y([v({manifest:{path:Ra,import:(t,n)=>n,export:!1}}),O({since:"1.77.0"})],To.prototype,"id",2),y([v({manifest:{path:(t,n,i)=>Ra(t,n,i,"position"),key:"placement"}}),O({since:"1.77.0"})],To.prototype,"relativePosition",2),y([v({manifest:{path:Ra}}),O({since:"1.77.0"})],To.prototype,"title",2),y([v({manifest:{path:Ra,import:t=>!t.type||t.type.startsWith(Ms.v4.CustomSectionViewTypesV4.XML)?Ms.v4.CustomSectionViewTypesV4.XML:"",export:(t,n)=>{let i="";"type"in n&&(i+=n.type),"className"in n&&(n.className===Ms.SAPUI5_FRAGMENT_CLASS?i+="Fragment":i+=n.className),t.type=i}}}),O({since:"1.77.0"})],To.prototype,"type",2),y([v({manifest:{path:Ra,import:t=>!t.type||t.type.startsWith(Ms.v4.CustomSectionViewTypesV4.XML)?!t.type||t.type==="XMLFragment"?Ms.SAPUI5_FRAGMENT_CLASS:t.type.slice(Ms.v4.CustomSectionViewTypesV4.XML.length):t.type,export:!1}}),O({since:"1.77.0"})],To.prototype,"className",2),y([v({manifest:{path:Ra,import:t=>t.name||t.template,key:"template"}}),O({since:"1.77.0"})],To.prototype,"fragmentName",2),y([v({manifest:{path:Ra,import:!1,export:!1},xml:t=>t.fragmentName}),O({since:"1.96.0"})],To.prototype,"controls",2);var xf=To,ws=class ws extends xf{};a(ws,"ObjectPageCustomSubSectionFragment"),y([v({manifest:{path:(...t)=>`${mf.apply({},t)}/position`,key:"anchor"}}),O({since:"1.77.0"})],ws.prototype,"relatedFacet",2),y([v({manifest:{path:(...t)=>`${mf.apply({},t)}/position`,key:"placement"}}),O({since:"1.77.0"})],ws.prototype,"relativePosition",2),y([v({manifest:{path:mf}}),O({since:"1.77.0"})],ws.prototype,"title",2),y([v({manifest:{path:mf,import:t=>t.name||t.template,key:"template"}}),O({since:"1.77.0"})],ws.prototype,"fragmentName",2),y([v({manifest:{path:mf,import:!1,export:!1},xml:t=>t.fragmentName}),O({since:"1.96.0"})],ws.prototype,"controls",2);var Nx=ws;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 Lx=zp,Ny=class Ny{};a(Ny,"ObjectPageHeaderAction"),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],Ny.prototype,"afterExecution",2);var Rx=Ny,Dx=class Dx extends Wp{};a(Dx,"CustomHeaderActionPositionOP");var Fx=Dx,Vs=class Vs{};a(Vs,"CustomHeaderActionOP"),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],Vs.prototype,"text",2),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],Vs.prototype,"position",2),y([v({manifest:{path:ui}}),O({since:"1.84.0"})],Vs.prototype,"press",2),y([v({manifest:{path:ui},generate:Gi}),O({since:"1.84.0"})],Vs.prototype,"visible",2),y([v({manifest:{path:ui},generate:Gi}),O({since:"1.84.0"})],Vs.prototype,"enabled",2);var _x=Vs;var qp=class qp{};a(qp,"ActionAfterExecutionConfigurationFooter"),y([v({manifest:{path:(t,n,i,r)=>po(t,n,i,r)+"/afterExecution"}})],qp.prototype,"navigateToInstance",2),y([v({manifest:{path:(t,n,i,r)=>po(t,n,i,r)+"/afterExecution"}})],qp.prototype,"enableAutoScroll",2);var wx=qp,Ly=class Ly{};a(Ly,"FooterActionV4"),y([v({manifest:{path:po}}),O({since:"1.84.0"})],Ly.prototype,"afterExecution",2);var Mx=Ly,Zp=class Zp{};a(Zp,"CustomFooterActionPositionOP"),y([v({manifest:{path:(t,n,i,r)=>po(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Zp.prototype,"anchor",2),y([v({manifest:{path:(t,n,i,r)=>po(t,n,i,r)+"/position"}}),O({since:"1.84.0"})],Zp.prototype,"placement",2);var Vx=Zp,ks=class ks{};a(ks,"CustomFooterActionOP"),y([v({manifest:{path:po}}),O({since:"1.84.0"})],ks.prototype,"text",2),y([v({manifest:{path:po}}),O({since:"1.84.0"})],ks.prototype,"position",2),y([v({manifest:{path:po}}),O({since:"1.84.0"})],ks.prototype,"press",2),y([v({manifest:{path:po},generate:Gi}),O({since:"1.84.0"})],ks.prototype,"visible",2),y([v({manifest:{path:po},generate:Gi}),O({since:"1.84.0"})],ks.prototype,"enabled",2);var kx=ks;var Wx={};qs(Wx,{FreestylePage:()=>Ux,ListReport:()=>br,ObjectPage:()=>Eo});function BQ(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(BQ,"deleteAllALPViews");function WQ(){}a(WQ,"doNotExport");function GQ(){}a(GQ,"doNotImport");var br=class{};a(br,"ListReport"),y([v({manifest:{path:t=>xt(t)+"/views",import:GQ,export:WQ,delete:BQ}})],br.prototype,"chart",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],br.prototype,"variantManagement",2),y([v({manifest:{path:t=>xt(t)+"/views/paths/[]/0"}})],br.prototype,"defaultPath",2),y([v({manifest:{path:t=>xt(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 $x=te(se());var Eo=class{};a(Eo,"ObjectPage"),y([Ft("header")],Eo.prototype,"header",2),y([Ft("layout")],Eo.prototype,"layout",2),y([v({manifest:{path:t=>xt(t)}}),O({since:"1.84.0"})],Eo.prototype,"variantManagement",2),y([Ft("sections")],Eo.prototype,"sections",2),Eo=y([Dr({id:`${$x.v4.FE_TEMPLATE_V4_OBJECT_PAGE}.view.Details`,pageId:$x.v4.FE_TEMPLATE_V4_OBJECT_PAGE})],Eo);var Bx=class Bx{};a(Bx,"FreestylePage");var Ux=Bx;var Ry=te(se());var HQ={},KQ={},XQ={Table:Yp,TableColumn:bf,ObjectPageCustomSectionView:xf,ActionAfterExecutionConfiguration:Xp},JQ={[Ry.PageTypeV2.AnalyticalListPage]:HQ,[Ry.PageTypeV2.ListReport]:KQ,[Ry.PageTypeV2.ObjectPage]:XQ},Gx=class Gx extends Xl{constructor(){super(jx,Wx,JQ)}};a(Gx,"MetadataInstanceFactoryV4");var wa=Gx;var Hx=require("@sap-ux/vocabularies-types/vocabularies/UI");function Kx(e,t,n,i,r,o,s){var d,m,T,b,E,C;let l=t.jsonSchema.definitions,u=o&&o!==`@${Hx.UIAnnotationTerms.LineItem}`?o:ge.DefinitionName.LineItems,p=l[u];if(p&&Object.keys(p.properties).length>0){e.columns={};for(let L in p.properties){let F=l[u].properties[L].$ref.split(B)[1].split("<")[0];e.columns[L]=n.createInstance(i,F);let U=s||o;vt(e.columns[L],t.manifest,l[F],r,[L,U],U,t.logger),_o(e.columns,L)}_o(e,"columns")}else{let L=(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;(!L||L.paths.length<1)&&oe(t.logger,{severity:ge.LogSeverity.Error,message:ee.t("NOLINEITEMS")})}}a(Kx,"transferColumns");function QQ(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),vt(t.visualFilters[l],e.manifest,o[p],r,[l])}}_o(t,"visualFilters")}}a(QQ,"importVisualFilters");function YQ(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=`@${Hx.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),vt(t.toolBar.actions[d],e.manifest,l[T],r,[d,u]),_o(t.toolBar.actions,d)}}}a(YQ,"importActions");function Xx(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,vt(u.toolBar,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.ToolBarLR],r,[]),YQ(e,u,n,i,r,o,s),_o(u.toolBar,"actions"),_o(u,"toolBar")}a(Xx,"transferToolBar");function Iw(e,t){var r;let n=(r=e[t])==null?void 0:r[ge.SchemaTag.annotationPath];return n==null?void 0:n.substr(n.lastIndexOf("@"))}a(Iw,"determineTargetAnnotationOfView");function zQ(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];vt(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:{}}),vt(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);Xx(e,t,n,i,r);let m=u.substr(u.lastIndexOf("@"));vt(d,e.manifest,p,r,[p[ge.SchemaTag.key],m]),Kx(d,e,n,i,r,void 0,m)}}a(zQ,"importALPViews");function qQ(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(qQ,"getViewTypeByDefinition");function ZQ(e,t,n,i,r){let o=t.table.views=n.createInstance(i,ge.DefinitionName.MultiTableModeV4),s=e.jsonSchema.definitions;vt(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=qQ(d),T=o[p[0]]=n.createInstance(i,m),b=Iw(s,d);if(!s[d].entitySet&&(vt(T,e.manifest,s[d],r,[p[0],b]),m===ge.DefinitionName.LRTableView)){let E=`${ge.DefinitionName.LineItemsOfView}::${p[0]}`;Xx(e,T,n,i,r,E,b),Kx(T,e,n,i,r,E,b)}Object.keys(T).length===0&&delete o[p[0]]}_o(t.table,"views")}a(ZQ,"importLRViews");function eY(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),vt(t[s].actions[u],i,e.definitions[T],r,[u.replace("/","??")]),_o(t.header,"actions"),_o(t,"header")}}}}a(eY,"transferHeaderActions");function tY(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];vt(u,e.manifest,e.jsonSchema.definitions[p],i,[s]),t.selectionFields||(t.selectionFields={}),t.selectionFields[s]=u}}a(tY,"importCustomFilterFields");function nY(e,t,n,i,r,o){if(vt(t,e.manifest,e.jsonSchema,r,[]),t.header=n.createInstance(i,ge.DefinitionName.Header),vt(t.header,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.Header],r,[]),eY(e.jsonSchema,t,n,e.manifest,r),t.filterBar=n.createInstance(i,ge.DefinitionName.FilterBar),vt(t.filterBar,e.manifest,e.jsonSchema.definitions[ge.DefinitionName.FilterBar],r,[]),QQ(e,t.filterBar,n,i,r),tY(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=Iw(e.jsonSchema.definitions,s);vt(t.table,e.manifest,l,r,[s,p]),Xx(e,t,n,i,r,u),Kx(t.table,e,n,i,r,u,p),ZQ(e,t,n,i,r)}else o===ge.SchemaType.AnalyticalListPage&&zQ(e,t,n,i,r)}a(nY,"addSettings");function Jc(e,t){if(Yt(),!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 wa,r=i.createPageInstance(ge.PageTypeV4.ListReport);for(let o in n){let s=n[o],l=RT(s);if("name"in s&&(l===ge.PageTypeV4.ListReport||l===ge.PageTypeV4.AnalyticalListPage)){nY(e,r,i,ge.PageTypeV4.ListReport,o,t);break}}return r}a(Jc,"createListReportConfig");var ye=te(se()),Qc=require("@sap-ux/vocabularies-types/vocabularies/UI");function iY(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(iY,"isBoolean");function rY(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(rY,"isNumber");function oY(e,t){let n=e.toString();return iY(n,t)?n==="true":rY(n,t)?parseFloat(n):e}a(oY,"convertValue");function aY(e,t,n,i){let{element:r}=e,o=!1;if(r&&r.type!=="comment"&&r.attributes&&i in r.attributes){let s=oY(r.attributes[i],t);s!==n[i]&&(n[i]=s,o=!0)}return o}a(aY,"importProperty");function Cw(e,t,n){let i,r=pf(e.file,!1,n);if(r){let o=oy(r);i={},Uc({fullSchema:t,schema:t,element:o,contextPath:[],config:i},aY)}return i}a(Cw,"convertXmlFileToConfig");function Fy(e){let{views:t,manifest:n,jsonSchema:i,routingId:r,logger:o}=e;if(!i||Object.keys(i).length===0)return;let s=bs(t||[],r,n,o),l;return s&&(l=Cw(s,i,e.logger)),l}a(Fy,"createCustomPageConfig");function ed(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=Cw(d,b,s)}return m}a(ed,"createCustomFragmentConfig");function Jx(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(Jx,"getManifestId");function _y(e){return e.replace(/#/g,"::").replace(/\//g,"::")}a(_y,"getDefinitionId");function sY(e,t,n,i,r,o){if(t.columns){n[i].table.columns={};let s,l=e.jsonSchema.definitions[_y(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);vt(d,e.manifest,e.jsonSchema.definitions[s],e.routingId,[u],o),Object.keys(d).length>0&&(n[i].table.columns[u]=d)}}}a(sY,"fillTableColumnsInConfig");function cY(e,t,n,i,r=t){let o=e.jsonSchema.definitions[`${ye.DefinitionName.Actions}<${_y(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),vt(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(cY,"fillTableActionsInConfig");function lY(e,t,n,i,r,o=n){if(t.actions){i[n].form.actions={};let l=e.jsonSchema.definitions[`${ye.DefinitionName.ObjectPageSectionForm}<${_y(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 L=un(C.$ref)||E.split("<")[0];i[n].form.actions[T]=r.createInstance(ye.PageTypeV4.ObjectPage,L),vt(i[n].form.actions[T],e.manifest,e.jsonSchema.definitions[L],e.routingId,[T.replace("/","??")],o),Object.keys(i[n].form.actions[T]).length===0&&delete i[n].form.actions[T]}}}}a(lY,"fillFormActionsInConfig");function Nw(e,t,n,i,r,o){var u;let s=o||Jx(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?_y(o):i.replace("#","::")}>`;vt(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:{}}),cY(e,i,n,r,s),sY(e,l,n,i,r,s)}}a(Nw,"fillTableInConfig");function fY(e,t,n,i,r){var l;let o=Jx(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:{}}),lY(e,s,i,n,r,o))}a(fY,"fillFormInConfig");function uY(e,t,n,i,r,o){let s=r.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageCustomSubSectionFragment),l=t.$ref.split(B)[1];if(vt(s,e.manifest,e.jsonSchema.definitions[l],e.routingId,[`subSections/${i}`],o),s.fragmentName){let u=ed(e,s.fragmentName);s.controls=u}n[i]=s}a(uY,"fillCustomSubSectionInConfig");function Rw(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?Jx(E,!0,Qc.UIAnnotationTerms.LineItem):m,Nw(e,n,i,m,r,b)}else(l=T.$ref)!=null&&l.startsWith(B+ye.DefinitionName.ObjectPageSectionTableV4)?Nw(e,n,i,m,r):T.properties&&T.properties.subsections?(i[m]={subsections:{}},Rw(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}::`))?fY(e,n,i,m,r):(d=T.$ref)!=null&&d.startsWith(B+ye.DefinitionName.ObjectPageCustomSubSectionFragment)&&uY(e,T,i,m,r,o)}}a(Rw,"fillSectionsInConfig");function pY(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);vt(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomSectionFragment],e.routingId,[],l);let d=u.template;if(d){let m=ed(e,d);p.controls=m}n.sections.custom.push(p)}}}a(pY,"fillCustomSectionsInConfig");function dY(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);vt(p,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageCustomHeaderSectionFragment],e.routingId,[],l);let d=u.template;if(d){let T=ed(e,d);p.controls=T}let m=u.templateEdit;if(m){let T=ed(e,m);p.controlsEditMode=T}n.header.sections[l]=p}}a(dY,"fillCustomHeaderSectionsInConfig");function gY(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):{},vt(t.header.sections[u],i,p,r,[],(l=p==null?void 0:p.title)==null?void 0:l.split(ye.FacetTitlePrefix)[1]))}}}a(gY,"fillHeaderFacets");function mY(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;vt(m,o,t.definitions[p],s,[r.replace("/","??")]),Object.keys(m).length===0&&delete i[r]}}a(mY,"importActionSettingsOfReference");function Lw(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&&mY(d,e,n,u,p,i,r)}}}a(Lw,"fillHeaderFooterActions");function hY(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),vt(i.header,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageHeader],e.routingId,[]),i.footer=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageFooter),vt(i.footer,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageFooter],e.routingId,[]),i.layout=n.createInstance(ye.PageTypeV4.ObjectPage,ye.DefinitionName.ObjectPageLayout),vt(i.layout,e.manifest,e.jsonSchema.definitions[ye.DefinitionName.ObjectPageLayout],e.routingId,[]),vt(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={},Rw(e,e.jsonSchema.definitions[ye.DefinitionName.Sections].properties,r,i.sections,n)),pY(e,r,i,n),gY(e.jsonSchema,i,n,e.manifest,e.routingId),dY(e,r,i,n),Lw(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.ObjectPageHeaderActions,ye.PropertyName.header),Lw(e.jsonSchema,i,n,e.manifest,e.routingId,ye.DefinitionName.FooterActions,ye.PropertyName.footer)),i}a(hY,"fillObjectPageConfig");function Dy(e){if(Yt(),!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 wa;return hY(e,n,i)}a(Dy,"createObjectPageConfigV4");var Ue=te(se());var Qx=[],wy={};function yY(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(yY,"routesSorter");function Yx(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(Yx,"resolveTarget");function vY(e){let t={};e=e.concat().sort(yY);let n=[];for(let i of e){let r=i.pattern.split(":")[0].split("/"),o;Array.isArray(i.target)?(o=Yx(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(vY,"populateAssociations");function TY(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(TY,"determinePageType");function EY(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=Dy(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=Fy(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=iu(e.target)===Ue.TemplateType.AnalyticalListPageV4?Ue.SchemaType.AnalyticalListPage:Ue.SchemaType.ListReport;e.page.config=Jc(r,s)}}}a(EY,"convertSettingsToConfig");function bY(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(bY,"updateUnhandledControllers");function AY(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(AY,"setVariantManagmentAndNavigation");function SY(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(SY,"setEntitySetEntityTypeContextPath");function xY(e,t,n){var i,r;if("viewId"in e)t.view={id:e.viewId,name:e.viewName,...e.viewType&&{viewType:e.viewType},...e.path&&{viewPath:e.path},...e.viewPath&&{viewPath:e.viewPath}};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(xY,"evaluateCustomPageSettings");function PY(e,t,n,i){let r=e.targets[t],o=TY(r,i.logger,t),s={pageType:o};if(SY(r,s,i),r.controlAggregation&&(s.controlAggregation=r.controlAggregation),wy[t]&&wy[t].indexOf(".")!==-1){let p=wy[t].split(".");s.navigationProperty=p[p.length-1]}xY(r,s,o),AY(r,s),bY(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}};EY(u)}a(PY,"getSinglePageAndConfig");function Fw(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}wy=vY(n.routes||[]);for(let i in n.targets)PY(n,i,t,e);return t}a(Fw,"getPagesAndConfigs");function _w(e){let t;if(e&&e.routes&&e.routes.length>0){for(let n of e.routes)if(n.pattern.startsWith(":?query:")){t=n;break}else if(n.pattern.indexOf("/")===-1){t=n;continue}return Yx(t?t.target:e.routes[0].target)}else return}a(_w,"getHome");function Dw(e){let t=e==null?void 0:e.config;return t?{...t.flexibleColumnLayout&&{flexibleColumnLayout:t.flexibleColumnLayout},...t.viewType&&{viewType:t.viewType},...t.path&&{viewPath:t.path},...t.viewPath&&{viewPath:t.viewPath}}:{}}a(Dw,"getSettings");function Pf(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(Pf,"getPages");var zx=class zx extends es{constructor(t){Yt();let n=new gf,i=Nt(Ue.SchemaType.Application),r=t.appSchemas[i.filename];vt(n,t.manifest,r.definitions.AppSettings,"",[]),super(t.manifest,t.appSchemas,_w(t.manifest[Ue.ManifestSection.ui5].routing),Fw(t),Ue.FioriElementsVersion.v4,{...Dw(t.manifest[Ue.ManifestSection.ui5].routing),...n},t.logger),this.unhandledControllers=Qx}};a(zx,"V4AppProvider");var td=zx;var ww=require("fs"),Yc=require("path"),nd=te(se());var Mw=a((e,t,n=__dirname)=>{let i;switch(t){case nd.SchemaType.Application:{i=`${nd.SchemaType.Application}${e.toUpperCase()}.json`;break}case nd.SchemaType.FPMCustomPage:{i=`${nd.SchemaType.BuildingBlocks}Config.json`;break}default:{i=`${t}Config.json`;break}}if(n.endsWith("dist"))return(0,Yc.join)(n,"schemas",e,i);if(n.endsWith((0,Yc.join)("specification","packages","specification")))return(0,Yc.join)(n,"dist","schemas",e,i);if(n.endsWith((0,Yc.join)("src","specification")))return(0,Yc.join)(n,"..","..","dist","schemas",e,i);if(n.indexOf("node_modules")>-1){let r=n.substring(0,n.indexOf("node_modules")+12);return(0,Yc.join)(r,"@sap","ux-specification","dist","schemas",e,i)}},"getPathToGenericSchema"),OY=a(async e=>new Promise((t,n)=>{(0,ww.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(JSON.parse(r))})}),"readJsonSchema"),My=a(async(e,t)=>{try{let n=Mw(e,t,__dirname);return await OY(n)}catch(n){throw new Error(`No schema available for type: ${t}, version: ${e}. Error was ${n.message}`)}},"getGenericSchema");async function IY(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 My(t,r)}return n}a(IY,"getGenericSchemas");function kw(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(kw,"getAnnotationsForUi");function id(e,t){return(t==null?void 0:t.entitySets)&&t.entitySets.find(n=>n.name===e)}a(id,"getEntitySetByEntitySetName");function CY(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(CY,"resolveNavigationProperty");function Wc(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}=CY(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(Wc,"getEntityTypeEntitySetFromContextPath");function Vw(e,t,n){let i=Hu(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=id(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]=rd(e,t[u.filename])}}a(Vw,"generateObjectPageSchemasV2");function NY(e,t,n){var l,u;let i=Pf(e.manifest,le.v4.FE_TEMPLATE_V4_LIST_REPORT),r=Pf(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=iu(o[p])),n[E.filename]=Ju(e,t[C.filename],o[p].name,m)}}a(NY,"generateListReportSchemasV4");function LY(e,t,n){var r;let i=Hu(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=id(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]=od(e,n[u.filename])}}a(LY,"generateAppSchemaV2LR");function RY(e,t,n){var o,s;let i=Pf(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]=xp(e,t[b.filename],p,t[E.filename])}}a(RY,"generateObjectPageSchemasV4");function FY(e,t,n,i){var o;let r={};if(i===le.TemplateType.ListReportObjectPageV2&&n)LY(e,r,t),Vw(e,t,r);else if(i===le.TemplateType.AnalyticalListPageV2&&n){let s=Hu(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=id(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]=ad(e,t[d.filename])}Vw(e,t,r)}else if(i===le.TemplateType.OverviewPageV2){let s=Nt(le.SchemaType.OverviewPage),l=Nt(le.SchemaType.OverviewPage);r[s.filename]=sd(t[l.filename],e.manifest)}return{...t,...r}}a(FY,"generateAppSchemasV2");function _Y(e,t,n){if(!ic(e.featureToggles,le.Features.BuildingBlocks))return;let i=Pf(e.manifest,le.v4.FE_TEMPLATE_V4_CUSTOM_PAGE);for(let r in i){let o=i[r],s=bs(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]=Bc(t[p.filename],s,e.serviceAVT,e.logger)}}}a(_Y,"generateCustomPageSchemasV4");function DY(e,t,n){let i={};return n&&(NY(e,t,i),RY(e,t,i),_Y(e,t,i)),{...t,...i}}a(DY,"generateAppSchemasV4");async function jw(e,t,n){let i=await IY(n,e.fioriElementsVersion);return e.fioriElementsVersion===le.FioriElementsVersion.v4?DY(e,i,t):FY(e,i,t,n)}a(jw,"generateAppSchemas");function wY(e){let t,n=[];switch(e.templateType){case le.TemplateType.ListReportObjectPageV2:case le.TemplateType.AnalyticalListPageV2:t=new ch(e);break;case le.TemplateType.AnalyticalListPageV4:case le.TemplateType.ListReportObjectPageV4:case le.TemplateType.FreestylePageV4:t=new td(e);break;case le.TemplateType.OverviewPageV2:t=new uh(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(wY,"importConfigs");function $w(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($w,"getFileList");async function qx(e){var E,C;Yt();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,featureToggles:s}=e;new au().doesUi5VersionFitDistTags((C=(E=t["sap.ui5"])==null?void 0:E.dependencies)==null?void 0:C.minUI5Version,i);let u=MT(t),p=No(n,i),d=kw(p),m=VT(t,u,i),b=await jw({templateType:m,manifest:t,serviceAVT:p,fragments:r,views:o,fioriElementsVersion:u,logger:i,featureToggles:s},d,m);return $w(b)}a(qx,"importProjectSchema");async function Zx(e){var R,F;Yt();let{manifest:t,annotations:n,logger:i,fragments:r,views:o,flex:s,featureToggles:l}=e;new au().doesUi5VersionFitDistTags((F=(R=t["sap.ui5"])==null?void 0:R.dependencies)==null?void 0:F.minUI5Version,i);let p=MT(t),d=No(n,i),m=VT(t,p,i),T={templateType:m,manifest:t,serviceAVT:d,fragments:r,views:o,fioriElementsVersion:p,logger:i,featureToggles:l},b=kw(d),E=await jw(T,b,m),L=wY({manifest:t,flexChanges:s,appSchemas:E,templateType:m,logger:i,serviceAVT:d,fragments:r,views:o});return $w(E,L)}a(Zx,"importProjectSchemaAndConfig");var MY=["header","sections","footer"];function VY(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(VY,"addFlexChangeForSection");function kY(e,t,n,i,r){n==null||n.forEach(o=>{if(!o.Determining&&o.$Type===zo.UIAnnotationTypes.DataFieldForAction){let{actionName:s,actionId:l,namespace:u}=Yg(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(`@${zo.UIAnnotationTerms.Identification}`,`/@${zo.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(kY,"addHeaderActionCallBackV2");function jY(e,t,n,i){i.forEach(r=>{if(r.Determining&&r.$Type===zo.UIAnnotationTypes.DataFieldForAction){let o=ya(r).split("::").splice(1).join("::"),s=Ei(r,e),l=ft(`${fe.DefinitionName.ObjectPageFooterAction}<${o}>`),u=r.fullyQualifiedName.replace(`@${zo.UIAnnotationTerms.Identification}`,`/@${zo.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(jY,"addFooterActionCallBackV2");function $Y(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=Ic(t[fe.ManifestSection.generic].pages,n,T);return Sl(e,b,E,t,l,p,d,o.ID),p}a($Y,"ensureCustomColumnDefinitionExists");function Vy(e,t,n,i){t.properties=JSON.parse(JSON.stringify(e.definitions[i].properties)),t.properties.visible&&VY(e,t,"visible",n)}a(Vy,"addAppSchemaDefinition");function UY(e,t,n){e.properties[t]={$ref:`${B}${n}`}}a(UY,"addSectionReference");function cd(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}>`,Ya(n.entityType,i,`QuickVariant<${t}>`)}a(cd,"addTableDefinition");function BY(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]=ma(n,i,t);let u=n.definitions[l];Vy(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,ga(i,u,t),cd("ObjectPageResponsiveTableWithMultiSelect",t,i,n),cd("ObjectPageResponsiveTableWithInlineDelete",t,i,n),cd("ObjectPageGridTable",t,i,n),cd("ObjectPageTreeTable",t,i,n),cd("ObjectPageAnalyticalTable",t,i,n);let p,d=IF(i.entityType,e.serviceAVT);d&&(p=$Y(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(BY,"handleLineItem");function WY(e,t,n,i,r){e.definitions[t]=ma(e,n,i);let o=e.definitions[t];Vy(e,o,r,"ObjectPageSubSectionV2"),o.properties.subsections={type:"object",description:"Subsections",properties:{},additionalProperties:!1},o.properties.subsections[fe.SchemaTag.isViewNode]=!0}a(WY,"handleSubSection");function GY(e,t,n,i,r){e.definitions[t]=ma(e,n,i);let o=e.definitions[t];Vy(e,o,r,"ObjectPageSectionChartV2")}a(GY,"handleSectionChart");function HY(e,t,n,i,r){e.definitions[t]=ma(e,n,i);let o=e.definitions[t];return Vy(e,o,r,"ObjectPageSectionFormV2"),o[fe.SchemaTag.annotationPath]=n.annotationPath,o[fe.SchemaTag.isViewNode]=!0,o}a(HY,"handleFormSection");function KY(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(KY,"getSectionType");function XY(e,t,n){let i=t;return n===("ObjectPageSectionV2"||"ObjectPageSubSectionV2")&&(i=i.replace(`@${zo.UIAnnotationTerms.Facets}`,e.base)),`${i}`}a(XY,"getReferenceKey");function Uw(e,t,n,i,r,o=!1){let s=t[n],l=KY(s.base,o),u=XY(s,n,l),p=`${l}<${u}>`;switch(UY(i,u,p),l){case"ObjectPageSectionV2":case"ObjectPageSubSectionV2":{o=!0,WY(r,p,s,n,l);let d=r.definitions[p].properties.subsections;for(let m in s.facets)Uw(e,s.facets,m,d,r,o);break}case"ObjectPageSectionTableV2":case"ObjectPageSubSectionTableV2":{BY(e,n,r,s,t,l),Ol(r,s.entityType,"OP");break}case"ObjectPageSectionChartV2":case"ObjectPageSubSectionChartV2":{GY(r,p,s,n,l);break}case"ObjectPageSectionFormV2":case"ObjectPageSubSectionFormV2":{let d=HY(r,p,s,n,l);Qg(fe.SectionType.Section,s,d,r,fe.FioriElementsVersion.v2,n);break}case"ObjectPageSectionAddressV2":case"ObjectPageSectionContactV2":{ou(s,n,i,r,fe.SectionType.Section,void 0,"V2");break}case"ObjectPageSubSectionAddressV2":case"ObjectPageSubSectionContactV2":{ou(s,n,i,r,fe.SectionType.Section,fe.SectionType.SubSection,"V2");break}default:i.properties[n]=ma(r,s,n)}}a(Uw,"addSection");function Bw(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}/@${zo.UIAnnotationTerms.Facets}`),!n)return;let r=Cg((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)Uw(e,r,T,i,t);else Bw(e,t,m.pages)}let o=t.definitions.CustomSections;for(let d in o.properties)i.properties[d]=o.properties[d]}a(Bw,"addSections");function JY(e,t,n,i){Zg(e,n),qg(e,n,t,i,kY,!0)}a(JY,"addHeader");function QY(e,t,n,i){let r=Ng(t,n,i,void 0,!0);r&&tm(e,["ObjectPageCustomSectionFragment","ObjectPageCustomSectionView"],r,["ID","key"])}a(QY,"addRelatedFacetKeysType");function rd(e,t){var s;Yt();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?(JY(n,e.entitySet,r,e.serviceAVT),n.definitions[fe.DefinitionName.Sections]={type:"object",properties:{},description:"Sections",additionalProperties:!1},Bw(e,n,o),QY(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]),zg(n,e,fe.FioriElementsVersion.v2,jY,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,Fo(n,MY),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(rd,"generateObjectPageSchemaV2");var tr=te(se());var YY=["filterBar","table","footer"];function eP(e,t,n,i){Ya(e,n,"QuickVariant"),CF(n,"QuickVariantX",t),NF(i,n,"QuickVariantX")}a(eP,"addEnumForVariantPaths");function od(e,t){var m,T,b,E,C,L,R;let n=JSON.parse(JSON.stringify(t));n.properties.table.anyOf[0].$ref=B+lc,n.properties.table.anyOf[1].$ref=B+fc,n.properties.table.anyOf[2].$ref=B+jg,n.properties.table.anyOf[3].$ref=B+$g,n.properties.table.anyOf[4].$ref=B+Ug;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+tr.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+tr.DefinitionName.ToolBarLR;n.definitions[lc]=i,n.definitions[fc]=r,n.definitions[jg]=o,n.definitions[$g]=s,n.definitions[Ug]=l,WT.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:tr.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&&WT.forEach(Ce=>{n.definitions[Ce][tr.SchemaTag.annotationPath]=to(d==null?void 0:d.fullyQualifiedName,F.term,F.qualifier)}),Al(n,F,d);let U=(R=(L=d==null?void 0:d.annotations)==null?void 0:L.UI)==null?void 0:R.SelectionFields;Gg(n,U,d),Ol(n,d);let J=[],re=Wl(e.manifest[tr.ManifestSection.generic].pages,J);if(!re)return oe(e.logger,{severity:tr.LogSeverity.Error,message:ee.t("NOLR"),location:{path:tr.MANIFESTPATH,range:[tr.ManifestSection.generic]}}),n;Sl(n,d,re,e.manifest,e.fragments),eP(d,e.entitySet,n,e.serviceAVT),LF(d,n,tr.DefinitionName.ListReportFilterBar),delete n.definitions.ResponsiveTableWithMultiSelect,delete n.definitions.ResponsiveTableWithInlineDelete,delete n.definitions.TreeTable,delete n.definitions.AnalyticalTable,delete n.definitions.GridTable,delete n.definitions.GenericColumns,delete n.definitions.TableColumnAction,delete n.definitions.ToolBar,delete n.definitions.Actions,delete n.definitions.GenericFooter,delete n.definitions.FieldPath,delete n.definitions.Share}return Fo(n,YY),n}a(od,"generateListReportSchemaV2");var Bt=te(se());var zY=["filterBar","keyPerformanceIndicators","chart","table","footer"];function qY(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(qY,"getVisualizations");function ZY(e,t){let n=e.definitions[Bt.DefinitionName.ChartSettings],i=t.fullyQualifiedName.split("@");n[Bt.SchemaTag.annotationPath]=`/${i[0]}/@${i[1]}`}a(ZY,"addChart");function ad(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,bF(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:L}=qY(b,E),R=C||E.LineItem,F=L||E.Chart;Al(n,R,s),F&&ZY(n,F);let U=(m=(d=s==null?void 0:s.annotations)==null?void 0:d.UI)==null?void 0:m.SelectionFields;if(Gg(n,U,s),Ol(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),eP(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 Fo(n,zY),n}a(ad,"generateAnalyticalListReportSchemaV2");function e6(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(e6,"getCardDefinitionNames");function t6(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"},va(o,s.CardModel);let l=e6(e);for(let u of l){let p=s[u].properties.model;delete p.type,p.$ref=B+"CardModel"}}a(t6,"addModelsEnum");function Ww(e,t){let n=JSON.parse(JSON.stringify(e));return n.properties.cards.propertyNames={pattern:"^[a-zA-Z0-9_\\.\\-]+$"},t6(n,t),n}a(Ww,"generateOverviewPageSchemaV2");var js=te(se());function tP(e,t,n,i,r,o){Yt();let s=No(e,t),l={templateType:o,fioriElementsVersion:js.FioriElementsVersion.v2,manifest:n,fragments:i,serviceAVT:s,logger:t};return l.entitySet=id(r,l.serviceAVT),l.entitySet||oe(l.logger,{severity:js.LogSeverity.Error,message:ee.t("ENTITYSETNOTFOUND",{entitySetName:r})}),l}a(tP,"prepareGenerationV2");function nP(e,t,n,i,r,o){let s=tP(n,o,i,r,t,js.TemplateType.ListReportObjectPageV2);return rd(s,e)}a(nP,"generateObjectPageInterfaceV2");function iP(e,t,n,i,r,o){let s=tP(n,o,i,r,t,js.TemplateType.ListReportObjectPageV2);return od(s,e)}a(iP,"generateListReportInterfaceV2");function rP(e,t,n,i,r,o){let s=tP(n,o,i,r,t,js.TemplateType.AnalyticalListPageV2);return ad(s,e)}a(rP,"generateAnalyticalListPageInterfaceV2");function sd(e,t){return Ww(e,t)}a(sd,"generateOVPInterfaceV2");var at=te(se());var ld=a(e=>({flexChanges:[],manifest:{[at.ManifestSection.generic]:{pages:{}}},fragments:e||[]}),"getDefaultExportResult");function Gw(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(Gw,"getClassesForSingleSection");function Hw(e,t){if(e!=null&&e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],Gw(n,i,t),Hw(n,t)}}a(Hw,"getSubsectionClasses");function n6(e,t,n){let i;for(let r in e.sections)i=t.sections[r],Gw(i,r,n),Hw(i,n)}a(n6,"getExportClassesForSections");function i6(e,t){let n=e.page.config,i=e.page.entitySet,r=ld(e.fragments),o=new Ni,s=o.createPageInstance(at.PageTypeV2.ListReport,n),l=oc(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};ys(m,s,[],[],e.jsonSchema)}return r}a(i6,"exportListReportPage");function r6(e,t){let n=e.page.config,i=e.page.entitySet,r=ld(e.fragments);r.flexChanges=[],r.manifest=JSON.parse(JSON.stringify(e.manifest));let o=new Ni,s=o.createPageInstance(at.PageTypeV2.AnalyticalListPage,n),l=oc(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};ys(m,s,[],[],e.jsonSchema)}return r}}a(r6,"exportAnalyticalListPage");function o6(e,t){let n=e.page.config,i=e.page.entitySet,r=ld(e.fragments),o=new Ni,s=o.createPageInstance(at.PageTypeV2.ObjectPage,n);if(r.manifest=JSON.parse(JSON.stringify(e.manifest)),n){let l=oc(s),u=`${e.appId}::${l.id}::${i}--`,p=[],d=Ic(e.manifest[at.ManifestSection.generic].pages,i,p);if(!d)return r;if(n.sections&&n6(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};ys(m,s,[],[],e.jsonSchema)}}return r}a(o6,"exportObjectPage");var a6=a(e=>{let t=ld();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&&Ku(i,t,e.jsonSchema,e.jsonSchema,n,[]),t},"exportOverviewPage"),s6=a((e,t,n)=>{var s;let i=ld();i.manifest=JSON.parse(JSON.stringify(t));let r=Object.assign(new am,e);r.settings=Object.assign(new ts,e.settings);for(let l in n.definitions.AppSettings.properties){let u=qn(r.settings,l);if(u&&u.manifest){let p=u.manifest.path(),d=Wn(i.manifest,p);e.settings&&e.settings[l]!==void 0?d[l]=e.settings[l]:delete d[l]}}let o=(s=i.manifest[at.ManifestSection.generic])==null?void 0:s.pages;return o&&e.pages&&zT(e.home,e.pages,Object.values(o)[0]),i},"exportApplicationV2");function Kw(e,t){if(e[at.SchemaType.ListReport])return i6(e[at.SchemaType.ListReport],t);if(e[at.SchemaType.ObjectPage])return o6(e[at.SchemaType.ObjectPage],t);if(e[at.SchemaType.OverviewPage])return a6(e[at.SchemaType.OverviewPage]);if(e[at.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[at.SchemaType.Application];return s6(n,i,r)}else if(e[at.SchemaType.AnalyticalListPage])return r6(e[at.SchemaType.AnalyticalListPage],t)}a(Kw,"exportPageV2");var Of=te(se()),Jw=require("@sap-ux/vocabularies-types/vocabularies/UI");function Xw(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(Xw,"updateDependencyLib");function ky(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(ky,"extractLastIdPart");function Qw(e,t,n,i,r){if(!n)return!1;if(!t.appRootPath)return oe(i,{severity:Of.LogSeverity.Error,message:ee.t("NOBASEPATH",{appId:t.appId})}),!1;if(n.template&&n.template.indexOf(e)===-1)return!1;let o=r.lastIndexOf(Of.PropertyName.sections),s=o>-1?ky(r[o+1]):void 0,l=s?s.replace(/::/g,"/"):`@${Jw.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:Of.CustomExtensionType.CustomColumn,basePath:t.appRootPath,data:p};return oP(d),!0}a(Qw,"createNewCustomColumn");var Ma=te(se());var zw=a((e,t,n)=>({pattern:e,name:t,target:n}),"createRoute"),Yw=a((e,t)=>({settings:{...e,...t&&{variantManagement:t},navigation:{}}}),"createTargetOption");function c6(e){let t=e;return t?(t.routes||(t.routes=[]),t.targets||(t.targets={})):t={routes:[],targets:{}},t}a(c6,"initializeRouting");function l6(e,t,n){e.options.settings.navigation||(e.options.settings.navigation={}),e.options.settings.navigation[t]={detail:n}}a(l6,"setTargetOptions");function f6(e,t,n){let i="";return e.forEach((r,o)=>{let s="";t&&t.pageType!==Ma.PageTypeV4.ListReport&&(n[r]?s=`({${n[r]}})`:s=`({key${o?o+1:""}})`),i+=`${i?"/":""}${r}${s}`}),`${i}:?query:`}a(f6,"calculateQueryPattern");function qw(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){qw(e,t,n,s);return}}}a(qw,"fillNavigationParts");function u6(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(u6,"fillParentKeys");function p6(e,t,n,i,r){for(let o in e.navigation){let s=e.navigation[o],l=t[s.route];if(l6(n,o,s),s!=null&&s.route&&!i.routes.some(u=>u.name===s.route)){let u=[];qw(u,o,t,r,l==null?void 0:l.contextPath);let p=u6(e.routePattern),d=f6(u,l,p);i.routes.push(zw(d,s.route,s.route))}}}a(p6,"handlePageNavigation");function d6(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(d6,"removeDeletedPages");function g6(e,t){var n,i,r,o;e.contextPath?(t.options||(t.options=Yw({contextPath:e.contextPath},e.variantManagement)),t.options.settings.contextPath=e.contextPath):(i=(n=t.options)==null?void 0:n.settings)==null||delete i.contextPath,e.entitySet?(t.options||(t.options=Yw({entitySet:e.entitySet},e.variantManagement)),(!e.contextPath||t.options.settings.entitySet)&&(t.options.settings.entitySet=e.entitySet)):(o=(r=t.options)==null?void 0:r.settings)==null||delete o.entitySet}a(g6,"transferEntitySetandContextPath");function m6(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===Ma.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(m6,"deleteRemovedCustomSections");function h6(e,t,n){let i=e.routes.find(r=>r.name===t);i&&(n.defaultLayoutType?i.layout=n.defaultLayoutType:delete i.layout)}a(h6,"updateRouteLayout");function y6(e,t,n,i){return e.pageType&&![Ma.PageTypeV4.CustomPage,Ma.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,viewPath:e.view.viewPath,viewType:e.view.viewType}:e.view&&(t={...t,type:"Component",id:e.view.id,name:e.view.template||Ma.v4.FE_TEMPLATE_V4_CUSTOM_PAGE,viewType:e.view.viewType,options:{settings:{viewName:e.view.name}}}),t}a(y6,"fillTarget");function Zw(e,t,n){var r,o;let i=c6(n[Ma.ManifestSection.ui5].routing);e&&!i.routes.some(s=>s.name===e)&&i.routes.push(zw(":?query:",e,e));for(let s in t){let l,u=t[s];i.targets[s]&&(l=i.targets[s]),l=y6(u,l,s,t),g6(u,l),m6(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={}),p6(u,t,l,i,s),h6(i,s,u),i.targets[s]=l}return d6(i,t),i}a(Zw,"transformRoutingV4");var xi=te(se());var eM=[xi.FlexibleColumnLayoutAggregations.BeginColumnPages,xi.FlexibleColumnLayoutAggregations.MidColumnPages,xi.FlexibleColumnLayoutAggregations.EndColumnPages],tM=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:eM[r]?s.controlAggregation=eM[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)tM(e,t,l.navigation[d].route,o.target,r)}},"applyFCLRouting"),v6=a((e,t)=>{e.routing.config.routerClass=xi.v4.FIORI_FCL_ROUTER_CLASS,tM(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,Xw(e,xi.v4.SAPUI5_DEPENDENCY_LIB_SAP_F)},"enableFcl"),T6=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"),nM=a((e,t)=>{t.settings&&t.settings.flexibleColumnLayout?v6(e,t):T6(e)},"updateFcl");var ae=te(se()),fd=require("@sap-ux/vocabularies-types/vocabularies/UI");var iM=te(tc()),rM=te(se());function E6(e,t){return e!==void 0&&t!==void 0?`${e}`==`${t}`:e===t}a(E6,"isExportValueEquals");function b6(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)===rM.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(b6,"deleteProperty");function oM(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},oM)}else E6((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]&&(b6(e,i),l=!0);return l}a(oM,"exportProperty");function aM(e,t,n,i,r,o){let s=pf(e.file,!1,o);if(s){let l=oy(s);if(Uc({fullSchema:i,schema:i,element:l,contextPath:[],config:n},oM)){let p=(0,iM.js2xml)(s,{spaces:4}),d={dataSourceUri:e.file.dataSourceUri,fileContent:p};r==="view"?t.views=[d]:r==="fragment"&&t.fragments.push(d)}}}a(aM,"getExtensionExportResult");var sM=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=bs(i||[],s.name,r,l)),u&&aM(u,n,s.config,o,"view",l),n},"exportFPMCustomPageConfig"),cM=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};aM(p,r,n,b,d,l)}},"exportXMLFragmentConfig");var lM={flexChanges:[],manifest:{"sap.ui5":{flexEnabled:!0,routing:{targets:{}}},"sap.app":{}},fragments:[],views:[]},sP=a(e=>{let t=lM;return t.fragments=[],t.views=[],t.manifest=JSON.parse(JSON.stringify(e)),t},"prepareDefaultExportResult");function A6(e,t,n,i,r,o){let s=e.flex.controlId(t.baseId,n,i,e.flex.controlType,t.title),l=wg(r,e,t.ui5Version,o,s);t.exportResults.flexChanges.push(e.flex.createFlexChange(l,t.exportResults.manifest))}a(A6,"exportFlexChange");function S6(e,t,n){var s,l,u,p;let i=`@${fd.UIAnnotationTerms.LineItem}`,r=`@${fd.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(S6,"determineTargetAnnotationOfTable");function x6(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(x6,"determineTargetAnnotationOfChart");function P6(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.navigationProperty?`${u.navigationProperty}/${p}`:p}}return{targetAnnotation:n,targetAnnotationEncoded:i}}a(P6,"determineTargetAnnotationOfViews");function O6(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(O6,"determineTargetAnnotationOfHeaderSections");function I6(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=ky(e[1]);n=r&&r.replace(/\//g,"::"),i=n&&n.replace(/::/g,"/")}return{custom:t,targetAnnotationEncoded:n,targetAnnotation:i}}a(I6,"determineTargetAnnotationOfSections");function C6(e,t,n){let i,r,o=!1;return e[0]===ae.PropertyName.table&&e[1]!==ae.PropertyName.views?{targetAnnotationEncoded:r,targetAnnotation:i}=S6(e,t,n):e[0]===ae.PropertyName.chart&&t.templateType===ae.TemplateType.AnalyticalListPageV4?{targetAnnotationEncoded:r,targetAnnotation:i}=x6(e,t,r,i,n):e[0]===ae.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=I6(e,o,r,i):e[1]===ae.PropertyName.sections?{custom:o,targetAnnotationEncoded:r,targetAnnotation:i}=O6(e,o,r,i,t.title):e[1]===ae.PropertyName.views&&({targetAnnotation:i,targetAnnotationEncoded:r}=P6(t,e,i,r)),{targetAnnotationEncoded:r,targetAnnotation:i,custom:o}}a(C6,"determineTargetAnnotation");function N6(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(N6,"determineKeyForSyncRule");function L6(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(L6,"createNewObjectInManifest");function fM(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&&L6(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(fM,"transferPropertyToManifest");function R6(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}=C6(e,n,r),T=N6(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 L={exportHandler:t.manifest.export,manifestSection:E,configObject:r,configPropertyKey:i,manifestKey:C,syncRuleKey:T};fM(L,o,s)}else if(t.manifest.delete){let L=t.manifest.delete;typeof L=="function"&&L(E,r,i,C,T,n.config)}else E[C]!==void 0&&delete E[C]}Tl(n.exportResults.manifest,b,d,p)}a(R6,"exportManifestChange");function F6(e,t,n,i,r,o,s){let l=qn(i,n);if(l)if(l.xml){let u=l.xml(i);cM(e,u,s.configObject)}else l.flex?A6(l,e,r,t,i,n):l.manifest&&R6(r,l,e,n,i,o,s)}a(F6,"evaluateExportRule");function _6(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,cP(e.transferParameters,l,[...i,...u],r,[...e.breadcrumbs,e.key],t==null?void 0:t.targetDefinition),e.index++}}a(_6,"transferSubObject");function D6(e,t,n){let i=!1;if(!t[n]||Object.keys(t[n]).length===0||!t.chart)return{newElementCreated:i,stopProcessing:!0};let r=xt(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(D6,"createALPTableView");function w6(e,t,n){var s;let i=!1;if(!t[n]||Object.keys(t[n]).length===0)return{newElementCreated:i,stopProcessing:!0};let r=xt(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)||fd.UIAnnotationTerms.LineItem}]),{newElementCreated:i,stopProcessing:!1}}a(w6,"createALPChartView");function M6(e,t){if(!t||Object.keys(t).length===0)return!1;let n=!1,i=xt(e.pageNameArray),r=Lo(e.exportResults.manifest,i),o=`@${fd.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(M6,"createVisualFilters");function V6(e,t,n,i){if(!i||Object.keys(i).length===0)return!1;let r=!1,o=xt(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(V6,"createLRTableView");function k6(e,t,n,i,r,o,s=!1){let l=!1,u=!1;if(t&&!s)if(t.startsWith(ae.DefinitionName.CustomColumn))l=Qw(n,o,i[n],o.logger,r);else{if(t===ae.DefinitionName.ALPChartView&&n===ae.PropertyName.chart&&i)return w6(o,i,n);if(t===ae.DefinitionName.ALPTableView&&n===ae.PropertyName.table&&i)return D6(o,i,n);n&&(t.startsWith(ae.DefinitionName.LRTableView)||t.startsWith(ae.DefinitionName.LRChartView))?l=V6(e,o,n,i[n]):n&&t.startsWith(ae.DefinitionName.VisualFilters)&&(l=M6(o,i[n]))}return{newElementCreated:l,stopProcessing:u}}a(k6,"createNewElement");function j6(e){return!!e.$ref||typeof e.properties=="object"&&Object.keys(e.properties).length!==0}a(j6,"isDefinitionTraversable");function aP(e,t,n,i=!1){var d;let r=e.configObject[e.key],o=_g(e.configObject,e.key),s=Ro(e.transferParameters.appSchema,e.transferParameters.title,r,e.propertyDefinition,e.key,e.transferParameters.factory,e.transferParameters.pageType),{newElementCreated:l,stopProcessing:u}=k6(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||F6(e.transferParameters,e.breadcrumbs,e.key,e.configObject,p,e.propertyDefinition,s),e.propertyDefinition&&(typeof r=="object"&&Object.keys(r).length!==0||j6(e.propertyDefinition)&&s.configObject)&&!u){let m=o?[...n,o]:n;_6(e,s,r,p,m)}}a(aP,"transferSortedListEntry");function $6(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]],aP(e,i,r),o=!0):typeof l[1]=="object"&&t.forEach(u=>{u.$ref&&(e.key=l[0],e.propertyDefinition=u,aP(e,i,r),o=!0)}),e.index++})}return o}a($6,"transferConfigEntriesWithAnyOfDefinitions");function U6(e,t,n,i){let r=kT(e.appSchema,t,i);for(let o of r)n.some(s=>s[0]===o)||n.push([o,t])}a(U6,"mergeEntriesForInsert");function cP(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=$6(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&&U6(e,u,m,t),s=0,m.forEach(b=>{l.key=b[0],l.propertyDefinition=b[1],l.index=s,aP(l,n,i,d),b[1].$ref&&s++}))}a(cP,"transferManifestEntriesAndFlexChange");function uM(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(uM,"getClassesForSingleSection");function pM(e,t){if(e.subsections){let n;for(let i in e.subsections)n=e.subsections[i],uM(n,i,t),pM(n,t)}}a(pM,"getSubsectionClasses");function B6(e,t,n){let i;for(let r in e.sections)i=t.sections[r],uM(e,r,n),pM(i,n)}a(B6,"getExportClassesForSections");var W6=a((e,t)=>{var p;let n=sP(e.manifest),i=new wa,r=i.createPageInstance(ae.PageTypeV2.ObjectPage,e.page.config),o=oc(r),s=e.page.name,l=`${e.appId}::${o.id}::${s}--`;(p=e.page.config)!=null&&p[ae.PropertyName.sections]&&B6(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 cP(u,r,[],[],[],e.jsonSchema),n},"exportObjectPage"),G6=a((e,t,n,i,r,o)=>{var L,R;let s=sP(e.manifest),l=e.jsonSchema,u=(L=n.table)!=null&&L[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((R=p.toolBar)!=null&&R.actions&&m)for(let F in m.properties)p.toolBar.actions[F]=t.createInstance(i,ae.DefinitionName.ToolBarAction,p.toolBar.actions[F]);let T=oc(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 cP(C,n,[],[],[],l),s},"exportListPage"),dM=a((e,t,n)=>{let i=new wa,r=i.createPageInstance(ae.PageTypeV2.ListReport,e.page.config);return G6(e,i,r,ae.PageTypeV4.ListReport,t,n)},"exportListReportPage"),H6=a((e,t)=>dM(e,t,ae.TemplateType.AnalyticalListPageV4),"exportAnalyticalListPage"),K6=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=FT());let u={exportHandler:e,manifestSection:s,configObject:i,configPropertyKey:n,manifestKey:n,syncRuleKey:n},p=o.definitions.AppSettings.properties[n];fM(u,p,{}),!l&&Object.keys(s).length&&XR(r,t,s)},"applyExportRule"),X6=a((e,t,n)=>{var o;let i=sP(t),r=Object.assign(new sy,e);r.settings=Object.assign(new gf,r.settings);for(let s in n.definitions.AppSettings.properties){let l=qn(r.settings,s);if(l&&l.manifest){let u=l.manifest.path();if(l.manifest.export)K6(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]}Tl(i.manifest,u)}}return i.manifest[ae.ManifestSection.ui5].routing=Zw(e.home,e.pages,i.manifest),nM(i.manifest[ae.ManifestSection.ui5],e),i},"exportApplicationV4"),gM=a((e,t)=>{if(e[ae.SchemaType.ListReport])return dM(e[ae.SchemaType.ListReport],t,ae.TemplateType.ListReportObjectPageV4);if(e[ae.SchemaType.ObjectPage])return W6(e[ae.SchemaType.ObjectPage],t);if(e[ae.SchemaType.Application]){let{application:n,manifest:i,jsonSchema:r}=e[ae.SchemaType.Application];return X6(n,i,r)}else{if(e[ae.SchemaType.AnalyticalListPage])return H6(e[ae.SchemaType.AnalyticalListPage],t);if(e[ae.SchemaType.FPMCustomPage])return sM(e[ae.SchemaType.FPMCustomPage],lM)}},"exportPageV4");var An=require("@sap-ux/fe-fpm-writer");var J6=new Map([[Se.CustomExtensionType.CustomPage,An.generateCustomPage],[Se.CustomExtensionType.CustomColumn,An.generateCustomColumn],[Se.CustomExtensionType.CustomSection,An.generateCustomSection],[Se.CustomExtensionType.ObjectPage,An.generateObjectPage],[Se.CustomExtensionType.CustomAction,An.generateCustomAction],[Se.CustomExtensionType.CustomView,An.generateCustomView],[Se.CustomExtensionType.ControllerExtension,An.generateControllerExtension],[Se.CustomExtensionType.CustomSubSection,An.generateCustomSubSection],[Se.CustomExtensionType.CustomFilterField,An.generateCustomFilter],[Se.CustomExtensionType.CustomHeaderSection,An.generateCustomHeaderSection]]);function Q6(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=iP(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=nP(i,r,o,s,l,u)}else if(n[Se.SchemaType.OverviewPage]){let{genericSchema:i,manifest:r}=n[Se.SchemaType.OverviewPage];t=sd(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=rP(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=ay(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=QA(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=ay(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=YA(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=zA(i,r,o,s,u,e.featureToggles,l)}}return t}a(Q6,"generateSchema");function Y6(e){let t,n={ui5Version:e.ui5Version,layer:e.layer};if(e[Se.FioriElementsVersion.v2]){let i=e[Se.FioriElementsVersion.v2];t=Kw(i,n)}else if(e[Se.FioriElementsVersion.v4]){let i=e[Se.FioriElementsVersion.v4];t=gM(i,n)}return t}a(Y6,"exportConfig");function z6(e){let t;if(e[Se.FioriElementsVersion.v2]){let n=e[Se.FioriElementsVersion.v2];n[Se.SchemaType.ListReport]?t=rh(n[Se.SchemaType.ListReport]):n[Se.SchemaType.ObjectPage]?t=sh(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.OverviewPage]?t=fh(n[Se.SchemaType.OverviewPage]):n[Se.SchemaType.AnalyticalListPage]&&(t=oh(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=Dy(n[Se.SchemaType.ObjectPage]):n[Se.SchemaType.AnalyticalListPage]?t=Jc(n[Se.SchemaType.AnalyticalListPage],Se.SchemaType.AnalyticalListPage):n[Se.SchemaType.FPMCustomPage]&&(t=Fy(n[Se.SchemaType.FPMCustomPage]))}return t}a(z6,"importConfig");async function q6(e){return Zx(e)}a(q6,"importProject");async function Z6(e){return qx(e)}a(Z6,"importProjectSchema");function ez(){return{version:"13",fpmWriter:"10"}}a(ez,"getApiVersion");function oP(e){let t=J6.get(e.customExtension);if(t&&typeof t=="function")return(0,An.enableFPM)(e.basePath,{}),t(e.basePath,e.data,e.fsEditor)}a(oP,"generateCustomExtension");var Xr=require("path"),$s=require("fs");var If=a(async e=>new Promise((t,n)=>{(0,$s.readFile)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readFile"),tz=a(async e=>JSON.parse(await If(e)),"readJSON"),lP=a(async e=>new Promise((t,n)=>{(0,$s.readdir)(e,{encoding:"utf8"},(i,r)=>{i?n(i):t(r)})}),"readDirectory"),nz=a(async e=>new Promise(t=>{(0,$s.stat)(e,(n,i)=>{t(n?!1:i.isDirectory())})}),"isDirectory"),hM=a(async e=>new Promise(t=>{(0,$s.exists)(e,n=>{t(n)})}),"resourceExists"),iz=a(async e=>tz((0,Xr.join)(e,"manifest.json")),"getManifest"),yM=a(async e=>{let t=[],n=(0,Xr.join)(e,"changes");if(!await hM(n))return t;let i=[".change",".variant",".ctrl_variant",".ctrl_variant_change",".ctrl_variant_management_change"],r=await lP(n);for(let o of r)i.some(s=>o.endsWith(s))&&t.push(await If((0,Xr.join)(n,o)));return t},"getChanges"),mM=a(async(e,t="fragments")=>{let n=[],i=(0,Xr.join)(e,"ext",t);if(!await hM(i))return n;let r=await lP(i);for(let o of r){let s=(0,Xr.join)(i,o),l=await If(s);n.push({dataSourceUri:s,fileContent:l})}return n},"getExtensionFiles"),rz=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,Xr.join)(t,i.mainService.settings.localUri);n.push({dataSourceUri:T,fileContent:await If(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,Xr.join)(t,i[T].settings.localUri);n.push({dataSourceUri:b,fileContent:await If(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,Xr.join)(t,b.settings.localUri);n.push({dataSourceUri:E,fileContent:await If(E)})}}return n},"getAnnotations"),oz=a(async e=>{let t=(0,Xr.basename)(e),n=(0,Xr.join)(e,"webapp"),i=await iz(n),r=await rz(i,n),o=await yM(n),s=await mM(n),l=await mM(n,"views");return{root:e,name:t,manifest:i,annotations:r,changes:o,fragments:s,views:l}},"getProject");Zs(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:
|